ChangeLog-2007-10-14 2.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866
  1. 2007-10-14 Eric Seidel <eric@webkit.org>
  2. Reviewed by aroben.
  3. Remove senseless malloc from paintOutline
  4. No tests needed, no functional change.
  5. * rendering/RenderFlow.cpp:
  6. (WebCore::RenderFlow::paintOutline): remove unneeded malloc
  7. 2007-10-13 Eric Seidel <eric@webkit.org>
  8. Reviewed by Mark Rowe.
  9. Fix SVGSVGElement::currentView() to not leak by using an OwnPtr.
  10. This fix is incompatible with changes eventually needed for supporting
  11. SVGSVGElement.currentView in the bindings (that needs a ref'd object)
  12. There are also several parser crashers in SVGViewSpec, but those will be fixed
  13. in my next patch.
  14. Leak fix only, no additional tests needed.
  15. * ksvg2/svg/SVGSVGElement.cpp:
  16. (WebCore::SVGSVGElement::currentView): call .get() and .set()
  17. * ksvg2/svg/SVGSVGElement.h: use OwnPtr
  18. 2007-10-13 Oliver Hunt <oliver@apple.com>
  19. Reviewed by Maciej.
  20. Fixing a few testcases by enabling SVG_EXPERIMENTAL on windows, and making the
  21. required fixes and corrections.
  22. * WebCore.vcproj/WebCore.vcproj:
  23. * WebCore.vcproj/build-generated-files.sh:
  24. * bindings/scripts/CodeGeneratorJS.pm:
  25. * ksvg2/scripts/make_names.pl:
  26. * ksvg2/svg/SVGColor.cpp:
  27. (WebCore::SVGColor::colorFromRGBColorString):
  28. * page/DOMWindow.idl:
  29. * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
  30. * platform/win/WebCoreTextRenderer.cpp:
  31. 2007-10-12 Darin Adler <darin@apple.com>
  32. Reviewed by Sam.
  33. - more float/int conversion (to try to get the old builbot up)
  34. * rendering/RenderSVGRoot.cpp:
  35. (WebCore::RenderSVGRoot::layout): Cast to int.
  36. (WebCore::RenderSVGRoot::applyContentTransforms): Ditto.
  37. (WebCore::RenderSVGRoot::nodeAtPoint): Ditto.
  38. 2007-10-12 Justin Garcia <justin.garcia@apple.com>
  39. Reviewed by Harrison.
  40. <rdar://problem/5483370> GoogleDocs: Deleting cell text in a table row also removes any empty rows beneath the row being edited
  41. <rdar://problem/5482524> GoogleDocs: A hang occurs when applying list to selected table
  42. * editing/DeleteSelectionCommand.cpp:
  43. (WebCore::DeleteSelectionCommand::removePreviouslySelectedEmptyTableRows):
  44. * editing/InsertListCommand.cpp:
  45. (WebCore::InsertListCommand::modifyRange):
  46. (WebCore::InsertListCommand::doApply):
  47. 2007-10-12 Darin Adler <darin@apple.com>
  48. - fix another float/int conversion
  49. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  50. (WebCore::SVGResourceMasker::applyMask): Explicitly cast to int.
  51. 2007-10-12 Darin Adler <darin@apple.com>
  52. Reviewed by Oliver Hunt.
  53. - fix float/int conversions that cause warnings on older versions
  54. of gcc (like the version currently being used on the PowerPC
  55. buildbot slave)
  56. * rendering/RenderPath.cpp:
  57. (WebCore::RenderPath::paint): Explicitly cast to int.
  58. (WebCore::RenderPath::addFocusRingRects): Use enclosingIntRect
  59. to convert a FloatRect to an IntRect.
  60. * rendering/SVGRootInlineBox.cpp:
  61. (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
  62. Use 0 for the initial value of an int, rather than 0.0f.
  63. (WebCore::svgTextStyleForInlineTextBox): Explicitly cast to int.
  64. (WebCore::applyTextAnchorToTextChunk): Ditto.
  65. 2007-10-12 Oliver Hunt <oliver@apple.com>
  66. Reviewed by Mark.
  67. Cast zoom factor to int as the original patch did. This is necessary to appease some versions of gcc.
  68. * ksvg2/svg/SVGSVGElement.cpp:
  69. (WebCore::SVGSVGElement::setCurrentScale):
  70. 2007-10-12 Eric Seidel <eric@webkit.org>
  71. Reviewed by Mark Rowe.
  72. Fix leaks in SVG code from feature-branch.
  73. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  74. (WebCore::SVGFEDiffuseLightingElement::filterEffect):
  75. * ksvg2/svg/SVGFEFloodElement.cpp:
  76. (WebCore::SVGFEFloodElement::filterEffect):
  77. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  78. (WebCore::SVGFESpecularLightingElement::filterEffect):
  79. * ksvg2/svg/SVGGradientElement.cpp:
  80. (WebCore::SVGGradientElement::buildStops):
  81. * ksvg2/svg/SVGStyledElement.cpp:
  82. (WebCore::SVGStyledElement::resolveStyle): always refs style
  83. * platform/graphics/cg/ImageBufferCG.cpp:
  84. (WebCore::ImageBuffer::create): fastFree buffer if CG Context creation fails
  85. 2007-10-12 Mark Rowe <mrowe@apple.com>
  86. Windows, Gtk and Qt build fixes. Add new files to projects.
  87. * WebCore.pro:
  88. * WebCore.vcproj/WebCore.vcproj:
  89. === Start merge of feature-branch 2007-10-12 ===
  90. 2007-10-11 Oliver Hunt <oliver@apple.com>
  91. Reviewed by Sam.
  92. Bug 15469: feature branch has 100's of implicit double -> float conversions
  93. Re-enable -Wshorten-64-to-32, and make required code changes to make us build sanely again.
  94. * WebCore.xcodeproj/project.pbxproj:
  95. * bindings/js/JSSVGMatrixCustom.cpp:
  96. (WebCore::JSSVGMatrix::translate):
  97. (WebCore::JSSVGMatrix::scale):
  98. (WebCore::JSSVGMatrix::scaleNonUniform):
  99. (WebCore::JSSVGMatrix::rotate):
  100. (WebCore::JSSVGMatrix::skewX):
  101. (WebCore::JSSVGMatrix::skewY):
  102. * bindings/scripts/CodeGeneratorJS.pm:
  103. * bindings/scripts/CodeGeneratorObjC.pm:
  104. * ksvg2/css/SVGRenderStyle.cpp:
  105. (WebCore::SVGRenderStyle::cssPrimitiveToLength):
  106. * ksvg2/css/SVGRenderStyle.h:
  107. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  108. (WebCore::SVGAnimateMotionElement::parseMappedAttribute):
  109. (WebCore::SVGAnimateMotionElement::updateAnimatedValue):
  110. (WebCore::parsePoint):
  111. (WebCore::SVGAnimateMotionElement::calculateFromAndToValues):
  112. * ksvg2/svg/SVGAnimationElement.cpp:
  113. (WebCore::SVGAnimationElement::parseKeyNumbers):
  114. (WebCore::parseKeySplines):
  115. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  116. (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
  117. (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
  118. * ksvg2/svg/SVGFECompositeElement.cpp:
  119. (WebCore::SVGFECompositeElement::SVGFECompositeElement):
  120. (WebCore::SVGFECompositeElement::parseMappedAttribute):
  121. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  122. (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
  123. (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
  124. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  125. (WebCore::SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
  126. (WebCore::SVGFEDisplacementMapElement::parseMappedAttribute):
  127. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  128. (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
  129. (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
  130. * ksvg2/svg/SVGFELightElement.cpp:
  131. (WebCore::SVGFELightElement::SVGFELightElement):
  132. (WebCore::SVGFELightElement::parseMappedAttribute):
  133. * ksvg2/svg/SVGFEOffsetElement.cpp:
  134. (WebCore::SVGFEOffsetElement::SVGFEOffsetElement):
  135. (WebCore::SVGFEOffsetElement::parseMappedAttribute):
  136. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  137. (WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
  138. (WebCore::SVGFESpecularLightingElement::parseMappedAttribute):
  139. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  140. (WebCore::SVGFETurbulenceElement::SVGFETurbulenceElement):
  141. (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
  142. * ksvg2/svg/SVGFitToViewBox.cpp:
  143. (WebCore::SVGFitToViewBox::parseMappedAttribute):
  144. * ksvg2/svg/SVGFitToViewBox.h:
  145. * ksvg2/svg/SVGLength.cpp:
  146. (WebCore::SVGLength::setValueAsString):
  147. (WebCore::SVGLength::PercentageOfViewport):
  148. * ksvg2/svg/SVGNumber.idl:
  149. * ksvg2/svg/SVGNumberList.cpp:
  150. (WebCore::SVGNumberList::parse):
  151. * ksvg2/svg/SVGNumberList.h:
  152. * ksvg2/svg/SVGParserUtilities.cpp:
  153. (WebCore::_parseNumber):
  154. (WebCore::parseNumber):
  155. (WebCore::pointsListFromSVGData):
  156. (WebCore::PathBuilder::svgMoveTo):
  157. (WebCore::PathBuilder::svgLineTo):
  158. (WebCore::PathBuilder::svgCurveToCubic):
  159. (WebCore::SVGPathSegListBuilder::svgMoveTo):
  160. (WebCore::SVGPathSegListBuilder::svgLineTo):
  161. (WebCore::SVGPathSegListBuilder::svgLineToHorizontal):
  162. (WebCore::SVGPathSegListBuilder::svgLineToVertical):
  163. (WebCore::SVGPathSegListBuilder::svgCurveToCubic):
  164. (WebCore::SVGPathSegListBuilder::svgCurveToCubicSmooth):
  165. (WebCore::SVGPathSegListBuilder::svgCurveToQuadratic):
  166. (WebCore::SVGPathSegListBuilder::svgCurveToQuadraticSmooth):
  167. (WebCore::SVGPathSegListBuilder::svgArcTo):
  168. * ksvg2/svg/SVGParserUtilities.h:
  169. * ksvg2/svg/SVGPathElement.cpp:
  170. (WebCore::SVGPathElement::SVGPathElement):
  171. * ksvg2/svg/SVGSVGElement.cpp:
  172. (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
  173. (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
  174. * ksvg2/svg/SVGSVGElement.h:
  175. * ksvg2/svg/SVGTransformDistance.cpp:
  176. (WebCore::SVGTransformDistance::addToSVGTransform):
  177. (WebCore::SVGTransformDistance::distance):
  178. * ksvg2/svg/SVGTransformDistance.h:
  179. * ksvg2/svg/SVGTransformable.cpp:
  180. (WebCore::SVGTransformable::parseTransformValue):
  181. * ksvg2/svg/SVGViewSpec.cpp:
  182. (WebCore::SVGViewSpec::parseViewSpec):
  183. * platform/graphics/svg/SVGResourceFilter.cpp:
  184. (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
  185. * platform/graphics/svg/cg/CgSupport.cpp:
  186. (WebCore::applyStrokeStyleToContext):
  187. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  188. (WebCore::SVGPaintServerPattern::setup):
  189. * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
  190. (WebCore::SVGResourceFilter::applyFilter):
  191. * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
  192. (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
  193. * platform/graphics/svg/filters/SVGFEComposite.cpp:
  194. (WebCore::SVGFEComposite::SVGFEComposite):
  195. * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
  196. (WebCore::SVGFEConvolveMatrix::SVGFEConvolveMatrix):
  197. * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
  198. (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
  199. * platform/graphics/svg/filters/SVGFEFlood.cpp:
  200. (WebCore::SVGFEFlood::SVGFEFlood):
  201. * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
  202. (WebCore::SVGFEGaussianBlur::SVGFEGaussianBlur):
  203. * platform/graphics/svg/filters/SVGFEMorphology.cpp:
  204. (WebCore::SVGFEMorphology::SVGFEMorphology):
  205. * platform/graphics/svg/filters/SVGFEOffset.cpp:
  206. (WebCore::SVGFEOffset::SVGFEOffset):
  207. * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
  208. (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
  209. * platform/graphics/svg/filters/SVGFETurbulence.cpp:
  210. (WebCore::SVGFETurbulence::SVGFETurbulence):
  211. * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
  212. (WebCore::SVGFEColorMatrix::getCIFilter):
  213. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
  214. (WebCore::getVectorForChannel):
  215. (WebCore::getLightVectors):
  216. * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
  217. (WebCore::SVGFEImage::getCIFilter):
  218. * rendering/RenderPath.cpp:
  219. (WebCore::RenderPath::drawMarkersIfNeeded):
  220. * rendering/RenderSVGImage.cpp:
  221. (WebCore::RenderSVGImage::paint):
  222. * rendering/RenderSVGInlineText.cpp:
  223. (WebCore::RenderSVGInlineText::computeAbsoluteRectForRange):
  224. * rendering/RenderSVGRoot.cpp:
  225. (WebCore::RenderSVGRoot::applyContentTransforms):
  226. (WebCore::RenderSVGRoot::calcViewport):
  227. (WebCore::RenderSVGRoot::nodeAtPoint):
  228. * rendering/RenderSVGText.cpp:
  229. (WebCore::RenderSVGText::absoluteRects):
  230. (WebCore::RenderSVGText::relativeBBox):
  231. * rendering/RenderSVGTextPath.cpp:
  232. * rendering/SVGCharacterLayoutInfo.cpp:
  233. (WebCore::calculateBaselineShift):
  234. (WebCore::SVGCharacterLayoutInfo::SVGCharacterLayoutInfo):
  235. (WebCore::SVGCharacterLayoutInfo::processedChunk):
  236. (WebCore::SVGCharacterLayoutInfo::nextPathLayoutPointAndAngle):
  237. (WebCore::SVGCharacterLayoutInfo::addLayoutInformation):
  238. * rendering/SVGCharacterLayoutInfo.h:
  239. * rendering/SVGInlineTextBox.cpp:
  240. (WebCore::SVGInlineTextBox::calculateGlyphBoundaries):
  241. (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
  242. (WebCore::pathForDecoration):
  243. * rendering/SVGRenderTreeAsText.cpp:
  244. (WebCore::writeStyle):
  245. * rendering/SVGRootInlineBox.cpp:
  246. (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
  247. (WebCore::applyTextAnchorToTextChunk):
  248. (WebCore::SVGRootInlineBox::buildLayoutInformation):
  249. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
  250. 2007-10-11 Andrew Wellington <proton@wiretapped.net>
  251. Reviewed by Eric Seidel.
  252. Fix for http://bugs.webkit.org/show_bug.cgi?id=15076
  253. "deg2rad has multiple definitions"
  254. Use deg2rad, rad2deg, deg2grad, grad2deg, rad2grad, grad2rad
  255. from wtf where appropriate.
  256. No test cases as this doesn't change behaviour.
  257. Change based on original patch by Rob Buis.
  258. * ksvg2/svg/SVGAngle.cpp:
  259. (WebCore::SVGAngle::calculate):
  260. (WebCore::SVGAngle::convertToSpecifiedUnits):
  261. (WebCore::SVGAngle::todeg):
  262. (WebCore::SVGAngle::torad):
  263. * platform/graphics/AffineTransform.cpp:
  264. (WebCore::AffineTransform::rotateFromVector):
  265. (WebCore::AffineTransform::skewX):
  266. (WebCore::AffineTransform::skewY):
  267. * platform/graphics/cg/AffineTransformCG.cpp:
  268. (WebCore::AffineTransform::rotate):
  269. * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
  270. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
  271. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
  272. * rendering/RenderPath.cpp:
  273. (WebCore::drawMarkerWithData):
  274. 2007-10-11 Nikolas Zimmermann <zimmermann@kde.org>
  275. Reviewed by Oliver.
  276. Fixes: http://bugs.webkit.org/show_bug.cgi?id=6421 (<text> textLength attribute is not respected)
  277. Fixes: http://bugs.webkit.org/show_bug.cgi?id=6422 (<text> lengthAdjust attribute is not respected)
  278. Implement textLength and full lengthAdjust (both 'spacing' & 'spacingAndGlyphs' mode)
  279. for <text> & <tspan> & friends. <textPath> is still todo, as it's special.
  280. Also fix usage of cummulatedGlyphWidth/Height in SVGInlineTextBox, calculateGlyphBoundaries was
  281. supposed to be used in the distance calculations, to take per character transformations into account (ie. rotation).
  282. Fixes: svg/W3C-SVG-1.1/text-text-01-b.svg (complelty fixed the single W3C textLength testcase)
  283. Partly fixed: svg/batik/text/textOnPathSpaces.svg (kerning support missing)
  284. Partly fixed: svg/batik/text/textLayout.svg (word-letter spacing & textLength is todo)
  285. * ksvg2/svg/SVGTextContentElement.cpp:
  286. (WebCore::SVGTextContentElement::SVGTextContentElement):
  287. (WebCore::SVGTextContentElement::parseMappedAttribute):
  288. * rendering/SVGCharacterLayoutInfo.cpp:
  289. (WebCore::SVGCharacterLayoutInfo::nextPathLayoutPointAndAngle):
  290. * rendering/SVGCharacterLayoutInfo.h:
  291. (WebCore::SVGTextChunk::SVGTextChunk):
  292. (WebCore::SVGTextChunkWalker::operator()):
  293. * rendering/SVGInlineTextBox.cpp:
  294. (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
  295. (WebCore::SVGInlineTextBoxSelectionRectWalker::chunkPortionCallback):
  296. (WebCore::SVGInlineTextBox::svgCharacterHitsPosition):
  297. * rendering/SVGRootInlineBox.cpp:
  298. (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
  299. (WebCore::cummulatedWidthOrHeightOfTextChunk):
  300. (WebCore::cummulatedWidthOfTextChunk):
  301. (WebCore::cummulatedHeightOfTextChunk):
  302. (WebCore::applyTextAnchorToTextChunk):
  303. (WebCore::applyTextLengthCorrectionToTextChunk):
  304. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
  305. (WebCore::SVGRootInlineBox::buildTextChunks):
  306. (WebCore::SVGRootInlineBox::layoutTextChunks):
  307. (WebCore::SVGRootInlineBox::walkTextChunks):
  308. 2007-10-11 Oliver Hunt <oliver@apple.com>
  309. Reviewed by Niko.
  310. Fix for Bug 15468: Parsing of numbers and lists is too lenient in SVG
  311. Correct parsing of numbers, number lists, and length lists in SVG.
  312. * ksvg2/svg/SVGLength.cpp:
  313. (WebCore::SVGLength::setValueAsString):
  314. * ksvg2/svg/SVGLength.h:
  315. * ksvg2/svg/SVGLengthList.cpp:
  316. (WebCore::SVGLengthList::parse):
  317. * ksvg2/svg/SVGParserUtilities.cpp:
  318. (WebCore::parseNumber):
  319. 2007-10-11 Allan Sandfeld Jensen <sandfeld@kde.org>
  320. Reviewed by Maciej and Eric.
  321. Implement CSS selector combinators nondeterministic matching.
  322. Fixes http://bugs.webkit.org/show_bug.cgi?id=3428
  323. * css/CSSStyleSelector.cpp:
  324. (WebCore::CSSStyleSelector::matchRulesForList):
  325. (WebCore::CSSStyleSelector::checkSelector): Split the function and make the second part recursive
  326. (WebCore::CSSStyleSelector::checkOneSelector): Handle pseodo-elements rules and hoveractive quirks
  327. here instead of in checkSelector.
  328. * css/CSSStyleSelector.h:
  329. 2007-10-10 Eric Seidel <eric@webkit.org>
  330. Reviewed by Nikolas Zimmermann.
  331. Fix the SVG dom so that rect.x.baseVal = rect.x.baseVal like it should.
  332. http://bugs.webkit.org/show_bug.cgi?id=14150
  333. Test: svg/dom/animated-tearoff-equlity.xhtml
  334. * ksvg2/svg/SVGAnimatedTemplate.h:
  335. (WebCore::SVGAnimatedTypeWrapperKey::SVGAnimatedTypeWrapperKey):
  336. (WebCore::SVGAnimatedTypeWrapperKey::operator==):
  337. (WebCore::SVGAnimatedTypeWrapperKeyHash::hash):
  338. (WebCore::SVGAnimatedTypeWrapperKeyHash::equal):
  339. (WebCore::SVGAnimatedTypeWrapperKeyHashTraits::deletedValue):
  340. (WebCore::SVGAnimatedTypeWrapperKeyHashTraits::emptyValue):
  341. (WebCore::SVGAnimatedTemplate::~SVGAnimatedTemplate):
  342. (WebCore::SVGAnimatedTemplate::wrapperCache):
  343. (WebCore::SVGAnimatedTemplate::forgetWrapper):
  344. (WebCore::lookupOrCreateWrapper):
  345. * ksvg2/svg/SVGElement.h:
  346. 2007-10-10 Oliver Hunt <oliver@apple.com>
  347. Reviewed by Maciej.
  348. Leopard build fix -- SVGDocument should not trty to make read/write properties read-only
  349. Remove those API definitions SVGDocument now inherits from Document
  350. * ksvg2/svg/SVGDocument.idl:
  351. 2007-10-10 Eric Seidel <eric@webkit.org>
  352. Reviewed by Oliver.
  353. Make renderers pull localTransform instead of depending on DOM elements to push
  354. This allows for cleaner invalidation code, and makes writing animation easier.
  355. Also fixed a tiny bug in SVGRenderImage focus ring calculations while there
  356. Updated test results for svg/custom/focus-ring.svg
  357. * WebCore.xcodeproj/project.pbxproj:
  358. * ksvg2/svg/SVGAElement.cpp:
  359. (WebCore::SVGAElement::createRenderer):
  360. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  361. (WebCore::SVGAnimateMotionElement::applyAnimatedValueToElement):
  362. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  363. (WebCore::SVGAnimateTransformElement::applyAnimatedValueToElement):
  364. * ksvg2/svg/SVGClipPathElement.cpp:
  365. (WebCore::SVGClipPathElement::canvasResource):
  366. * ksvg2/svg/SVGElement.h:
  367. * ksvg2/svg/SVGGElement.cpp:
  368. (WebCore::SVGGElement::createRenderer):
  369. * ksvg2/svg/SVGImageElement.cpp:
  370. * ksvg2/svg/SVGLocatable.cpp:
  371. (WebCore::SVGLocatable::getCTM):
  372. (WebCore::SVGLocatable::getScreenCTM):
  373. * ksvg2/svg/SVGMarkerElement.cpp:
  374. (WebCore::SVGMarkerElement::canvasResource):
  375. (WebCore::SVGMarkerElement::notifyAttributeChange):
  376. * ksvg2/svg/SVGSVGElement.h:
  377. * ksvg2/svg/SVGStyledElement.cpp:
  378. (WebCore::SVGStyledElement::rendererIsNeeded):
  379. (WebCore::SVGStyledElement::notifyResourceParentIfExistant):
  380. * ksvg2/svg/SVGStyledElement.h:
  381. (WebCore::SVGStyledElement::style):
  382. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  383. (WebCore::SVGStyledTransformableElement::animatedLocalTransform):
  384. (WebCore::SVGStyledTransformableElement::parseMappedAttribute):
  385. (WebCore::SVGStyledTransformableElement::notifyAttributeChange):
  386. (WebCore::SVGStyledTransformableElement::createRenderer):
  387. * ksvg2/svg/SVGStyledTransformableElement.h:
  388. (WebCore::SVGStyledTransformableElement::toPathData):
  389. * ksvg2/svg/SVGSwitchElement.cpp:
  390. (WebCore::SVGSwitchElement::createRenderer):
  391. * ksvg2/svg/SVGTRefElement.cpp:
  392. (WebCore::SVGTRefElement::updateReferencedText):
  393. * ksvg2/svg/SVGTextElement.cpp:
  394. (WebCore::SVGTextElement::parseMappedAttribute):
  395. (WebCore::SVGTextElement::animatedLocalTransform):
  396. * ksvg2/svg/SVGTextElement.h:
  397. * ksvg2/svg/SVGTextPathElement.cpp:
  398. * ksvg2/svg/SVGTextPathElement.h:
  399. * ksvg2/svg/SVGTransformable.cpp:
  400. (WebCore::SVGTransformable::getCTM):
  401. (WebCore::SVGTransformable::getScreenCTM):
  402. * ksvg2/svg/SVGTransformable.h:
  403. * ksvg2/svg/SVGUseElement.cpp:
  404. (WebCore::SVGUseElement::createRenderer):
  405. (WebCore::SVGUseElement::attachShadowTree):
  406. * platform/graphics/AffineTransform.h:
  407. (WebCore::AffineTransform::operator!=):
  408. * platform/graphics/svg/SVGResourceMarker.cpp:
  409. (WebCore::SVGResourceMarker::setMarker):
  410. * platform/graphics/svg/SVGResourceMarker.h:
  411. * rendering/RenderForeignObject.cpp:
  412. (WebCore::RenderForeignObject::calculateLocalTransform):
  413. (WebCore::RenderForeignObject::layout):
  414. * rendering/RenderForeignObject.h:
  415. (WebCore::RenderForeignObject::localTransform):
  416. * rendering/RenderObject.cpp:
  417. * rendering/RenderObject.h:
  418. * rendering/RenderPath.cpp:
  419. (WebCore::RenderPath::RenderPath):
  420. (WebCore::RenderPath::localTransform):
  421. (WebCore::RenderPath::calculateLocalTransform):
  422. (WebCore::RenderPath::layout):
  423. * rendering/RenderPath.h:
  424. * rendering/RenderSVGContainer.cpp:
  425. (WebCore::RenderSVGContainer::localTransform):
  426. (WebCore::RenderSVGContainer::calculateLocalTransform):
  427. (WebCore::RenderSVGContainer::layout):
  428. * rendering/RenderSVGContainer.h:
  429. * rendering/RenderSVGImage.h:
  430. (WebCore::RenderSVGImage::localTransform):
  431. * rendering/RenderSVGText.cpp:
  432. (WebCore::RenderSVGText::calculateLocalTransform):
  433. (WebCore::RenderSVGText::layout):
  434. * rendering/RenderSVGText.h:
  435. (WebCore::RenderSVGText::isSVGText):
  436. (WebCore::RenderSVGText::localTransform):
  437. * rendering/RenderSVGTextPath.cpp:
  438. (WebCore::RenderSVGTextPath::layoutPath):
  439. (WebCore::RenderSVGTextPath::startOffset):
  440. (WebCore::RenderSVGTextPath::exactAlignment):
  441. (WebCore::RenderSVGTextPath::stretchMethod):
  442. * rendering/RenderSVGTextPath.h:
  443. * rendering/RenderSVGTransformableContainer.cpp: Added.
  444. (WebCore::RenderSVGTransformableContainer::RenderSVGTransformableContainer):
  445. (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
  446. * rendering/RenderSVGTransformableContainer.h: Added.
  447. * rendering/RenderSVGViewportContainer.h:
  448. 2007-10-10 Oliver Hunt <oliver@apple.com>
  449. Reviewed by Eric.
  450. Bug 15451: SVGStyledElement must unregister itself from Resources on detach
  451. Use a global hashtable to maintain the relationship between the
  452. various SVG resources and their clients, across dom updates, etc.
  453. * ksvg2/svg/SVGStyledElement.cpp:
  454. (WebCore::SVGStyledElement::detach):
  455. * ksvg2/svg/SVGStyledElement.h:
  456. * platform/graphics/svg/SVGPaintServer.h:
  457. * platform/graphics/svg/SVGResource.cpp:
  458. (WebCore::ResourceSet::ResourceSet):
  459. (WebCore::clientMap):
  460. (WebCore::SVGResource::~SVGResource):
  461. (WebCore::SVGResource::invalidate):
  462. (WebCore::SVGResource::removeClient):
  463. (WebCore::SVGResource::addClient):
  464. * platform/graphics/svg/SVGResource.h:
  465. (WebCore::):
  466. (WebCore::SVGResource::isPaintServer):
  467. (WebCore::SVGResource::isFilter):
  468. (WebCore::SVGResource::isClipper):
  469. (WebCore::SVGResource::isMarker):
  470. (WebCore::SVGResource::isMasker):
  471. * platform/graphics/svg/SVGResourceClipper.h:
  472. (WebCore::SVGResourceClipper::resourceType):
  473. * platform/graphics/svg/SVGResourceFilter.h:
  474. * platform/graphics/svg/SVGResourceMarker.h:
  475. * platform/graphics/svg/SVGResourceMasker.h:
  476. 2007-10-10 Mark Rowe <mrowe@apple.com>
  477. Windows build fix after r26109.
  478. * WebCore.vcproj/WebCore.vcproj:
  479. 2007-10-10 Oliver Hunt <oliver@apple.com>
  480. Reviewed by Eric.
  481. Fix Bug 15433: Filters do not repaint when base resources change/update
  482. SVGFEImage now actually responds to image updates, and triggers a repaint.
  483. * platform/graphics/svg/SVGResource.h:
  484. * platform/graphics/svg/filters/SVGFEImage.cpp:
  485. (WebCore::SVGFEImage::setCachedImage):
  486. Don't re-set the image lest we want to trigger infinite recursion.
  487. (WebCore::SVGFEImage::imageChanged):
  488. Image change means we need to tell our clients to repaint
  489. * platform/graphics/svg/filters/SVGFEImage.h:
  490. * rendering/SVGRenderSupport.cpp:
  491. (WebCore::prepareToRenderSVGContent):
  492. make sure that users of filters are registered.
  493. 2007-10-09 Eric Seidel <eric@webkit.org>
  494. Reviewed by Alp.
  495. Track changes in r26109 to fix the Gtk+ build.
  496. * WebCore.pro:
  497. 2007-10-09 Alexey Proskuryakov <ap@webkit.org>
  498. Reviewed by Anders.
  499. http://bugs.webkit.org/show_bug.cgi?id=15436
  500. Wrong node order for XPath reverse axes
  501. Test: fast/xpath/reverse-axes.html
  502. * xml/XPathStep.cpp:
  503. (WebCore::XPath::Step::nodesInAxis): Do not prematurely sort reverse
  504. axes. Generate preceding axis nodes in reversed document order.
  505. 2007-10-09 Alexey Proskuryakov <ap@webkit.org>
  506. Reviewed by Mitz.
  507. http://bugs.webkit.org/show_bug.cgi?id=15437
  508. XPath substring-after function is broken
  509. Test: fast/xpath/substring-after.html
  510. * xml/XPathFunctions.cpp:
  511. (WebCore::XPath::FunSubstringAfter::evaluate): Fix it for real this time, hopefully.
  512. 2007-10-09 Rob Buis <buis@kde.org>
  513. Reviewed by Eric.
  514. http://bugs.webkit.org/show_bug.cgi?id=15080
  515. <use> element not refresh after adding objects by script in referrer
  516. Update shadow tree when elements are added/removed from a tree
  517. that is referenced by a <use>.
  518. * ksvg2/svg/SVGStyledElement.cpp:
  519. (WebCore::SVGStyledElement::childrenChanged):
  520. * ksvg2/svg/SVGStyledElement.h:
  521. 2007-10-09 Rob Buis <buis@kde.org>
  522. Reviewed by Maciej.
  523. http://bugs.webkit.org/show_bug.cgi?id=15088
  524. HTMLOptionElement.selected returns false when parent HTMLSelectElement is "display: none" until parent's .selectedIndex is accessed
  525. Make sure the list items are up to date when there is no renderer.
  526. * html/HTMLSelectElement.cpp:
  527. (WebCore::HTMLSelectElement::recalcStyle):
  528. 2007-10-08 Eric Seidel <eric@webkit.org>
  529. Reviewed by Oliver.
  530. Build fix. Fix circular build rule for CSS*.in files evident on clean build.
  531. * DerivedSources.make:
  532. * WebCore.xcodeproj/project.pbxproj:
  533. * ksvg2/css/CSSPropertyNames.in: Removed.
  534. * ksvg2/css/CSSValueKeywords.in: Removed.
  535. * ksvg2/css/SVGCSSPropertyNames.in: Copied from ksvg2/css/CSSPropertyNames.in.
  536. * ksvg2/css/SVGCSSValueKeywords.in: Copied from ksvg2/css/CSSValueKeywords.in.
  537. 2007-10-08 Eric Seidel <eric@webkit.org>
  538. Reviewed by hyatt.
  539. Implement getComputedStyle support for SVG CSS values
  540. http://bugs.webkit.org/show_bug.cgi?id=15422
  541. This also unifies SVG and non-SVG CSS hash lookups. A unified hash
  542. solves correctness problems as well as offers improved speed.
  543. Test: svg/css/getComputedStyle-basic.xhtml
  544. * DerivedSources.make: unify SVG and non-SVG CSS hash files
  545. * WebCore.xcodeproj/project.pbxproj: remove old SVG CSS hash files
  546. * css/CSSComputedStyleDeclaration.cpp:
  547. (WebCore::):
  548. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): call getPropertyCSSValue
  549. * css/CSSComputedStyleDeclaration.h: add getPropertyCSSValue
  550. * css/CSSGrammar.y:
  551. * css/CSSParser.cpp:
  552. (WebCore::CSSParser::parseValue):
  553. * css/CSSStyleDeclaration.cpp:
  554. (WebCore::propertyID):
  555. * css/CSSStyleSelector.cpp:
  556. (WebCore::CSSStyleSelector::applyProperty):
  557. * ksvg2/css/CSSPropertyNames.in: remove font-size-adjust
  558. * ksvg2/css/SVGCSSComputedStyleDeclaration.cpp: Added.
  559. (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue): added.
  560. * ksvg2/css/SVGCSSParser.cpp:
  561. (WebCore::CSSParser::parseSVGValue):
  562. * ksvg2/css/SVGCSSStyleSelector.cpp:
  563. (WebCore::CSSStyleSelector::applySVGProperty):
  564. * ksvg2/scripts/cssmakeprops: Removed.
  565. * ksvg2/scripts/cssmakevalues: Removed.
  566. * ksvg2/svg/SVGAnimationElement.cpp:
  567. * ksvg2/svg/SVGStyledElement.cpp:
  568. (WebCore::mapAttributeToCSSProperty):
  569. (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName): remove font-size-adjust
  570. 2007-10-08 Sam Weinig <sam@webkit.org>
  571. Reviewed by Steve Falkenburg;
  572. Fix for <rdar://problem/5519698> CrashTracer: [USER] 47 crashes in Safari at com.apple.WebCore: WebCore::XMLTokenizer::lineNumber const + 9
  573. Test: fast/innerHTML/innerHTML-script-tag-crash.xhtml
  574. * dom/XMLTokenizer.cpp:
  575. (WebCore::XMLTokenizer::lineNumber): Return 1 when there is no context.
  576. (WebCore::XMLTokenizer::columnNumber): ditto.
  577. 2007-10-08 Alexey Proskuryakov <ap@webkit.org>
  578. * platform/mac/FontPlatformDataMac.mm:
  579. (WebCore::FontPlatformData::setFont): Restored one of the -1 checks removed in
  580. the previous change - we do need to check m_font!
  581. 2007-10-08 Alexey Proskuryakov <ap@webkit.org>
  582. Reviewed by Darin.
  583. http://bugs.webkit.org/show_bug.cgi?id=15397
  584. Layout tests freeze in HashTable::lookup
  585. Fixes a DRT freeze on PowerPC.
  586. * platform/mac/FontPlatformDataMac.mm:
  587. (WebCore::FontPlatformData::FontPlatformData): Don't ask for a size of a nil font,
  588. the result is undefined.
  589. (WebCore::FontPlatformData::setFont): Ditto. Also removed some checks for -1 that
  590. were not sufficient, and thus likely unnecessary,
  591. 2007-10-07 Nikolas Zimmermann <zimmermann@kde.org>
  592. Reviewed by Eric.
  593. Fix some issues with rotation & baseline-shift, when spanning
  594. across <tspan> elements. Highlighted by the existing batik tests.
  595. * rendering/SVGCharacterLayoutInfo.cpp:
  596. (WebCore::SVGCharacterLayoutInfo::SVGCharacterLayoutInfo):
  597. (WebCore::SVGCharacterLayoutInfo::processedChunk):
  598. (WebCore::SVGChar::characterTransform):
  599. * rendering/SVGCharacterLayoutInfo.h:
  600. * rendering/SVGInlineTextBox.cpp:
  601. (WebCore::SVGInlineTextBox::calculateGlyphBoundaries):
  602. (WebCore::SVGInlineTextBox::paintCharacters):
  603. (WebCore::SVGInlineTextBox::paintDecoration):
  604. * rendering/SVGRootInlineBox.cpp:
  605. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
  606. 2007-10-07 Mark Rowe <mrowe@apple.com>
  607. Reviewed by Maciej.
  608. Bug 5122: Need an equivalent of Mozilla's DOMContentLoaded event
  609. http://bugs.webkit.org/show_bug.cgi?id=5122
  610. This is based on a patch by Daniel Peebles (pumpkingod@gmail.com).
  611. Test: http/tests/loading/DOMContentLoaded-event.html
  612. * dom/Document.cpp:
  613. (WebCore::Document::finishedParsing): Dispatch the DOMContentLoaded event when parsing completes.
  614. * dom/EventNames.h: Add DOMContentLoaded to the list of events.
  615. 2007-10-07 Alexey Proskuryakov <ap@webkit.org>
  616. Reviewed by Eric Seidel.
  617. http://bugs.webkit.org/show_bug.cgi?id=15368
  618. xsl:import fails when preceded by comment
  619. Test: fast/xsl/import-after-comment.xml
  620. * xml/XSLStyleSheet.cpp:
  621. (WebCore::XSLStyleSheet::loadChildSheets): It's OK for xsl:import to be preceded by
  622. non-element nodes.
  623. 2007-10-07 Vincent Ricard <magic@magicninja.org>
  624. Reviewed by Maciej. Landed by eseidel.
  625. http://bugs.webkit.org/show_bug.cgi?id=15062
  626. Implement document.compatMode
  627. Tests: fast/dom/compatMode-AlmostStrict.html
  628. fast/dom/compatMode-Compat.html
  629. fast/dom/compatMode-Strict.html
  630. * html/HTMLDocument.cpp:
  631. (WebCore::HTMLDocument::compatMode):
  632. * html/HTMLDocument.h:
  633. * html/HTMLDocument.idl:
  634. 2007-10-07 Sam Weinig <sam@webkit.org>
  635. Reviewed by Darin & Nikolas. Landed by eseidel.
  636. Patch for http://bugs.webkit.org/show_bug.cgi?id=14455
  637. Autogenerate the JS bindings for the StyleSheetList
  638. * DerivedSources.make:
  639. * WebCore.pro:
  640. * WebCore.vcproj/WebCore.vcproj:
  641. * WebCore.xcodeproj/project.pbxproj:
  642. * bindings/js/JSStyleSheetListCustom.cpp: Added.
  643. (WebCore::JSStyleSheetList::canGetItemsForName):
  644. (WebCore::JSStyleSheetList::nameGetter):
  645. * bindings/js/kjs_css.cpp:
  646. * bindings/js/kjs_css.h:
  647. * bindings/objc/DOMUtility.mm:
  648. * bindings/scripts/CodeGeneratorJS.pm:
  649. * css/StyleSheetList.cpp:
  650. (WebCore::StyleSheetList::StyleSheetList):
  651. (WebCore::StyleSheetList::documentDestroyed):
  652. (WebCore::StyleSheetList::getNamedItem):
  653. * css/StyleSheetList.h: Add Document member variable and
  654. getNamedItem function to accommodate the odd javascript
  655. name getter functionality.
  656. * css/StyleSheetList.idl:
  657. * dom/Document.cpp:
  658. (WebCore::Document::Document):
  659. (WebCore::Document::~Document):
  660. * page/DOMWindow.idl: Add StyleSheetListConstructor
  661. 2007-10-07 Lars Naesbye Christensen <lars@naesbye.dk>
  662. Reviewed by Eric Seidel.
  663. make CSS cell cursor more mac-like
  664. http://bugs.webkit.org/show_bug.cgi?id=15325
  665. * Resources/cellCursor.png:
  666. 2007-10-06 Eric Seidel <eric@webkit.org>
  667. Reviewed by Oliver.
  668. SVG does not correctly handle onfocusin, onfocusout or onactivate
  669. http://bugs.webkit.org/show_bug.cgi?id=12573
  670. Test: svg/W3C-SVG-1.1/script-handle-02-b.svg
  671. * ksvg2/svg/SVGElement.cpp:
  672. (WebCore::SVGElement::parseMappedAttribute):
  673. * ksvg2/svg/svgattrs.in: add onfocusin, onfocusout and onactivate
  674. 2007-10-06 Nikolas Zimmermann <zimmermann@kde.org>
  675. Reviewed by Oliver.
  676. Never pass null input images to CICrop filter.
  677. * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
  678. (WebCore::SVGFEComponentTransfer::getCIFilter):
  679. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
  680. 2007-10-06 Mark Rowe <mrowe@apple.com>
  681. Reviewed by Alp Toker.
  682. Gtk+ build fix and minor code cleanup.
  683. * WebCore.pro:
  684. * platform/gtk/FontCacheGtk.cpp:
  685. (WebCore::FontCache::getLastResortFallbackFont):
  686. (WebCore::FontCache::fontExists):
  687. 2007-10-06 Alexey Proskuryakov <ap@webkit.org>
  688. Reviewed by Mitz.
  689. http://bugs.webkit.org/show_bug.cgi?id=15380
  690. XPath: id('foo') doesn't resolve correctly
  691. Test: fast/xpath/id-simple.html
  692. * xml/XPathFunctions.cpp:
  693. (WebCore::XPath::FunId::evaluate): Fixed a logic error in id() parameter parsing.
  694. 2007-10-06 Alexey Proskuryakov <ap@webkit.org>
  695. Reviewed by Darin.
  696. Patch for http://bugs.webkit.org/show_bug.cgi?id=13707
  697. REGRESSION: JavaScript exceptions on quotes.burntelectrons.org
  698. http://bugs.webkit.org/show_bug.cgi?id=12628
  699. document.body is not supported in XHTML documents
  700. http://bugs.webkit.org/show_bug.cgi?id=14213
  701. On page with MIME type application/xhtml+xml, cookie don't work
  702. Moved a bunch of methods and properties from HTMLDocument down into Document to make
  703. them available for all documents (xml, svg).
  704. What was kept in HTMLDocument:
  705. - some methods and properties that are not in HTML5 (yet?);
  706. - open/write/writeln/close, as they will need to be modified to work on XML documents, and aren't
  707. of much use for those anyway;
  708. - designMode, because its definition in HTML5 is incompatible with our implementation.
  709. Covered by existing tests.
  710. * bindings/js/JSDocumentCustom.cpp:
  711. (WebCore::JSDocument::location):
  712. (WebCore::JSDocument::setLocation):
  713. * bindings/js/JSHTMLDocumentCustom.cpp:
  714. * bindings/objc/PublicDOMInterfaces.h:
  715. * dom/Document.cpp:
  716. (WebCore::Document::setBody):
  717. (WebCore::Document::cookie):
  718. (WebCore::Document::setCookie):
  719. (WebCore::Document::lastModified):
  720. * dom/Document.h:
  721. (WebCore::Document::title):
  722. * dom/Document.idl:
  723. * html/HTMLDocument.cpp:
  724. * html/HTMLDocument.h:
  725. * html/HTMLDocument.idl:
  726. 2007-10-06 Eric Seidel <eric@webkit.org>
  727. Reviewed by Oliver Hunt.
  728. RenderSVGContainer (<g>) should not repaint when its bounds change (unless it has a filter)
  729. http://bugs.webkit.org/show_bug.cgi?id=15388
  730. This makes the Sun Lively Kernel invalidate only what it should!
  731. No tests possible in DRT.
  732. * ksvg2/svg/SVGCircleElement.cpp:
  733. (WebCore::SVGCircleElement::notifyAttributeChange): replace call to rebuildRenderer
  734. * ksvg2/svg/SVGEllipseElement.cpp:
  735. (WebCore::SVGEllipseElement::notifyAttributeChange): replace call to rebuildRenderer
  736. * ksvg2/svg/SVGImageElement.cpp:
  737. (WebCore::SVGImageElement::notifyAttributeChange): replace call to rebuildRenderer
  738. (WebCore::SVGImageElement::hasRelativeValues): implemented
  739. * ksvg2/svg/SVGImageElement.h:
  740. * ksvg2/svg/SVGLineElement.cpp:
  741. (WebCore::SVGLineElement::notifyAttributeChange): replace call to rebuildRenderer
  742. * ksvg2/svg/SVGPathElement.cpp:
  743. (WebCore::SVGPathElement::notifyAttributeChange): replace call to rebuildRenderer
  744. * ksvg2/svg/SVGPolyElement.cpp:
  745. (WebCore::SVGPolyElement::notifyAttributeChange): replace call to rebuildRenderer
  746. * ksvg2/svg/SVGRectElement.cpp:
  747. (WebCore::SVGRectElement::notifyAttributeChange): replace call to rebuildRenderer
  748. * ksvg2/svg/SVGStyledElement.cpp:
  749. * ksvg2/svg/SVGStyledElement.h:
  750. (WebCore::SVGStyledElement::hasRelativeValues): default to true instead
  751. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  752. (WebCore::SVGStyledTransformableElement::updateLocalTransform): don't layout if no change
  753. * ksvg2/svg/SVGStyledTransformableElement.h:
  754. * ksvg2/svg/SVGTransform.h:
  755. * rendering/RenderPath.cpp:
  756. (WebCore::RenderPath::layout):
  757. * rendering/RenderPath.h:
  758. * rendering/RenderSVGContainer.cpp:
  759. (WebCore::RenderSVGContainer::layout):
  760. (WebCore::RenderSVGContainer::selfWillPaint): return true if have a filter
  761. (WebCore::RenderSVGContainer::paint):
  762. * rendering/RenderSVGContainer.h:
  763. * rendering/RenderSVGHiddenContainer.cpp:
  764. (WebCore::RenderSVGHiddenContainer::layout):
  765. * rendering/RenderSVGRoot.cpp:
  766. (WebCore::RenderSVGRoot::layout):
  767. * rendering/RenderSVGViewportContainer.cpp:
  768. (WebCore::RenderSVGViewportContainer::layout):
  769. (WebCore::RenderSVGViewportContainer::calcViewport): use floats
  770. 2007-10-06 Rob Buis <buis@kde.org>
  771. Reviewed by Eric.
  772. Use document() instead of ownerDocument() and a few other cleanups.
  773. * ksvg2/misc/SVGDocumentExtensions.cpp:
  774. (WebCore::SVGDocumentExtensions::mapInstanceToElement):
  775. * ksvg2/svg/SVGCircleElement.cpp:
  776. (WebCore::SVGCircleElement::notifyAttributeChange):
  777. * ksvg2/svg/SVGClipPathElement.cpp:
  778. (WebCore::SVGClipPathElement::notifyAttributeChange):
  779. * ksvg2/svg/SVGElementInstance.cpp:
  780. (WebCore::containsUseChildNode):
  781. * ksvg2/svg/SVGEllipseElement.cpp:
  782. (WebCore::SVGEllipseElement::notifyAttributeChange):
  783. * ksvg2/svg/SVGGradientElement.cpp:
  784. (WebCore::SVGGradientElement::notifyAttributeChange):
  785. * ksvg2/svg/SVGImageElement.cpp:
  786. (WebCore::SVGImageElement::notifyAttributeChange):
  787. * ksvg2/svg/SVGLineElement.cpp:
  788. (WebCore::SVGLineElement::notifyAttributeChange):
  789. * ksvg2/svg/SVGMarkerElement.cpp:
  790. (WebCore::SVGMarkerElement::notifyAttributeChange):
  791. * ksvg2/svg/SVGMaskElement.cpp:
  792. (WebCore::SVGMaskElement::notifyAttributeChange):
  793. * ksvg2/svg/SVGPathElement.cpp:
  794. (WebCore::SVGPathElement::notifyAttributeChange):
  795. * ksvg2/svg/SVGPatternElement.cpp:
  796. (WebCore::SVGPatternElement::notifyAttributeChange):
  797. * ksvg2/svg/SVGPolyElement.cpp:
  798. (WebCore::SVGPolyElement::notifyAttributeChange):
  799. * ksvg2/svg/SVGRectElement.cpp:
  800. (WebCore::SVGRectElement::notifyAttributeChange):
  801. * ksvg2/svg/SVGStopElement.cpp:
  802. (WebCore::SVGStopElement::notifyAttributeChange):
  803. 2007-10-05 Eric Seidel <eric@webkit.org>
  804. Reviewed by Oliver Hunt.
  805. SVG invalidates way too much during layout()
  806. http://bugs.webkit.org/show_bug.cgi?id=14003
  807. * ksvg2/svg/SVGElement.cpp:
  808. (WebCore::SVGElement::ownerSVGElement): simplify if
  809. (WebCore::SVGElement::viewportElement): simplify if
  810. * rendering/RenderSVGContainer.cpp:
  811. (WebCore::RenderSVGContainer::layout): only layout children if parent changed
  812. * rendering/RenderSVGRoot.cpp:
  813. (WebCore::RenderSVGRoot::layout): only layout children when size changes
  814. * rendering/RenderSVGText.cpp:
  815. (WebCore::RenderSVGText::layout): hack to avoid bad RenderBlock::layout code
  816. * rendering/RenderSVGViewportContainer.cpp:
  817. (WebCore::RenderSVGViewportContainer::layout): don't use RenderSVGContainer::layout()
  818. 2007-10-05 Oliver Hunt <oliver@apple.com>
  819. Reviewed by Eric.
  820. 30%+ performance improvement for svg embedded in xhtml
  821. Relayout internal to SVG was incorrectly being propagated to
  822. the containing xhtml element, which subsequently resulted in
  823. a full paint of the SVG, rather than just the dirty regions.
  824. * rendering/RenderObject.cpp:
  825. (WebCore::objectIsRelayoutBoundary):
  826. (WebCore::RenderObject::markContainingBlocksForLayout):
  827. 2007-10-03 Eric Seidel <eric@webkit.org>
  828. Reviewed by Maciej.
  829. http://bugs.webkit.org/show_bug.cgi?id=12310
  830. Remove static variables from removeAllChildren causing crash.
  831. removeAllChildren now iterates over the entire tree instead of recursing.
  832. Also (according to Maciej) a possible 1-2% speedboost on HTML iBench.
  833. Test: fast/images/svg-background-crash-on-refresh.html
  834. * WebCore.xcodeproj/project.pbxproj:
  835. * dom/ContainerNode.cpp:
  836. (WebCore::addChildNodesToDeletionQueue):
  837. (WebCore::ContainerNode::removeAllChildren): use new addChildNodesToDeletionQueue
  838. 2007-10-03 David Hyatt <hyatt@apple.com>
  839. Land support for the CSS @font-face rule. This patch allows custom fonts
  840. to be downloaded from the Web and rendered in Web pages. Right now only
  841. TrueType fonts are supported. Proprietary formats like .eot are not
  842. supported.
  843. Reviewed by Eric Seidel
  844. Many tests will be coming in a future landing.
  845. * WebCore.base.exp:
  846. Expose some more stuff for WebKit, caused by font restructuring.
  847. * WebCore.xcodeproj/project.pbxproj:
  848. Add all the new font face files.
  849. * css/CSSComputedStyleDeclaration.cpp:
  850. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  851. Make sure to ignore the 'src' property of @font-face rules.
  852. * css/CSSFontFace.cpp: Added.
  853. (WebCore::CSSFontFace::CSSFontFace):
  854. (WebCore::CSSFontFace::~CSSFontFace):
  855. (WebCore::CSSFontFace::isLoaded):
  856. (WebCore::CSSFontFace::isValid):
  857. (WebCore::CSSFontFace::addSource):
  858. (WebCore::CSSFontFace::fontLoaded):
  859. (WebCore::CSSFontFace::getFontData):
  860. * css/CSSFontFace.h: Added.
  861. A CSSFontFace is a composite object. It consists of multiple font-face sources, where each source represents either a remote or local
  862. file in a @font-face rule's src list.
  863. * css/CSSFontFaceRule.cpp:
  864. (WebCore::CSSFontFaceRule::setDeclaration):
  865. (WebCore::CSSFontFaceRule::cssText):
  866. * css/CSSFontFaceRule.h:
  867. The implementation of the @font-face rule itself in the CSS sheet back end.
  868. * css/CSSFontFaceSource.cpp: Added.
  869. (WebCore::CSSFontFaceSource::CSSFontFaceSource):
  870. (WebCore::CSSFontFaceSource::~CSSFontFaceSource):
  871. (WebCore::CSSFontFaceSource::pruneTable):
  872. (WebCore::CSSFontFaceSource::isLoaded):
  873. (WebCore::CSSFontFaceSource::isValid):
  874. (WebCore::CSSFontFaceSource::fontLoaded):
  875. (WebCore::CSSFontFaceSource::getFontData):
  876. * css/CSSFontFaceSource.h: Added.
  877. (WebCore::CSSFontFaceSource::string):
  878. (WebCore::CSSFontFaceSource::setFontFace):
  879. A font face source represents a single remote or local font. If it represents a remote font than it wraps a CachedFont.
  880. * css/CSSFontFaceSrcValue.cpp: Added.
  881. (WebCore::CSSFontFaceSrcValue::isSupportedFormat):
  882. (WebCore::CSSFontFaceSrcValue::cssText):
  883. * css/CSSFontFaceSrcValue.h: Added.
  884. (WebCore::CSSFontFaceSrcValue::m_isLocal):
  885. (WebCore::CSSFontFaceSrcValue::~CSSFontFaceSrcValue):
  886. (WebCore::CSSFontFaceSrcValue::resource):
  887. (WebCore::CSSFontFaceSrcValue::format):
  888. (WebCore::CSSFontFaceSrcValue::isLocal):
  889. (WebCore::CSSFontFaceSrcValue::setFormat):
  890. Used in parsing. Represents the parsed form of the src value that can then be used to build up a CSSFontFace.
  891. * css/CSSFontSelector.cpp: Added.
  892. (WebCore::CSSFontSelector::CSSFontSelector):
  893. (WebCore::CSSFontSelector::~CSSFontSelector):
  894. (WebCore::CSSFontSelector::isEmpty):
  895. (WebCore::CSSFontSelector::docLoader):
  896. (WebCore::hashForFont):
  897. (WebCore::CSSFontSelector::addFontFaceRule):
  898. (WebCore::CSSFontSelector::fontLoaded):
  899. (WebCore::CSSFontSelector::getFontData):
  900. * css/CSSFontSelector.h: Added.
  901. The CSS font selector is the object that selects the correct font given a specified font family. It builds up a database of CSSFontFaces that can then be handed
  902. back.
  903. * css/CSSGrammar.y:
  904. * css/CSSParser.cpp:
  905. (WebCore::CSSParser::parseValue):
  906. (WebCore::CSSParser::parseFontFaceSrc):
  907. (WebCore::CSSParser::createFontFaceRule):
  908. * css/CSSParser.h:
  909. Modify the CSS grammar to now understand @font-face rules.
  910. * css/CSSPropertyNames.in:
  911. Add the src property.
  912. * css/CSSStyleSelector.cpp:
  913. (WebCore::CSSStyleSelector::CSSStyleSelector):
  914. (WebCore::CSSStyleSelector::styleForElement):
  915. (WebCore::CSSStyleSelector::updateFont):
  916. (WebCore::CSSRuleSet::addRulesFromSheet):
  917. (WebCore::CSSStyleSelector::applyProperty):
  918. (WebCore::CSSStyleSelector::ensureFontSelector):
  919. * css/CSSStyleSelector.h:
  920. (WebCore::CSSStyleSelector::fontSelector):
  921. The style selector now creates a font selector object and feeds it the appropriate information when @font-face rules are encountered.
  922. * dom/Document.cpp:
  923. (WebCore::Document::recalcStyle):
  924. Patch the update method now that it takes a font selector argument.
  925. * loader/Cache.cpp:
  926. (WebCore::createResource):
  927. (WebCore::Cache::getStatistics):
  928. * loader/Cache.h:
  929. Teach the Cache about CachedFonts.
  930. * loader/CachedFont.cpp: Added.
  931. (WebCore::CachedFont::CachedFont):
  932. (WebCore::CachedFont::~CachedFont):
  933. (WebCore::CachedFont::ref):
  934. (WebCore::CachedFont::data):
  935. (WebCore::CachedFont::beginLoadIfNeeded):
  936. (WebCore::CachedFont::ensureCustomFontData):
  937. (WebCore::CachedFont::platformDataFromCustomData):
  938. (WebCore::CachedFont::allReferencesRemoved):
  939. (WebCore::CachedFont::checkNotify):
  940. (WebCore::CachedFont::error):
  941. * loader/CachedFont.h: Added.
  942. (WebCore::CachedFont::schedule):
  943. The implementation of CachedFont. This represents the downloaded resource and has all the raw font data.
  944. * loader/CachedResource.h:
  945. (WebCore::CachedResource::):
  946. * loader/CachedResourceClient.h:
  947. (WebCore::CachedResourceClient::fontLoaded):
  948. Add a new fontLoaded method for clients of cached resources to track when fonts finish downloading.
  949. * loader/DocLoader.cpp:
  950. (WebCore::DocLoader::requestFont):
  951. * loader/DocLoader.h:
  952. Add the ability to request a font.
  953. * platform/Font.cpp:
  954. (WebCore::Font::operator==):
  955. (WebCore::Font::update):
  956. (WebCore::Font::drawText):
  957. * platform/Font.h:
  958. * platform/FontCache.cpp:
  959. (WebCore::FontCache::getFontData):
  960. * platform/FontCache.h:
  961. * platform/FontData.cpp:
  962. (WebCore::FontData::FontData):
  963. * platform/FontData.h:
  964. (WebCore::FontData::isCustomFont):
  965. (WebCore::FontData::isLoading):
  966. * platform/FontFallbackList.cpp:
  967. (WebCore::FontFallbackList::FontFallbackList):
  968. (WebCore::FontFallbackList::invalidate):
  969. (WebCore::FontFallbackList::fontDataAt):
  970. * platform/FontFallbackList.h:
  971. (WebCore::FontFallbackList::loadingCustomFonts):
  972. (WebCore::FontFallbackList::fontSelector):
  973. * platform/FontSelector.h: Added.
  974. (WebCore::FontSelector::~FontSelector):
  975. * platform/GlyphPageTreeNode.cpp:
  976. (WebCore::GlyphPageTreeNode::getRoot):
  977. (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
  978. (WebCore::GlyphPageTreeNode::~GlyphPageTreeNode):
  979. (WebCore::GlyphPageTreeNode::initializePage):
  980. (WebCore::GlyphPageTreeNode::getChild):
  981. (WebCore::GlyphPageTreeNode::pruneCustomFontData):
  982. * platform/GlyphPageTreeNode.h:
  983. (WebCore::GlyphPageTreeNode::GlyphPageTreeNode):
  984. (WebCore::GlyphPageTreeNode::page):
  985. * platform/PopupMenuClient.h:
  986. * platform/mac/FontCacheMac.mm:
  987. (WebCore::FontCache::getFontDataForCharacters):
  988. (WebCore::FontCache::getLastResortFallbackFont):
  989. (WebCore::FontCache::fontExists):
  990. (WebCore::FontCache::createFontPlatformData):
  991. * platform/mac/FontCustomPlatformData.cpp: Added.
  992. (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
  993. (WebCore::FontCustomPlatformData::fontPlatformData):
  994. (WebCore::createFontCustomPlatformData):
  995. * platform/mac/FontCustomPlatformData.h: Added.
  996. (WebCore::FontCustomPlatformData::FontCustomPlatformData):
  997. * platform/mac/FontDataMac.mm:
  998. (WebCore::initFontData):
  999. (WebCore::FontData::platformInit):
  1000. (WebCore::FontData::smallCapsFontData):
  1001. (WebCore::FontData::platformWidthForGlyph):
  1002. (WebCore::FontData::checkShapesArabic):
  1003. * platform/mac/FontMac.mm:
  1004. (WebCore::initializeATSUStyle):
  1005. (WebCore::Font::drawGlyphs):
  1006. * platform/mac/FontPlatformData.h:
  1007. (WebCore::FontPlatformData::FontPlatformData):
  1008. (WebCore::FontPlatformData::hash):
  1009. (WebCore::FontPlatformData::operator==):
  1010. * platform/mac/FontPlatformDataMac.mm: Added.
  1011. (WebCore::FontPlatformData::FontPlatformData):
  1012. (WebCore::~FontPlatformData):
  1013. (WebCore::FontPlatformData::setFont):
  1014. * platform/mac/WebCoreSystemInterface.h:
  1015. * platform/mac/WebCoreSystemInterface.mm:
  1016. * platform/win/FontCacheWin.cpp:
  1017. (WebCore::FontCache::getLastResortFallbackFont):
  1018. (WebCore::FontCache::fontExists):
  1019. * platform/win/FontCustomPlatformData.cpp: Added.
  1020. (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
  1021. (WebCore::FontCustomPlatformData::fontPlatformData):
  1022. (WebCore::getData):
  1023. (WebCore::releaseData):
  1024. (WebCore::getBytesWithOffset):
  1025. (WebCore::createFontCustomPlatformData):
  1026. * platform/win/FontCustomPlatformData.h: Added.
  1027. (WebCore::FontCustomPlatformData::FontCustomPlatformData):
  1028. * platform/win/FontDataWin.cpp:
  1029. (WebCore::FontData::platformInit):
  1030. (WebCore::FontData::platformDestroy):
  1031. (WebCore::FontData::smallCapsFontData):
  1032. (WebCore::FontData::containsCharacters):
  1033. (WebCore::FontData::determinePitch):
  1034. * platform/win/FontPlatformData.h:
  1035. (WebCore::FontPlatformData::FontPlatformData):
  1036. (WebCore::FontPlatformData::hash):
  1037. (WebCore::FontPlatformData::operator==):
  1038. * platform/win/FontPlatformDataWin.cpp:
  1039. (WebCore::FontPlatformData::FontPlatformData):
  1040. * platform/win/PopupMenuWin.cpp:
  1041. (WebCore::PopupMenu::paint):
  1042. Changes to platform to support rendering of custom fonts. Too large to go into, but for ports, the relevant object to implement is
  1043. FontCustomPlatformData (to get the data loaded into your native font format), and then you have to patch your other font objects to know
  1044. how to use the font.
  1045. * rendering/RenderListBox.cpp:
  1046. (WebCore::RenderListBox::updateFromElement):
  1047. (WebCore::RenderListBox::paintItemForeground):
  1048. * rendering/RenderMenuList.cpp:
  1049. (WebCore::RenderMenuList::fontSelector):
  1050. * rendering/RenderMenuList.h:
  1051. * rendering/RenderTextControl.cpp:
  1052. (WebCore::RenderTextControl::fontSelector):
  1053. * rendering/RenderTextControl.h:
  1054. * rendering/RenderThemeMac.mm:
  1055. (WebCore::RenderThemeMac::setFontFromControlSize):
  1056. * rendering/RenderThemeSafari.cpp:
  1057. (WebCore::RenderThemeSafari::setFontFromControlSize):
  1058. Patches for update now taking a font selector argument.
  1059. 2007-10-03 Rob Buis <buis@kde.org>
  1060. Reviewed by Eric.
  1061. Remove unneeded code and other cleanups.
  1062. * ksvg2/svg/SVGScriptElement.cpp:
  1063. (WebCore::SVGScriptElement::parseMappedAttribute):
  1064. * ksvg2/svg/SVGScriptElement.h:
  1065. 2007-10-03 Rob Buis <buis@kde.org>
  1066. Reviewed by Maciej.
  1067. http://bugs.webkit.org/show_bug.cgi?id=15260
  1068. Any styles defined after <element> {<property>:%} style are ignored by Safari
  1069. Add dummy rule to skip constructions like width: %.
  1070. * css/CSSGrammar.y:
  1071. 2007-10-03 Mark Rowe <mrowe@apple.com>
  1072. Reviewed by Lars.
  1073. Get Gtk+ port building on the feature branch.
  1074. * WebCore.pro:
  1075. * ksvg2/svg/SVGSVGElement.cpp:
  1076. * platform/graphics/svg/cairo/RenderPathCairo.cpp:
  1077. (WebCore::RenderPath::strokeContains):
  1078. * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp:
  1079. (WebCore::SVGPaintServer::draw):
  1080. (WebCore::SVGPaintServer::renderPath):
  1081. * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp:
  1082. (WebCore::SVGPaintServerSolid::setup):
  1083. * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp:
  1084. (WebCore::SVGResourceMasker::applyMask):
  1085. * rendering/SVGCharacterLayoutInfo.cpp:
  1086. * rendering/SVGInlineTextBox.cpp:
  1087. * rendering/SVGRootInlineBox.cpp:
  1088. 2007-10-02 Alexey Proskuryakov <ap@webkit.org>
  1089. Reviewed by Maciej.
  1090. http://bugs.webkit.org/show_bug.cgi?id=15102
  1091. XMLHttpRequests should dispatch a readystatechange event.
  1092. Test: http/tests/xmlhttprequest/readystatechange.html
  1093. * xml/XMLHttpRequest.cpp:
  1094. (WebCore::XMLHttpRequest::callReadyStateChangeListener): Added readystatechange
  1095. event support. Fixed the function to dispatch the same event to all listeners
  1096. instead of creating a new copy for each one. Changed bubbling/cancelability of
  1097. load and readystatechange events to match Firefox.
  1098. 2007-10-02 Eric Seidel <eric@webkit.org>
  1099. Reviewed by Oliver Hunt.
  1100. http://bugs.webkit.org/show_bug.cgi?id=13828
  1101. Fixes svg/custom/rootmost-svg-xy-attrs.xhtml
  1102. * WebCore.xcodeproj/project.pbxproj: fix warning about SVGDOM.h
  1103. * ksvg2/svg/SVGSVGElement.cpp:
  1104. (WebCore::SVGSVGElement::viewport): use new isOutermostSVG()
  1105. (WebCore::SVGSVGElement::getCTM): use isOutermostSVG()
  1106. (WebCore::SVGSVGElement::getScreenCTM): use isOutermostSVG()
  1107. (WebCore::SVGSVGElement::createRenderer): use isOutermostSVG()
  1108. (WebCore::SVGSVGElement::isOutermostSVG):
  1109. * ksvg2/svg/SVGSVGElement.h: add isOutermostSVG
  1110. * rendering/RenderSVGRoot.cpp:
  1111. (WebCore::RenderSVGRoot::calcViewport): ignore x/y
  1112. 2007-10-02 Maciej Stachowiak <mjs@apple.com>
  1113. Reviewed by Mitz.
  1114. - Avoid uselessly serializing CSS property values on replacement for 10% CK DOM speedup
  1115. http://bugs.webkit.org/show_bug.cgi?id=15340
  1116. * css/CSSMutableStyleDeclaration.cpp:
  1117. (WebCore::CSSMutableStyleDeclaration::removeProperty): Don't generate return value unless needed.
  1118. (WebCore::CSSMutableStyleDeclaration::setProperty): Use the no-return version appropriately.
  1119. * css/CSSMutableStyleDeclaration.h:
  1120. (WebCore::CSSMutableStyleDeclaration::removeProperty): New version with no return value.
  1121. 2007-10-02 Maciej Stachowiak <mjs@apple.com>
  1122. Reviewed by Oliver.
  1123. - Use Vector<UChar> instead of DeprecatedString for innerHTML, for 35% speedup on CK DOM test
  1124. http://bugs.webkit.org/show_bug.cgi?id=15339
  1125. Rewrote both versions of createMarkup to build based on
  1126. Vector<UChar> instead of String. Also other miscellaneous
  1127. speedups (mainly content strings are now encoded in a way that
  1128. doesn't take a function call per character, and switch is avoided).
  1129. This also causes a functional change - we no longer escape '>' since this was unnecessary and it's faster
  1130. to avoid testing for it. See updated test results.
  1131. * editing/markup.cpp:
  1132. (WebCore::appendString):
  1133. (WebCore::appendAttributeValue):
  1134. (WebCore::escapeContentText):
  1135. (WebCore::appendEscapedContent):
  1136. (WebCore::appendDeprecatedString):
  1137. (WebCore::appendQuotedURLAttributeValue):
  1138. (WebCore::stringValueForRange):
  1139. (WebCore::ucharRange):
  1140. (WebCore::appendUCharRange):
  1141. (WebCore::appendNamespace):
  1142. (WebCore::appendStartMarkup):
  1143. (WebCore::getStartMarkup):
  1144. (WebCore::appendEndMarkup):
  1145. (WebCore::getEndMarkup):
  1146. (WebCore::appendMarkup):
  1147. (WebCore::joinMarkups):
  1148. (WebCore::createMarkup):
  1149. * editing/markup.h:
  1150. * page/mac/WebCoreFrameBridge.mm:
  1151. (-[WebCoreFrameBridge markupStringFromNode:nodes:]):
  1152. (-[WebCoreFrameBridge markupStringFromRange:nodes:]):
  1153. 2007-10-02 Maciej Stachowiak <mjs@apple.com>
  1154. Reviewed by Eric.
  1155. - fixed "innerHTML updates layout every time (very bad if adding to it in a loop)"
  1156. http://bugs.webkit.org/show_bug.cgi?id=15326
  1157. (65% speedup on Celtic Kane JS 2007 DOM test)
  1158. * editing/markup.cpp:
  1159. (WebCore::createMarkup): The Node version of this function currently never uses
  1160. the render tree, so don't bother to update layout. This is the version used for
  1161. innerHTML.
  1162. 2007-10-02 Nicholas Shanks <webkit@nickshanks.com>
  1163. Reviewed by eseidel & hyatt.
  1164. Add support for CSS3 values 'start' and 'end' to text-align property.
  1165. * css/cssparser.cpp:
  1166. (WebCore::CSSParser::parseValue): allow start and end values
  1167. * css/cssstyleselector.cpp:
  1168. (WebCore::CSSStyleSelector::applyProperty): handle start and end values
  1169. 2007-10-01 Oliver Hunt <oliver@apple.com>
  1170. Reviewed by Mark.
  1171. Enable Experimental SVG features by default when building from Xcode
  1172. * Configurations/WebCore.xcconfig:
  1173. 2007-10-01 Eric Seidel <eric@webkit.org>
  1174. Reviewed by Oliver Hunt.
  1175. This only affects Debug builds, and the ability to save SVGs as WebArchives
  1176. neither are testable via DumpRenderTree.
  1177. * Configurations/WebCore.xcconfig: change where Xcode looks for WebCore.exp
  1178. * DerivedSources.make: adds SVG symbols to WebCore.exp when necessary
  1179. * WebCore.SVG.exp: Added.
  1180. * WebCore.exp: moved to WebCore.base.exp
  1181. * WebCore.xcodeproj/project.pbxproj: updated to reflect moved files
  1182. * bindings/objc/DOMSVGExecption.h: moved to DOMSVGException.h
  1183. 2007-10-01 Eric Seidel <eric@webkit.org>
  1184. Reviewed by olliej.
  1185. Make feature-branch build again with ENABLE_SVG_EXPERIMENTAL_FEATURES
  1186. Needed a double -> float change to make the new filter types build.
  1187. Build fix, no test cases.
  1188. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  1189. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  1190. * ksvg2/svg/SVGFECompositeElement.cpp:
  1191. * ksvg2/svg/SVGFECompositeElement.h:
  1192. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  1193. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  1194. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  1195. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  1196. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  1197. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  1198. * ksvg2/svg/SVGFELightElement.cpp:
  1199. * ksvg2/svg/SVGFELightElement.h:
  1200. * ksvg2/svg/SVGFEOffsetElement.cpp:
  1201. * ksvg2/svg/SVGFEOffsetElement.h:
  1202. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  1203. * ksvg2/svg/SVGFESpecularLightingElement.h:
  1204. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  1205. * ksvg2/svg/SVGFETurbulenceElement.h:
  1206. 2007-09-30 Julien <julien.chaffraix@gmail.com>
  1207. Reviewed by aroben & eseidel.
  1208. fix http://bugs.webkit.org/show_bug.cgi?id=14898
  1209. getAllResponseHeaders() separates each header with a CR LF according to the specification
  1210. Test: http/tests/xmlhttprequest/xmlhttprequest-crlf-getAllResponseHeader.html
  1211. * xml/XMLHttpRequest.cpp:
  1212. (WebCore::XMLHttpRequest::getAllResponseHeaders):
  1213. 2007-09-28 Eric Seidel <eric@webkit.org>
  1214. Reviewed by Sam Wenig.
  1215. ASSERT when dragging <svg:image> with non-null prefix
  1216. http://bugs.webkit.org/show_bug.cgi?id=15308
  1217. * bindings/objc/DOM.mm:
  1218. (WebCore::lookupElementClass): added
  1219. (WebCore::elementClass): use new lookupElementClass function
  1220. 2007-09-25 Eric Seidel <eric@webkit.org>
  1221. Reviewed by Mark Rowe.
  1222. I managed to break the SVG build when fixing the --no-svg build for
  1223. http://bugs.webkit.org/show_bug.cgi?id=15281
  1224. This adds the appropriate DOMSVG headers to the copy headers phase
  1225. (in fixing the no-svg build I mistakenly re-marked them project-only)
  1226. * WebCore.xcodeproj/project.pbxproj:
  1227. 2007-09-25 Eric Seidel <eric@webkit.org>
  1228. Reviewed by Rob Buis.
  1229. Already tested by SVG/W3C-SVG-1.1/linking-a-07-t.svg
  1230. * ksvg2/svg/SVGAElement.cpp:
  1231. (WebCore::SVGAElement::defaultEventHandler): properly pass along target values
  1232. 2007-09-22 Oliver Hunt <oliver@apple.com>
  1233. Reviewed by NOBODY (Build fix).
  1234. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  1235. (WebCore::SVGPaintServerGradient::teardown):
  1236. (WebCore::SVGPaintServerGradient::renderPath):
  1237. * rendering/SVGRootInlineBox.cpp:
  1238. (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
  1239. 2007-09-09 Nikolas Zimmermann <zimmermann@kde.org>
  1240. Reviewed by Oliver.
  1241. Rework <pattern> support to take overflow & viewBox into account.
  1242. Also fix all possible combinations of patternUnits/patternContentUnits, tested by several batik testcases.
  1243. (Status: <mask>, <pattern>, <linearGradient>, <radialGradient>, <filter> regions work perfectly. <clipPath> is sill todo)
  1244. While I'm at it, add a very helpful debugging tool "dumpCGOutputImage" and rename "dumpOutputImage" to "dumpCIOutputImage".
  1245. Also fix possible null image buffer problems. (ie. large alloc)
  1246. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12221 (Webkit ToT fails to render this pattern example)
  1247. * ksvg2/svg/PatternAttributes.h:
  1248. (WebCore::PatternAttributes::PatternAttributes):
  1249. (WebCore::PatternAttributes::x):
  1250. (WebCore::PatternAttributes::y):
  1251. (WebCore::PatternAttributes::width):
  1252. (WebCore::PatternAttributes::height):
  1253. (WebCore::PatternAttributes::setX):
  1254. (WebCore::PatternAttributes::setY):
  1255. (WebCore::PatternAttributes::setWidth):
  1256. (WebCore::PatternAttributes::setHeight):
  1257. * ksvg2/svg/SVGPatternElement.cpp:
  1258. (WebCore::SVGPatternElement::buildPattern):
  1259. (WebCore::SVGPatternElement::collectPatternProperties):
  1260. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  1261. (WebCore::SVGPaintServerGradient::setup):
  1262. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  1263. (WebCore::patternCallback):
  1264. (WebCore::SVGPaintServerPattern::setup):
  1265. * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
  1266. (WebCore::dumpCIOutputImage):
  1267. (WebCore::dumpCGOutputImage):
  1268. 2007-09-05 Nikolas Zimmermann <zimmermann@kde.org>
  1269. Reviewed by Oliver.
  1270. Fix <mask> in userSpaceOnUse coordinates. Verified by new testcase taken from Batik.
  1271. * ksvg2/svg/SVGMaskElement.cpp:
  1272. (WebCore::SVGMaskElement::drawMaskerContent):
  1273. 2007-09-03 Nikolas Zimmermann <zimmermann@kde.org>
  1274. Reviewed by Oliver.
  1275. Rewrite text painting code path, to be based on "text chunks" instead of using the InlineBox* hierarchy.
  1276. This allows us to reuse paint servers as long as possible - and to actually paint in the way didacted by the spec.
  1277. This also implements advanced SVG text decorations (ie. stroked/filled decos with gradient/pattern).
  1278. Fixes: http://bugs.webkit.org/show_bug.cgi?id=7200 (Gradient appears and disappears in SVG when text is off screen)
  1279. Fixes paint server usage on text paths. (ie. styled text paths, with gradients/filters).
  1280. * platform/graphics/svg/SVGPaintServer.h:
  1281. * platform/graphics/svg/SVGPaintServerGradient.h:
  1282. * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
  1283. (WebCore::SVGPaintServer::draw):
  1284. (WebCore::SVGPaintServer::renderPath):
  1285. (WebCore::SVGPaintServer::strokePath):
  1286. (WebCore::SVGPaintServer::clipToStrokePath):
  1287. (WebCore::SVGPaintServer::fillPath):
  1288. (WebCore::SVGPaintServer::clipToFillPath):
  1289. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  1290. (WebCore::findTextRootObject):
  1291. (WebCore::SVGPaintServerGradient::teardown):
  1292. (WebCore::SVGPaintServerGradient::renderPath):
  1293. (WebCore::SVGPaintServerGradient::handleBoundingBoxModeAndGradientTransformation):
  1294. (WebCore::SVGPaintServerGradient::setup):
  1295. * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
  1296. (WebCore::SVGPaintServerSolid::setup):
  1297. * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
  1298. (WebCore::SVGPaintServer::draw):
  1299. (WebCore::SVGPaintServer::renderPath):
  1300. * rendering/RenderSVGInlineText.cpp:
  1301. * rendering/RenderSVGTSpan.cpp:
  1302. * rendering/RenderSVGText.cpp:
  1303. * rendering/RenderSVGTextPath.cpp:
  1304. * rendering/SVGCharacterLayoutInfo.h:
  1305. (WebCore::SVGTextChunkWalkerBase::~SVGTextChunkWalkerBase):
  1306. (WebCore::SVGTextChunkWalker::SVGTextChunkWalker):
  1307. (WebCore::SVGTextChunkWalker::operator()):
  1308. (WebCore::SVGTextChunkWalker::start):
  1309. (WebCore::SVGTextChunkWalker::end):
  1310. (WebCore::SVGTextChunkWalker::setupFill):
  1311. (WebCore::SVGTextChunkWalker::setupStroke):
  1312. * rendering/SVGInlineFlowBox.h:
  1313. * rendering/SVGInlineTextBox.cpp:
  1314. (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::SVGInlineTextBoxClosestCharacterToPositionWalker):
  1315. (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
  1316. (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::character):
  1317. (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::offset):
  1318. (WebCore::SVGInlineTextBoxSelectionRectWalker::SVGInlineTextBoxSelectionRectWalker):
  1319. (WebCore::SVGInlineTextBoxSelectionRectWalker::chunkPortionCallback):
  1320. (WebCore::SVGInlineTextBoxSelectionRectWalker::selectionRect):
  1321. (WebCore::SVGInlineTextBox::closestCharacterToPosition):
  1322. (WebCore::SVGInlineTextBox::selectionRect):
  1323. (WebCore::SVGInlineTextBox::paintCharacters):
  1324. (WebCore::SVGInlineTextBox::paintSelection):
  1325. (WebCore::pathForDecoration):
  1326. (WebCore::SVGInlineTextBox::paintDecoration):
  1327. * rendering/SVGInlineTextBox.h:
  1328. * rendering/SVGRenderSupport.cpp:
  1329. (WebCore::prepareToRenderSVGContent):
  1330. * rendering/SVGRenderSupport.h:
  1331. * rendering/SVGRootInlineBox.cpp:
  1332. (WebCore::SVGRootInlineBoxPaintWalker::SVGRootInlineBoxPaintWalker):
  1333. (WebCore::SVGRootInlineBoxPaintWalker::~SVGRootInlineBoxPaintWalker):
  1334. (WebCore::SVGRootInlineBoxPaintWalker::teardownFillPaintServer):
  1335. (WebCore::SVGRootInlineBoxPaintWalker::teardownStrokePaintServer):
  1336. (WebCore::SVGRootInlineBoxPaintWalker::chunkStartCallback):
  1337. (WebCore::SVGRootInlineBoxPaintWalker::chunkEndCallback):
  1338. (WebCore::SVGRootInlineBoxPaintWalker::chunkSetupFillCallback):
  1339. (WebCore::SVGRootInlineBoxPaintWalker::chunkSetupStrokeCallback):
  1340. (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
  1341. (WebCore::SVGRootInlineBox::paint):
  1342. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
  1343. (WebCore::addPaintServerToTextDecorationInfo):
  1344. (WebCore::SVGRootInlineBox::retrievePaintServersForTextDecoration):
  1345. (WebCore::SVGRootInlineBox::walkTextChunks):
  1346. * rendering/SVGRootInlineBox.h:
  1347. 2007-08-27 Nikolas Zimmermann <zimmermann@kde.org>
  1348. Reviewed by Mitz.
  1349. Expose unitsPerEm() in Font classes.
  1350. This is needed to implement SVG's advanced text decorations. We won't draw lines for text-decorations
  1351. but fillable & strokable rectangles with a certain height, computed through unitsPerEm & font size.
  1352. * platform/Font.cpp:
  1353. (WebCore::Font::unitsPerEm):
  1354. * platform/Font.h:
  1355. * platform/FontData.h:
  1356. (WebCore::FontData::unitsPerEm):
  1357. * platform/gdk/FontDataGdk.cpp:
  1358. (WebCore::FontData::platformInit):
  1359. * platform/mac/FontDataMac.mm:
  1360. (WebCore::FontData::platformInit):
  1361. * platform/qt/FontDataQt.cpp:
  1362. (WebCore::FontData::platformInit):
  1363. * platform/win/FontDataWin.cpp:
  1364. (WebCore::FontData::platformInit):
  1365. * platform/wx/FontDataWx.cpp:
  1366. (WebCore::FontData::platformInit):
  1367. 2007-08-27 Oliver Hunt <oliver@apple.com>
  1368. Reviewed by NOBODY (Build fix).
  1369. Initialise iterators to appease gcc
  1370. * rendering/SVGInlineTextBox.cpp:
  1371. (WebCore::SVGInlineTextBox::closestCharacterToPosition):
  1372. 2007-08-22 Rob Buis <buis@kde.org>
  1373. Reviewed by Sam.
  1374. http://bugs.webkit.org/show_bug.cgi?id=12059
  1375. SVG colors have two separate parsing paths (one CSS and one SVGColor::setRGBColor)
  1376. Reuse the css parser as much as possible in setRGBColor.
  1377. * css/cssparser.cpp:
  1378. (WebCore::CSSParser::parseColor):
  1379. * css/cssparser.h:
  1380. * editing/ApplyStyleCommand.cpp:
  1381. (WebCore::StyleChange::checkForLegacyHTMLStyleChange):
  1382. * html/CanvasGradient.cpp:
  1383. (WebCore::CanvasGradient::addColorStop):
  1384. * html/CanvasRenderingContext2D.cpp:
  1385. (WebCore::CanvasRenderingContext2D::setShadow):
  1386. (WebCore::CanvasRenderingContext2D::applyShadow):
  1387. * html/CanvasStyle.cpp:
  1388. (WebCore::CanvasStyle::applyStrokeColor):
  1389. (WebCore::CanvasStyle::applyFillColor):
  1390. * ksvg2/svg/SVGColor.cpp:
  1391. (WebCore::SVGColor::colorFromRGBColorString):
  1392. 2007-08-21 Nikolas Zimmermann <zimmermann@kde.org>
  1393. Reviewed by Oliver.
  1394. Large SVG filter rework. Bring it back in a useable state.
  1395. Fixes: http://bugs.webkit.org/show_bug.cgi?id=5527 (Filters need subregion support)
  1396. Fixes: http://bugs.webkit.org/show_bug.cgi?id=5579 (WebKit+SVG renders full-filters-example incorrectly)
  1397. Fixes: http://bugs.webkit.org/show_bug.cgi?id=5976 (filterUnits="userSpaceOnUse" is broken (breaking feTile test case))
  1398. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12064 (Need function for manual style-resolution for things like gradient stops)
  1399. filters-blend-01-b.svg & filters-example-01-b.svg & filters-displace-01-b.svg & filters-diffuse-01-f.svg are fixed now.
  1400. In detail:
  1401. - flood-color & flood-opacity have been incorrectly resolved on the <feBlend> parent element!
  1402. - sizing of filter region was truncated in some cases, as the bbox was used to resolve the needed filter region instead of the filter rect
  1403. - add subregion support to all filter primitives (primitiveUnits & filterUnits handled in all cases)
  1404. - WKDisplacmentMap.cikernel incorrectly flipped the y-axis.
  1405. - Correctly specify default values for all filter primitives in ksvg2/svg!
  1406. - Initialize all variables of the SVGFE* classes in platform/graphics/svg/filters.
  1407. - Fix 'flood-color' initial value (was set to the _stop_ color initial value)
  1408. -> both initial values were pointing to 'black' though, so it was no visible problem.
  1409. - Parse 'lighting-color' css property, no more hacking in SVGFEDiffuseLighting.
  1410. -> Correct it's initial from black to white value fixes SVG lighting filters!
  1411. - Add diffuseConstant support to feDiffuseLighting filter.
  1412. - Centralize manual style resolution (needed for stop-color, flood-color & flood-opacity, lighting-color)
  1413. * ksvg2/css/SVGCSSParser.cpp:
  1414. * ksvg2/css/SVGCSSStyleSelector.cpp:
  1415. (WebCore::CSSStyleSelector::applySVGProperty):
  1416. * ksvg2/css/SVGRenderStyle.h:
  1417. * ksvg2/css/SVGRenderStyleDefs.cpp:
  1418. (StyleMiscData::StyleMiscData):
  1419. (StyleMiscData::operator==):
  1420. * ksvg2/css/SVGRenderStyleDefs.h:
  1421. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  1422. (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
  1423. * ksvg2/svg/SVGFEBlendElement.cpp:
  1424. (WebCore::SVGFEBlendElement::SVGFEBlendElement):
  1425. (WebCore::SVGFEBlendElement::filterEffect):
  1426. * ksvg2/svg/SVGFEBlendElement.h:
  1427. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  1428. (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
  1429. (WebCore::SVGFEColorMatrixElement::filterEffect):
  1430. * ksvg2/svg/SVGFEColorMatrixElement.h:
  1431. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  1432. (WebCore::SVGFEComponentTransferElement::filterEffect):
  1433. * ksvg2/svg/SVGFEComponentTransferElement.h:
  1434. * ksvg2/svg/SVGFECompositeElement.cpp:
  1435. (WebCore::SVGFECompositeElement::SVGFECompositeElement):
  1436. (WebCore::SVGFECompositeElement::parseMappedAttribute):
  1437. (WebCore::SVGFECompositeElement::filterEffect):
  1438. * ksvg2/svg/SVGFECompositeElement.h:
  1439. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  1440. (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
  1441. (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
  1442. (WebCore::SVGFEDiffuseLightingElement::filterEffect):
  1443. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  1444. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  1445. (WebCore::SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
  1446. (WebCore::SVGFEDisplacementMapElement::filterEffect):
  1447. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  1448. * ksvg2/svg/SVGFEDistantLightElement.cpp:
  1449. (WebCore::SVGFEDistantLightElement::SVGFEDistantLightElement):
  1450. * ksvg2/svg/SVGFEDistantLightElement.h:
  1451. * ksvg2/svg/SVGFEFloodElement.cpp:
  1452. (WebCore::SVGFEFloodElement::filterEffect):
  1453. * ksvg2/svg/SVGFEFloodElement.h:
  1454. * ksvg2/svg/SVGFEFuncAElement.cpp:
  1455. * ksvg2/svg/SVGFEFuncAElement.h:
  1456. * ksvg2/svg/SVGFEFuncBElement.cpp:
  1457. * ksvg2/svg/SVGFEFuncBElement.h:
  1458. * ksvg2/svg/SVGFEFuncGElement.cpp:
  1459. (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
  1460. * ksvg2/svg/SVGFEFuncGElement.h:
  1461. * ksvg2/svg/SVGFEFuncRElement.cpp:
  1462. * ksvg2/svg/SVGFEFuncRElement.h:
  1463. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  1464. (WebCore::SVGFEGaussianBlurElement::filterEffect):
  1465. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  1466. * ksvg2/svg/SVGFEImageElement.cpp:
  1467. (WebCore::SVGFEImageElement::notifyFinished):
  1468. (WebCore::SVGFEImageElement::filterEffect):
  1469. * ksvg2/svg/SVGFEImageElement.h:
  1470. * ksvg2/svg/SVGFELightElement.cpp:
  1471. (WebCore::SVGFELightElement::SVGFELightElement):
  1472. * ksvg2/svg/SVGFELightElement.h:
  1473. * ksvg2/svg/SVGFEMergeElement.cpp:
  1474. (WebCore::SVGFEMergeElement::filterEffect):
  1475. * ksvg2/svg/SVGFEMergeElement.h:
  1476. * ksvg2/svg/SVGFEMergeNodeElement.cpp:
  1477. * ksvg2/svg/SVGFEMergeNodeElement.h:
  1478. * ksvg2/svg/SVGFEOffsetElement.cpp:
  1479. (WebCore::SVGFEOffsetElement::filterEffect):
  1480. * ksvg2/svg/SVGFEOffsetElement.h:
  1481. * ksvg2/svg/SVGFEPointLightElement.h:
  1482. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  1483. (WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
  1484. (WebCore::SVGFESpecularLightingElement::parseMappedAttribute):
  1485. (WebCore::SVGFESpecularLightingElement::filterEffect):
  1486. (WebCore::SVGFESpecularLightingElement::updateLights):
  1487. * ksvg2/svg/SVGFESpecularLightingElement.h:
  1488. * ksvg2/svg/SVGFESpotLightElement.cpp:
  1489. (WebCore::SVGFESpotLightElement::lightSource):
  1490. * ksvg2/svg/SVGFESpotLightElement.h:
  1491. * ksvg2/svg/SVGFETileElement.cpp:
  1492. (WebCore::SVGFETileElement::filterEffect):
  1493. * ksvg2/svg/SVGFETileElement.h:
  1494. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  1495. (WebCore::SVGFETurbulenceElement::SVGFETurbulenceElement):
  1496. (WebCore::SVGFETurbulenceElement::filterEffect):
  1497. * ksvg2/svg/SVGFETurbulenceElement.h:
  1498. * ksvg2/svg/SVGFilterElement.cpp:
  1499. (WebCore::SVGFilterElement::canvasResource):
  1500. * ksvg2/svg/SVGFilterElement.h:
  1501. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  1502. (WebCore::SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
  1503. (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  1504. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  1505. * ksvg2/svg/SVGGradientElement.cpp:
  1506. (WebCore::SVGGradientElement::buildStops):
  1507. * ksvg2/svg/SVGStyledElement.cpp:
  1508. (WebCore::SVGStyledElement::resolveStyle):
  1509. * ksvg2/svg/SVGStyledElement.h:
  1510. * platform/graphics/svg/SVGResourceFilter.cpp:
  1511. (WebCore::SVGResourceFilter::addFilterEffect):
  1512. (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
  1513. * platform/graphics/svg/SVGResourceFilter.h:
  1514. (WebCore::SVGResourceFilter::xBoundingBoxMode):
  1515. (WebCore::SVGResourceFilter::setXBoundingBoxMode):
  1516. (WebCore::SVGResourceFilter::yBoundingBoxMode):
  1517. (WebCore::SVGResourceFilter::setYBoundingBoxMode):
  1518. * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
  1519. (WebCore::SVGResourceFilter::SVGResourceFilter):
  1520. (WebCore::SVGResourceFilter::createFilterEffect):
  1521. (WebCore::SVGResourceFilter::prepareFilter):
  1522. (WebCore::dumpOutputImage):
  1523. (WebCore::SVGResourceFilter::applyFilter):
  1524. (WebCore::SVGResourceFilter::getCIFilterStack):
  1525. (WebCore::SVGResourceFilter::imageForName):
  1526. (WebCore::SVGResourceFilter::setImageForName):
  1527. (WebCore::SVGResourceFilter::setOutputImage):
  1528. (WebCore::alphaImageForImage):
  1529. (WebCore::SVGResourceFilter::inputImage):
  1530. * platform/graphics/svg/filters/SVGDistantLightSource.h:
  1531. * platform/graphics/svg/filters/SVGFEBlend.cpp:
  1532. (WebCore::SVGFEBlend::SVGFEBlend):
  1533. * platform/graphics/svg/filters/SVGFEBlend.h:
  1534. * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
  1535. (WebCore::SVGFEColorMatrix::SVGFEColorMatrix):
  1536. * platform/graphics/svg/filters/SVGFEColorMatrix.h:
  1537. * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
  1538. (WebCore::SVGFEComponentTransfer::SVGFEComponentTransfer):
  1539. * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
  1540. (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
  1541. * platform/graphics/svg/filters/SVGFEComposite.cpp:
  1542. (WebCore::SVGFEComposite::SVGFEComposite):
  1543. * platform/graphics/svg/filters/SVGFEComposite.h:
  1544. * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
  1545. (WebCore::SVGFEConvolveMatrix::SVGFEConvolveMatrix):
  1546. * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
  1547. * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
  1548. (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
  1549. * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
  1550. * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
  1551. (WebCore::SVGFEDisplacementMap::SVGFEDisplacementMap):
  1552. * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
  1553. * platform/graphics/svg/filters/SVGFEFlood.cpp:
  1554. (WebCore::SVGFEFlood::SVGFEFlood):
  1555. * platform/graphics/svg/filters/SVGFEFlood.h:
  1556. * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
  1557. (WebCore::SVGFEGaussianBlur::SVGFEGaussianBlur):
  1558. * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
  1559. * platform/graphics/svg/filters/SVGFEImage.cpp:
  1560. (WebCore::SVGFEImage::SVGFEImage):
  1561. * platform/graphics/svg/filters/SVGFEImage.h:
  1562. * platform/graphics/svg/filters/SVGFEMerge.cpp:
  1563. * platform/graphics/svg/filters/SVGFEMerge.h:
  1564. (WebCore::SVGFEMerge::SVGFEMerge):
  1565. * platform/graphics/svg/filters/SVGFEMorphology.cpp:
  1566. (WebCore::SVGFEMorphology::SVGFEMorphology):
  1567. * platform/graphics/svg/filters/SVGFEMorphology.h:
  1568. * platform/graphics/svg/filters/SVGFEOffset.cpp:
  1569. (WebCore::SVGFEOffset::SVGFEOffset):
  1570. * platform/graphics/svg/filters/SVGFEOffset.h:
  1571. * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
  1572. (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
  1573. * platform/graphics/svg/filters/SVGFESpecularLighting.h:
  1574. * platform/graphics/svg/filters/SVGFETile.h:
  1575. (WebCore::SVGFETile::SVGFETile):
  1576. * platform/graphics/svg/filters/SVGFETurbulence.cpp:
  1577. (WebCore::SVGFETurbulence::SVGFETurbulence):
  1578. * platform/graphics/svg/filters/SVGFETurbulence.h:
  1579. * platform/graphics/svg/filters/SVGFilterEffect.cpp:
  1580. (WebCore::SVGFilterEffect::SVGFilterEffect):
  1581. (WebCore::SVGFilterEffect::primitiveBBoxForFilterBBox):
  1582. (WebCore::SVGFilterEffect::filter):
  1583. (WebCore::SVGFilterEffect::setFilter):
  1584. * platform/graphics/svg/filters/SVGFilterEffect.h:
  1585. (WebCore::SVGFilterEffect::xBoundingBoxMode):
  1586. (WebCore::SVGFilterEffect::setXBoundingBoxMode):
  1587. (WebCore::SVGFilterEffect::yBoundingBoxMode):
  1588. (WebCore::SVGFilterEffect::setYBoundingBoxMode):
  1589. (WebCore::SVGFilterEffect::widthBoundingBoxMode):
  1590. (WebCore::SVGFilterEffect::setWidthBoundingBoxMode):
  1591. (WebCore::SVGFilterEffect::heightBoundingBoxMode):
  1592. (WebCore::SVGFilterEffect::setHeightBoundingBoxMode):
  1593. * platform/graphics/svg/filters/SVGLightSource.cpp:
  1594. * platform/graphics/svg/filters/SVGLightSource.h:
  1595. * platform/graphics/svg/filters/SVGPointLightSource.h:
  1596. (WebCore::SVGPointLightSource::SVGPointLightSource):
  1597. * platform/graphics/svg/filters/SVGSpotLightSource.h:
  1598. (WebCore::SVGSpotLightSource::SVGSpotLightSource):
  1599. * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
  1600. (WebCore::SVGFEBlend::getCIFilter):
  1601. * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
  1602. (WebCore::SVGFEColorMatrix::getCIFilter):
  1603. * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
  1604. (WebCore::filterForComponentFunc):
  1605. (WebCore::SVGFEComponentTransfer::getCIFilter):
  1606. * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
  1607. (WebCore::SVGFEComposite::getCIFilter):
  1608. * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
  1609. (WebCore::SVGFEDiffuseLighting::getCIFilter):
  1610. * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
  1611. (WebCore::SVGFEDisplacementMap::getCIFilter):
  1612. * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
  1613. (WebCore::SVGFEFlood::getCIFilter):
  1614. * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm:
  1615. (WebCore::SVGFEGaussianBlur::getCIFilter):
  1616. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
  1617. * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
  1618. (WebCore::SVGFEImage::getCIFilter):
  1619. * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
  1620. (WebCore::SVGFEMerge::getCIFilter):
  1621. * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm:
  1622. (WebCore::SVGFEOffset::getCIFilter):
  1623. * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
  1624. (WebCore::SVGFESpecularLighting::getCIFilter):
  1625. * platform/graphics/svg/filters/cg/SVGFETileCg.mm:
  1626. (WebCore::SVGFETile::getCIFilter):
  1627. * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm:
  1628. (WebCore::SVGFilterEffect::getCIFilter):
  1629. * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.cikernel:
  1630. * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.cikernel:
  1631. * platform/graphics/svg/filters/cg/WKSpotLightFilter.m:
  1632. (-[WKSpotLightFilter outputImage]):
  1633. * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
  1634. (WebCore::SVGResourceFilter::createFilterEffect):
  1635. 2007-08-20 Rob Buis <buis@kde.org>
  1636. Reviewed by Nikolas.
  1637. http://bugs.webkit.org/show_bug.cgi?id=14924
  1638. rotated rect with pattern draws incorrectly
  1639. Use the bounding box before transformation.
  1640. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  1641. (WebCore::SVGPaintServerPattern::setup):
  1642. 2007-08-19 Rob Buis <buis@kde.org>
  1643. Reviewed by Nikolas.
  1644. http://bugs.webkit.org/show_bug.cgi?id=14926
  1645. WebKit has 'em' length handling problems related to CSS properties
  1646. Parse the properties in inline style attributes non-strict for SVG.
  1647. * dom/StyledElement.cpp:
  1648. (WebCore::StyledElement::createInlineStyleDecl):
  1649. 2007-08-17 Rob Buis <buis@kde.org>
  1650. Reviewed by Oliver.
  1651. http://bugs.webkit.org/show_bug.cgi?id=14927
  1652. use element in SVG does not render after parent is displayed off and on
  1653. Also detach the shadow tree when detaching the <use>.
  1654. * ksvg2/svg/SVGUseElement.cpp:
  1655. (WebCore::SVGUseElement::detach):
  1656. * ksvg2/svg/SVGUseElement.h:
  1657. 2007-08-10 Nikolas Zimmermann <zimmermann@kde.org>
  1658. Reviewed by Rob.
  1659. Fixes: http://bugs.webkit.org/show_bug.cgi?id=14153
  1660. Final, long-awaited RenderSVGContainer split. Make RenderSVGContainer really a simple
  1661. container without special cases for inner <svg> elements or <marker>. Create a new
  1662. RenderSVGViewportContainer class handling these cases now.
  1663. * WebCore.xcodeproj/project.pbxproj:
  1664. * ksvg2/svg/SVGMarkerElement.cpp:
  1665. (WebCore::SVGMarkerElement::createRenderer):
  1666. * ksvg2/svg/SVGSVGElement.cpp:
  1667. (WebCore::SVGSVGElement::createRenderer):
  1668. * ksvg2/svg/SVGSVGElement.h:
  1669. * rendering/RenderSVGContainer.cpp:
  1670. (WebCore::RenderSVGContainer::layout):
  1671. (WebCore::RenderSVGContainer::applyContentTransforms):
  1672. (WebCore::RenderSVGContainer::applyAdditionalTransforms):
  1673. (WebCore::RenderSVGContainer::paint):
  1674. (WebCore::RenderSVGContainer::viewportTransform):
  1675. (WebCore::RenderSVGContainer::relativeBBox):
  1676. (WebCore::RenderSVGContainer::nodeAtPoint):
  1677. * rendering/RenderSVGContainer.h:
  1678. * rendering/RenderSVGRoot.cpp:
  1679. * rendering/RenderSVGViewportContainer.cpp: Added.
  1680. (WebCore::RenderSVGViewportContainer::RenderSVGViewportContainer):
  1681. (WebCore::RenderSVGViewportContainer::~RenderSVGViewportContainer):
  1682. (WebCore::RenderSVGViewportContainer::layout):
  1683. (WebCore::RenderSVGViewportContainer::paint):
  1684. (WebCore::RenderSVGViewportContainer::applyContentTransforms):
  1685. (WebCore::RenderSVGViewportContainer::applyAdditionalTransforms):
  1686. (WebCore::RenderSVGViewportContainer::viewport):
  1687. (WebCore::RenderSVGViewportContainer::calcViewport):
  1688. (WebCore::RenderSVGViewportContainer::viewportTransform):
  1689. (WebCore::RenderSVGViewportContainer::absoluteTransform):
  1690. (WebCore::RenderSVGViewportContainer::nodeAtPoint):
  1691. * rendering/RenderSVGViewportContainer.h: Added.
  1692. (WebCore::RenderSVGViewportContainer::isSVGContainer):
  1693. (WebCore::RenderSVGViewportContainer::renderName):
  1694. 2007-08-10 Nikolas Zimmermann <zimmermann@kde.org>
  1695. Reviewed by Oliver & Rob.
  1696. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12501 (SVG Text fails to respect opacity, fill-opacity and stroke-opacity)
  1697. Fixes: http://bugs.webkit.org/show_bug.cgi?id=14045 (Incorrect support for opacity, fill-opacity and stroke-opacity)
  1698. Based on an older patch from Rob, this fixes SVG text opacity as well as group opacity for solid fills & gradients.
  1699. The pattern changes are still missing a testcase (need to wait for Antoine Quint for that).
  1700. * platform/graphics/svg/SVGResourceFilter.h:
  1701. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  1702. (WebCore::SVGPaintServerGradient::setup):
  1703. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  1704. (WebCore::SVGPaintServerPattern::setup):
  1705. * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
  1706. (WebCore::colorFromFloatComponents):
  1707. (WebCore::SVGPaintServerSolid::setup):
  1708. * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
  1709. (WebCore::SVGResourceFilter::SVGResourceFilter):
  1710. (WebCore::SVGResourceFilter::prepareFilter):
  1711. (WebCore::SVGResourceFilter::applyFilter):
  1712. * rendering/RenderPath.cpp:
  1713. (WebCore::RenderPath::paint):
  1714. * rendering/RenderSVGContainer.cpp:
  1715. (WebCore::RenderSVGContainer::paint):
  1716. (WebCore::RenderSVGContainer::absoluteClippedOverflowRect):
  1717. * rendering/RenderSVGImage.cpp:
  1718. (WebCore::RenderSVGImage::paint):
  1719. (WebCore::RenderSVGImage::absoluteClippedOverflowRect):
  1720. * rendering/RenderSVGRoot.cpp:
  1721. (WebCore::RenderSVGRoot::paint):
  1722. * rendering/RenderSVGText.cpp:
  1723. (WebCore::RenderSVGText::absoluteClippedOverflowRect):
  1724. * rendering/SVGRenderSupport.cpp:
  1725. (WebCore::prepareToRenderSVGContent):
  1726. (WebCore::finishRenderSVGContent):
  1727. * rendering/SVGRenderSupport.h:
  1728. * rendering/SVGRootInlineBox.cpp:
  1729. (WebCore::prepareTextRendering):
  1730. (WebCore::SVGRootInlineBox::paint):
  1731. (WebCore::SVGRootInlineBox::paintChildInlineFlowBox):
  1732. 2007-08-08 Rob Buis <buis@kde.org>
  1733. Reviewed by Nikolas.
  1734. http://bugs.webkit.org/show_bug.cgi?id=11909
  1735. Regression: large SVG from Illustrator comes out blank
  1736. Fix last issue with the Illustrator file by making relativeBBox
  1737. calculation take into account viewBox.
  1738. * rendering/RenderSVGContainer.cpp:
  1739. (WebCore::RenderSVGContainer::relativeBBox):
  1740. * rendering/RenderSVGRoot.cpp:
  1741. (WebCore::RenderSVGRoot::relativeBBox):
  1742. 2007-08-08 Nikolas Zimmermann <zimmermann@kde.org>
  1743. Reviewed by Oliver.
  1744. Fixes: http://bugs.webkit.org/show_bug.cgi?id=14896 (SVG InlineText/Flow box sizes don't take rotated glyphs into account)
  1745. Introduce new helper function calculateGlyphBoundaries, which takes into account any per-character transformation.
  1746. This fixes box size calculations in svg/W3C-SVG-1.1/text-text-07-t.svg, svg/batik/text/textEffect3.svg (rotated glyphs)
  1747. -> These strings can be properly selected now, just as well as text path elements.
  1748. * rendering/SVGInlineTextBox.cpp:
  1749. (WebCore::SVGInlineTextBox::calculateGlyphBoundaries):
  1750. (WebCore::SVGInlineTextBox::closestCharacterToPosition):
  1751. (WebCore::SVGInlineTextBox::nodeAtPoint):
  1752. (WebCore::SVGInlineTextBox::selectionRect):
  1753. * rendering/SVGInlineTextBox.h:
  1754. * rendering/SVGRootInlineBox.cpp:
  1755. (WebCore::SVGRootInlineBox::layoutInlineBoxes):
  1756. 2007-08-08 Nikolas Zimmermann <zimmermann@kde.org>
  1757. Reviewed by Oliver.
  1758. Fixes: http://bugs.webkit.org/show_bug.cgi?id=13909 (SVG text selection doesn't work with RTL text)
  1759. Use drawHighlightForText() to draw the selection, instead of my home-brewn solution.
  1760. Affected code in SVGRootInlineBox::paintSelectionForTextBox. Removed not anymore needed
  1761. helper function cummulatedWidthOfSelectionRange.
  1762. Dump all contained InlineTextBox(es) in SVGRenderTreeAsText, take into account multiple
  1763. child text boxes in ie. a RenderSVGInlineText objects (which happens for RTL text and
  1764. LTR text cases where newlines were involved - see changed testcase results.)
  1765. This affects a lot of LTR tests which actually had more than one child text box, that
  1766. wasn't taken properly into account before (in terms of selection, not rendering.)
  1767. Fix selection for RTL text by taking box start offsets into account in closestCharacterToPosition()
  1768. and by offering RTL text selection special cases in svgCharacterHitsPosition().
  1769. Centralized the creation of a TextStyle object for text selection/painting in a new helper function
  1770. svgTextStyleForInlineTextBox. Add new helper functions calculateGlyphWidth/calculateGlyphHeight to
  1771. centralize these calculations -> use these new helpers everywhere to avoid code duplication.
  1772. A single fix in bidi.cpp was needed to fix SVG's unicode-bidi/direction handling, to fix text-intro-02-b.svg.
  1773. SVG didacts that the 'direction' attribute is ignored if unicode-bidi is set to 'normal' (default).
  1774. Discussed with Mitz.
  1775. * rendering/RenderSVGInlineText.cpp:
  1776. (WebCore::RenderSVGInlineText::positionForCoordinates):
  1777. * rendering/SVGInlineTextBox.cpp:
  1778. (WebCore::SVGInlineTextBox::calculateGlyphWidth):
  1779. (WebCore::SVGInlineTextBox::calculateGlyphHeight):
  1780. (WebCore::SVGInlineTextBox::closestCharacterToPosition):
  1781. (WebCore::SVGInlineTextBox::svgCharacterHitsPosition):
  1782. (WebCore::SVGInlineTextBox::nodeAtPoint):
  1783. (WebCore::SVGInlineTextBox::selectionRect):
  1784. * rendering/SVGInlineTextBox.h:
  1785. * rendering/SVGRenderTreeAsText.cpp:
  1786. (WebCore::writeSVGInlineTextBox):
  1787. (WebCore::writeSVGInlineText):
  1788. * rendering/SVGRootInlineBox.cpp:
  1789. (WebCore::cummulatedWidthOfInlineBoxCharacterRange): Take box start offset into account.
  1790. (WebCore::svgTextStyleForInlineTextBox): New helper function.
  1791. (WebCore::totalAdvanceOfInlineTextBox): Take box start offset into account.
  1792. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox): Ditto. (correctly calculate advance values in RTL mode!)
  1793. (WebCore::SVGRootInlineBox::paintSelectionForTextBox): Use GraphicsContext drawHighlightForText() instead of self-made hacks.
  1794. (WebCore::SVGRootInlineBox::paintCharacterRangeForTextBox): Use new helper function svgTextStyleForInlineTextBox.
  1795. * rendering/SVGRootInlineBox.h:
  1796. * rendering/bidi.cpp: Add special case for SVG.
  1797. (WebCore::RenderBlock::layoutInlineChildren):
  1798. 2007-07-30 Nikolas Zimmermann <zimmermann@kde.org>
  1799. Reviewed by Oliver & Rob.
  1800. Enable SVG textPath selection. Actually build chunks for them instead of
  1801. ignoring them - was easier than I thought. Respect per-character transformation
  1802. when calculating the chunk boundaries for the selection rectangles. Also fixes
  1803. selection rect drawing of rotated characters.
  1804. Next thing todo is to unify the glyph size calculations, as per-glyph transformations
  1805. are not respected when calculating flow box sizes in SVGRootInlineBox.
  1806. * rendering/RenderObject.h:
  1807. (WebCore::RenderObject::isSVGHiddenContainer):
  1808. * rendering/RenderSVGHiddenContainer.h:
  1809. (WebCore::RenderSVGHiddenContainer::isSVGHiddenContainer):
  1810. * rendering/RenderSVGInlineText.cpp:
  1811. (WebCore::isChildOfHiddenContainer):
  1812. (WebCore::RenderSVGInlineText::selectionRect):
  1813. (WebCore::RenderSVGInlineText::computeAbsoluteRectForRange):
  1814. * rendering/SVGCharacterLayoutInfo.h:
  1815. (WebCore::SVGTextChunk::SVGTextChunk):
  1816. (WebCore::SVGTextChunkLayoutInfo::SVGTextChunkLayoutInfo):
  1817. * rendering/SVGInlineTextBox.cpp:
  1818. (WebCore::SVGInlineTextBox::selectionRect):
  1819. * rendering/SVGRootInlineBox.cpp:
  1820. (WebCore::applyTextAnchorToTextChunk):
  1821. (WebCore::SVGRootInlineBox::buildTextChunks):
  1822. 2007-07-25 Rob Buis <buis@kde.org>
  1823. Reviewed by Nikolas.
  1824. http://bugs.webkit.org/show_bug.cgi?id=14312
  1825. Removing an attribute has no effect on SVG
  1826. Update the transform matrix also when transform attribute is empty.
  1827. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  1828. (WebCore::SVGStyledTransformableElement::updateLocalTransform):
  1829. 2007-07-26 Nikolas Zimmermann <zimmermann@kde.org>
  1830. Reviewed by Oliver.
  1831. Unify absoluteRects() of RenderSVGTSpan & RenderSVGTextPath.
  1832. The RenderSVGTextPath one was still using the old, wrong concept.
  1833. * rendering/RenderSVGTSpan.cpp: Remove unused params tx, ty, while I'm at it.
  1834. (WebCore::RenderSVGTSpan::absoluteRects):
  1835. * rendering/RenderSVGTextPath.cpp:
  1836. (WebCore::RenderSVGTextPath::absoluteRects):
  1837. 2007-07-25 Nikolas Zimmermann <zimmermann@kde.org>
  1838. Reviewed by Sam.
  1839. Let <textPath> be recognized within the ObjC bindings.
  1840. Forgot to add that months ago.
  1841. * bindings/objc/DOM.mm:
  1842. (WebCore::createElementClassMap):
  1843. * bindings/objc/DOMInternal.h:
  1844. * bindings/objc/DOMSVG.h:
  1845. 2007-07-25 Nikolas Zimmermann <zimmermann@kde.org>
  1846. Reviewed by Oliver.
  1847. Fixes: http://bugs.webkit.org/show_bug.cgi?id=14065
  1848. Fix all known bugs regarding to SVG text selection, when embedded in XHTML.
  1849. Also fix inspecting <text> elements when embedded in XHTML. (WebInspector)
  1850. Short story: selectionRect() & friends are special in terms of the "HTML parent translation".
  1851. Caused by ie. CSS translation like "left: 50px; top: 50px" when <svg> is a child of a <div>.
  1852. For non-textual objects like RenderPath, we can easily add a translation to a new coordinate
  1853. space in RenderSVGRoot::applyContentTransformations() and we're done with it.
  1854. Same for painting text, but text selection makes problems in this concept.
  1855. We have to remove the 'html parent translation' from our selection rects that we return
  1856. from RenderSVGText & RenderSVGInlineText. Hopefully all issues are fixed now.
  1857. Long story:
  1858. - RenderSVGRoot::nodeAtPoint didn't take the parent 'scroll offset' into account. We exited
  1859. too early, because the overflow rect wasn't correctly sized. Fixed.
  1860. - RenderSVGRoot::absoluteRects() can't return the absoluteClippedOverflowRect() as it includes
  1861. the 'html parent translation', which needs to be removed, otherwhise the painted rects are off
  1862. when inspecting with WebInspector. -> Pass down absoluteRects() call to it's children..
  1863. - RenderSVGText::absoluteRects() can't use absoluteClippedOverflowRect() for the same reason.
  1864. - Add RenderSVGInlineText::computeAbsoluteRectForRange() function - shared by absoluteRects() and
  1865. selectionRect() - and remove the 'html parent translation' there by asking the RenderSVGRoot
  1866. object for the correct offsets.
  1867. This lead to nasty bugs showing that SVGInlineTextBox::selectionRect() wasn't actually returning
  1868. correct rectangles. It couldn't work for text chunks the way it was implemented. Fixed by implementing
  1869. it exactly the same way that closestCharacterToPosition() was done - could share more code later on.
  1870. * rendering/RenderSVGInlineText.cpp:
  1871. (WebCore::RenderSVGInlineText::absoluteRects):
  1872. (WebCore::RenderSVGInlineText::selectionRect):
  1873. (WebCore::RenderSVGInlineText::computeAbsoluteRectForRange):
  1874. * rendering/RenderSVGInlineText.h:
  1875. * rendering/RenderSVGRoot.cpp:
  1876. (WebCore::RenderSVGRoot::absoluteRects):
  1877. (WebCore::RenderSVGRoot::nodeAtPoint):
  1878. * rendering/RenderSVGText.cpp:
  1879. (WebCore::RenderSVGText::absoluteRects):
  1880. * rendering/SVGCharacterLayoutInfo.h: Removed unused variable 'bool selected'
  1881. * rendering/SVGInlineTextBox.cpp:
  1882. (WebCore::SVGInlineTextBox::closestCharacterToPosition):
  1883. (WebCore::SVGInlineTextBox::nodeAtPoint):
  1884. (WebCore::SVGInlineTextBox::selectionRect):
  1885. * rendering/SVGRootInlineBox.cpp: Add 'findSVGRootObject' helper function.
  1886. (WebCore::findSVGRootObject):
  1887. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
  1888. (WebCore::SVGRootInlineBox::paintSelectionForTextBox): Remove unused tx/ty parameters.
  1889. (WebCore::SVGRootInlineBox::paintChildInlineTextBox):
  1890. (WebCore::SVGRootInlineBox::paintCharacterRangeForTextBox):
  1891. * rendering/SVGRootInlineBox.h:
  1892. 2007-07-17 Nikolas Zimmermann <zimmermann@kde.org>
  1893. Build fix. Not reviewed.
  1894. Rob forgot to land the changes to SVGResourceMarker in his last commit.
  1895. * platform/graphics/svg/SVGResourceMarker.cpp:
  1896. (WebCore::SVGResourceMarker::draw):
  1897. 2007-07-17 Rob Buis <buis@kde.org>
  1898. Reviewed by Nikolas.
  1899. http://bugs.webkit.org/show_bug.cgi?id=5996
  1900. SVG <view> is unimplemented
  1901. Implement <view> and refactor the code in the svg renderer container classes.
  1902. * WebCore.xcodeproj/project.pbxproj:
  1903. * ksvg2/svg/SVGDocument.cpp:
  1904. (WebCore::SVGDocument::zoomAndPanEnabled): Take into account currentView for zoom/pan
  1905. * ksvg2/svg/SVGDocument.h:
  1906. * ksvg2/svg/SVGFEImageElement.cpp:
  1907. (WebCore::SVGFEImageElement::parseMappedAttribute):
  1908. * ksvg2/svg/SVGFitToViewBox.cpp:
  1909. (WebCore::SVGFitToViewBox::parseViewBox):
  1910. (WebCore::SVGFitToViewBox::parseMappedAttribute):
  1911. * ksvg2/svg/SVGFitToViewBox.h:
  1912. * ksvg2/svg/SVGImageElement.cpp:
  1913. (WebCore::SVGImageElement::parseMappedAttribute):
  1914. * ksvg2/svg/SVGLocatable.h:
  1915. * ksvg2/svg/SVGMarkerElement.cpp:
  1916. (WebCore::SVGMarkerElement::createRenderer):
  1917. (WebCore::SVGMarkerElement::notifyAttributeChange):
  1918. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  1919. (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
  1920. * ksvg2/svg/SVGPreserveAspectRatio.h:
  1921. * ksvg2/svg/SVGSVGElement.cpp:
  1922. (WebCore::SVGSVGElement::SVGSVGElement):
  1923. (WebCore::SVGSVGElement::currentView):
  1924. (WebCore::SVGSVGElement::parseMappedAttribute):
  1925. (WebCore::SVGSVGElement::createRenderer):
  1926. (WebCore::SVGSVGElement::viewBoxToViewTransform):
  1927. (WebCore::SVGSVGElement::inheritViewAttributes):
  1928. * ksvg2/svg/SVGSVGElement.h:
  1929. * ksvg2/svg/SVGTransformable.cpp:
  1930. (WebCore::SVGTransformable::parseTransformAttribute):
  1931. * ksvg2/svg/SVGTransformable.h:
  1932. * ksvg2/svg/SVGViewElement.cpp:
  1933. (WebCore::SVGViewElement::parseMappedAttribute):
  1934. * ksvg2/svg/SVGViewElement.h:
  1935. * ksvg2/svg/SVGViewSpec.cpp: Added.
  1936. (WebCore::SVGViewSpec::SVGViewSpec):
  1937. (WebCore::SVGViewSpec::~SVGViewSpec):
  1938. (WebCore::SVGViewSpec::setTransform):
  1939. (WebCore::SVGViewSpec::setViewBoxString):
  1940. (WebCore::SVGViewSpec::setPreserveAspectRatioString):
  1941. (WebCore::SVGViewSpec::setViewTargetString):
  1942. (WebCore::SVGViewSpec::viewTarget):
  1943. (WebCore::SVGViewSpec::contextElement):
  1944. (WebCore::):
  1945. (WebCore::SVGViewSpec::parseViewSpec):
  1946. * ksvg2/svg/SVGViewSpec.h: Added.
  1947. (WebCore::SVGViewSpec::transform):
  1948. (WebCore::SVGViewSpec::viewTargetString):
  1949. * ksvg2/svg/SVGZoomAndPan.cpp:
  1950. (WebCore::SVGZoomAndPan::parseMappedAttribute):
  1951. (WebCore::):
  1952. (WebCore::SVGZoomAndPan::parseZoomAndPan):
  1953. * ksvg2/svg/SVGZoomAndPan.h:
  1954. * loader/FrameLoader.cpp:
  1955. (WebCore::FrameLoader::gotoAnchor):
  1956. * page/Frame.cpp:
  1957. (WebCore::Frame::setZoomFactor): do not zoom when it is disabled
  1958. * rendering/RenderSVGContainer.cpp:
  1959. (WebCore::RenderSVGContainer::RenderSVGContainer):
  1960. (WebCore::RenderSVGContainer::paint):
  1961. (WebCore::RenderSVGContainer::viewportTransform):
  1962. * rendering/RenderSVGContainer.h:
  1963. * rendering/RenderSVGRoot.cpp:
  1964. (WebCore::RenderSVGRoot::RenderSVGRoot):
  1965. (WebCore::RenderSVGRoot::applyContentTransforms):
  1966. (WebCore::RenderSVGRoot::paint):
  1967. (WebCore::RenderSVGRoot::absoluteTransform):
  1968. (WebCore::RenderSVGRoot::localTransform):
  1969. * rendering/RenderSVGRoot.h:
  1970. 2007-07-16 Nikolas Zimmermann <zimmermann@kde.org>
  1971. Reviewed by Rob.
  1972. Fixes: http://bugs.webkit.org/show_bug.cgi?id=13611 (Crash in setAttributeNS setting href of SVG <use> to nonexistent symbol)
  1973. Fixes: http://bugs.webkit.org/show_bug.cgi?id=14631 (<use> doesn't deep-expand <symbol> elements.)
  1974. Rework <use> on <foreignObject> cases, to not just ignore these cases, but actually proceed and skip <fO> objects
  1975. from the resulting cloned tree. This fixes parts of "treasure_map.svg" (no bug report availabe on that one, private "testcase").
  1976. Fix assertion happening with <use> on <g> containing <symbol>. Introduce expandSymbolElementsInShadowTree()
  1977. concept, just like it's done for <use> on <use>, to deep-replace all <symbol> elements by <svg>, as demanded
  1978. by the spec. This only worked on <use> on <symbol> direct cases so far.
  1979. Added testcase: svg/custom/use-on-g-containing-foreignObject-and-image.svg (testcase for treasure_map.svg)
  1980. svg/custom/use-on-disallowed-foreign-object-5.svg (<use> on <symbol> containg <foreignObject>)
  1981. svg/custom/use-on-disallowed-foreign-object-6.svg (<use> on <g> containing <svg> containing <foreignObject>)
  1982. svg/custom/use-on-disallowed-foreign-object-7.svg (<use> on <g> containing <symbol> containing <foreignObject>)
  1983. svg/custom/use-scripting-changes-to-nonexistant-href.svg
  1984. * ksvg2/svg/SVGUseElement.cpp:
  1985. (WebCore::isDisallowedElement):
  1986. (WebCore::subtreeContainsDisallowedElement):
  1987. (WebCore::SVGUseElement::buildPendingResource):
  1988. (WebCore::SVGUseElement::buildInstanceTree):
  1989. (WebCore::SVGUseElement::removeDisallowedElementsFromSubtree):
  1990. (WebCore::SVGUseElement::buildShadowTree):
  1991. (WebCore::SVGUseElement::expandUseElementsInShadowTree):
  1992. (WebCore::SVGUseElement::expandSymbolElementsInShadowTree):
  1993. * ksvg2/svg/SVGUseElement.h:
  1994. 2007-07-15 Nikolas Zimmermann <zimmermann@kde.org>
  1995. Reviewed by Rob.
  1996. Fix invisible-text-after-scrolling.xhtml regression. Scroll offset not
  1997. taken into account properly. Also fix RenderSVGInlineText::selectionRect(),
  1998. so that SVG text can be selected, when being embedded in XHTML.
  1999. * rendering/RenderSVGInlineText.cpp:
  2000. (WebCore::RenderSVGInlineText::selectionRect):
  2001. * rendering/RenderSVGRoot.cpp:
  2002. (WebCore::RenderSVGRoot::applyContentTransforms):
  2003. 2007-07-15 Nikolas Zimmermann <zimmermann@kde.org>
  2004. Reviewed by Oliver.
  2005. Fixes: http://bugs.webkit.org/show_bug.cgi?id=5940 (<svg> inside <body> incorrectly extends over top/bottom borders)
  2006. Fixes: http://bugs.webkit.org/show_bug.cgi?id=14145 (RenderSVGContainer should not inherit from RenderContainer)
  2007. Make RenderSVGContainer inherit from RenderObject directly, instead of RenderContainer.
  2008. Itdoes a lot of things that we don't need for SVG, and by removing this inheritance
  2009. we can finally fix the differences about SVG object positioning, as we don't need
  2010. parent translation (tx/ty). Fixes SVG text rendering within XHTML.
  2011. Fix requireLayer() function on RenderSVGRoot, as it can actually be a layer now.
  2012. This change is based on Rob's patch at 5940 - fixing z-order indexing.
  2013. Change RenderSVGRoot renderName() and update all layout tests, because of this change.
  2014. Fix absoluteRects() function for RenderSVGInlineText & RenderSVGTSpan.
  2015. Checked extensively using WebInspector, to assure all rects are correctly displayed.
  2016. Testcases fixed: junk-data.svg, missing-xlink.svg hixie/013.xml (all regressions!)
  2017. (junk-data.svg & missing-xlink.svg previously relied on SVG text painting out of <svg> overflow rect.
  2018. Fix these testcases, as within this new RenderSVGContainer concept, that bug is now fixed, and breaks them)
  2019. Testcases added: custom/absolute-sized-svg-in-xhtml.xhtml, custom/inline-svg-in-xhtml.xml (Mozilla XTech demo)
  2020. * ksvg2/svg/SVGSVGElement.cpp:
  2021. (WebCore::SVGSVGElement::parseMappedAttribute):
  2022. * rendering/RenderObject.cpp:
  2023. (WebCore::RenderObject::containingBlock):
  2024. * rendering/RenderObject.h:
  2025. (WebCore::RenderObject::isSVGRoot):
  2026. * rendering/RenderPath.cpp:
  2027. (WebCore::RenderPath::paint):
  2028. (WebCore::RenderPath::addFocusRingRects):
  2029. * rendering/RenderSVGContainer.cpp:
  2030. (WebCore::RenderSVGContainer::RenderSVGContainer):
  2031. (WebCore::RenderSVGContainer::canHaveChildren):
  2032. (WebCore::RenderSVGContainer::addChild):
  2033. (WebCore::RenderSVGContainer::removeChild):
  2034. (WebCore::RenderSVGContainer::destroy):
  2035. (WebCore::RenderSVGContainer::destroyLeftoverChildren):
  2036. (WebCore::RenderSVGContainer::removeChildNode):
  2037. (WebCore::RenderSVGContainer::appendChildNode):
  2038. (WebCore::RenderSVGContainer::insertChildNode):
  2039. (WebCore::RenderSVGContainer::layout):
  2040. (WebCore::RenderSVGContainer::calcReplacedWidth):
  2041. (WebCore::RenderSVGContainer::calcReplacedHeight):
  2042. (WebCore::RenderSVGContainer::applyContentTransforms):
  2043. (WebCore::RenderSVGContainer::paint):
  2044. (WebCore::RenderSVGContainer::absoluteTransform):
  2045. (WebCore::RenderSVGContainer::nodeAtPoint):
  2046. * rendering/RenderSVGContainer.h:
  2047. (WebCore::RenderSVGContainer::firstChild):
  2048. (WebCore::RenderSVGContainer::lastChild):
  2049. (WebCore::RenderSVGContainer::width):
  2050. (WebCore::RenderSVGContainer::height):
  2051. (WebCore::RenderSVGContainer::moveChildNode):
  2052. (WebCore::RenderSVGContainer::calcPrefWidths):
  2053. * rendering/RenderSVGHiddenContainer.cpp:
  2054. (WebCore::RenderSVGHiddenContainer::RenderSVGHiddenContainer):
  2055. (WebCore::RenderSVGHiddenContainer::paint):
  2056. (WebCore::RenderSVGHiddenContainer::absoluteRects):
  2057. (WebCore::RenderSVGHiddenContainer::relativeBBox):
  2058. * rendering/RenderSVGHiddenContainer.h:
  2059. * rendering/RenderSVGImage.cpp:
  2060. (WebCore::RenderSVGImage::paint):
  2061. * rendering/RenderSVGInline.cpp:
  2062. (WebCore::RenderSVGInline::RenderSVGInline):
  2063. * rendering/RenderSVGInlineText.cpp:
  2064. (WebCore::RenderSVGInlineText::absoluteRects):
  2065. * rendering/RenderSVGRoot.cpp:
  2066. (WebCore::RenderSVGRoot::applyContentTransforms):
  2067. (WebCore::RenderSVGRoot::paint):
  2068. (WebCore::RenderSVGRoot::addFocusRingRects):
  2069. * rendering/RenderSVGRoot.h:
  2070. (WebCore::RenderSVGRoot::isSVGRoot):
  2071. (WebCore::RenderSVGRoot::renderName):
  2072. * rendering/RenderSVGTSpan.cpp:
  2073. (WebCore::RenderSVGTSpan::RenderSVGTSpan):
  2074. (WebCore::RenderSVGTSpan::absoluteRects):
  2075. * rendering/RenderSVGTextPath.cpp:
  2076. (WebCore::RenderSVGTextPath::absoluteRects):
  2077. * rendering/RenderTreeAsText.cpp:
  2078. (WebCore::write):
  2079. * rendering/SVGRenderTreeAsText.cpp:
  2080. (WebCore::operator<<):
  2081. (WebCore::write):
  2082. * rendering/SVGRenderTreeAsText.h:
  2083. 2007-07-11 Nikolas Zimmermann <zimmermann@kde.org>
  2084. Reviewed by Sam.
  2085. Remove all "SVGElement* m_context" parameters spread over SVG primitives
  2086. (like SVGAngle, SVGPreserveAspectRatio, SVGTransformList, ...)
  2087. This is all handled by the JS generation in the bindings now, leading
  2088. to a faster static rendering codepaths, and easier handling of the dynamic
  2089. parts like JS scripting. Remove the mystified genericContext() concept alltogether.
  2090. * bindings/js/JSSVGMatrixCustom.cpp: Adapt to the context() change.
  2091. (WebCore::JSSVGMatrix::multiply):
  2092. (WebCore::JSSVGMatrix::inverse):
  2093. (WebCore::JSSVGMatrix::translate):
  2094. (WebCore::JSSVGMatrix::scale):
  2095. (WebCore::JSSVGMatrix::scaleNonUniform):
  2096. (WebCore::JSSVGMatrix::rotate):
  2097. (WebCore::JSSVGMatrix::rotateFromVector):
  2098. (WebCore::JSSVGMatrix::flipX):
  2099. (WebCore::JSSVGMatrix::flipY):
  2100. (WebCore::JSSVGMatrix::skewX):
  2101. (WebCore::JSSVGMatrix::skewY):
  2102. * bindings/js/JSSVGPODTypeWrapper.h: Remove all nAC() calls here!
  2103. (WebCore::JSSVGPODTypeWrapperCreatorReadWrite::commitChange):
  2104. (WebCore::JSSVGPODTypeWrapperCreatorForList::JSSVGPODTypeWrapperCreatorForList):
  2105. (WebCore::JSSVGPODTypeWrapperCreatorForList::~JSSVGPODTypeWrapperCreatorForList):
  2106. * bindings/js/JSSVGPathSegCustom.cpp: Adapt to the context() change.
  2107. (WebCore::toJS):
  2108. * bindings/js/JSSVGPathSegListCustom.cpp: Ditto.
  2109. (WebCore::JSSVGPathSegList::clear):
  2110. (WebCore::JSSVGPathSegList::initialize):
  2111. (WebCore::JSSVGPathSegList::getItem):
  2112. (WebCore::JSSVGPathSegList::insertItemBefore):
  2113. (WebCore::JSSVGPathSegList::replaceItem):
  2114. (WebCore::JSSVGPathSegList::removeItem):
  2115. (WebCore::JSSVGPathSegList::appendItem):
  2116. * bindings/js/JSSVGPointListCustom.cpp: Ditto.
  2117. (WebCore::JSSVGPointList::clear):
  2118. (WebCore::JSSVGPointList::initialize):
  2119. (WebCore::JSSVGPointList::getItem):
  2120. (WebCore::JSSVGPointList::insertItemBefore):
  2121. (WebCore::JSSVGPointList::replaceItem):
  2122. (WebCore::JSSVGPointList::removeItem):
  2123. (WebCore::JSSVGPointList::appendItem):
  2124. * bindings/js/JSSVGTransformListCustom.cpp: Ditto.
  2125. (WebCore::JSSVGTransformList::clear):
  2126. (WebCore::JSSVGTransformList::initialize):
  2127. (WebCore::JSSVGTransformList::getItem):
  2128. (WebCore::JSSVGTransformList::insertItemBefore):
  2129. (WebCore::JSSVGTransformList::replaceItem):
  2130. (WebCore::JSSVGTransformList::removeItem):
  2131. (WebCore::JSSVGTransformList::appendItem):
  2132. * bindings/js/kjs_binding.h: Add new cacheSVGDOMObject, taking third parameter: context.
  2133. (KJS::cacheSVGDOMObject):
  2134. * bindings/scripts/CodeGeneratorJS.pm: Change generation to step aways from genericContext().
  2135. * ksvg2/misc/SVGDocumentExtensions.h: Kill all genericContext() stuff.
  2136. (WebCore::SVGDocumentExtensions::hasBaseValue):
  2137. * ksvg2/svg/SVGAngle.cpp: Kill context parameter.
  2138. (WebCore::SVGAngle::SVGAngle):
  2139. * ksvg2/svg/SVGAngle.h: ditto.
  2140. * ksvg2/svg/SVGFEImageElement.cpp: SVG classes don't get context params passed anymore.
  2141. (WebCore::SVGFEImageElement::SVGFEImageElement):
  2142. * ksvg2/svg/SVGFitToViewBox.cpp: Ditto.
  2143. (WebCore::SVGFitToViewBox::SVGFitToViewBox):
  2144. * ksvg2/svg/SVGGradientElement.cpp: Ditto.
  2145. (WebCore::SVGGradientElement::SVGGradientElement):
  2146. * ksvg2/svg/SVGImageElement.cpp: Ditto.
  2147. (WebCore::SVGImageElement::SVGImageElement):
  2148. * ksvg2/svg/SVGMarkerElement.cpp: Ditto.
  2149. (WebCore::SVGMarkerElement::SVGMarkerElement):
  2150. (WebCore::SVGMarkerElement::parseMappedAttribute):
  2151. * ksvg2/svg/SVGPathElement.cpp: Ditto.
  2152. (WebCore::SVGPathElement::pathSegList):
  2153. * ksvg2/svg/SVGPathSegList.cpp: Kill context parameter.
  2154. (WebCore::SVGPathSegList::SVGPathSegList):
  2155. * ksvg2/svg/SVGPathSegList.h:
  2156. * ksvg2/svg/SVGPatternElement.cpp: SVG classes don't get context params passed anymore.
  2157. (WebCore::SVGPatternElement::SVGPatternElement):
  2158. * ksvg2/svg/SVGPointList.cpp: Kill context parameter.
  2159. (SVGPointList::SVGPointList):
  2160. * ksvg2/svg/SVGPointList.h:
  2161. * ksvg2/svg/SVGPolyElement.cpp: SVG classes don't get context params passed anymore.
  2162. (WebCore::SVGPolyElement::points):
  2163. * ksvg2/svg/SVGPreserveAspectRatio.cpp: Kill context parameter.
  2164. (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
  2165. (WebCore::SVGPreserveAspectRatio::setAlign):
  2166. (WebCore::SVGPreserveAspectRatio::setMeetOrSlice):
  2167. (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
  2168. * ksvg2/svg/SVGPreserveAspectRatio.h:
  2169. * ksvg2/svg/SVGSVGElement.cpp: SVG classes don't get cntext params passed anymore.
  2170. (WebCore::SVGSVGElement::createSVGAngle):
  2171. * ksvg2/svg/SVGStyledTransformableElement.cpp: Ditto.
  2172. (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
  2173. * ksvg2/svg/SVGTextElement.cpp: Ditto.
  2174. (WebCore::SVGTextElement::SVGTextElement):
  2175. * ksvg2/svg/SVGTransformList.cpp: Kill context parameter.
  2176. (SVGTransformList::SVGTransformList):
  2177. * ksvg2/svg/SVGTransformList.h:
  2178. 2007-07-10 Nikolas Zimmermann <zimmermann@kde.org>
  2179. Reviewed by Sam.
  2180. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11167.
  2181. Recognize <textPath> in SVG JS bindings.
  2182. Add JSSVGTextPathElement to JSSVGElementWrapperFactory.
  2183. Add SVGException.idl just for the JS generation.
  2184. Turn on all SVG JS constructors and add them to DOMWindow.idl.
  2185. Testcase added: LayoutTests/svg/custom/js-svg-constructors.svg
  2186. * DerivedSources.make: Add JSSVGException.h
  2187. * WebCore.xcodeproj/project.pbxproj: Correct paths for DOM/JS*SVGTextPathElement
  2188. * bindings/scripts/CodeGeneratorJS.pm: Forward port hash fix from trunk.
  2189. * bindings/js/JSSVGElementWrapperFactory.cpp: Add JSSVGTextPathElement support
  2190. * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
  2191. * ksvg2/svg/SVGTextPathElement.h:
  2192. * ksvg2/svg/SVGException.h:
  2193. * ksvg2/svg/SVGException.idl: Added.
  2194. * ksvg2/svg/SVGFEBlendElement.idl:
  2195. * ksvg2/svg/SVGFEColorMatrixElement.idl:
  2196. * ksvg2/svg/SVGFECompositeElement.idl:
  2197. * ksvg2/svg/SVGFEDisplacementMapElement.idl:
  2198. * ksvg2/svg/SVGFETurbulenceElement.idl:
  2199. * ksvg2/svg/SVGGradientElement.idl:
  2200. * ksvg2/svg/SVGMarkerElement.idl:
  2201. * ksvg2/svg/SVGTextContentElement.idl:
  2202. * ksvg2/svg/SVGTextPathElement.idl:
  2203. * page/DOMWindow.idl: Recognize new js svg constructors.
  2204. 2007-06-28 Rob Buis <buis@kde.org>
  2205. Reviewed by Maciej.
  2206. http://bugs.webkit.org/show_bug.cgi?id=14241
  2207. SVG <image> with height or width less than 1 fails to render image
  2208. Keep extra member vars to get width/height as floats for accurate
  2209. calculations.
  2210. * rendering/RenderSVGImage.cpp:
  2211. (WebCore::RenderSVGImage::adjustRectsForAspectRatio):
  2212. (WebCore::RenderSVGImage::paint):
  2213. (WebCore::RenderSVGImage::calcWidth):
  2214. (WebCore::RenderSVGImage::calcHeight):
  2215. * rendering/RenderSVGImage.h:
  2216. 2007-06-26 Rob Buis <buis@kde.org>
  2217. Reviewed by Maciej.
  2218. http://bugs.webkit.org/show_bug.cgi?id=9976
  2219. Fix negative width issue in Hixie's test
  2220. Refuse to render zero or negative width/height.
  2221. * rendering/RenderSVGContainer.cpp:
  2222. (WebCore::RenderSVGContainer::paint):
  2223. * rendering/RenderSVGRoot.cpp:
  2224. (WebCore::RenderSVGRoot::paint):
  2225. 2007-06-26 Rob Buis <buis@kde.org>
  2226. Reviewed by Maciej.
  2227. http://bugs.webkit.org/show_bug.cgi?id=12062
  2228. WebCore does not handle CSS-specified fill fallback correctly
  2229. Implement fallback for fill and stroke.
  2230. * ksvg2/css/SVGCSSParser.cpp:
  2231. (WebCore::CSSParser::parseSVGValue):
  2232. * ksvg2/svg/SVGPaint.cpp:
  2233. (WebCore::SVGPaint::SVGPaint):
  2234. * ksvg2/svg/SVGPaint.h:
  2235. * platform/graphics/svg/SVGPaintServer.cpp:
  2236. (WebCore::SVGPaintServer::fillPaintServer):
  2237. (WebCore::SVGPaintServer::strokePaintServer):
  2238. 2007-06-20 Rob Buis <buis@kde.org>
  2239. Reviewed by Eric.
  2240. http://bugs.webkit.org/show_bug.cgi?id=14157
  2241. Rotated shape has wrong gradient rendering
  2242. Use the untransformed bbox in objectBoundingBoxMode. Also
  2243. don't do objectBoundingBoxMode should the bbox width ort height
  2244. be zero.
  2245. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  2246. (WebCore::SVGPaintServerGradient::teardown):
  2247. (WebCore::SVGPaintServerGradient::renderPath):
  2248. 2007-06-20 Nikolas Zimmermann <zimmermann@kde.org>
  2249. Reviewed by Eric & Oliver.
  2250. Fixes: http://bugs.webkit.org/show_bug.cgi?id=14198
  2251. Reeanble <foreignObject>. Explicitely disallow <use> on <foreignObject>
  2252. as it may lead to bad problems.
  2253. While I'm at it disallow <use> on any non-svg element.
  2254. * bindings/js/JSSVGElementWrapperFactory.cpp:
  2255. * bindings/objc/DOM.mm:
  2256. (WebCore::createElementClassMap):
  2257. * ksvg2/svg/SVGForeignObjectElement.cpp:
  2258. * ksvg2/svg/SVGForeignObjectElement.h:
  2259. * ksvg2/svg/SVGForeignObjectElement.idl:
  2260. * ksvg2/svg/SVGLocatable.cpp:
  2261. (WebCore::SVGLocatable::nearestViewportElement):
  2262. (WebCore::SVGLocatable::farthestViewportElement):
  2263. * ksvg2/svg/SVGUseElement.cpp:
  2264. (WebCore::SVGUseElement::buildPendingResource):
  2265. * ksvg2/svg/svgtags.in:
  2266. * rendering/RenderForeignObject.cpp:
  2267. 2007-06-19 Rob Buis <buis@kde.org>
  2268. Reviewed by Oliver.
  2269. http://bugs.webkit.org/show_bug.cgi?id=14144
  2270. All tx/ty (parentX/parentY) usage should be removed from SVG renders
  2271. http://bugs.webkit.org/show_bug.cgi?id=13981
  2272. <br> prevents click handler from firing
  2273. Fix the hit testing issues by making RenderSVGRoot take its m_x, m_y
  2274. into account in the absolute transform.
  2275. * rendering/RenderPath.cpp:
  2276. (WebCore::RenderPath::absoluteRects):
  2277. (WebCore::RenderPath::nodeAtPoint):
  2278. * rendering/RenderSVGImage.cpp:
  2279. (WebCore::RenderSVGImage::nodeAtPoint):
  2280. * rendering/RenderSVGRoot.cpp:
  2281. (WebCore::RenderSVGRoot::absoluteTransform):
  2282. (WebCore::RenderSVGRoot::nodeAtPoint):
  2283. 2007-06-16 Nikolas Zimmermann <zimmermann@kde.org>
  2284. Reviewed by Eric.
  2285. Fixes: http://bugs.webkit.org/show_bug.cgi?id=14015 (SVGTransformList::initialize() has no effect)
  2286. Fix SVGTransformList usage in SVG DOM exposed to JS.
  2287. This also fixes SVG space invaders including most repainting issues. (still some unrelated ones left)
  2288. This is basically the _same_ fix applied to SVGPointList some months ago. We just forgot
  2289. to add JSSVGTransformListCustom when switching from SVGTransform* -> SVGTransform (POD type).
  2290. * WebCore.xcodeproj/project.pbxproj:
  2291. * bindings/js/JSSVGTransformListCustom.cpp: Added.
  2292. (WebCore::JSSVGTransformList::clear):
  2293. (WebCore::JSSVGTransformList::initialize):
  2294. (WebCore::JSSVGTransformList::getItem):
  2295. (WebCore::JSSVGTransformList::insertItemBefore):
  2296. (WebCore::JSSVGTransformList::replaceItem):
  2297. (WebCore::JSSVGTransformList::removeItem):
  2298. (WebCore::JSSVGTransformList::appendItem):
  2299. * ksvg2/svg/SVGCircleElement.cpp:
  2300. (WebCore::SVGCircleElement::notifyAttributeChange):
  2301. * ksvg2/svg/SVGEllipseElement.cpp:
  2302. (WebCore::SVGEllipseElement::notifyAttributeChange):
  2303. * ksvg2/svg/SVGGradientElement.cpp:
  2304. (WebCore::SVGGradientElement::SVGGradientElement):
  2305. * ksvg2/svg/SVGImageElement.cpp:
  2306. (WebCore::SVGImageElement::notifyAttributeChange):
  2307. * ksvg2/svg/SVGLineElement.cpp:
  2308. (WebCore::SVGLineElement::notifyAttributeChange):
  2309. * ksvg2/svg/SVGPathElement.cpp:
  2310. (WebCore::SVGPathElement::notifyAttributeChange):
  2311. * ksvg2/svg/SVGPatternElement.cpp:
  2312. (WebCore::SVGPatternElement::SVGPatternElement):
  2313. * ksvg2/svg/SVGPolyElement.cpp:
  2314. (WebCore::SVGPolyElement::notifyAttributeChange):
  2315. * ksvg2/svg/SVGRectElement.cpp:
  2316. (WebCore::SVGRectElement::notifyAttributeChange):
  2317. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  2318. (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
  2319. (WebCore::SVGStyledTransformableElement::notifyAttributeChange):
  2320. * ksvg2/svg/SVGStyledTransformableElement.h:
  2321. * ksvg2/svg/SVGTextElement.cpp:
  2322. (WebCore::SVGTextElement::SVGTextElement):
  2323. * ksvg2/svg/SVGTransformList.cpp:
  2324. (SVGTransformList::SVGTransformList):
  2325. (SVGTransformList::context):
  2326. * ksvg2/svg/SVGTransformList.h:
  2327. * ksvg2/svg/SVGTransformList.idl:
  2328. 2007-06-15 Nikolas Zimmermann <zimmermann@kde.org>
  2329. Reviewed by Eric.
  2330. Fixes: http://bugs.webkit.org/show_bug.cgi?id=14155
  2331. JSSVGMatrix was not working properly.
  2332. "matrix.translate(10, 10)" actually altered 'matrix' instead of returning a
  2333. new SVGMatrix object, as described in SVG 1.1 specification.
  2334. * bindings/js/JSSVGMatrixCustom.cpp:
  2335. (WebCore::JSSVGMatrix::multiply):
  2336. (WebCore::JSSVGMatrix::inverse):
  2337. (WebCore::JSSVGMatrix::translate):
  2338. (WebCore::JSSVGMatrix::scale):
  2339. (WebCore::JSSVGMatrix::scaleNonUniform):
  2340. (WebCore::JSSVGMatrix::rotate):
  2341. (WebCore::JSSVGMatrix::flipX):
  2342. (WebCore::JSSVGMatrix::flipY):
  2343. (WebCore::JSSVGMatrix::skewX):
  2344. (WebCore::JSSVGMatrix::skewY):
  2345. * ksvg2/svg/SVGMatrix.idl:
  2346. 2007-06-15 Eric Seidel <eric@webkit.org>
  2347. Reviewed by Niko.
  2348. Fix the release build.
  2349. * rendering/SVGRootInlineBox.cpp:
  2350. (WebCore::applyTextAnchorToTextChunk):
  2351. 2007-06-15 Rob Buis <buis@kde.org>
  2352. Reviewed by Eric.
  2353. http://bugs.webkit.org/show_bug.cgi?id=14051
  2354. <svg:image> fails to position correctly when <svg> is inside an inline <div>
  2355. Leave parent translation to the containers.
  2356. * rendering/RenderSVGImage.cpp:
  2357. (WebCore::RenderSVGImage::paint):
  2358. 2007-06-15 Nikolas Zimmermann <zimmermann@kde.org>
  2359. Reviewed by Eric.
  2360. Fixes: http://bugs.webkit.org/show_bug.cgi?id=13963
  2361. Fix SVG space invaders. It actually highlighted a bad problem with our JSSVGPODTypeWrapper's.
  2362. Introduce a new "2nd-level cache" for all readwrite POD properties. Subsequent calls to ie.
  2363. myRect.x.baseVal.value don't create a new wrapper everytime, but are properly cached now.
  2364. This leads to a massive reduction in created wrappers.
  2365. * bindings/js/JSSVGMatrixCustom.cpp:
  2366. (WebCore::JSSVGMatrix::inverse):
  2367. (WebCore::JSSVGMatrix::rotateFromVector):
  2368. * bindings/js/JSSVGPODTypeWrapper.h:
  2369. (WebCore::JSSVGPODTypeWrapperCreatorReadWrite::JSSVGPODTypeWrapperCreatorReadWrite):
  2370. (WebCore::JSSVGPODTypeWrapperCreatorReadWrite::~JSSVGPODTypeWrapperCreatorReadWrite):
  2371. (WebCore::JSSVGPODTypeWrapperCreatorReadWrite::operator PODType):
  2372. (WebCore::JSSVGPODTypeWrapperCreatorReadWrite::commitChange):
  2373. (WebCore::JSSVGPODTypeWrapperCreatorReadOnly::JSSVGPODTypeWrapperCreatorReadOnly):
  2374. (WebCore::JSSVGPODTypeWrapperCreatorReadOnly::~JSSVGPODTypeWrapperCreatorReadOnly):
  2375. (WebCore::JSSVGPODTypeWrapperCreatorReadOnly::operator PODType):
  2376. (WebCore::JSSVGPODTypeWrapperCreatorReadOnly::commitChange):
  2377. (WebCore::JSSVGPODTypeWrapperCreatorForList::JSSVGPODTypeWrapperCreatorForList):
  2378. (WebCore::JSSVGPODTypeWrapperCreatorForList::commitChange):
  2379. (WebCore::PODTypeReadWriteHashInfo::PODTypeReadWriteHashInfo):
  2380. (WebCore::PODTypeReadWriteHashInfo::operator==):
  2381. (WebCore::PODTypeReadWriteHashInfoHash::hash):
  2382. (WebCore::PODTypeReadWriteHashInfoHash::equal):
  2383. (WebCore::PODTypeReadWriteHashInfoTraits::deletedValue):
  2384. (WebCore::PODTypeReadWriteHashInfoTraits::emptyValue):
  2385. (WebCore::JSSVGPODTypeWrapperCache::readWriteHashMap):
  2386. (WebCore::JSSVGPODTypeWrapperCache::lookupOrCreateWrapper):
  2387. (WebCore::JSSVGPODTypeWrapperCache::forgetWrapper):
  2388. * bindings/js/JSSVGPointListCustom.cpp:
  2389. (WebCore::JSSVGPointList::removeItem):
  2390. * bindings/scripts/CodeGeneratorJS.pm:
  2391. 2007-06-14 Eric Seidel <eric@webkit.org>
  2392. Reviewed by Niko.
  2393. Text gradients are broken on feature branch
  2394. http://bugs.webkit.org/show_bug.cgi?id=14142
  2395. * rendering/SVGRenderSupport.cpp:
  2396. (WebCore::prepareToRenderSVGContent):
  2397. * rendering/SVGRootInlineBox.cpp:
  2398. (WebCore::prepareTextRendering):
  2399. (WebCore::SVGRootInlineBox::paint):
  2400. (WebCore::SVGRootInlineBox::paintInlineBoxes):
  2401. (WebCore::SVGRootInlineBox::paintChildInlineTextBox):
  2402. (WebCore::SVGRootInlineBox::paintChildInlineFlowBox):
  2403. * rendering/SVGRootInlineBox.h:
  2404. 2007-06-14 Nikolas Zimmermann <zimmermann@kde.org>
  2405. Reviewed by Sam.
  2406. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11273
  2407. Implement pixelUnitToMillimeterX(), pixelUnitToMillimeterY() in SVGSVGElement.
  2408. Use cssPixelsPerInch, just like done in CSSPrimitiveValue & SVGLength.
  2409. * ksvg2/svg/SVGSVGElement.cpp:
  2410. (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
  2411. (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
  2412. 2007-06-14 Rob Buis <buis@kde.org>
  2413. Reviewed by Eric.
  2414. http://bugs.webkit.org/show_bug.cgi?id=9752
  2415. %-sizing of elements with a html parent is broken
  2416. Calculate width/height for length percentages when embedded in xhtml.
  2417. * ksvg2/svg/SVGLength.cpp:
  2418. (WebCore::SVGLength::PercentageOfViewport):
  2419. 2007-06-14 Rob Buis <buis@kde.org>
  2420. Build fix.
  2421. * rendering/SVGCharacterLayoutInfo.cpp:
  2422. 2007-06-14 Rob Buis <buis@kde.org>
  2423. Reviewed by Eric.
  2424. http://bugs.webkit.org/show_bug.cgi?id=12207
  2425. RenderSVGContainer should be split into multiple classes
  2426. http://bugs.webkit.org/show_bug.cgi?id=14125
  2427. KCanvasRenderingStyle should be removed
  2428. Introduce the RenderSVGRoot class and kill the KCanvas enums.
  2429. * WebCore.xcodeproj/project.pbxproj:
  2430. * ksvg2/css/SVGRenderStyle.cpp:
  2431. (WebCore::SVGRenderStyle::cssPrimitiveToLength):
  2432. * ksvg2/css/SVGRenderStyle.h:
  2433. * ksvg2/misc/KCanvasRenderingStyle.cpp: Removed.
  2434. * ksvg2/misc/KCanvasRenderingStyle.h: Removed.
  2435. * ksvg2/svg/SVGMarkerElement.cpp:
  2436. (WebCore::SVGMarkerElement::createRenderer):
  2437. (WebCore::SVGMarkerElement::notifyAttributeChange):
  2438. * ksvg2/svg/SVGSVGElement.cpp:
  2439. (WebCore::SVGSVGElement::createRenderer):
  2440. * ksvg2/svg/SVGSVGElement.h:
  2441. * platform/graphics/svg/SVGPaintServer.cpp:
  2442. (WebCore::sharedSolidPaintServer):
  2443. (WebCore::SVGPaintServer::fillPaintServer):
  2444. (WebCore::SVGPaintServer::strokePaintServer):
  2445. (WebCore::dashArrayFromRenderingStyle):
  2446. * platform/graphics/svg/SVGPaintServer.h:
  2447. * platform/graphics/svg/cg/CgSupport.cpp:
  2448. (WebCore::applyStrokeStyleToContext):
  2449. * platform/graphics/svg/cg/RenderPathCg.cpp:
  2450. (WebCore::RenderPath::strokeContains):
  2451. * rendering/RenderPath.cpp:
  2452. (WebCore::RenderPath::fillContains):
  2453. (WebCore::fillAndStrokePath):
  2454. (WebCore::RenderPath::drawMarkersIfNeeded):
  2455. * rendering/RenderSVGContainer.cpp:
  2456. (WebCore::RenderSVGContainer::requiresLayer):
  2457. (WebCore::RenderSVGContainer::layout):
  2458. (WebCore::RenderSVGContainer::applyContentTransforms):
  2459. (WebCore::RenderSVGContainer::paint):
  2460. (WebCore::RenderSVGContainer::setAlign):
  2461. (WebCore::RenderSVGContainer::align):
  2462. (WebCore::RenderSVGContainer::viewportTransform):
  2463. (WebCore::RenderSVGContainer::absoluteTransform):
  2464. (WebCore::RenderSVGContainer::getAspectRatio):
  2465. * rendering/RenderSVGContainer.h:
  2466. * rendering/RenderSVGInlineText.cpp:
  2467. * rendering/RenderSVGRoot.cpp: Added.
  2468. (WebCore::RenderSVGRoot::RenderSVGRoot):
  2469. (WebCore::RenderSVGRoot::~RenderSVGRoot):
  2470. (WebCore::RenderSVGRoot::localTransform):
  2471. (WebCore::RenderSVGRoot::setLocalTransform):
  2472. (WebCore::RenderSVGRoot::requiresLayer):
  2473. (WebCore::RenderSVGRoot::lineHeight):
  2474. (WebCore::RenderSVGRoot::baselinePosition):
  2475. (WebCore::RenderSVGRoot::layout):
  2476. (WebCore::RenderSVGRoot::applyContentTransforms):
  2477. (WebCore::RenderSVGRoot::paint):
  2478. (WebCore::RenderSVGRoot::viewport):
  2479. (WebCore::RenderSVGRoot::calcViewport):
  2480. (WebCore::RenderSVGRoot::setViewBox):
  2481. (WebCore::RenderSVGRoot::viewBox):
  2482. (WebCore::RenderSVGRoot::setAlign):
  2483. (WebCore::RenderSVGRoot::align):
  2484. (WebCore::RenderSVGRoot::viewportTransform):
  2485. (WebCore::RenderSVGRoot::absoluteClippedOverflowRect):
  2486. (WebCore::RenderSVGRoot::addFocusRingRects):
  2487. (WebCore::RenderSVGRoot::absoluteRects):
  2488. (WebCore::RenderSVGRoot::absoluteTransform):
  2489. (WebCore::RenderSVGRoot::fillContains):
  2490. (WebCore::RenderSVGRoot::strokeContains):
  2491. (WebCore::RenderSVGRoot::relativeBBox):
  2492. (WebCore::RenderSVGRoot::setSlice):
  2493. (WebCore::RenderSVGRoot::slice):
  2494. (WebCore::RenderSVGRoot::getAspectRatio):
  2495. (WebCore::RenderSVGRoot::nodeAtPoint):
  2496. * rendering/RenderSVGRoot.h: Added.
  2497. (WebCore::RenderSVGRoot::isSVGContainer):
  2498. (WebCore::RenderSVGRoot::renderName):
  2499. * rendering/RenderSVGTSpan.cpp:
  2500. * rendering/RenderSVGText.cpp:
  2501. (WebCore::RenderSVGText::relativeBBox):
  2502. * rendering/SVGRenderTreeAsText.cpp:
  2503. (WebCore::operator<<):
  2504. (WebCore::writeStyle):
  2505. * rendering/SVGRootInlineBox.cpp:
  2506. (WebCore::SVGRootInlineBox::paint):
  2507. (WebCore::SVGRootInlineBox::paintInlineBoxes):
  2508. 2007-06-12 Nikolas Zimmermann <zimmermann@kde.org>
  2509. Reviewed by Eric.
  2510. Fix regression: SVG images drawn in the wrong paint phase.
  2511. * rendering/RenderSVGImage.cpp:
  2512. (WebCore::RenderSVGImage::paint):
  2513. 2007-06-11 Rob Buis <buis@kde.org>
  2514. Reviewed by weinig.
  2515. http://bugs.webkit.org/show_bug.cgi?id=14064
  2516. fill property is reported as type SVGColor
  2517. Do the checks in the right order.
  2518. * bindings/js/kjs_css.cpp:
  2519. (KJS::toJS):
  2520. 2007-06-07 Rob Buis <buis@kde.org>
  2521. Reviewed by Eric.
  2522. http://bugs.webkit.org/show_bug.cgi?id=12122
  2523. SVGPathElement should not inherit from SVGPathParser
  2524. Use path builders for building Path and PathSegLists.
  2525. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  2526. (WebCore::SVGAnimateMotionElement::parseMappedAttribute):
  2527. * ksvg2/svg/SVGParserUtilities.cpp:
  2528. (WebCore::pointsListFromSVGData):
  2529. (WebCore::SVGPathParser::~SVGPathParser):
  2530. (WebCore::SVGPathParser::svgLineToHorizontal):
  2531. (WebCore::SVGPathParser::svgLineToVertical):
  2532. (WebCore::SVGPathParser::svgCurveToCubicSmooth):
  2533. (WebCore::SVGPathParser::svgCurveToQuadratic):
  2534. (WebCore::SVGPathParser::svgCurveToQuadraticSmooth):
  2535. (WebCore::SVGPathParser::svgArcTo):
  2536. (WebCore::PathBuilder::build):
  2537. (WebCore::PathBuilder::svgMoveTo):
  2538. (WebCore::PathBuilder::svgLineTo):
  2539. (WebCore::PathBuilder::svgCurveToCubic):
  2540. (WebCore::PathBuilder::svgClosePath):
  2541. (WebCore::pathFromSVGData):
  2542. (WebCore::SVGPathSegListBuilder::build):
  2543. (WebCore::SVGPathSegListBuilder::svgMoveTo):
  2544. (WebCore::SVGPathSegListBuilder::svgLineTo):
  2545. (WebCore::SVGPathSegListBuilder::svgLineToHorizontal):
  2546. (WebCore::SVGPathSegListBuilder::svgLineToVertical):
  2547. (WebCore::SVGPathSegListBuilder::svgCurveToCubic):
  2548. (WebCore::SVGPathSegListBuilder::svgCurveToCubicSmooth):
  2549. (WebCore::SVGPathSegListBuilder::svgCurveToQuadratic):
  2550. (WebCore::SVGPathSegListBuilder::svgCurveToQuadraticSmooth):
  2551. (WebCore::SVGPathSegListBuilder::svgArcTo):
  2552. (WebCore::SVGPathSegListBuilder::svgClosePath):
  2553. (WebCore::pathSegListFromSVGData):
  2554. * ksvg2/svg/SVGParserUtilities.h:
  2555. * ksvg2/svg/SVGPathElement.cpp:
  2556. (WebCore::SVGPathElement::SVGPathElement):
  2557. (WebCore::SVGPathElement::parseMappedAttribute):
  2558. * ksvg2/svg/SVGPathElement.h:
  2559. * ksvg2/svg/SVGPolyElement.cpp:
  2560. (WebCore::SVGPolyElement::SVGPolyElement):
  2561. (WebCore::SVGPolyElement::parseMappedAttribute):
  2562. * ksvg2/svg/SVGPolyElement.h:
  2563. 2007-06-06 Eric Seidel <eric@webkit.org>
  2564. Reviewed by olliej.
  2565. Add support for tabbing between links in an SVG file
  2566. Also add support for drawing a focus ring around focused svg content.
  2567. http://bugs.webkit.org/show_bug.cgi?id=8823
  2568. Layout test is blocked by http://bugs.webkit.org/show_bug.cgi?id=14027
  2569. * css/svg.css:
  2570. * ksvg2/svg/SVGAElement.cpp:
  2571. (WebCore::SVGAElement::defaultEventHandler):
  2572. (WebCore::SVGAElement::supportsFocus):
  2573. (WebCore::SVGAElement::isFocusable):
  2574. (WebCore::SVGAElement::isMouseFocusable):
  2575. (WebCore::SVGAElement::isKeyboardFocusable):
  2576. * ksvg2/svg/SVGAElement.h:
  2577. 2007-06-06 Eric Seidel <eric@webkit.org>
  2578. Reviewed by olliej.
  2579. Make SVG (mostly) support CSS outline property (and thus focus rings)
  2580. http://bugs.webkit.org/show_bug.cgi?id=10849
  2581. Test: svg/custom/focus-ring.svg
  2582. * rendering/RenderPath.cpp:
  2583. (WebCore::RenderPath::paint):
  2584. (WebCore::RenderPath::addFocusRingRects):
  2585. * rendering/RenderPath.h:
  2586. * rendering/RenderSVGContainer.cpp:
  2587. (WebCore::RenderSVGContainer::paint):
  2588. (WebCore::RenderSVGContainer::addFocusRingRects):
  2589. * rendering/RenderSVGContainer.h:
  2590. * rendering/RenderSVGImage.cpp:
  2591. (WebCore::RenderSVGImage::paint):
  2592. (WebCore::RenderSVGImage::addFocusRingRects):
  2593. * rendering/RenderSVGImage.h:
  2594. 2007-06-06 Eric Seidel <eric@webkit.org>
  2595. Reviewed by weinig.
  2596. Break out common SVG rendering logic into prepareToRenderSVGContent in SVGRenderSupport
  2597. No test cases should be changed by this.
  2598. * WebCore.xcodeproj/project.pbxproj:
  2599. * rendering/RenderPath.cpp:
  2600. (WebCore::fillAndStrokePath):
  2601. (WebCore::RenderPath::paint):
  2602. * rendering/RenderSVGContainer.cpp:
  2603. (WebCore::RenderSVGContainer::RenderSVGContainer):
  2604. (WebCore::RenderSVGContainer::requiresLayer):
  2605. (WebCore::RenderSVGContainer::isOutermostSVG):
  2606. (WebCore::RenderSVGContainer::layout):
  2607. (WebCore::RenderSVGContainer::applyContentTransforms):
  2608. (WebCore::RenderSVGContainer::paint):
  2609. (WebCore::RenderSVGContainer::viewportTransform):
  2610. (WebCore::RenderSVGContainer::absoluteTransform):
  2611. * rendering/RenderSVGContainer.h:
  2612. * rendering/RenderSVGImage.cpp:
  2613. (WebCore::RenderSVGImage::paint):
  2614. (WebCore::RenderSVGImage::translationForAttributes):
  2615. * rendering/SVGRenderSupport.cpp: Added.
  2616. (WebCore::prepareToRenderSVGContent):
  2617. * rendering/SVGRenderSupport.h: Added.
  2618. * rendering/SVGRootInlineBox.cpp:
  2619. (WebCore::prepareTextRendering):
  2620. (WebCore::SVGRootInlineBox::paint):
  2621. (WebCore::SVGRootInlineBox::paintInlineBoxes):
  2622. 2007-06-06 Rob Buis <buis@kde.org>
  2623. Reviewed by Eric.
  2624. http://bugs.webkit.org/show_bug.cgi?id=13976
  2625. getPresentationAttribute not implemented
  2626. Implement getPresentationAttribute.
  2627. * ksvg2/svg/SVGStylable.h:
  2628. * ksvg2/svg/SVGStylable.idl:
  2629. * ksvg2/svg/SVGStyledElement.cpp:
  2630. (WebCore::SVGStyledElement::getPresentationAttribute):
  2631. * ksvg2/svg/SVGStyledElement.h:
  2632. 2007-06-06 Rob Buis <buis@kde.org>
  2633. Reviewed by olliej and eric.
  2634. http://bugs.webkit.org/show_bug.cgi?id=12430
  2635. SVG has two transform parsers when it should have one.
  2636. Refactor SVGTransformable parser so SVGAnimateTransformElement can reuse it better.
  2637. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  2638. (WebCore::SVGAnimateTransformElement::calculateFromAndToValues):
  2639. * ksvg2/svg/SVGAnimateTransformElement.h:
  2640. * ksvg2/svg/SVGTransformable.cpp:
  2641. (WebCore::):
  2642. (WebCore::SVGTransformable::parseTransformValue):
  2643. (WebCore::SVGTransformable::parseTransformAttribute):
  2644. * ksvg2/svg/SVGTransformable.h:
  2645. 2007-06-05 Eric Seidel <eric@webkit.org>
  2646. Reviewed by olliej.
  2647. Commit files missing from previous commit, oops!
  2648. * platform/graphics/svg/SVGResourceMasker.cpp:
  2649. (WebCore::SVGResourceMasker::SVGResourceMasker):
  2650. (WebCore::SVGResourceMasker::invalidate):
  2651. * platform/graphics/svg/SVGResourceMasker.h:
  2652. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  2653. (WebCore::SVGResourceMasker::applyMask):
  2654. 2007-06-01 Eric Seidel <eric@webkit.org>
  2655. Reviewed by olliej.
  2656. Add support for maskUnits and maskContentUnits
  2657. http://bugs.webkit.org/show_bug.cgi?id=12568
  2658. This is covered by the W3C tests (including mask-intro01)
  2659. * ksvg2/svg/SVGMaskElement.cpp:
  2660. (WebCore::SVGMaskElement::SVGMaskElement):
  2661. (WebCore::SVGMaskElement::parseMappedAttribute):
  2662. (WebCore::SVGMaskElement::drawMaskerContent):
  2663. (WebCore::SVGMaskElement::canvasResource):
  2664. (WebCore::SVGMaskElement::notifyAttributeChange):
  2665. * ksvg2/svg/SVGMaskElement.h:
  2666. * ksvg2/svg/SVGMaskElement.idl:
  2667. * platform/graphics/svg/SVGResourceMasker.cpp:
  2668. (WebCore::SVGResourceMasker::SVGResourceMasker):
  2669. (WebCore::SVGResourceMasker::invalidate):
  2670. * platform/graphics/svg/SVGResourceMasker.h:
  2671. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  2672. (WebCore::SVGResourceMasker::applyMask):
  2673. 2007-06-01 Eric Seidel <eric@webkit.org>
  2674. Reviewed by lars.
  2675. Cursor does not change to hand over links containing <use>
  2676. http://bugs.webkit.org/show_bug.cgi?id=12630
  2677. Test: manual-tests/svg-link-hover-use.svg
  2678. * manual-tests/svg-link-hover-use.svg: Added.
  2679. * rendering/RenderLayer.cpp:
  2680. (WebCore::RenderLayer::hitTest): use eventParentNode instead of parentNode
  2681. 2007-06-01 Eric Seidel <eric@webkit.org>
  2682. Reviewed by olliej.
  2683. SVG is not correctly respecting scroll during hit testing
  2684. http://bugs.webkit.org/show_bug.cgi?id=13083
  2685. Test: svg/custom/scroll-hit-test.svg
  2686. * rendering/RenderPath.cpp:
  2687. (WebCore::RenderPath::nodeAtPoint):
  2688. * rendering/RenderSVGContainer.cpp:
  2689. (WebCore::RenderSVGContainer::nodeAtPoint):
  2690. 2007-06-01 Eric Seidel <eric@webkit.org>
  2691. Reviewed by hyatt.
  2692. Fix for: http://bugs.webkit.org/show_bug.cgi?id=12187
  2693. Tests: fast/dom/attribute-case-sensitivity.html, fast/dom/attribute-case-sensitivity2.xhtml
  2694. * dom/Element.cpp:
  2695. (WebCore::shouldIgnoreAttributeCase): check to make sure element is an HTMLElement
  2696. (WebCore::Element::getAttribute):
  2697. (WebCore::Element::setAttribute):
  2698. (WebCore::Element::removeAttribute):
  2699. (WebCore::Element::getAttributeNode):
  2700. (WebCore::Element::hasAttribute):
  2701. * dom/NamedAttrMap.cpp:
  2702. (WebCore::shouldIgnoreAttributeCase):
  2703. (WebCore::NamedAttrMap::getNamedItem):
  2704. (WebCore::NamedAttrMap::removeNamedItem):
  2705. 2007-05-31 Eric Seidel <eric@webkit.org>
  2706. Reviewed by Niko.
  2707. Links are activated based on mouse down events instead of click events
  2708. http://bugs.webkit.org/show_bug.cgi?id=12570
  2709. Test: svg/custom/prevent-default.svg
  2710. * html/HTMLAnchorElement.cpp: use MiddleButton and RightButton instead of 1 and 2
  2711. (WebCore::HTMLAnchorElement::defaultEventHandler):
  2712. * ksvg2/svg/SVGAElement.cpp:
  2713. (WebCore::SVGAElement::defaultEventHandler): make it function more like the HTML side
  2714. 2007-05-30 Rob Buis <buis@kde.org>
  2715. Reviewed by Darin.
  2716. http://bugs.webkit.org/show_bug.cgi?id=11272
  2717. Implement currentScale(), setCurrentScale() and currentTranslate() in SVGSVGElement
  2718. Allow zooming and panning, thereby implementing the above methods.
  2719. * ksvg2/svg/SVGDocument.cpp:
  2720. (WebCore::SVGDocument::zoomAndPanEnabled):
  2721. (WebCore::SVGDocument::startPan):
  2722. (WebCore::SVGDocument::updatePan):
  2723. * ksvg2/svg/SVGDocument.h:
  2724. * ksvg2/svg/SVGSVGElement.cpp:
  2725. (WebCore::SVGSVGElement::currentScale):
  2726. (WebCore::SVGSVGElement::setCurrentScale):
  2727. (WebCore::SVGSVGElement::currentTranslate):
  2728. (WebCore::SVGSVGElement::setCurrentTranslate):
  2729. * ksvg2/svg/SVGSVGElement.h:
  2730. * page/EventHandler.cpp:
  2731. (WebCore::EventHandler::EventHandler):
  2732. (WebCore::EventHandler::handleMousePressEvent):
  2733. (WebCore::EventHandler::handleMouseMoveEvent):
  2734. (WebCore::EventHandler::handleMouseReleaseEvent):
  2735. * page/EventHandler.h:
  2736. * page/Frame.cpp:
  2737. (WebCore::Frame::setZoomFactor):
  2738. * rendering/RenderSVGContainer.cpp:
  2739. (WebCore::RenderSVGContainer::layout):
  2740. (WebCore::RenderSVGContainer::paint):
  2741. (WebCore::RenderSVGContainer::absoluteTransform):
  2742. 2007-05-30 Nikolas Zimmermann <zimmermann@kde.org>
  2743. Reviewed by Oliver.
  2744. Fix regression: gradient on fill of text works again!
  2745. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  2746. (WebCore::SVGPaintServerGradient::teardown):
  2747. 2007-05-29 Nikolas Zimmermann <zimmermann@kde.org>
  2748. Reviewed by Oliver.
  2749. Fix "jumpy" selection by correcting the way svgCharacterHitsPosition works.
  2750. I basically mixed up the "closest character to position" logic.
  2751. * rendering/RenderSVGInlineText.cpp: Only call svgCharacterHitsPosition for the firstTextBox -> it handles all children anyway.
  2752. (WebCore::RenderSVGInlineText::positionForCoordinates):
  2753. * rendering/SVGInlineTextBox.cpp:
  2754. (WebCore::SVGInlineTextBox::closestCharacterToPosition): Fix logic - was really broken!
  2755. (WebCore::SVGInlineTextBox::svgCharacterHitsPosition):
  2756. (WebCore::SVGInlineTextBox::nodeAtPoint): Do not use svgCharacterHitsPosition here - too accurate!
  2757. We don't want to loose the 'text' cursor if one is just between two characters.
  2758. 2007-05-24 Nikolas Zimmermann <zimmermann@kde.org>
  2759. Reviewed by Oliver.
  2760. Add new code path dumping SVG text engine specific layout test results.
  2761. Finally the dumped results are actually accurate and respond to the
  2762. rendered glyphs. This has never been correct so far.
  2763. * rendering/RenderTreeAsText.cpp:
  2764. (WebCore::quoteAndEscapeNonPrintables):
  2765. (WebCore::write):
  2766. * rendering/RenderTreeAsText.h:
  2767. * rendering/SVGInlineTextBox.h:
  2768. * rendering/SVGRenderTreeAsText.cpp:
  2769. (WebCore::operator<<):
  2770. (WebCore::containsInlineTextBox):
  2771. (WebCore::writeSVGInlineText):
  2772. (WebCore::write):
  2773. * rendering/SVGRenderTreeAsText.h:
  2774. * rendering/SVGRootInlineBox.cpp:
  2775. (WebCore::topLeftPositionOfCharacterRange):
  2776. (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
  2777. (WebCore::cummulatedHeightOfInlineBoxCharacterRange):
  2778. (WebCore::SVGRootInlineBox::computePerCharacterLayoutInformation):
  2779. * rendering/SVGRootInlineBox.h:
  2780. 2007-05-20 Nikolas Zimmermann <zimmermann@kde.org>
  2781. Reviewed by Oliver.
  2782. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12698 (SVG text needs a special per-character layout mode.)
  2783. Fixes: http://bugs.webkit.org/show_bug.cgi?id=6420 (<text> does not respect x,y offset lists)
  2784. Fixes: http://bugs.webkit.org/show_bug.cgi?id=6425 (<textPath> element not implemented)
  2785. Fixes: http://bugs.webkit.org/show_bug.cgi?id=6481 (text-anchor (vertical) does not work in SVG text elements)
  2786. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11941 (REGRESSION: Missing text stroke in svg/W3C-SVG-1.1/text-deco-01-b.svg)
  2787. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12376 (glyph rotation in text/tspan not implemented)
  2788. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12377 (multiple dx and dy attributes not respected in text and tspan elements)
  2789. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12574 (<text> does not handle baseline-shift correctly)
  2790. Introduce new experimental SVG text engine - after 5+ months of hacking.
  2791. Add textPath support, absolute positioned SVG characters, vertical text,
  2792. text rotation, baseline-shift, text chunks spanning <tspan>'s etc.
  2793. Check my Flickr page for screenshots: http://www.flickr.com/photos/43532360@N00 (a bit outdated)
  2794. Fixes/Improvments:
  2795. - animate-elem-40-t.svg (x/y lists respected on <text> now)
  2796. - interact-cursor-01-f.svg (text-anchor correctly handled in <text><a> situations)
  2797. - struct-frag-05-t.svg (ditto)
  2798. - text-align-02-b.svg (baseline-shift recognized)
  2799. - text-align-04-b.svg (textPath displayed)
  2800. - text-align-05-b.svg (text-anchor & vertical text handled correctly)
  2801. - text-align-06-b.svg (baseline-shift & vertical text handled correctly)
  2802. - text-deco-01-b.svg (longstanding regression fixed for text-decoration)
  2803. - text-path-01-b.svg (all textPaths are displayed correctly)
  2804. - text-text-04-t.svg (all x/y/dx/dy list situations work fine now)
  2805. - text-text-05-t.svg (ditto)
  2806. - text-text-06-t.svg (ditto)
  2807. - text-text-07-t.svg (rotation works fine now)
  2808. - text-tspan-01-b.svg (per character placment works great in all situations)
  2809. Most files using text-anchor show 0.5-1% differences because the shift offset calculation is more correct now.
  2810. Regressions:
  2811. - Gradient on fill is broken (on stroke works) -> this is a regression (easy to fix soon)
  2812. js-late-gradient-and-object-creation.svg & js-late-gradient-creation.svg & pservers-grad-08-b.svg & pservers-grad-11-b.svg are broken
  2813. Complete list of missing things:
  2814. - 'textLength' / 'lengthAdjust' properties on <text>/<tspan> not yet handled.
  2815. - 'dominant-baseline / alignment-baseline missing (neither FF/Opera/Batik support this)
  2816. - 'kerning' property ignored
  2817. - 'glyph-orientation-vertical' / 'glyph-orientation-horizontal' not yet handled.
  2818. - Hebrew text selection broken (discontinous selection doesn't work)
  2819. - <textPath> doesn't yet participate in text selection
  2820. - <textPath> 'text-anchor' handling is flawed
  2821. - <textPath> doesn't yet handle 'method' / 'spacing' properties
  2822. - 'letter-spacing' / 'word-spacing' is still handled in the "legacy" mode. That means it only works
  2823. for simple cases -> won't work for textPath's for instance
  2824. - SVG fonts (<altGlyph>, <font> ..... tons more)
  2825. * DerivedSources.make: Add DOM/JSSVGTextPathElement.h to build
  2826. * WebCore.xcodeproj/project.pbxproj: Add textPath related files to build
  2827. * css/svg.css: Correct white-space default setting for textPath element
  2828. * ksvg2/svg/SVGFEFloodElement.cpp: Missing include (experimental build was broken)
  2829. * ksvg2/svg/SVGTSpanElement.cpp: Recognize textPath children.
  2830. (WebCore::SVGTSpanElement::childShouldCreateRenderer):
  2831. * ksvg2/svg/SVGTextElement.cpp: Ditto.
  2832. (WebCore::SVGTextElement::childShouldCreateRenderer):
  2833. * ksvg2/svg/SVGTextPathElement.cpp: Added.
  2834. (WebCore::SVGTextPathElement::SVGTextPathElement):
  2835. (WebCore::SVGTextPathElement::~SVGTextPathElement):
  2836. (WebCore::SVGTextPathElement::parseMappedAttribute):
  2837. (WebCore::SVGTextPathElement::createRenderer):
  2838. (WebCore::SVGTextPathElement::childShouldCreateRenderer):
  2839. (WebCore::SVGTextPathElement::insertedIntoDocument):
  2840. (WebCore::SVGTextPathElement::buildPendingResource):
  2841. (WebCore::SVGTextPathElement::attach):
  2842. * ksvg2/svg/SVGTextPathElement.h: Added.
  2843. (WebCore::):
  2844. (WebCore::SVGTextPathElement::rendererIsNeeded):
  2845. (WebCore::SVGTextPathElement::contextElement):
  2846. * ksvg2/svg/SVGTextPathElement.idl: Added.
  2847. * ksvg2/svg/svgtags.in: Add textPath tag.
  2848. * rendering/InlineTextBox.cpp: Make two methods non static to share with SVG.
  2849. (WebCore::correctedTextColor):
  2850. (WebCore::updateGraphicsContext):
  2851. * rendering/InlineTextBox.h:
  2852. * rendering/RenderSVGInlineText.cpp: Special positionForCoordinates() implementation. Stub caretRect() for SVG.
  2853. (WebCore::RenderSVGInlineText::selectionRect):
  2854. (WebCore::RenderSVGInlineText::caretRect):
  2855. (WebCore::RenderSVGInlineText::positionForCoordinates):
  2856. * rendering/RenderSVGInlineText.h:
  2857. * rendering/RenderSVGTextPath.cpp: Added.
  2858. (WebCore::RenderSVGTextPath::RenderSVGTextPath):
  2859. (WebCore::RenderSVGTextPath::layoutPath):
  2860. (WebCore::RenderSVGTextPath::setLayoutPath):
  2861. (WebCore::RenderSVGTextPath::startOffset):
  2862. (WebCore::RenderSVGTextPath::setStartOffset):
  2863. (WebCore::RenderSVGTextPath::exactAlignment):
  2864. (WebCore::RenderSVGTextPath::setExactAlignment):
  2865. (WebCore::RenderSVGTextPath::stretchMethod):
  2866. (WebCore::RenderSVGTextPath::setStretchMethod):
  2867. (WebCore::RenderSVGTextPath::absoluteRects):
  2868. * rendering/RenderSVGTextPath.h: Added.
  2869. (WebCore::RenderSVGTextPath::renderName):
  2870. * rendering/RenderText.cpp: Fix indention and use StringImpl::empty() instead of creating an empty string manually.
  2871. (WebCore::RenderText::setTextInternal):
  2872. * rendering/RootInlineBox.h: Add virtual no-op computePerCharacterLayoutInformation().
  2873. (WebCore::RootInlineBox::computePerCharacterLayoutInformation):
  2874. * rendering/SVGCharacterLayoutInfo.cpp: Added.
  2875. (WebCore::calculateBaselineShift):
  2876. (WebCore::SVGCharacterLayoutInfo::SVGCharacterLayoutInfo):
  2877. (WebCore::SVGCharacterLayoutInfo::xValueAvailable):
  2878. (WebCore::SVGCharacterLayoutInfo::yValueAvailable):
  2879. (WebCore::SVGCharacterLayoutInfo::dxValueAvailable):
  2880. (WebCore::SVGCharacterLayoutInfo::dyValueAvailable):
  2881. (WebCore::SVGCharacterLayoutInfo::angleValueAvailable):
  2882. (WebCore::SVGCharacterLayoutInfo::baselineShiftValueAvailable):
  2883. (WebCore::SVGCharacterLayoutInfo::xValueNext):
  2884. (WebCore::SVGCharacterLayoutInfo::yValueNext):
  2885. (WebCore::SVGCharacterLayoutInfo::dxValueNext):
  2886. (WebCore::SVGCharacterLayoutInfo::dyValueNext):
  2887. (WebCore::SVGCharacterLayoutInfo::angleValueNext):
  2888. (WebCore::SVGCharacterLayoutInfo::baselineShiftValueNext):
  2889. (WebCore::SVGCharacterLayoutInfo::processedSingleCharacter):
  2890. (WebCore::SVGCharacterLayoutInfo::processedChunk):
  2891. (WebCore::SVGCharacterLayoutInfo::nextPathLayoutPointAndAngle):
  2892. (WebCore::SVGCharacterLayoutInfo::inPathLayout):
  2893. (WebCore::SVGCharacterLayoutInfo::setInPathLayout):
  2894. (WebCore::SVGCharacterLayoutInfo::addLayoutInformation):
  2895. (WebCore::SVGCharacterLayoutInfo::addStackContent):
  2896. (WebCore::SVGCharacterLayoutInfo::xStackWalk):
  2897. (WebCore::SVGCharacterLayoutInfo::yStackWalk):
  2898. (WebCore::SVGCharacterLayoutInfo::dxStackWalk):
  2899. (WebCore::SVGCharacterLayoutInfo::dyStackWalk):
  2900. (WebCore::SVGCharacterLayoutInfo::angleStackWalk):
  2901. (WebCore::SVGCharacterLayoutInfo::baselineShiftStackWalk):
  2902. * rendering/SVGCharacterLayoutInfo.h: Added.
  2903. (WebCore::PositionedVector::Type):
  2904. (WebCore::PositionedVector::position):
  2905. (WebCore::PositionedVector::advance):
  2906. (WebCore::PositionedVector::valueAtCurrentPosition):
  2907. (WebCore::SVGCharacterLayoutInfo::):
  2908. (WebCore::SVGInlineBoxCharacterRange::SVGInlineBoxCharacterRange):
  2909. (WebCore::SVGInlineBoxCharacterRange::isOpen):
  2910. (WebCore::SVGInlineBoxCharacterRange::isClosed):
  2911. (WebCore::SVGTextChunk::SVGTextChunk):
  2912. (WebCore::SVGTextChunkLayoutInfo::SVGTextChunkLayoutInfo):
  2913. * rendering/SVGInlineFlowBox.cpp: Make all methods no-ops when using the new text engine.
  2914. (WebCore::SVGInlineFlowBox::paint):
  2915. (WebCore::SVGInlineFlowBox::placeBoxesHorizontally):
  2916. (WebCore::SVGInlineFlowBox::verticallyAlignBoxes):
  2917. * rendering/SVGInlineFlowBox.h:
  2918. * rendering/SVGInlineTextBox.cpp: Add new text selection / character hit detection related code.
  2919. (WebCore::SVGInlineTextBox::SVGInlineTextBox):
  2920. (WebCore::SVGInlineTextBox::selectionTop):
  2921. (WebCore::SVGInlineTextBox::svgRootInlineBox):
  2922. (WebCore::SVGInlineTextBox::closestCharacterToPosition):
  2923. (WebCore::SVGInlineTextBox::svgCharacterHitsPosition):
  2924. (WebCore::SVGInlineTextBox::offsetForPosition):
  2925. (WebCore::SVGInlineTextBox::positionForOffset):
  2926. (WebCore::SVGInlineTextBox::nodeAtPoint):
  2927. (WebCore::SVGInlineTextBox::selectionRect):
  2928. * rendering/SVGInlineTextBox.h:
  2929. * rendering/SVGRootInlineBox.cpp: The heart of the new text engine lives here.
  2930. (WebCore::prepareTextRendering):
  2931. (WebCore::isVerticalWritingMode):
  2932. (WebCore::SVGRootInlineBox::paint):
  2933. (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
  2934. (WebCore::SVGRootInlineBox::verticallyAlignBoxes):
  2935. (WebCore::SVGRootInlineBox::cummulatedWidthOfSelectionRange):
  2936. (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
  2937. (WebCore::cummulatedWidthOfTextChunk):
  2938. (WebCore::cummulatedHeightOfTextChunk):
  2939. (WebCore::applyTextAnchorToTextChunk):
  2940. (WebCore::SVGRootInlineBox::computePerCharacterLayoutInformation):
  2941. (WebCore::totalAdvanceOfInlineTextBox):
  2942. (WebCore::totalAdvanceOfInlineBox):
  2943. (WebCore::SVGRootInlineBox::buildLayoutInformation):
  2944. (WebCore::SVGRootInlineBox::layoutInlineBoxes):
  2945. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
  2946. (WebCore::SVGRootInlineBox::buildTextChunks):
  2947. (WebCore::SVGRootInlineBox::svgTextChunks):
  2948. (WebCore::SVGRootInlineBox::layoutTextChunks):
  2949. (WebCore::SVGRootInlineBox::paintSelectionForTextBox):
  2950. (WebCore::SVGRootInlineBox::paintInlineBoxes):
  2951. (WebCore::SVGRootInlineBox::paintCharacterRangeForTextBox):
  2952. * rendering/SVGRootInlineBox.h:
  2953. * rendering/bidi.cpp: Call the new computePerCharacterLayoutInformation() method.
  2954. (WebCore::RenderBlock::layoutInlineChildren):
  2955. 2007-05-10 Eric Seidel <eric@webkit.org>
  2956. Reviewed by olliej.
  2957. http://bugs.webkit.org/show_bug.cgi?id=11931
  2958. PathCG fails to hit on unclosed sub-paths
  2959. Test: svg/custom/hit-test-unclosed-subpaths.svg
  2960. * platform/graphics/cg/PathCG.cpp:
  2961. (WebCore::copyClosingSubpathsApplierFunction):
  2962. (WebCore::copyCGPathClosingSubpaths):
  2963. (WebCore::Path::contains): use new copy & close function
  2964. === End merge of feature-branch 2007-10-12 ===
  2965. 2007-10-11 Jon Honeycutt <jhoneycutt@apple.com>
  2966. Reviewed by Anders.
  2967. Handle a race condition that could arise if a plugin was loaded while it
  2968. was scheduled to be freed: check whether the timer that schedules
  2969. library frees is active in PluginPackageWin::load().
  2970. * plugins/win/PluginPackageWin.cpp:
  2971. (WebCore::PluginPackageWin::freeLibrarySoon): Added assertions
  2972. (WebCore::PluginPackageWin::freeLibraryTimerFired): Added assertion
  2973. (WebCore::PluginPackageWin::load): If we are scheduled to free this
  2974. library, cancel the timer, and don't call LoadLibrary
  2975. 2007-10-11 Justin Garcia <justin.garcia@apple.com>
  2976. Reviewed by Harrison.
  2977. <rdar://problem/5483567> REGRESSION (Tiger only): Pasting words copied from TextEdit in Mail adds extra newline
  2978. * editing/ReplaceSelectionCommand.cpp:
  2979. (WebCore::ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds): Added.
  2980. We would like to insert the fragment as-is if possible, but AppKit on Tiger
  2981. creates fragments from RTF data that have carriage returns and spaces at the
  2982. beginning and end, and those need to be removed since they'll interfere with
  2983. paragraph merging.
  2984. (WebCore::ReplaceSelectionCommand::doApply):
  2985. * editing/ReplaceSelectionCommand.h:
  2986. 2007-10-10 Justin Garcia <justin.garcia@apple.com>
  2987. Reviewed by Maciej.
  2988. <rdar://problem/5521237> Pasting a word copied from TextEdit after a regular, breaking space, adds a leading newline
  2989. * editing/CompositeEditCommand.cpp:
  2990. (WebCore::CompositeEditCommand::prepareWhitespaceAtPositionForSplit):
  2991. Fixed a typo.
  2992. 2007-10-10 Jon Honeycutt <jhoneycutt@apple.com>
  2993. Reviewed by Darin.
  2994. <rdar://5530519> REGRESSION (303-310A18): Crash when closing tab with
  2995. pdf file (Reader 7 only)
  2996. Reader 7 subclasses its parent window, so posting a WM_DESTROY to this
  2997. window puts us in plugin code. When the plugin forwards the message
  2998. back to the original window proc, and we free the plugin library from
  2999. there, we will jump back to code we just freed when we return, so delay
  3000. calling FreeLibrary at least until the next message loop
  3001. * plugins/win/PluginPackageWin.cpp:
  3002. (WebCore::PluginPackageWin::freeLibrarySoon): Start a timer to free the
  3003. plugin library
  3004. (WebCore::PluginPackageWin::freeLibraryTimerFired): Free the library
  3005. (WebCore::PluginPackageWin::PluginPackageWin): Initialize the timer that
  3006. will free this library
  3007. (WebCore::PluginPackageWin::unloadWithoutShutdown): Call
  3008. freeLibrarySoon()
  3009. * plugins/win/PluginPackageWin.h: Added m_freeLibraryTimer
  3010. 2007-10-11 Ada Chan <adachan@apple.com>
  3011. <rdar://problem/5534421>
  3012. Switched to using wkGetDefaultHTTPCookieStorage() and removed some cookie-related
  3013. methods we no longer need in ResourceHandle.
  3014. <rdar://problem/5244261> "Never" cookie policy was ignored on windows
  3015. Need to set the cookie accept policy on each CFURLRequest.
  3016. Reviewed by Oliver.
  3017. * platform/network/ResourceHandle.h:
  3018. * platform/network/cf/ResourceHandleCFNet.cpp:
  3019. (WebCore::makeFinalRequest):
  3020. * platform/network/cf/ResourceRequestCFNet.cpp:
  3021. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  3022. * platform/network/win/CookieJarWin.cpp:
  3023. (WebCore::setCookies):
  3024. (WebCore::cookies):
  3025. (WebCore::cookiesEnabled):
  3026. 2007-10-11 Mark Rowe <mrowe@apple.com>
  3027. Reviewed by Tim Hatcher.
  3028. Fix for <rdar://problem/5488678>. Disable debugging symbols in production builds for 10.4
  3029. PowerPC to prevent a huge STABS section from being generated.
  3030. * Configurations/Base.xcconfig:
  3031. 2007-10-11 Lars Knoll <lars@trolltech.com>
  3032. Reviewed by Erik Seidel and Simon.
  3033. Ensure that setting innerHTML on an element doesn't do
  3034. weird things with the document.
  3035. Fixes most issues with http://bugs.webkit.org/show_bug.cgi?id=15456
  3036. Test: fast/innerHTML/innerHTML-changing-document-properties.xhtml
  3037. * dom/XMLTokenizer.cpp:
  3038. (WebCore::XMLTokenizer::write):
  3039. (WebCore::XMLTokenizer::startDocument):
  3040. (WebCore::XMLTokenizer::end):
  3041. (WebCore::):
  3042. 2007-10-10 George Staikos <staikos@kde.org>
  3043. Reviewed by Adam Roben.
  3044. Fix Qt build on Win32 with VS2005.
  3045. * loader/FTPDirectoryDocument.cpp:
  3046. (WebCore::processFileDateString):
  3047. * loader/FTPDirectoryParser.cpp:
  3048. (WebCore::parseOneFTPLine):
  3049. 2007-10-10 Alice Liu <alice.liu@apple.com>
  3050. Reviewed by Geoff Garen.
  3051. Fixed <rdar://5464402> Crash when running fast/frames/onload-remove-iframe-crash.html in DRT
  3052. createFrame() now returns a RefPtr instead of a raw Frame pointer.
  3053. Making this change improves the way we handle frames on Windows webkit.
  3054. * loader/FrameLoader.cpp:
  3055. (WebCore::FrameLoader::loadSubframe):
  3056. * loader/FrameLoaderClient.h:
  3057. * platform/graphics/svg/SVGImageEmptyClients.h:
  3058. (WebCore::SVGEmptyFrameLoaderClient::createFrame):
  3059. 2007-10-10 Simon Hausmann <hausmann@kde.org>
  3060. Reviewed by Lars.
  3061. Fix compilation using gcc 4.3. Header files have been reorganized and as a result some extra
  3062. includes are needed for INT_MAX, std::auto_ptr and the like.
  3063. WARNING: NO TEST CASES ADDED OR CHANGED
  3064. * bridge/AXObjectCache.h:
  3065. * ksvg2/misc/SVGDocumentExtensions.h:
  3066. * platform/Base64.cpp:
  3067. * platform/graphics/svg/SVGPaintServerPattern.h:
  3068. * platform/graphics/svg/SVGResourceMasker.h:
  3069. 2007-10-08 Sam Weinig <sam@webkit.org>
  3070. Reviewed by Steve Falkenburg.
  3071. Fix for <rdar://problem/5519698> CrashTracer: [USER] 47 crashes in Safari at com.apple.WebCore: WebCore::XMLTokenizer::lineNumber const + 9
  3072. Test: fast/innerHTML/innerHTML-script-tag-crash.xhtml
  3073. * dom/XMLTokenizer.cpp:
  3074. (WebCore::XMLTokenizer::lineNumber): Return 1 when there is no context.
  3075. (WebCore::XMLTokenizer::columnNumber): ditto.
  3076. 2007-10-08 Adam Roben <aroben@apple.com>
  3077. Fix Bug 15305: Crash when dragging an image when "load images automatically" preference is off
  3078. http://bugs.webkit.org/show_bug.cgi?id=15305
  3079. <rdar://problem/5524774>
  3080. Reviewed by Eric Seidel.
  3081. No test possible: to reproduce this you have to change a WebKit
  3082. preference and reload the page. See
  3083. http://bugs.webkit.org/show_bug.cgi?id=15414
  3084. * platform/win/ClipboardWin.cpp:
  3085. (WebCore::createGlobalImageFileDescriptor): ASSERT that we have an
  3086. image and that it has a SharedBuffer.
  3087. (WebCore::writeImageToDataObject): The fix: null-check imageBuffer.
  3088. 2007-10-05 Geoffrey Garen <ggaren@apple.com>
  3089. Reviewed by Sam Weinig.
  3090. New fix for <rdar://problem/5522487> REGRESSION: With JavaScript
  3091. disabled, any page load causes a crash in PropertyMap::put
  3092. Explicitly remove the "document" property from the window. The old
  3093. solution would leave a stale "document" property around after JavaScript
  3094. was re-enabled.
  3095. The architecture for disabling JavaScript could use some consolidation.
  3096. It seems wrong that a script proxy even exists when JavaScript is
  3097. disabled. It also seems wrong that so many individual call sites are
  3098. responsible for checking whether JavaScript is enabled. I've filed a
  3099. bug about this: http://bugs.webkit.org/show_bug.cgi?id=15385.
  3100. * bindings/js/kjs_proxy.cpp:
  3101. (WebCore::KJSProxy::clearDocumentWrapper):
  3102. * bindings/js/kjs_proxy.h:
  3103. * page/Frame.cpp:
  3104. (WebCore::Frame::setDocument):
  3105. 2007-10-05 Jon Honeycutt <jhoneycutt@apple.com>
  3106. Reviewed by Anders.
  3107. <rdar://5520913> Ticketmaster.com doesn't display correctly (Flash
  3108. related?)
  3109. The plugin is requesting files that don't exist on the server, and
  3110. we are passing the 404 error page to the plugin. This change cancels the
  3111. stream if the response code indicates a failure.
  3112. This is a port of the safari / mac code.
  3113. * loader/win/NetscapePlugInStreamLoaderWin.cpp:
  3114. (WebCore::NetscapePlugInStreamLoader::didReceiveResponse): If the
  3115. response code indicates a failure, cancel the stream
  3116. 2007-10-05 Geoffrey Garen <ggaren@apple.com>
  3117. Reviewed by Sam Weinig.
  3118. Fixed <rdar://problem/5522487> REGRESSION: With JavaScript disabled,
  3119. any page load causes a crash in PropertyMap::put
  3120. The problem was that we were using JavaScript when JavaScript was
  3121. disabled. The architecture for disabling JavaScript could use some
  3122. consolidation, but this is the simplest, safest change for now.
  3123. Currently passing layout tests still pass.
  3124. * bindings/js/kjs_proxy.cpp:
  3125. (WebCore::KJSProxy::updateDocumentWrapper):
  3126. 2007-10-04 Beth Dakin <bdakin@apple.com>
  3127. Reviewed by John Sullivan.
  3128. Fix for <rdar://problem/5441823> REGRESSION (r25142, Tiger only):
  3129. Vertical scroll bar not redrawn properly when going back in history
  3130. (15033)
  3131. This fix if-defs r25142 to be Leopard-only since it causes
  3132. correctness issues on Tiger and does not seem to have any
  3133. performance impact on Tiger either.
  3134. * loader/FrameLoader.cpp:
  3135. (WebCore::FrameLoader::transitionToCommitted):
  3136. 2007-10-05 Ada Chan <adachan@apple.com>
  3137. <rdar://problem/5436617> Favicons sometimes don't show up even when they are
  3138. in the database
  3139. - A client can try to retain an icon for a page before the database is actually
  3140. opened. Since isOpened() is not a requirement to retain an icon, remove the check
  3141. for that. Instead, we'll check to make sure whether this database is enabled
  3142. before proceeding.
  3143. Reviewed by Brady.
  3144. * loader/icon/IconDatabase.cpp:
  3145. (WebCore::IconDatabase::retainIconForPageURL):
  3146. (WebCore::IconDatabase::releaseIconForPageURL): only check isOpen() before we
  3147. schedule for a sync.
  3148. 2007-10-05 Lars Knoll <lars@trolltech.com>
  3149. Reviewed by olliej.
  3150. fix a hang in editing/selection/extend-by-word-002.html
  3151. * platform/qt/TextBreakIteratorQt.cpp:
  3152. (WebCore::CharBreakIteratorQt::next):
  3153. (WebCore::characterBreakIterator):
  3154. 2007-10-04 Mark Rowe <mrowe@apple.com>
  3155. Reviewed by Oliver.
  3156. Switch to default level of debugging symbols to resolve <rdar://problem/5488678>.
  3157. The "full" level appears to offer no observable benefits even though the documentation
  3158. suggests it be used for dead code stripping. This should also decrease link times.
  3159. * Configurations/Base.xcconfig:
  3160. 2007-10-04 Adele Peterson <adele@apple.com>
  3161. Reviewed by Darin.
  3162. WebCore part of fix for <rdar://problem/5369017> REGRESSION: Can't tab to webview that doesn't have editable content
  3163. * page/FocusController.h: Added FocusDirection argument.
  3164. * page/FocusController.cpp: (WebCore::FocusController::setInitialFocus):
  3165. Use FocusDirection argument instead of key modifiers to send direction to advanceFocus.
  3166. * WebCore.exp: Updated symbol.
  3167. 2007-10-04 Kevin Decker <kdecker@apple.com>
  3168. Reviewed by John.
  3169. <rdar://problems/5516309>
  3170. * page/FrameView.cpp:
  3171. (WebCore::FrameView::updateControlTints): Avoid the expense of updating tints on controls for the
  3172. empty-window case since this can take a significant amount of time even on windows that have no
  3173. content at all. Note this fix specifically optimizes the empty window/tab case; for a more broad
  3174. fix John wrote up rdar://problem/5521050.
  3175. 2007-10-04 Darin Adler <darin@apple.com>
  3176. * page/Frame.h: Put functions into categories to indicate other classes
  3177. we'd like to move them into in the future. Just organizational -- no code
  3178. change.
  3179. 2007-10-04 Lars Knoll <lars@trolltech.com>
  3180. Reviewed by maciej.
  3181. fix a crash in the FrameLoader that can happen under certain
  3182. conditions in the Qt port.
  3183. Test: fast/loader/iframe-crash-on-missing-image.xhtml
  3184. * loader/FrameLoader.cpp:
  3185. (WebCore::FrameLoader::receivedMainResourceError):
  3186. 2007-10-03 Alp Toker <alp@atoker.com>
  3187. Reviewed by Adam.
  3188. http://bugs.webkit.org/show_bug.cgi?id=14726
  3189. [gtk] API design. Mapping the WebView delegates to signals.
  3190. Change the API namespace of the Gtk+ port from 'WebKitGtk' to 'WebKit'.
  3191. * WebCore.pro:
  3192. 2007-10-03 Alp Toker <alp@atoker.com>
  3193. Reviewed by Eric.
  3194. http://bugs.webkit.org/show_bug.cgi?id=14129
  3195. [CAIRO] Support the canvas element
  3196. Add a new canvas implementation using Cairo for rendering.
  3197. * html/CanvasGradient.cpp:
  3198. (WebCore::CanvasGradient::CanvasGradient):
  3199. (WebCore::CanvasGradient::~CanvasGradient):
  3200. (WebCore::CanvasGradient::addColorStop):
  3201. (WebCore::CanvasGradient::platformShading):
  3202. * html/CanvasGradient.h:
  3203. * html/CanvasRenderingContext2D.cpp:
  3204. (WebCore::CanvasRenderingContext2D::setFillStyle):
  3205. (WebCore::CanvasRenderingContext2D::fill):
  3206. (WebCore::CanvasRenderingContext2D::stroke):
  3207. (WebCore::CanvasRenderingContext2D::fillRect):
  3208. (WebCore::CanvasRenderingContext2D::drawImage):
  3209. (WebCore::CanvasRenderingContext2D::applyStrokePattern):
  3210. * html/CanvasStyle.cpp:
  3211. (WebCore::CanvasStyle::applyStrokeColor):
  3212. * html/HTMLCanvasElement.cpp:
  3213. (WebCore::HTMLCanvasElement::~HTMLCanvasElement):
  3214. (WebCore::HTMLCanvasElement::reset):
  3215. (WebCore::HTMLCanvasElement::paint):
  3216. (WebCore::HTMLCanvasElement::createDrawingContext):
  3217. (WebCore::HTMLCanvasElement::createPlatformImage):
  3218. * html/HTMLCanvasElement.h:
  3219. 2007-10-03 Lars Knoll <lars@trolltech.com>
  3220. Signed off by olliej.
  3221. move WebKitQt to WebKit/qt for consistency with the other ports.
  3222. WARNING: NO TEST CASES ADDED OR CHANGED
  3223. * WebCore.pro:
  3224. 2007-10-02 Sam Weinig <sam@webkit.org>
  3225. Reviewed by Oliver and Adam.
  3226. Patch for <rdar://problem/5506968> Fail to DnD local file with non-ascii character in path from desktop to Safari (can open it with file menu)
  3227. Use CoreFoundation to do the conversion from path to URL, as the Windows API was not
  3228. correctly converting to UTF-8 and we know CFURL will.
  3229. * platform/win/ClipboardUtilitiesWin.cpp:
  3230. (WebCore::urlFromPath):
  3231. (WebCore::getURL):
  3232. 2007-10-02 Tristan O'Tierney <tristan@apple.com>
  3233. Reviewed by Darin Adler.
  3234. <rdar://problem/5511842> REGRESSION: Webkit stops responding while loading Apple Store Canada page (15304)
  3235. Included the NSSynchronousURLConnection_PrivateMode mode, in addition to the default run loop modes
  3236. as an acceptable mode when using performSelectorOnMainThread with our syncronous url callbacks.
  3237. * platform/network/mac/ResourceHandleMac.mm:
  3238. (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
  3239. Added NSSynchronousURLConnection_PrivateMode to the list of accepted modes.
  3240. 2007-10-02 Darin Adler <darin@apple.com>
  3241. Reviewed by Adam.
  3242. - add support for GDI objects to OwnPtr; I plan to use this
  3243. to fix some GDI handle leaks
  3244. * css/CSSGrammar.y: Change parser to avoid macro that conflicts
  3245. with macro defined in Windows system headers: FLOAT. This is needed
  3246. because OwnPtr.h will now include <windows.h>.
  3247. * css/CSSParser.cpp: (WebCore::CSSParser::lex): Ditto.
  3248. * css/tokenizer.flex: Ditto.
  3249. * platform/win/CursorWin.cpp: (WebCore::Cursor::Cursor):
  3250. Use OwnPtr for a few HBITMAP objects as a test case.
  3251. * platform/win/COMPtr.h: (COMPtr::COMPtr): Fix so that we can use
  3252. Query with other COMPtr. Before this would not compile if it was
  3253. ever instantiated.
  3254. 2007-10-02 Steve Falkenburg <sfalken@apple.com>
  3255. Reviewed by Adam, Ada.
  3256. Fix leak of GDI handle when we call MLANG.
  3257. * platform/win/FontCacheWin.cpp:
  3258. (WebCore::FontCache::getFontDataForCharacters):
  3259. 2007-10-02 Lars Knoll <lars@trolltech.com>
  3260. Reviewed by Olliej.
  3261. The cookies() method should only return the value of the
  3262. cookie, not additional info such as the expiration date.
  3263. * platform/qt/CookieJarQt.cpp:
  3264. (WebCore::cookies):
  3265. 2007-10-01 Lars Knoll <lars@trolltech.com>
  3266. Reviewed by Eric.
  3267. Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient.
  3268. * platform/qt/MIMETypeRegistryQt.cpp:
  3269. (WebCore::):
  3270. 2007-10-01 Justin Garcia <justin.garcia@apple.com>
  3271. Reviewed by Harrison.
  3272. <rdar://problem/5516183> REGRESSION: Creating a ToDo on an incoming message fails
  3273. Rolling out r25721.
  3274. * editing/ReplaceSelectionCommand.cpp:
  3275. (WebCore::ReplaceSelectionCommand::doApply):
  3276. * editing/ReplaceSelectionCommand.h:
  3277. 2007-10-01 Beth Dakin <bdakin@apple.com>
  3278. Reviewed by Adam.
  3279. Fix for <rdar://problem/5515426> NetNewsWire 3 crashes at launch in
  3280. WebCore::FrameView::layout (other repro scenarios too)
  3281. The new call to updateWidget() that we added to FrameView::layout()
  3282. can destroy the RenderPartObject. And so we were crashing on the
  3283. subsequent call to updateWidgetPosition(). This patch fixes that by
  3284. checking to make sure the RenderPartObject is still in the HashSet
  3285. after updateWidget(). Because m_widgetUpdateSet can be modified
  3286. during the call to updateWidget(), we need it to be intact while we
  3287. are iterating through the copy, so we cannot use the HashSet::swap
  3288. call we were using before. This patch instead uses a Vector to
  3289. iterate through the HashSet data and calls clear() on the HashSet
  3290. at the end.
  3291. * page/FrameView.cpp:
  3292. (WebCore::FrameView::layout):
  3293. 2007-10-01 Eli Fidler <eli@staikos.net>
  3294. Reviewed by George Staikos.
  3295. Switch bogus assert to a conditional and return. This case happens
  3296. when a widget is hidden.
  3297. * platform/qt/WidgetQt.cpp:
  3298. (WebCore::Widget::invalidateRect):
  3299. 2007-09-30 Darin Adler <darin@apple.com>
  3300. Reviewed by Maciej.
  3301. - tone down the assertion I asked Harrison to include in his fix for
  3302. <rdar://problem/5511128>; it's OK to re-ref and deref the document
  3303. as long as you do so after the children are done being destroyed
  3304. No effect on release builds. Assertion change only.
  3305. Besides the changes listed below, renamed m_hasDeleted flag to
  3306. m_deletionHasBegun.
  3307. * dom/ContainerNode.cpp: (WebCore::ContainerNode::removeAllChildren):
  3308. Added code to set the m_deletionHasBegun flag and some assertions
  3309. that test its state.
  3310. * dom/Document.h: Removed m_hasDeleted -- we now use m_deletionHasBegun
  3311. in the base class TreeShared.
  3312. * dom/Document.cpp:
  3313. (WebCore::Document::Document): Removed initialization of m_hasDeleted.
  3314. (WebCore::Document::removedLastRef): Added code to clear
  3315. m_inRemovedLastRefFunction if we end up deciding not to delete this.
  3316. * platform/Shared.h:
  3317. (WebCore::TreeShared::TreeShared): Added m_deletionHasBegun in addition to
  3318. m_inRemovedLastRefFunction (formerly named m_hasRemovedLastRef).
  3319. (WebCore::TreeShared::~TreeShared): Assert that m_deletionHasBegun is true.
  3320. (WebCore::TreeShared::ref): Assert neither flag is true.
  3321. (WebCore::TreeShared::deref): Ditto.
  3322. (WebCore::TreeShared::hasOneRef): Ditto.
  3323. (WebCore::TreeShared::removedLastRef): Made private. Added code to
  3324. set m_hasDeleted to true. Also removed cast; since this class template
  3325. has a virtual destructor, we don't need to cast before calling delete.
  3326. 2007-09-29 Holger Hans Peter Freyther <zecke@selfish.org>
  3327. Reviewed by Mark.
  3328. -Fix http://bugs.webkit.org/show_bug.cgi?id=13226.
  3329. Remove Bakefiles from svn.
  3330. * Projects/gdk/webcore-gdk.bkl: Removed.
  3331. * Projects/wx/webcore-wx.bkl: Removed.
  3332. * WebCoreSources.bkl: Removed.
  3333. * webcore-base.bkl: Removed.
  3334. 2007-09-28 Jan Michael Alonzo <jmalonzo@unpluggable.com>
  3335. Reviewed by Mark.
  3336. -Fix http://bugs.webkit.org/show_bug.cgi?id=15254.
  3337. * platform/gtk/RenderThemeGtk.cpp:
  3338. (WebCore::RenderThemeGtk::determineState):
  3339. - Apply state if control is readonly
  3340. - Added state GTK_STATE_SELECTED of object is checked
  3341. - Apply GTK_STATE_ACTIVE if RenderObject isFocused()
  3342. (WebCore::RenderThemeGtk::paintTextField):
  3343. (WebCore::RenderThemeGtk::gtkEntry):
  3344. - Implemented theme-aware text field based on gtk/gtkentry.c implementation
  3345. 2007-09-29 Holger Hans Peter Freyther <zecke@selfish.org>
  3346. Reviewed by Eric.
  3347. Build fix for Mac Gtk+ and Qt builds. In revision 25798 changing
  3348. XSLTProcessor.cpp was forgotten.
  3349. * xml/XSLTProcessor.cpp: Use PLATFORM(MAC) instead of PLATFORM(DARWIN)
  3350. 2007-09-29 Adam Roben <aroben@apple.com>
  3351. Fix <rdar://4965715> Horizontal scrollwheel scrolling moves in opposite direction on Vista
  3352. Reviewed by Sam.
  3353. No regression test possible.
  3354. * platform/win/WheelEventWin.cpp:
  3355. (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use a negative
  3356. delta when scrolling right to match EventHandler's expectations (which
  3357. are based on AppKit).
  3358. 2007-09-28 Kevin Decker <kdecker@apple.com>
  3359. Reviewed by Mark Rowe
  3360. Build fix for Mac Gtk+ and Qt builds.
  3361. * xml/XSLStyleSheet.cpp: Use PLATFORM(MAC) instead of PLATFORM(DARWIN)
  3362. * xml/XSLTExtensions.cpp: Ditto.
  3363. 2007-09-28 David Harrison <harrison@apple.com>
  3364. Reviewed by Darin Adler.
  3365. <rdar://problem/5511128> Crash closing or reloading this SVG
  3366. * dom/ContainerNode.cpp:
  3367. (WebCore::dispatchChildInsertionEvents):
  3368. (WebCore::dispatchChildRemovalEvents):
  3369. Use DocPtr instead of RefPtr, since these events are dispatched
  3370. when the Document is being being torn down by removedLastRef().
  3371. * dom/DocPtr.h:
  3372. (WebCore::DocPtr::DocPtr):
  3373. Fix longstanding typo in template so that the DocPtr(DocPtr) constructor can be used.
  3374. * dom/Document.cpp:
  3375. (WebCore::Document::Document):
  3376. (WebCore::Document::removedLastRef):
  3377. * dom/Document.h:
  3378. (WebCore::Document::selfOnlyRef):
  3379. (WebCore::Document::selfOnlyDeref):
  3380. * platform/Shared.h:
  3381. (WebCore::Shared::Shared):
  3382. (WebCore::Shared::ref):
  3383. (WebCore::Shared::deref):
  3384. (WebCore::Shared::hasOneRef):
  3385. (WebCore::TreeShared::TreeShared):
  3386. (WebCore::TreeShared::ref):
  3387. (WebCore::TreeShared::deref):
  3388. (WebCore::TreeShared::hasOneRef):
  3389. (WebCore::TreeShared::refCount):
  3390. Add debug-only checks for a document being ref-counted while being deleted.
  3391. 2007-09-27 Kevin McCullough <kmccullough@apple.com>
  3392. Reviewed by Darin.
  3393. - <rdar://5261371> Nothing downloaded when exporting bookmarks from iGoogle web history
  3394. Function for use by WebKit. Currently used only on Windows.
  3395. * platform/network/ResourceResponse.cpp:
  3396. (WebCore::ResourceResponse::isAttachment):
  3397. * platform/network/ResourceResponse.h:
  3398. 2007-09-27 Mitz Pettel <mitz@webkit.org>
  3399. Reviewed by Dave Hyatt.
  3400. - fix http://bugs.webkit.org/show_bug.cgi?id=15262
  3401. REGRESSION: Margin-top:18px is pushing down the multiple select list box outside the div.
  3402. Reflected in existing tests.
  3403. * css/html4.css: Changed listboxes to use border-box sizing, to match Firefox,
  3404. WinIE and apparently also Safari 2.
  3405. 2007-09-27 Kevin Decker <kdecker@apple.com>
  3406. <rdar://problem/5493093>
  3407. Rubber stamped by John Sullivan.
  3408. * WebCore.order: Added.
  3409. * WebCore.xcodeproj/project.pbxproj: We're changing from using an order file built by another team to using one
  3410. we actually check into our project repository. Linker settings for Symbol Ordering Flags have been updated
  3411. accordingly.
  3412. 2007-09-27 Antti Koivisto <antti@apple.com>
  3413. Reviewed by Geoff.
  3414. Fix for <rdar://problem/5499125>
  3415. REGRESSION (r21367): After launching Kidzui beta, a webview frame fails to appear in its main window
  3416. If window object properties were modified when it had initial empty document (synchronously after
  3417. window.open() for example) those modifications were lost when the real document was switched in.
  3418. Match Firefox behavior where window properties are not cleared if the inital document and the loaded one
  3419. have matching security domains.
  3420. Tests: fast/dom/Window/window-early-properties.html
  3421. http/tests/security/window-properties-clear-domain.html
  3422. http/tests/security/window-properties-clear-port.html
  3423. http/tests/security/window-properties-pass.html
  3424. * WebCore.exp:
  3425. * loader/FrameLoader.cpp:
  3426. (WebCore::FrameLoader::FrameLoader):
  3427. (WebCore::FrameLoader::init):
  3428. (WebCore::FrameLoader::clear):
  3429. (WebCore::FrameLoader::isSecureTransition):
  3430. (WebCore::FrameLoader::begin):
  3431. * loader/FrameLoader.h:
  3432. If we are transitioning from initial empty document to the final one, do a domain security check
  3433. between old security policy URL and new URL. If that passes don't clear script proxy and script objects.
  3434. * bindings/js/kjs_proxy.cpp:
  3435. (WebCore::KJSProxy::updateDocumentWrapper):
  3436. * bindings/js/kjs_proxy.h:
  3437. * page/Frame.cpp:
  3438. (WebCore::Frame::setDocument):
  3439. Since we don't always clear window properties anymore, we need to update the document property to point to
  3440. the newly created one.
  3441. 2007-09-27 Kevin Decker <kdecker@apple.com>
  3442. Reviewed by Darin.
  3443. <rdar://problem/5493093>
  3444. * WebCore.xcodeproj/project.pbxproj: Removed libxslt from statically linked frameworks.
  3445. * platform/mac/SoftLinking.h: Formatting tweakes, added SOFT_LINK_LIBRARY, and if'def for
  3446. PLATFORM(DARWIN)
  3447. * xml/XSLStyleSheet.cpp: Soft-linked libxslt.
  3448. * xml/XSLTExtensions.cpp: Removed the call to xsltGenericError, and added a FIXME comment stating
  3449. that it might be helpful to push any errors from xmlXPathNewValueTree up to the Javascript Console.
  3450. * xml/XSLTProcessor.cpp: Soft-linked libxslt.
  3451. 2007-09-27 Adele Peterson <adele@apple.com>
  3452. Reviewed by Brady.
  3453. Fix for <rdar://problem/5453350> REGRESSION (r18541, Tiger only): Refreshing a cached https page does not reload CSS and JavaScript resources
  3454. http://bugs.webkit.org/show_bug.cgi?id=15121
  3455. * loader/FrameLoader.cpp: (WebCore::FrameLoader::addExtraFieldsToRequest): Now sets the cache policy to ReloadIgnoringCacheData. Without setting the cache policy,
  3456. the default policy in this case was ReturnCacheDataElseLoad. If we're in a situation where the resource is in the cache, we want to make sure to avoid loading from the cache in this case.
  3457. 2007-09-27 Timothy Hatcher <timothy@apple.com>
  3458. Reviewed by Darin.
  3459. <rdar://problem/5199546> CrashTracer: [REGRESSION] 8216 crashes in Safari at com.apple.WebCore: WebCore::ResourceHandle::client const + 6
  3460. On Tiger NSURLConnection can sometimes call the connection:willCacheResponse: delegate method on
  3461. a secondary thread instead of the main thread. This was never an issue before, since the implementation
  3462. of this method was very simple and thread safe.
  3463. The fix is to block during connection:willCacheResponse: and perform the work on the main thread.
  3464. We need to block since this delegate method needs to return a result. If we are already on the
  3465. main thread (which sometimes we are), the method does nothing different. If we are on a secondary
  3466. thread, we make a mutable dictionary to hold all the arguments and later the result object.
  3467. Then performSelectorOnMainThread:withObject: using the _callConnectionWillCacheResponseWithInfo:
  3468. selector. This new method just pulls the arguments out for the dictionary and calls the real
  3469. connection:willCacheResponse: delegate method (this time on the main thread). The result is stored
  3470. in the dictionary, and when performSelectorOnMainThread:withObject: finishes the result is pulled
  3471. out and returned.
  3472. * platform/network/mac/ResourceHandleMac.mm:
  3473. (-[WebCoreResourceHandleAsDelegate _callConnectionWillCacheResponseWithInfo:]):
  3474. (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
  3475. 2007-09-27 David Hyatt <hyatt@apple.com>
  3476. Update to reflect the minimal WebKitSystemInterface changes required
  3477. to support @font-face.
  3478. Reviewed by john
  3479. * platform/mac/FontDataMac.mm:
  3480. (WebCore::FontData::platformInit):
  3481. (WebCore::FontData::platformWidthForGlyph):
  3482. * platform/mac/WebCoreSystemInterface.h:
  3483. * platform/mac/WebCoreSystemInterface.mm:
  3484. 2007-09-26 Darin Adler <darin@apple.com>
  3485. - fix Windows build
  3486. * platform/win/ClipboardWin.cpp:
  3487. (WebCore::writeURL): Add a check for empty URL. Remove the check for invalid URL.
  3488. (WebCore::ClipboardWin::setData): Remove the check for invalid URL.
  3489. * plugins/win/PluginViewWin.cpp:
  3490. (WebCore::PluginViewWin::start): Check for empty URL instead of invalid URL.
  3491. (WebCore::PluginViewWin::load): Same here.
  3492. 2007-09-26 Darin Adler <darin@apple.com>
  3493. Reviewed by John Sullivan.
  3494. - fix <rdar://problem/5491054> REGRESSION (Mail, plain-text only): Nothing happens
  3495. when you click on rdar://<num>&<num> links (or AOL links in Safari)
  3496. Remove the non-useful concept of a "malformed"/"invalid" URL.
  3497. There are URLs we can parse, and others we can't, but that's not sufficient to
  3498. determine if we should try to work with the URL. It's entirely possible that
  3499. a so-called "malformed" URL will work just fine if it's passed to the right
  3500. software.
  3501. * platform/KURL.h: Removed isMalformed() and isValid().
  3502. * loader/Cache.cpp: (WebCore::Cache::requestResource): Removed unneeded check
  3503. if the URL is valid. But do check for an empty URL just to guarantee we don't
  3504. trip up with a null string. It's possible we can remove this empty URL check
  3505. later, but it's less risky to leave the empty string behavior alone for now.
  3506. * loader/FrameLoader.cpp:
  3507. (WebCore::FrameLoader::urlSelected): Removed unneeded check if the URL is valid.
  3508. Back on 2007-07-08, we realized that we needed to allow empty URLs. But we also
  3509. need to allow other URLs here. This is the code path from the Mail case.
  3510. (WebCore::FrameLoader::submitForm): Replaced URL validity check with a check
  3511. for an empty URL (same reasoning as for requestResource above).
  3512. * page/InspectorController.cpp: (WebCore::InspectorResource::type):
  3513. * rendering/RenderObject.cpp: (WebCore::RenderObject::addPDFURLRect):
  3514. Removed unneeded check for an invalid URL. In both of these cases it's definitely
  3515. safe to allow event an empty URL.
  3516. 2007-09-26 George Staikos <staikos@kde.org>
  3517. Reviewed by John Sullivan.
  3518. Only highlight the applicable portion of the text run for a search
  3519. highlight. No way to make a testcase for this presently.
  3520. * rendering/InlineTextBox.cpp:
  3521. (WebCore::InlineTextBox::paintTextMatchMarker):
  3522. 2007-09-25 David Kilzer <ddkilzer@webkit.org>
  3523. Reviewed by Adam.
  3524. - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
  3525. LGPL'ed files contain incorrect FSF address
  3526. * LICENSE-LGPL-2:
  3527. * LICENSE-LGPL-2.1:
  3528. * WebCorePrefix.h:
  3529. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  3530. * bindings/js/JSDOMWindowCustom.cpp:
  3531. * bindings/js/JSDocumentCustom.cpp:
  3532. * bindings/js/JSHTMLCollectionCustom.cpp:
  3533. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  3534. * bindings/js/JSHTMLElementWrapperFactory.h:
  3535. * bindings/js/JSHTMLInputElementBase.cpp:
  3536. * bindings/js/JSHTMLInputElementBase.h:
  3537. * bindings/js/JSHTMLOptionElementConstructor.cpp:
  3538. * bindings/js/JSHTMLOptionElementConstructor.h:
  3539. * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
  3540. * bindings/js/JSHTMLSelectElementCustom.cpp:
  3541. * bindings/js/JSNodeFilterCondition.cpp:
  3542. * bindings/js/JSNodeFilterCondition.h:
  3543. * bindings/js/JSNodeIteratorCustom.cpp:
  3544. * bindings/js/JSSVGElementWrapperFactory.cpp:
  3545. * bindings/js/JSSVGElementWrapperFactory.h:
  3546. * bindings/js/JSSVGMatrixCustom.cpp:
  3547. * bindings/js/JSSVGPathSegCustom.cpp:
  3548. * bindings/js/JSSVGPathSegListCustom.cpp:
  3549. * bindings/js/JSSVGPointListCustom.cpp:
  3550. * bindings/js/JSTreeWalkerCustom.cpp:
  3551. * bindings/js/JSXMLHttpRequest.cpp:
  3552. * bindings/js/JSXMLHttpRequest.h:
  3553. * bindings/js/kjs_binding.cpp:
  3554. * bindings/js/kjs_binding.h:
  3555. * bindings/js/kjs_css.cpp:
  3556. * bindings/js/kjs_css.h:
  3557. * bindings/js/kjs_dom.cpp:
  3558. * bindings/js/kjs_dom.h:
  3559. * bindings/js/kjs_events.cpp:
  3560. * bindings/js/kjs_events.h:
  3561. * bindings/js/kjs_html.cpp:
  3562. * bindings/js/kjs_html.h:
  3563. * bindings/js/kjs_navigator.cpp:
  3564. * bindings/js/kjs_navigator.h:
  3565. * bindings/js/kjs_proxy.cpp:
  3566. * bindings/js/kjs_proxy.h:
  3567. * bindings/js/kjs_window.cpp:
  3568. * bindings/js/kjs_window.h:
  3569. * bindings/objc/DOMImplementationFront.cpp:
  3570. * bindings/objc/DOMImplementationFront.h:
  3571. * bindings/scripts/CodeGenerator.pm:
  3572. * bindings/scripts/CodeGeneratorJS.pm:
  3573. * bindings/scripts/CodeGeneratorObjC.pm:
  3574. * bindings/scripts/IDLParser.pm:
  3575. * bindings/scripts/IDLStructure.pm:
  3576. * bindings/scripts/generate-bindings.pl:
  3577. * config.h:
  3578. * css/CSSBorderImageValue.cpp:
  3579. * css/CSSBorderImageValue.h:
  3580. * css/CSSCharsetRule.cpp:
  3581. * css/CSSCharsetRule.h:
  3582. * css/CSSCharsetRule.idl:
  3583. * css/CSSComputedStyleDeclaration.cpp:
  3584. * css/CSSComputedStyleDeclaration.h:
  3585. * css/CSSCursorImageValue.cpp:
  3586. * css/CSSCursorImageValue.h:
  3587. * css/CSSFontFaceRule.cpp:
  3588. * css/CSSFontFaceRule.h:
  3589. * css/CSSFontFaceRule.idl:
  3590. * css/CSSGrammar.y:
  3591. * css/CSSHelper.cpp:
  3592. * css/CSSHelper.h:
  3593. * css/CSSImageValue.cpp:
  3594. * css/CSSImageValue.h:
  3595. * css/CSSImportRule.cpp:
  3596. * css/CSSImportRule.h:
  3597. * css/CSSImportRule.idl:
  3598. * css/CSSInheritedValue.cpp:
  3599. * css/CSSInheritedValue.h:
  3600. * css/CSSInitialValue.cpp:
  3601. * css/CSSInitialValue.h:
  3602. * css/CSSMediaRule.cpp:
  3603. * css/CSSMediaRule.h:
  3604. * css/CSSMediaRule.idl:
  3605. * css/CSSMutableStyleDeclaration.cpp:
  3606. * css/CSSMutableStyleDeclaration.h:
  3607. * css/CSSNamespace.h:
  3608. * css/CSSPageRule.cpp:
  3609. * css/CSSPageRule.h:
  3610. * css/CSSPageRule.idl:
  3611. * css/CSSParser.cpp:
  3612. * css/CSSParser.h:
  3613. * css/CSSPrimitiveValue.cpp:
  3614. * css/CSSPrimitiveValue.h:
  3615. * css/CSSPrimitiveValue.idl:
  3616. * css/CSSProperty.cpp:
  3617. * css/CSSProperty.h:
  3618. * css/CSSQuirkPrimitiveValue.h:
  3619. * css/CSSRule.cpp:
  3620. * css/CSSRule.h:
  3621. * css/CSSRule.idl:
  3622. * css/CSSRuleList.cpp:
  3623. * css/CSSRuleList.h:
  3624. * css/CSSSelector.cpp:
  3625. * css/CSSSelector.h:
  3626. * css/CSSStyleDeclaration.cpp:
  3627. * css/CSSStyleDeclaration.h:
  3628. * css/CSSStyleDeclaration.idl:
  3629. * css/CSSStyleRule.cpp:
  3630. * css/CSSStyleRule.h:
  3631. * css/CSSStyleRule.idl:
  3632. * css/CSSStyleSelector.cpp:
  3633. * css/CSSStyleSelector.h:
  3634. * css/CSSStyleSheet.cpp:
  3635. * css/CSSStyleSheet.h:
  3636. * css/CSSStyleSheet.idl:
  3637. * css/CSSUnknownRule.h:
  3638. * css/CSSUnknownRule.idl:
  3639. * css/CSSValue.h:
  3640. * css/CSSValue.idl:
  3641. * css/CSSValueList.cpp:
  3642. * css/CSSValueList.h:
  3643. * css/Counter.h:
  3644. * css/Counter.idl:
  3645. * css/DashboardRegion.h:
  3646. * css/FontFamilyValue.cpp:
  3647. * css/FontFamilyValue.h:
  3648. * css/FontValue.cpp:
  3649. * css/FontValue.h:
  3650. * css/MediaFeatureNames.cpp:
  3651. * css/MediaFeatureNames.h:
  3652. * css/MediaList.cpp:
  3653. * css/MediaList.h:
  3654. * css/Pair.h:
  3655. * css/RGBColor.idl:
  3656. * css/Rect.h:
  3657. * css/Rect.idl:
  3658. * css/ShadowValue.cpp:
  3659. * css/ShadowValue.h:
  3660. * css/StyleBase.cpp:
  3661. * css/StyleBase.h:
  3662. * css/StyleList.cpp:
  3663. * css/StyleList.h:
  3664. * css/StyleSheet.cpp:
  3665. * css/StyleSheet.h:
  3666. * css/StyleSheet.idl:
  3667. * css/StyleSheetList.cpp:
  3668. * css/StyleSheetList.h:
  3669. * css/StyleSheetList.idl:
  3670. * css/html4.css:
  3671. * css/make-css-file-arrays.pl:
  3672. * css/makegrammar.pl:
  3673. * css/makeprop.pl:
  3674. * css/maketokenizer:
  3675. * css/makevalues.pl:
  3676. * css/quirks.css:
  3677. * dom/AtomicStringList.h:
  3678. * dom/Attr.cpp:
  3679. * dom/Attr.h:
  3680. * dom/Attr.idl:
  3681. * dom/Attribute.cpp:
  3682. * dom/Attribute.h:
  3683. * dom/BeforeUnloadEvent.cpp:
  3684. * dom/BeforeUnloadEvent.h:
  3685. * dom/CDATASection.cpp:
  3686. * dom/CDATASection.h:
  3687. * dom/CDATASection.idl:
  3688. * dom/CSSMappedAttributeDeclaration.cpp:
  3689. * dom/CSSMappedAttributeDeclaration.h:
  3690. * dom/CharacterData.cpp:
  3691. * dom/CharacterData.h:
  3692. * dom/CharacterData.idl:
  3693. * dom/ChildNodeList.cpp:
  3694. * dom/ChildNodeList.h:
  3695. * dom/Clipboard.h:
  3696. * dom/ClipboardEvent.cpp:
  3697. * dom/ClipboardEvent.h:
  3698. * dom/Comment.cpp:
  3699. * dom/Comment.h:
  3700. * dom/Comment.idl:
  3701. * dom/ContainerNode.cpp:
  3702. * dom/ContainerNode.h:
  3703. * dom/DOMImplementation.cpp:
  3704. * dom/DOMImplementation.h:
  3705. * dom/DOMImplementation.idl:
  3706. * dom/DocPtr.h:
  3707. * dom/Document.cpp:
  3708. * dom/Document.h:
  3709. * dom/Document.idl:
  3710. * dom/DocumentFragment.cpp:
  3711. * dom/DocumentFragment.h:
  3712. * dom/DocumentFragment.idl:
  3713. * dom/DocumentMarker.h:
  3714. * dom/DocumentType.cpp:
  3715. * dom/DocumentType.h:
  3716. * dom/DocumentType.idl:
  3717. * dom/EditingText.cpp:
  3718. * dom/EditingText.h:
  3719. * dom/Element.cpp:
  3720. * dom/Element.h:
  3721. * dom/Element.idl:
  3722. * dom/Entity.cpp:
  3723. * dom/Entity.h:
  3724. * dom/Entity.idl:
  3725. * dom/EntityReference.cpp:
  3726. * dom/EntityReference.h:
  3727. * dom/EntityReference.idl:
  3728. * dom/Event.cpp:
  3729. * dom/Event.h:
  3730. * dom/Event.idl:
  3731. * dom/EventListener.h:
  3732. * dom/EventListener.idl:
  3733. * dom/EventNames.cpp:
  3734. * dom/EventNames.h:
  3735. * dom/EventTarget.idl:
  3736. * dom/EventTargetNode.cpp:
  3737. * dom/EventTargetNode.h:
  3738. * dom/ExceptionCode.h:
  3739. * dom/KeyboardEvent.cpp:
  3740. * dom/KeyboardEvent.h:
  3741. * dom/KeyboardEvent.idl:
  3742. * dom/MappedAttribute.cpp:
  3743. * dom/MappedAttribute.h:
  3744. * dom/MappedAttributeEntry.h:
  3745. * dom/MouseEvent.cpp:
  3746. * dom/MouseEvent.h:
  3747. * dom/MouseEvent.idl:
  3748. * dom/MouseRelatedEvent.cpp:
  3749. * dom/MouseRelatedEvent.h:
  3750. * dom/MutationEvent.cpp:
  3751. * dom/MutationEvent.h:
  3752. * dom/MutationEvent.idl:
  3753. * dom/NameNodeList.cpp:
  3754. * dom/NameNodeList.h:
  3755. * dom/NamedAttrMap.cpp:
  3756. * dom/NamedAttrMap.h:
  3757. * dom/NamedMappedAttrMap.cpp:
  3758. * dom/NamedMappedAttrMap.h:
  3759. * dom/NamedNodeMap.h:
  3760. * dom/NamedNodeMap.idl:
  3761. * dom/Node.cpp:
  3762. * dom/Node.h:
  3763. * dom/Node.idl:
  3764. * dom/NodeFilter.cpp:
  3765. * dom/NodeFilter.h:
  3766. * dom/NodeFilter.idl:
  3767. * dom/NodeFilterCondition.cpp:
  3768. * dom/NodeFilterCondition.h:
  3769. * dom/NodeIterator.cpp:
  3770. * dom/NodeIterator.h:
  3771. * dom/NodeIterator.idl:
  3772. * dom/NodeList.cpp:
  3773. * dom/NodeList.h:
  3774. * dom/NodeList.idl:
  3775. * dom/Notation.cpp:
  3776. * dom/Notation.h:
  3777. * dom/Notation.idl:
  3778. * dom/ProcessingInstruction.cpp:
  3779. * dom/ProcessingInstruction.h:
  3780. * dom/ProcessingInstruction.idl:
  3781. * dom/QualifiedName.cpp:
  3782. * dom/QualifiedName.h:
  3783. * dom/Range.cpp:
  3784. * dom/Range.h:
  3785. * dom/Range.idl:
  3786. * dom/RangeException.h:
  3787. * dom/RangeException.idl:
  3788. * dom/RegisteredEventListener.cpp:
  3789. * dom/RegisteredEventListener.h:
  3790. * dom/StyleElement.cpp:
  3791. * dom/StyleElement.h:
  3792. * dom/StyledElement.cpp:
  3793. * dom/StyledElement.h:
  3794. * dom/Text.cpp:
  3795. * dom/Text.h:
  3796. * dom/Text.idl:
  3797. * dom/Tokenizer.h:
  3798. * dom/Traversal.cpp:
  3799. * dom/Traversal.h:
  3800. * dom/TreeWalker.cpp:
  3801. * dom/TreeWalker.h:
  3802. * dom/TreeWalker.idl:
  3803. * dom/UIEvent.cpp:
  3804. * dom/UIEvent.h:
  3805. * dom/UIEvent.idl:
  3806. * dom/UIEventWithKeyState.cpp:
  3807. * dom/UIEventWithKeyState.h:
  3808. * dom/WheelEvent.cpp:
  3809. * dom/WheelEvent.h:
  3810. * dom/WheelEvent.idl:
  3811. * dom/XMLTokenizer.cpp:
  3812. * dom/XMLTokenizer.h:
  3813. * html/FormDataList.cpp:
  3814. * html/FormDataList.h:
  3815. * html/HTMLAnchorElement.cpp:
  3816. * html/HTMLAnchorElement.h:
  3817. * html/HTMLAnchorElement.idl:
  3818. * html/HTMLAppletElement.cpp:
  3819. * html/HTMLAppletElement.h:
  3820. * html/HTMLAppletElement.idl:
  3821. * html/HTMLAreaElement.cpp:
  3822. * html/HTMLAreaElement.h:
  3823. * html/HTMLAreaElement.idl:
  3824. * html/HTMLBRElement.cpp:
  3825. * html/HTMLBRElement.h:
  3826. * html/HTMLBRElement.idl:
  3827. * html/HTMLBaseElement.cpp:
  3828. * html/HTMLBaseElement.h:
  3829. * html/HTMLBaseElement.idl:
  3830. * html/HTMLBaseFontElement.cpp:
  3831. * html/HTMLBaseFontElement.h:
  3832. * html/HTMLBaseFontElement.idl:
  3833. * html/HTMLBlockquoteElement.cpp:
  3834. * html/HTMLBlockquoteElement.h:
  3835. * html/HTMLBlockquoteElement.idl:
  3836. * html/HTMLBodyElement.cpp:
  3837. * html/HTMLBodyElement.h:
  3838. * html/HTMLBodyElement.idl:
  3839. * html/HTMLButtonElement.cpp:
  3840. * html/HTMLButtonElement.h:
  3841. * html/HTMLButtonElement.idl:
  3842. * html/HTMLCollection.cpp:
  3843. * html/HTMLCollection.h:
  3844. * html/HTMLCollection.idl:
  3845. * html/HTMLDListElement.cpp:
  3846. * html/HTMLDListElement.h:
  3847. * html/HTMLDListElement.idl:
  3848. * html/HTMLDirectoryElement.cpp:
  3849. * html/HTMLDirectoryElement.h:
  3850. * html/HTMLDirectoryElement.idl:
  3851. * html/HTMLDivElement.cpp:
  3852. * html/HTMLDivElement.h:
  3853. * html/HTMLDivElement.idl:
  3854. * html/HTMLDocument.cpp:
  3855. * html/HTMLDocument.h:
  3856. * html/HTMLDocument.idl:
  3857. * html/HTMLElement.cpp:
  3858. * html/HTMLElement.h:
  3859. * html/HTMLElement.idl:
  3860. * html/HTMLElementFactory.cpp:
  3861. * html/HTMLElementFactory.h:
  3862. * html/HTMLEmbedElement.cpp:
  3863. * html/HTMLEmbedElement.h:
  3864. * html/HTMLEmbedElement.idl:
  3865. * html/HTMLEntityNames.gperf:
  3866. * html/HTMLFieldSetElement.cpp:
  3867. * html/HTMLFieldSetElement.h:
  3868. * html/HTMLFieldSetElement.idl:
  3869. * html/HTMLFontElement.cpp:
  3870. * html/HTMLFontElement.h:
  3871. * html/HTMLFontElement.idl:
  3872. * html/HTMLFormCollection.cpp:
  3873. * html/HTMLFormCollection.h:
  3874. * html/HTMLFormElement.cpp:
  3875. * html/HTMLFormElement.h:
  3876. * html/HTMLFormElement.idl:
  3877. * html/HTMLFrameElement.cpp:
  3878. * html/HTMLFrameElement.h:
  3879. * html/HTMLFrameElement.idl:
  3880. * html/HTMLFrameElementBase.cpp:
  3881. * html/HTMLFrameElementBase.h:
  3882. * html/HTMLFrameOwnerElement.cpp:
  3883. * html/HTMLFrameOwnerElement.h:
  3884. * html/HTMLFrameSetElement.cpp:
  3885. * html/HTMLFrameSetElement.h:
  3886. * html/HTMLFrameSetElement.idl:
  3887. * html/HTMLGenericFormElement.cpp:
  3888. * html/HTMLGenericFormElement.h:
  3889. * html/HTMLHRElement.cpp:
  3890. * html/HTMLHRElement.h:
  3891. * html/HTMLHRElement.idl:
  3892. * html/HTMLHeadElement.cpp:
  3893. * html/HTMLHeadElement.h:
  3894. * html/HTMLHeadElement.idl:
  3895. * html/HTMLHeadingElement.cpp:
  3896. * html/HTMLHeadingElement.h:
  3897. * html/HTMLHeadingElement.idl:
  3898. * html/HTMLHtmlElement.cpp:
  3899. * html/HTMLHtmlElement.h:
  3900. * html/HTMLHtmlElement.idl:
  3901. * html/HTMLIFrameElement.cpp:
  3902. * html/HTMLIFrameElement.h:
  3903. * html/HTMLIFrameElement.idl:
  3904. * html/HTMLImageElement.cpp:
  3905. * html/HTMLImageElement.h:
  3906. * html/HTMLImageElement.idl:
  3907. * html/HTMLImageLoader.cpp:
  3908. * html/HTMLImageLoader.h:
  3909. * html/HTMLInputElement.cpp:
  3910. * html/HTMLInputElement.h:
  3911. * html/HTMLInputElement.idl:
  3912. * html/HTMLIsIndexElement.cpp:
  3913. * html/HTMLIsIndexElement.h:
  3914. * html/HTMLIsIndexElement.idl:
  3915. * html/HTMLKeygenElement.cpp:
  3916. * html/HTMLKeygenElement.h:
  3917. * html/HTMLLIElement.cpp:
  3918. * html/HTMLLIElement.h:
  3919. * html/HTMLLIElement.idl:
  3920. * html/HTMLLabelElement.cpp:
  3921. * html/HTMLLabelElement.h:
  3922. * html/HTMLLabelElement.idl:
  3923. * html/HTMLLegendElement.cpp:
  3924. * html/HTMLLegendElement.h:
  3925. * html/HTMLLegendElement.idl:
  3926. * html/HTMLLinkElement.cpp:
  3927. * html/HTMLLinkElement.h:
  3928. * html/HTMLLinkElement.idl:
  3929. * html/HTMLMapElement.cpp:
  3930. * html/HTMLMapElement.h:
  3931. * html/HTMLMapElement.idl:
  3932. * html/HTMLMarqueeElement.cpp:
  3933. * html/HTMLMarqueeElement.h:
  3934. * html/HTMLMarqueeElement.idl:
  3935. * html/HTMLMenuElement.cpp:
  3936. * html/HTMLMenuElement.h:
  3937. * html/HTMLMenuElement.idl:
  3938. * html/HTMLMetaElement.cpp:
  3939. * html/HTMLMetaElement.h:
  3940. * html/HTMLMetaElement.idl:
  3941. * html/HTMLModElement.cpp:
  3942. * html/HTMLModElement.h:
  3943. * html/HTMLModElement.idl:
  3944. * html/HTMLNameCollection.cpp:
  3945. * html/HTMLNameCollection.h:
  3946. * html/HTMLOListElement.cpp:
  3947. * html/HTMLOListElement.h:
  3948. * html/HTMLOListElement.idl:
  3949. * html/HTMLObjectElement.cpp:
  3950. * html/HTMLObjectElement.h:
  3951. * html/HTMLObjectElement.idl:
  3952. * html/HTMLOptGroupElement.cpp:
  3953. * html/HTMLOptGroupElement.h:
  3954. * html/HTMLOptGroupElement.idl:
  3955. * html/HTMLOptionElement.cpp:
  3956. * html/HTMLOptionElement.h:
  3957. * html/HTMLOptionElement.idl:
  3958. * html/HTMLOptionsCollection.cpp:
  3959. * html/HTMLOptionsCollection.h:
  3960. * html/HTMLOptionsCollection.idl:
  3961. * html/HTMLParagraphElement.cpp:
  3962. * html/HTMLParagraphElement.h:
  3963. * html/HTMLParagraphElement.idl:
  3964. * html/HTMLParamElement.cpp:
  3965. * html/HTMLParamElement.h:
  3966. * html/HTMLParamElement.idl:
  3967. * html/HTMLParser.cpp:
  3968. * html/HTMLParser.h:
  3969. * html/HTMLPlugInElement.cpp:
  3970. * html/HTMLPlugInElement.h:
  3971. * html/HTMLPreElement.cpp:
  3972. * html/HTMLPreElement.h:
  3973. * html/HTMLPreElement.idl:
  3974. * html/HTMLQuoteElement.cpp:
  3975. * html/HTMLQuoteElement.h:
  3976. * html/HTMLQuoteElement.idl:
  3977. * html/HTMLScriptElement.cpp:
  3978. * html/HTMLScriptElement.h:
  3979. * html/HTMLScriptElement.idl:
  3980. * html/HTMLSelectElement.cpp:
  3981. * html/HTMLSelectElement.h:
  3982. * html/HTMLSelectElement.idl:
  3983. * html/HTMLStyleElement.cpp:
  3984. * html/HTMLStyleElement.h:
  3985. * html/HTMLStyleElement.idl:
  3986. * html/HTMLTableCaptionElement.cpp:
  3987. * html/HTMLTableCaptionElement.h:
  3988. * html/HTMLTableCaptionElement.idl:
  3989. * html/HTMLTableCellElement.cpp:
  3990. * html/HTMLTableCellElement.h:
  3991. * html/HTMLTableCellElement.idl:
  3992. * html/HTMLTableColElement.cpp:
  3993. * html/HTMLTableColElement.h:
  3994. * html/HTMLTableColElement.idl:
  3995. * html/HTMLTableElement.cpp:
  3996. * html/HTMLTableElement.h:
  3997. * html/HTMLTableElement.idl:
  3998. * html/HTMLTablePartElement.cpp:
  3999. * html/HTMLTablePartElement.h:
  4000. * html/HTMLTableRowElement.cpp:
  4001. * html/HTMLTableRowElement.h:
  4002. * html/HTMLTableRowElement.idl:
  4003. * html/HTMLTableSectionElement.cpp:
  4004. * html/HTMLTableSectionElement.h:
  4005. * html/HTMLTableSectionElement.idl:
  4006. * html/HTMLTextAreaElement.cpp:
  4007. * html/HTMLTextAreaElement.h:
  4008. * html/HTMLTextAreaElement.idl:
  4009. * html/HTMLTitleElement.cpp:
  4010. * html/HTMLTitleElement.h:
  4011. * html/HTMLTitleElement.idl:
  4012. * html/HTMLTokenizer.cpp:
  4013. * html/HTMLTokenizer.h:
  4014. * html/HTMLUListElement.cpp:
  4015. * html/HTMLUListElement.h:
  4016. * html/HTMLUListElement.idl:
  4017. * ksvg2/css/SVGCSSParser.cpp:
  4018. * ksvg2/css/SVGCSSStyleSelector.cpp:
  4019. * ksvg2/css/SVGRenderStyle.cpp:
  4020. * ksvg2/css/SVGRenderStyle.h:
  4021. * ksvg2/css/SVGRenderStyleDefs.cpp:
  4022. * ksvg2/css/SVGRenderStyleDefs.h:
  4023. * ksvg2/events/JSSVGLazyEventListener.cpp:
  4024. * ksvg2/events/JSSVGLazyEventListener.h:
  4025. * ksvg2/events/SVGZoomEvent.cpp:
  4026. * ksvg2/events/SVGZoomEvent.h:
  4027. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  4028. * ksvg2/misc/KCanvasRenderingStyle.h:
  4029. * ksvg2/misc/PointerEventsHitRules.cpp:
  4030. * ksvg2/misc/PointerEventsHitRules.h:
  4031. * ksvg2/misc/SVGDocumentExtensions.cpp:
  4032. * ksvg2/misc/SVGDocumentExtensions.h:
  4033. * ksvg2/misc/SVGImageLoader.cpp:
  4034. * ksvg2/misc/SVGImageLoader.h:
  4035. * ksvg2/misc/SVGTimer.cpp:
  4036. * ksvg2/misc/SVGTimer.h:
  4037. * ksvg2/misc/TimeScheduler.cpp:
  4038. * ksvg2/misc/TimeScheduler.h:
  4039. * ksvg2/scripts/cssmakeprops:
  4040. * ksvg2/scripts/cssmakevalues:
  4041. * ksvg2/svg/ColorDistance.cpp:
  4042. * ksvg2/svg/ColorDistance.h:
  4043. * ksvg2/svg/GradientAttributes.h:
  4044. * ksvg2/svg/LinearGradientAttributes.h:
  4045. * ksvg2/svg/PatternAttributes.h:
  4046. * ksvg2/svg/RadialGradientAttributes.h:
  4047. * ksvg2/svg/SVGAElement.cpp:
  4048. * ksvg2/svg/SVGAElement.h:
  4049. * ksvg2/svg/SVGAngle.cpp:
  4050. * ksvg2/svg/SVGAngle.h:
  4051. * ksvg2/svg/SVGAngle.idl:
  4052. * ksvg2/svg/SVGAnimateColorElement.cpp:
  4053. * ksvg2/svg/SVGAnimateColorElement.h:
  4054. * ksvg2/svg/SVGAnimateElement.cpp:
  4055. * ksvg2/svg/SVGAnimateElement.h:
  4056. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  4057. * ksvg2/svg/SVGAnimateMotionElement.h:
  4058. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  4059. * ksvg2/svg/SVGAnimateTransformElement.h:
  4060. * ksvg2/svg/SVGAnimatedPathData.cpp:
  4061. * ksvg2/svg/SVGAnimatedPathData.h:
  4062. * ksvg2/svg/SVGAnimatedPoints.cpp:
  4063. * ksvg2/svg/SVGAnimatedPoints.h:
  4064. * ksvg2/svg/SVGAnimatedTemplate.h:
  4065. * ksvg2/svg/SVGAnimationElement.cpp:
  4066. * ksvg2/svg/SVGAnimationElement.h:
  4067. * ksvg2/svg/SVGCircleElement.cpp:
  4068. * ksvg2/svg/SVGCircleElement.h:
  4069. * ksvg2/svg/SVGClipPathElement.cpp:
  4070. * ksvg2/svg/SVGClipPathElement.h:
  4071. * ksvg2/svg/SVGColor.cpp:
  4072. * ksvg2/svg/SVGColor.h:
  4073. * ksvg2/svg/SVGColor.idl:
  4074. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  4075. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  4076. * ksvg2/svg/SVGCursorElement.cpp:
  4077. * ksvg2/svg/SVGCursorElement.h:
  4078. * ksvg2/svg/SVGDefsElement.cpp:
  4079. * ksvg2/svg/SVGDefsElement.h:
  4080. * ksvg2/svg/SVGDescElement.cpp:
  4081. * ksvg2/svg/SVGDescElement.h:
  4082. * ksvg2/svg/SVGDocument.cpp:
  4083. * ksvg2/svg/SVGDocument.h:
  4084. * ksvg2/svg/SVGDocument.idl:
  4085. * ksvg2/svg/SVGElement.cpp:
  4086. * ksvg2/svg/SVGElement.h:
  4087. * ksvg2/svg/SVGElement.idl:
  4088. * ksvg2/svg/SVGElementInstance.cpp:
  4089. * ksvg2/svg/SVGElementInstance.h:
  4090. * ksvg2/svg/SVGElementInstanceList.cpp:
  4091. * ksvg2/svg/SVGElementInstanceList.h:
  4092. * ksvg2/svg/SVGEllipseElement.cpp:
  4093. * ksvg2/svg/SVGEllipseElement.h:
  4094. * ksvg2/svg/SVGException.h:
  4095. * ksvg2/svg/SVGExternalResourcesRequired.cpp:
  4096. * ksvg2/svg/SVGExternalResourcesRequired.h:
  4097. * ksvg2/svg/SVGFEBlendElement.cpp:
  4098. * ksvg2/svg/SVGFEBlendElement.h:
  4099. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  4100. * ksvg2/svg/SVGFEColorMatrixElement.h:
  4101. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  4102. * ksvg2/svg/SVGFEComponentTransferElement.h:
  4103. * ksvg2/svg/SVGFECompositeElement.cpp:
  4104. * ksvg2/svg/SVGFECompositeElement.h:
  4105. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  4106. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  4107. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  4108. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  4109. * ksvg2/svg/SVGFEDistantLightElement.cpp:
  4110. * ksvg2/svg/SVGFEDistantLightElement.h:
  4111. * ksvg2/svg/SVGFEFloodElement.cpp:
  4112. * ksvg2/svg/SVGFEFloodElement.h:
  4113. * ksvg2/svg/SVGFEFuncAElement.cpp:
  4114. * ksvg2/svg/SVGFEFuncAElement.h:
  4115. * ksvg2/svg/SVGFEFuncBElement.cpp:
  4116. * ksvg2/svg/SVGFEFuncBElement.h:
  4117. * ksvg2/svg/SVGFEFuncGElement.cpp:
  4118. * ksvg2/svg/SVGFEFuncGElement.h:
  4119. * ksvg2/svg/SVGFEFuncRElement.cpp:
  4120. * ksvg2/svg/SVGFEFuncRElement.h:
  4121. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  4122. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  4123. * ksvg2/svg/SVGFEImageElement.cpp:
  4124. * ksvg2/svg/SVGFEImageElement.h:
  4125. * ksvg2/svg/SVGFELightElement.cpp:
  4126. * ksvg2/svg/SVGFELightElement.h:
  4127. * ksvg2/svg/SVGFEMergeElement.cpp:
  4128. * ksvg2/svg/SVGFEMergeElement.h:
  4129. * ksvg2/svg/SVGFEMergeNodeElement.cpp:
  4130. * ksvg2/svg/SVGFEMergeNodeElement.h:
  4131. * ksvg2/svg/SVGFEOffsetElement.cpp:
  4132. * ksvg2/svg/SVGFEOffsetElement.h:
  4133. * ksvg2/svg/SVGFEPointLightElement.cpp:
  4134. * ksvg2/svg/SVGFEPointLightElement.h:
  4135. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  4136. * ksvg2/svg/SVGFESpecularLightingElement.h:
  4137. * ksvg2/svg/SVGFESpotLightElement.cpp:
  4138. * ksvg2/svg/SVGFESpotLightElement.h:
  4139. * ksvg2/svg/SVGFETileElement.cpp:
  4140. * ksvg2/svg/SVGFETileElement.h:
  4141. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  4142. * ksvg2/svg/SVGFETurbulenceElement.h:
  4143. * ksvg2/svg/SVGFilterElement.cpp:
  4144. * ksvg2/svg/SVGFilterElement.h:
  4145. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  4146. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  4147. * ksvg2/svg/SVGFitToViewBox.cpp:
  4148. * ksvg2/svg/SVGFitToViewBox.h:
  4149. * ksvg2/svg/SVGForeignObjectElement.cpp:
  4150. * ksvg2/svg/SVGForeignObjectElement.h:
  4151. * ksvg2/svg/SVGGElement.cpp:
  4152. * ksvg2/svg/SVGGElement.h:
  4153. * ksvg2/svg/SVGGradientElement.cpp:
  4154. * ksvg2/svg/SVGGradientElement.h:
  4155. * ksvg2/svg/SVGImageElement.cpp:
  4156. * ksvg2/svg/SVGImageElement.h:
  4157. * ksvg2/svg/SVGLangSpace.cpp:
  4158. * ksvg2/svg/SVGLangSpace.h:
  4159. * ksvg2/svg/SVGLength.cpp:
  4160. * ksvg2/svg/SVGLength.h:
  4161. * ksvg2/svg/SVGLength.idl:
  4162. * ksvg2/svg/SVGLengthList.cpp:
  4163. * ksvg2/svg/SVGLengthList.h:
  4164. * ksvg2/svg/SVGLineElement.cpp:
  4165. * ksvg2/svg/SVGLineElement.h:
  4166. * ksvg2/svg/SVGLinearGradientElement.cpp:
  4167. * ksvg2/svg/SVGLinearGradientElement.h:
  4168. * ksvg2/svg/SVGList.h:
  4169. * ksvg2/svg/SVGListTraits.h:
  4170. * ksvg2/svg/SVGLocatable.cpp:
  4171. * ksvg2/svg/SVGLocatable.h:
  4172. * ksvg2/svg/SVGMPathElement.cpp:
  4173. * ksvg2/svg/SVGMPathElement.h:
  4174. * ksvg2/svg/SVGMarkerElement.cpp:
  4175. * ksvg2/svg/SVGMarkerElement.h:
  4176. * ksvg2/svg/SVGMaskElement.cpp:
  4177. * ksvg2/svg/SVGMaskElement.h:
  4178. * ksvg2/svg/SVGMatrix.idl:
  4179. * ksvg2/svg/SVGMetadataElement.cpp:
  4180. * ksvg2/svg/SVGMetadataElement.h:
  4181. * ksvg2/svg/SVGMetadataElement.idl:
  4182. * ksvg2/svg/SVGNumber.idl:
  4183. * ksvg2/svg/SVGNumberList.cpp:
  4184. * ksvg2/svg/SVGNumberList.h:
  4185. * ksvg2/svg/SVGPaint.cpp:
  4186. * ksvg2/svg/SVGPaint.h:
  4187. * ksvg2/svg/SVGParserUtilities.cpp:
  4188. * ksvg2/svg/SVGParserUtilities.h:
  4189. * ksvg2/svg/SVGPathElement.cpp:
  4190. * ksvg2/svg/SVGPathElement.h:
  4191. * ksvg2/svg/SVGPathSeg.h:
  4192. * ksvg2/svg/SVGPathSegArc.cpp:
  4193. * ksvg2/svg/SVGPathSegArc.h:
  4194. * ksvg2/svg/SVGPathSegClosePath.cpp:
  4195. * ksvg2/svg/SVGPathSegClosePath.h:
  4196. * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
  4197. * ksvg2/svg/SVGPathSegCurvetoCubic.h:
  4198. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
  4199. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
  4200. * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
  4201. * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
  4202. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
  4203. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
  4204. * ksvg2/svg/SVGPathSegLineto.cpp:
  4205. * ksvg2/svg/SVGPathSegLineto.h:
  4206. * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
  4207. * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
  4208. * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
  4209. * ksvg2/svg/SVGPathSegLinetoVertical.h:
  4210. * ksvg2/svg/SVGPathSegList.cpp:
  4211. * ksvg2/svg/SVGPathSegList.h:
  4212. * ksvg2/svg/SVGPathSegMoveto.cpp:
  4213. * ksvg2/svg/SVGPathSegMoveto.h:
  4214. * ksvg2/svg/SVGPatternElement.cpp:
  4215. * ksvg2/svg/SVGPatternElement.h:
  4216. * ksvg2/svg/SVGPoint.idl:
  4217. * ksvg2/svg/SVGPointList.cpp:
  4218. * ksvg2/svg/SVGPointList.h:
  4219. * ksvg2/svg/SVGPolyElement.cpp:
  4220. * ksvg2/svg/SVGPolyElement.h:
  4221. * ksvg2/svg/SVGPolygonElement.cpp:
  4222. * ksvg2/svg/SVGPolygonElement.h:
  4223. * ksvg2/svg/SVGPolylineElement.cpp:
  4224. * ksvg2/svg/SVGPolylineElement.h:
  4225. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  4226. * ksvg2/svg/SVGPreserveAspectRatio.h:
  4227. * ksvg2/svg/SVGRadialGradientElement.cpp:
  4228. * ksvg2/svg/SVGRadialGradientElement.h:
  4229. * ksvg2/svg/SVGRect.idl:
  4230. * ksvg2/svg/SVGRectElement.cpp:
  4231. * ksvg2/svg/SVGRectElement.h:
  4232. * ksvg2/svg/SVGRenderingIntent.h:
  4233. * ksvg2/svg/SVGSVGElement.cpp:
  4234. * ksvg2/svg/SVGSVGElement.h:
  4235. * ksvg2/svg/SVGSVGElement.idl:
  4236. * ksvg2/svg/SVGScriptElement.cpp:
  4237. * ksvg2/svg/SVGScriptElement.h:
  4238. * ksvg2/svg/SVGSetElement.cpp:
  4239. * ksvg2/svg/SVGSetElement.h:
  4240. * ksvg2/svg/SVGStopElement.cpp:
  4241. * ksvg2/svg/SVGStopElement.h:
  4242. * ksvg2/svg/SVGStringList.cpp:
  4243. * ksvg2/svg/SVGStringList.h:
  4244. * ksvg2/svg/SVGStylable.cpp:
  4245. * ksvg2/svg/SVGStylable.h:
  4246. * ksvg2/svg/SVGStyleElement.cpp:
  4247. * ksvg2/svg/SVGStyleElement.h:
  4248. * ksvg2/svg/SVGStyledElement.cpp:
  4249. * ksvg2/svg/SVGStyledElement.h:
  4250. * ksvg2/svg/SVGStyledLocatableElement.cpp:
  4251. * ksvg2/svg/SVGStyledLocatableElement.h:
  4252. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  4253. * ksvg2/svg/SVGStyledTransformableElement.h:
  4254. * ksvg2/svg/SVGSwitchElement.cpp:
  4255. * ksvg2/svg/SVGSwitchElement.h:
  4256. * ksvg2/svg/SVGSymbolElement.cpp:
  4257. * ksvg2/svg/SVGSymbolElement.h:
  4258. * ksvg2/svg/SVGTRefElement.cpp:
  4259. * ksvg2/svg/SVGTRefElement.h:
  4260. * ksvg2/svg/SVGTSpanElement.cpp:
  4261. * ksvg2/svg/SVGTSpanElement.h:
  4262. * ksvg2/svg/SVGTests.cpp:
  4263. * ksvg2/svg/SVGTests.h:
  4264. * ksvg2/svg/SVGTextContentElement.cpp:
  4265. * ksvg2/svg/SVGTextContentElement.h:
  4266. * ksvg2/svg/SVGTextElement.cpp:
  4267. * ksvg2/svg/SVGTextElement.h:
  4268. * ksvg2/svg/SVGTextPositioningElement.cpp:
  4269. * ksvg2/svg/SVGTextPositioningElement.h:
  4270. * ksvg2/svg/SVGTitleElement.cpp:
  4271. * ksvg2/svg/SVGTitleElement.h:
  4272. * ksvg2/svg/SVGTransform.cpp:
  4273. * ksvg2/svg/SVGTransform.h:
  4274. * ksvg2/svg/SVGTransform.idl:
  4275. * ksvg2/svg/SVGTransformDistance.cpp:
  4276. * ksvg2/svg/SVGTransformDistance.h:
  4277. * ksvg2/svg/SVGTransformList.cpp:
  4278. * ksvg2/svg/SVGTransformList.h:
  4279. * ksvg2/svg/SVGTransformable.cpp:
  4280. * ksvg2/svg/SVGTransformable.h:
  4281. * ksvg2/svg/SVGURIReference.cpp:
  4282. * ksvg2/svg/SVGURIReference.h:
  4283. * ksvg2/svg/SVGUnitTypes.h:
  4284. * ksvg2/svg/SVGUseElement.cpp:
  4285. * ksvg2/svg/SVGUseElement.h:
  4286. * ksvg2/svg/SVGViewElement.cpp:
  4287. * ksvg2/svg/SVGViewElement.h:
  4288. * ksvg2/svg/SVGZoomAndPan.cpp:
  4289. * ksvg2/svg/SVGZoomAndPan.h:
  4290. * loader/Cache.cpp:
  4291. * loader/Cache.h:
  4292. * loader/CachedCSSStyleSheet.cpp:
  4293. * loader/CachedCSSStyleSheet.h:
  4294. * loader/CachedImage.cpp:
  4295. * loader/CachedImage.h:
  4296. * loader/CachedResource.cpp:
  4297. * loader/CachedResource.h:
  4298. * loader/CachedResourceClient.h:
  4299. * loader/CachedResourceClientWalker.cpp:
  4300. * loader/CachedResourceClientWalker.h:
  4301. * loader/CachedScript.cpp:
  4302. * loader/CachedScript.h:
  4303. * loader/CachedXBLDocument.cpp:
  4304. * loader/CachedXBLDocument.h:
  4305. * loader/CachedXSLStyleSheet.cpp:
  4306. * loader/CachedXSLStyleSheet.h:
  4307. * loader/DocLoader.cpp:
  4308. * loader/DocLoader.h:
  4309. * loader/FTPDirectoryParser.cpp:
  4310. * loader/FTPDirectoryParser.h:
  4311. * loader/Request.cpp:
  4312. * loader/Request.h:
  4313. * loader/TextResourceDecoder.cpp:
  4314. * loader/TextResourceDecoder.h:
  4315. * loader/loader.cpp:
  4316. * loader/loader.h:
  4317. * page/Chrome.cpp:
  4318. * page/Chrome.h:
  4319. * page/ChromeClient.h:
  4320. * page/Frame.cpp:
  4321. * page/Frame.h:
  4322. * page/FramePrivate.h:
  4323. * page/FrameTree.cpp:
  4324. * page/FrameTree.h:
  4325. * page/FrameView.cpp:
  4326. * page/FrameView.h:
  4327. * page/MouseEventWithHitTestResults.cpp:
  4328. * page/MouseEventWithHitTestResults.h:
  4329. * page/Page.cpp:
  4330. * page/Page.h:
  4331. * page/Plugin.h:
  4332. * page/mac/ChromeMac.mm:
  4333. * platform/Arena.cpp:
  4334. * platform/Arena.h:
  4335. * platform/AtomicString.cpp:
  4336. * platform/AtomicString.h:
  4337. * platform/AtomicStringImpl.h:
  4338. * platform/BidiContext.cpp:
  4339. * platform/BidiContext.h:
  4340. * platform/BidiResolver.h:
  4341. * platform/Font.cpp:
  4342. * platform/Font.h:
  4343. * platform/FontData.h:
  4344. * platform/FontDescription.h:
  4345. * platform/FontFallbackList.h:
  4346. * platform/PlatformString.h:
  4347. * platform/PopupMenu.h:
  4348. * platform/PopupMenuClient.h:
  4349. * platform/SearchPopupMenu.h:
  4350. * platform/SegmentedString.cpp:
  4351. * platform/SegmentedString.h:
  4352. * platform/Shared.h:
  4353. * platform/StaticConstructors.h:
  4354. * platform/String.cpp:
  4355. * platform/StringHash.h:
  4356. * platform/StringImpl.cpp:
  4357. * platform/StringImpl.h:
  4358. * platform/TextBreakIterator.h:
  4359. * platform/TextBreakIteratorICU.cpp:
  4360. * platform/TextBreakIteratorInternalICU.h:
  4361. * platform/TextStyle.h:
  4362. * platform/UnicodeRange.cpp:
  4363. * platform/UnicodeRange.h:
  4364. * platform/cf/StringCF.cpp:
  4365. * platform/cf/StringImplCF.cpp:
  4366. * platform/graphics/FloatPoint3D.cpp:
  4367. * platform/graphics/FloatPoint3D.h:
  4368. * platform/graphics/Icon.h:
  4369. * platform/graphics/IntSizeHash.h:
  4370. * platform/graphics/PathTraversalState.cpp:
  4371. * platform/graphics/cairo/CairoPath.h:
  4372. * platform/graphics/cairo/PathCairo.cpp:
  4373. * platform/graphics/mac/IconMac.mm:
  4374. * platform/graphics/qt/IconQt.cpp:
  4375. * platform/graphics/svg/SVGResourceFilter.cpp:
  4376. * platform/graphics/svg/SVGResourceFilter.h:
  4377. * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
  4378. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  4379. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  4380. * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
  4381. * platform/graphics/svg/filters/SVGDistantLightSource.h:
  4382. * platform/graphics/svg/filters/SVGFEBlend.cpp:
  4383. * platform/graphics/svg/filters/SVGFEBlend.h:
  4384. * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
  4385. * platform/graphics/svg/filters/SVGFEColorMatrix.h:
  4386. * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
  4387. * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
  4388. * platform/graphics/svg/filters/SVGFEComposite.cpp:
  4389. * platform/graphics/svg/filters/SVGFEComposite.h:
  4390. * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
  4391. * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
  4392. * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
  4393. * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
  4394. * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
  4395. * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
  4396. * platform/graphics/svg/filters/SVGFEFlood.cpp:
  4397. * platform/graphics/svg/filters/SVGFEFlood.h:
  4398. * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
  4399. * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
  4400. * platform/graphics/svg/filters/SVGFEImage.cpp:
  4401. * platform/graphics/svg/filters/SVGFEImage.h:
  4402. * platform/graphics/svg/filters/SVGFEMerge.cpp:
  4403. * platform/graphics/svg/filters/SVGFEMerge.h:
  4404. * platform/graphics/svg/filters/SVGFEMorphology.cpp:
  4405. * platform/graphics/svg/filters/SVGFEMorphology.h:
  4406. * platform/graphics/svg/filters/SVGFEOffset.cpp:
  4407. * platform/graphics/svg/filters/SVGFEOffset.h:
  4408. * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
  4409. * platform/graphics/svg/filters/SVGFESpecularLighting.h:
  4410. * platform/graphics/svg/filters/SVGFETile.h:
  4411. * platform/graphics/svg/filters/SVGFETurbulence.cpp:
  4412. * platform/graphics/svg/filters/SVGFETurbulence.h:
  4413. * platform/graphics/svg/filters/SVGFilterEffect.cpp:
  4414. * platform/graphics/svg/filters/SVGFilterEffect.h:
  4415. * platform/graphics/svg/filters/SVGLightSource.cpp:
  4416. * platform/graphics/svg/filters/SVGLightSource.h:
  4417. * platform/graphics/svg/filters/SVGPointLightSource.h:
  4418. * platform/graphics/svg/filters/SVGSpotLightSource.h:
  4419. * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
  4420. * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
  4421. * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
  4422. * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
  4423. * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
  4424. * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
  4425. * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
  4426. * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm:
  4427. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
  4428. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
  4429. * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
  4430. * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
  4431. * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm:
  4432. * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
  4433. * platform/graphics/svg/filters/cg/SVGFETileCg.mm:
  4434. * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm:
  4435. * platform/graphics/svg/qt/RenderPathQt.cpp:
  4436. * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp:
  4437. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
  4438. * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
  4439. * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
  4440. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
  4441. * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
  4442. * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
  4443. * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
  4444. * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
  4445. * platform/graphics/win/IconWin.cpp:
  4446. * platform/gtk/FontPlatformData.h:
  4447. * platform/gtk/FontPlatformDataGtk.cpp:
  4448. * platform/gtk/PopupMenuGtk.cpp:
  4449. * platform/gtk/RenderThemeGtk.cpp:
  4450. * platform/gtk/RenderThemeGtk.h:
  4451. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  4452. * platform/image-decoders/png/PNGImageDecoder.cpp:
  4453. * platform/mac/FontMac.mm:
  4454. * platform/mac/FontPlatformData.h:
  4455. * platform/mac/LocalCurrentGraphicsContext.h:
  4456. * platform/mac/LocalCurrentGraphicsContext.mm:
  4457. * platform/mac/PopupMenuMac.mm:
  4458. * platform/mac/SearchPopupMenuMac.mm:
  4459. * platform/mac/StringImplMac.mm:
  4460. * platform/mac/StringMac.mm:
  4461. * platform/mac/TextBreakIteratorInternalICUMac.mm:
  4462. * platform/network/FormData.cpp:
  4463. * platform/network/FormData.h:
  4464. * platform/qt/FileChooserQt.cpp:
  4465. * platform/qt/FontQt.cpp:
  4466. * platform/qt/MenuEventProxy.h:
  4467. * platform/qt/PlugInInfoStoreQt.cpp:
  4468. * platform/qt/PopupMenuQt.cpp:
  4469. * platform/qt/QWebPopup.cpp:
  4470. * platform/qt/QWebPopup.h:
  4471. * platform/qt/RenderThemeQt.cpp:
  4472. * platform/qt/RenderThemeQt.h:
  4473. * platform/qt/SearchPopupMenuQt.cpp:
  4474. * platform/qt/TextBreakIteratorQt.cpp:
  4475. * platform/qt/WheelEventQt.cpp:
  4476. * platform/win/FontPlatformData.h:
  4477. * platform/win/FontPlatformDataWin.cpp:
  4478. * platform/win/PopupMenuWin.cpp:
  4479. * platform/win/SearchPopupMenuWin.cpp:
  4480. * platform/win/TextBreakIteratorInternalICUWin.cpp:
  4481. * rendering/AutoTableLayout.cpp:
  4482. * rendering/AutoTableLayout.h:
  4483. * rendering/CounterNode.cpp:
  4484. * rendering/CounterNode.h:
  4485. * rendering/DataRef.h:
  4486. * rendering/EllipsisBox.cpp:
  4487. * rendering/EllipsisBox.h:
  4488. * rendering/FixedTableLayout.cpp:
  4489. * rendering/FixedTableLayout.h:
  4490. * rendering/GapRects.h:
  4491. * rendering/HitTestRequest.h:
  4492. * rendering/HitTestResult.cpp:
  4493. * rendering/HitTestResult.h:
  4494. * rendering/InlineBox.cpp:
  4495. * rendering/InlineBox.h:
  4496. * rendering/InlineFlowBox.cpp:
  4497. * rendering/InlineFlowBox.h:
  4498. * rendering/InlineRunBox.h:
  4499. * rendering/InlineTextBox.cpp:
  4500. * rendering/InlineTextBox.h:
  4501. * rendering/Length.h:
  4502. * rendering/ListMarkerBox.cpp:
  4503. * rendering/ListMarkerBox.h:
  4504. * rendering/RenderApplet.cpp:
  4505. * rendering/RenderApplet.h:
  4506. * rendering/RenderArena.cpp:
  4507. * rendering/RenderArena.h:
  4508. * rendering/RenderBR.cpp:
  4509. * rendering/RenderBR.h:
  4510. * rendering/RenderBlock.cpp:
  4511. * rendering/RenderBlock.h:
  4512. * rendering/RenderBox.cpp:
  4513. * rendering/RenderBox.h:
  4514. * rendering/RenderButton.cpp:
  4515. * rendering/RenderButton.h:
  4516. * rendering/RenderContainer.cpp:
  4517. * rendering/RenderContainer.h:
  4518. * rendering/RenderCounter.cpp:
  4519. * rendering/RenderCounter.h:
  4520. * rendering/RenderFieldset.cpp:
  4521. * rendering/RenderFieldset.h:
  4522. * rendering/RenderFileUploadControl.cpp:
  4523. * rendering/RenderFileUploadControl.h:
  4524. * rendering/RenderFlexibleBox.cpp:
  4525. * rendering/RenderFlexibleBox.h:
  4526. * rendering/RenderFlow.cpp:
  4527. * rendering/RenderFlow.h:
  4528. * rendering/RenderForeignObject.cpp:
  4529. * rendering/RenderForeignObject.h:
  4530. * rendering/RenderFrame.cpp:
  4531. * rendering/RenderFrame.h:
  4532. * rendering/RenderFrameSet.cpp:
  4533. * rendering/RenderFrameSet.h:
  4534. * rendering/RenderImage.cpp:
  4535. * rendering/RenderImage.h:
  4536. * rendering/RenderInline.cpp:
  4537. * rendering/RenderInline.h:
  4538. * rendering/RenderLayer.cpp:
  4539. * rendering/RenderLayer.h:
  4540. * rendering/RenderLegend.cpp:
  4541. * rendering/RenderLegend.h:
  4542. * rendering/RenderListItem.cpp:
  4543. * rendering/RenderListItem.h:
  4544. * rendering/RenderListMarker.cpp:
  4545. * rendering/RenderListMarker.h:
  4546. * rendering/RenderMenuList.cpp:
  4547. * rendering/RenderMenuList.h:
  4548. * rendering/RenderObject.cpp:
  4549. * rendering/RenderObject.h:
  4550. * rendering/RenderPart.cpp:
  4551. * rendering/RenderPart.h:
  4552. * rendering/RenderPartObject.cpp:
  4553. * rendering/RenderPartObject.h:
  4554. * rendering/RenderPath.cpp:
  4555. * rendering/RenderPath.h:
  4556. * rendering/RenderReplaced.cpp:
  4557. * rendering/RenderReplaced.h:
  4558. * rendering/RenderSVGBlock.cpp:
  4559. * rendering/RenderSVGBlock.h:
  4560. * rendering/RenderSVGContainer.cpp:
  4561. * rendering/RenderSVGContainer.h:
  4562. * rendering/RenderSVGGradientStop.cpp:
  4563. * rendering/RenderSVGGradientStop.h:
  4564. * rendering/RenderSVGHiddenContainer.cpp:
  4565. * rendering/RenderSVGHiddenContainer.h:
  4566. * rendering/RenderSVGImage.cpp:
  4567. * rendering/RenderSVGImage.h:
  4568. * rendering/RenderSVGInline.cpp:
  4569. * rendering/RenderSVGInline.h:
  4570. * rendering/RenderSVGInlineText.cpp:
  4571. * rendering/RenderSVGInlineText.h:
  4572. * rendering/RenderSVGTSpan.cpp:
  4573. * rendering/RenderSVGTSpan.h:
  4574. * rendering/RenderSVGText.cpp:
  4575. * rendering/RenderSVGText.h:
  4576. * rendering/RenderSlider.cpp:
  4577. * rendering/RenderSlider.h:
  4578. * rendering/RenderStyle.cpp:
  4579. * rendering/RenderStyle.h:
  4580. * rendering/RenderTable.cpp:
  4581. * rendering/RenderTable.h:
  4582. * rendering/RenderTableCell.cpp:
  4583. * rendering/RenderTableCell.h:
  4584. * rendering/RenderTableCol.cpp:
  4585. * rendering/RenderTableCol.h:
  4586. * rendering/RenderTableRow.cpp:
  4587. * rendering/RenderTableRow.h:
  4588. * rendering/RenderTableSection.cpp:
  4589. * rendering/RenderTableSection.h:
  4590. * rendering/RenderText.cpp:
  4591. * rendering/RenderText.h:
  4592. * rendering/RenderTextControl.cpp:
  4593. * rendering/RenderTextControl.h:
  4594. * rendering/RenderTextFragment.cpp:
  4595. * rendering/RenderTextFragment.h:
  4596. * rendering/RenderTheme.cpp:
  4597. * rendering/RenderTheme.h:
  4598. * rendering/RenderThemeMac.h:
  4599. * rendering/RenderThemeMac.mm:
  4600. * rendering/RenderThemeSafari.cpp:
  4601. * rendering/RenderThemeSafari.h:
  4602. * rendering/RenderThemeWin.cpp:
  4603. * rendering/RenderThemeWin.h:
  4604. * rendering/RenderView.cpp:
  4605. * rendering/RenderView.h:
  4606. * rendering/RenderWidget.cpp:
  4607. * rendering/RenderWidget.h:
  4608. * rendering/RootInlineBox.cpp:
  4609. * rendering/RootInlineBox.h:
  4610. * rendering/SVGInlineFlowBox.cpp:
  4611. * rendering/SVGInlineFlowBox.h:
  4612. * rendering/SVGInlineTextBox.cpp:
  4613. * rendering/SVGInlineTextBox.h:
  4614. * rendering/SVGRootInlineBox.cpp:
  4615. * rendering/SVGRootInlineBox.h:
  4616. * rendering/TableLayout.h:
  4617. * rendering/bidi.cpp:
  4618. * rendering/bidi.h:
  4619. * rendering/break_lines.cpp:
  4620. * rendering/break_lines.h:
  4621. * xml/DOMParser.cpp:
  4622. * xml/DOMParser.h:
  4623. * xml/DOMParser.idl:
  4624. * xml/XMLHttpRequest.cpp:
  4625. * xml/XMLHttpRequest.h:
  4626. * xml/XMLSerializer.cpp:
  4627. * xml/XMLSerializer.h:
  4628. * xml/XMLSerializer.idl:
  4629. * xml/XPathEvaluator.idl:
  4630. * xml/XPathExpression.idl:
  4631. * xml/XPathNSResolver.idl:
  4632. * xml/XPathResult.idl:
  4633. * xml/XSLImportRule.cpp:
  4634. * xml/XSLImportRule.h:
  4635. * xml/XSLStyleSheet.cpp:
  4636. * xml/XSLStyleSheet.h:
  4637. * xml/XSLTProcessor.cpp:
  4638. * xml/XSLTProcessor.h:
  4639. 2007-09-25 Darin Adler <darin@apple.com>
  4640. Reviewed by Harrison.
  4641. - fix <rdar://problem/5503225> CrashTracer: [USER] 2 crashes in Dashcode
  4642. at com.apple.WebCore: WebCore::Frame::document const + 0
  4643. * page/FrameView.cpp: (WebCore::FrameView::updateControlTints):
  4644. Added null check.
  4645. 2007-09-25 Beth Dakin <bdakin@apple.com>
  4646. Reviewed by Darin.
  4647. Fixes http://bugs.webkit.org/show_bug.cgi?id=15282 r25726 caused
  4648. plugins/mouse-events.html to fail
  4649. * page/FrameView.cpp:
  4650. (WebCore::FrameView::layout): We need to call
  4651. updateWidgetPosition() after updating each widget.
  4652. 2007-09-25 Anders Carlsson <andersca@apple.com>
  4653. Build fix.
  4654. * page/Chrome.cpp:
  4655. (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
  4656. 2007-09-25 Anders Carlsson <andersca@apple.com>
  4657. Reviewed by Geoff.
  4658. <rdar://problem/5283916>
  4659. JavaScript timers may be firing while JavaScript alerts are displayed.
  4660. Pause JavaScript timeouts while calling UI delegate methods that might show dialogs.
  4661. * page/Chrome.cpp:
  4662. (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
  4663. (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
  4664. 2007-09-26 Holger Hans Peter Freyther <zecke@selfish.org>
  4665. Reviewed by Anders.
  4666. Implement PopupMenu using GtkMenu.
  4667. * platform/PopupMenu.h:
  4668. * platform/gtk/PopupMenuGtk.cpp:
  4669. (WebCore::PopupMenu::PopupMenu):
  4670. (WebCore::PopupMenu::~PopupMenu):
  4671. (WebCore::PopupMenu::show):
  4672. (WebCore::PopupMenu::hide):
  4673. (WebCore::PopupMenu::updateFromElement):
  4674. (WebCore::PopupMenu::itemWritingDirectionIsNatural):
  4675. (WebCore::PopupMenu::menuItemActivated):
  4676. (WebCore::PopupMenu::menuUnmapped):
  4677. (WebCore::PopupMenu::menuPositionFunction):
  4678. (WebCore::PopupMenu::menuRemoveItem):
  4679. 2007-09-23 Holger Hans Peter Freyther <zecke@selfish.org>
  4680. Rubber stamped by Mark.
  4681. Obey the Coding-Style and move the asterisk to the
  4682. left to be part of the type.
  4683. * platform/gtk/RenderThemeGtk.h:
  4684. 2007-09-25 Beth Dakin <bdakin@apple.com>
  4685. Reviewed by Darin.
  4686. Fix for <rdar://problem/5466459> CrashTracer: [USER] 1 crash in
  4687. NetNewsWire at com.apple.WebCore: WebCore::bidiNext + 485 (15241)
  4688. Mitz discovered that this crash appeared because r25128 made it
  4689. possible for RenderPartObject::updateWidget() to be called during
  4690. layout. updateWidget() can, through a series of calls, cause an
  4691. attach/detach to happen, which is very bad in the middle of a
  4692. layout and is what led to this crash. This patch fixes that by
  4693. having the FrameView keep track of a queue of RenderPartObjects
  4694. that need to call updateWidget(), and it goes through the queue
  4695. calling updateWidget() as soon as layout is done.
  4696. * page/FrameView.cpp: We only want to call updateWidget() if we are
  4697. not in a nested layout. Unfortunately, the existing variables on
  4698. FrameViewPrivate do not have exactly the information that we need,
  4699. so I added nestedLayoutCount.
  4700. (WebCore::FrameViewPrivate::reset): Reset nestedLayoutCount.
  4701. (WebCore::FrameView::layout): Increment nestedLayoutCount once we
  4702. have gotten through all of the early returns. Call updateWidget()
  4703. after layout is nestedLayoutCount is 1 and there are widgets to
  4704. update. Decrement nestedLayoutCount at the end.
  4705. (WebCore::FrameView::addWidgetToUpdate):
  4706. (WebCore::FrameView::removeWidgetToUpdate):
  4707. * page/FrameView.h:
  4708. * rendering/RenderPartObject.cpp:
  4709. (WebCore::RenderPartObject::~RenderPartObject): Remove this from
  4710. the FrameView's update set.
  4711. (WebCore::RenderPartObject::layout): Instead of calling
  4712. updateWidget() immediately, add this to the update widget set on
  4713. FrameView.
  4714. * rendering/RenderPartObject.h:
  4715. 2007-09-25 David Kilzer <ddkilzer@webkit.org>
  4716. Reviewed by Mark Rowe.
  4717. - fix http://bugs.webkit.org/show_bug.cgi?id=15275
  4718. SVG dependency on WebCore/dom/XMLTokenizer.cpp
  4719. * dom/XMLTokenizer.cpp: Moved #include "SVGStyleElement.h" into #if ENABLE(SVG).
  4720. 2007-09-25 Justin Garcia <justin.garcia@apple.com>
  4721. Reviewed by Darin.
  4722. <rdar://problem/5483567>
  4723. REGRESSION (Tiger only, workaround in AppKit on Leopard): Pasting words copied from TextEdit in Mail adds extra newline
  4724. * editing/ReplaceSelectionCommand.cpp:
  4725. (WebCore::ReplaceSelectionCommand::removeUnrenderedNodes): Added.
  4726. (WebCore::ReplaceSelectionCommand::doApply): Call removeUnrenderedNodes
  4727. to prevent unrendered spaces from interfering with paragraph merging.
  4728. * editing/ReplaceSelectionCommand.h:
  4729. 2007-09-24 Steve Falkenburg <sfalken@apple.com>
  4730. Reviewed by Darin.
  4731. - fix <rdar://problem/5502513>
  4732. * platform/win/FontCacheWin.cpp:
  4733. (WebCore::FontCache::getFontLinkInterface):
  4734. Roll back this file; the old code leaked a global COM object, but that's
  4735. no big deal and the new code caused a crash on quit.
  4736. 2007-09-24 Anders Carlsson <andersca@apple.com>
  4737. Reviewed by Adam.
  4738. <rdar://problem/5494608>
  4739. Seed: Safari will follow links in Flash movies without clicking.
  4740. Make sure to handle mouseover and mouseout so the plug-in can track when the mouse is over it.
  4741. * plugins/win/PluginViewWin.cpp:
  4742. (WebCore::PluginViewWin::handleMouseEvent):
  4743. 2007-09-24 Mike Fenton <mike@staikos.net>
  4744. Reviewed by George Staikos.
  4745. Switch to using a QImage instead of a QPixmap to make transparency work.
  4746. * html/CanvasRenderingContext2D.cpp:
  4747. (WebCore::CanvasRenderingContext2D::drawImage):
  4748. * html/HTMLCanvasElement.cpp:
  4749. (WebCore::HTMLCanvasElement::paint):
  4750. (WebCore::HTMLCanvasElement::createDrawingContext):
  4751. (WebCore::HTMLCanvasElement::createPlatformImage):
  4752. * html/HTMLCanvasElement.h:
  4753. 2007-09-21 Kevin McCullough <kmccullough@apple.com>
  4754. Reviewed by Sam.
  4755. - Updated project files to not use Edit and Continue for Debug Information since it doesn't work and breaks some functionality.
  4756. * WebCore.vcproj/WebCore.vcproj:
  4757. 2007-09-24 Brady Eidson <beidson@apple.com>
  4758. Reviewed by John Sullivan
  4759. * loader/icon/IconDatabase.cpp:
  4760. (WebCore::IconDatabase::iconForPageURL): Assert the page url is non-null
  4761. 2007-09-20 Holger Hans Peter Freyther <zecke@selfish.org>
  4762. Rubber stamped by Adam.
  4763. Renamed files from *Gdk to *Gtk (see #14732) using the
  4764. work of Juan A. Suarez Romero as a base.
  4765. GDK -> GTK
  4766. * Projects/gdk/webcore-gdk.bkl:
  4767. * WebCore.pro:
  4768. * WebCoreSources.bkl:
  4769. * loader/gdk: Removed.
  4770. * loader/gdk/DocumentLoaderGdk.cpp: Removed.
  4771. * loader/gtk: Added.
  4772. * loader/gtk/DocumentLoaderGdk.cpp: Removed.
  4773. * loader/gtk/DocumentLoaderGtk.cpp: Added.
  4774. * page/FrameView.cpp:
  4775. * page/FrameView.h:
  4776. * page/gdk: Removed.
  4777. * page/gdk/DragControllerGdk.cpp: Removed.
  4778. * page/gdk/EventHandlerGdk.cpp: Removed.
  4779. * page/gdk/FrameGdk.cpp: Removed.
  4780. * page/gtk: Added.
  4781. * page/gtk/DragControllerGdk.cpp: Removed.
  4782. * page/gtk/DragControllerGtk.cpp: Added.
  4783. * page/gtk/EventHandlerGdk.cpp: Removed.
  4784. * page/gtk/EventHandlerGtk.cpp: Added.
  4785. (WebCore::EventHandler::createDraggingClipboard):
  4786. * page/gtk/FrameGdk.cpp: Removed.
  4787. * page/gtk/FrameGtk.cpp: Added.
  4788. * platform/ContextMenuItem.h:
  4789. * platform/Cursor.h:
  4790. * platform/DragData.h:
  4791. * platform/DragImage.h:
  4792. * platform/FontData.h:
  4793. * platform/NotImplemented.h:
  4794. * platform/PlatformKeyboardEvent.h:
  4795. * platform/PlatformMenuDescription.h:
  4796. * platform/PlatformMouseEvent.h:
  4797. * platform/PlatformWheelEvent.h:
  4798. * platform/ScrollView.h:
  4799. * platform/Widget.h:
  4800. * platform/gdk: Removed.
  4801. * platform/gdk/ClipboardGdk.cpp: Removed.
  4802. * platform/gdk/ClipboardGdk.h: Removed.
  4803. * platform/gdk/ContextMenuGdk.cpp: Removed.
  4804. * platform/gdk/ContextMenuItemGdk.cpp: Removed.
  4805. * platform/gdk/CookieJarGdk.cpp: Removed.
  4806. * platform/gdk/CursorGdk.cpp: Removed.
  4807. * platform/gdk/DragDataGdk.cpp: Removed.
  4808. * platform/gdk/DragImageGdk.cpp: Removed.
  4809. * platform/gdk/FileChooserGdk.cpp: Removed.
  4810. * platform/gdk/FileSystemGdk.cpp: Removed.
  4811. * platform/gdk/FontCacheGdk.cpp: Removed.
  4812. * platform/gdk/FontDataGdk.cpp: Removed.
  4813. * platform/gdk/FontGdk.cpp: Removed.
  4814. * platform/gdk/FontPlatformData.h: Removed.
  4815. * platform/gdk/FontPlatformDataGdk.cpp: Removed.
  4816. * platform/gdk/GlyphPageTreeNodeGdk.cpp: Removed.
  4817. * platform/gdk/KeyEventGdk.cpp: Removed.
  4818. * platform/gdk/KeyboardCodes.h: Removed.
  4819. * platform/gdk/LocalizedStringsGdk.cpp: Removed.
  4820. * platform/gdk/LoggingGdk.cpp: Removed.
  4821. * platform/gdk/MIMETypeRegistryGdk.cpp: Removed.
  4822. * platform/gdk/MouseEventGdk.cpp: Removed.
  4823. * platform/gdk/PasteboardGdk.cpp: Removed.
  4824. * platform/gdk/PlatformScreenGdk.cpp: Removed.
  4825. * platform/gdk/PlatformScrollBar.h: Removed.
  4826. * platform/gdk/PlatformScrollBarGdk.cpp: Removed.
  4827. * platform/gdk/PopupMenuGdk.cpp: Removed.
  4828. * platform/gdk/RenderThemeGdk.cpp: Removed.
  4829. * platform/gdk/RenderThemeGdk.h: Removed.
  4830. * platform/gdk/ScrollViewGdk.cpp: Removed.
  4831. * platform/gdk/SearchPopupMenuGdk.cpp: Removed.
  4832. * platform/gdk/SharedTimerLinux.cpp: Removed.
  4833. * platform/gdk/SoundGdk.cpp: Removed.
  4834. * platform/gdk/SystemTimeLinux.cpp: Removed.
  4835. * platform/gdk/TemporaryLinkStubs.cpp: Removed.
  4836. * platform/gdk/WheelEventGdk.cpp: Removed.
  4837. * platform/gdk/WidgetGdk.cpp: Removed.
  4838. * platform/graphics/GraphicsContext.h:
  4839. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  4840. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  4841. (WebCore::GraphicsContext::setPlatformFont):
  4842. * platform/graphics/gdk: Removed.
  4843. * platform/graphics/gdk/IconGdk.cpp: Removed.
  4844. * platform/graphics/gdk/ImageGdk.cpp: Removed.
  4845. * platform/graphics/gtk: Added.
  4846. * platform/graphics/gtk/IconGdk.cpp: Removed.
  4847. * platform/graphics/gtk/IconGtk.cpp: Added.
  4848. * platform/graphics/gtk/ImageGdk.cpp: Removed.
  4849. * platform/graphics/gtk/ImageGtk.cpp: Added.
  4850. * platform/gtk: Added.
  4851. * platform/gtk/ClipboardGdk.cpp: Removed.
  4852. * platform/gtk/ClipboardGdk.h: Removed.
  4853. * platform/gtk/ClipboardGtk.cpp: Added.
  4854. (WebCore::ClipboardGtk::ClipboardGtk):
  4855. (WebCore::ClipboardGtk::~ClipboardGtk):
  4856. (WebCore::ClipboardGtk::clearData):
  4857. (WebCore::ClipboardGtk::clearAllData):
  4858. (WebCore::ClipboardGtk::getData):
  4859. (WebCore::ClipboardGtk::setData):
  4860. (WebCore::ClipboardGtk::types):
  4861. (WebCore::ClipboardGtk::dragLocation):
  4862. (WebCore::ClipboardGtk::dragImage):
  4863. (WebCore::ClipboardGtk::setDragImage):
  4864. (WebCore::ClipboardGtk::dragImageElement):
  4865. (WebCore::ClipboardGtk::setDragImageElement):
  4866. (WebCore::ClipboardGtk::createDragImage):
  4867. (WebCore::ClipboardGtk::declareAndWriteDragImage):
  4868. (WebCore::ClipboardGtk::writeURL):
  4869. (WebCore::ClipboardGtk::writeRange):
  4870. (WebCore::ClipboardGtk::hasData):
  4871. * platform/gtk/ClipboardGtk.h: Added.
  4872. * platform/gtk/ContextMenuGdk.cpp: Removed.
  4873. * platform/gtk/ContextMenuGtk.cpp: Added.
  4874. * platform/gtk/ContextMenuItemGdk.cpp: Removed.
  4875. * platform/gtk/ContextMenuItemGtk.cpp: Added.
  4876. * platform/gtk/CookieJarGdk.cpp: Removed.
  4877. * platform/gtk/CookieJarGtk.cpp: Added.
  4878. * platform/gtk/CursorGdk.cpp: Removed.
  4879. * platform/gtk/CursorGtk.cpp: Added.
  4880. * platform/gtk/DragDataGdk.cpp: Removed.
  4881. * platform/gtk/DragDataGtk.cpp: Added.
  4882. * platform/gtk/DragImageGdk.cpp: Removed.
  4883. * platform/gtk/DragImageGtk.cpp: Added.
  4884. * platform/gtk/FileChooserGdk.cpp: Removed.
  4885. * platform/gtk/FileChooserGtk.cpp: Added.
  4886. * platform/gtk/FileSystemGdk.cpp: Removed.
  4887. * platform/gtk/FileSystemGtk.cpp: Added.
  4888. * platform/gtk/FontCacheGdk.cpp: Removed.
  4889. * platform/gtk/FontCacheGtk.cpp: Added.
  4890. * platform/gtk/FontDataGdk.cpp: Removed.
  4891. * platform/gtk/FontDataGtk.cpp: Added.
  4892. * platform/gtk/FontGdk.cpp: Removed.
  4893. * platform/gtk/FontGtk.cpp: Added.
  4894. * platform/gtk/FontPlatformDataGdk.cpp: Removed.
  4895. * platform/gtk/FontPlatformDataGtk.cpp: Added.
  4896. * platform/gtk/GlyphPageTreeNodeGdk.cpp: Removed.
  4897. * platform/gtk/GlyphPageTreeNodeGtk.cpp: Added.
  4898. * platform/gtk/KeyEventGdk.cpp: Removed.
  4899. * platform/gtk/KeyEventGtk.cpp: Added.
  4900. * platform/gtk/LocalizedStringsGdk.cpp: Removed.
  4901. * platform/gtk/LocalizedStringsGtk.cpp: Added.
  4902. * platform/gtk/LoggingGdk.cpp: Removed.
  4903. * platform/gtk/LoggingGtk.cpp: Added.
  4904. * platform/gtk/MIMETypeRegistryGdk.cpp: Removed.
  4905. * platform/gtk/MIMETypeRegistryGtk.cpp: Added.
  4906. * platform/gtk/MouseEventGdk.cpp: Removed.
  4907. * platform/gtk/MouseEventGtk.cpp: Added.
  4908. * platform/gtk/PasteboardGdk.cpp: Removed.
  4909. * platform/gtk/PasteboardGtk.cpp: Added.
  4910. * platform/gtk/PlatformScreenGdk.cpp: Removed.
  4911. * platform/gtk/PlatformScreenGtk.cpp: Added.
  4912. * platform/gtk/PlatformScrollBarGdk.cpp: Removed.
  4913. * platform/gtk/PlatformScrollBarGtk.cpp: Added.
  4914. * platform/gtk/PopupMenuGdk.cpp: Removed.
  4915. * platform/gtk/PopupMenuGtk.cpp: Added.
  4916. * platform/gtk/RenderThemeGdk.cpp: Removed.
  4917. * platform/gtk/RenderThemeGdk.h: Removed.
  4918. * platform/gtk/RenderThemeGtk.cpp: Added.
  4919. (WebCore::theme):
  4920. (WebCore::RenderThemeGtk::RenderThemeGtk):
  4921. (WebCore::RenderThemeGtk::close):
  4922. (WebCore::RenderThemeGtk::addIntrinsicMargins):
  4923. (WebCore::RenderThemeGtk::supportsFocus):
  4924. (WebCore::RenderThemeGtk::determineState):
  4925. (WebCore::RenderThemeGtk::determineShadow):
  4926. (WebCore::RenderThemeGtk::getThemeData):
  4927. (WebCore::RenderThemeGtk::setCheckboxSize):
  4928. (WebCore::RenderThemeGtk::paintCheckbox):
  4929. (WebCore::RenderThemeGtk::setRadioSize):
  4930. (WebCore::RenderThemeGtk::paintRadio):
  4931. (WebCore::RenderThemeGtk::paintButton):
  4932. (WebCore::RenderThemeGtk::adjustTextFieldStyle):
  4933. (WebCore::RenderThemeGtk::paintTextField):
  4934. (WebCore::RenderThemeGtk::paintTextArea):
  4935. (WebCore::RenderThemeGtk::adjustButtonStyle):
  4936. (WebCore::RenderThemeGtk::systemFont):
  4937. (WebCore::RenderThemeGtk::gtkButton):
  4938. (WebCore::RenderThemeGtk::gtkCheckbox):
  4939. (WebCore::RenderThemeGtk::gtkRadioButton):
  4940. (WebCore::RenderThemeGtk::gtkWindowContainer):
  4941. * platform/gtk/RenderThemeGtk.h: Added.
  4942. * platform/gtk/ScrollViewGdk.cpp: Removed.
  4943. * platform/gtk/ScrollViewGtk.cpp: Added.
  4944. * platform/gtk/SearchPopupMenuGdk.cpp: Removed.
  4945. * platform/gtk/SearchPopupMenuGtk.cpp: Added.
  4946. * platform/gtk/SoundGdk.cpp: Removed.
  4947. * platform/gtk/SoundGtk.cpp: Added.
  4948. * platform/gtk/WheelEventGdk.cpp: Removed.
  4949. * platform/gtk/WheelEventGtk.cpp: Added.
  4950. * platform/gtk/WidgetGdk.cpp: Removed.
  4951. * platform/gtk/WidgetGtk.cpp: Added.
  4952. * platform/network/ResourceHandle.h:
  4953. 2007-09-23 Rob Buis <buis@kde.org>
  4954. Reviewed by Hyatt.
  4955. http://bugs.webkit.org/show_bug.cgi?id=15025
  4956. Background repeat css property is not inherited from parent if unspecified
  4957. Don't let invalid url specification in background shorthand make
  4958. the entire shorthand invalid.
  4959. * css/CSSParser.cpp:
  4960. (WebCore::CSSParser::parseBackgroundImage):
  4961. (WebCore::CSSParser::parseBackgroundProperty):
  4962. * css/CSSParser.h:
  4963. 2007-09-22 Adam Roben <aroben@apple.com>
  4964. Fix Bug 15251: REGRESSION: <input type=range> doesn't respond to form.reset() or setting input.value
  4965. http://bugs.webkit.org/show_bug.cgi?id=15251
  4966. <rdar://5498169>
  4967. Reviewed by Maciej.
  4968. Test: fast/forms/range-reset.html
  4969. * html/HTMLInputElement.cpp:
  4970. (WebCore::HTMLInputElement::storesValueSeparateFromAttribute): <input
  4971. type=range> should be storing its value separately from the value
  4972. attribute, as do all of our variable-input input types.
  4973. 2007-09-21 Mark Rowe <mrowe@apple.com>
  4974. Build fix for non-Mac platforms after r25697.
  4975. Rename Frame::cleanupPlatformScriptObjects to Frame::clearPlatformScriptObjects.
  4976. * bridge/win/FrameWin.cpp:
  4977. * page/gdk/FrameGdk.cpp:
  4978. * page/qt/FrameQt.cpp:
  4979. * platform/wx/TemporaryLinkStubs.cpp:
  4980. 2007-09-21 Adele Peterson <adele@apple.com>
  4981. Reviewed by Sam.
  4982. Fix for <rdar://problem/5497357> REGRESSION: Safari doesn't show the month days on AirFrance reservation page
  4983. Test: fast/dom/HTMLSelectElement/options-collection-set-string-length.html
  4984. * bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::setLength):
  4985. Convert the value to a number. We already have code here to check if the value is not a number.
  4986. This matches other browsers, which allow a string value to be used to set the length.
  4987. 2007-09-21 Timothy Hatcher <timothy@apple.com>
  4988. Reviewed by Darin.
  4989. <rdar://problem/5491013> REGRESSION: -[WebView windowScriptObject] returns a dummy object or nil if a page hasn't loaded
  4990. Calling -[WebView windowScriptObject] before the page loads would give you nil. This behavior didn't match Tiger.
  4991. The API behavior in Tiger let you get the window script object once and keep ahold of it as long as you needed it.
  4992. The window object would remain valid even after page loads. This change restores the Tiger behavior.
  4993. <rdar://problem/5495790> NULL dereference crash beneath Bindings::RootObject::interpreter when saving Dashcode document
  4994. The changes to WebScriptObject's _isSafeScript call also fixed the crash in Dashcode.
  4995. * bindings/objc/WebScriptObject.mm:
  4996. (-[WebScriptObject _setOriginRootObject:andRootObject:]): New method used to update the the root objects,
  4997. so the WebScriptObject can still be used after a page load.
  4998. (-[WebScriptObject _isSafeScript]): Call [self _rootObject] instead of accessing the data member directly.
  4999. DOMNode has an override for the _rootObject method, and it can return 0 when _private->_rootObject
  5000. is non-zero. We would return YES here when it wasn't safe and later crash with my modified layout tests.
  5001. Checking _rootObject first prevents other calls sites from needing to check for a valid root object,
  5002. this fixed the Dashcode crash.
  5003. (-[WebScriptObject _imp]): Ditto.
  5004. * bindings/objc/WebScriptObjectPrivate.h: Add _setOriginRootObject:andRootObject:.
  5005. * loader/FrameLoader.cpp:
  5006. (WebCore::FrameLoader::clear): Call the renamed clearScriptObjects function.
  5007. (WebCore::FrameLoader::dispatchWindowObjectAvailable): Some gratuitous code cleanup.
  5008. * page/Frame.cpp:
  5009. (WebCore::Frame::clearScriptObjects): Renamed cleanupScriptObject to clearScriptObjects.
  5010. Call clearPlatformScriptObjects last so m_bindingRootObject is already NULL.
  5011. (WebCore::Frame::windowScriptNPObject): Hold a JSLock before accessing the window. This
  5012. change is unrelated to the bug, but should be fixed.
  5013. * page/mac/FrameMac.mm:
  5014. (WebCore::Frame::windowScriptObject): Return a script object even if the interpreter is NULL.
  5015. This resotres the Tiger behavior of always being able to access the window object.
  5016. (WebCore::Frame::clearPlatformScriptObjects): Keep the window script object around, and update
  5017. the root objects for the window script object.
  5018. * page/Frame.h: Rename cleanupScriptObject to clearScriptObjects.
  5019. * page/FramePrivate.h: Use a RetainPtr for m_windowScriptObject.
  5020. 2007-09-21 Mike Fenton <mike@staikos.net>
  5021. Reviewed by George Staikos.
  5022. Fix styled pen support by not clobbering QPen properties.
  5023. * html/CanvasStyle.cpp:
  5024. (WebCore::CanvasStyle::applyStrokeColor):
  5025. (WebCore::CanvasStyle::applyFillColor):
  5026. 2007-09-21 Oliver Hunt <oliver@apple.com>
  5027. Reviewed by Tristan and Darin
  5028. http://bugs.webkit.org/show_bug.cgi?id=15239
  5029. <rdar://problem/5491955> REGRESSION (r25547): With Hanin IME, one cannot input characters into forms (15239)
  5030. This problem was caused by the setComposition method failing to clear
  5031. the composition markers in the presence of an empty string. This would
  5032. result in the caret being locked within the 0 length bounds of the "composition"
  5033. and so preventing basic keyboard interaction.
  5034. * editing/Editor.cpp:
  5035. (WebCore::Editor::setComposition):
  5036. 2007-09-21 Adele Peterson <adele@apple.com>
  5037. Reviewed by Tristan.
  5038. Fix for <rdar://problem/5497346> "Check spelling when I click Send" crashes on stationery messages every time
  5039. No test. I wasn't able to find a way to get this to occur with Safari or DumpRenderTree.
  5040. * editing/Editor.cpp: (WebCore::Editor::advanceToNextMisspelling): Updated comment.
  5041. * editing/htmlediting.cpp:
  5042. (WebCore::firstEditablePositionAfterPositionInRoot): Only return the root position if its editable.
  5043. (WebCore::maxDeepOffset): Added nil check & assert.
  5044. 2007-09-21 Anders Carlsson <andersca@apple.com>
  5045. Reviewed by Steve.
  5046. <rdar://problem/5404339>
  5047. Site redirects continuosly, starving UI thread, causing app to hang.
  5048. Use GetQueueStatus to see if there are input messages in the queue that aren't being processed.
  5049. If so, use a low-priority timer instead of PostMessage.
  5050. * platform/win/SharedTimerWin.cpp:
  5051. (WebCore::setSharedTimerFireTime):
  5052. 2007-09-22 Darin Adler <darin@apple.com>
  5053. Reviewed by Anders.
  5054. - add QueryInterface capabilities to COMPtr
  5055. * platform/win/COMPtr.h:
  5056. (COMPtr::COMPtr): Added constructor that takes a Query tag and
  5057. does an appropriate QueryInterface.
  5058. (COMPtr::query): Added function to do a queryInterface.
  5059. (COMPtr::copyQueryInterfaceRef): Added private helper used by
  5060. both of the above. Note that when the query fails you get a 0,
  5061. which is the same thing you get if a 0 pointer is passed in.
  5062. * platform/win/FontCacheWin.cpp:
  5063. (WebCore::FontCache::getFontLinkInterface): Convert to using
  5064. the new query as a test case. Also eliminate the unnecessary
  5065. second global variable and use COMPtr objects rather than just
  5066. leaking references.
  5067. * platform/win/WCDataObject.h: Removed unneeded include and
  5068. using statements.
  5069. 2007-09-21 Anders Carlsson <andersca@apple.com>
  5070. Reviewed by Adam.
  5071. <rdar://problem/5494790>
  5072. clicking any link in the Flash regions at bananarepublic.com results in bad page
  5073. Don't replace the frame contents, the Mac version doesn't do this.
  5074. * plugins/win/PluginViewWin.cpp:
  5075. (WebCore::PluginViewWin::performRequest):
  5076. 2007-09-21 Anders Carlsson <andersca@apple.com>
  5077. Reviewed by Darin.
  5078. <rdar://problem/5496700>
  5079. Repro crash loading http://www.tivo.com/whatistivo/tivohd/index.html
  5080. Don't continue if the plug-in cancelled the stream.
  5081. * loader/win/NetscapePlugInStreamLoaderWin.cpp:
  5082. (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
  5083. 2007-09-21 Kevin Decker <kdecker@apple.com>
  5084. * platform/mac/SoftLinking.h: Build fix; added necessary #imports.
  5085. 2007-09-21 Kevin Decker <kdecker@apple.com>
  5086. Reviewed by Darin Adler.
  5087. * WebCore.xcodeproj/project.pbxproj: Added SoftLinking.h to the project.
  5088. * platform/mac/SoftLinking.h: Contains a new macro; useful in helping to lazily load frameworks.
  5089. 2007-09-20 Ada Chan <adachan@apple.com>
  5090. <rdar://problem/5477240> Regression: Footer is too high in print preview
  5091. Make computePageRectsForFrame() return the height of the page adjusted for margins.
  5092. Reviewed by Steve.
  5093. * bridge/win/FrameWin.cpp:
  5094. (WebCore::computePageRectsForFrame):
  5095. * bridge/win/FrameWin.h:
  5096. 2007-09-19 Kevin McCullough <kmccullough@apple.com>
  5097. Reviewed by Hyatt.
  5098. - <rdar://problem/5101991> Avril Lavigne music player comes up in a window with scrollbars
  5099. - Implementing missing scrollbar functionality to allow turning off scrollbars correctly.
  5100. * platform/ScrollView.h:
  5101. * platform/win/ScrollViewWin.cpp:
  5102. (WebCore::ScrollView::ScrollViewPrivate::setAllowsScrolling):
  5103. (WebCore::ScrollView::ScrollViewPrivate::allowsScrolling):
  5104. (WebCore::ScrollView::updateScrollbars):
  5105. (WebCore::ScrollView::setAllowsScrolling):
  5106. (WebCore::ScrollView::allowsScrolling):
  5107. 2007-09-20 Brady Eidson <beidson@apple.com>
  5108. Reviewed by Dave Hyatt
  5109. <rdar://problem/5245981> - No favicon shows up for cnet.com
  5110. CNet's favicon has two images in it - a 32x32 white square, and a 16x16 image that is their actual icon
  5111. Till now on Windows we've always gone straight for the first image in an icon for the favicon, now we
  5112. actually do proper size matching
  5113. * platform/graphics/BitmapImage.h:
  5114. * platform/graphics/Image.h:
  5115. (WebCore::Image::getHBITMAPOfSize):
  5116. (WebCore::Image::drawFrameMatchingSourceSize): Search through the frames of the image for the correct size
  5117. * platform/graphics/win/ImageWin.cpp:
  5118. (WebCore::BitmapImage::getHBITMAP):
  5119. (WebCore::BitmapImage::getHBITMAPOfSize):
  5120. (WebCore::BitmapImage::drawFrameMatchingSourceSize):
  5121. 2007-09-20 Steve Falkenburg <sfalken@apple.com>
  5122. Reviewed by Brady.
  5123. Call ascii() instead of utf8() from debug logging code to avoid threading
  5124. issues associated w/ converting to UTF8.
  5125. * loader/icon/IconDatabase.cpp:
  5126. (WebCore::makeAllDirectories):
  5127. (WebCore::IconDatabase::retainIconForPageURL):
  5128. (WebCore::IconDatabase::releaseIconForPageURL):
  5129. (WebCore::IconDatabase::setIconDataForIconURL):
  5130. (WebCore::IconDatabase::setIconURLForPageURL):
  5131. (WebCore::IconDatabase::loadDecisionForIconURL):
  5132. (WebCore::IconDatabase::getOrCreatePageURLRecord):
  5133. (WebCore::IconDatabase::iconDatabaseSyncThread):
  5134. (WebCore::IconDatabase::performOpenInitialization):
  5135. (WebCore::IconDatabase::checkIntegrity):
  5136. (WebCore::IconDatabase::performURLImport):
  5137. (WebCore::IconDatabase::readFromDatabase):
  5138. (WebCore::IconDatabase::writeToDatabase):
  5139. (WebCore::readySQLStatement):
  5140. (WebCore::IconDatabase::setIconURLForPageURLInSQLDatabase):
  5141. (WebCore::IconDatabase::setIconIDForPageURLInSQLDatabase):
  5142. (WebCore::IconDatabase::removePageURLFromSQLDatabase):
  5143. (WebCore::IconDatabase::getIconIDForIconURLFromSQLDatabase):
  5144. (WebCore::IconDatabase::addIconURLToSQLDatabase):
  5145. (WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
  5146. (WebCore::IconDatabase::removeIconFromSQLDatabase):
  5147. (WebCore::IconDatabase::writeIconSnapshotToSQLDatabase):
  5148. 2007-09-20 Mike Fenton <mike@staikos.net>
  5149. Reviewed by George Staikos.
  5150. Implement gradients and more of canvas for Qt. Style changes and some
  5151. of the stroking fixes by George.
  5152. * html/CanvasGradient.cpp:
  5153. (WebCore::CanvasGradient::CanvasGradient):
  5154. (WebCore::CanvasGradient::~CanvasGradient):
  5155. (WebCore::CanvasGradient::addColorStop):
  5156. (WebCore::CanvasGradient::platformShading):
  5157. * html/CanvasGradient.h:
  5158. * html/CanvasRenderingContext2D.cpp:
  5159. (WebCore::CanvasRenderingContext2D::fill):
  5160. (WebCore::CanvasRenderingContext2D::stroke):
  5161. (WebCore::CanvasRenderingContext2D::fillRect):
  5162. (WebCore::CanvasRenderingContext2D::applyFillPattern):
  5163. 2007-09-20 Rob Buis <buis@kde.org>
  5164. Reviewed by Mitz.
  5165. http://bugs.webkit.org/show_bug.cgi?id=15235
  5166. Options can not be removed from a Select element with OptGroup's using JavaScript
  5167. <rdar://problem/5494123>
  5168. Remove HTMLOptionElement children against the proper parent node.
  5169. * html/HTMLSelectElement.cpp:
  5170. (WebCore::HTMLSelectElement::remove):
  5171. 2007-09-19 John Sullivan <sullivan@apple.com>
  5172. Reviewed by Darin Adler.
  5173. - WebCore part of speculative fix for <rdar://problem/5490627>, about crashes constructing a
  5174. String using the values filled in by checkSpellingOfString()
  5175. * editing/Editor.cpp:
  5176. (WebCore::findFirstMisspellingInRange):
  5177. initialize out parameters the way we do elsewhere; add many assertions for improper results
  5178. from checkSpellingOfString(); don't create a String at all until we've checked all the ways
  5179. that checkSpellingOfString() results could indicate invalid string, even the unexpected ones;
  5180. as an optimization, don't construct a String at all when looping through to mark all instances.
  5181. 2007-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
  5182. Reviewed by Adam.
  5183. There is no need to have FTPDirectoryDocument stubs. We can
  5184. compile FTPDirectoryDocument.cpp and FTPDirectoryTokenizer.cpp
  5185. instead.
  5186. * WebCore.pro:
  5187. * platform/gdk/TemporaryLinkStubs.cpp:
  5188. * platform/qt/TemporaryLinkStubs.cpp:
  5189. 2007-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
  5190. Reviewed by Adam.
  5191. Remove includes that are not needed.
  5192. * platform/gdk/TemporaryLinkStubs.cpp:
  5193. 2007-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
  5194. Reviewed by Adam.
  5195. Move the Pasteboard stubs to PasteboardGdk.cpp.
  5196. * WebCore.pro:
  5197. * platform/gdk/PasteboardGdk.cpp: Added.
  5198. (WebCore::Pasteboard::generalPasteboard):
  5199. (WebCore::Pasteboard::writeSelection):
  5200. (WebCore::Pasteboard::writeURL):
  5201. (WebCore::Pasteboard::writeImage):
  5202. (WebCore::Pasteboard::clear):
  5203. (WebCore::Pasteboard::canSmartReplace):
  5204. (WebCore::Pasteboard::documentFragment):
  5205. (WebCore::Pasteboard::plainText):
  5206. (WebCore::Pasteboard::Pasteboard):
  5207. * platform/gdk/TemporaryLinkStubs.cpp:
  5208. 2007-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
  5209. Reviewed by Adam.
  5210. Move the Icon stubs to IconGdk.cpp
  5211. * WebCore.pro:
  5212. * platform/gdk/TemporaryLinkStubs.cpp:
  5213. * platform/graphics/gdk/IconGdk.cpp: Added.
  5214. (WebCore::Icon::Icon):
  5215. (WebCore::Icon::~Icon):
  5216. (WebCore::Icon::newIconForFile):
  5217. 2007-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
  5218. Reviewed by Adam.
  5219. Move the Font stubs to FontGdk.cpp
  5220. * platform/gdk/FontGdk.cpp:
  5221. (WebCore::Font::drawComplexText):
  5222. (WebCore::Font::floatWidthForComplexText):
  5223. (WebCore::Font::offsetForPositionForComplexText):
  5224. (WebCore::Font::selectionRectForComplexText):
  5225. * platform/gdk/TemporaryLinkStubs.cpp:
  5226. 2007-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
  5227. Reviewed by Adam.
  5228. Move the SearchPopupMenu stubs to SearchPopupMenuGdk.cpp
  5229. * WebCore.pro:
  5230. * platform/gdk/SearchPopupMenuGdk.cpp: Added.
  5231. (WebCore::SearchPopupMenu::SearchPopupMenu):
  5232. (WebCore::SearchPopupMenu::saveRecentSearches):
  5233. (WebCore::SearchPopupMenu::loadRecentSearches):
  5234. (WebCore::SearchPopupMenu::enabled):
  5235. * platform/gdk/TemporaryLinkStubs.cpp:
  5236. 2007-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
  5237. Reviewed by Adam.
  5238. Move the ContextMenu and ContextMenuItem stubs to
  5239. ContextMenuGdk.cpp and ContextMenuItemGdk.cpp.
  5240. * WebCore.pro:
  5241. * platform/gdk/ContextMenuGdk.cpp: Added.
  5242. (WebCore::ContextMenu::ContextMenu):
  5243. (WebCore::ContextMenu::~ContextMenu):
  5244. (WebCore::ContextMenu::appendItem):
  5245. (WebCore::ContextMenu::setPlatformDescription):
  5246. (WebCore::ContextMenu::platformDescription):
  5247. (WebCore::ContextMenu::releasePlatformDescription):
  5248. * platform/gdk/ContextMenuItemGdk.cpp: Added.
  5249. (WebCore::ContextMenuItem::ContextMenuItem):
  5250. (WebCore::ContextMenuItem::~ContextMenuItem):
  5251. (WebCore::ContextMenuItem::releasePlatformDescription):
  5252. (WebCore::ContextMenuItem::type):
  5253. (WebCore::ContextMenuItem::setType):
  5254. (WebCore::ContextMenuItem::action):
  5255. (WebCore::ContextMenuItem::setAction):
  5256. (WebCore::ContextMenuItem::title):
  5257. (WebCore::ContextMenuItem::setTitle):
  5258. (WebCore::ContextMenuItem::platformSubMenu):
  5259. (WebCore::ContextMenuItem::setSubMenu):
  5260. (WebCore::ContextMenuItem::setChecked):
  5261. * platform/gdk/TemporaryLinkStubs.cpp:
  5262. 2007-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
  5263. Reviewed by Adam.
  5264. Implement the WebCore::fileSize function using g_stat.
  5265. * platform/gdk/FileSystemGdk.cpp:
  5266. (WebCore::fileSize):
  5267. * platform/gdk/TemporaryLinkStubs.cpp:
  5268. 2007-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
  5269. Reviewed by Adam.
  5270. Move the ResourceHandle stubs from TemporaryLinkStubs
  5271. to the ResourceHandleCurl.cpp file. This affects the
  5272. Gtk+ and wx port as they share the curl implementation.
  5273. * platform/gdk/TemporaryLinkStubs.cpp:
  5274. * platform/network/curl/ResourceHandleCurl.cpp:
  5275. (WebCore::ResourceHandle::willLoadFromCache):
  5276. (WebCore::ResourceHandle::loadsBlocked):
  5277. * platform/wx/TemporaryLinkStubs.cpp:
  5278. 2007-09-17 Holger Hans Peter Freyther <zecke@selfish.org>
  5279. Reviewed by Mark.
  5280. Take http://bugs.webkit.org/show_bug.cgi?id=15221 into account
  5281. and change the variable names from nameSystem to systemName and
  5282. change the name of the function to stringByAdoptingFileSystemRepresentation.
  5283. * platform/gdk/FileChooserGdk.cpp:
  5284. (WebCore::stringByAdoptingFileSystemRepresentation):
  5285. (WebCore::FileChooser::basenameForWidth):
  5286. 2007-09-19 Sam Weinig <sam@webkit.org>
  5287. Reviewed by Geoff Garen.
  5288. Fix <rdar://problem/5492141> Assertion in isdigit() on windows Safari
  5289. Test: fast/css/hexColor-isDigit-assert.html
  5290. * platform/DeprecatedString.cpp:
  5291. (WebCore::isCharacterAllowedInBase): Check that the character is ascii
  5292. to avoid an assertions on Windows.
  5293. 2007-09-19 Anders Carlsson <andersca@apple.com>
  5294. Reviewed by Geoff.
  5295. <rdar://problem/5489879>
  5296. Combination of real player with high connection quality in selecting player makes Safari quit.
  5297. Prevent the Real Player plug-in from calling the window proc recursively.
  5298. * plugins/win/PluginViewWin.cpp:
  5299. (WebCore::PluginViewWin::wndProc):
  5300. (WebCore::PluginViewWin::setNPWindowRect):
  5301. (WebCore::PluginViewWin::determineQuirks):
  5302. (WebCore::PluginViewWin::PluginViewWin):
  5303. * plugins/win/PluginViewWin.h:
  5304. (WebCore::):
  5305. 2007-09-18 Adele Peterson <adele@apple.com>
  5306. Reviewed by Maciej.
  5307. Fix for <rdar://problem/5472062> -webkit-user-select: none makes selection difficult
  5308. and for <rdar://problem/5472056> REGRESSION: Cannot type into edit fields on a form (sccsheriff.org)
  5309. Tests:
  5310. This fix has a few steps:
  5311. 1) Removes the ignore value for the -webkit-user-select property. We now decide when to prevent selection from starting by calling canStartSelection on the node.
  5312. 2) Implements canStartSelection which returns false for all elements that used to have -webkit-user-select:ignore set, true for content editable nodes,
  5313. and walks up the tree to ask the parent before allowing selection to be started on any other nodes.
  5314. 3) We used to disallow selection from starting within -webkit-user-select:none blocks, but now we only use canStartSelection for that. This will allow easy selections
  5315. in cases like iChat where there's a mix of selectable and non-selectable content.
  5316. 4) Makes -webkit-user-select inherited. After removing the "ignore" value, -webkit-user-select would behave like it was inherited anyways since we already allowed the text value to override the none value.
  5317. * css/html4.css: Removed all usage of -webkit-user-select: ignore. This is now handled internally with canStartSelection().
  5318. Now -webkit-user-select won't be unintentionally overridden by nodes that don't want to allow selection to be started, but do want to honor the -webkit-user-select to
  5319. determine whether or not selection is allowed at all.
  5320. * editing/SelectionController.cpp: (WebCore::SelectionController::selectAll):
  5321. Don't try to determine whether selection is allowed inside the root node here. VisiblePosition and Selection creation will keep Selection endpoints out of -webkit-user-select:none regions.
  5322. * dom/Node.h:
  5323. * dom/Node.cpp: (WebCore::Node::canStartSelection): Added. Always allows selection to be started in a content editable node. If there's a parent, ask the parent if starting a selection is allowed.
  5324. If there's no parent, default to allowing selection.
  5325. * html/HTMLAnchorElement.h:
  5326. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::canStartSelection): Added. If its not a link, then calls the base class. Disallows selection for non-editable links.
  5327. Allows selection for editable links.
  5328. This logic used to be done in CSSStyleSelector by changing the user-select property.
  5329. * html/HTMLButtonElement.h: (WebCore::HTMLButtonElement::canStartSelection): Added. Disallows selection from starting in buttons.
  5330. * html/HTMLImageElement.h: (WebCore::HTMLImageElement::canStartSelection): Added. Disallows selection from starting in images.
  5331. * html/HTMLInputElement.h:
  5332. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::canStartSelection): Added. Disallows selection from anything that's not a text field. Text fields call up to the base class.
  5333. When they're editable, text controls will always be selectable because of the case for content editable content. Otherwise, they'll respect their parent element's decision about starting a selection.
  5334. * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::canStartSelection): Added. Disallows selection from starting in popup buttons.
  5335. * page/EventHandler.cpp:
  5336. (WebCore::EventHandler::selectClosestWordFromMouseEvent): Use canMouseDownStartSelect instead of the ambiguously named shouldSelect().
  5337. (WebCore::EventHandler::handleMousePressEventTripleClick): ditto.
  5338. (WebCore::EventHandler::handleMousePressEventSingleClick): ditto.
  5339. (WebCore::EventHandler::updateSelectionForMouseDrag): Use canMouseDragExtendSelect.
  5340. (WebCore::EventHandler::selectCursor): Paint an ibeam in any region that allows you to click to create a selection.
  5341. (WebCore::EventHandler::canMouseDownStartSelect): Now fires the selectStart event, and calls canStartSelection instead of checking the user-select property.
  5342. (WebCore::EventHandler::canMouseDragExtendSelect): This is identical to canMouseDownStartSelect because of 12823, even though it seems strange that we would fire the selectStart event here.
  5343. * page/EventHandler.h:
  5344. * page/FocusController.cpp: (WebCore::clearSelectionIfNeeded): Calls canStartSelection instead of checking the user-select property to decide when to prevent selection creation.
  5345. * rendering/RenderObject.cpp: (WebCore::RenderObject::draggableNode): ditto.
  5346. * rendering/RenderObject.h: Removed helper methods that are no longer needed.
  5347. * rendering/RenderStyle.h: Made userSelect inherited. After removing the "ignore" value, -webkit-user-select would behave like it was inherited
  5348. anyways since we already allowed the text value to override the none value.
  5349. Removed the SELECT_AUTO and SELECT_IGNORE values since they're no longer used.
  5350. (WebCore::):
  5351. (WebCore::RenderStyle::userSelect):
  5352. (WebCore::RenderStyle::setUserSelect):
  5353. (WebCore::RenderStyle::initialUserSelect):
  5354. * rendering/RenderStyle.cpp:
  5355. (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
  5356. (WebCore::StyleRareNonInheritedData::operator==):
  5357. (WebCore::StyleRareInheritedData::StyleRareInheritedData):
  5358. (WebCore::StyleRareInheritedData::operator==):
  5359. (WebCore::RenderStyle::diff):
  5360. * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Remove case for SELECT_AUTO and SELECT_IGNORE
  5361. * css/CSSStyleSelector.cpp:
  5362. (WebCore::CSSStyleSelector::adjustRenderStyle): Remove adjustment for links. This is now handled in HTMLAnchorElement::canStartSelection.
  5363. (WebCore::CSSStyleSelector::applyProperty): Map CSS_VAL_AUTO to SELECT_TEXT. Remove CSS_VAL_IGNORE.
  5364. 2007-09-18 Timothy Hatcher <timothy@apple.com>
  5365. Reviewed by Darin.
  5366. <rdar://problem/5478250> REGRESSION: After pasting text copied from Mail subject and typing return, the cursor disappears because of negative left margin
  5367. When pasting text from the Mail subject line, the RTF pasteboard contains text that has a first line negative indent along with a
  5368. paragraph indent that has a counteracting positive indent. This results in the first line being flush left justified, and the remaining
  5369. wrapped lines being indented. When this is converted to a DOM fragment, AppKit makes a block element with a margin-left and a negative
  5370. text-indent that matches the RTF. So far this is all correct behavior.
  5371. When this content is pasted on the line of an existing paragraph that has content, ReplaceSelectionCommand will decided to merge the paragraphs.
  5372. This will convert the block element to a style span that has all inherited style properties. These inherited properties will still contain block
  5373. properties that have no affect on inline elements. These block properties will hang around on the style span and will get cloned to new block
  5374. elements if the user hit return on that line. The new block elements would then have the text-indent but not the margin-left, so the text would be
  5375. hidden off the left edge of the page.
  5376. In the end, we should never hang on to block-only properties in our style spans. This cuts out meaningless properties and prevents properties
  5377. from magically affecting blocks later if the style is cloned for a new block element during a future editing operation.
  5378. * editing/ReplaceSelectionCommand.cpp:
  5379. (WebCore::ReplaceSelectionCommand::removeRedundantStyles): Remove any inherited block properties that are now in the span's style.
  5380. * editing/markup.cpp:
  5381. (WebCore::createMarkup): Ditto.
  5382. 2007-09-18 Dave Hyatt <hyatt@apple.com>
  5383. Land a UnicodeRange helper class (ported from Mozilla) that we are going to use to prepare for making
  5384. language-sensitive fallback choices for fonts.
  5385. Reviewed by olliej
  5386. * WebCore.vcproj/WebCore.vcproj:
  5387. * platform/UnicodeRange.cpp: Added.
  5388. (WebCore::):
  5389. (WebCore::findCharUnicodeRange):
  5390. (WebCore::langGroupFromUnicodeRange):
  5391. * platform/UnicodeRange.h: Added.
  5392. 2007-09-18 Dave Hyatt <hyatt@apple.com>
  5393. Fix a bug in my previous patch. Make sure to select the old font back into the HDC and to also release the HDC.
  5394. Reviewed by aroben
  5395. * platform/win/FontCacheWin.cpp:
  5396. (WebCore::FontCache::getFontDataForCharacters):
  5397. 2007-09-18 Sam Weinig <sam@webkit.org>
  5398. Reviewed by Darin.
  5399. Patch for <rdar://problem/5488478> Safari crashes when passing null to Range.insertNode()
  5400. Test: fast/dom/Range-insertNode-crash.html
  5401. * dom/Range.cpp:
  5402. (WebCore::Range::insertNode): Null check the passed in node to insert.
  5403. 2007-09-18 Mike Fenton <mike@staikos.net>
  5404. Reviewed by George Staikos.
  5405. Retain the pen properties when changing one aspect of the pen.
  5406. * html/CanvasStyle.cpp:
  5407. (WebCore::CanvasStyle::applyStrokeColor):
  5408. 2007-09-18 Mike Fenton <mike@staikos.net>
  5409. Reviewed by George Staikos.
  5410. Make <canvas> work in more cases by restarting the painter after we
  5411. finish painting, and restoring the pen and opacity.
  5412. * html/HTMLCanvasElement.cpp:
  5413. (WebCore::HTMLCanvasElement::paint):
  5414. 2007-09-18 Mitz Pettel <mitz@webkit.org>
  5415. Reviewed by Darin.
  5416. - fix http://bugs.webkit.org/show_bug.cgi?id=15169
  5417. Freeze on Google maps using the "Dig a hole" tool
  5418. <rdar://problem/5477414>
  5419. Test: fast/dom/CSSStyleDeclaration-empty-string-property.html
  5420. * bindings/js/JSCSSStyleDeclarationCustom.cpp:
  5421. (WebCore::cssPropertyName): Added an early return if the property name
  5422. is the empty string, thus avoiding a loop that is not prepared for that
  5423. case.
  5424. 2007-09-19 Darin Adler <darin@apple.com>
  5425. Reviewed by Adam.
  5426. - fix <rdar://problem/5415734> <select> draws incorrectly if size of menu options
  5427. is changed after it pops up once
  5428. * platform/win/PopupMenuWin.cpp:
  5429. (WebCore::PopupMenu::PopupMenu): Removed unnecessary initialization of IntRect.
  5430. (WebCore::PopupMenu::show): Check that the clientRect is empty instead of checking
  5431. the entire windowRect -- this fixes a bug where we pop up a tiny 2-pixel high black
  5432. box when you click on an empty menu.
  5433. (WebCore::PopupMenu::visibleItems): Base the number of items on the client rect
  5434. instead of the window rect. Rounding down means this would have worked anyway, but
  5435. it's more correct to do it this way.
  5436. (WebCore::PopupMenu::paint): Deallocate the bitmap so it gets reallocated if it
  5437. has the wrong width or height (or if GetObject returns false, which should not
  5438. happen in practice).
  5439. 2007-09-18 David Harrison <harrison@apple.com>
  5440. Reviewed by Darin.
  5441. <rdar://problem/5486974> REGRESSION(r25373): 1/4 second to doubleclick word in GMail when using Kotoeri IM, also slow in other IMs (15163)
  5442. Updated tests:
  5443. * fast/dom/Window/window-xy-properties-expected.txt:
  5444. * fast/dom/plugin-attributes-enumeration-expected.txt:
  5445. * fast/events/onerror-bubbling-expected.txt:
  5446. * fast/events/related-target-expected.txt:
  5447. * fast/forms/select-namedItem-expected.txt:
  5448. * fast/table/incomplete-table-in-fragment-2-expected.txt:
  5449. * fast/table/incomplete-table-in-fragment-hang-expected.txt:
  5450. * fast/table/large-rowspan-crash-expected.txt:
  5451. * plugins/embed-attributes-setting-expected.txt:
  5452. * editing/TextIterator.cpp:
  5453. (WebCore::TextIterator::shouldRepresentNodeOffsetZero):
  5454. Avoid VisiblePosition check if the current node is a descendant
  5455. of the start container and the start offset was 0. In that case
  5456. we already had enough context to correctly decide whether to emit
  5457. a newline after a preceding block. We chose not to emit
  5458. (m_haveEmitted is false), so don't second guess that.
  5459. (WebCore::TextIterator::exitNode):
  5460. Changed some comments.
  5461. 2007-09-17 Geoffrey Garen <ggaren@apple.com>
  5462. Reviewed by Darin Adler.
  5463. Speculative fix for <rdar://problem/5479443> REGRESSION: Hang due to
  5464. infinite JS recursion on close @ engadget.com (onunload-based ad)
  5465. If page is NULL, shouldInterruptScript now returns true, so you can't
  5466. get stuck in a state in which a script executes forever without putting
  5467. up a UI to ask if it should stop.
  5468. * bindings/js/kjs_binding.cpp:
  5469. (KJS::ScriptInterpreter::shouldInterruptScript):
  5470. 2007-09-17 Dave Hyatt <hyatt@apple.com>
  5471. Fix for bug 14743, missing glyphs on many international sites because of MLang's tiny cache.
  5472. Bypass Mlang's cache entirely. Get the mapped font from MLang, obtain the font name, and then feed
  5473. the name back into our own system so that it gets created and cached again without MLang being involved.
  5474. Then free up the font obtained from MLang immediately so that its cache just remains empty.
  5475. Reviewed by aroben
  5476. * platform/FontData.h:
  5477. (WebCore::FontData::isSystemFont):
  5478. * platform/win/FontCacheWin.cpp:
  5479. (WebCore::FontCache::getFontDataForCharacters):
  5480. * platform/win/FontDataWin.cpp:
  5481. (WebCore::FontData::platformInit):
  5482. (WebCore::FontData::platformDestroy):
  5483. * platform/win/UniscribeController.cpp:
  5484. (WebCore::UniscribeController::shapeAndPlaceItem):
  5485. 2007-09-17 Adam Roben <aroben@apple.com>
  5486. Fix <rdar://5423441> Should get focus ring color from SafariTheme
  5487. Reviewed by Hyatt.
  5488. No regression test possible.
  5489. * WebCore.vcproj/WebCore.vcproj: Added ColorSafari.cpp.
  5490. * platform/graphics/win/ColorSafari.cpp: Added.
  5491. (WebCore::makeRGBAFromCGColor): Added.
  5492. (WebCore::focusRingColor): Added. Gets the focus ring color from
  5493. SafariTheme if SafariTheme has support for it.
  5494. (WebCore::setFocusRingColorChangeFunction): Added.
  5495. * platform/win/TemporaryLinkStubs.cpp: Removed focus ring color
  5496. functions.
  5497. 2007-09-17 Anders Carlsson <andersca@apple.com>
  5498. Fix Windows build.
  5499. * WebCore.vcproj/WebCore.vcproj:
  5500. * loader/NetscapePlugInStreamLoader.h:
  5501. 2007-09-17 Anders Carlsson <andersca@apple.com>
  5502. Fix Mac build.
  5503. * loader/NetscapePlugInStreamLoader.cpp:
  5504. * loader/NetscapePlugInStreamLoader.h:
  5505. * loader/win/NetscapePlugInStreamLoaderWin.cpp: Copied from loader/NetscapePlugInStreamLoader.cpp.
  5506. 2007-09-17 Anders Carlsson <andersca@apple.com>
  5507. Reviewed by Adam.
  5508. <rdar://problem/5483346>
  5509. crash at vw.com WebCore::PluginViewWin::disconnectStream.
  5510. The following events would lead to this crash:
  5511. 1. a plug-in stream finishes loading and calls NPP_DestroyStream.
  5512. 2. the DestroyStream handler calls NPN_Evaluate, submitting a form through JavaScript.
  5513. 3. A new page is going to be loaded and DocumentLoader::stopLoading is called.
  5514. 4. DocumentLoader::stopLoading will stop all loader, including the one that is done loading!
  5515. The fix is to port NetscapePluginStreamLoader over from the Mac code and use it instead. This fixes the crash
  5516. because it disassociates the stream loader with the document loader _before_ calling NPP_DestroyStream, whereas
  5517. SubresourceLoader does this _after_ calling NPP_DestroyStream.
  5518. * loader/NetscapePlugInStreamLoader.cpp:
  5519. (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
  5520. (WebCore::NetscapePlugInStreamLoader::~NetscapePlugInStreamLoader):
  5521. (WebCore::NetscapePlugInStreamLoader::create):
  5522. (WebCore::NetscapePlugInStreamLoader::isDone):
  5523. (WebCore::NetscapePlugInStreamLoader::releaseResources):
  5524. (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
  5525. (WebCore::NetscapePlugInStreamLoader::didReceiveData):
  5526. (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
  5527. (WebCore::NetscapePlugInStreamLoader::didFail):
  5528. (WebCore::NetscapePlugInStreamLoader::didCancel):
  5529. * loader/NetscapePlugInStreamLoader.h:
  5530. (WebCore::NetscapePlugInStreamLoaderClient::didFinishLoading):
  5531. * plugins/win/PluginStreamWin.cpp:
  5532. (WebCore::PluginStreamWin::start):
  5533. (WebCore::PluginStreamWin::didReceiveResponse):
  5534. (WebCore::PluginStreamWin::didReceiveData):
  5535. (WebCore::PluginStreamWin::didFail):
  5536. (WebCore::PluginStreamWin::didFinishLoading):
  5537. * plugins/win/PluginStreamWin.h:
  5538. * plugins/win/PluginViewWin.cpp:
  5539. (WebCore::PluginViewWin::load):
  5540. 2007-09-17 Anders Carlsson <andersca@apple.com>
  5541. Reviewed by Adam.
  5542. <rdar://problem/5483839>
  5543. Crash loading http://www.microsoft.com if Silverlight 1.0 is installed.
  5544. Work around a problem in our NPRuntime implementation by never unloading the silverlight plug-in dll.
  5545. * plugins/win/PluginViewWin.cpp:
  5546. (WebCore::PluginViewWin::~PluginViewWin):
  5547. (WebCore::PluginViewWin::determineQuirks):
  5548. * plugins/win/PluginViewWin.h:
  5549. (WebCore::):
  5550. 2007-09-17 Brady Eidson <beidson@apple.com>
  5551. Reviewed by John Sullivan
  5552. Fix for http://bugs.webkit.org/show_bug.cgi?id=15178
  5553. and
  5554. <rdar://problem/5474001>
  5555. The stress test proves that this was an overzealous ASSERT. It is very possible to mark an icon
  5556. for addition to the on-disk database and then mark it for removal before it is ever written out.
  5557. This is not an error and was already handled gracefully
  5558. * loader/icon/IconDatabase.cpp:
  5559. (WebCore::IconDatabase::removeIconFromSQLDatabase): Don't ASSERT of log if the icon wasn't on disk
  5560. 2007-09-17 Brady Eidson <beidson@apple.com>
  5561. Reviewed by Oliver
  5562. <rdar://problem/5487048> - ASSERT in stress test in IconDatabase
  5563. If a PageURLRecord went away, it never clears its URL from the IconRecord it retained.
  5564. * loader/icon/PageURLRecord.cpp:
  5565. (WebCore::PageURLRecord::~PageURLRecord): Set the icon record to 0, clearing the page url
  5566. * loader/icon/PageURLRecord.h: Add the destructor
  5567. 2007-09-17 Antti Koivisto <antti@apple.com>
  5568. Reviewed by Darin.
  5569. Fix <rdar://problem/5480050>
  5570. Leopard9A551 with Dashcode 112: Dashcode crash when dragging image into canvas.
  5571. If @import stylesheet was modified through CSS DOM style selector would not get updated. This
  5572. could lead to crashes.
  5573. Test: fast/css/import-style-update.html
  5574. * css/CSSStyleSheet.cpp:
  5575. (WebCore::CSSStyleSheet::styleSheetChanged):
  5576. 2007-09-17 Anders Carlsson <andersca@apple.com>
  5577. Reviewed by Adam.
  5578. <rdar://problem/5421997>
  5579. http://bugs.webkit.org/show_bug.cgi?id=14247
  5580. Display problem with Flash - image does not stop changing
  5581. Port the manual load code over from the Mac version.
  5582. * plugins/win/PluginDatabaseWin.cpp:
  5583. (WebCore::PluginDatabaseWin::createPluginView):
  5584. * plugins/win/PluginDatabaseWin.h:
  5585. Add load manually parameter.
  5586. * plugins/win/PluginStreamWin.cpp:
  5587. (WebCore::PluginStreamWin::stop):
  5588. If we're loading manually, cancel the main resource load.
  5589. (WebCore::PluginStreamWin::destroyStream):
  5590. Don't disconnect the stream if we're loading manually.
  5591. * plugins/win/PluginViewWin.cpp:
  5592. (WebCore::PluginViewWin::setFrameGeometry):
  5593. Always call updateWindow()
  5594. (WebCore::PluginViewWin::PluginViewWin):
  5595. Initialize loadManually.
  5596. (WebCore::PluginViewWin::init):
  5597. Don't set the width and height of the window here since it will make the plug-in HWND show briefly
  5598. before it's been positioned.
  5599. (WebCore::PluginViewWin::didReceiveResponse):
  5600. Create the manual stream.
  5601. (WebCore::PluginViewWin::didReceiveData):
  5602. (WebCore::PluginViewWin::didFinishLoading):
  5603. (WebCore::PluginViewWin::didFail):
  5604. Call through to the manual stream.
  5605. * plugins/win/PluginViewWin.h:
  5606. 2007-09-16 Sam Weinig <sam@webkit.org>
  5607. Reviewed by Maciej.
  5608. Fix for http://bugs.webkit.org/show_bug.cgi?id=14693
  5609. document.width/height doesn't force layout
  5610. Test: fast/dom/document-width-height-force-layout.html
  5611. * html/HTMLDocument.cpp:
  5612. (WebCore::HTMLDocument::width): Force layout.
  5613. (WebCore::HTMLDocument::height): ditto.
  5614. * html/HTMLDocument.h:
  5615. 2007-09-15 Holger Hans Peter Freyther <zecke@selfish.org>
  5616. Reviewed by Mark.
  5617. Convert the filenames from WebCore::String to the filesystem encoding
  5618. and vice versa using g_filename_{from,to}_utf8 functions. Also add the needed NULL
  5619. checks for the return values where glib and gtk+ can return NULL.
  5620. * platform/gdk/FileChooserGdk.cpp:
  5621. (WebCore::convertToStringByAdoptingTheFilesystemRepresentation):
  5622. (WebCore::FileChooser::openFileChooser):
  5623. (WebCore::FileChooser::basenameForWidth):
  5624. 2007-09-15 Holger Hans Peter Freyther <zecke@selfish.org>
  5625. Reviewed by Mark.
  5626. Use the new WebCore::String::fromUTF8 function to create
  5627. the labels.
  5628. * platform/gdk/LocalizedStringsGdk.cpp:
  5629. (WebCore::submitButtonDefaultLabel):
  5630. (WebCore::inputElementAltText):
  5631. (WebCore::resetButtonDefaultLabel):
  5632. (WebCore::searchableIndexIntroduction):
  5633. (WebCore::fileButtonChooseFileLabel):
  5634. (WebCore::fileButtonNoFileSelectedLabel):
  5635. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  5636. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  5637. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  5638. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  5639. (WebCore::contextMenuItemTagDownloadImageToDisk):
  5640. (WebCore::contextMenuItemTagCopyImageToClipboard):
  5641. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  5642. (WebCore::contextMenuItemTagCopy):
  5643. (WebCore::contextMenuItemTagGoBack):
  5644. (WebCore::contextMenuItemTagGoForward):
  5645. (WebCore::contextMenuItemTagStop):
  5646. (WebCore::contextMenuItemTagReload):
  5647. (WebCore::contextMenuItemTagCut):
  5648. (WebCore::contextMenuItemTagPaste):
  5649. (WebCore::contextMenuItemTagNoGuessesFound):
  5650. (WebCore::contextMenuItemTagIgnoreSpelling):
  5651. (WebCore::contextMenuItemTagLearnSpelling):
  5652. (WebCore::contextMenuItemTagSearchWeb):
  5653. (WebCore::contextMenuItemTagLookUpInDictionary):
  5654. (WebCore::contextMenuItemTagOpenLink):
  5655. (WebCore::contextMenuItemTagIgnoreGrammar):
  5656. (WebCore::contextMenuItemTagSpellingMenu):
  5657. (WebCore::contextMenuItemTagShowSpellingPanel):
  5658. (WebCore::contextMenuItemTagCheckSpelling):
  5659. (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
  5660. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  5661. (WebCore::contextMenuItemTagFontMenu):
  5662. (WebCore::contextMenuItemTagBold):
  5663. (WebCore::contextMenuItemTagItalic):
  5664. (WebCore::contextMenuItemTagUnderline):
  5665. (WebCore::contextMenuItemTagOutline):
  5666. (WebCore::contextMenuItemTagWritingDirectionMenu):
  5667. (WebCore::contextMenuItemTagDefaultDirection):
  5668. (WebCore::contextMenuItemTagLeftToRight):
  5669. (WebCore::contextMenuItemTagRightToLeft):
  5670. (WebCore::contextMenuItemTagInspectElement):
  5671. (WebCore::searchMenuNoRecentSearchesText):
  5672. (WebCore::searchMenuRecentSearchesText):
  5673. (WebCore::searchMenuClearRecentSearchesText):
  5674. 2007-09-15 Holger Hans Peter Freyther <zecke@selfish.org>
  5675. Reviewed by Mark.
  5676. Add WebCore::String::fromUTF8 to convert from UTF-8
  5677. to a WebCore::String. This is meant to be used by
  5678. the Gtk+ port and the signature and implementation
  5679. is similiar to the one of DeprecatedString.
  5680. * platform/PlatformString.h:
  5681. * platform/String.cpp:
  5682. (WebCore::String::fromUTF8):
  5683. 2007-09-13 Holger Hans Peter Freyther <zecke@selfish.org>
  5684. Reviewed by Anders.
  5685. Implement the fileExists and deleteFile functions
  5686. using glib.
  5687. * WebCore.pro:
  5688. * platform/gdk/FileSystemGdk.cpp: Added.
  5689. (WebCore::fileExists):
  5690. * platform/gdk/TemporaryLinkStubs.cpp:
  5691. 2007-09-16 David Harrison <harrison@apple.com>
  5692. Reviewed by Darin.
  5693. <rdar://problem/5472125> REGRESSION (9A535-9A548): No VO cursor shown when navigating in a mail message body
  5694. The problem was that the visible units code was mishandling non-editable content, generating null
  5695. VisiblePositions instead of the actual boundary VisiblePositions.
  5696. Updated tests:
  5697. * fast/dom/Window/window-xy-properties-expected.txt:
  5698. * fast/dom/plugin-attributes-enumeration-expected.txt:
  5699. * fast/events/onerror-bubbling-expected.txt:
  5700. * fast/events/related-target-expected.txt:
  5701. * fast/forms/select-namedItem-expected.txt:
  5702. * fast/table/incomplete-table-in-fragment-2-expected.txt:
  5703. * fast/table/incomplete-table-in-fragment-hang-expected.txt:
  5704. * fast/table/large-rowspan-crash-expected.txt:
  5705. * plugins/embed-attributes-setting-expected.txt:
  5706. Source Changes:
  5707. * editing/VisiblePosition.cpp:
  5708. (WebCore::VisiblePosition::next):
  5709. (WebCore::VisiblePosition::previous):
  5710. (WebCore::VisiblePosition::honorEditableBoundaryAtOrBefore):
  5711. (WebCore::VisiblePosition::honorEditableBoundaryAtOrAfter):
  5712. Rename firstEditablePositionAtOrAfter to honorEditableBoundaryAtOrAfter.
  5713. Rename firstEditablePositionAtOrBefore to honorEditableBoundaryAtOrBefore.
  5714. Changed these two functions to handle non-editable positions.
  5715. * editing/VisiblePosition.h:
  5716. * editing/visible_units.cpp:
  5717. (WebCore::previousWordPosition):
  5718. (WebCore::nextWordPosition):
  5719. (WebCore::positionAvoidingFirstPositionInTable):
  5720. (WebCore::startPositionForLine):
  5721. (WebCore::startOfLine):
  5722. (WebCore::endOfLine):
  5723. (WebCore::previousSentencePosition):
  5724. (WebCore::nextSentencePosition):
  5725. Rename firstEditablePositionAtOrAfter to honorEditableBoundaryAtOrAfter.
  5726. Rename firstEditablePositionAtOrBefore to honorEditableBoundaryAtOrBefore.
  5727. Also, startOfLine() now calls positionAvoidingFirstPositionInTable() in the empty block early return case.
  5728. positionAvoidingFirstPositionInTable() was the logic startOfLine() used in the normal case. Now in a reusable function.
  5729. 2007-09-14 Oliver Hunt <oliver@apple.com>
  5730. Reviewed by Adam.
  5731. Mac doesn't have any kind of not implemented macro, so we'll actually implement
  5732. fileSize.
  5733. * platform/mac/FileSystemMac.mm:
  5734. (WebCore::fileSize):
  5735. 2007-09-14 Timothy Hatcher <timothy@apple.com>
  5736. Initialize m_dialogArguments to 0. Fixes the newly crashing layout tests.
  5737. * bindings/js/kjs_window.cpp:
  5738. (KJS::WindowPrivate::WindowPrivate):
  5739. 2007-09-14 Oliver Hunt <oliver@apple.com>
  5740. Reviewed by Brady, John H.
  5741. <rdar://problem/5483632> File system operation wrappers are unimplemented on windows
  5742. Implement Windows versions of fileExists and deleteFile.
  5743. Also corrects fileSize to use a 64-bit version of stat.
  5744. * platform/win/FileSystemWin.cpp:
  5745. (WebCore::fileSize):
  5746. Renamed argument to be more consistent with others.
  5747. And converted to _stat32i64 to allow 64-bit filesizes
  5748. (WebCore::fileExists):
  5749. (WebCore::deleteFile):
  5750. * platform/win/TemporaryLinkStubs.cpp:
  5751. 2007-09-14 Oliver Hunt <oliver@apple.com>
  5752. Reviewed by Sam and Geoff.
  5753. <rdar://problem/5333272> Cannot upload files when path contains
  5754. non-ascii/multibyte characters
  5755. We can't use _stat to determine file size on Windows as it may not
  5756. correctly handle multibyte characters, so we have to use _wstat.
  5757. In deference to the fact that we may one day use the FormDataStreamCFNet.cpp
  5758. on Mac i've wrapped the call to _wstat with a generic fileSize
  5759. method in FileSystem.h
  5760. * WebCore.vcproj/WebCore.vcproj:
  5761. * platform/FileSystem.h:
  5762. * platform/network/cf/FormDataStreamCFNet.cpp:
  5763. * platform/win/FileSystemWin.cpp: Added.
  5764. (WebCore::setHTTPBody):
  5765. * platform/gdk/TemporaryLinkStubs.cpp:
  5766. * platform/mac/FileSystemMac.mm:
  5767. (WebCore::fileSize):
  5768. * platform/qt/TemporaryLinkStubs.cpp:
  5769. 2007-09-14 Timothy Hatcher <timothy@apple.com>
  5770. Reviewed by Sam.
  5771. <rdar://problem/5472970> REGRESSION (r24276): TinyMCE popups show an empty window with no content
  5772. Accessing the document of a window before the load finished would cause the window
  5773. object to hold onto the initial empty document, and never switch over to the real document
  5774. once the load finished. This regression was caused by r24276 which added a check to prevent
  5775. clearing the window object when the load finished. The absence of this clear allowed the
  5776. dialogArguments set with showModalDialog to persist on the window after the load. However,
  5777. not clearing the window would keep other properties (and the empty document object) around.
  5778. So the fix is to store away the dialog arguments that were passed to showModalDialog and
  5779. put them back on the window object in the dialogArguments property each time
  5780. the window is cleared.
  5781. * bindings/js/kjs_window.cpp:
  5782. (KJS::createWindow): No longer put dialogArguments on the window here.
  5783. (KJS::showModalDialog): Put dialogArguments on the window and call
  5784. setDialogArgumentsAndReturnValueSlot to remember the arguments.
  5785. (KJS::Window::clear): Put m_dialogArguments back on the window as dialogArguments.
  5786. (KJS::WindowFunc::callAsFunction): Call the new setDialogArgumentsAndReturnValue.
  5787. (KJS::Window::setDialogArgumentsAndReturnValue): Store the arguments in m_dialogArguments.
  5788. * bindings/js/kjs_window.h: Rename setReturnValueSlot to setDialogArgumentsAndReturnValueSlot.
  5789. * manual-tests/modal-dialog-arguments.html: Confirmed that this test still passes.
  5790. Reverted r24276 which was all the changes in FrameLoader.cpp and FrameLoader.h.
  5791. * loader/FrameLoader.cpp:
  5792. (WebCore::FrameLoader::FrameLoader): Remove m_shouldClearWindowProperties.
  5793. (WebCore::FrameLoader::createWindow): Remove the call to setShouldClearWindowProperties.
  5794. (WebCore::FrameLoader::clear): No longer check m_shouldClearWindowProperties, clear the
  5795. window whenever clearWindowProperties is set.
  5796. (WebCore::FrameLoader::begin): Remove m_shouldClearWindowProperties.
  5797. (WebCore::FrameLoader::open): Ditto.
  5798. * loader/FrameLoader.h: Remove m_shouldClearWindowProperties.
  5799. 2007-09-14 Brady Eidson <beidson@apple.com>
  5800. How about a build fix that works on *all* platforms?
  5801. * platform/Threading.h:
  5802. (WebCore::initializeThreading):
  5803. 2007-09-14 Brady Eidson <beidson@apple.com>
  5804. Roll out my previous build fix and just make the stupid thing inline
  5805. (I knew there was something easier but oh boy, no coffee yet... weinig?)
  5806. 2007-09-14 Brady Eidson <beidson@apple.com>
  5807. Rubberstamped by Mark Rowe
  5808. Add the logging channel I just created to the initialize list on Mac
  5809. * platform/mac/LoggingMac.mm:
  5810. (WebCore::InitializeLoggingChannelsIfNecessary):
  5811. 2007-09-14 Brady Eidson <beidson@apple.com>
  5812. Build fix
  5813. That method can't go in the header, apparently
  5814. * platform/Threading.h:
  5815. * platform/gdk/TemporaryLinkStubs.cpp:
  5816. (WebCore::initializeThreading):
  5817. * platform/mac/Threading.mm:
  5818. (WebCore::initializeThreading):
  5819. * platform/qt/TemporaryLinkStubs.cpp:
  5820. (WebCore::initializeThreading):
  5821. 2007-09-14 Brady Eidson <beidson@apple.com>
  5822. Reviewed by Darin
  5823. -Add callOnMainThread() implementation to Windows
  5824. * WebCore.vcproj/WebCore.vcproj:
  5825. * loader/icon/IconDatabase.cpp:
  5826. (WebCore::IconDatabase::open): Call initializeThreading() from the main thread before kicking off the secondary thread
  5827. * platform/Logging.cpp: Added Threading logging channel
  5828. (WebCore::):
  5829. * platform/Logging.h: Ditto
  5830. * platform/Threading.h:
  5831. (WebCore::initializeThreading): Added - only needs Windows impl for now
  5832. * platform/win/ThreadingWin.cpp: Added.
  5833. (WebCore::callFunctionsOnMainThread): Calls each function currently in the main-thread queue
  5834. (WebCore::ThreadingWindowWndProc):
  5835. (WebCore::initializeThreading): Creates a message-only window to use for callOnMainThread()
  5836. (WebCore::callOnMainThread): Queues the function to be called and posts a message to the threading
  5837. window such that the function-call-queue can be addressed
  5838. * platform/win/TemporaryLinkStubs.cpp:
  5839. (WebCore::signedPublicKeyAndChallengeString):
  5840. 2007-09-14 Anders Carlsson <andersca@apple.com>
  5841. Reviewed by Adam.
  5842. <rdar://problem/5316743>
  5843. Safari does not handle filename parameter of content-disposition
  5844. Use CFURLResponseCopySuggestedFilename instead of our own hand-rolled implementation.
  5845. While we do return the correct filename in all cases I've tried, using CFNetwork is better because
  5846. it might handle corner cases that we don't.
  5847. * platform/network/cf/ResourceResponseCFNet.cpp:
  5848. (WebCore::ResourceResponse::doUpdateResourceResponse):
  5849. 2007-09-14 Geoffrey Garen <ggaren@apple.com>
  5850. Reviewed by Adam Roben.
  5851. Fixed http://bugs.webkit.org/show_bug.cgi?id=15209
  5852. Sometimes removing an iframe from the DOM does not remove its frame
  5853. from the page
  5854. * loader/FrameLoader.cpp:
  5855. (WebCore::FrameLoader::requestFrame): Use the contentFrame pointer
  5856. directly instead of searching for a frame by the frame element's name,
  5857. because the frame element's name may have changed. (Another reason to do
  5858. this is that it's just plain more straight-forward and efficient.)
  5859. 2007-09-14 Darin Adler <darin@apple.com>
  5860. Reviewed by Mitz and Kevin Decker.
  5861. - fix http://bugs.webkit.org/show_bug.cgi?id=15197
  5862. <rdar://problem/5478271> REGRESSION: Some Yahoo text entry fields
  5863. render as lines rather than text entry boxes
  5864. Test: fast/forms/textarea-rows-cols.html
  5865. * html/HTMLTextAreaElement.cpp:
  5866. (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Use constants for the default number
  5867. of rows and columns.
  5868. (WebCore::HTMLTextAreaElement::parseMappedAttribute): If rows/cols attribute has a value
  5869. that's missing, non-numeric, or zero, then use the default value. Also check for the
  5870. case where the effective value of the attribute isn't changing.
  5871. 2007-09-14 Sven Herzberg <sven@imendio.com>
  5872. Reviewed by George.
  5873. Don't maintain obsolete code, fixes:
  5874. http://bugs.webkit.org/show_bug.cgi?id=15215
  5875. * platform/gdk/FontPlatformData.cpp: remove static
  5876. FontPlatformData::list() (isn't used at any place)
  5877. 2007-09-14 Sven Herzberg <sven@imendio.com>
  5878. Reviewed by Adam Roben.
  5879. Don't use fontconfig types if necessary, fixes:
  5880. http://bugs.webkit.org/show_bug.cgi?id=15203
  5881. * platform/gdk/FontPlatformData.cpp: don't use an FcBool to store the
  5882. initialized state, use a plain c++ bool instead
  5883. 2007-09-13 Brady Eidson <beidson@apple.com>
  5884. Reviewed by Maciej
  5885. <rdar://problem/5480437> - No site icon at launch and related error messages
  5886. The error message was actually indicative of a larger bug that might've resulted in icons getting
  5887. improperly pruned because they were never added to the set of retained page URLs.
  5888. To solve the no-icon-at-launch problem, we send the "didReceiveIcon:" delegate call for every page
  5889. load that has an icon, whether the icon comes in from network, from disk, or was already in ram
  5890. * loader/FrameLoader.cpp:
  5891. (WebCore::FrameLoader::startIconLoader): Always send the didReceiveIcon delegate call when an icon's
  5892. image data is known
  5893. * loader/icon/IconDatabase.cpp:
  5894. (WebCore::IconDatabase::retainIconForPageURL): Much more accurately track the set of retained pages by
  5895. adding them when their retain count moves from 0 to 1
  5896. * loader/icon/PageURLRecord.h:
  5897. (WebCore::PageURLRecord::retain): Correctly distinguish the "retain count just went from 0 to 1" case
  5898. in the return value
  5899. 2007-09-13 Brady Eidson <beidson@apple.com>
  5900. Rubberstamped by Geoff and Maciej
  5901. Fix MSVC build warning due to out of range data in a char array
  5902. * loader/icon/IconDatabase.cpp:
  5903. (WebCore::IconDatabase::defaultIcon): The buffer is now unsigned data
  5904. * platform/SharedBuffer.cpp:
  5905. (WebCore::SharedBuffer::SharedBuffer): Add the "unsigned char*" c'tor
  5906. * platform/SharedBuffer.h:
  5907. 2007-09-13 Darin Adler <darin@apple.com>
  5908. Reviewed by Oliver.
  5909. - fix <rdar://problem/5470457> REGRESSION: Input method inline hole is mishandled in text
  5910. <input> elements with maxlength limit
  5911. * editing/Editor.h: Moved MarkedTextUnderline here and renamed it CompositionUnderline.
  5912. Moved the rest of the marked text API here and used the term that will be more familiar
  5913. to those on platforms other than Macintosh, "composition". This helps prevent confusion
  5914. with the other kinds of mark -- the emacs "mark" and spelling/grammar marks. Also
  5915. cleaned up the conditionals a bit for the Macintosh-specific parts of this header.
  5916. * editing/Editor.cpp:
  5917. (WebCore::Editor::Editor): Updated for name change.
  5918. (WebCore::Editor::clear): Added. To be called by FrameLoader::clear().
  5919. (WebCore::Editor::insertTextWithoutSendingTextEvent): Removed code to make inserted
  5920. text replace the marked text range -- we now deal with this explicitly by not
  5921. calling this function to replace marked text. Also removed unneeded code that was
  5922. specific to the use of this to replace the marked text.
  5923. (WebCore::Editor::selectComposition): Renamed from selectMarkedText. Updated since
  5924. the composition range is not stored as a Range.
  5925. (WebCore::Editor::confirmComposition): Added. To be called when changing a composition
  5926. into actual text. Unlike the old code path, deletes the composition first, then inserts
  5927. the text, triggering the normal insertion code path and events. This is helpful because
  5928. it means the inserted text will be truncated by the <input> element, for example.
  5929. (WebCore::Editor::confirmCompositionWithoutDisturbingSelection): Added.
  5930. (WebCore::Editor::setComposition): Added. To be called when changing the composition.
  5931. Takes parameters for the underlines and selection. Unlike the old code path, this passes
  5932. a flag down that indicates the inserted text is part of a composition. This is helpful
  5933. because we don't send the event that will cause the <input> element to do truncation.
  5934. It's also a better API for future improvements to our input method handling.
  5935. (WebCore::Editor::revealSelectionAfterEditingOperation): Updated for name change.
  5936. (WebCore::Editor::setIgnoreCompositionSelectionChange): Ditto.
  5937. (WebCore::Editor::compositionRange): Added. Needed now that the composition is not
  5938. stored as a Range.
  5939. (WebCore::Editor::getCompositionSelection): Added.
  5940. * editing/TypingCommand.h:
  5941. * editing/TypingCommand.cpp: (WebCore::TypingCommand::insertText):
  5942. Added an insertedTextIsComposition parameter, and don't send the BeforeTextInsertedEvent
  5943. if it's true.
  5944. * loader/FrameLoader.cpp: (WebCore::FrameLoader::clear): Replaced the Macintosh-specific
  5945. call to setMarkedTextRange with a call to the new Editor::clear().
  5946. * page/Frame.h:
  5947. * page/Frame.cpp:
  5948. * page/FramePrivate.h:
  5949. * page/mac/FrameMac.mm:
  5950. Removed the marked text code. It was streamlined and moved to Editor, except for the
  5951. Mac-specific code, which was moved into WebKit.
  5952. * page/mac/WebCoreFrameBridge.h:
  5953. * page/mac/WebCoreFrameBridge.mm: Removed some now-unneeded marked text code.
  5954. (-[WebCoreFrameBridge markedTextNSRange]): Updated for name/API change.
  5955. * rendering/InlineTextBox.h:
  5956. * rendering/InlineTextBox.cpp:
  5957. (WebCore::InlineTextBox::paint): Updated marked text code for name changes, and also
  5958. streamlined the code a bit for the case where there is no composition.
  5959. (WebCore::InlineTextBox::paintCompositionBackground): Name change.
  5960. (WebCore::InlineTextBox::paintCompositionUnderline): Ditto.
  5961. * rendering/RenderTextControl.h:
  5962. * rendering/RenderTextControl.cpp:
  5963. (WebCore::RenderTextControl::finishText): Added. Helper function shared by the
  5964. (WebCore::RenderTextControl::text):
  5965. (WebCore::getNextSoftBreak):
  5966. (WebCore::RenderTextControl::textWithHardLineBreaks):
  5967. * platform/CharacterNames.h: Added newlineCharacter.
  5968. * dom/Range.h: Remove the now-unneeded version of toString that converts <br>
  5969. elements into newlines.
  5970. * dom/Range.cpp:
  5971. (WebCore::Range::toString): Changed this to use a Vector<UChar> instead of
  5972. a String so it will not have pathological reallocation performance, and removed
  5973. the <br> feature.
  5974. (WebCore::Range::pastEndNode): Made this return 0 when there is no start node.
  5975. This bit of extra robustness guarantees you can't do a null dereference if the
  5976. start node is 0 and the end node is not. Not sure this case really exists.
  5977. * page/ContextMenuController.cpp: (ContextMenuController::contextMenuItemSelected):
  5978. Removed a semi-bogus use of Range::toString(true). The right function to use here
  5979. is plainText().
  5980. * bridge/EditorClient.h: Removed obsolete markedTextAbandoned function.
  5981. * WebCore.exp: Updated for above changes.
  5982. 2007-09-13 Anders Carlsson <andersca@apple.com>
  5983. Reviewed by Adam and Geoff.
  5984. <rdar://problem/5304000>
  5985. Windows Safari doesn't always call NPP_SetWindow() for NPAPI plugins.
  5986. This does two things:
  5987. 1. Makes sure that the plug-in get the correct initial size.
  5988. 2. Always updates the size of the HWND, even if the widget size didn't change. This is because
  5989. the widget size can be different before the HWND has been created.
  5990. * plugins/win/PluginDatabaseWin.cpp:
  5991. (WebCore::PluginDatabaseWin::createPluginView):
  5992. * plugins/win/PluginDatabaseWin.h:
  5993. * plugins/win/PluginViewWin.cpp:
  5994. (WebCore::PluginViewWin::setFrameGeometry):
  5995. (WebCore::PluginViewWin::PluginViewWin):
  5996. * plugins/win/PluginViewWin.h:
  5997. 2007-09-13 Kevin McCullough <kmccullough@apple.com>
  5998. Reviewed by Geof, Sam, Adam, Hyatt, Darin.
  5999. - <rdar://problem/5480234> JS setTimeout function requires a second argument
  6000. - Removed check for number of arguments in setTimeout to behave like other browsers.
  6001. - Added layoutTest setTimeout-no-arguments.html
  6002. * bindings/js/kjs_window.cpp:
  6003. (KJS::WindowFunc::callAsFunction):
  6004. 2007-09-13 Dave Hyatt <hyatt@apple.com>
  6005. Some minor Windows font improvements before I make the larger changes.
  6006. Reviewed by aroben, weinig
  6007. * platform/win/FontCacheWin.cpp:
  6008. (WebCore::FontCache::getFontDataForCharacters):
  6009. Don't use the currently selected font in the HDC when passing priority code pages to MLANG. Make
  6010. sure to use ACP code pages instead so that there won't be any confusion regarding traditional vs.
  6011. simplified chinese, etc.
  6012. * platform/win/FontDataWin.cpp:
  6013. (WebCore::FontData::containsCharacters):
  6014. Rewrite containsCharacters so that it isn't glyph-dependent (since CG doesn't shape, this call is
  6015. rejecting fonts that it shouldn't). Re-implement this method in terms of MLang and use code page
  6016. testing.
  6017. * platform/win/UniscribeController.cpp:
  6018. (WebCore::UniscribeController::itemizeShapeAndPlace):
  6019. Add some comments to explain the additional item in the items array.
  6020. (WebCore::UniscribeController::shape):
  6021. Fix up the missing glyph check when doing uniscribe shaping. Only wgDefault matters as far as doing
  6022. font fallback.
  6023. 2007-09-13 kuchhal <kuchhal@yahoo.com>
  6024. Reviewed, tweaked and landed by Anders.
  6025. <rdar://problem/5461153>
  6026. http://bugs.webkit.org/show_bug.cgi?id=15143
  6027. Crash seen on Windows
  6028. Null check frame before calling Frame::settings.
  6029. * loader/PluginDocument.cpp:
  6030. (WebCore::PluginTokenizer::writeRawData):
  6031. 2007-09-12 Holger Hans Peter Freyther <zecke@selfish.org>
  6032. Reviewed by Mark.
  6033. Implement the FileChooser for the WebKit/Gtk+ port by using
  6034. the GtkFileChooserDialog and g_path_get_basename to get the
  6035. basename for the current filename.
  6036. * WebCore.pro:
  6037. * platform/gdk/FileChooserGdk.cpp: Added.
  6038. (WebCore::FileChooser::FileChooser):
  6039. (WebCore::FileChooser::~FileChooser):
  6040. (WebCore::FileChooser::openFileChooser):
  6041. (WebCore::FileChooser::basenameForWidth):
  6042. * platform/gdk/TemporaryLinkStubs.cpp:
  6043. 2007-09-12 Holger Hans Peter Freyther <zecke@selfish.org>
  6044. Reviewed by Mark.
  6045. Move the "string" functions from the TemporaryLinkStubs.cpp
  6046. to LocalizedStringsGdk.cpp and implement them using the text
  6047. from the win port and glib-i18n (gettext).
  6048. * platform/gdk/LocalizedStringsGdk.cpp: Added.
  6049. (WebCore::submitButtonDefaultLabel):
  6050. (WebCore::inputElementAltText):
  6051. (WebCore::resetButtonDefaultLabel):
  6052. (WebCore::searchableIndexIntroduction):
  6053. (WebCore::fileButtonChooseFileLabel):
  6054. (WebCore::fileButtonNoFileSelectedLabel):
  6055. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  6056. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  6057. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  6058. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  6059. (WebCore::contextMenuItemTagDownloadImageToDisk):
  6060. (WebCore::contextMenuItemTagCopyImageToClipboard):
  6061. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  6062. (WebCore::contextMenuItemTagCopy):
  6063. (WebCore::contextMenuItemTagGoBack):
  6064. (WebCore::contextMenuItemTagGoForward):
  6065. (WebCore::contextMenuItemTagStop):
  6066. (WebCore::contextMenuItemTagReload):
  6067. (WebCore::contextMenuItemTagCut):
  6068. (WebCore::contextMenuItemTagPaste):
  6069. (WebCore::contextMenuItemTagNoGuessesFound):
  6070. (WebCore::contextMenuItemTagIgnoreSpelling):
  6071. (WebCore::contextMenuItemTagLearnSpelling):
  6072. (WebCore::contextMenuItemTagSearchWeb):
  6073. (WebCore::contextMenuItemTagLookUpInDictionary):
  6074. (WebCore::contextMenuItemTagOpenLink):
  6075. (WebCore::contextMenuItemTagIgnoreGrammar):
  6076. (WebCore::contextMenuItemTagSpellingMenu):
  6077. (WebCore::contextMenuItemTagShowSpellingPanel):
  6078. (WebCore::contextMenuItemTagCheckSpelling):
  6079. (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
  6080. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  6081. (WebCore::contextMenuItemTagFontMenu):
  6082. (WebCore::contextMenuItemTagBold):
  6083. (WebCore::contextMenuItemTagItalic):
  6084. (WebCore::contextMenuItemTagUnderline):
  6085. (WebCore::contextMenuItemTagOutline):
  6086. (WebCore::contextMenuItemTagWritingDirectionMenu):
  6087. (WebCore::contextMenuItemTagDefaultDirection):
  6088. (WebCore::contextMenuItemTagLeftToRight):
  6089. (WebCore::contextMenuItemTagRightToLeft):
  6090. (WebCore::contextMenuItemTagInspectElement):
  6091. (WebCore::searchMenuNoRecentSearchesText):
  6092. (WebCore::searchMenuRecentSearchesText):
  6093. (WebCore::searchMenuClearRecentSearchesText):
  6094. (WebCore::unknownFileSizeText):
  6095. * platform/gdk/TemporaryLinkStubs.cpp:
  6096. 2007-09-10 Holger Hans Peter Freyther <zecke@selfish.org>
  6097. Reviewed by Mark.
  6098. EventHandlerGdk::createDraggingClipboard must succeed otherwise an
  6099. ASSERT is hit. Add Clipboard stubs for the Gdk/Gtk+ port and
  6100. instantiate ClipboardGdk from the EventHandlerGdk to make the ASSERT
  6101. go away. In contrast to the Windows and Mac port this clipboard is not
  6102. inheriting CachedResourceClient. This was proposed by Oliver.
  6103. * WebCore.pro:
  6104. * page/gdk/EventHandlerGdk.cpp:
  6105. * platform/gdk/ClipboardGdk.cpp: Added.
  6106. (WebCore::ClipboardGdk::ClipboardGdk):
  6107. (WebCore::ClipboardGdk::~ClipboardGdk):
  6108. (WebCore::ClipboardGdk::clearData):
  6109. (WebCore::ClipboardGdk::clearAllData):
  6110. (WebCore::ClipboardGdk::getData):
  6111. (WebCore::ClipboardGdk::setData):
  6112. (WebCore::ClipboardGdk::types):
  6113. (WebCore::ClipboardGdk::dragLocation):
  6114. (WebCore::ClipboardGdk::dragImage):
  6115. (WebCore::ClipboardGdk::setDragImage):
  6116. (WebCore::ClipboardGdk::dragImageElement):
  6117. (WebCore::ClipboardGdk::setDragImageElement):
  6118. (WebCore::ClipboardGdk::createDragImage):
  6119. (WebCore::ClipboardGdk::declareAndWriteDragImage):
  6120. (WebCore::ClipboardGdk::writeURL):
  6121. (WebCore::ClipboardGdk::writeRange):
  6122. (WebCore::ClipboardGdk::hasData):
  6123. * platform/gdk/ClipboardGdk.h: Added.
  6124. 2007-09-12 Oliver Hunt <oliver@apple.com>
  6125. Reviewed by Adam.
  6126. Corrections missed in previous revision
  6127. * platform/Cursor.h:
  6128. * platform/win/CursorWin.cpp:
  6129. (WebCore::loadCursorByName):
  6130. 2007-09-12 Oliver Hunt <oliver@apple.com>
  6131. Reviewed by Adam.
  6132. Fixing
  6133. <rdar://problem/5018591> Windows doesn't have a standard vertical text cursor
  6134. <rdar://problem/5224996> Add zoom in and zoom out cursors
  6135. Added SharedCursor for CursorWin so we can correctly track lifetime of custom/image
  6136. based cursors, such as the vertical text and zooming cursors.
  6137. * platform/Cursor.h:
  6138. (WebCore::SharedCursor::SharedCursor):
  6139. (WebCore::SharedCursor::~SharedCursor):
  6140. (WebCore::SharedCursor::nativeCursor):
  6141. * platform/win/CursorWin.cpp:
  6142. (WebCore::Cursor::Cursor):
  6143. (WebCore::loadCursorByName):
  6144. (WebCore::loadSharedCursor):
  6145. (WebCore::pointerCursor):
  6146. (WebCore::crossCursor):
  6147. (WebCore::handCursor):
  6148. (WebCore::iBeamCursor):
  6149. (WebCore::waitCursor):
  6150. (WebCore::helpCursor):
  6151. (WebCore::eastResizeCursor):
  6152. (WebCore::northResizeCursor):
  6153. (WebCore::northEastResizeCursor):
  6154. (WebCore::northWestResizeCursor):
  6155. (WebCore::southResizeCursor):
  6156. (WebCore::southEastResizeCursor):
  6157. (WebCore::southWestResizeCursor):
  6158. (WebCore::westResizeCursor):
  6159. (WebCore::northSouthResizeCursor):
  6160. (WebCore::eastWestResizeCursor):
  6161. (WebCore::northEastSouthWestResizeCursor):
  6162. (WebCore::northWestSouthEastResizeCursor):
  6163. (WebCore::columnResizeCursor):
  6164. (WebCore::rowResizeCursor):
  6165. (WebCore::moveCursor):
  6166. (WebCore::verticalTextCursor):
  6167. (WebCore::progressCursor):
  6168. (WebCore::notAllowedCursor):
  6169. (WebCore::zoomInCursor):
  6170. (WebCore::zoomOutCursor):
  6171. * platform/win/WidgetWin.cpp:
  6172. (WebCore::Widget::setCursor):
  6173. 2007-09-12 Brady Eidson <beidson@apple.com>
  6174. Reviewed by Geoff Garen
  6175. <rdar://problem/5478577> - Further improve cold launch time with Icon Database changes
  6176. * loader/icon/IconDatabase.cpp:
  6177. (WebCore::IconDatabase::open): Store the directory and full path for later usage and access in the API, respectively
  6178. Move the makeAllDirectories() call to the background thread.
  6179. (WebCore::IconDatabase::IconDatabase): Don't set up the timer here...
  6180. (WebCore::IconDatabase::scheduleOrDeferSyncTimer): Create the timer on demand
  6181. (WebCore::IconDatabase::iconDatabaseSyncThread): makeAllDirectories() here where it's not as expensive
  6182. (WebCore::IconDatabase::cleanupSyncThread): Cleanup the directory as well as full path
  6183. * loader/icon/IconDatabase.h: m_syncTimer becomes an OwnPtr, and we add the database directory
  6184. as a member to set it on the main thread and act with it on the background thread
  6185. 2007-09-12 Justin Garcia <justin.garcia@apple.com>
  6186. Reviewed by Tristan.
  6187. <rdar://problem/5469868>
  6188. GoogleDocs: A hang occurs when applying list styling to a selection in a <table>
  6189. When list insertion moves selected paragraphs into list items, it relies on
  6190. the selection preservation code inside moveParagraphs to iterate over the
  6191. selected paragraphs. If a selection is ever restored incorrectly (before
  6192. the original, or inside the original) list insertion will go into an infinite loop.
  6193. In this hang, a table was selected and the selection preservation code incorrectly
  6194. restored a selection, placing it inside the table.
  6195. The bug was that a TextIterator, when being used for selection preservation, must
  6196. emit a character between every VisiblePosition in the Range used to create the
  6197. iterator.
  6198. * editing/TextIterator.cpp:
  6199. (WebCore::TextIterator::TextIterator): Renamed the boolean that we use for
  6200. selection preservation. It used to be m_emitForReplacedElements because
  6201. we believed that replaced elements were the only case where TextIterators
  6202. should have emitted differently when used for selection preservation.
  6203. (WebCore::TextIterator::handleReplacedElement): Ditto.
  6204. (WebCore::TextIterator::shouldRepresentNodeOffsetZero): Represent the
  6205. position before block tables, but only if we are emitting for selection
  6206. preservation.
  6207. (WebCore::TextIterator::shouldEmitSpaceBeforeAndAfterNode): We should emit
  6208. a space before and after block tables if we are emitting for selection
  6209. preservation (because we have VisiblePositions before and after them).
  6210. (WebCore::TextIterator::handleNonTextNode): Use a renamed variable.
  6211. * editing/TextIterator.h: Made shouldEmitSpaceBeforeAndAfterNode a member
  6212. function, because whether or not we emit spaces before and after a block
  6213. table depends we're emitting for selection preservation.
  6214. 2007-09-12 Beth Dakin <bdakin@apple.com>
  6215. Reviewed by Hyatt.
  6216. Fix for <rdar://problem/5464998> REGRESSION (9A543): Using Sort
  6217. options takes you back to search screen on zappos.com
  6218. The current mechanism for preserving form elements across removes
  6219. did not work in the case where the input was moved by the parser to
  6220. be out of scope of the form. This fixes that problem by having the
  6221. parser keep track of the preserve boolean rather than the current
  6222. form element.
  6223. * dom/Tokenizer.h:
  6224. (WebCore::Tokenizer::isHTMLTokenizer): New function.
  6225. * html/HTMLFormElement.cpp:
  6226. (WebCore::HTMLFormElement::HTMLFormElement): Get rid of
  6227. m_preserveAcrossRemove.
  6228. * html/HTMLFormElement.h:
  6229. (WebCore::HTMLFormElement::isMalformed): Get rid of
  6230. m_preserveAcrossRemove.
  6231. * html/HTMLGenericFormElement.cpp:
  6232. (WebCore::HTMLGenericFormElement::removedFromTree): Ask the parser
  6233. if it is currently handling residual style rather than asking the
  6234. form if it wants to preserveAcrossRemove.
  6235. * html/HTMLParser.cpp:
  6236. (WebCore::HTMLParser::HTMLParser): New boolean to initialize.
  6237. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): Set
  6238. m_handlingResidualStyleAcrossBlocks to true at the beginning and
  6239. false at the end.
  6240. * html/HTMLParser.h:
  6241. (WebCore::HTMLParser::isHandlingResidualStyleAcrossBlocks):
  6242. * html/HTMLTokenizer.h:
  6243. (WebCore::HTMLTokenizer::isHTMLTokenizer):
  6244. (WebCore::HTMLTokenizer::htmlParser):
  6245. 2007-09-12 George Staikos <staikos@kde.org>
  6246. Fix compilation in some configurations for patch I reviewed and missed
  6247. this option on.
  6248. * platform/qt/CursorQt.cpp:
  6249. (WebCore::Cursor::Cursor):
  6250. 2007-09-12 Brady Eidson <beidson@apple.com>
  6251. Reviewed by Tim Hatcher and Kevin Decker
  6252. <rdar://problem/5367045> - Launch time regression due to accessing resource from a different bundle
  6253. When the default icon was moved from WebKit to WebCore, we had to access an entirely new bundle on launch which
  6254. measurably increased time during launch accessing the disk.
  6255. Instead of moving it back to the WebKit bundle, lets make launch time even faster by compiling in the icon.
  6256. * Resources/urlIcon.tiff: Removed.
  6257. * WebCore.xcodeproj/project.pbxproj: Removed urlIcon.tiff
  6258. * loader/icon/IconDatabase.cpp:
  6259. (WebCore::IconDatabase::defaultIcon): Compile in the icon data here.
  6260. 2007-09-12 Adam Roben <aroben@apple.com>
  6261. Always specify that slider thumbs are small when painting with SafariTheme
  6262. This is the only size we support.
  6263. Reviewed by Sam.
  6264. * rendering/RenderThemeSafari.cpp:
  6265. (WebCore::RenderThemeSafari::paintSliderThumb):
  6266. 2007-09-12 Brady Eidson <beidson@apple.com>
  6267. Reviewed by Darin
  6268. <rdar://problem/5474753> - ASSERT in IconDatabase ReadySQLStatement
  6269. * loader/icon/IconDatabase.cpp:
  6270. (WebCore::readySQLStatement): This is a LOG_ERROR situation, not really an ASSERT situation
  6271. 2007-09-12 Adam Roben <aroben@apple.com>
  6272. Don't ask SafariTheme to draw focus rings around text controls
  6273. We do this ourselves.
  6274. Reviewed by Oliver.
  6275. * rendering/RenderThemeSafari.cpp:
  6276. 2007-09-11 Brady Eidson <beidson@apple.com>
  6277. Reviewed by Darin
  6278. <rdar://problem/5475639> and http://bugs.webkit.org/show_bug.cgi?id=15185 -
  6279. Prevent two WebKits from fighting over the database schema in the future in case it ever changes again
  6280. By telling the "older schema" WebKit to simply close itself and not bother to do any icon related stuff
  6281. if the database schema is newer, we prevent the possibility of an older webkit run side-by-side with a newer
  6282. WebKit causing icon database issues.
  6283. * loader/icon/IconDatabase.cpp:
  6284. (WebCore::IconDatabase::defaultDatabaseFilename): Rev the icon database filename to be "WebpageIcons.db" The name is
  6285. more appropriate for what is actually stored in the file, and since we're already not converting v5 to v6 icons,
  6286. making this leap now makes sense and gives us a good "future-proof" baseline
  6287. (WebCore::isValidDatabase): Change the validity check to be "less then" instead of "not equal to" - the
  6288. "greater than" case is now handled in performOpenInitialization()
  6289. (WebCore::IconDatabase::performOpenInitialization): If the schema version is greater than the current, then
  6290. close the database as to not conflict with the newer version. Also noted that the integrity check failure
  6291. should actually close the sql database, not the icondatabase
  6292. (WebCore::IconDatabase::syncThreadMainLoop): If termination has already been requested, skip straight to cleanup
  6293. (WebCore::IconDatabase::cleanupSyncThread): More correctly set the "sync thread running" flag to false here,
  6294. as the thread can now decide to exit on its own
  6295. 2007-09-12 Mike Fenton <mike@staikos.net>
  6296. Reviewed by George Staikos.
  6297. Patch from Mike Fenton to allow custom cursors.
  6298. * platform/qt/CursorQt.cpp:
  6299. 2007-09-11 Kevin Decker <kdecker@apple.com>
  6300. Reviewed by Oliver Hunt.
  6301. Fixed: <rdar://problem/5472402> crash due to infinite recursion in expandUseElementsInShadowTree on SVG from wikipedia
  6302. * ksvg2/svg/SVGUseElement.cpp: Added SVG_EXPERIMENTAL #ifdef for expandUseElementsInShadowTree().
  6303. (WebCore::SVGUseElement::buildPendingResource): Ditto.
  6304. (WebCore::SVGUseElement::associateInstancesWithShadowTreeElements): Tweaked an ASSERT to not fire on non-experimental builds.
  6305. * ksvg2/svg/SVGUseElement.h: Added SVG_EXPERIMENTAL #ifdef for expandUseElementsInShadowTree().
  6306. 2007-09-11 Brady Eidson <beidson@apple.com>
  6307. Reviewed by Maciej
  6308. Fix for <rdar://problem/5473046> - Crash when resetting all icons
  6309. Originally I'd written the "reset all icons" to be synchronous on the main thread, but it
  6310. was decided that it should be async since it involved I/O. Turns out it needs to be... both!
  6311. Synchronous removal of all in-memory records of icons, and then continue and clean up the
  6312. on-disk database on the background thread.
  6313. Also, it turns out that resetting all the page url retain counts should *not* be part of
  6314. "reset all icons" because it breaks various contracts the API makes about maintaining retain counts.
  6315. The problem that occured here was removing all the icons, then all the history items that were
  6316. removed as part of "Reset Safari..." would try to release their icon, but their icon doesn't exist
  6317. anymore.
  6318. We get around this by simply leaving the in-memory page url records and retain counts alone - they
  6319. are still wiped from disk.
  6320. * loader/icon/IconDatabase.cpp:
  6321. (WebCore::IconDatabase::removeAllIcons): Clear in-memory records of all icons then tell the thread to
  6322. wipe the on-disk tables
  6323. (WebCore::IconDatabase::removeAllIconsOnThread): Only do the disk cleanup - in-memory maintenance is
  6324. handled on the main thread
  6325. (WebCore::IconDatabase::cleanupSyncThread): Now that it's possible for new "icons to be written to disk"
  6326. to appear while on-disk deleting is occuring, let the cleanup procedure perform 1 final write *after*
  6327. it does the remove all icons
  6328. * loader/icon/IconDatabase.h: Removed unused lock and condition
  6329. * loader/icon/PageURLRecord.cpp:
  6330. (WebCore::PageURLRecord::setIconRecord): Allow setting a NULL icon record, so a PageURLRecord can be
  6331. cleared as part of removeAllIcons()
  6332. 2007-09-11 Tristan O'Tierney <tristan@apple.com>
  6333. Reviewed by David Harrison.
  6334. <rdar://problem/5467203> CrashTracer: [USER] 1 crash in Mail at <unknown binary>: WebCore::Range::startContainer const
  6335. * editing/SelectionController.cpp:
  6336. (WebCore::SelectionController::addRange):
  6337. (WebCore::SelectionController::setSelectedRange):
  6338. Added a check to make sure the passed in Range* value is not null
  6339. before performing operations on it.
  6340. 2007-09-11 Justin Garcia <justin.garcia@apple.com>
  6341. Reviewed by Maciej.
  6342. <rdar://problem/5458246>
  6343. GoogleDocs: A hang occurs when applying list styling to selection that contains a <HR>
  6344. List insertion moves selected paragraphs into list items, and relies on the selection
  6345. preservation code inside moveParagraphs to iterate over the selected paragraphs.
  6346. When list insertion would try to listify a paragraph that came after a list item
  6347. containing an <hr>, the selection preservation code would set an incorrect ending
  6348. selection because of a TextIterator bug, and we would try to listify the same
  6349. paragraph over and over.
  6350. * editing/CompositeEditCommand.cpp:
  6351. (WebCore::CompositeEditCommand::moveParagraphs): Pass range compliant equivalents to
  6352. the Range constructor here. The position [hr, 0] is not a valid DOM Range endpoint
  6353. for example.
  6354. * editing/TextIterator.cpp:
  6355. (WebCore::shouldEmitSpaceForNode): Added.
  6356. (WebCore::TextIterator::handleNonTextNode): Emit a space to represent a horizontal rule,
  6357. since it has VisiblePositions before and after it, but only for TextIterators used for
  6358. selection preservation, so innerText will be unaffected.
  6359. 2007-09-11 Ada Chan <adachan@apple.com>
  6360. <rdar://problem/5472130> Support NTLM authentication via CFNetwork.
  6361. Reviewed by Darin.
  6362. * platform/network/ProtectionSpace.h:
  6363. (WebCore::):
  6364. * platform/network/cf/AuthenticationCF.cpp:
  6365. (WebCore::createCF):
  6366. (WebCore::core):
  6367. 2007-09-11 Darin Adler <darin@apple.com>
  6368. Rubber-stamped by Dave Harrison.
  6369. - fixed pasteboard types here to match WebKit and use constants instead of
  6370. WebKitSystemInterface
  6371. * platform/mac/PasteboardMac.mm: Use constants for all pasteboard type strings.
  6372. * platform/mac/WebCoreSystemInterface.h: Removed wkCreateURLPasteboardFlavorTypeName
  6373. and wkCreateURLNPasteboardFlavorTypeName.
  6374. 2007-09-11 Sven Herzberg <sven@imendio.com>
  6375. Reviewed by Mark.
  6376. Remove unnecessary fields in FontPlatformData
  6377. http://bugs.webkit.org/show_bug.cgi?id=15177
  6378. * platform/gdk/FontDataGdk.cpp: removed the destroy code of the fields
  6379. that have been removed
  6380. * platform/gdk/FontPlatformData.h: removed m_fontFace, m_fontMatrix
  6381. and m_options; hask on m_scaledFont
  6382. * platform/gdk/FontPlatformDataGdk.cpp: simplified setFont() by using
  6383. m_scaledFont only; turned the former struct members into local
  6384. variables
  6385. 2007-09-11 George Staikos <staikos@kde.org>
  6386. Reviewed by Anders.
  6387. Work around gcc bug with some old gcc versions.
  6388. * platform/qt/WidgetQt.cpp:
  6389. (WebCore::Widget::convertToContainingWindow):
  6390. (WebCore::Widget::convertFromContainingWindow):
  6391. 2007-09-10 Mitz Pettel <mitz@webkit.org>
  6392. Reviewed by Maciej Stachowiak.
  6393. - fix http://bugs.webkit.org/show_bug.cgi?id=15157
  6394. Image defined in background-position: top center gets unexpectedly truncated
  6395. <rdar://problem/5469095>
  6396. Test: fast/repaint/body-background-image.html
  6397. * rendering/RenderBox.cpp:
  6398. (WebCore::RenderBox::imageChanged): Refined the logic for when the root takes
  6399. over painting the background, to match paintBoxDecorations(). In particular,
  6400. if the root has defined a background, the body should paint its own background.
  6401. 2007-09-10 David Harrison <harrison@apple.com>
  6402. Reviewed by Kevin and Tristan.
  6403. Tests added:
  6404. * editing/pasteboard/paste-into-anchor-text.html: Added.
  6405. * editing/pasteboard/paste-table-cells.html: Added.
  6406. Source changes:
  6407. * editing/CompositeEditCommand.cpp:
  6408. (WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary):
  6409. Nil check enclosingAnchor.
  6410. * editing/ReplaceSelectionCommand.cpp:
  6411. (WebCore::ReplaceSelectionCommand::removeNodeAndPruneAncestors):
  6412. New. Keeps m_firstNodeInserted and m_lastLeafInserted updated.
  6413. (WebCore::ReplaceSelectionCommand::negateStyleRulesThatAffectAppearance):
  6414. Added a comment.
  6415. (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
  6416. Let ReplaceSelectionCommand::removeNodeAndPruneAncestors() update the nodes.
  6417. (WebCore::ReplaceSelectionCommand::doApply):
  6418. Pass originalVisPosBeforeEndBR to shouldRemoveEndBR()
  6419. (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR):
  6420. Don't remove the br if nothing was inserted.
  6421. * editing/ReplaceSelectionCommand.h:
  6422. Add VisiblePosition parameter to shouldRemoveEndBR()
  6423. * editing/markup.cpp:
  6424. (WebCore::createMarkup):
  6425. Wrap orphan tr element with a table element, just like we were doing
  6426. for tobody elements.
  6427. 2007-09-10 David Kilzer <ddkilzer@apple.com>
  6428. Rubberstamped by Kevin Decker.
  6429. No test required since there is no change in functionality.
  6430. * history/BackForwardList.cpp:
  6431. (WebCore::BackForwardList::BackForwardList): Fix misspelling of DefaultCapacitiy to DefaultCapacity.
  6432. 2007-09-10 Mitz Pettel <mitz@webkit.org>
  6433. Reviewed by Adele Peterson.
  6434. - fix http://bugs.webkit.org/show_bug.cgi?id=15156
  6435. REGRESSION (r24594-r24668): The bottom of styled <select> button text is clipped out
  6436. <rdar://problem/5464301>
  6437. Test: fast/forms/menulist-clip.html
  6438. * rendering/RenderMenuList.cpp:
  6439. (WebCore::RenderMenuList::controlClipRect): Use correct coordinates for
  6440. the inner block's content rect.
  6441. 2007-09-10 Brady Eidson <beidson@apple.com>
  6442. Reviewed by Darin, Sam, Oliver, Geoff, probably others - what a fun one to review!
  6443. <rdar://problem/5471641> - URLs get the wrong icon
  6444. Turns out sqlite3_reset() doesn't clear bindings, so previously bound icons were being
  6445. written out for pages without icons. Easy fix!
  6446. * loader/icon/IconDatabase.cpp:
  6447. (WebCore::IconDatabase::writeIconSnapshotToSQLDatabase): For null icons, manually
  6448. bind NULL - otherwise, the previously bound icon will be written out to disk
  6449. * loader/icon/SQLStatement.cpp:
  6450. (WebCore::SQLStatement::bindNull): Access to sqlite3_bind_null
  6451. * loader/icon/SQLStatement.h:
  6452. 2007-09-10 Anders Carlsson <andersca@apple.com>
  6453. Reviewed by Oliver and Darin.
  6454. <rdar://problem/5468613>
  6455. Using shockwave pages first time after plugin install crashed safari in PluginPing.
  6456. Only restore the window proc if the plugin didn't override it.
  6457. * plugins/win/PluginViewWin.cpp:
  6458. (WebCore::PluginViewWin::stop):
  6459. 2007-09-10 Justin Garcia <justin.garcia@apple.com>
  6460. Reviewed by Darin.
  6461. <rdar://problem/5467405>
  6462. Revert back behavior of -webkit-user-select to fix widget selection problems
  6463. Rolled out r25086 and r25057. I will be re-opening:
  6464. <rdar://problem/5333725> -webkit-user-select: none makes selection difficult
  6465. Which we will either to defer or fix by introducing a new value of -webkit-user-select.
  6466. <rdar://problem/5370059> REGRESSION: Cannot type into edit fields on a form (sccsheriff.org)
  6467. Which we will either defer or fix with Adele's patch that doesn't involve making
  6468. -webkit-user-select inherited.
  6469. * css/CSSComputedStyleDeclaration.cpp:
  6470. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  6471. * css/CSSStyleSelector.cpp:
  6472. (WebCore::CSSStyleSelector::adjustRenderStyle):
  6473. (WebCore::CSSStyleSelector::applyProperty):
  6474. * editing/SelectionController.cpp:
  6475. (WebCore::SelectionController::selectAll):
  6476. * page/EventHandler.cpp:
  6477. (WebCore::EventHandler::selectClosestWordFromMouseEvent):
  6478. (WebCore::EventHandler::handleMousePressEventTripleClick):
  6479. (WebCore::EventHandler::handleMousePressEventSingleClick):
  6480. (WebCore::EventHandler::updateSelectionForMouseDrag):
  6481. (WebCore::EventHandler::selectCursor):
  6482. (WebCore::EventHandler::canMouseDownStartSelect):
  6483. * page/EventHandler.h:
  6484. * rendering/RenderObject.cpp:
  6485. (WebCore::selectStartNode):
  6486. (WebCore::RenderObject::canSelect):
  6487. (WebCore::RenderObject::shouldSelect):
  6488. (WebCore::RenderObject::draggableNode):
  6489. * rendering/RenderObject.h:
  6490. * rendering/RenderStyle.cpp:
  6491. (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
  6492. (WebCore::StyleRareNonInheritedData::operator==):
  6493. (WebCore::StyleRareInheritedData::StyleRareInheritedData):
  6494. (WebCore::StyleRareInheritedData::operator==):
  6495. (WebCore::RenderStyle::diff):
  6496. * rendering/RenderStyle.h:
  6497. (WebCore::):
  6498. (WebCore::RenderStyle::userSelect):
  6499. (WebCore::RenderStyle::setUserSelect):
  6500. (WebCore::RenderStyle::initialUserSelect):
  6501. 2007-09-10 Antti Koivisto <antti@apple.com>
  6502. Reviewed by Kevin.
  6503. Fix <rdar://problem/5444866>
  6504. REGRESSION: missing text in Acrobat "Getting Started" screen due to change in load ordering of large resources
  6505. Make external scripts loaded using file: wait until all style sheet loads have completed before executing.
  6506. Fixes a class of problems where there is a dependency between script and stylesheet and results would effectively
  6507. get randomized based on which order the resources arrived. In Tiger file loads were effectively serialized by
  6508. lower level components, which is why this regressed.
  6509. Test: http/tests/local/stylesheet-and-script-load-order.html
  6510. * dom/Document.cpp:
  6511. (WebCore::Document::removePendingSheet):
  6512. * dom/Tokenizer.h:
  6513. (WebCore::Tokenizer::executeScriptsWaitingForStylesheets):
  6514. * html/HTMLTokenizer.cpp:
  6515. (WebCore::HTMLTokenizer::HTMLTokenizer):
  6516. (WebCore::HTMLTokenizer::begin):
  6517. (WebCore::HTMLTokenizer::executeScriptsWaitingForStylesheets):
  6518. (WebCore::HTMLTokenizer::notifyFinished):
  6519. * html/HTMLTokenizer.h:
  6520. 2007-09-08 David Smith <catfish.man@gmail.com>
  6521. Reviewed by Maciej Stachowiak.
  6522. http://bugs.webkit.org/show_bug.cgi?id=15148
  6523. Bug 15148: Poor performance on crazy DOM raytracer
  6524. Switch data structures to avoid quadratic behavior.
  6525. * rendering/RenderBlock.cpp:
  6526. (WebCore::RenderBlock::layoutPositionedObjects): Update for ListHashSet
  6527. (WebCore::RenderBlock::markPositionedObjectsForLayout): Update for ListHashSet
  6528. (WebCore::RenderBlock::insertPositionedObject): Use ListHashSet to avoid expensive uniqueing
  6529. (WebCore::RenderBlock::removePositionedObject): Update for ListHashSet
  6530. (WebCore::RenderBlock::removePositionedObjects): Update for ListHashSet
  6531. (WebCore::RenderBlock::lowestPosition): Update for ListHashSet
  6532. (WebCore::RenderBlock::rightmostPosition): Update for ListHashSet
  6533. (WebCore::RenderBlock::leftmostPosition): Update for ListHashSet
  6534. (WebCore::RenderBlock::rightBottom): Update for ListHashSet
  6535. * rendering/RenderBlock.h: Change m_positionedObjects from DeprecatedPtrList to ListHashSet
  6536. 2007-09-09 Brady Eidson <beidson@apple.com>
  6537. Rubberstamped by Darin
  6538. pthread_main_np() is a Darwin thing, not a Mac thing
  6539. * loader/icon/IconDatabase.cpp:
  6540. (WebCore::IconDatabase::IconDatabase):
  6541. 2007-09-09 Holger Hans Peter Freyther <zecke@selfish.org>
  6542. Build fix for Gtk+ by adding WebCore::callOnMainThread to the TemporaryLinkStubs.
  6543. * platform/gdk/TemporaryLinkStubs.cpp:
  6544. (WebCore::callOnMainThread):
  6545. 2007-09-08 George Staikos <staikos@kde.org>
  6546. Reviewed by Olliej.
  6547. Separate out and implement FileSystem functions, and stub out the
  6548. icondatabase function for future implementation.
  6549. * WebCore.pro:
  6550. * platform/qt/FileSystemQt.cpp: Added.
  6551. (WebCore::fileExists):
  6552. (WebCore::deleteFile):
  6553. * platform/qt/TemporaryLinkStubs.cpp:
  6554. * platform/qt/ThreadingQt.cpp: Added.
  6555. (WebCore::callOnMainThread):
  6556. 2007-09-08 Mark Rowe <mrowe@apple.com>
  6557. Build fix for when ENABLE(ICONDATABASE) is not set.
  6558. * loader/icon/IconDatabaseNone.cpp:
  6559. (WebCore::IconDatabase::~IconDatabase):
  6560. 2007-09-08 Mark Rowe <mrowe@apple.com>
  6561. More fixes for the Qt and Gtk builds.
  6562. * WebCore.pro: Update for file changes.
  6563. * loader/icon/IconDatabase.cpp: Include errno.h for EDEADLK.
  6564. * loader/icon/PageURLRecord.h:
  6565. 2007-09-08 Justin Garcia <justin.garcia@apple.com>
  6566. Backing my change back in without the changes to VisiblePosition::next
  6567. and previous that weren't necessary to fix the bug and were causing some
  6568. layout test failures. Most of the failures appeared to be fixes but I
  6569. want more time to investigate and have to move to on to another task.
  6570. * editing/Selection.cpp:
  6571. (WebCore::Selection::validate):
  6572. * editing/visible_units.cpp:
  6573. (WebCore::endOfWord):
  6574. 2007-09-08 Brady Eidson <beidson@apple.com>
  6575. Reviewed by Mark Rowe
  6576. Fix the _NSAutoreleaseNoPool() errors on launch - We were using NSFileManager on the secondary
  6577. thread with no NSAutoreleasePool in place
  6578. * loader/icon/IconDatabase.cpp:
  6579. (WebCore::IconDatabase::iconDatabaseSyncThread):
  6580. 2007-09-08 Sam Weinig <sam@webkit.org>
  6581. Add fix to the correct file.
  6582. * loader/icon/SQLDatabase.h:
  6583. * loader/icon/SQLStatement.h:
  6584. 2007-09-08 Sam Weinig <sam@webkit.org>
  6585. Fix Windows build.
  6586. * loader/icon/SQLStatement.h: Disable boolean conversion warning.
  6587. 2007-09-08 Brady Eidson <beidson@apple.com>
  6588. Build fix for non-Mac platforms that use Icon Database
  6589. * loader/icon/IconDatabase.cpp:
  6590. (WebCore::IconDatabase::IconDatabase): Apparently only Mac has the beauty that is pthread_main_np()
  6591. 2007-09-08 Mark Rowe <mrowe@apple.com>
  6592. Build fix.
  6593. * WebCore.xcodeproj/project.pbxproj: Headers used up in WebKit need to be be "private" rather than "project".
  6594. 2007-09-08 Brady Eidson <beidson@apple.com>
  6595. Reviewed by Darin
  6596. <rdar://problem/5434431> - Asynchronous Icon Database
  6597. The IconDatabase API was originally designed to be fully asynchronous - if an icon wasn't read in from disk
  6598. when you asked for it, you would be notified when it was.
  6599. Safari 2 did writes on a background thread, but reads blocked the main thread.
  6600. The current WebCore implementation using SQLite attempted to get rid of the background thread by defering expensive
  6601. writes via timers, but falls short in moderate to extreme usage cases
  6602. Time to make the IconDatabase live up to it's fully asynchronous destiny.
  6603. This should -
  6604. - Make the browser instantly usable while converting Safari 2 icons in the background occurs
  6605. - Remedy any UI slowness/blocking when on slow network home directories
  6606. - Remedy random UI slowness, pauses, and stutters do to random I/O occurring at the exact wrong time or under heavy
  6607. disk usage from swapping or other apps on the system
  6608. - Allow certain long-running procedures to be interruptible (Safari 2 import, reading icons in from disk when trying to quit, etc)
  6609. This will have a noticeable effect on current Safari 2 and Safari 3 beta browsers, including icons not appearing in bookmarks, history,
  6610. or the location field the first time they're asked for, as current released Safari's don't properly listen for these async notifations.
  6611. The second time such a menu or view is brought up, the icon should be there.
  6612. Additionally this includes a SQLite schema change which will be a lot more efficient but will result in the loss of current SQLite icons.
  6613. Converting from Safari 2 style icons will still work.
  6614. WebCore, welcome to multi-threadedness
  6615. * WebCore.exp:
  6616. * WebCore.xcodeproj/project.pbxproj:
  6617. * WebCore.vcproj/WebCore.vcproj:
  6618. * loader/DocumentLoader.cpp:
  6619. (WebCore::DocumentLoader::iconLoadDecisionAvailable): Called when an Icon becomes available that was requested by this
  6620. DocumentLoader (to support the webView:didReceiveIcon: delegate call in WebKit)
  6621. * loader/DocumentLoader.h:
  6622. * loader/FrameLoader.cpp:
  6623. (WebCore::FrameLoader::iconLoadDecisionAvailable): Called from the DocumentLoaders who get notified - if the FrameLoader
  6624. ends up not caring because the WebView has transitioned to a new page, nothing occurs. Otherwise, the FrameLoader possibly
  6625. starts it Icon Loader and possibly sends the webView:didReceiveIcon: delegate call
  6626. (WebCore::FrameLoader::startIconLoader): Instead of "Yes, load the icon now" or "No, don't load it" there is a third possibility -
  6627. "You might be asked to load your icon later." Add supporting logic for receiving this state, and being called a second time
  6628. when the load decision is finally available.
  6629. * loader/FrameLoader.h:
  6630. * loader/FrameLoaderClient.h: Added "registerForIconNotification" which is a way to tell WebViews "The icon you are interested in might
  6631. become available via the generic WebIconDatabaseDidAddIconNotification instead of a targeted delegate call"
  6632. A WebView can then receive the generic notification and pass on it's own targeted delegate call.
  6633. * loader/icon/IconDataCache.cpp: Removed.
  6634. * loader/icon/IconDataCache.h: Removed.
  6635. * loader/icon/IconDatabase.cpp:
  6636. (WebCore::urlForLogging): Cut a URL down in length for sane logging and debugging
  6637. (WebCore::defaultClient): Return the default, empty IconDatabaseClient incase the API doesn't set one.
  6638. Following block of methods are for the Main thread's usage -
  6639. (WebCore::IconDatabase::setClient):
  6640. (WebCore::makeAllDirectories): Small optimization that checks to see if the entire path exists already, and doesn't try to loop
  6641. through each patch component if the full path is already present
  6642. (WebCore::IconDatabase::open): Makes all directories to the target path and kicks off the background thread - nothing more.
  6643. (WebCore::IconDatabase::close): Signals the thread to quit and waits for it to do so
  6644. (WebCore::IconDatabase::removeAllIcons): Purge the icon database
  6645. (WebCore::IconDatabase::iconForPageURL):
  6646. (WebCore::IconDatabase::readIconForPageURLFromDisk):
  6647. (WebCore::IconDatabase::iconURLForPageURL):
  6648. (WebCore::IconDatabase::defaultIcon):
  6649. (WebCore::IconDatabase::retainIconForPageURL):
  6650. (WebCore::IconDatabase::releaseIconForPageURL):
  6651. (WebCore::IconDatabase::setIconDataForIconURL):
  6652. (WebCore::IconDatabase::setIconURLForPageURL):
  6653. (WebCore::IconDatabase::loadDecisionForIconURL): Determine if an icon loader should load now. If the decision is "maybe later", then
  6654. mark the DocumentLoader to be notified later when the final decision is available.
  6655. (WebCore::IconDatabase::iconDataKnownForIconURL): Determine if the actual image data has been read from disk (or set from the loader) for
  6656. icon URL in question
  6657. (WebCore::IconDatabase::setEnabled):
  6658. (WebCore::IconDatabase::isEnabled):
  6659. (WebCore::IconDatabase::setPrivateBrowsingEnabled):
  6660. (WebCore::IconDatabase::isPrivateBrowsingEnabled):
  6661. (WebCore::IconDatabase::delayDatabaseCleanup): Restore this method from a year ago, as asynchronous pruning of icons can now occur on a
  6662. background thread.
  6663. (WebCore::IconDatabase::allowDatabaseCleanup):
  6664. (WebCore::IconDatabase::checkIntegrityBeforeOpening):
  6665. (WebCore::IconDatabase::pageURLMappingCount):
  6666. (WebCore::IconDatabase::retainedPageURLCount):
  6667. (WebCore::IconDatabase::iconRecordCount):
  6668. (WebCore::IconDatabase::iconRecordCountWithData):
  6669. (WebCore::IconDatabase::IconDatabase):
  6670. (WebCore::IconDatabase::~IconDatabase):
  6671. (WebCore::IconDatabase::notifyPendingLoadDecisions): Tell all the registered DocumentLoaders "Hey, we've read in all URL mappings from disk,
  6672. so check to see if you are interested in any of them"
  6673. (WebCore::IconDatabase::notifyPendingLoadDecisionsInternal):
  6674. (WebCore::IconDatabase::wakeSyncThread): Wake the sync thread, if it is idle
  6675. (WebCore::IconDatabase::scheduleOrDeferSyncTimer): Even though we're on a background thread, we still defer writing out to disk during
  6676. periods of high activity
  6677. (WebCore::IconDatabase::syncTimerFired): Call wakeSyncThread()
  6678. Following block of methods may be used by either thread -
  6679. (WebCore::IconDatabase::isOpen):
  6680. (WebCore::IconDatabase::databasePath):
  6681. (WebCore::IconDatabase::defaultDatabaseFilename):
  6682. (WebCore::IconDatabase::getOrCreateIconRecord):
  6683. (WebCore::IconDatabase::getOrCreatePageURLRecord):
  6684. Following block of methods are used by the secondary thread only -
  6685. (WebCore::IconDatabase::importIconURLForPageURL): For the Safari 2 import procedure - write a URL mapping directly out to disk
  6686. (WebCore::IconDatabase::importIconDataForIconURL): For the Safari 2 import procedure - write an Icon directly out to disk
  6687. (WebCore::IconDatabase::shouldStopThreadActivity): To check and see if the thread should stop what it is doing now to do something
  6688. more important (such as quit, or delete all icons)
  6689. (WebCore::IconDatabase::iconDatabaseSyncThreadStart):
  6690. (WebCore::IconDatabase::iconDatabaseSyncThread): Entry point for the background thread
  6691. (WebCore::databaseVersionNumber):
  6692. (WebCore::isValidDatabase):
  6693. (WebCore::createDatabaseTables):
  6694. (WebCore::IconDatabase::performOpenInitialization): Open and validate the SQLite database, making sure it's schema jives with what
  6695. is expected
  6696. (WebCore::IconDatabase::checkIntegrity):
  6697. (WebCore::IconDatabase::performURLImport): Import all the Page URL -> Icon URL mappings from the database. Done "1st thing" on startup,
  6698. this is necessary to be able to give the loader decisions about whether or not it should load icons from the network
  6699. (WebCore::IconDatabase::syncThreadMainLoop): Main loop - sleeps until woken up, then does a read cycle and a write cycle until both cycles
  6700. do no work - then it goes back to sleep.
  6701. (WebCore::IconDatabase::readFromDatabase): Reads icons from the database that clients are waiting on
  6702. (WebCore::IconDatabase::writeToDatabase): Writes any changes page -> icon url mappings to disk, as well as any new image data that has
  6703. been received from the loader
  6704. (WebCore::IconDatabase::pruneUnretainedIcons): Done only once, and only after the first write to the database, this procedure removes all
  6705. icons and page URLs from disk that haven't been retained by any client. Note that the prune can be delayed by utilizing delayDatabaseCleanup()
  6706. (WebCore::IconDatabase::checkForDanglingPageURLs): Usually part of the prune procedure, prunes any pages who point to icons that no longer exist
  6707. in the database
  6708. (WebCore::IconDatabase::removeAllIconsOnThread): Completely purge both the on-disk and in memory records of all icons
  6709. (WebCore::IconDatabase::deleteAllPreparedStatements): Part of removeAllIcons and the thread cleanup procedure
  6710. (WebCore::IconDatabase::cleanupSyncThread): Write out any last remaining writes to disk, close the database, and then end the thread
  6711. (WebCore::IconDatabase::imported): Checks the DB to see if the Safari 2 import has occured
  6712. (WebCore::IconDatabase::setImported): Sets the "Safari 2 imported" flag
  6713. (WebCore::readySQLStatement):
  6714. (WebCore::IconDatabase::setIconURLForPageURLInSQLDatabase): This and the following "SQLDatabase" suffixed methods are pretty self explanatory
  6715. (WebCore::IconDatabase::setIconIDForPageURLInSQLDatabase):
  6716. (WebCore::IconDatabase::removePageURLFromSQLDatabase):
  6717. (WebCore::IconDatabase::getIconIDForIconURLFromSQLDatabase):
  6718. (WebCore::IconDatabase::addIconURLToSQLDatabase):
  6719. (WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
  6720. (WebCore::IconDatabase::removeIconFromSQLDatabase):
  6721. (WebCore::IconDatabase::writeIconSnapshotToSQLDatabase):
  6722. * loader/icon/IconDatabase.h:
  6723. * loader/icon/IconDatabaseClient.h: Added.
  6724. (WebCore::IconDatabaseClient::~IconDatabaseClient):
  6725. (WebCore::IconDatabaseClient::performImport): Perform the Safari 2 import, implemented by WebKit
  6726. (WebCore::IconDatabaseClient::dispatchDidRemoveAllIcons): Send the API notification
  6727. (WebCore::IconDatabaseClient::dispatchDidAddIconForPageURL): Ditto
  6728. * loader/icon/IconDatabaseNone.cpp: Best attempt to keep non icon-DB platforms building
  6729. (WebCore::IconDatabase::defaultDatabaseFilename):
  6730. (WebCore::IconDatabase::readIconForPageURLFromDisk):
  6731. (WebCore::IconDatabase::loadDecisionForIconURL):
  6732. (WebCore::IconDatabase::iconDataKnownForIconURL):
  6733. (WebCore::IconDatabase::setIconURLForPageURL):
  6734. (WebCore::IconDatabase::isEnabled):
  6735. (WebCore::IconDatabase::delayDatabaseCleanup):
  6736. (WebCore::IconDatabase::allowDatabaseCleanup):
  6737. (WebCore::IconDatabase::setClient):
  6738. * loader/icon/IconRecord.cpp: Added.
  6739. (WebCore::IconRecord::IconRecord): IconRecord used to be "IconDataCache" - it is merely a container for the url, timestamp, and image for a site icon.
  6740. It is Shared, and therefore ref counted - PageURLRecords are the owning containers. This is a tricky way to track how many page urls are retaining
  6741. an IconRecord and therefore tracking when we should try to get rid of one.
  6742. (WebCore::IconRecord::~IconRecord):
  6743. (WebCore::IconRecord::image):
  6744. (WebCore::IconRecord::setImageData):
  6745. (WebCore::IconRecord::loadImageFromResource):
  6746. (WebCore::IconRecord::imageDataStatus): Return whether the image data hasn't been read yet, exists in memory, or is absent (site with no icon)
  6747. (WebCore::IconRecord::snapshot): Returns a snapshot of the icon's data - url, timestamp, and image data - to be written to disk
  6748. * loader/icon/IconRecord.h: Added.
  6749. (WebCore::IconSnapshot::IconSnapshot):
  6750. (WebCore::IconRecord::getTimestamp):
  6751. (WebCore::IconRecord::setTimestamp):
  6752. (WebCore::IconRecord::iconURL):
  6753. (WebCore::IconRecord::retainingPageURLs):
  6754. * loader/icon/PageURLRecord.cpp: Added.
  6755. (WebCore::PageURLRecord::PageURLRecord): PageURLRecord is fundamentally a pairing of a Page URL to an Icon. It has manual ref counting for the sake
  6756. of "retainIconForPageURL" and "releaseIconForPageURL", and can provide a quick snapshot of it's Page URL -> Icon URL mapping for writing to
  6757. the database
  6758. (WebCore::PageURLRecord::setIconRecord):
  6759. (WebCore::PageURLRecord::snapshot):
  6760. * loader/icon/PageURLRecord.h: Added.
  6761. (WebCore::PageURLSnapshot::PageURLSnapshot):
  6762. (WebCore::PageURLRecord::url):
  6763. (WebCore::PageURLRecord::PageURLRecord::iconRecord):
  6764. (WebCore::PageURLRecord::retain):
  6765. (WebCore::PageURLRecord::release):
  6766. (WebCore::PageURLRecord::retainCount):
  6767. * platform/SharedBuffer.cpp:
  6768. (WebCore::SharedBuffer::copy): Added a deep copy method for the purposes of handing icon data across the thread boundary into the icon database
  6769. * platform/SharedBuffer.h:
  6770. * platform/graphics/svg/SVGImageEmptyClients.h:
  6771. (WebCore::SVGEmptyFrameLoaderClient::registerForIconNotification):
  6772. * platform/win/TemporaryLinkStubs.cpp:
  6773. (WebCore::callOnMainThread): Only other IconDatabase utilizing platform - keep their build going
  6774. 2007-09-07 David Kilzer <ddkilzer@apple.com>
  6775. Reviewed by Timothy Hatcher.
  6776. Housekeeping. No test required.
  6777. * bindings/objc/WebScriptObjectInternal.h: Removed unused file.
  6778. * bindings/objc/WebScriptObjectPrivate.h: Updated copyright statement.
  6779. 2007-09-07 Justin Garcia <justin.garcia@apple.com>
  6780. Rolling out my changes from r25421 while I investigate the layout test failures
  6781. they caused.
  6782. * editing/Selection.cpp:
  6783. (WebCore::Selection::validate):
  6784. * editing/VisiblePosition.cpp:
  6785. (WebCore::VisiblePosition::next):
  6786. (WebCore::VisiblePosition::previous):
  6787. (WebCore::VisiblePosition::lastEditablePositionAtOrBefore):
  6788. (WebCore::VisiblePosition::firstEditablePositionAtOrAfter):
  6789. * editing/VisiblePosition.h:
  6790. * editing/visible_units.cpp:
  6791. (WebCore::endOfWord):
  6792. (WebCore::previousWordPosition):
  6793. (WebCore::nextWordPosition):
  6794. (WebCore::startOfLine):
  6795. (WebCore::endOfLine):
  6796. (WebCore::previousSentencePosition):
  6797. (WebCore::nextSentencePosition):
  6798. 2007-09-05 Geoffrey Garen <ggaren@apple.com>
  6799. Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
  6800. Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
  6801. memory cache, or a very tiny one
  6802. Added a client callback to notify WebKit when the first navigation has
  6803. taken place. "Navigation" here means a transition from one page to
  6804. another that ends up in the back/forward list.
  6805. WebKit Mac uses this notification to grow its cache model under certain
  6806. circumstances.
  6807. * loader/FrameLoader.cpp:
  6808. (WebCore::FrameLoader::addBackForwardItemClippedAtTarget):
  6809. * loader/FrameLoaderClient.h:
  6810. * platform/graphics/svg/SVGImageEmptyClients.h:
  6811. (WebCore::SVGEmptyFrameLoaderClient::didPerformFirstNavigation): Ah,
  6812. SVGEmptyFrameLoaderClient, my old friend.
  6813. 2007-09-07 Adele Peterson <adele@apple.com>
  6814. Reviewed by Dave Harrison.
  6815. Fix for <rdar://problem/5428427> Wrong characters are re-converted after doing reconversion with Kotoeri
  6816. Revert change for<rdar://problem/5279521> and add nil checks for the result of TextIterator::rangeFromLocationAndLength
  6817. TextIterator::exitNode shouldn't require the m_lastTextNode to be true, but we can't change that without making the logic in _web_attributedStringFromRange match.
  6818. We'll get that for free when we switch to use TextIterator in _web_attributedStringFromRange.
  6819. * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyBlockStyle): Added nil checks.
  6820. * editing/IndentOutdentCommand.cpp: (WebCore::IndentOutdentCommand::indentRegion): ditto.
  6821. * editing/TextIterator.cpp: (WebCore::TextIterator::exitNode): Re-added check for m_lastTextNode before emitting newline.
  6822. 2007-09-07 Ada Chan <adachan@apple.com>
  6823. <rdar://problem/5395928> Need to be able to handle context menu item selection by index
  6824. Reviewed by Beth.
  6825. * platform/ContextMenu.h: Added method to retrieve context menu item by index
  6826. * platform/win/ContextMenuWin.cpp:
  6827. (WebCore::ContextMenu::ContextMenu): call setPlatformDescription() since that will handle
  6828. adding the MNS_NOTIFYBYPOS style to the context menu.
  6829. (WebCore::contextMenuItemByIdOrPosition): helper method so we don't have to duplicate code
  6830. between itemWithAction() and itemAtIndex().
  6831. (WebCore::ContextMenu::itemWithAction):
  6832. (WebCore::ContextMenu::itemAtIndex):
  6833. (WebCore::ContextMenu::setPlatformDescription): add MNS_NOTIFYBYPOS style to the context menu
  6834. so we will get notified by menu position through WM_MENUCOMMAND when the item is selected.
  6835. 2007-09-07 Justin Garcia <justin.garcia@apple.com>
  6836. Reviewed by Darin.
  6837. <rdar://problem/5057506> Double-clicking after ToDo content doesn't select the paragraph break
  6838. * editing/Selection.cpp:
  6839. (WebCore::Selection::validate):
  6840. Moved the code that moves across a paragraph boundary
  6841. when expanding selections by word granularity from
  6842. endOfWord to here.
  6843. In the word and paragraph granularity cases, if the
  6844. end of the selection is at the end of the last paragraph
  6845. in the last cell of a block table, expand it so that
  6846. it ends at the start of the paragraph after the table,
  6847. instead of just after the table, so that ToDo content
  6848. gets the same double/tripled click behavior that normal
  6849. paragraphs get (added two testcases).
  6850. When expanding the selection to include paragraph
  6851. breaks, pass VisiblePosition::next true so that it
  6852. doesn't change editability.
  6853. * editing/VisiblePosition.cpp:
  6854. (WebCore::VisiblePosition::next): Renamed the bool because it's now also
  6855. used to keep non-editable positions non-editable.
  6856. (WebCore::VisiblePosition::previous): Ditto.
  6857. (WebCore::VisiblePosition::lastPositionWithSameEditabilityAtOrBefore):
  6858. Renamed this function and made it also work with non-editable positions.
  6859. (WebCore::VisiblePosition::firstPositionWithSameEditabilityAtOrAfter):
  6860. Ditto.
  6861. * editing/VisiblePosition.h:
  6862. * editing/visible_units.cpp:
  6863. (WebCore::endOfWord): Called the renamed function.
  6864. (WebCore::previousWordPosition): Ditto.
  6865. (WebCore::nextWordPosition): Ditto.
  6866. (WebCore::startOfLine): Ditto.
  6867. (WebCore::endOfLine): Ditto.
  6868. (WebCore::previousSentencePosition): Ditto.
  6869. (WebCore::nextSentencePosition): Ditto.
  6870. 2007-09-07 Brady Eidson <beidson@apple.com>
  6871. Reviewed by Sam
  6872. <rdar://problem/5089241> - ASSERT and other funky effects in IconLoader with large 404 pages
  6873. There were two problems:
  6874. 1 - I originally didn't expect SubresourceLoader to keep pulling in data after it received a 404 response,
  6875. but if the server sends back a complex 404 page, the loader did just that. That could result in the
  6876. IconLoader "finishing" twice
  6877. 2 - In this case, the long messy 404 page would be committed to the database as image data. This would
  6878. result in wasted space on disk, wasted space in RAM, and wasting processor time trying to parse 50k+
  6879. of HTML as image data
  6880. Fix is two parts - 1, monitor the "m_loadIsInProgress" flag and 2, make ::finishLoading() take an actual
  6881. SharedBuffer argument that is what should be committed to the database so the ResourceHandle is unnecessary
  6882. * loader/icon/IconLoader.cpp:
  6883. (WebCore::IconLoader::didReceiveResponse): If the response is not valid, commit null data
  6884. (WebCore::IconLoader::didFail): If we've already finished loading once (the 404 response), don't
  6885. finish again!
  6886. (WebCore::IconLoader::didFinishLoading): Ditto
  6887. (WebCore::IconLoader::finishLoading): Take a SharedBuffer argumnt as the actual data to commit
  6888. * loader/icon/IconLoader.h: Add a SharedBuffer arg to ::finishLoading()
  6889. 2007-09-07 Brady Eidson <beidson@apple.com>
  6890. Reviewed by Darin
  6891. Inline the in-header definitions for non-Mac platforms
  6892. * platform/AutodrainedPool.h:
  6893. (WebCore::AutodrainedPool::AutodrainedPool):
  6894. (WebCore::AutodrainedPool::~AutodrainedPool):
  6895. (WebCore::AutodrainedPool::cycle):
  6896. 2007-09-07 Brady Eidson <beidson@apple.com>
  6897. Reviewed by Darin
  6898. Add some AutoreleasePool and Threading utilities in preparation for the multi-threaded
  6899. fix for <rdar://problem/5434431>
  6900. AutodrainedPool wraps an NSAutoreleasePool and tracks a "cycle" count. This allows clients
  6901. in WebCore to simply call ::cycle() and after a preset number of iterations the pool will drain
  6902. and recreate the underlying NSAutoreleasePool
  6903. Threading utilities include C++ wrappers for pthread mutexes and conditions, as well as a generic
  6904. "callOnMainThread()" function for any non-main thread to use.
  6905. * platform/AutodrainedPool.h: Added.
  6906. (WebCore::AutodrainedPool::AutodrainedPool): Empty implementations for all non-mac platforms
  6907. (WebCore::AutodrainedPool::~AutodrainedPool): ditto
  6908. (WebCore::AutodrainedPool::cycle): ditto
  6909. * platform/mac/AutodrainedPool.mm: Added.
  6910. (WebCore::AutodrainedPool::AutodrainedPool):
  6911. (WebCore::AutodrainedPool::~AutodrainedPool):
  6912. (WebCore::AutodrainedPool::cycle): Keep track of number of cycles, and drain/recreate the pool if the
  6913. cycle limit is hit
  6914. * platform/Threading.h: Added.
  6915. (WebCore::Mutex::Mutex): C++ wrapper for pthread_mutex
  6916. (WebCore::Mutex::~Mutex):
  6917. (WebCore::Mutex::lock):
  6918. (WebCore::Mutex::tryLock):
  6919. (WebCore::Mutex::unlock):
  6920. (WebCore::MutexLocker::MutexLocker): Handles automatically locking/unlocking a Mutex (for early returns
  6921. from a function, for example)
  6922. (WebCore::MutexLocker::~MutexLocker):
  6923. (WebCore::ThreadCondition::ThreadCondition): C++ wrapper for pthread_condition
  6924. (WebCore::ThreadCondition::~ThreadCondition):
  6925. (WebCore::ThreadCondition::wait):
  6926. (WebCore::ThreadCondition::signal):
  6927. (WebCore::ThreadCondition::broadcast):
  6928. * platform/mac/Threading.mm: Added.
  6929. (-[WebCoreFunctionWrapper initWithFunction:]): Obj-C implementation of "callOnMainThread"
  6930. (-[WebCoreFunctionWrapper _call]):
  6931. (WebCore::callOnMainThread):
  6932. 2007-09-07 George Staikos <staikos@kde.org>
  6933. Fix typo.
  6934. * loader/ProgressTracker.h:
  6935. (WebCore::ProgressTracker::totalPageAndResourceBytesToLoad):
  6936. 2007-09-07 Qing Zhao <qing@staikos.net>
  6937. Reviewed by Anders and George.
  6938. Add accessors for these two variables.
  6939. * loader/ProgressTracker.h:
  6940. (WebCore::ProgressTracker::totalPageAndResourseBytesToLoad):
  6941. (WebCore::ProgressTracker::totalBytesReceived):
  6942. 2007-09-06 Tristan O'Tierney <tristan@apple.com>
  6943. Reviewed by Maciej Stachowiak.
  6944. <rdar://problem/5333496> Back button stopped working on sfgate.com (14957)
  6945. This fix is specifically targted to address sfgate.com and reuters.com with minimal
  6946. impact to other areas of the frameloader. It does not cause any regression tests to fail.
  6947. I've added two layout tests: One to detect this particular bug, and one to address
  6948. a secondary issue: if an iframe navigation occurs during onload by a timeout an
  6949. additional history item is added, similarly to firefox. We tried to match firefox
  6950. more than IE with this fix but did gain a little bit of IE compatability.
  6951. Tests: http/tests/navigation/onload-navigation-iframe-timeout.html
  6952. http/tests/navigation/onload-navigation-iframe.html
  6953. * dom/Document.h:
  6954. (WebCore::Document::processingLoadEvent):
  6955. Return the m_processingLoadEvent boolean so FrameLoader knows
  6956. that the document is in the middle of calling <body onload>
  6957. * html/HTMLFrameOwnerElement.cpp:
  6958. (WebCore::HTMLFrameOwnerElement::HTMLFrameOwnerElement):
  6959. * html/HTMLFrameOwnerElement.h:
  6960. (WebCore::HTMLFrameOwnerElement::createdByParser):
  6961. (WebCore::HTMLFrameOwnerElement::setCreatedByParser):
  6962. Added support for a new member variable of frame elements: m_createdByParser.
  6963. This lets us specifically target the fix to only iframes created via JS
  6964. and not in-document.
  6965. * loader/FrameLoader.cpp:
  6966. (WebCore::FrameLoader::FrameLoader):
  6967. Initialize m_navigationDuringLoad to false
  6968. (WebCore::FrameLoader::provisionalLoadStarted):
  6969. Determine if the load we're about to start is occuring during
  6970. an onload.
  6971. (WebCore::FrameLoader::updateHistoryForStandardLoad):
  6972. If the current frameloader is for a child frame, and the navigation is occuring
  6973. during an onload update the current history item rather than adding a new one.
  6974. * loader/FrameLoader.h:
  6975. Added a new member variable, m_navigationDuringLoad to track
  6976. the navigation status during the on load, rather than trying to determine
  6977. the status after (which is nearly impossible due to a new runloop spin).
  6978. 2007-09-06 David Kilzer <ddkilzer@apple.com>
  6979. Reviewed by Darin.
  6980. The implementation of BackForwardList::clearPageCache() was removed in r21793.
  6981. It's now safe to remove it from the header.
  6982. * history/BackForwardList.h: Removed clearPageCache().
  6983. 2007-09-06 Anders Carlsson <andersca@apple.com>
  6984. Reviewed by Ada.
  6985. <rdar://problem/5457844>
  6986. Crash when using mouse wheel with plug-ins disabled.
  6987. Null check the widget.
  6988. * page/EventHandler.cpp:
  6989. (WebCore::EventHandler::handleWheelEvent):
  6990. 2007-09-06 Anders Carlsson <andersca@apple.com>
  6991. Reviewed by Mitz.
  6992. Small tweak.
  6993. * plugins/win/PluginStreamWin.cpp:
  6994. (WebCore::PluginStreamWin::startStream):
  6995. 2007-09-06 Anders Carlsson <andersca@apple.com>
  6996. Reviewed by Adam and Steve.
  6997. <rdar://problem/5459321>
  6998. ADOBE: Safari 3 on Windows is passing bogus values in stream->headers in NPP_NewStream, causing Flash Player to crash.
  6999. Serialize the headers into a stream and pass it to NPP_NewStream in stream->headers.
  7000. * plugins/win/PluginStreamWin.cpp:
  7001. (WebCore::PluginStreamWin::startStream):
  7002. * plugins/win/PluginStreamWin.h:
  7003. 2007-09-06 Darin Adler <darin@apple.com>
  7004. Reviewed by Hyatt.
  7005. - fix http://bugs.webkit.org/show_bug.cgi?id=15153
  7006. REGRESSION: Assertion failure in FrameView::scheduleRelayout() (m_frame->view() == this)
  7007. Back out the willRemove() part of the previous patch.
  7008. It was incorrect and not needed to fix the bug anyway.
  7009. * dom/Document.cpp: (WebCore::Document::detach): Remove willRemove().
  7010. * loader/FrameLoader.cpp: (WebCore::FrameLoader::clear): Put the willRemove() call
  7011. back here where it was originally before the previous fix.
  7012. * history/CachedPage.cpp: (WebCore::CachedPage::clear):
  7013. * page/Frame.cpp:
  7014. (WebCore::Frame::setView):
  7015. (WebCore::Frame::setDocument):
  7016. Added FIXMEs about the fact that we call detach() on the document but not willRemove().
  7017. 2007-09-05 Timothy Hatcher <timothy@apple.com>
  7018. Reviewed by Darin.
  7019. Changed the blocked exception log message to match AppKit's blocked exception message.
  7020. * platform/mac/BlockExceptions.mm:
  7021. (ReportBlockedObjCException):
  7022. 2007-09-06 Darin Adler <darin@apple.com>
  7023. Reviewed by Hyatt.
  7024. - <rdar://problem/5457865> REGRESSION (9A527): Safari crashes when opening a page
  7025. that immediately redirects to a PDF
  7026. I don't know how to make an automated test that trips over this.
  7027. The immediate cause of this regression was making a back/forward list entry in
  7028. this case. Earlier, the quick redirect would not results in a separate entry.
  7029. That's possibly a bug too, but it's better to fix the crash first.
  7030. The page cache was putting the document into a strange state: Still attached but
  7031. with the renderer set to 0. There was no good reason to do this, so got rid of it.
  7032. Moved the responsibility to the caller of not calling detach() when moving into
  7033. the page cache. This is more of a frame loader thing than a document thing.
  7034. * dom/Document.cpp: (WebCore::Document::detach): Added assertions that this is
  7035. only called on a document that's attached and not in the page cache. Also moved
  7036. the call to willRemove in here, so that callers can't make the mistake of not
  7037. calling that function. Removed the incorrectly-positioned code that made this
  7038. function do less if it was called on a document in the page cache.
  7039. * history/CachedPage.cpp: (WebCore::CachedPage::clear): Removed the code to handle
  7040. a document with a renderer of 0. There was no need to put the document into this
  7041. state. Any document in the page cache will always be "attached".
  7042. * loader/FrameLoader.cpp: (WebCore::FrameLoader::clear): Added a check to prevent
  7043. from calling an unnecessary cancelParsing() on a document that's in the page cache
  7044. and guard the call to detach() with a check of attached(), like all other calls to
  7045. detach() on DOM objects.
  7046. * page/Frame.cpp:
  7047. (WebCore::Frame::setView): Added a missing check of attached(), like all other
  7048. calls to detach() on DOM objects. Also added code to not call detach() on the
  7049. document when it's in the page cache.
  7050. (WebCore::Frame::setDocument): This call site already had the attached() check,
  7051. but was missing the page cache check.
  7052. 2007-09-05 David Harrison <harrison@apple.com>
  7053. Reviewed by Darin.
  7054. Follow up on my fix for <rdar://problem/5306171>.
  7055. My first patch (r25373) broke svg/custom/stroke-width-click.svg.
  7056. * editing/TextIterator.cpp:
  7057. (WebCore::TextIterator::shouldRepresentNodeOffsetZero):
  7058. Add currPos.isNotNull() check because positions in non-html content (like svg)
  7059. do not have visible positions, and we don't want to emit for them either.
  7060. 2007-09-06 Mitz Pettel <mitz@webkit.org>
  7061. Reviewed by Adam Roben.
  7062. - fix http://bugs.webkit.org/show_bug.cgi?id=14685
  7063. <rdar://problem/5349755> text-align affects <select> button but not its drop-down menu
  7064. * platform/PlatformString.h:
  7065. (WebCore::String::defaultWritingDirection):
  7066. * platform/StringImpl.cpp:
  7067. (WebCore::StringImpl::defaultWritingDirection): Moved textDirectionForParagraph()
  7068. from RenderMenuList.cpp here.
  7069. * platform/StringImpl.h:
  7070. * platform/win/PopupMenuWin.cpp:
  7071. (WebCore::PopupMenu::itemWritingDirectionIsNatural): Changed to return 'true'.
  7072. (WebCore::PopupMenu::paint): Changed to use natural directionality for menu
  7073. items.
  7074. * rendering/RenderMenuList.cpp:
  7075. (WebCore::RenderMenuList::adjustInnerStyle): Use defaultWritingDirection.
  7076. 2007-09-06 Maciej Stachowiak <mjs@apple.com>
  7077. Reviewed by Oliver Hunt.
  7078. - fixed <rdar://problem/5455457> REGRESSION (9A527-9A535): Colloquy crash on launch in WebCoreScriptDebugger initWithDelegate (with announce.js plug-in installed)
  7079. * page/mac/FrameMac.mm:
  7080. (WebCore::Frame::windowScriptObject): Ensure that -[WebView
  7081. windowScriptObject] and -[WebFrame windowObject] return null until
  7082. the windowScriptObjectAvailable: delegate method is sent.
  7083. 2007-09-05 David Harrison <harrison@apple.com>
  7084. Reviewed by Kevin Decker.
  7085. <rdar://problem/5306171> Mail: The first return after an attachment in multipart/mixed message is lost
  7086. Test added: editing/selection/toString-1.html
  7087. Source changes:
  7088. * editing/TextIterator.cpp:
  7089. (WebCore::TextIterator::shouldRepresentNodeOffsetZero):
  7090. - Remove outdated and erroneous check for m_lastTextNode.
  7091. - Fix VisiblePosition check to look for line diff. Simple position diff gives the
  7092. wrong answer when the start is table/0 and the current is the first position
  7093. inside the content of the table.
  7094. 2007-09-04 Brett Wilson <brettw@chromium.org>
  7095. Reviewed by Maciej Stachowiak.
  7096. http://bugs.webkit.org/show_bug.cgi?id=15072
  7097. Bug 15072: Fix ImageDecoder.cpp to not copy incoming data
  7098. Change ImageDecoder::setData to take a SharedBuffer*.
  7099. * platform/graphics/cairo/ImageSourceCairo.cpp:
  7100. (WebCore::ImageSource::setData):
  7101. * platform/image-decoders/ImageDecoder.h:
  7102. (WebCore::RGBA32Buffer::bytes):
  7103. (WebCore::RGBA32Buffer::height):
  7104. (WebCore::ImageDecoder::setData):
  7105. * platform/image-decoders/gif/GIFImageDecoder.cpp:
  7106. (WebCore::GIFImageDecoder::setData):
  7107. (WebCore::GIFImageDecoder::frameCount):
  7108. (WebCore::GIFImageDecoder::decode):
  7109. (WebCore::GIFImageDecoder::decodingHalted):
  7110. (WebCore::GIFImageDecoder::initFrameBuffer):
  7111. * platform/image-decoders/gif/GIFImageDecoder.h:
  7112. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  7113. (WebCore::JPEGImageDecoder::setData):
  7114. (WebCore::JPEGImageDecoder::decode):
  7115. * platform/image-decoders/jpeg/JPEGImageDecoder.h:
  7116. * platform/image-decoders/png/PNGImageDecoder.cpp:
  7117. (WebCore::PNGImageDecoder::setData):
  7118. (WebCore::PNGImageDecoder::decode):
  7119. (WebCore::PNGImageDecoder::headerAvailable):
  7120. (WebCore::PNGImageDecoder::rowAvailable):
  7121. * platform/image-decoders/png/PNGImageDecoder.h:
  7122. 2007-09-04 David Hyatt <hyatt@apple.com>
  7123. Fix for <rdar://problem/5271213>, resizing iChat window is slower than in
  7124. Tiger. This patch implements a fast scaling mode that can be used by
  7125. WebViews, e.g., during window resizing.
  7126. Reviewed by John Sullivan
  7127. * WebCore.exp:
  7128. * WebCore.xcodeproj/project.pbxproj:
  7129. * page/Frame.cpp:
  7130. (WebCore::FramePrivate::FramePrivate):
  7131. * page/Page.cpp:
  7132. (WebCore::Page::Page):
  7133. (WebCore::Page::inLowQualityImageInterpolationMode):
  7134. (WebCore::Page::setInLowQualityImageInterpolationMode):
  7135. * page/Page.h:
  7136. * platform/graphics/GraphicsContext.cpp:
  7137. (WebCore::GraphicsContext::drawImage):
  7138. * platform/graphics/GraphicsContext.h:
  7139. (WebCore::GraphicsContext::setUseLowQualityImageInterpolation):
  7140. (WebCore::GraphicsContext::useLowQualityImageInterpolation):
  7141. * platform/graphics/cg/GraphicsContextCG.cpp:
  7142. (WebCore::GraphicsContext::setUseLowQualityImageInterpolation):
  7143. (WebCore::GraphicsContext::useLowQualityImageInterpolation):
  7144. * rendering/RenderImage.cpp:
  7145. (WebCore::RenderImage::paint):
  7146. 2007-09-04 Brady Eidson <beidson@apple.com>
  7147. Reviewed by Adam
  7148. Some SQLite tweaks for debugging
  7149. -In debug builds, track the thread that opened the database and enforce that any statements
  7150. that operate on the SQLDatabase do so from the thread that opened it
  7151. -Track whether or not a transaction is in progress for the SQLDatabase to find cases where
  7152. someone opens a new transaction while there is still one outstanding (a SQLite logic error)
  7153. * loader/icon/SQLDatabase.cpp:
  7154. (WebCore::SQLDatabase::SQLDatabase):
  7155. (WebCore::SQLDatabase::open): Track the opening thread. Also, return false if the DB failed to
  7156. open instead of trying to run a PRAGMA on it!
  7157. (WebCore::SQLDatabase::close): Reset the opening thread
  7158. * loader/icon/SQLDatabase.h:
  7159. (WebCore::SQLDatabase::transactionInProgress):
  7160. (WebCore::SQLDatabase::sqlite3Handle): For access to the raw sqlite3* handle to do a thread
  7161. safety check
  7162. * loader/icon/SQLStatement.cpp:
  7163. (WebCore::SQLStatement::prepare): Use the new sqlite3Handle accessor
  7164. (WebCore::SQLStatement::step): Ditto
  7165. * loader/icon/SQLTransaction.cpp:
  7166. (WebCore::SQLTransaction::SQLTransaction): Removed the c'tor form that could automatically
  7167. begin the transaction - never used and shouldn't be in practice!
  7168. (WebCore::SQLTransaction::begin): Maintain the transaction-in-progress flag on the DB
  7169. (WebCore::SQLTransaction::commit): Ditto
  7170. (WebCore::SQLTransaction::rollback): Ditto
  7171. * loader/icon/SQLTransaction.h:
  7172. 2007-09-04 David Harrison <harrison@apple.com>
  7173. Reviewed by Maciej and John.
  7174. <rdar://problem/5452675> CrashTracer: [USER] 10 crashes in Mail at com.apple.WebCore: WebCore::Node::nodeIndex const + 6
  7175. * editing/InsertParagraphSeparatorCommand.cpp:
  7176. (WebCore::InsertParagraphSeparatorCommand::doApply):
  7177. Adjust pos to pos.downstream() after the refNode is calculated, but before the insertion. Doing it earlier
  7178. undid the logic of positionAvoidingSpecialElementBoundary(). The downstream is still needed just to set the
  7179. ending selection.
  7180. 2007-09-04 Antti Koivisto <antti@apple.com>
  7181. Reviewed by Maciej.
  7182. Fix <rdar://problem/5452112>
  7183. REGRESSION: Initially focused textfield on www.mac.com login page has no insertion point, and doesn't accept typed characters
  7184. Use updateLayoutIgnorePendingStylesheets() instead of updateLayout(). We need to have rendering to set input focus.
  7185. Test: fast/forms/focus-style-pending.html
  7186. * dom/Element.cpp:
  7187. (WebCore::Element::focus):
  7188. 2007-09-04 Girish Ramakrishnan <girish@trolltech.com>
  7189. Reviewed by Simon.
  7190. Fixed Qt build on Windows
  7191. * html/HTMLFormElement.cpp:
  7192. (WebCore::pathGetFilename):
  7193. 2007-09-03 David Harrison <harrison@apple.com>
  7194. Reviewed by Kevin Decker.
  7195. <rdar://problem/5456785> REGRESSION (r15963-r15970): Heading text not placed in VoiceOver Item Chooser (15132)
  7196. * bridge/mac/WebCoreAXObject.mm:
  7197. (-[WebCoreAXObject title]):
  7198. For headings, return the text under the element instead of nil.
  7199. 2007-08-20 Oleg Sukhodolsky <son.two@gmail.com>
  7200. Reviewed by Mark.
  7201. WebKitQt/WebCoreSupport should not be added to INCLUDEPATH for gdk-port
  7202. * WebCore.pro:
  7203. 2007-09-03 Mark Rowe <mrowe@apple.com>
  7204. Reviewed by Tim Hatcher.
  7205. <rdar://problem/5452164> Production build with in symbols directory has no debug info
  7206. Enable debug symbol generation on all build configurations. Production builds are stripped
  7207. of symbols by Xcode during deployment post-processing.
  7208. * Configurations/Base.xcconfig:
  7209. * WebCore.xcodeproj/project.pbxproj:
  7210. 2007-09-02 Brady Eidson <beidson@apple.com>
  7211. Reviewed by John Sullivan and Mark Rowe
  7212. Groundwork for support for monitoring IconDatabase in-memory statistics
  7213. * WebCore.exp:
  7214. * loader/icon/IconDatabase.cpp:
  7215. (WebCore::IconDatabase::pageURLMappingCount): Stub for now
  7216. (WebCore::IconDatabase::retainedPageURLCount): Ditto
  7217. (WebCore::IconDatabase::iconRecordCount): Ditto
  7218. (WebCore::IconDatabase::iconRecordCountWithData): Ditto
  7219. * loader/icon/IconDatabase.h:
  7220. 2007-09-02 Mark Rowe <mrowe@apple.com>
  7221. Reviewed by Antti.
  7222. <rdar://problem/5454704> WebKit seems to get too-narrow widths for "Monotype Corsiva", so lays out incorrectly
  7223. * platform/mac/FontDataMac.mm:
  7224. (WebCore::FontData::determinePitch): Work around NSFont incorrectly reporting Monotype Corsiva as fixed pitch.
  7225. 2007-09-01 Darin Adler <darin@apple.com>
  7226. - rolled out fix for bug 12988 because it broke getElementById in a layout test
  7227. I'm working on a new fix.
  7228. * dom/Document.cpp: Rolled out.
  7229. 2007-09-01 Oliver Hunt <oliver@apple.com>
  7230. Reviewed by Sam.
  7231. <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
  7232. Adding a new EditorClient method so it is possible to inform WebKit of focus changes.
  7233. Also added new virtual method Node::shouldUseInputMethod to allow us to trivially check
  7234. whether an input method should be used when processing input for the currently focused
  7235. Node.
  7236. * bridge/EditorClient.h:
  7237. * dom/Node.cpp:
  7238. (WebCore::Node::shouldUseInputMethod):
  7239. * dom/Node.h:
  7240. * html/HTMLInputElement.cpp:
  7241. (WebCore::HTMLInputElement::shouldUseInputMethod):
  7242. * html/HTMLInputElement.h:
  7243. * html/HTMLTextAreaElement.cpp:
  7244. (WebCore::HTMLTextAreaElement::shouldUseInputMethod):
  7245. * html/HTMLTextAreaElement.h:
  7246. * page/FocusController.cpp:
  7247. (WebCore::FocusController::setFocusedNode):
  7248. * platform/graphics/svg/SVGImageEmptyClients.h:
  7249. (WebCore::SVGEmptyEditorClient::setInputMethodState):
  7250. 2007-09-01 Rob Buis <buis@kde.org>
  7251. Reviewed by Darin.
  7252. http://bugs.webkit.org/show_bug.cgi?id=12988
  7253. First element (in document order) is not returned when other duplicate ID-ed elements were created first
  7254. Reset the element id cache when id's are added or removed and there
  7255. are duplicates for that id.
  7256. Tests: fast/dom/duplicate-ids-document-order.html
  7257. * dom/Document.cpp:
  7258. (WebCore::Document::getElementById):
  7259. (WebCore::Document::addElementById):
  7260. (WebCore::Document::removeElementById):
  7261. 2007-09-01 Rob Buis <buis@kde.org>
  7262. Reviewed by Darin.
  7263. http://bugs.webkit.org/show_bug.cgi?id=15083
  7264. Some symbols in WebKit do not need to be exported
  7265. Do not export these symbols.
  7266. * dom/QualifiedName.cpp:
  7267. (WebCore::hashComponents):
  7268. * dom/XMLTokenizer.cpp:
  7269. (WebCore::toString):
  7270. (WebCore::getTokenizer):
  7271. * history/HistoryItem.cpp:
  7272. (WebCore::defaultNotifyHistoryItemChanged):
  7273. * platform/Arena.cpp:
  7274. (WebCore::CeilingLog2):
  7275. * platform/graphics/Color.cpp:
  7276. (WebCore::calcHue):
  7277. * platform/graphics/Path.cpp:
  7278. (WebCore::pathLengthApplierFunction):
  7279. * platform/graphics/cg/PathCG.cpp:
  7280. (WebCore::CGPathToCFStringApplierFunction):
  7281. (WebCore::CFStringFromCGPath):
  7282. * rendering/RenderText.cpp:
  7283. (WebCore::isSpaceAccordingToStyle):
  7284. 2007-08-31 Alice Liu <alice.liu@apple.com>
  7285. Reviewed by Tim Hatcher.
  7286. Fixed <rdar://problem/5420682> Mail crashes at WebCore::InsertLineBreakCommand::doApply() after dropping a selected image over container's close box
  7287. * editing/DeleteButtonController.cpp:
  7288. (WebCore::DeleteButtonController::show):
  7289. Factored out the code in ::show() that created and styled the elements of the Deletion UI
  7290. (WebCore::DeleteButtonController::createDeletionUI):
  7291. Neglecting to move the append of the deletionUI elements into the same clause that handles the creation
  7292. of them ended up creating multiple elements at were repeatedly appended to the target, resulting in a
  7293. bloated table deletion UI which was slow to show and hide.
  7294. * editing/DeleteButtonController.h:
  7295. (WebCore::DeleteButtonController::enabled):
  7296. Restore this function to how it used to be pre-r25305, sans asserts
  7297. * editing/EditCommand.cpp:
  7298. Add disable/enable sandwich when undoing/redoing commands too
  7299. (WebCore::EditCommand::unapply):
  7300. (WebCore::EditCommand::reapply):
  7301. 2007-08-31 Antti Koivisto <antti@apple.com>
  7302. Reviewed by Anders.
  7303. Fix <rdar://problem/5452943>
  7304. REGRESSION (r25283): Reproducible crash in HTMLObjectElement::getInstance under guard malloc
  7305. Calling updateLayoutIgnorePendingStylesheets() may do arbitrary things to render tree so
  7306. no RenderObjects can be cached over it.
  7307. * html/HTMLEmbedElement.cpp:
  7308. (WebCore::findWidgetRenderer):
  7309. (WebCore::HTMLEmbedElement::getInstance):
  7310. * html/HTMLObjectElement.cpp:
  7311. (WebCore::HTMLObjectElement::getInstance):
  7312. 2007-08-31 Anders Carlsson <andersca@apple.com>
  7313. Reviewed by Mitz.
  7314. <rdar://problem/5443936>
  7315. Crash after QT movie completes playback at apple.com/imac
  7316. If the plug-in or one of its children have focus, set it to NULL to prevent the web view window from getting the focus,
  7317. which can cause a layout to happen while in HTMLObjectElement::detach. (This is what we do on the Mac).
  7318. * plugins/win/PluginViewWin.cpp:
  7319. (WebCore::PluginViewWin::setParent):
  7320. 2007-08-30 Adele Peterson <adele@apple.com>
  7321. Reviewed by Justin.
  7322. Fix for <rdar://problem/5450600> REGRESSION: can't paste in textfield if its in a body that has user-select:none set (affects widgets)
  7323. Test: editing/pasteboard/paste-plaintext-user-select-none.html
  7324. * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplacementFragment::insertFragmentForTestRendering):
  7325. Copy the user-select style from the current selection node and apply it so it is considered during the test rendering.
  7326. This is important since we recently changed user-select to be inherited. When we consider valid VisiblePositions for the test rendering,
  7327. we need to have the correct user-select value that will actually be used for the real insertion.
  7328. 2007-08-31 Anders Carlsson <andersca@apple.com>
  7329. Reviewed by Oliver.
  7330. <rdar://problem/5423939>
  7331. http://bugs.webkit.org/show_bug.cgi?id=15013
  7332. ASSERTION FAILED !m_inDestructor in WebCore::Shared<WebCore::PluginStreamWin>::ref() on Windows
  7333. Protect the stream in case it's destroyed by the plug-in.
  7334. * plugins/win/PluginStreamWin.cpp:
  7335. (WebCore::PluginStreamWin::didReceiveData):
  7336. a2007-08-31 Darin Adler <darin@apple.com>
  7337. Reviewed by Anders.
  7338. - http://bugs.webkit.org/show_bug.cgi?id=15122
  7339. * editing/htmlediting.cpp: (WebCore::avoidIntersectionWithNode):
  7340. Change assertion so that it only fires when actually modifying the selection.
  7341. This isn't nearly as helpful, because the old assertion could catch potential
  7342. problems in more cases, but it's not obvious how to do better.
  7343. 2007-08-30 Oliver Hunt <oliver@apple.com>
  7344. Reviewed by Adam.
  7345. <rdar://problem/5430772> REGRESSION(303-310A5) list items do not show with mouse over on istweb.apple.com/quack.apple.com
  7346. VC++ treats bitfields as signed members, so Node::m_styleChange would be
  7347. sign extended if it was assigned the value FullStyleChange. This caused
  7348. style recalculation to stop propagating.
  7349. We work around this VC++ oddity by storing the enum as an unsigned, and
  7350. casting back to StyleChangeType in the getter.
  7351. Test: fast/css/hover-affects-child.html
  7352. * dom/Node.h:
  7353. (WebCore::Node::styleChangeType):
  7354. 2007-08-29 Justin Garcia <justin.garcia@apple.com>
  7355. Reviewed by Darin.
  7356. <rdar://problem/5368833>
  7357. REGRESSION: Pasting a triple-clicked line of quoted text at the top of a message adds an extra, quoted line
  7358. * editing/CompositeEditCommand.cpp:
  7359. (WebCore::CompositeEditCommand::insertParagraphSeparator): Added an option for
  7360. using a plain div to hold the new paragraph, instead of a clone of the previous
  7361. block.
  7362. * editing/CompositeEditCommand.h:
  7363. * editing/InsertParagraphSeparatorCommand.cpp: Ditto.
  7364. (WebCore::InsertParagraphSeparatorCommand::InsertParagraphSeparatorCommand): Ditto.
  7365. (WebCore::InsertParagraphSeparatorCommand::doApply): Ditto.
  7366. * editing/InsertParagraphSeparatorCommand.h:
  7367. * editing/ReplaceSelectionCommand.cpp:
  7368. (WebCore::ReplaceSelectionCommand::doApply): Use a default block element when creating
  7369. new paragraphs, so that empty paragraphs don't contain the block style of the previous
  7370. one.
  7371. Don't expand collapsed brs at the end of inserted content, this was the root of the bug.
  7372. We'd copy <blockquote>hello<br></blockquote><br class="Apple-interchange-newline">
  7373. and get an extra paragraph. The removed code used to make sure that if the copied
  7374. selection ends with a paragraph break that is represented in the copied markup by a
  7375. regular br (not an interchange newline br), that that paragraph break appears in the
  7376. pasted content, but shouldMergeEnd, which was introduced after this code was written,
  7377. now takes care of that.
  7378. (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR): Inserted content should always
  7379. displace placeholder brs, even if that inserted content ends with a br.
  7380. * editing/markup.cpp:
  7381. (WebCore::needInterchangeNewlineAfter): This code failed to add an interchange newline
  7382. if the user copied <div>hello</div><br>, only don't add an interchange newline when
  7383. copying ^hello<br>^<br>, because then the copied paragraph break will already be
  7384. represented in the copied markup by a br.
  7385. (WebCore::createMarkup):
  7386. 2007-08-30 David Harrison <harrison@apple.com>
  7387. Reviewed by Darin.
  7388. <rdar://problem/5423900> Seed: safari crashes on submit feedback page in -[WebCoreAXObject isAttachment]
  7389. * bridge/mac/WebCoreAXObject.mm:
  7390. (-[WebCoreAXObject isAttachment]):
  7391. Add nil check since element could be detached.
  7392. 2007-08-30 Mitz Pettel <mitz@webkit.org>
  7393. Reviewed by Dave Hyatt.
  7394. - fix http://bugs.webkit.org/show_bug.cgi?id=13282
  7395. <rdar://problem/5126392> REGRESSION (NativePopUp): Rightmost character cut off in pop-up menu
  7396. * rendering/RenderMenuList.cpp:
  7397. (WebCore::RenderMenuList::updateOptionsWidth): When measuring option text, use
  7398. the same WebCore run rounding behavior that is used to draw it in the popup button.
  7399. 2007-08-30 Riku Voipio <riku.voipio@iki.fi>
  7400. Reviewed by Dave Kilzer.
  7401. Better ARM defines.
  7402. * platform/DeprecatedString.h: Update comments to reflect the
  7403. change and update test to fit changes to Platform.h.
  7404. 2007-08-30 Darin Adler <darin@apple.com>
  7405. Reviewed by Tim Hatcher.
  7406. - fix http://bugs.webkig.org/show_bug.cgi?id=14981
  7407. DEBUG builds of WebKit hang videwing Yahoo! Mail messages
  7408. with ~5 MB text attachment
  7409. * rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::checkConsistency):
  7410. * rendering/RenderFlow.cpp: (WebCore::RenderFlow::checkConsistency):
  7411. * rendering/RenderText.cpp: (WebCore::RenderText::checkConsistency):
  7412. Put the actual consistency check inside an ifdef. If you need it you can
  7413. turn it on. There's still some function call overhead in builds that don't
  7414. have NDEBUG defined, but that's worth it so we can turn this on and off
  7415. without recompiling the world.
  7416. - small code style improvement to recently changed function
  7417. * editing/TextIterator.cpp: (WebCore::plainTextToMallocAllocatedBuffer):
  7418. Use a typedef and make_pair to make the code dealing with the pair simpler to read.
  7419. 2007-08-30 Simon Hausmann <hausmann@kde.org>
  7420. Reviewed by Zack.
  7421. Fix Qt/Gdk build. gcc on Linux at least doesn't like initializing
  7422. variables between jumps with goto ("jump to label foo crosses
  7423. initialization of bar").
  7424. * editing/TextIterator.cpp:
  7425. (WebCore::plainTextToMallocAllocatedBuffer):
  7426. 2007-08-30 Darin Adler <darin@apple.com>
  7427. Reviewed by Antti.
  7428. - fix <rdar://problem/5423270> CrashTracer: [USER] 1 crash in Safari at com.apple.WebCore:
  7429. WebCore::plainTextToMallocAllocatedBuffer + 762
  7430. * editing/TextIterator.cpp: (WebCore::plainTextToMallocAllocatedBuffer):
  7431. Check for a malloc failure and exit the function if it failed.
  7432. 2007-08-29 Anders Carlsson <andersca@apple.com>
  7433. Reviewed by Oliver.
  7434. <rdar://problem/5404329>
  7435. Plugin content starves WM_TIMER events on UI thread (affects idle behavior of app) on http://www.vincent-vella.com/, http://www.sagmeister.com/
  7436. Add a tiny delay to invalidation timer to prevent it from starving other timers.
  7437. * plugins/win/PluginViewWin.cpp:
  7438. (WebCore::PluginViewWin::invalidateRect):
  7439. 2007-08-29 Darin Adler <darin@apple.com>
  7440. Reviewed by Adele.
  7441. * editing/htmlediting.cpp: (WebCore::avoidIntersectionWithNode):
  7442. Fix an assert that was firing for me all the time when doing editing operations.
  7443. 2007-08-29 Anders Carlsson <andersca@apple.com>
  7444. Reviewed by Adam.
  7445. <rdar://problem/5386098>
  7446. Repro hang with some Flash plugin content (http://dougmccune.com/blog/2007/07/25/coming-to-flexcamp-at-adobe/)
  7447. In some cases, Flash ends up starving the main loop by sending a lot of WM_USER + 1 messages. Throttle these
  7448. messages so they won't end up hanging the web browser.
  7449. * plugins/win/PluginViewWin.cpp:
  7450. (WebCore::PluginMessageThrottlerWin::PluginMessageThrottlerWin):
  7451. (WebCore::PluginMessageThrottlerWin::~PluginMessageThrottlerWin):
  7452. (WebCore::PluginMessageThrottlerWin::appendMessage):
  7453. (WebCore::PluginMessageThrottlerWin::messageThrottleTimerFired):
  7454. (WebCore::PluginMessageThrottlerWin::allocateMessage):
  7455. (WebCore::PluginMessageThrottlerWin::isInlineMessage):
  7456. (WebCore::PluginMessageThrottlerWin::freeMessage):
  7457. (WebCore::PluginViewWndProc):
  7458. (WebCore::PluginViewWin::wndProc):
  7459. (WebCore::PluginViewWin::determineQuirks):
  7460. * plugins/win/PluginViewWin.h:
  7461. (WebCore::):
  7462. (WebCore::PluginViewWin::pluginWndProc):
  7463. 2007-08-29 Beth Dakin <bdakin@apple.com>
  7464. Reviewed by Hyatt.
  7465. Fix for <rdar://problem/5436800> REGRESSION: PLT is 1.5% slower due
  7466. to r24593 and r25098
  7467. In r25098, we only called setCreatedByParser for XML! This patch
  7468. calls it for HTML too, and takes care of the performance
  7469. regression.
  7470. * html/HTMLElementFactory.cpp:
  7471. (WebCore::styleConstructor):
  7472. 2007-08-29 Antti Koivisto <antti@apple.com>
  7473. Reviewed by Mitz.
  7474. Fix <rdar://problem/5425951>
  7475. REGRESSION: change to updateLayoutIgnorePendingStylesheets causes SAP Portal page to render wrong
  7476. If new nodes have been added or style recalc has been done with style sheets still pending, some nodes
  7477. may not have had their real style calculated yet. Normally this state gets cleaned when style sheets arrive
  7478. but in updateLayoutIgnorePendingStylesheets() we need to do full style recalc to get up-to-date style immediatly.
  7479. Added a document flag to track if there are any nodes that did not have their real style calculated due to
  7480. pending stylesheets.
  7481. Test: fast/dynamic/style-access-late-stylesheet-load.html
  7482. * css/CSSStyleSelector.cpp:
  7483. (WebCore::CSSStyleSelector::styleForElement):
  7484. * dom/Document.cpp:
  7485. (WebCore::Document::Document):
  7486. (WebCore::Document::recalcStyle):
  7487. (WebCore::Document::updateLayoutIgnorePendingStylesheets):
  7488. * dom/Document.h:
  7489. (WebCore::Document::setHasNodesWithPlaceholderStyle):
  7490. 2007-08-29 Alice Liu <alice.liu@apple.com>
  7491. Reviewed by Maciej.
  7492. We disable the DeleteButton UI before applying any editing commands.
  7493. This patch simply moves those disable/enable calls to a more correct place, closer to the actual application of the editing command.
  7494. * editing/EditCommand.cpp:
  7495. (WebCore::EditCommand::apply):
  7496. (WebCore::applyCommand):
  7497. 2007-08-28 Alice Liu <alice.liu@apple.com>
  7498. fixed <rdar://problem/5420682> Mail crashes at WebCore::InsertLineBreakCommand::doApply()
  7499. after dropping a selected image over container's close box
  7500. Reviewed by Darin and Maciej.
  7501. * editing/DeleteButtonController.cpp:
  7502. (WebCore::DeleteButtonController::show):
  7503. (WebCore::DeleteButtonController::hide):
  7504. * editing/DeleteButtonController.h:
  7505. (WebCore::DeleteButtonController::enabled):
  7506. General changes made to DeleteButtonController: when hiding, it's not necessary to clear out
  7507. the m_containerElement and m_target, especially since to fix this bug we need to keep
  7508. their values around. It's sufficient to just detach the container from target.
  7509. * editing/EditCommand.cpp:
  7510. (WebCore::EditCommand::EditCommand):
  7511. Move the selection out of the deletion UI since we don't want to expose the deletion UI to any editing.
  7512. * editing/Editor.cpp:
  7513. (WebCore::Editor::rangeForPoint):
  7514. Move the range out of the deletion UI since we don't want to expose the deletion UI to any editing.
  7515. * editing/htmlediting.cpp:
  7516. * editing/htmlediting.h:
  7517. (WebCore::avoidIntersectionWithNode):
  7518. Moved function that operates on Range from markup.cpp to here
  7519. Added new implementation for function that operates on Selection
  7520. * editing/markup.cpp:
  7521. (WebCore::createMarkup):
  7522. Moved function out of this file to htmlediting.cpp, and renamed to avoidIntersectionWithNode
  7523. 2007-08-29 David Hyatt <hyatt@apple.com>
  7524. Fix for 5441281, remove our dependency on cursor rects and drag margins
  7525. in AppKit for a large performance boost on the PLT and iBench.
  7526. Reviewed by darin
  7527. * platform/mac/WidgetMac.mm:
  7528. (WebCore::safeRemoveFromSuperview):
  7529. (WebCore::Widget::addToSuperview):
  7530. Suppress the resetting of drag margins when views are added and removed.
  7531. (WebCore::Widget::setCursor):
  7532. Just use NSCursor's set method to immediately set the cursor. We no longer
  7533. rely on NSScrollView/NSClipView setDocumentCursor, since that is implemented
  7534. using cursor rects.
  7535. 2007-08-29 Rick <rick@writhe.org.uk>
  7536. Reviewed by Tim Hatcher.
  7537. Fix http://bugs.webkit.org/show_bug.cgi?id=14853
  7538. Bug 14853: Incorrect implementation of ArrayImpl's equality operator
  7539. * platform/ArrayImpl.cpp:
  7540. (WebCore::ArrayImpl::operator==):
  7541. Fixed typo so that correct variable is used in equality comparison.
  7542. 2007-08-29 Peter Kasting <pkasting@google.com>
  7543. Reviewed by Maciej.
  7544. - fix http://bugs.webkit.org/show_bug.cgi?id=15096
  7545. Move the GIF frame duration minimum check into the various
  7546. ImageSource*.cpp backends and use the same values as
  7547. ImageSourceCG.cpp.
  7548. * platform/graphics/cairo/ImageSourceCairo.cpp:
  7549. (WebCore::ImageSource::frameDurationAtIndex):
  7550. * platform/graphics/qt/ImageSourceQt.cpp:
  7551. (WebCore::ImageSource::frameDurationAtIndex):
  7552. * platform/image-decoders/gif/GIFImageReader.cpp:
  7553. (GIFImageReader::read):
  7554. 2007-08-29 Peter Kasting <pkasting@google.com>
  7555. Reviewed by Maciej.
  7556. - fix http://bugs.webkit.org/show_bug.cgi?id=15097
  7557. Make PNGImageDecoder.cpp size its frame buffer vector in its
  7558. constructor, so it never throws decoded image data away no matter
  7559. what order its functions are called in.
  7560. * platform/image-decoders/png/PNGImageDecoder.cpp:
  7561. (WebCore::PNGImageDecoder::PNGImageDecoder):
  7562. (WebCore::PNGImageDecoder::frameBufferAtIndex):
  7563. (WebCore::PNGImageDecoder::decode):
  7564. (WebCore::PNGImageDecoder::rowAvailable):
  7565. (WebCore::PNGImageDecoder::pngComplete):
  7566. 2007-08-29 Peter Kasting <pkasting@google.com>
  7567. Reviewed by Maciej.
  7568. - fix http://bugs.webkit.org/show_bug.cgi?id=15104
  7569. Don't double-compensate for sizeof(unsigned) when making a buffer
  7570. overflow check in the GIF decoder. Now interlaced GIFs don't
  7571. sometimes get nothing/garbage in some of the bottom rows.
  7572. * platform/image-decoders/gif/GIFImageDecoder.cpp:
  7573. (WebCore::GIFImageDecoder::haveDecodedRow):
  7574. 2007-08-28 Sam Weinig <sam@webkit.org>
  7575. Reviewed by Darin.
  7576. Update fix landed in r25249 to account for XMLHttpRequest, which can also be EventTargets.
  7577. Tests: http/tests/security/listener/xss-XMLHttpRequest-addEventListener.html
  7578. http/tests/security/listener/xss-XMLHttpRequest-shortcut.html
  7579. * bindings/js/JSXMLHttpRequest.cpp:
  7580. (KJS::JSXMLHttpRequest::putValueProperty): Use the Window object associated with document's frame, not the active Window.
  7581. (KJS::JSXMLHttpRequestPrototypeFunction::callAsFunction): ditto
  7582. * xml/XMLHttpRequest.h:
  7583. (WebCore::XMLHttpRequest::document): Expose Document member so bindings can access the correct frame.
  7584. 2007-08-28 Anders Carlsson <andersca@apple.com>
  7585. Reviewed by Darin.
  7586. <rdar://problem/5424866> Bottom portion of any Web Clip widget appears transparent
  7587. Restore the previous behavior, creating plug-ins on attach, for WebKit plug-ins. Netscape plug-ins
  7588. are still created during the first layout.
  7589. * html/HTMLEmbedElement.cpp:
  7590. (WebCore::HTMLEmbedElement::getInstance):
  7591. Only call layout if the renderer doesn't have a widget.
  7592. * html/HTMLObjectElement.cpp:
  7593. (WebCore::HTMLObjectElement::getInstance):
  7594. Likewise.
  7595. * loader/FrameLoader.cpp:
  7596. (WebCore::FrameLoader::shouldUsePlugin):
  7597. Update for enum change.
  7598. * loader/FrameLoaderTypes.h:
  7599. Add ObjectContentNetscapePlugin and ObjectContentOtherPlugin.
  7600. * page/mac/WebCoreFrameBridge.h:
  7601. Get rid of the enum here, we can use the one in FrameLoaderTypes.h
  7602. * rendering/RenderPartObject.cpp:
  7603. (WebCore::RenderPartObject::updateWidget):
  7604. Only create the plug-in if it's not a Netscape plug-in.
  7605. (WebCore::RenderPartObject::layout):
  7606. Fix indentation.
  7607. 2007-08-28 David Harrison <harrison@apple.com>
  7608. Reviewed by Darin.
  7609. <rdar://problem/5415006> Command Left in a To Do causes caret to disappear
  7610. The selection was ending up inside non-editable content at the To Do Options
  7611. arrow image, rather then at the editable position just to the left of that image.
  7612. The problem was that startPositionForLine looked only at line boxes, and there
  7613. is no linebox for the editable position at the far left of a To Do, which is
  7614. a table. Addressed by having startPositionForLine use table offset 0 instead
  7615. of the first VisiblePosition inside the table.
  7616. Found and fixed the similar case with option-left (move by word position).
  7617. Test cases:
  7618. * editing/selection/mixed-editability-8.html: Added.
  7619. * editing/selection/mixed-editability-9.html: Added.
  7620. Source changes:
  7621. * editing/SelectionController.cpp:
  7622. (WebCore::SelectionController::modifyMovingLeftBackward):
  7623. * editing/VisiblePosition.cpp:
  7624. (WebCore::VisiblePosition::next):
  7625. (WebCore::VisiblePosition::previous):
  7626. (WebCore::VisiblePosition::stayInEditableContentLeft):
  7627. (WebCore::VisiblePosition::stayInEditableContentRight):
  7628. Factored stayInEditableContentLeft() and stayInEditableContentRight()
  7629. out of previous() and next().
  7630. * editing/VisiblePosition.h:
  7631. Declare stayInEditableContentLeft() and stayInEditableContentRight().
  7632. * editing/visible_units.cpp:
  7633. (WebCore::previousWordPosition):
  7634. (WebCore::nextWordPosition):
  7635. (WebCore::startOfLine):
  7636. (WebCore::endOfLine):
  7637. (WebCore::previousSentencePosition):
  7638. (WebCore::nextSentencePosition):
  7639. Call stayInEditableContentLeft() or stayInEditableContentRight(), as
  7640. appropriate, so prevent crossing from editable content into
  7641. uneditable content.
  7642. (WebCore::startPositionForLine):
  7643. Use table offset 0 instead of the first VisiblePosition in the table.
  7644. 2007-08-28 Mark Rowe <mrowe@apple.com>
  7645. Reviewed by Darin Adler.
  7646. <rdar://problem/5443453> Decreasing history expiration time from 1 year to 1 week can lead to long hang while icon database syncs
  7647. Perform the sync inside a SQLite transaction. This drops the time taken for the sync from over 90s to under half a second in the
  7648. extreme case of over 90,000 URLs being pruned.
  7649. * loader/icon/IconDatabase.cpp:
  7650. (WebCore::IconDatabase::syncDatabase):
  7651. 2007-08-28 Mark Rowe <mrowe@apple.com>
  7652. Reviewed by Darin Adler.
  7653. <rdar://problem/5437983> Loading history containing 100,000 entries adds 20s to Safari's startup
  7654. Add a new constructor for HistoryItem that initializes the alternate title. This prevents WebHistoryItem
  7655. in WebKit from having explicitly set the display title, which triggers a history item changed notification
  7656. to be posted, for each history item loaded.
  7657. * WebCore.exp:
  7658. * history/HistoryItem.cpp:
  7659. (WebCore::HistoryItem::HistoryItem):
  7660. * history/HistoryItem.h:
  7661. 2007-08-28 Anders Carlsson <andersca@apple.com>
  7662. Reviewed by Darin.
  7663. <rdar://problem/5298296> XMLHttpRequest readyState 3 & responseText buffer issues
  7664. Add a shouldContentSniff flag to ResourceLoader and ResourceHandle and have XMLHttpRequest
  7665. pass in false when creating its subresource loader.
  7666. * WebCore.exp:
  7667. * loader/MainResourceLoader.cpp:
  7668. (WebCore::MainResourceLoader::MainResourceLoader):
  7669. (WebCore::MainResourceLoader::loadNow):
  7670. * loader/ResourceLoader.cpp:
  7671. (WebCore::ResourceLoader::ResourceLoader):
  7672. (WebCore::ResourceLoader::load):
  7673. * loader/ResourceLoader.h:
  7674. * loader/SubresourceLoader.cpp:
  7675. (WebCore::SubresourceLoader::SubresourceLoader):
  7676. (WebCore::SubresourceLoader::create):
  7677. * loader/SubresourceLoader.h:
  7678. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  7679. (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
  7680. * platform/mac/WebCoreSystemInterface.h:
  7681. * platform/mac/WebCoreSystemInterface.mm:
  7682. * platform/network/ResourceHandle.cpp:
  7683. (WebCore::ResourceHandle::ResourceHandle):
  7684. (WebCore::ResourceHandle::create):
  7685. * platform/network/ResourceHandle.h:
  7686. * platform/network/ResourceHandleInternal.h:
  7687. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  7688. * platform/network/mac/ResourceHandleMac.mm:
  7689. (WebCore::ResourceHandle::start):
  7690. * xml/XMLHttpRequest.cpp:
  7691. (WebCore::XMLHttpRequest::send):
  7692. 2007-08-27 Steve Falkenburg <sfalken@apple.com>
  7693. Added getter for committedFirstRealDocumentLoad.
  7694. Reviewed by Maciej.
  7695. * loader/FrameLoader.h: Added committedFirstRealDocumentLoad.
  7696. (WebCore::FrameLoader::committedFirstRealDocumentLoad): Added.
  7697. 2007-08-27 Antti Koivisto <antti@apple.com>
  7698. Reviewed by Maciej.
  7699. Fix <rdar://problem/5433144>
  7700. REGRESSION: Unable to click "Select" link at Expedia for car rentals
  7701. javascript: URLs need special handling when serializing. Escaping them like
  7702. normal attribute values can do bad things. Try hard to not escape anything,
  7703. escape quote characters only if really necessary. Try to match Firefox.
  7704. Test: fast/innerHTML/javascript-url.html
  7705. * editing/markup.cpp:
  7706. (WebCore::urlAttributeToQuotedString):
  7707. (WebCore::startMarkup):
  7708. 2007-08-27 David Hyatt <hyatt@apple.com>
  7709. Fix for 5441224, micro-optimizations to improve the PLT by 1%.
  7710. Reviewed by Darin
  7711. * css/CSSStyleSelector.cpp:
  7712. (WebCore::CSSStyleSelector::canShareStyleWithElement):
  7713. * platform/mac/FontMac.mm:
  7714. (WebCore::Font::drawGlyphs):
  7715. * rendering/RenderInline.cpp:
  7716. (WebCore::RenderInline::requiresLayer):
  7717. * rendering/RenderObject.cpp:
  7718. (WebCore::RenderObject::isBody):
  7719. * rendering/RenderObject.h:
  7720. (WebCore::RenderObject::renderArena):
  7721. (WebCore::RenderObject::isRoot):
  7722. 2007-08-27 Mitz Pettel <mitz@webkit.org>
  7723. Reviewed by Darin.
  7724. - fix http://bugs.webkit.org/show_bug.cgi?id=15091
  7725. Crash in RenderBlock::skipWhitespace during layout <rdar://problem/5439631>
  7726. Test: fast/replaced/applet-disabled-positioned.html
  7727. * html/HTMLAppletElement.cpp:
  7728. (WebCore::HTMLAppletElement::createRenderer): Changed to call
  7729. RenderObject::createObject(), which accounts for style.
  7730. 2007-08-26 Antti Koivisto <antti@apple.com>
  7731. Reviewed by Darin.
  7732. Fix for <rdar://problem/5433726>
  7733. Mail crash at WebCore::Frame::styleForSelectionStart() when deleting a selection in a HTML message (http://www.yahoo.com/)
  7734. Test: editing/style/temporary-span-crash.html
  7735. * page/Frame.cpp:
  7736. (WebCore::Frame::styleForSelectionStart):
  7737. Temporary span created here might not have renderer if document has style sheet that makes it display:none.
  7738. Set display:inline explicitly in spans style attribute. This temporary span does not need to get its display
  7739. value from actual document style sheets. Null check the renderer too to be sure.
  7740. 2007-08-24 Sam Weinig <sam@webkit.org>
  7741. Reviewed by Adele.
  7742. Fix for <rdar://problem/5426142>
  7743. Use the EventTarget's frame when creating the EventListener.
  7744. Tests: http/tests/security/listener/xss-JSTargetNode-onclick-addEventListener.html
  7745. http/tests/security/listener/xss-JSTargetNode-onclick-shortcut.html
  7746. http/tests/security/listener/xss-window-onclick-addEventListener.html
  7747. http/tests/security/listener/xss-window-onclick-shortcut.html
  7748. * bindings/js/JSEventTargetNode.cpp:
  7749. (WebCore::JSEventTargetNode::setListener):
  7750. (WebCore::JSEventTargetNodePrototypeFunction::callAsFunction):
  7751. * bindings/js/kjs_window.cpp:
  7752. (KJS::WindowFunc::callAsFunction):
  7753. 2007-08-25 Mitz Pettel <mitz@webkit.org>
  7754. Reviewed by Sam Weinig.
  7755. - fix http://bugs.webkit.org/show_bug.cgi?id=15077
  7756. REGRESSION: Cannot drag selected text out of a background window
  7757. * manual-tests/drag-out-of-background-window.html: Added.
  7758. * page/EventHandler.cpp:
  7759. (WebCore::EventHandler::eventMayStartDrag): Added missing coordinate
  7760. conversion.
  7761. 2007-08-25 Rob Buis <buis@kde.org>
  7762. Reviewed by Darin.
  7763. http://bugs.webkit.org/show_bug.cgi?id=14848
  7764. DOM table rules are not updated when changed
  7765. On a dynamic rules attr change, mark the table cells and
  7766. their ancestors (up to and including the table tag) as
  7767. changed.
  7768. Tests: fast/table/rules-attr-dynchange1.html
  7769. fast/table/rules-attr-dynchange2.html
  7770. * html/HTMLTableElement.cpp:
  7771. (WebCore::isTableCellAncestor):
  7772. (WebCore::setTableCellsChanged):
  7773. (WebCore::HTMLTableElement::parseMappedAttribute):
  7774. 2007-08-25 Adele Peterson <adele@apple.com>
  7775. Reviewed by Mitz.
  7776. Fix for http://bugs.webkit.org/show_bug.cgi?id=15073
  7777. <rdar://problem/5426557> REGRESSION: Can no longer drag text from textareas
  7778. Test: fast/forms/drag-out-of-textarea.html
  7779. * rendering/RenderTextControl.cpp: (WebCore::RenderTextControlInnerBlock::nodeAtPoint):
  7780. Only restricts hit testing if the placeholder text is visible.
  7781. * rendering/RenderTextControl.h: (WebCore::RenderTextControl::placeholderIsVisible): Added.
  7782. 2007-08-25 Peter Kasting <pkasting@google.com>
  7783. Reviewed by Sam Weinig.
  7784. Part 2 of http://bugs.webkit.org/show_bug.cgi?id=14967.
  7785. Eliminate all remaining implicit conversions of wtf::Vector<T> to T*. Where code was
  7786. previously checking that the Vector's data pointer was non-NULL, check !Vector::isEmpty()
  7787. instead.
  7788. * bindings/js/kjs_navigator.cpp:
  7789. (KJS::PluginBase::cachePluginDataIfNecessary):
  7790. * loader/mac/LoaderNSURLExtras.m:
  7791. (suggestedFilenameWithMIMEType):
  7792. * page/FrameView.cpp:
  7793. (WebCore::FrameView::~FrameView):
  7794. (WebCore::FrameView::pauseScheduledEvents):
  7795. (WebCore::FrameView::resumeScheduledEvents):
  7796. (WebCore::FrameView::dispatchScheduledEvents):
  7797. * platform/mac/PlugInInfoStoreMac.mm:
  7798. (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
  7799. 2007-08-25 Mitz Pettel <mitz@webkit.org>
  7800. Rubber-stamped by Adam Roben
  7801. - remove unused file
  7802. * platform/win/MouseEventWin.cpp: Removed.
  7803. 2007-08-25 Jasper Bryant-Greene <m@ni.ac.nz>
  7804. Reviewed by Oliver Hunt.
  7805. Set paintingDisabled to true in Cairo's GraphicsContext constructor
  7806. when passed a null PlatformGraphicsContext.
  7807. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  7808. (WebCore::GraphicsContext::GraphicsContext):
  7809. 2007-08-25 Mitz Pettel <mitz@webkit.org>
  7810. Reviewed by Dave Hyatt.
  7811. - fix http://bugs.webkit.org/show_bug.cgi?id=15056
  7812. REGRESSION (r21472): Digg Podcasts Episodes Render "Digg" counter incorrectly
  7813. Covered by fast/parser/residual-style-close-across-n-blocks.html
  7814. * html/HTMLParser.cpp:
  7815. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): If the
  7816. residual style was closed before anything else in the block (so it does
  7817. not apply to anything inside the block) avoid creating an empty element for
  7818. it inside the block.
  7819. 2007-08-25 Mitz Pettel <mitz@webkit.org>
  7820. Reviewed by Dave Hyatt.
  7821. - fix http://bugs.webkit.org/show_bug.cgi?id=14972
  7822. Moving cursor down in contentEditable section fails if styled line-height:1em
  7823. Test: editing/selection/move-by-line-003.html
  7824. * rendering/RenderText.cpp:
  7825. (WebCore::RenderText::positionForCoordinates): Changed hit testing so that each
  7826. line is tested for hits between its overflow top and the next line's overflow top.
  7827. This matches RenderBlock::positionForCoordinates.
  7828. 2007-08-25 Mitz Pettel <mitz@webkit.org>
  7829. Reviewed by Justin.
  7830. - fix http://bugs.webkit.org/show_bug.cgi?id=14792
  7831. <rdar://problem/5367763> REGRESSION: Copy inserts carriage return in middle of selection
  7832. Test: editing/pasteboard/newlines-around-floating-or-positioned.html
  7833. * editing/TextIterator.cpp:
  7834. (WebCore::shouldEmitNewlinesBeforeAndAfterNode): Do not emit newlines around
  7835. floating or positioned blocks. This behavior seems to match WinIE's.
  7836. 2007-08-23 Justin Garcia <justin.garcia@apple.com>
  7837. Reviewed by Darin.
  7838. <rdar://problem/5432254> GoogleDocs: A hang occurs when applying list style to selected table
  7839. * editing/DeleteSelectionCommand.cpp:
  7840. (WebCore::DeleteSelectionCommand::handleGeneralDelete): If the position
  7841. that marked the start of the range to delete has been removed from the
  7842. document, and it was inside the node that holds the position that marks
  7843. the end of the range to delete, don't remove any children of that node,
  7844. because we don't know how many to remove. For example, if the end is
  7845. [a, 5] and the start was in some descendant of a and was removed, don't
  7846. remove any of the children of a. We will now refuse to remove some content
  7847. incorrectly, but that's less dangerous than removing content incorrectly.
  7848. Long term we need to update these positions as we remove content from the
  7849. document, but that seems like a more risky change. Added a testcase.
  7850. * editing/InsertListCommand.cpp:
  7851. (WebCore::InsertListCommand::modifyRange): If the end of the selection to
  7852. modify is just after a table, and if the start of the selection is inside
  7853. that table, the last paragraph that we'll want modify is the last one inside
  7854. the table, not the paragraph that contains the table itself. Adjust
  7855. startOfLastParagraph here to avoid infinite recursion.
  7856. 2007-08-24 Anders Carlsson <andersca@apple.com>
  7857. Reviewed by Geoff.
  7858. <rdar://problem/5430165>
  7859. REGRESSION: Dynamically loaded images fail to load
  7860. * html/HTMLImageLoader.cpp:
  7861. (WebCore::HTMLImageLoader::HTMLImageLoader):
  7862. Initialize the m_elementIsProtected member.
  7863. (WebCore::HTMLImageLoader::~HTMLImageLoader):
  7864. Assert that the element is not protected.
  7865. (WebCore::HTMLImageLoader::setLoadingImage):
  7866. If the image is not null, protect the element. Otherwise, unprotect it.
  7867. (WebCore::HTMLImageLoader::dispatchLoadEvent):
  7868. Unprotect the element here.
  7869. (WebCore::HTMLImageLoader::protectElement):
  7870. (WebCore::HTMLImageLoader::unprotectElement):
  7871. New methods which protect and unprotect the element.
  7872. * html/HTMLImageLoader.h:
  7873. 2007-08-24 Kevin McCullough <kmccullough@apple.com>
  7874. - Updated ChangeLog
  7875. 2007-08-24 Beth Dakin <bdakin@apple.com>
  7876. Reviewed by Hyatt and Adele.
  7877. Fix for <rdar://problem/5417203> Google Gmail 1.0 widget - unread
  7878. count is missing
  7879. * rendering/FixedTableLayout.cpp:
  7880. (WebCore::FixedTableLayout::calcWidthArray): Calc pref widths for
  7881. our cells, if needed.
  7882. 2007-08-24 Kevin McCullough <kmccullough@apple.com>
  7883. Reviewed by Darin.
  7884. <rdar://problem/5437038> 1 credential object leaked for each call to credentialWithUser:password:persistence
  7885. - Use initWithUser instead of credentialWithUser because credentialWithUser leaks.
  7886. * platform/network/mac/AuthenticationMac.mm:
  7887. (WebCore::mac):
  7888. * platform/network/mac/ResourceHandleMac.mm:
  7889. (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
  7890. (-[WebCoreSynchronousLoader connection:didReceiveAuthenticationChallenge:]):
  7891. 2007-08-24 Jon Honeycutt <jhoneycutt@apple.com>
  7892. Reviewed by Darin.
  7893. <rdar://problem/5433236> Print preview of empty txt file crashes Safari
  7894. Fix: Adjust computePageRectsForFrame to always return at least one
  7895. page rect, even if document height is zero.
  7896. * WebCore.vcproj/WebCore.vcproj:
  7897. * bridge/win/FrameWin.h: Added Vector& parameter to
  7898. computePagesRectsForFrame; changed its return type to void.
  7899. * bridge/win/FrameWin.cpp:
  7900. (WebCore::computePageRectsForFrame): Reordered the loop that inserts
  7901. rects into the vector.
  7902. 2007-08-24 Antti Koivisto <antti@apple.com>
  7903. Reviewed by Oliver
  7904. Fix <rdar://problem/5393758>
  7905. Crash in WebCore::FontData::platformInit
  7906. Null check glyph page.
  7907. If font has somehow failed to initialize it is possible to have null glyph page. Based on
  7908. crash dumps this seems to occasionally happen when running Mail under guard malloc.
  7909. No test case, I don't know how to get to this state.
  7910. * platform/FontData.cpp:
  7911. (WebCore::FontData::FontData):
  7912. * platform/mac/FontDataMac.mm:
  7913. (WebCore::FontData::platformInit):
  7914. 2007-08-24 George Wright <george.wright@collabora.co.uk>
  7915. Reviewed by Oliver.
  7916. http://bugs.webkit.org/show_bug.cgi?id=15071
  7917. [cairo] SVG skews are incorrect
  7918. Fix Cairo implementation of AffineTransform::shear so that shearing is
  7919. done in the correct direction.
  7920. * platform/graphics/cairo/AffineTransformCairo.cpp:
  7921. (WebCore::AffineTransform::shear):
  7922. 2007-08-23 Anders Carlsson <andersca@apple.com>
  7923. Reviewed by Steve.
  7924. If necessary, re-set the window proc after each call to NPP_SetWindow. This is to ensure that
  7925. our window proc is always run even if a plug-in subclasses the window and replaces the window proc.
  7926. Also, make sure that the default window proc is of type ASCII so we can eliminate the
  7927. * plugins/win/PluginViewWin.cpp:
  7928. (WebCore::registerPluginView):
  7929. (WebCore::PluginViewWndProc):
  7930. (WebCore::PluginViewWin::setNPWindowRect):
  7931. (WebCore::PluginViewWin::stop):
  7932. (WebCore::PluginViewWin::determineQuirks):
  7933. (WebCore::PluginViewWin::PluginViewWin):
  7934. (WebCore::PluginViewWin::init):
  7935. * plugins/win/PluginViewWin.h:
  7936. (WebCore::):
  7937. (WebCore::PluginViewWin::pluginWndProc):
  7938. 2007-08-23 Justin Garcia <justin.garcia@apple.com>
  7939. Reviewed by Adele.
  7940. <rdar://problem/5156801> REGRESSION: Crash at DeleteSelectionCommand::doApply() when deleting table content
  7941. * editing/DeleteSelectionCommand.cpp:
  7942. (WebCore::DeleteSelectionCommand::handleGeneralDelete): Use a RefPtr
  7943. for node. If the node to be removed contains the selection, and if
  7944. the next node to be removed (nextNode) is inside the deletion UI,
  7945. removing node will remove nextNode from the document. nextNode is
  7946. a RefPtr, but node isn't and when nextNode falls out of scope the node
  7947. that node points to will be destroyed and we'll end up using a stale pointer.
  7948. Long term we should probably just disable the deletion UI before editing
  7949. operations because the undo of the removal of node in the situation
  7950. described above relies on the presence of the deletion UI, but it isn't
  7951. present because its added and removed in a non-undoable way.
  7952. 2007-08-23 Mitz Pettel <mitz@webkit.org>
  7953. Reviewed by Darin.
  7954. - fix http://bugs.webkit.org/show_bug.cgi?id=14899
  7955. !d->m_view->needsLayout() in Frame::paint() (Causes assert)
  7956. WebKit copies the width and height attributes of an <embed> to its
  7957. nearest <object> ancestor. This used to be done in updateWidget(), but
  7958. that could lead to the document being dirty right after layout and
  7959. before painting. The patch moves the copying of the attributes to when
  7960. the <embed> is inserted into the document or its attributes change.
  7961. * html/HTMLEmbedElement.cpp:
  7962. (WebCore::HTMLEmbedElement::insertedIntoDocument):
  7963. (WebCore::HTMLEmbedElement::attributeChanged):
  7964. * html/HTMLEmbedElement.h:
  7965. * manual-tests/bugzilla-14899.html: Added.
  7966. * rendering/RenderPartObject.cpp:
  7967. (WebCore::RenderPartObject::updateWidget):
  7968. 2007-08-22 Anders Carlsson <andersca@apple.com>
  7969. Reviewed by Darin and Oliver.
  7970. <rdar://problem/5422410>
  7971. http://bugs.webkit.org/show_bug.cgi?id=15019
  7972. REGRESSION (r25124-r25140): New posts and hot topics won't show at mobile01.com
  7973. Remove the call to checkCallImplicitClose(). Calling it in loadPlugin is bad for two reasons:
  7974. 1. It could cause onload to be dispatched even when the page has subresources that are still
  7975. loading, such as images.
  7976. 2. Now that loadPlugin is called during layout, it could cause onload to be dispatched during
  7977. layout, which can execute javascript and do pretty much anything while the render tree is in an
  7978. inconsistent state.
  7979. * loader/FrameLoader.cpp:
  7980. (WebCore::FrameLoader::loadPlugin):
  7981. 2007-08-22 Anders Carlsson <andersca@apple.com>
  7982. Reviewed by Adam.
  7983. <rdar://problem/5430584>
  7984. http://bugs.webkit.org/show_bug.cgi?id=15053
  7985. WebKit does not check Windows Registry HKEY_CURRENT_USER for NPAPI plugin locations
  7986. * plugins/win/PluginDatabaseWin.cpp:
  7987. (WebCore::addPluginsFromRegistry):
  7988. (WebCore::PluginDatabaseWin::getPluginsInPaths):
  7989. 2007-08-22 Justin Garcia <justin.garcia@apple.com>
  7990. Reviewed by Adam.
  7991. <rdar://problem/5418891> CrashTracer: [USER] 1 crash in Mail at -[WebViewEditor webView:shouldInsertText:replacingDOMRange:givenAction:]
  7992. * editing/BreakBlockquoteCommand.cpp:
  7993. (WebCore::BreakBlockquoteCommand::doApply): We're reusing the topBlockquote
  7994. variable. Null it out first. If there is no new topBlockquote and we don't null
  7995. it out first, we'll assume that there was a new one and crash.
  7996. 2007-08-22 Kevin McCullough <kmccullough@apple.com>
  7997. Reviewed by Adele.
  7998. - rdar:5423067 Reapplyingthe change but only when the text area is in focus.
  7999. * html/HTMLTextAreaElement.cpp:
  8000. (WebCore::HTMLTextAreaElement::setValue):
  8001. 2007-08-21 David Hyatt <hyatt@apple.com>
  8002. Fix for <rdar://problem/5249757> Painting of JPGs in WebKit is too slow.
  8003. Use a new Leopard API for fast tiling of images. We only use this API
  8004. when the whole image is being tiled and when the current CGImageRef to tile
  8005. has a size that matches the size of the whole image.
  8006. We can optimize border-image in the future by adding a cache of the 9
  8007. sub-images.
  8008. Reviewed by darin
  8009. * platform/graphics/cg/ImageCG.cpp:
  8010. (WebCore::Image::drawPattern):
  8011. 2007-08-22 Kevin McCullough <kmccullough@apple.com>
  8012. - Rolling back since I need to update some layouttests this change breaks.
  8013. * html/HTMLTextAreaElement.cpp:
  8014. (WebCore::HTMLTextAreaElement::setValue):
  8015. 2007-08-21 Kevin McCullough <kmccullough@apple.com>
  8016. Reviewed by Geof, Adam, Hyatt, Maciej and Oliver.
  8017. - In order to match the behavior of the other major browsers, selection is moved to the end of the text value when a change occurs to the contents of a text area instead of remembering the location of the selection.
  8018. - <rdar://problem/5423067> gmail is super annoying when trying to add a new name to the TO, CC or BCC fields
  8019. * html/HTMLTextAreaElement.cpp:
  8020. (WebCore::HTMLTextAreaElement::setValue):
  8021. 2007-08-21 Adam Roben <aroben@apple.com>
  8022. Build fix for Mac
  8023. Keep FrameView::layoutIfNeededRecursive Windows- and Gtk-only for now
  8024. (sadly). This will have to wait until we merge ScrollView and FrameView.
  8025. Reviewed by NOBODY.
  8026. * page/FrameView.cpp:
  8027. * page/FrameView.h:
  8028. 2007-08-21 Adam Roben <aroben@apple.com>
  8029. Fix an ASSERT when using Find in Page
  8030. Reviewed by Darin.
  8031. No test possible.
  8032. * bridge/win/FrameWin.cpp:
  8033. (WebCore::imageFromSelection): Make sure to update layout before
  8034. painting so we don't hit an ASSERT in painting code (Frame::selectionImage
  8035. in FrameMac.mm does this as well).
  8036. 2007-08-21 Adam Roben <aroben@apple.com>
  8037. Made FrameView::layoutIfNeededRecursive available to all platforms
  8038. Currently it's only used on Gtk+ and Windows.
  8039. Reviewed by Darin.
  8040. * page/FrameView.cpp: Removed #ifdef.
  8041. * page/FrameView.h: Ditto.
  8042. 2007-08-21 Adele Peterson <adele@apple.com>
  8043. Build fix for release build.
  8044. * rendering/AutoTableLayout.cpp:
  8045. (WebCore::AutoTableLayout::calcEffectiveWidth):
  8046. (WebCore::AutoTableLayout::layout):
  8047. 2007-08-21 Mitz Pettel <mitz@webkit.org>
  8048. Reviewed by Darin.
  8049. - fix http://bugs.webkit.org/show_bug.cgi?id=15010
  8050. <rdar://problem/5423956> REGRESSION (r25000-r25065): Table rendering broken by a recent nightly
  8051. Test: fast/table/max-width-integer-overflow.html
  8052. Avoid integer overflows when dealing with maximum widths by
  8053. 1) using floating point arithmetic when summing or multiplying column max widths
  8054. 2) capping max widths at INT_MAX / 2
  8055. * rendering/AutoTableLayout.cpp:
  8056. (WebCore::AutoTableLayout::calcPrefWidths):
  8057. (WebCore::AutoTableLayout::calcEffectiveWidth):
  8058. (WebCore::AutoTableLayout::layout):
  8059. 2007-08-20 John Sullivan <sullivan@apple.com>
  8060. Reviewed by Adam Roben
  8061. WebCore part of fix for:
  8062. <rdar://problem/5417777> WebKit focus ring color no longer matches system focus rings
  8063. Adele wrote the first version of this patch. No test cases added because I made sure the
  8064. layout tests are unaffected. Two additional bug fixes were made in passing, but neither
  8065. of them had any effect on any known real-world case, and both were too difficult to write
  8066. test cases for to be worthwhile.
  8067. * WebCore.exp:
  8068. added symbols for these new functions so WebKit can call them
  8069. * WebCore.xcodeproj/project.pbxproj:
  8070. updated for new file
  8071. * platform/graphics/mac/ColorMac.h: Added.
  8072. New file to hold the increasing amount of Mac-specific color stuff.
  8073. * platform/graphics/Color.h:
  8074. removed #if PLATFORM(MAC) code, which is now in ColorMac.h
  8075. * platform/graphics/mac/ColorMac.mm:
  8076. (WebCore::makeRGBAFromNSColor):
  8077. new static function to convert an NSColor object to an RGBA32 struct
  8078. (WebCore::colorFromNSColor):
  8079. new public function to convert an NSColor object to a WebCore-style Color object
  8080. (WebCore::focusRingColor):
  8081. Uses (cached) systemFocusRingColor instead of hardwired values, unless usesTestModeFocusRingColor is true,
  8082. in which case it uses the old hardwired color
  8083. (WebCore::usesTestModeFocusRingColor):
  8084. returns value of global var
  8085. (WebCore::setUsesTestModeFocusRingColor):
  8086. sets value of global var
  8087. (+[WebCoreControlTintObserver controlTintDidChange]):
  8088. Uses [NSColor keyboardFocusIndicatorColor] to set systemFocusRingColor; don't compile if COLORMATCH_EVERYTHING
  8089. is set since we don't know what it would take to satisfy this state.
  8090. * bindings/objc/DOMRGBColor.mm:
  8091. now includes ColorMac.h to account for moved declarations
  8092. * bridge/mac/WebCoreAXObject.mm:
  8093. ditto
  8094. * page/mac/FrameMac.mm:
  8095. (WebCore::convertAttributesToUnderlines):
  8096. now uses new colorFromNSColor. The old code was swapping G & B, but it didn't matter in practice because
  8097. this function is only used to convert the color of an input manager's marked text underline, which is always black
  8098. * page/mac/WebCoreFrameBridge.mm:
  8099. (-[WebCoreFrameBridge setBaseBackgroundColor:]):
  8100. now uses new colorFromNSColor. The old code was swapping G & B, but it didn't matter in practice because
  8101. this function is only called with a grayscale color perhaps containing an alpha value
  8102. * rendering/RenderView.cpp:
  8103. (WebCore::RenderView::paintBoxDecorations):
  8104. just updated a comment
  8105. 2007-08-20 Mitz Pettel <mitz@webkit.org>
  8106. Reviewed by Dave Hyatt.
  8107. - fix http://bugs.webkit.org/show_bug.cgi?id=15023
  8108. REGRESSION (r21113-r21143): JavaScript tooltip rendering bug
  8109. Test: fast/repaint/layer-visibility.html
  8110. * rendering/RenderLayer.cpp:
  8111. (WebCore::RenderLayer::setHasVisibleContent): Cache the layer's
  8112. rects when it changes to visible.
  8113. 2007-08-20 Kevin Decker <kdecker@apple.com>
  8114. Reviewed by Anders.
  8115. Fixed: <rdar://problem/5325262> REGRESSION (Tiger-Leopard): PictureTalk plug-in doesn't work
  8116. The problem was that this particular plug-in handles "text/ptf", but WebCore wasn't giving the plug-in a chance to load
  8117. any type with "text/"
  8118. * dom/DOMImplementation.cpp:
  8119. (WebCore::DOMImplementation::createDocument): Allow plug-ins to once again use "text/" MIME types, but only if the MIME
  8120. type is not "text/plain". Disallowing plug-ins to use text/plain prevents plug-ins from hijacking a fundamental type
  8121. that the browser is expected to handle, and also serves as an optimization to prevent loading the plug-in database in
  8122. the common case.
  8123. 2007-08-20 Adam Roben <aroben@apple.com>
  8124. Remove workarounds for <rdar://problem/5386894> now that it's been fixed
  8125. Reviewed by Darin.
  8126. Tests: fast/loader/local-svg-parsed-as-svg.svg
  8127. fast/loader/local-xhtml-parsed-as-xhtml.xhtml
  8128. * platform/network/cf/ResourceResponseCFNet.cpp:
  8129. (WebCore::ResourceResponse::doUpdateResourceResponse): Removed hackish
  8130. workaround.
  8131. 2007-08-20 Anders Carlsson <andersca@apple.com>
  8132. Reviewed by Adam.
  8133. <rdar://problem/5412988>
  8134. Crash when visiting http://www.rockonflash.com/blog/?p=58
  8135. * plugins/win/PluginViewWin.cpp:
  8136. (WebCore::PluginViewWin::updateWindow):
  8137. Just return if the plugin view hasn't been inserted in the hierarchy yet.
  8138. 2007-08-20 Holger Hans Peter Freyther <zecke@selfish.org>
  8139. Reviewed by Zack.
  8140. Do not define svg as ImageMIMEType if we can use ksvg2.
  8141. * platform/MIMETypeRegistry.cpp:
  8142. (WebCore::initialiseSupportedImageMIMETypes):
  8143. 2007-08-19 Adam Roben <aroben@apple.com>
  8144. Gtk+ build fix.
  8145. * platform/gdk/TemporaryLinkStubs.cpp: Removed const.
  8146. 2007-08-19 Adam Roben <aroben@apple.com>
  8147. Fix <rdar://5395835> REGRESSION (r24527): Context menu for edit fields is missing "Font & Writing Direction"
  8148. The problem was that ContextMenuItem::setSubMenu was just copying the
  8149. HMENU from the ContextMenu passed in on Windows, but that HMENU was
  8150. later getting destroyed when the ContextMenu went out of scope.
  8151. I added a new ContextMenu::releasePlatformDescription method that is
  8152. used in setSubMenu instead. I think an ultimately better design would
  8153. be for setSubMenu to take ownership of the ContextMenu that's passed in
  8154. (as should insertItem and appendItem), but I decided to be conservative
  8155. and just make the changes needed to fix the bug.
  8156. Reviewed by Darin.
  8157. No test possible.
  8158. * platform/ContextMenu.h: Added releasePlatformDescription.
  8159. * platform/gdk/TemporaryLinkStubs.cpp: Added stub implementation.
  8160. * platform/mac/ContextMenuMac.mm:
  8161. (WebCore::ContextMenu::releasePlatformDescription): Implemented, though
  8162. it's never called on this platform.
  8163. * platform/qt/ContextMenuQt.cpp:
  8164. (WebCore::ContextMenu::releasePlatformDescription): Ditto.
  8165. * platform/win/ContextMenuItemWin.cpp:
  8166. (WebCore::ContextMenuItem::setSubMenu): Call releasePlatformDescription
  8167. since we need to take ownership of the HMENU.
  8168. * platform/win/ContextMenuWin.cpp:
  8169. (WebCore::ContextMenu::releasePlatformDescription): Implemented.
  8170. 2007-08-18 Maciej Stachowiak <mjs@apple.com>
  8171. Reviewed by Darin.
  8172. - fixed <rdar://problem/5198272> REGRESSION: PLT 1.5% slower due to r21367 (change to start frames with empty documents)
  8173. There were three main cuases of extra time due to creating the initial empty document:
  8174. 1) Creating an extra WebHTMLView and swapping it for a new one for each frame created.
  8175. 2) Parsing the minimal markup for the initial document's contents.
  8176. 3) Clearing the Window object an extra time and dispatching the corresponding delegate method.
  8177. The WebCore part of the fixes addresses 2 and 3.
  8178. * loader/FrameLoader.cpp:
  8179. (WebCore::FrameLoader::init): Don't parse "<html><body>" for the initial
  8180. empty document; it turns out not to be needed.
  8181. (WebCore::FrameLoader::dispatchWindowObjectAvailable): Don't
  8182. dispatch the delegate if we haven't created a ScriptInterpreter yet.
  8183. * bindings/js/kjs_proxy.cpp:
  8184. (WebCore::KJSProxy::initScriptIfNeeded): Dispatch the window object
  8185. delegate when we first create the interpreter, since that is now done
  8186. lazily.
  8187. * loader/FrameLoader.h:
  8188. (WebCore::FrameLoader::committingFirstRealLoad): Helper for WebKit
  8189. to know when to reuse a WebHTMLView.
  8190. 2007-08-19 Mitz Pettel <mitz@webkit.org>
  8191. Reviewed by Adam Roben.
  8192. - fix http://bugs.webkit.org/show_bug.cgi?id=15008
  8193. ASSERTION FAILED: !firstLineBox() == !lastLineBox() setting content on image
  8194. Test: fast/images/text-content-crash-2.html
  8195. * html/HTMLImageLoader.cpp:
  8196. (WebCore::HTMLImageLoader::setImage): Added a check that the renderer is an
  8197. image.
  8198. (WebCore::HTMLImageLoader::updateFromElement): Ditto.
  8199. (WebCore::HTMLImageLoader::notifyFinished): Ditto.
  8200. 2007-08-17 Maciej Stachowiak <mjs@apple.com>
  8201. Reviewed by Darin.
  8202. - WebCore part of fix to scrollbar suppression hack for Leopard
  8203. * loader/FrameLoader.cpp:
  8204. (WebCore::FrameLoader::transitionToCommitted): Suppress scrollbars earlier, so it happens
  8205. before any potential view swap.
  8206. 2007-08-17 Antti Koivisto <antti@apple.com>
  8207. Reviewed by Hyatt.
  8208. Fix <rdar://problem/5403773>
  8209. CrashTracer: [USER] 88 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 846
  8210. * rendering/RenderBlock.cpp:
  8211. (WebCore::RenderBlock::removePositionedObjects):
  8212. Fix crash in http://www.infobae.com/interior/home.html
  8213. Positioned objects removed from m_positionedObjects would in some cases not get added back to any
  8214. positioned objects list. Adding objects happens in block layout but since layout was not invalidated
  8215. correctly in removePositionedObjects() it would not get invoked. As a result some positioned objects
  8216. would stay in layout dirty state leading to crashes and other bad things.
  8217. * rendering/RenderTableSection.cpp:
  8218. (WebCore::RenderTableSection::paint):
  8219. Add needLayout() guard to eliminate this class of crashes from release builds.
  8220. Assert commented out for now since one existing layout test can't handle it.
  8221. 2007-08-17 Kevin Decker <kdecker@apple.com>
  8222. Code change by Darin, landed and reviewed by me.
  8223. Fixed: <rdar://problem/5252836> Adobe Help Viewer: Japanese characters in the Help Tree structure are shown as garbage
  8224. Added fast/encoding/namespace-tolerance.html test.
  8225. * loader/TextResourceDecoder.cpp:
  8226. (WebCore::TextResourceDecoder::checkForHeadCharset): Slightly loosen the charset decoder heuristic by tweaking it
  8227. to ignore namespaces. This restores compatibility to documents which (1) use namespace prefixes on HTML elements
  8228. (2) specify a non-latin charset and (3) contain non-latin characters.
  8229. Added fast/encoding/namespace-tolerance.html test.
  8230. 2007-08-17 Anders Carlsson <andersca@apple.com>
  8231. Reviewed by Dave Hyatt.
  8232. <rdar://problem/5379040>
  8233. REGRESSION (Tiger-Leopard): ADOBE: Safari calls NPP_SetWindow with bad values sometimes
  8234. Instantiate plug-ins during the first layout instead of doing so when creating the renderer.
  8235. This ensures that the plug-in widget will have a correct initial size.
  8236. * html/HTMLEmbedElement.cpp:
  8237. (WebCore::HTMLEmbedElement::getInstance):
  8238. Force a layout if the plug-in doesn't have an instance.
  8239. (WebCore::HTMLEmbedElement::attach):
  8240. Pass true to updateWidget, causing it to only create a widget if it won't be a plug-in.
  8241. * html/HTMLIFrameElement.cpp:
  8242. (WebCore::HTMLIFrameElement::attach):
  8243. Pass false to updateWidget, this will only create subframes anyway.
  8244. * html/HTMLObjectElement.cpp:
  8245. (WebCore::HTMLObjectElement::getInstance):
  8246. Force a layout if the plug-in doesn't have an instance.
  8247. (WebCore::HTMLObjectElement::attach):
  8248. Pass true to updateWidget, causing it to only create a widget if it won't be a plug-in.
  8249. * loader/FrameLoader.cpp:
  8250. (WebCore::FrameLoader::loadPlugin):
  8251. Get the size from the renderer and pass it to the client.
  8252. * loader/FrameLoaderClient.h:
  8253. * page/mac/WebCoreFrameBridge.h:
  8254. * platform/graphics/svg/SVGImageEmptyClients.h:
  8255. (WebCore::SVGEmptyFrameLoaderClient::createPlugin):
  8256. Update declarations.
  8257. * rendering/RenderPart.cpp:
  8258. (WebCore::RenderPart::setWidget):
  8259. No need to mark the renderer as dirty here.
  8260. * rendering/RenderPartObject.h:
  8261. * rendering/RenderPartObject.cpp:
  8262. (WebCore::RenderPartObject::updateWidget):
  8263. Add a parameter, onlyCreateNonPlugins. If this is true the widget
  8264. will only be created if it's not a plug-in.
  8265. (WebCore::RenderPartObject::layout):
  8266. Call updateWidget here if m_widget is 0, causing the plug-in to be instantiated.
  8267. 2007-08-17 Oliver Hunt <oliver@apple.com>
  8268. Reviewed by Maciej.
  8269. http://bugs.webkit.org/show_bug.cgi?id=14189
  8270. <rdar://problem/5319511> REPRODUCIBLE CRASH: Canvas createPattern(canvas, ...) crashes on Windows (14189)
  8271. Ensure that we actually retain the CG pattern correctly.
  8272. Credit to Henry Mason <hmason@mac.com> for finding the cause of this.
  8273. * html/CanvasPattern.cpp:
  8274. (WebCore::CanvasPattern::~CanvasPattern):
  8275. (WebCore::CanvasPattern::createPattern):
  8276. * html/CanvasPattern.h:
  8277. (WebCore::CanvasPattern::platformImage):
  8278. 2007-08-16 Geoffrey Garen <ggaren@apple.com>
  8279. Build fix. (Maybe?)
  8280. * loader/Cache.cpp:
  8281. (WebCore::Cache::pruneLiveResources):
  8282. (WebCore::Cache::pruneDeadResources):
  8283. 2007-08-16 Justin Garcia <justin.garcia@apple.com>
  8284. Reviewed by Harrison.
  8285. <rdar://problem/5378473>
  8286. REGRESSION: Undoing a deletion that is part of an open typing command fails to reinsert the caret
  8287. We recently made Undo of a series of deletes select all of the
  8288. characters that were deleted, not just the most recently deleted
  8289. character. But the code that did this set a new starting selection
  8290. after every delete, even those that were part of an open typing
  8291. command that started with character insertions or forward deletes,
  8292. operations that when undone, remove the starting selection being
  8293. set from the document.
  8294. After this change we only set a new starting selection if the open typing
  8295. command was opened by a backward delete. The new behavior matches TextEdit.
  8296. We don't do something similar or forward deletes because TextEdit opens
  8297. and closes a new typing command on forward delete (added a FIXME about this).
  8298. * editing/TypingCommand.cpp:
  8299. (WebCore::TypingCommand::TypingCommand): Initialize
  8300. m_openedByBackwardDelete.
  8301. (WebCore::TypingCommand::forwardDeleteKeyPressed): Added a FIXME about
  8302. how in TextEdit, forward deletes open and close a new typing command.
  8303. (WebCore::TypingCommand::doApply): Set m_openedByBackwardDelete
  8304. appropriately.
  8305. (WebCore::TypingCommand::deleteKeyPressed): Only set the starting
  8306. selection if this delete is the first one in an open typing command
  8307. or one in a series of deletes that opened the typing command.
  8308. * editing/TypingCommand.h: Added m_openedByBackwardDelete.
  8309. 2007-08-13 Geoffrey Garen <ggaren@apple.com>
  8310. Reviewed by Dave Hyatt.
  8311. Tweaked the cache eviction model to better balance between live and
  8312. dead resources.
  8313. For the sake of avoiding evictions during the PLT, the old model
  8314. required the sum of dead and live resources to grow to twice the cache
  8315. capacity before evicting, and would then evict dead or live down to 0
  8316. if necessary. This was a too-high high water mark, which would nullify
  8317. much of the value of eviction, and a too-low low water mark, which
  8318. would nullify much of the value of the LRU-SP strategy.
  8319. This patch changes the model in 3 ways.
  8320. 1. The new model for dead resources is a flexible window with a fixed
  8321. minimum and maximum. The dead resource window is big when live resource
  8322. pressure is small, and vice versa. This has the immediate advantage of
  8323. cutting the high water mark by up to 50%. It also enables the following
  8324. tunable optimizations in future patches:
  8325. a. A dead resource limit of 0 for clients who want that. (Just set
  8326. the fixed maximum to 0.)
  8327. b. A much higher low water mark. (Just set the fixed minimum to,
  8328. say, 25% of the cache's capacity.)
  8329. c. A much lower high water mark for users who browse simple pages
  8330. in one tab. (Just set the fixed maximum to, say, 50% of the cache's
  8331. capacity.)
  8332. I plan to make the changes that actually take advantage of these
  8333. tunable optimizations in another check-in.
  8334. The new model won't hurt the PLT because it will notice the PLT's low
  8335. live resource size, and up the dead resource capacity in response. For
  8336. the same reason, the new model should establish a good balance in
  8337. real-world use.
  8338. 2. Live resource eviction is now based on size(), not encodedSize().
  8339. So, a page with lots of large, encoded images will start evicting
  8340. resources, if necessary, even before all the images paint. This allows
  8341. you to more accurately stipulate an exact high water mark.
  8342. 3. When pruning, prune to a small percentage below capacity, to avoid
  8343. just having to prune again immediately.
  8344. Layout tests pass. PLT shows no regression.
  8345. * history/PageCache.cpp:
  8346. (WebCore::PageCache::releaseAutoreleasedPagesNow): Updated for rename.
  8347. * loader/Cache.cpp: Implemented the algorithm explained above.
  8348. * loader/Cache.h: Removed explicit tracking of decoded data size, since
  8349. it was unused.
  8350. * loader/CachedResource.cpp: ditto on tracking of decoded data size
  8351. 2007-08-16 Darin Adler <darin@apple.com>
  8352. Reviewed by Tim Hatcher.
  8353. - fix <rdar://problem/5415029> In Mail, a crash occurs at WebCore::Node::isDescendantOf()
  8354. when attempting to delete a selection in a table
  8355. The bug was caused by createMarkup trying to operate on a range that
  8356. has an endpoint in the delete button DOM, because it removes that DOM
  8357. during its operation! Still working on a regression test -- it's hard
  8358. to make the kind of bad selection that's needed with the DOM, so I might
  8359. have to use the eventSender.
  8360. * editing/DeleteButtonController.h: Made some of the identifiers private.
  8361. We can make them public if we need to use them. Added a getter function
  8362. for the container element so we can figure out if a given node is inside
  8363. the DOM added for the delete button.
  8364. * editing/markup.cpp:
  8365. (WebCore::moveEndpointsBeforeNode): Added. General purpose helper function
  8366. that moves endpoints of a range to before a given node -- we do this before
  8367. removing the delete button, so the endpoint is where the delete button was,
  8368. rather than having an endpoint that's not in the document.
  8369. (WebCore::createMarkup): Always return empty string, not null string.
  8370. Get the document by calling ownerDocument on the range rather than getting
  8371. the document of the commonAncestorContainer. That's because we need to
  8372. get at the delete button before calling commonAncestorContainer. Call
  8373. moveEndpointsBeforeNode to move the range endpoints out of the delete
  8374. button interface before calling disable() which will remove it from the
  8375. DOM if it's in there. Added an early return for the case where commonAncestor
  8376. is non-0. If this happens, we would crash later because pastEndNode would
  8377. not be in the tree. This change alone would prevent the crash, but we'd get
  8378. bad markup, so we need the moveEndpointsBeforeNode fix. Added null checks
  8379. for the frame to the range version as in the single-node version so this
  8380. won't crash immediately on documents that are not in a frame. For the
  8381. single-node version, added a check if a ndoe of 0 and a node inside the
  8382. delete button user interface, and return the empty string for those cases.
  8383. 2007-08-16 Justin Garcia <justin.garcia@apple.com>
  8384. Reviewed by Maciej.
  8385. <rdar://problem/5378847> After creating and removing a ToDo, the caret disappears as soon as I start to type
  8386. * editing/InsertTextCommand.cpp:
  8387. (WebCore::InsertTextCommand::input): A whitespace text node inserted by Mail
  8388. when a ToDo is removed is completely removed by deleteInsignificantWhitespace,
  8389. and since it contains the text insertion position, insertion fails.
  8390. Save the position before the node where text insertion will occur,
  8391. and if that node is removed, use the saved position for insertion.
  8392. 2007-08-16 Darin Adler <darin@apple.com>
  8393. Reviewed by Adele.
  8394. - fix <rdar://problem/5413488> REGRESSION: every DOM element is about 40
  8395. bytes bigger because it has a Timer
  8396. Moved the timer to the document from the element.
  8397. * dom/Document.h: Made frame() inline. Added updateFocusApperanceSoon(),
  8398. cancelFocusAppearanceUpdate(), m_updateFocusAppearanceTimer,
  8399. clearXMLVersion(), and updateFocusAppearanceTimerFired(). Also made
  8400. everything that was previously protected be private instead.
  8401. * dom/Document.cpp:
  8402. (WebCore::Document::Document): Initialize m_updateFocusAppearanceTimer.
  8403. (WebCore::Document::updateFocusAppearanceSoon): Added. Starts timer.
  8404. (WebCore::Document::cancelFocusAppearanceUpdate): Added. Stops timer.
  8405. (WebCore::Document::updateFocusAppearanceTimerFired): Added. If the
  8406. focused node is a focusable element, then calls
  8407. updateFocusAppearance(false) on it.
  8408. * dom/Element.h: Removed default value of the boolean parameter to
  8409. updateFocusAppareance. Removed needsFocusAppearanceUpdate(),
  8410. setNeedsFocusAppearanceUpdate(), updateFocusAppearanceTimerFired(),
  8411. stopUpdateFocusAppearanceTimer(), m_updateFocusAppearanceTimer, and
  8412. m_needsFocusAppearanceUpdate. Added
  8413. updateFocusAppearanceSoonAfterAttach() and cancelFocusAppearanceUpdate().
  8414. * dom/Element.cpp:
  8415. (WebCore::ElementRareData::ElementRareData): Added initializer for
  8416. m_needsFocusAppearanceUpdateSoonAfterAttach.
  8417. (WebCore::Element::Element): Removed initializers for
  8418. m_updateFocusAppearanceTimer and m_needsFocusAppearanceUpdate.
  8419. (WebCore::Element::attach): Updated code that starts the focus
  8420. appearance timer to instead call updateFocusAppearanceSoon() on the
  8421. document.
  8422. (WebCore::Element::detach): Replaced call to
  8423. stopUpdateFocusAppearanceTimer with call to cancelFocusAppearanceUpdate.
  8424. (WebCore::Element::focus): Added check for node that's already focused,
  8425. to match the logic that's in the derived classes. This makes it safe for
  8426. us to remove the override in the derived classes. Also replaced the code
  8427. that called setNeedsFocusAppearanceUpdate(true) with code to set the
  8428. rare data flag m_needsFocusAppearanceUpdateSoonAfterAttach and added a
  8429. call to cancelFocusAppearanceUpdate() in the case where there's no focus
  8430. appearance update.
  8431. (WebCore::Element::blur): Replaced call to
  8432. stopUpdateFocusAppearanceTimer with call to cancelFocusAppearanceUpdate.
  8433. (WebCore::Element::cancelFocusAppearanceUpdate): Added. Sets
  8434. m_needsFocusAppearanceUpdateSoonAfterAttach to false, and then calls
  8435. cancelFocusAppearanceUpdate() on the document, but only if the element
  8436. is the focused node of the document.
  8437. * html/HTMLDocument.cpp:
  8438. (WebCore::HTMLDocument::HTMLDocument): Replaced code that sets
  8439. m_xmlVersion directly with a call to a new inline clearXMLVersion()
  8440. function.
  8441. (WebCore::HTMLDocument::setCookie): Replaced use of m_policyBaseURL with
  8442. policyBaseURL().
  8443. (WebCore::HTMLDocument::createTokenizer): Replaced uses of m_frame with
  8444. frame().
  8445. (WebCore::HTMLDocument::determineParseMode): Replaced code that sets
  8446. pMode and hMode directly with calls to setParseMode and setHTMLMode.
  8447. Replaced use of m_styleSelector with styleSelector().
  8448. * html/HTMLInputElement.h: Removed now-unneed override of focus().
  8449. Removed default value of the boolean parameter to updateFocusAppareance.
  8450. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::updateFocusAppearance):
  8451. Pass the restorePreviousSelection boolean through -- while it's ignored,
  8452. it no longer has a default value.
  8453. * html/HTMLTextAreaElement.h: Removed now-unneed override of focus().
  8454. Removed default value of the boolean parameter to updateFocusAppareance.
  8455. * html/HTMLTextAreaElement.cpp: Ditto.
  8456. * WebCore.exp: Removed the Document::frame() symbol, since it's now inline.
  8457. 2007-08-15 Antti Koivisto <antti@apple.com>
  8458. Reviewed by Maciej.
  8459. Fix <rdar://problem/5388936>
  8460. Crash while setting display:none for a table cell with selection
  8461. Super class destroy() could (through some selection code in removeChild()) trigger section recalc
  8462. in middle of RenderTableCell::destroy(), cleaning section dirty bit. This would later crash in
  8463. layout since cell grid would still have refence to the dead cell.
  8464. Ensure table sections are dirty when leaving destroy method.
  8465. I can't figure out tests for row and section changes but they look like
  8466. they could crash in similar way as cell.
  8467. * rendering/RenderTableCell.cpp:
  8468. (WebCore::RenderTableCell::destroy):
  8469. * rendering/RenderTableRow.cpp:
  8470. (WebCore::RenderTableRow::destroy):
  8471. * rendering/RenderTableSection.cpp:
  8472. (WebCore::RenderTableSection::destroy):
  8473. 2007-08-15 Maciej Stachowiak <mjs@apple.com>
  8474. Reviewed by Geoff.
  8475. <rdar://problem/5389696> leak of 32-byte NSData object (and more?) in WebIconDatabase code path with each refresh of http://www.apple.com
  8476. * platform/graphics/BitmapImage.h: Use RetainPtr for m_nsImage and m_tiffRep
  8477. * platform/graphics/mac/ImageMac.mm:
  8478. (WebCore::BitmapImage::initPlatformData): No need to do anything now
  8479. (WebCore::BitmapImage::invalidatePlatformData): Simplify
  8480. (WebCore::BitmapImage::getTIFFRepresentation): Use RetainPtr to avoid leaks
  8481. (WebCore::BitmapImage::getNSImage): Use RetainPtr to avoid leaks
  8482. 2007-08-15 Darin Adler <darin@apple.com>
  8483. Reviewed by Anders.
  8484. - fix <rdar://problem/5094895> REGRESSION (r19094): JavaScript timers don't
  8485. work inside showModalDialog; caret also doesn't blink
  8486. * platform/Timer.h: Added fireTimersInNestedEventLoop.
  8487. * platform/Timer.cpp:
  8488. (WebCore::TimerBase::fireTimers): Added code to exit if the timersReadyToFire
  8489. is cleared. This indicates that someone fired the timers in the nested event
  8490. loop, so we should not fire any more timers ourselves.
  8491. (WebCore::TimerBase::fireTimersInNestedEventLoop): Added. Sets timersReadyToFire
  8492. to 0 so we won't return early and do nothing if the shared timer first. Then
  8493. calls updateSharedTimer() so the shared timer will get scheduled as needed based
  8494. on any pending timers.
  8495. * page/Chrome.cpp: (WebCore::Chrome::runModal): Call
  8496. fireTimersInNestedEventLoop before calling runModal on the client.
  8497. * manual-tests/modal-dialog.html: Added a test that uses a timeout.
  8498. * manual-tests/show-modal-dialog-test.html: Fixed a typo.
  8499. 2007-08-15 Justin Garcia <justin.garcia@apple.com>
  8500. Reviewed by Darin.
  8501. http://bugs.webkit.org/show_bug.cgi?id=14971
  8502. REGRESSION: cannot select reporter's e-mail in bugzilla
  8503. * page/EventHandler.cpp:
  8504. (WebCore::EventHandler::canMouseDragExtendSelect): Allow drag-selecting inside
  8505. a -webkit-user-select:ignore region.
  8506. 2007-08-15 Beth Dakin <bdakin@apple.com>
  8507. Reviewed by Hyatt.
  8508. Rolling back in. I made a silly mistake in XMLTokenizer that caused
  8509. this patch to crash SVG tests. It's fixed now!
  8510. Refactor of change for <rdar://problem/5404899> REGRESSION: Mail
  8511. crash in WebCore::FontFallbackList::fontDataAt() after dragging
  8512. image into text multiple times
  8513. The original fix that I made last night prevents the pending style
  8514. sheet count from being incremented until the element is in the
  8515. document. This fix prevents the style sheet from loading at all
  8516. until it is in the document.
  8517. Here is the fix.
  8518. * dom/StyleElement.cpp:
  8519. (WebCore::StyleElement::insertedIntoDocument): Call process.
  8520. (WebCore::StyleElement::removedFromDocument): This can be reverted
  8521. to its original state before my patch last night.
  8522. (WebCore::StyleElement::process): childrenChanged is now called
  8523. process. Return early if your not in the document.
  8524. (WebCore::StyleElement::createSheet): Revert change from last
  8525. night. The inDocument check is now in caller childrenChanged.
  8526. * dom/StyleElement.h: insertedIntoDocument() must now accept an
  8527. element in addition to a document.
  8528. This is an optimization to prevent calling updateStyleSelector()
  8529. too frequently.
  8530. * dom/XMLTokenizer.cpp:
  8531. (WebCore::XMLTokenizer::startElementNs):
  8532. * html/HTMLStyleElement.cpp:
  8533. (WebCore::HTMLStyleElement::HTMLStyleElement):
  8534. (WebCore::HTMLStyleElement::finishedParsing):
  8535. (WebCore::HTMLStyleElement::insertedIntoDocument):
  8536. (WebCore::HTMLStyleElement::childrenChanged):
  8537. (WebCore::HTMLStyleElement::sheetLoaded):
  8538. * html/HTMLStyleElement.h:
  8539. * ksvg2/svg/SVGStyleElement.cpp:
  8540. (WebCore::SVGStyleElement::SVGStyleElement):
  8541. (WebCore::SVGStyleElement::finishedParsing):
  8542. (WebCore::SVGStyleElement::insertedIntoDocument):
  8543. (WebCore::SVGStyleElement::childrenChanged):
  8544. (WebCore::SVGStyleElement::sheetLoaded):
  8545. * ksvg2/svg/SVGStyleElement.h:
  8546. (WebCore::SVGStyleElement::setCreatedByParser):
  8547. This is a name change. Document::stylesheetLoaded()
  8548. is now Document::removePendingSheet()
  8549. * dom/Document.cpp:
  8550. (WebCore::Document::removePendingSheet):
  8551. * dom/Document.h:
  8552. * dom/ProcessingInstruction.cpp:
  8553. (WebCore::ProcessingInstruction::sheetLoaded):
  8554. * html/HTMLLinkElement.cpp:
  8555. (WebCore::HTMLLinkElement::~HTMLLinkElement):
  8556. (WebCore::HTMLLinkElement::setDisabledState):
  8557. (WebCore::HTMLLinkElement::process):
  8558. (WebCore::HTMLLinkElement::sheetLoaded):
  8559. * page/Frame.cpp:
  8560. (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader):
  8561. (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
  8562. This is another name change. closeRenderer() is now
  8563. finishedParsing()
  8564. * dom/Node.h:
  8565. (WebCore::Node::finishedParsing):
  8566. * dom/XMLTokenizer.cpp:
  8567. (WebCore::XMLTokenizer::endElementNs):
  8568. (WebCore::):
  8569. * html/HTMLAppletElement.cpp:
  8570. (WebCore::HTMLAppletElement::finishedParsing):
  8571. * html/HTMLAppletElement.h:
  8572. * html/HTMLGenericFormElement.cpp:
  8573. (WebCore::HTMLFormControlElementWithState::finishedParsing):
  8574. * html/HTMLGenericFormElement.h:
  8575. * html/HTMLObjectElement.cpp:
  8576. (WebCore::HTMLObjectElement::finishedParsing):
  8577. * html/HTMLObjectElement.h:
  8578. * html/HTMLParser.cpp:
  8579. (WebCore::HTMLParser::insertNode):
  8580. (WebCore::HTMLParser::popOneBlockCommon):
  8581. * html/HTMLScriptElement.cpp:
  8582. (WebCore::HTMLScriptElement::finishedParsing):
  8583. * html/HTMLScriptElement.h:
  8584. (WebCore::HTMLStyleElement::setCreatedByParser):
  8585. * ksvg2/svg/SVGAnimationElement.cpp:
  8586. (WebCore::SVGAnimationElement::finishedParsing):
  8587. * ksvg2/svg/SVGAnimationElement.h:
  8588. * ksvg2/svg/SVGElement.cpp:
  8589. (WebCore::SVGElement::finishedParsing):
  8590. * ksvg2/svg/SVGElement.h:
  8591. 2007-08-15 David Harrison <harrison@apple.com>
  8592. Reviewed by Antti Koivisto.
  8593. <rdar://problem/5411803> Bumpercar crashes when loading a partial URL (FrameLoader::receivedMainResourceError())
  8594. * loader/MainResourceLoader.cpp:
  8595. (WebCore::MainResourceLoader::receivedError):
  8596. Nil check for the FrameLoader.
  8597. 2007-08-14 Steve Falkenburg <sfalken@apple.com>
  8598. <rdar://problem/5411482> Windows user agent language always returns "en"
  8599. Implement defaultLanguage().
  8600. Reviewed by Oliver.
  8601. * WebCore.vcproj/WebCore.vcproj: Added Language.cpp.
  8602. * platform/win/Language.cpp: Added.
  8603. (WebCore::localeInfo): Added.
  8604. (WebCore::defaultLanguage): Added.
  8605. * platform/win/TemporaryLinkStubs.cpp: Remove defaultLanguage stub.
  8606. 2007-08-14 Sam Weinig <sam@webkit.org>
  8607. Reviewed by Geoff and Oliver.
  8608. Fix for <rdar://problem/5267870>
  8609. Mangleme: Reproducible assertion failure in -[WebCoreFrameBridge installInFrame:]
  8610. - Change embed/plugin code path to detach the frame on willRemove instead of detach.
  8611. This matches what frame and iframe do.
  8612. Test: http/tests/misc/embedCrasher.html
  8613. * html/HTMLPlugInElement.cpp:
  8614. (WebCore::HTMLPlugInElement::willRemove):
  8615. * html/HTMLPlugInElement.h:
  8616. 2007-08-14 Adele Peterson <adele@apple.com>
  8617. Reviewed by Maciej.
  8618. Fix for <rdar://problem/5370059> REGRESSION: Cannot type into edit fields on a form (sccsheriff.org)
  8619. This change makes -webkit-user-select an inherited css property. For "user-select: none" we were already
  8620. acting like it was an inheritable property, where we let user-select:text on the children override its parent's user-select:none.
  8621. By making user-select really inherited (instead of inherited for some values), we eliminate the need for crawling up the tree to see
  8622. if an ancestor has user-select ignore set.
  8623. * page/EventHandler.cpp: (WebCore::EventHandler::canMouseDownStartSelect):
  8624. Now that user-select is inherited, you don't need to walk up the render tree looking for ancestors with user-select:ignore set.
  8625. * css/CSSStyleSelector.cpp: Eliminate SELECT_AUTO.
  8626. (WebCore::CSSStyleSelector::adjustRenderStyle):
  8627. (WebCore::CSSStyleSelector::applyProperty):
  8628. * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  8629. * rendering/RenderStyle.h:
  8630. (WebCore::): Eliminate SELECT_AUTO. Make userSelect inherited.
  8631. (WebCore::RenderStyle::userSelect):
  8632. (WebCore::RenderStyle::setUserSelect):
  8633. (WebCore::RenderStyle::initialUserSelect):
  8634. * rendering/RenderStyle.cpp:
  8635. (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
  8636. (WebCore::StyleRareNonInheritedData::operator==):
  8637. (WebCore::StyleRareInheritedData::StyleRareInheritedData):
  8638. (WebCore::StyleRareInheritedData::operator==):
  8639. (WebCore::RenderStyle::diff):
  8640. 2007-08-15 Peter Kasting <pkasting@google.com>
  8641. Reviewed by Darin.
  8642. http://bugs.webkit.org/show_bug.cgi?id=14967 part 1 - Eliminate most implicit
  8643. conversions of wtf::Vector<T> to T* by explicitly calling .data()
  8644. * html/HTMLSelectElement.cpp:
  8645. (WebCore::HTMLSelectElement::saveState):
  8646. * platform/KURL.cpp:
  8647. (WebCore::KURL::KURL):
  8648. (WebCore::KURL::init):
  8649. (WebCore::KURL::decode_string):
  8650. (WebCore::KURL::parse):
  8651. (WebCore::KURL::encode_string):
  8652. * platform/cf/KURLCFNet.cpp:
  8653. (WebCore::KURL::KURL):
  8654. * platform/mac/KURLMac.mm:
  8655. (WebCore::KURL::KURL):
  8656. * rendering/RenderFrameSet.cpp:
  8657. (WebCore::RenderFrameSet::layOutAxis):
  8658. 2007-08-14 Ricci Adams <iccir@apple.com>
  8659. Reviewed by Darin, Hyatt.
  8660. - fix <rdar://problem/5407795> -apple-line-clamp should never display less than one line
  8661. * rendering/RenderFlexibleBox.cpp:(WebCore::RenderFlexibleBox::layoutVerticalBox): Use
  8662. max to make sure it never computes a minimum of less than one line.
  8663. 2007-08-14 Brady Eidson <beidson@apple.com>
  8664. Reviewed by Darin, John, Maciej, Oliver, and Tim
  8665. <rdar://problem/5394708> - Crash on launch with corrupt icon database
  8666. The main part of the fix is to not disable SQLite's default level of protection - to leave the sync options at their normal,
  8667. mostly safe levels.
  8668. But in case lightning strikes at the exact right moment and someone ends up with a corrupt database, add some support code to
  8669. detect that condition and recover from it.
  8670. This is mainly accomplished by exposing the "PRAGMA integrity_check;" facilities of sqlite through IconDatabase SPI as well as
  8671. running that integrity check if a journal file is detected at launch (a strong indication that the last quit was not clean).
  8672. There's also a method exposed to allow clients to tell the icon database "I suspect something bad happened, please check integrity"
  8673. * loader/icon/IconDatabase.cpp:
  8674. (WebCore::IconDatabase::checkIntegrityBeforeOpening): Allow clients to suggest an integrity check
  8675. (WebCore::IconDatabase::open): Add a check to see if the journal file for the database exists. If it does, run the integrity
  8676. check. Also run the check if a client has suggested it to be necessary.
  8677. If the integrity-check fails, we sadly have to destroy the database and recreate from scratch.
  8678. Also - quite importantly - do not adjust the default sync preferences for the SQLDatabase. They were an optimization that
  8679. might have been valid at one time but no longer affects any benchmarks we care about.
  8680. (WebCore::IconDatabase::checkIntegrity): Perform the SQLite integrity_check pragma
  8681. * loader/icon/IconDatabase.h:
  8682. * loader/icon/IconDatabaseNone.cpp:
  8683. (WebCore::IconDatabase::checkIntegrity): Keep IconDatabaseNone users building
  8684. (WebCore::IconDatabase::checkIntegrityBeforeOpening): Ditto
  8685. * loader/icon/SQLDatabase.cpp:
  8686. (WebCore::SQLDatabase::open): Make a copy of the path string so we don't accidentally mutate anyone else's string on ::close()
  8687. * platform/FileSystem.h: Added. Begin a long-needed platform file system abstraction
  8688. * platform/mac/FileSystemMac.mm: Added.
  8689. (WebCore::fileExists): Check if a file exists
  8690. (WebCore::deleteFile): Delete a file
  8691. * platform/gdk/TemporaryLinkStubs.cpp:
  8692. (WebCore::fileExists):
  8693. (WebCore::deleteFile):
  8694. * platform/qt/TemporaryLinkStubs.cpp:
  8695. (WebCore::fileExists):
  8696. (WebCore::deleteFile):
  8697. * platform/win/TemporaryLinkStubs.cpp:
  8698. (WebCore::fileExists):
  8699. (WebCore::deleteFile):
  8700. * WebCore.exp:
  8701. * WebCore.xcodeproj/project.pbxproj:
  8702. 2007-08-14 Jon Honeycutt <jhoneycutt@apple.com>
  8703. Reviewed by Steve.
  8704. Build fix for Windows.
  8705. * html/HTMLFormElement.cpp:
  8706. 2007-08-14 George Staikos <staikos@kde.org>
  8707. Only connect the menu signal once.
  8708. * platform/qt/ContextMenuQt.cpp:
  8709. (WebCore::ContextMenu::ContextMenu):
  8710. (WebCore::ContextMenu::insertItem):
  8711. 2007-08-14 Justin Garcia <justin.garcia@apple.com>
  8712. Reviewed by Tim.
  8713. <rdar://problem/5408255> REGRESSION: In Mail, clicking the containing element's UI closebox doesn't delete element
  8714. * editing/DeleteButtonController.cpp:
  8715. (WebCore::DeleteButtonController::show): Use -webkit-user-select:ignore for
  8716. the deletion UI.
  8717. 2007-08-14 Antti Koivisto <antti@apple.com>
  8718. Reviewed by Darin.
  8719. Fix <rdar://problem/5143183>
  8720. Air Mail postmark shows up wrong in Firefox due to use of CSS background-position-x/y
  8721. Safari was using non-standard background-position-x/y properties when serializing style, both normal
  8722. and computed. As a result Safari generated CSS would not render correctly in Firefox.
  8723. Use standard background-position property instead.
  8724. * css/CSSComputedStyleDeclaration.cpp:
  8725. (WebCore::):
  8726. * css/CSSMutableStyleDeclaration.cpp:
  8727. (WebCore::CSSMutableStyleDeclaration::cssText):
  8728. 2007-08-14 Sam Weinig <sam@webkit.org>
  8729. Reviewed by Brady and Dr. Harrison.
  8730. Fix typo. 'whitespace' property is spelled 'white-space'.
  8731. * page/inspector/inspector.css:
  8732. 2007-08-13 Beth Dakin <bdakin@apple.com>
  8733. Reviewed by Maciej.
  8734. Fix for <rdar://problem/5404899> REGRESSION: Mail crash in
  8735. WebCore::FontFallbackList::fontDataAt() after dragging image into
  8736. text multiple times
  8737. We were crashing because style information was not up-to-date. This
  8738. patch fixes the problem in two ways:
  8739. Style information was not up to date at the time of the crash
  8740. because the document thought there was still a pending style sheet.
  8741. The pending style sheet counter was incremented when a call to
  8742. cloneNode from Mail cloned a style node with an imported style
  8743. sheet. Because Mail disables the cache, the style sheet did not
  8744. load immediately for the cloned node, and we do not check again to
  8745. see if it has loaded in time to decrement the pending style sheet
  8746. counter before the crash point. The fix here is only to increment
  8747. the pending style sheet counter for elements that are already in
  8748. the document.
  8749. * dom/StyleElement.cpp:
  8750. (WebCore::StyleElement::insertedIntoDocument): If we have a CSS
  8751. style sheet that is currently loading, increment the pending style
  8752. sheet counter. This should keep the counter accurate in the case
  8753. where a style node is cloned and then immediately inserted into the
  8754. document.
  8755. (WebCore::StyleElement::removedFromDocument): If we have a CSS
  8756. style sheet that is currently loading, decrement the pending style
  8757. sheet count. This is required to keep the correct balance, given
  8758. the change above.
  8759. (WebCore::StyleElement::createSheet): Only addPendingSheet() and
  8760. checkLoaded() if we are in the document.
  8761. Here is Darin's original fix. It seems worth keeping this fix too.
  8762. Font style information should not cause a crash if there are still
  8763. pending style sheets. This is good belt-and-suspenders in case
  8764. there is another way to run into this bug with a wacky timing
  8765. issue.
  8766. * css/CSSStyleSelector.cpp:
  8767. (WebCore::CSSStyleSelector::styleForElement): Update the font.
  8768. 2007-08-13 Alexey Proskuryakov <ap@webkit.org>
  8769. Reviewed by Darin.
  8770. http://bugs.webkit.org/show_bug.cgi?id=14635
  8771. rdar://problem/5340188
  8772. Uploading file with non-ASCII character in path fails
  8773. File upload cannot be tested in DumpRenderTree.
  8774. * html/HTMLFormElement.cpp:
  8775. (WebCore::pathGetFilename): A cross-platform helper that extracts a file name from a path.
  8776. (WebCore::HTMLFormElement::formData): Use the above helper instead of code that doesn't
  8777. work on Windows.
  8778. 2007-08-13 Alexey Proskuryakov <ap@webkit.org>
  8779. Reviewed by Darin.
  8780. http://bugs.webkit.org/show_bug.cgi?id=14951
  8781. REGRESSION: page interpreted as UTF-8 because of stray <?xml> after <head>
  8782. Test: fast/encoding/misplaced-xml-declaration.html
  8783. * loader/TextResourceDecoder.cpp:
  8784. (WebCore::TextResourceDecoder::checkForHeadCharset): Only honor XML declaration
  8785. at the very beginning of the file.
  8786. 2007-08-13 Oliver Hunt <oliver@apple.com>
  8787. rs=sam
  8788. Correct accidentally modified code.
  8789. * platform/mac/FontDataMac.mm:
  8790. (WebCore::FontData::platformInit):
  8791. 2007-08-13 Adele Peterson <adele@apple.com>
  8792. Reviewed by Brady.
  8793. Fix for http://bugs.webkit.org/show_bug.cgi?id=14746
  8794. <rdar://problem/5401041> REGRESSION: Form state not saved for forms that submit via HTTPS even if they do not contain a password field
  8795. * loader/FrameLoader.cpp: (WebCore::FrameLoader::saveDocumentState): Restore our old behavior that will save form state for secure forms.
  8796. This will also match Firefox behavior.
  8797. * dom/Document.cpp: Removed secureFormAdded(), secureFormRemoved(), hasSecureForm() which are no longer used.
  8798. * dom/Document.h:
  8799. * html/HTMLFormElement.cpp:
  8800. (WebCore::HTMLFormElement::attach):
  8801. (WebCore::HTMLFormElement::parseMappedAttribute):
  8802. 2007-08-13 Oliver Hunt <oliver@apple.com>
  8803. Reviewed by Maciej.
  8804. <rdar://problem/5386183> REGRESSION (9A504-9A508): Underline of inline hole is too thin
  8805. on Japanese DotMac page
  8806. Hack the line metrics for the Hiragino font families so that they always allow space for
  8807. the marked text underline.
  8808. * platform/mac/FontDataMac.mm:
  8809. (WebCore::FontData::platformInit):
  8810. 2007-08-13 David Hyatt <hyatt@apple.com>
  8811. Reviewed by aroben
  8812. <rdar://problem/5400446> messed up content on calendar.yahoo.com and my.yahoo.com
  8813. Fix some more bad assumptions about <html> being the first child of the document now that we
  8814. properly support HTML5's model (where a comment node preceding <html> will in fact be its sibling).
  8815. * html/HTMLParser.cpp:
  8816. (WebCore::HTMLParser::handleError):
  8817. (WebCore::HTMLParser::createHead):
  8818. 2007-08-13 Justin Garcia <justin.garcia@apple.com>
  8819. Reviewed by Darin.
  8820. <rdar://problem/5333725> -webkit-user-select: none makes selection difficult
  8821. Let users create selections if they mouse down in a -webkit-user-select:none
  8822. region, just (continue to) disallow selection endpoints in those regions, and
  8823. don't paint those regions as selected if they are fully enclosed by a selection.
  8824. For example, in xxyyyxx where x is -webkit-user-select:none, a user can mouse down
  8825. between the first two xs and drag across yyy to the second two xs to create a
  8826. selection xx^yyy^xx.
  8827. * editing/SelectionController.cpp:
  8828. (WebCore::SelectionController::selectAll): Allow selectAll inside a root
  8829. that has -webkit-user-select:none, because it may contain content that
  8830. is selectable (VisiblePosition and Selection creation will keep Selection
  8831. endpoints out of -webkit-user-select:none regions).
  8832. * page/EventHandler.cpp:
  8833. (WebCore::EventHandler::selectClosestWordFromMouseEvent): Use canMouseDownStartSelect
  8834. instead of the ambiguously named shouldSelect().
  8835. (WebCore::EventHandler::handleMousePressEventTripleClick): Ditto.
  8836. (WebCore::EventHandler::handleMousePressEventSingleClick): Ditto.
  8837. (WebCore::EventHandler::updateSelectionForMouseDrag): Use canMouseDragExtendSelect.
  8838. (WebCore::EventHandler::selectCursor): Paint an ibeam in -webkit-user-select:none regions,
  8839. because you can click in those regions to create a selection.
  8840. (WebCore::EventHandler::canMouseDownStartSelect): Now fires the selectStart event, and
  8841. returns true in -webkit-user-select: none regions.
  8842. (WebCore::EventHandler::canMouseDragExtendSelect): This is identical to
  8843. canMouseDownStartSelect because of 12823, even though it seems strange that we would fire
  8844. the selectStart event here.
  8845. * page/EventHandler.h:
  8846. * rendering/RenderObject.cpp:
  8847. (WebCore::RenderObject::draggableNode): Only -webkit-user-select:ignore regions will
  8848. prevent selection creation.
  8849. * rendering/RenderObject.h:
  8850. 2007-08-13 Anders Carlsson <andersca@apple.com>
  8851. Reviewed by Maciej.
  8852. <rdar://problem/5360748>
  8853. REGRESSION (r21002-r21003): Flash widget sniffer doesn't work (affects iWeb)
  8854. Don't check whether the document is being parsed or not, because the node list
  8855. could be accessed after the document has finished parsing.
  8856. * dom/Node.cpp:
  8857. (WebCore::Node::registerNodeList):
  8858. 2007-08-13 Lars Knoll <lars@trolltech.com>
  8859. Reviewed by Simon.
  8860. no need to update regions that are not visible on the webpage.
  8861. * platform/qt/ScrollViewQt.cpp:
  8862. (WebCore::ScrollView::updateContents):
  8863. 2007-08-12 Maciej Stachowiak <mjs@apple.com>
  8864. Reviewed by Darin and Sam.
  8865. <rdar://problem/5395213> cross-domain access to individual components of location object should be denied.
  8866. * bindings/js/kjs_window.cpp:
  8867. (KJS::Location::put): Add the appropriate cross-domain access checks.
  8868. 2007-08-12 Darin Adler <darin@apple.com>
  8869. Reviewed by John Sullivan.
  8870. - fix <rdar://problem/5403724> REGRESSION: text inputs are not scrolled to make inline input visible (14912)
  8871. * editing/Editor.h: Made setIgnoreMarkedTextSelectionChange no longer inline.
  8872. It now has a side effect of revealing the selection when you set it to false.
  8873. Added private revealSelectionAfterEditingOperation helper.
  8874. * editing/Editor.cpp:
  8875. (WebCore::Editor::deleteRange): Calls revealSelectionAfterEditingOperation instead
  8876. of calling m_frame->revealSelection directly.
  8877. (WebCore::Editor::replaceSelectionWithFragment): Ditto.
  8878. (WebCore::Editor::insertOrderedList): Ditto.
  8879. (WebCore::Editor::insertUnorderedList): Ditto.
  8880. (WebCore::Editor::increaseSelectionListLevel): Ditto.
  8881. (WebCore::Editor::increaseSelectionListLevelOrdered): Ditto.
  8882. (WebCore::Editor::increaseSelectionListLevelUnordered): Ditto.
  8883. (WebCore::Editor::decreaseSelectionListLevel): Ditto.
  8884. (WebCore::Editor::insertLineBreak): Ditto.
  8885. (WebCore::Editor::insertParagraphSeparator): Ditto.
  8886. (WebCore::Editor::replaceMarkedText): Ditto.
  8887. (WebCore::Editor::revealSelectionAfterEditingOperation): Added. Calls revealSelection,
  8888. unless we are in the ignoreMarkedTextSelectionChange state. If we are in that state,
  8889. we're in the middle of a composite editing operation and we shouldn't try to scroll
  8890. to reveal the selection until the operation is done.
  8891. (WebCore::Editor::setIgnoreMarkedTextSelectionChange): Made no longer inline. If
  8892. changing the state from true to false, then calls revealSelectionAfterEditingOperation.
  8893. * WebCore.exp: Add new entry point for no-longer-inline setter function.
  8894. 2007-08-12 Geoffrey Garen <ggaren@apple.com>
  8895. Reviewed by Maciej Stachowiak, Dave Hyatt.
  8896. Changed the dead resource LRU-SP algorithm to measure an object's
  8897. total size, not just its encoded size. This will allow us to make
  8898. better decisions about what data to evict when the cache is small. For
  8899. example, the PLT can now run with a 16MB cache without fully evicting
  8900. any resources.
  8901. (Previously, we had assumed that decoded size would be an OK estimate
  8902. of encoded size, but that is not true of GIF, whose decoded size can be
  8903. orders of magnitude greater than its encoded size.)
  8904. Subtly, destroying a resource's decoded data now increases its recency
  8905. by moving it to the head of a smaller LRU list. This is slightly odd,
  8906. but, since all resources get the same treatment, it shouldn't hurt
  8907. the eviction algorithm.
  8908. * history/PageCache.cpp:
  8909. (WebCore::PageCache::releaseAutoreleasedPagesNow): Make sure that a
  8910. dead resource eviction doesn't happen until we've released all of our
  8911. dead pages. Otherwise, the cache will make terrible decisions about
  8912. what to evict because all of our dead resources will seem live.
  8913. * loader/Cache.cpp:
  8914. (WebCore::Cache::Cache):
  8915. (WebCore::Cache::pruneLiveResources):
  8916. (WebCore::Cache::pruneDeadResources): Removed call to
  8917. removeFromLiveDecodedResourcesList because this happens automatically
  8918. now as a part of the process of changing the resource's decoded size.
  8919. (WebCore::Cache::lruListFor): *** The key change. *** Compute the
  8920. appropriate LRU list based on total size, not encoded size.
  8921. (WebCore::Cache::dumpLRULists): Added debug logging function to help
  8922. visualize the cache.
  8923. * loader/Cache.h:
  8924. (WebCore::Cache::setDeadResourcePruneEnabled):
  8925. (WebCore::Cache::deadResourcePruneEnabled):
  8926. * loader/CachedImage.cpp: Moved decoded size tracking code from here
  8927. up into the base class. Currently, only CachedImage has a use for that
  8928. functionality, but other subclasses might need it in the future, and
  8929. the base class is already responsible for similar code related to
  8930. encoded size tracking.
  8931. (WebCore::CachedImage::decodedSizeChanged):
  8932. * loader/CachedImage.h:
  8933. * loader/CachedResource.cpp:
  8934. (WebCore::CachedResource::CachedResource):
  8935. (WebCore::CachedResource::setDecodedSize): Move us in the LRU-SP list
  8936. just like setEncodedSize does, since decoded size counts now, too.
  8937. (WebCore::CachedResource::setEncodedSize): Changed slightly to match
  8938. the style of setDecodedSize.
  8939. * loader/CachedResource.h:
  8940. (WebCore::CachedResource::decodedSize):
  8941. 2007-08-11 Mitz Pettel <mitz@webkit.org>
  8942. Reviewed by Darin.
  8943. - fix http://bugs.webkit.org/show_bug.cgi?id=13670
  8944. <rdar://problem/5399619> Table misrender when one of the TDs has width=100%
  8945. Tests: fast/table/100-percent-cell-width.html
  8946. fast/table/percent-widths-stretch.html
  8947. * rendering/AutoTableLayout.cpp:
  8948. (WebCore::AutoTableLayout::calcPrefWidths): Changed the value used instead of
  8949. 0% to avoid division by zero from 1% to less than 0.01%. Removed code that
  8950. added 0.5px to non-percent widths when calculating the scaling factor. The
  8951. latter change is covered by the percent-widths-stretch test, where the new
  8952. results match both WinIE 7 and Firefox 3.
  8953. 2007-08-11 Darin Adler <darin@apple.com>
  8954. Reviewed by Antti.
  8955. - fix <rdar://problem/5266535> REGRESSION: <img> inside <map> no longer allowed in strict mode
  8956. (breaks chemicalelements.com)
  8957. Test: fast/parser/strict-img-in-map.html
  8958. * html/HTMLMapElement.cpp: (WebCore::HTMLMapElement::checkDTD): Removed FIXME saying this
  8959. code is strange, since this code matches the HTML 4 specification almost exactly. Made
  8960. <img> elements allowed even in strict mode and added small comments to clarify what comes
  8961. from the DTD and what is non-standard.
  8962. 2007-08-11 Holger Hans Peter Freyther <zecke@selfish.org>
  8963. Reviewed by Anders.
  8964. Implement passing events to a subframe. The code is copied from
  8965. the windows port and passSubframeEventToSubframe was removed as it
  8966. is not called and it is not avilable in the windows port as well.
  8967. * page/gdk/EventHandlerGdk.cpp:
  8968. (WebCore::EventHandler::passMousePressEventToSubframe):
  8969. (WebCore::EventHandler::passMouseMoveEventToSubframe):
  8970. (WebCore::EventHandler::passMouseReleaseEventToSubframe):
  8971. 2007-08-11 Holger Hans Peter Freyther <zecke@selfish.org>
  8972. Reviewed by Lars.
  8973. GdkEventKey::string is not supposed to be used. The length
  8974. of this string is zero for non ascii characters. Use the
  8975. gdk_unicode_to_keyval to convert the keyval to a UChar and construct
  8976. a String. This change makes it possible to input non ascii
  8977. characters.
  8978. * platform/gdk/KeyEventGdk.cpp:
  8979. (WebCore::keyIdentifierForGdkKeyCode):
  8980. (WebCore::singleCharacterString):
  8981. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  8982. 2007-08-11 Andrew Wellington <proton@wiretapped.net>
  8983. Reviewed by Mark Rowe.
  8984. Fix http://bugs.webkit.org/show_bug.cgi?id=14645
  8985. getPropertyValue should be case insensitive
  8986. When we get the propertyID for a given string we convert to lowercase.
  8987. This also applies to setProperty, removeProperty and others.
  8988. * css/CSSStyleDeclaration.cpp:
  8989. (WebCore::propertyID):
  8990. 2007-08-11 Mark Rowe <mrowe@apple.com>
  8991. Build fix. Change "#ifdef PLATFORM(GDK)" to "#if PLATFORM(GDK)".
  8992. * page/FrameView.cpp:
  8993. * page/FrameView.h:
  8994. 2007-08-11 Holger Hans Peter Freyther <zecke@selfish.org>
  8995. Reviewed by Adam.
  8996. Copy the WebFrame::layoutIfNeededRecursive method of the windows port
  8997. to FrameView to be used by the Gtk+ port. Simplify the implementation due
  8998. moving it to the FrameView class.
  8999. Implement the ScrollView::children() method for the Gtk+ port and make it
  9000. available to the FrameView as children() is used within the layoutIfNeededRecursive method.
  9001. * page/FrameView.cpp:
  9002. (WebCore::FrameView::layoutIfNeededRecursive):
  9003. * page/FrameView.h:
  9004. * platform/ScrollView.h:
  9005. * platform/gdk/ScrollViewGdk.cpp:
  9006. 2007-08-11 Holger Hans Peter Freyther <zecke@selfish.org>
  9007. Reviewed by Adam.
  9008. To fix text selection make the PlatformMouseEvent set the pressed
  9009. button even when moving the mouse.
  9010. Add building of the WebKit::DragClient stubs as they are needed to
  9011. make text selection work.
  9012. * WebCore.pro:
  9013. * platform/gdk/MouseEventGdk.cpp:
  9014. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  9015. 2007-08-10 Anders Carlsson <andersca@apple.com>
  9016. Reviewed by Darin and Maciej.
  9017. <rdar://problem/5360748>
  9018. REGRESSION(r21002-r21003) Flash widget sniffer doesn't work
  9019. Add a per-document NodeList counter. When parsing, only call notifyNodeListsChildrenChanged
  9020. if the document has node lists. Also, make sure to reset the cache when the node list count has
  9021. been 0 and a new node list is registered to avoid any stale cache information.
  9022. * dom/ContainerNode.cpp:
  9023. (WebCore::ContainerNode::addChild):
  9024. * dom/Document.cpp:
  9025. (WebCore::Document::Document):
  9026. * dom/Document.h:
  9027. (WebCore::Document::addNodeList):
  9028. (WebCore::Document::removeNodeList):
  9029. (WebCore::Document::hasNodeLists):
  9030. * dom/Node.cpp:
  9031. (WebCore::Node::registerNodeList):
  9032. (WebCore::Node::unregisterNodeList):
  9033. 2007-08-10 Timothy Hatcher <timothy@apple.com>
  9034. Reviewed by Adam.
  9035. <rdar://problem/5394449> Stop using some Carbon UI APIs for 64 bit
  9036. Disable NPObject use in 64-bit on Mac OS X.
  9037. * Configurations/WebCore.xcconfig: Add a framework search path to the sub-framworks of Carbon.
  9038. * WebCore.xcodeproj/project.pbxproj: Filter out the Frame::windowScriptNPObject() symbol in 64-bit.
  9039. * bindings/objc/DOM.mm:
  9040. (-[DOMElement _NPObject]): Return null in 64-bit.
  9041. * config.h: Set WTF_USE_NPOBJECT to 0 in 64-bit Mac OS X.
  9042. * page/Frame.cpp:
  9043. (WebCore::Frame::cleanupScriptObjects): Add more #if USE(NPOBJECT) blocks where needed.
  9044. * page/Frame.h: Ditto.
  9045. * page/mac/FrameMac.mm:
  9046. (WebCore::Frame::createScriptInstanceForWidget): Ditto.
  9047. * page/mac/WebCoreFrameBridge.h: Ditto.
  9048. * page/mac/WebCoreFrameBridge.mm: Ditto.
  9049. 2007-08-10 Mitz Pettel <mitz@webkit.org>
  9050. Reviewed by Justin.
  9051. - fix <rdar://problem/5397344> http://bugs.webkit.org/show_bug.cgi?id=14911
  9052. REGRESSION: Clicking in pasted text doesn't position the insertion point correctly
  9053. Test: editing/selection/inline-closest-leaf-child.html
  9054. * rendering/RootInlineBox.cpp:
  9055. (WebCore::RootInlineBox::closestLeafChildForXPos): Return the last leaf if
  9056. it's the closest match, or if no other leaf matches (for example if all
  9057. leaves are list markers or non-editable where editable is required).
  9058. 2007-08-10 Anders Carlsson <andersca@apple.com>
  9059. Reviewed by Geoff.
  9060. <rdar://problem/5390568>
  9061. REGRESSION: -[WebFrame loadHTMLString:baseURL:] leaks the data source.
  9062. Revert the fix for <rdar://problem/5133420> which caused us to not cancel
  9063. substitute data loads. It's better to remove the assertion in the WebKit layer.
  9064. * loader/ResourceLoader.cpp:
  9065. (WebCore::ResourceLoader::didCancel):
  9066. 2007-08-10 Sam Weinig <sam@webkit.org>
  9067. Rubber-stamped by Adam Roben.
  9068. Fix Windows, Qt and Gtk build.
  9069. * WebCore.pro:
  9070. * WebCore.vcproj/WebCore.vcproj:
  9071. 2007-08-09 Sam Weinig <sam@webkit.org>
  9072. Reviewed by Maciej.
  9073. Fix for <rdar://problem/5395618>
  9074. Use checkNodeSecurity when setting the 'src' or 'location' attribute of an
  9075. iframe or frame element.
  9076. * WebCore.xcodeproj/project.pbxproj:
  9077. * bindings/js/JSAttrCustom.cpp: Added.
  9078. (WebCore::JSAttr::setValue): Call checkNodeSecurity for attributes with a current iframe or frame
  9079. ownerElement when setting src to a javascript: URL.
  9080. * bindings/js/JSElementCustom.cpp: Added.
  9081. (WebCore::allowSettingSrcToJavascriptURL):
  9082. (WebCore::JSElement::setAttribute): Call checkNodeSecurity when element is a frame or iframe and
  9083. setting he src attribute to a javascript: URL.
  9084. (WebCore::JSElement::setAttributeNode): Ditto.
  9085. (WebCore::JSElement::setAttributeNS): Ditto.
  9086. (WebCore::JSElement::setAttributeNodeNS): Ditto.
  9087. * bindings/js/JSHTMLFrameElementCustom.cpp: Added.
  9088. (WebCore::allowSettingJavascriptURL):
  9089. (WebCore::JSHTMLFrameElement::setSrc): Call checkNodeSecurity when setting to a javascript: URL.
  9090. (WebCore::JSHTMLFrameElement::setLocation): Ditto.
  9091. * bindings/js/JSHTMLIFrameElementCustom.cpp: Added.
  9092. (WebCore::JSHTMLIFrameElement::setSrc): Call checkNodeSecurity when setting to a javascript: URL.
  9093. * bindings/scripts/CodeGeneratorJS.pm: Add support for [CustomGetter] and [CustomSetter]
  9094. * dom/Attr.idl:
  9095. * dom/Element.idl:
  9096. * html/HTMLFrameElement.idl:
  9097. * html/HTMLIFrameElement.idl:
  9098. 2007-08-10 Holger Hans Peter Freyther <zecke@selfish.org>
  9099. Reviewed by Anders.
  9100. Make the containingWindow a GtkContainer and make use of the
  9101. GtkWidget::window instead of the GtkLayout::bin_window.
  9102. * platform/Widget.h:
  9103. * platform/gdk/PlatformScreenGdk.cpp:
  9104. (WebCore::screenDepth):
  9105. * platform/gdk/ScrollViewGdk.cpp:
  9106. (WebCore::ScrollView::updateContents):
  9107. (WebCore::ScrollView::update):
  9108. * platform/gdk/WidgetGdk.cpp:
  9109. (WebCore::Widget::setContainingWindow):
  9110. (WebCore::Widget::setCursor):
  9111. 2007-08-10 Simon Hausmann <hausmann@kde.org>
  9112. Reviewed by Lars.
  9113. Revert r24699 as it broke timers. The precision of QTime::toTime_t() is just seconds, which is not good enough. Revert back
  9114. to the old implementation and use the simple implementation of currentTime() from win/ for the Qt/Windows build (fingers crossed :)
  9115. * WebCore.pro:
  9116. * platform/qt/SystemTimeQt.cpp:
  9117. (WebCore::currentTime):
  9118. 2007-08-10 Simon Hausmann <hausmann@kde.org>
  9119. Reviewed by Lars.
  9120. Recognize .htm as valid extension for text/html.
  9121. * platform/qt/MIMETypeRegistryQt.cpp:
  9122. (WebCore::):
  9123. 2007-08-10 Lars Knoll <lars@trolltech.com>
  9124. Reviewed by Simon.
  9125. remove an assertion that leads to crashes. The whole design of WidgetQt and ScrollViewQt needs to be reevaluated soon anyways.
  9126. * platform/qt/ScrollViewQt.cpp:
  9127. 2007-08-10 Mark Rowe <mrowe@apple.com>
  9128. Fix the Mac build.
  9129. * ForwardingHeaders/bindings/runtime_object.h: Added.
  9130. 2007-08-10 Simon Hausmann <hausmann@kde.org>
  9131. Reviewed by Lars.
  9132. Make sure -fno-strict-aliasing is also added for mkspecs like linux-g++-64.
  9133. * WebCore.pro:
  9134. 2007-08-10 Simon Hausmann <hausmann@kde.org>
  9135. Reviewed by Lars.
  9136. Enable JavaScript bindings for HTML Object/Applet elements in the Qt port.
  9137. * WebCore.pro:
  9138. * bindings/js/kjs_dom.cpp:
  9139. * html/HTMLAppletElement.h:
  9140. * html/HTMLEmbedElement.h:
  9141. * page/qt/FrameQt.cpp:
  9142. (WebCore::Frame::createScriptInstanceForWidget):
  9143. 2007-08-10 Mitz Pettel <mitz@webkit.org>
  9144. Reviewed by Dave Hyatt.
  9145. - fix http://bugs.webkit.org/show_bug.cgi?id=14798
  9146. Incorrect bidi reordering of neutrals and digits after RTL embed
  9147. and other bugs in the bidi algorithm.
  9148. Test: fast/text/international/bidi-neutral-run.html
  9149. Fixed several bugs in resolving the embedding level of runs of neutral
  9150. characters. Changed the logic to rely on the eor direction only for
  9151. the number types, and otherwise consider the last strong type.
  9152. * platform/BidiContext.h:
  9153. (WebCore::BidiContext::BidiContext): Added an ASSERT.
  9154. * platform/BidiResolver.h:
  9155. (WebCore::::embed):
  9156. (WebCore::::createBidiRunsForLine):
  9157. * platform/graphics/GraphicsContext.cpp:
  9158. (WebCore::TextRunIterator::atEnd): Changed to return true instead of
  9159. crashing when called on the empty iterator.
  9160. 2007-08-09 Mark Rowe <mrowe@apple.com>
  9161. Reviewed by Antti.
  9162. <rdar://problem/5400709> Versioning in debug and release builds should include minor and tiny version before +
  9163. * Configurations/Version.xcconfig:
  9164. * WebCore.xcodeproj/project.pbxproj: Add a shell script phase to make to dependency between
  9165. Version.xcconfig and Info.plist explicit to Xcode.
  9166. 2007-08-09 Mitz Pettel <mitz@webkit.org>
  9167. Reviewed by Justin Garcia.
  9168. - fix http://bugs.webkit.org/show_bug.cgi?id=14347
  9169. REGRESSION (r21291): Initiating a drag near the edge of a selection deselects it
  9170. Test: editing/selection/contains-boundaries.html
  9171. * editing/SelectionController.cpp:
  9172. (WebCore::SelectionController::contains): Changed to return true for the
  9173. selection boundaries too.
  9174. 2007-08-09 Mitz Pettel <mitz@webkit.org>
  9175. Reviewed by Dave Hyatt.
  9176. - fix http://bugs.webkit.org/show_bug.cgi?id=14742
  9177. Document::recalcStyle(Force) called for every updateStyleIgnorePendingStylesheets while waiting for stylesheets
  9178. <rdar://problem/5376306>
  9179. updateStyleSelector() is normally called when something changes that factors
  9180. into the style selector. However, updateLayoutIgnorePendingStylesheets() calls it for
  9181. a different reason, namely to account for all the preceding changes that were ignored
  9182. because of the early return in updateStyleSelector(). After that, the early return
  9183. can no longer occur, so changes are accounted for as they happen, and
  9184. updateLayoutIgnorePendingStylesheets() does not need to call updateStyleSelector()
  9185. again.
  9186. * dom/Document.cpp:
  9187. (WebCore::Document::updateLayoutIgnorePendingStylesheets): Call updateStyleSelector()
  9188. only before the first layout.
  9189. 2007-08-09 Mitz Pettel <mitz@webkit.org>
  9190. Reviewed by Adam Roben.
  9191. - fix http://bugs.webkit.org/show_bug.cgi?id=14362
  9192. Opening a select list always highlights first element in list
  9193. * platform/win/PopupMenuWin.cpp:
  9194. (WebCore::PopupWndProc): Track the mouse only inside the popup.
  9195. 2007-08-09 Mitz Pettel <mitz@webkit.org>
  9196. Reviewed by Dave Hyatt.
  9197. - fix http://bugs.webkit.org/show_bug.cgi?id=14875
  9198. Textarea with nowrap - left/right nav, Up/down nav both hide text
  9199. Test: fast/layers/scroll-rect-to-visible.html
  9200. * rendering/RenderLayer.cpp:
  9201. (WebCore::RenderLayer::scrollRectToVisible): Account for borders and scroll bars.
  9202. 2007-08-09 Geoffrey Garen <ggaren@apple.com>
  9203. Reviewed by Dave Hyatt.
  9204. Refactored live decoded resource eviction to be more modular /
  9205. encapsulated.
  9206. This fixes one known place where we forgot to hook into the live
  9207. decoded eviction mechanism -- canvas. There might be other, unknown
  9208. places. In a canvas test page, which I broke off from the Safari
  9209. pageout test, I saw an RPRVT reduction of ~10MB.
  9210. A few renames:
  9211. - "m_lastLiveAccessTime" => "m_lastDecodedAccessTime" because the data
  9212. point we're recording is access to the resource in decoded form.
  9213. - "liveResourceAccessed" => "didAccessDecodedData" for the same reason.
  9214. - "pruneAllResources" => "pruneDeadResources" because this function
  9215. does not prune live resources.
  9216. And the fix:
  9217. Instead of updating cache metadata at the call site whenver drawing an
  9218. image, just have an image notify its observer whenever it draws. The
  9219. observer, which is a CachedResource, can then update the metadata.
  9220. * loader/Cache.cpp: Renames
  9221. * loader/Cache.h: Removed stale declarations, updated comments
  9222. * loader/CachedImage.cpp:
  9223. (WebCore::CachedImage::didDraw): Implemented didDraw to update cache
  9224. metadata whenever our image draws.
  9225. * loader/CachedImage.h: Grouped parts of the ImageObserver interface.
  9226. * loader/CachedResource.cpp:
  9227. (WebCore::CachedResource::CachedResource):
  9228. (WebCore::CachedResource::deref):
  9229. (WebCore::CachedResource::didAccessDecodedData): Made this function
  9230. slightly more modular by allowing the caller to provide a time stamp.
  9231. In theory, not all CachedResources will necessarily want to use the
  9232. current paint time stamp.
  9233. * platform/graphics/cg/ImageCG.cpp:
  9234. (WebCore::BitmapImage::draw): Notify our observer that we drew.
  9235. (WebCore::Image::drawPattern): ditto
  9236. * platform/graphics/cg/PDFDocumentImage.cpp:
  9237. (WebCore::PDFDocumentImage::draw): ditto
  9238. * platform/graphics/svg/SVGImage.cpp:
  9239. (WebCore::SVGImage::draw): ditto
  9240. Removed old code at image drawing call sites:
  9241. * rendering/RenderBox.cpp:
  9242. (WebCore::RenderBox::paintBackgroundExtended):
  9243. * rendering/RenderImage.cpp:
  9244. (WebCore::RenderImage::paint):
  9245. * rendering/RenderListMarker.cpp:
  9246. (WebCore::RenderListMarker::paint):
  9247. * rendering/RenderObject.cpp:
  9248. (WebCore::RenderObject::paintBorderImage):
  9249. 2007-08-10 Holger Hans Peter Freyther <zecke@selfish.org>
  9250. Reviewed by Adam.
  9251. Move the various *ClientGdk.{h,cpp} away from the WebCore directory as
  9252. of http://bugs.webkit.org/show_bug.cgi?id=14727.
  9253. * WebCore.pro:
  9254. * platform/gdk/TemporaryLinkStubs.cpp:
  9255. 2007-08-09 Anders Carlsson <andersca@apple.com>
  9256. Reviewed by Maciej.
  9257. <rdar://problem/5400029> iframes with an image src rarely load image
  9258. Don't try to shrink standalone images in subframes. The resize event is not
  9259. sent for subframes which screws up the shrink-to-fit logic.
  9260. * loader/ImageDocument.cpp:
  9261. (WebCore::ImageDocument::createDocumentStructure):
  9262. (WebCore::ImageDocument::imageChanged):
  9263. (WebCore::ImageDocument::shouldShrinkToFit):
  9264. * loader/ImageDocument.h:
  9265. 2007-08-10 Holger Hans Peter Freyther <zecke@selfish.org>
  9266. Reviewed by Adam.
  9267. Implement FrameLoaderClientGdk::createFrame mostly by copying
  9268. the windows implementation. A method similiar to WebFrame::loadURLIntoChild
  9269. was not introduced instead we have a simplified version similiar to the
  9270. one of the Qt port.
  9271. Remove building of WebKit/gtk/webkitgtkframedata.{cpp,h}.
  9272. * WebCore.pro:
  9273. * loader/gdk/FrameLoaderClientGdk.cpp:
  9274. (WebCore::FrameLoaderClientGdk::createFrame):
  9275. 2007-08-10 Holger Hans Peter Freyther <zecke@selfish.org>
  9276. Reviewed by Adam.
  9277. Use the ScrollView/Widget design of the Windows port to only use one
  9278. native window for the whole page. This will make it possible to implement
  9279. FrameLoaderClientGdk::createFrame.
  9280. In contrast to the windows port the ScrollBars are GtkWidgets. To paint them
  9281. at the right position we need to position them correctly. To not scroll the
  9282. ScrollBar's belonging to the ScrollView a ScrollViewScrollbar is introduced with
  9283. a different geometryChanged method.
  9284. To allow the Gtk+ way of scrolling the ScrollView allows to get GtkAdjustments
  9285. set. In this case no ScrollViewScrollbar will be created.
  9286. * platform/ScrollView.h:
  9287. * platform/Widget.h:
  9288. * platform/gdk/PlatformScreenGdk.cpp:
  9289. (WebCore::screenDepth):
  9290. * platform/gdk/PlatformScrollBar.h:
  9291. * platform/gdk/PlatformScrollBarGdk.cpp:
  9292. (PlatformScrollbar::PlatformScrollbar):
  9293. (PlatformScrollbar::~PlatformScrollbar):
  9294. (PlatformScrollbar::setRect):
  9295. (PlatformScrollbar::geometryChanged):
  9296. * platform/gdk/ScrollViewGdk.cpp:
  9297. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  9298. (WebCore::ScrollView::ScrollViewPrivate::~ScrollViewPrivate):
  9299. (WebCore::ScrollViewScrollbar::ScrollViewScrollbar):
  9300. (WebCore::ScrollViewScrollbar::geometryChanged):
  9301. (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
  9302. (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
  9303. (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
  9304. (WebCore::ScrollView::ScrollViewPrivate::adjustmentChanged):
  9305. (WebCore::ScrollView::ScrollViewPrivate::valueChanged):
  9306. (WebCore::ScrollView::ScrollViewPrivate::windowClipRect):
  9307. (WebCore::ScrollView::setGtkAdjustments):
  9308. (WebCore::ScrollView::updateContents):
  9309. (WebCore::ScrollView::update):
  9310. (WebCore::ScrollView::visibleWidth):
  9311. (WebCore::ScrollView::resizeContents):
  9312. (WebCore::ScrollView::contentsX):
  9313. (WebCore::ScrollView::scrollOffset):
  9314. (WebCore::ScrollView::maximumScroll):
  9315. (WebCore::ScrollView::scrollBy):
  9316. (WebCore::ScrollView::suppressScrollbars):
  9317. (WebCore::ScrollView::setHScrollbarMode):
  9318. (WebCore::ScrollView::setVScrollbarMode):
  9319. (WebCore::ScrollView::setScrollbarsMode):
  9320. (WebCore::ScrollView::setFrameGeometry):
  9321. (WebCore::ScrollView::addChild):
  9322. (WebCore::ScrollView::removeChild):
  9323. (WebCore::ScrollView::scrollRectIntoViewRecursively):
  9324. (WebCore::ScrollView::wheelEvent):
  9325. (WebCore::ScrollView::updateScrollbars):
  9326. (WebCore::ScrollView::windowToContents):
  9327. (WebCore::ScrollView::contentsToWindow):
  9328. (WebCore::ScrollView::scrollbarUnderMouse):
  9329. (WebCore::ScrollView::convertChildToSelf):
  9330. (WebCore::ScrollView::convertSelfToChild):
  9331. (WebCore::ScrollView::paint):
  9332. (WebCore::ScrollView::geometryChanged):
  9333. (WebCore::ScrollView::scroll):
  9334. (WebCore::ScrollView::addToDirtyRegion):
  9335. (WebCore::ScrollView::scrollBackingStore):
  9336. (WebCore::ScrollView::updateBackingStore):
  9337. * platform/gdk/WidgetGdk.cpp:
  9338. (WebCore::WidgetPrivate::gdkDrawable):
  9339. (WebCore::Widget::Widget):
  9340. (WebCore::Widget::setContainingWindow):
  9341. (WebCore::Widget::containingWindow):
  9342. (WebCore::Widget::frameGeometry):
  9343. (WebCore::Widget::setFrameGeometry):
  9344. (WebCore::Widget::setParent):
  9345. (WebCore::Widget::parent):
  9346. (WebCore::Widget::setCursor):
  9347. (WebCore::Widget::show):
  9348. (WebCore::Widget::hide):
  9349. (WebCore::Widget::removeFromParent):
  9350. (WebCore::Widget::paint):
  9351. (WebCore::Widget::invalidate):
  9352. (WebCore::Widget::invalidateRect):
  9353. (WebCore::Widget::convertToContainingWindow):
  9354. (WebCore::Widget::convertFromContainingWindow):
  9355. (WebCore::Widget::convertChildToSelf):
  9356. (WebCore::Widget::convertSelfToChild):
  9357. (WebCore::Widget::suppressInvalidation):
  9358. (WebCore::Widget::setSuppressInvalidation):
  9359. 2007-08-09 Adele Peterson <adele@apple.com>
  9360. Fix by Brady, reviewed by me.
  9361. Fix for <rdar://problem/5380697> connection:willSendRequest:redirectResponse: is called on every NSURLConnection
  9362. * platform/network/mac/ResourceHandleMac.mm: (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
  9363. Work around a behavior change in CFNetwork where willSendRequest gets called more often by returning early.
  9364. 2007-08-09 Darin Adler <darin@apple.com>
  9365. Reviewed by Antti.
  9366. - fix <rdar://problem/4889753> REGRESSION: Selection doesn't continue with drag selecting
  9367. when autoscrolling vertically (in Notes as well as Safari)
  9368. The bug doesn't happen inside DumpRenderTree, so I was unable to make an automated
  9369. regression test.
  9370. * manual-tests/autoscroll-when-outside-window.html: Added.
  9371. * rendering/RenderLayer.cpp: (WebCore::RenderLayer::autoscroll): Removed unneeded null
  9372. check for the layer's renderer and the document, neither of which can be null. Call
  9373. the new updateSelectionForMouseDrag instead of doing selection updating here.
  9374. * page/EventHandler.h:
  9375. * page/EventHandler.cpp:
  9376. (WebCore::EventHandler::handleMouseDraggedEvent): Refactored most of the logic
  9377. about updating the selection into updateSelectionForMouseDrag.
  9378. (WebCore::EventHandler::updateSelectionForMouseDrag): Added. The public version of
  9379. this function takes no parameters, and is for use from auto-scrolling code. The
  9380. private version of this function takes node and point parameters and contains the
  9381. shared code, including everything from updateSelectionForMouseDragOverPosition.
  9382. Aside from the code motion, variable name changes, and sharing more code, this
  9383. differs from the old code in RenderLayer::autoscroll in the following ways:
  9384. 1) The old code did hit testing only in the layer that was auto-scrolling,
  9385. and the new code instead starts the hit testing at the root layer, which is
  9386. better because it's the same thing we do for mouse moved events. Further,
  9387. the code to do this by calling convertToLayerCoords had a bug because the
  9388. x and y variables were uninitialized.
  9389. 2) The old code passed false for active to HitTestRequest, which was wrong.
  9390. The new code passes true. This flag needs to be true for hit testing done
  9391. while the mouse is down and false for hit testing done while the mouse is up.
  9392. 3) The old code did not have the SVG-specific logic to match the mouse moved case.
  9393. 4) The old code wouldn't do any selection updating if the return value from hitTest
  9394. was false, which is incorrect. The new code ignores the return value as it should.
  9395. 2007-08-08 Beth Dakin <bdakin@apple.com>
  9396. Reviewed by Geoff Garen.
  9397. Fx for <rdar://problem/5286443>, http://bugs.webkit.org/
  9398. show_bug.cgi?id=14268 REGRESSION: Radio buttons don't stay selected
  9399. due to unclosed <label> tags
  9400. This patch maintains the behavior that allows <label> tags to nest.
  9401. This matches WinIE, and appears to match the spec, since the spec
  9402. does not explicitly say that they cannot nest. It fixes the bug
  9403. instead by calling setDefaultHandled() in two places it should have
  9404. been called anyway. This keeps the appropriate button checked as
  9405. the event bubbles.
  9406. * html/HTMLInputElement.cpp:
  9407. (WebCore::HTMLInputElement::postDispatchEventHandler):
  9408. * html/HTMLLabelElement.cpp:
  9409. (WebCore::HTMLLabelElement::defaultEventHandler):
  9410. 2007-08-08 Justin Garcia <justin.garcia@apple.com>
  9411. Reviewed by Oliver.
  9412. <rdar://problem/5387578> Crash at ReplaceSelectionCommand::doApply() when pasting just after table cell content
  9413. ReplaceSelectionCommand::doApply() inserts a line break before insertion
  9414. to prevent block nesting. InsertLineBreakCommand::doApply was accidently
  9415. destroying a text node when it removed insignificant whitespace and then
  9416. setting a nil endingSelection().
  9417. * editing/InsertLineBreakCommand.cpp:
  9418. (WebCore::InsertLineBreakCommand::doApply): If insignificant whitespace
  9419. removal removes textNode from the document, insert a text node containing
  9420. the non-breaking space we were attempting to insert and then insert it
  9421. at the position that the removed textNode occupied.
  9422. 2007-08-08 Geoffrey Garen <ggaren@apple.com>
  9423. Reviewed by Maciej Stachowiak.
  9424. Added a thrash check to live decoded resource eviction.
  9425. Here's the strategy: Stamp every image with its paint time. Don't evict
  9426. a live decoded resource until another resource paints with a reasonably
  9427. (1 second) larger time stamp.
  9428. If no other resource paints, or another resource paints, but very soon
  9429. after the resource in question, the resource in question is very likely
  9430. to paint again soon. In fact, it's probably still on screen. So we
  9431. leave it alone. (Previously, we evicted it on a timer, but that would
  9432. evict a resource that was still on screen, hurting speed without
  9433. helping memory use.)
  9434. In theory, this algorithm allows a single large resource or closely
  9435. related set of resources to linger in the live decoded cache even
  9436. though the cache is over its limit. However, that can only happen as
  9437. long as no other resource ever paints again, which guarantees an
  9438. absolute cap on cache memory usage from then on. Also, the resources
  9439. will only linger as long as they remain live. Upon going dead, they
  9440. will flush. Also, these circumstances are so rare that they are almost
  9441. impossible to encounter in the wild. So don't sweat it.
  9442. Stop evicting if the next resource painted too recently:
  9443. * loader/Cache.cpp:
  9444. (WebCore::Cache::pruneLiveResources):
  9445. * loader/CachedResource.cpp:
  9446. (WebCore::CachedResource::CachedResource):
  9447. (WebCore::CachedResource::liveResourceAccessed):
  9448. * loader/CachedResource.h:
  9449. Track the paint time stamp in Frame. We do this to give a consistent
  9450. stamp to all resources painted in a single paint operation (in case the
  9451. operation takes a significant amount of time), and to avoid excessive
  9452. calls to system time functions, which hurt the PLT:
  9453. * page/Frame.cpp:
  9454. (WebCore::Frame::paint):
  9455. * page/Frame.h:
  9456. (WebCore::Frame::currentPaintTimeStamp):
  9457. 2007-08-08 Sam Weinig <sam@webkit.org>
  9458. Reviewed by Adam Roben.
  9459. Update project file to reflect the moving of character-sets.txt
  9460. and make-charset-table.pl to platform/mac a while ago.
  9461. * WebCore.xcodeproj/project.pbxproj:
  9462. 2007-08-08 Justin Garcia <justin.garcia@apple.com>
  9463. Reviewed by Harrison.
  9464. <rdar://problem/5390681> WebKit asserts when deleting To Do content selected with a double-click
  9465. * dom/Position.cpp:
  9466. (WebCore::Position::trailingWhitespacePosition): Use VisiblePosition::characterAfter
  9467. to look for a trailing space. The old code would incorrectly return a position before
  9468. a non-editable space if it had a collapsed space before it.
  9469. 2007-08-08 Sam Weinig <sam@webkit.org>
  9470. Reviewed by Brady.
  9471. Make protocol and host compares case-insensitive.
  9472. * bindings/js/kjs_window.cpp:
  9473. (KJS::Window::isSafeScript):
  9474. * dom/Document.cpp:
  9475. (WebCore::Document::initSecurityPolicyURL):
  9476. * platform/DeprecatedString.cpp:
  9477. (WebCore::equalIgnoringCase):
  9478. * platform/DeprecatedString.h:
  9479. (WebCore::equalIgnoringCase):
  9480. 2007-08-08 Justin Garcia <justin.garcia@apple.com>
  9481. Reviewed by Harrison.
  9482. <rdar://problem/5390681> WebKit asserts when deleting To Do content selected with a double-click
  9483. * dom/Position.cpp:
  9484. (WebCore::Position::leadingWhitespacePosition): Added checks to prevent expansion across editable an boundary.
  9485. (WebCore::Position::trailingWhitespacePosition): Ditto.
  9486. 2007-08-08 Adele Peterson <adele@apple.com>
  9487. Reviewed by John.
  9488. Fix for <rdar://problem/5393798> 100% reproducible crash in WebCore::Scrollbar::setValue
  9489. * page/EventHandler.cpp: (WebCore::EventHandler::handleMousePressEvent):
  9490. If the hit testing originally determined the event was in a scrollbar,
  9491. refetch the MouseEventWithHitTestResults in case the scrollbar widget was destroyed when the mouse event was handled.
  9492. 2007-08-08 Sam Weinig <sam@webkit.org>
  9493. Reviewed by Geoff Garen.
  9494. Fix for <rdar://problem/5354635>
  9495. Match Firefox's model for data: URLs by not allowing them script access
  9496. to any frames other then itself.
  9497. * bindings/js/kjs_window.cpp:
  9498. (KJS::Window::isSafeScript):
  9499. * dom/Document.cpp:
  9500. (WebCore::Document::initSecurityPolicyURL):
  9501. 2007-08-08 Darin Adler <darin@apple.com>
  9502. Reviewed by Kevin Decker.
  9503. - fix for <rdar://problem/5390708> CrashTracer: [USER] 27 crashes in Safari at
  9504. com.apple.WebCore: WTF::HashMap<etc>::set + 68, beneath pruneUnretainedIconsAtStartup
  9505. * loader/icon/IconDatabase.cpp: (WebCore::IconDatabase::pruneUnretainedIconsOnStartup):
  9506. Eliminate an unnecessary HashMap from the implementation; we can just use the
  9507. m_pageURLToRetainCount map directly. This simplifies the code and allows us to handle
  9508. the empty string, which otherwise poses a problem for HashMap.
  9509. 2007-08-08 Antti Koivisto <antti@apple.com>
  9510. Reviewed by Darin.
  9511. Fix for <rdar://problem/5391576>
  9512. Malformed table innerHTML causes Safari to crash in HTMLParser::handleError (14894)
  9513. Add null checks to protect against
  9514. e.innerHTML = "<tr>text</tr>";
  9515. type cases. Normal assumptions about document tree structure don't hold when parsing
  9516. fragments. Results don't match Firefox in all cases. It seems to have some sort of
  9517. anything-goes fragment parsing mode.
  9518. * html/HTMLParser.cpp:
  9519. (WebCore::HTMLParser::handleError):
  9520. 2007-08-07 Kevin McCullough <kmccullough@apple.com>
  9521. Reviewed by Maciej and Hyatt.
  9522. - <rdar://problem/4976879> REGRESSION: Safari doesn't work with Zimbra enhanced login.
  9523. - Reverting a previous change, and modifying how documents are created so that we better match other browsers behavior with respect to namespaceURIs.
  9524. * WebCore.xcodeproj/project.pbxproj:
  9525. * dom/DOMImplementation.cpp:
  9526. (WebCore::DOMImplementation::createDocument):
  9527. * dom/Document.cpp:
  9528. (WebCore::Document::Document):
  9529. (WebCore::Document::createElement):
  9530. * dom/Document.h:
  9531. * html/HTMLDocument.cpp:
  9532. (WebCore::HTMLDocument::createElement):
  9533. * html/HTMLDocument.h:
  9534. 2007-08-08 Cameron Zwarich <cwzwarich@uwaterloo.ca>
  9535. Reviewed and landed by Brady
  9536. Fixes <http://bugs.webkit.org/show_bug.cgi?id=13422>
  9537. Bug 13422: REGRESSION: Page reload loses page position
  9538. * loader/FrameLoader.cpp:
  9539. (WebCore::FrameLoader::updateHistoryForReload):
  9540. 2007-08-08 Holger Hans Peter Freyther <zecke@selfish.org>
  9541. Reviewed by Niko.
  9542. Be paranoid and disconnect from the signal before going away.
  9543. * platform/gdk/PlatformScrollBarGdk.cpp:
  9544. (PlatformScrollbar::~PlatformScrollbar):
  9545. 2007-08-08 Holger Hans Peter Freyther <zecke@selfish.org>
  9546. Reviewed by Niko.
  9547. Use GraphicsContext::translatePoint in RenderThemeGdk to paint at the
  9548. right position.
  9549. This is needed as the Gtk+ theming code does not know about the translation
  9550. of the GraphicsContext.
  9551. * platform/gdk/RenderThemeGdk.cpp:
  9552. (WebCore::RenderThemeGdk::paintCheckbox):
  9553. (WebCore::RenderThemeGdk::paintRadio):
  9554. (WebCore::RenderThemeGdk::paintButton):
  9555. 2007-08-08 Holger Hans Peter Freyther <zecke@selfish.org>
  9556. Reviewed by Niko.
  9557. Implement Widget::paint for the Gtk port. This is needed to paint
  9558. Widgets in z-order. The original GdkEventExpose is stored within the
  9559. GraphicsContext and then used to draw the children. This is similiar
  9560. to gtk_container_propagate_expose but we try to honor the GraphicsConntext
  9561. translation.
  9562. * platform/gdk/WidgetGdk.cpp:
  9563. (WebCore::Widget::paint):
  9564. * platform/graphics/GraphicsContext.h:
  9565. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  9566. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  9567. (WebCore::GraphicsContext::setGdkExposeEvent):
  9568. (WebCore::GraphicsContext::gdkExposeEvent):
  9569. (WebCore::GraphicsContext::gdkDrawable):
  9570. (WebCore::GraphicsContext::translatePoint):
  9571. 2007-08-08 Holger Hans Peter Freyther <zecke@selfish.org>
  9572. Reviewed by Oliver Hunt.
  9573. Implement PlatformScrollbar by calling ScrollBar::setValue from
  9574. gtkValueChange connected to the value-changed signal of the
  9575. GtkAdjustment.
  9576. Update 'value' of the GtkAdjustment in updateThumbPosition and
  9577. set upper, page-increment, step-increment and page_size in
  9578. updateThumbProportion.
  9579. This is from bug http://bugs.webkit.org/show_bug.cgi?id=14795.
  9580. * platform/gdk/PlatformScrollBar.h:
  9581. * platform/gdk/PlatformScrollBarGdk.cpp:
  9582. (PlatformScrollbar::PlatformScrollbar):
  9583. (PlatformScrollbar::updateThumbPosition):
  9584. (PlatformScrollbar::updateThumbProportion):
  9585. (PlatformScrollbar::gtkValueChanged):
  9586. 2007-08-07 Geoffrey Garen <ggaren@apple.com>
  9587. Reviewed by Maciej Stachowiak. Based on earlier review from Dave Hyatt.
  9588. First chunk of work for <rdar://problem/5326009> Make non-browser
  9589. WebKit clients have no memory cache, or a very tiny one
  9590. Layout tests pass.
  9591. Removed decodedSizeWillChange mechanism because my last patch to
  9592. change the live resources list to a strict LRU model made that code
  9593. vestigial.
  9594. Renamed "liveResourcesList" and related stuff =>
  9595. "liveDecodedResourcesList" because only live resources with decoded
  9596. data are kept in the list.
  9597. * loader/CachedImage.cpp:
  9598. (WebCore::CachedImage::decodedSizeChanged): Only add ourselves to the
  9599. list if we're live, our decoded size has grown, and we're not in the
  9600. list already. (Otherwise, either we're not live, we're not decoded,
  9601. or we're already in the list.)
  9602. * loader/CachedResource.cpp:
  9603. (WebCore::CachedResource::liveResourceAccessed): Only re-insert
  9604. ourselves into the list if we're already there. (In theory, this should
  9605. be always, but it's a little more clear to check.)
  9606. 2007-08-08 Holger Hans Peter Freyther <zecke@selfish.org>
  9607. Reviewed by Adam.
  9608. Kill class FrameGdk and move the stubs to page/gdk/FrameGdk.cpp and the
  9609. remainings into WebKitGtkFrame.
  9610. The DRT functionality of class FrameGdk is currently lost.
  9611. * WebCore.pro:
  9612. * loader/gdk/FrameLoaderClientGdk.cpp:
  9613. * loader/gdk/FrameLoaderClientGdk.h:
  9614. * page/gdk/FrameGdk.cpp: Renamed from WebCore/platform/gdk/FrameGdk.cpp.
  9615. (WebCore::Frame::issueTransposeCommand):
  9616. (WebCore::Frame::cleanupPlatformScriptObjects):
  9617. (WebCore::Frame::dragImageForSelection):
  9618. (WebCore::Frame::dashboardRegionsChanged):
  9619. * platform/gdk/FrameGdk.h: Removed.
  9620. * platform/gdk/TemporaryLinkStubs.cpp: Removed Frame stub, added the loadResourceIntoArray stub
  9621. * platform/gdk/WidgetGdk.cpp:
  9622. 2007-08-08 Holger Hans Peter Freyther <zecke@selfish.org>
  9623. Reviewed by Adam.
  9624. Remove the event handling code and move it to WebKit/gtk/Api/webkitgtkpage.cpp
  9625. * platform/gdk/FrameGdk.cpp:
  9626. * platform/gdk/FrameGdk.h:
  9627. 2007-08-07 Holger Hans Peter Freyther <zecke@selfish.org>
  9628. Reviewed by Niko.
  9629. Switch from the generic union GdkEvent to the specific struct GdkEvent*. This is needed
  9630. to make WebKitGtkPage handle the events by reimplementing the default handlers in the near
  9631. future.
  9632. * platform/PlatformKeyboardEvent.h:
  9633. * platform/PlatformMouseEvent.h:
  9634. * platform/PlatformWheelEvent.h:
  9635. * platform/gdk/FrameGdk.cpp:
  9636. (WebCore::FrameGdk::handleGdkEvent):
  9637. * platform/gdk/KeyEventGdk.cpp:
  9638. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  9639. * platform/gdk/MouseEventGdk.cpp:
  9640. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  9641. * platform/gdk/WheelEventGdk.cpp:
  9642. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  9643. 2007-08-07 George Staikos <staikos@kde.org>
  9644. Some QStyles don't handle negative maximum well (crash)
  9645. * platform/qt/PlatformScrollBarQt.cpp:
  9646. (WebCore::PlatformScrollbar::paint):
  9647. 2007-08-07 Antti Koivisto <antti@apple.com>
  9648. Reviewed by Hyatt.
  9649. Fix <rdar://problem/5102553>
  9650. Mail spins trying to display or edit a specific long plain text message in WebCore::TimerBase::...
  9651. Calling removeLeftoverAnonymousBoxes() from RenderBlock::addChildToFlow() made adding children
  9652. O(n^2) in simple cases (repeated <div><div></div></div> for example).
  9653. I couldn't find any limited fix so here is a more complete one. It removes iterating/recursing
  9654. removeLeftoverAnonymousBoxes() method altogether. Instead of hunting around wildly, just get
  9655. rid of anonymous boxes with block children when they occur.
  9656. * rendering/RenderBlock.cpp:
  9657. (WebCore::RenderBlock::addChildToFlow):
  9658. * rendering/RenderButton.h:
  9659. (WebCore::RenderButton::removeLeftoverAnonymousBlock):
  9660. * rendering/RenderContainer.cpp:
  9661. (WebCore::RenderContainer::removeLeftoverAnonymousBlock):
  9662. * rendering/RenderContainer.h:
  9663. * rendering/RenderObject.cpp:
  9664. (WebCore::RenderObject::handleDynamicFloatPositionChange):
  9665. (WebCore::RenderObject::removeLeftoverAnonymousBlock):
  9666. * rendering/RenderObject.h:
  9667. * rendering/RenderTextControl.h:
  9668. (WebCore::RenderTextControl::removeLeftoverAnonymousBlock):
  9669. 2007-08-06 Sam Weinig <sam@webkit.org>
  9670. Reviewed by Maciej.
  9671. Fix for <rdar://problem/5354689>
  9672. - Use document variable to determine permissions instead
  9673. of traversing the frame tree.
  9674. * bindings/js/kjs_window.cpp:
  9675. (KJS::Window::isSafeScript):
  9676. * dom/Document.cpp:
  9677. (WebCore::Document::Document):
  9678. (WebCore::Document::initSecurityPolicyURL):
  9679. * dom/Document.h:
  9680. (WebCore::Document::securityPolicyURL):
  9681. * loader/FrameLoader.cpp:
  9682. (WebCore::FrameLoader::setOpener): We must re-initialize the
  9683. safeScript URL when setting the opener because the opener was
  9684. not known at Document construction.
  9685. 2007-08-06 David Hyatt <hyatt@apple.com>
  9686. Make sure to clear out the parent of the ellipsis box so that it doesn't
  9687. trigger the consistency check for line boxes.
  9688. Reviewed by darin
  9689. * ChangeLog:
  9690. * rendering/RootInlineBox.cpp:
  9691. (WebCore::RootInlineBox::detachEllipsisBox):
  9692. 2007-08-06 David Hyatt <hyatt@apple.com>
  9693. Back out fix for <rdar://problem/5366582> and replace it with the correct
  9694. fix. Make sure to delete the line box tree before splitting an inline flow
  9695. into a continuation. The added layout test for the original checkin covers
  9696. the problem.
  9697. Reviewed by beth
  9698. * rendering/RenderBlock.cpp:
  9699. (WebCore::RenderBlock::makeChildrenNonInline):
  9700. Back out fix.
  9701. * rendering/RenderFlow.cpp:
  9702. (WebCore::RenderFlow::destroy):
  9703. Back out fix.
  9704. * rendering/RenderInline.cpp:
  9705. (WebCore::RenderInline::splitFlow):
  9706. Here's the new fix.
  9707. 2007-08-06 Geoffrey Garen <ggaren@apple.com>
  9708. Reviewed by Darin Adler.
  9709. Touching a file to force a re-build.
  9710. 2007-08-06 Darin Adler <darin@apple.com>
  9711. - fix release build
  9712. * rendering/RenderText.h: (WebCore::RenderText::checkConsistency):
  9713. Add missing const.
  9714. 2007-08-06 Darin Adler <darin@apple.com>
  9715. Reviewed by Maciej.
  9716. - fix <rdar://problem/5366582> crash on it.eurosport.yahoo.com page
  9717. Test: fast/dynamic/inline-to-block-crash.html
  9718. I added some consistency checks for the line box tree, which helped me figure out
  9719. what was going on with this bug pretty quickly.
  9720. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::makeChildrenNonInline):
  9721. This is the actual fix. If the block needs layout, then don't try to delete the line
  9722. box tree because it's going to be rebuilt as part of layout. More importantly, the
  9723. child list in the tree is no good, so we will crash if we try to delete here.
  9724. * rendering/RenderFlow.cpp: (WebCore::RenderFlow::destroy):
  9725. Here's a second fix. We have the same issue in the code that handles anonymous
  9726. blocks -- if it's already running as part of layout, we can't walk through the
  9727. already partly destroyed line box tree. This crashed in one of the layout tests.
  9728. * rendering/InlineBox.h: Made more fields private, since I wanted to do a bit more
  9729. work in setters. Made setNextOnLine() and setPrevOnLine() assert that the box has a
  9730. parent. Made parent() assert that the parent is good. Also removed the unused
  9731. isChildOfParent() function.
  9732. * rendering/InlineBox.cpp: (WebCore::InlineBox::~InlineBox): At destruction time, if
  9733. we are still attached to a parent, tag that parent as having a "bad" child list.
  9734. * rendering/InlineFlowBox.h: Added m_reasonForBadChildList, checkConsistency(),
  9735. setHasBadChildList(), and hasBadChildList(). Also changed firstChild() and lastChild() so
  9736. they call checkConsistency() and made all the fields private instead of protected.
  9737. * rendering/InlineFlowBox.cpp:
  9738. (WebCore::InlineFlowBox::addToLine): Added consistency checks before and after adding a
  9739. box to the line. Also checked that next and prev start out as 0. Changed manipulation of
  9740. next and prev to use accessor functions.
  9741. (WebCore::InlineFlowBox::removeChild): Added consistency checks before and after removing
  9742. the box from the line.
  9743. (WebCore::InlineFlowBox::deleteLine): Use firstChild() instead of getting at m_firstChild
  9744. directly so we get a consistency check. Also set the parent to 0 before destroying so that
  9745. the assertion in ~InlineBox will work properly.
  9746. (WebCore::InlineFlowBox::extractLine): Ditto.
  9747. (WebCore::InlineFlowBox::attachLine): Ditto.
  9748. (WebCore::InlineFlowBox::adjustPosition): Ditto.
  9749. (WebCore::InlineFlowBox::checkConsistency): Added. Checks consistency of the child list by
  9750. looking at the parent, next, and prev pointers. Also asserts that we are not yet in the
  9751. "bad" child list state, which happens if one of our children is destroyed without removing
  9752. it from our list; that's normal, but once it happens we can't look at our child list again.
  9753. * rendering/InlineTextBox.h:
  9754. * rendering/InlineTextBox.cpp: Remove unnneeded destroy/new/delete functions -- these are
  9755. inherited from the InlineBox base class and don't need to be defined again.
  9756. * rendering/RenderFlow.h:
  9757. * rendering/RenderFlow.cpp:
  9758. (WebCore::RenderFlow::~RenderFlow): Assert that there are no children to confirm that we
  9759. didn't leak something.
  9760. (WebCore::RenderFlow::extractLineBox): Added consistency checks before and after removing
  9761. a run of boxes from the list.
  9762. (WebCore::RenderFlow::attachLineBox): Added consistency checks before and after adding
  9763. a box to the list.
  9764. (WebCore::RenderFlow::removeLineBox): Added consistency checks before and after removing
  9765. a box from the list.
  9766. (WebCore::RenderFlow::createInlineBox): Added consistency checks before and after adding
  9767. a box to the list.
  9768. (WebCore::RenderFlow::checkConsistency): Added.
  9769. * rendering/RenderText.h:
  9770. * rendering/RenderText.cpp:
  9771. (WebCore::RenderText::~RenderText): Assert that there are no children to confirm that we
  9772. didn't leak something.
  9773. (WebCore::RenderText::extractTextBox): Added consistency checks before and after removing
  9774. a run of boxes from the list.
  9775. (WebCore::RenderText::attachTextBox): Added consistency checks before and after adding
  9776. a box to the list.
  9777. (WebCore::RenderText::removeTextBox): Added consistency checks before and after removing
  9778. a box from the list.
  9779. (WebCore::RenderText::deleteTextBoxes): Added code to call setHasBadChildList since this
  9780. destroys line boxes without informing the parent.
  9781. (WebCore::RenderText::checkConsistency): Added.
  9782. 2007-08-06 Adele Peterson <adele@apple.com>
  9783. Reviewed by Darin.
  9784. Fix for <rdar://problem/5382483> REGRESSION: <select> element's text is clipped when a CSS line-height is specified
  9785. Don't honor line-height for styled popup buttons. We already don't honor line-height for unstyled popups
  9786. and since IE and FF don't honor it at all for popups, we shouldn't either.
  9787. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
  9788. * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::adjustMenuListButtonStyle):
  9789. 2007-08-06 Antti <antti@apple.com>
  9790. Reviewed by Darin.
  9791. Fix <rdar://problem/5378214>
  9792. Mail crashes at RenderLayer::paintLayer() when dragging a selection over To Do text
  9793. ObjC interface does not guarantee that Document::updateRendering() gets called after
  9794. modification are made to document. This can lead to situation where paint()
  9795. is invoked with document still dirty which can then crash in number of interesting ways.
  9796. - add hasChangedChild() as needsLayout() condition. layout() will then call recalcStyle()
  9797. catching most cases and making sure document is not dirty when entering painting.
  9798. - protect recalcStyle() and layout() from being executed during painting. There are some
  9799. cases needsLayout() protection does not cover.
  9800. No layout test, these states are very hard or impossible to reach using Javascript interface
  9801. (which generally guarantees that updateRendering() is done right after execution).
  9802. * dom/Document.cpp:
  9803. (WebCore::Document::recalcStyle):
  9804. * page/Frame.cpp:
  9805. (WebCore::Frame::paint):
  9806. (WebCore::Frame::setPaintRestriction):
  9807. (WebCore::Frame::isPainting):
  9808. (WebCore::FramePrivate::FramePrivate):
  9809. * page/Frame.h:
  9810. * page/FramePrivate.h:
  9811. * page/FrameView.cpp:
  9812. (WebCore::FrameView::layout):
  9813. (WebCore::FrameView::needsLayout):
  9814. 2007-08-05 Maciej Stachowiak <mjs@apple.com>
  9815. Reviewed by Darin Adler.
  9816. <rdar://problem/5369110> CrashTracer: [USER] reproducible crash opening particular mail messages
  9817. * platform/network/mac/ResourceHandleMac.mm:
  9818. (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]): Make sure to retain
  9819. self for the body of this method. Otherwise, the willSendRequest could trigger events which will
  9820. cancel the connection, and we access ivars after this point.
  9821. (-[WebCoreSynchronousLoader connection:willSendRequest:redirectResponse:]): retain and release
  9822. in the right order.
  9823. 2007-08-04 Adam Roben <aroben@apple.com>
  9824. Another workaround for <rdar://problem/5386894>
  9825. Reviewed by Sam.
  9826. This fixed ~150 failing tests.
  9827. * platform/network/cf/ResourceResponseCFNet.cpp:
  9828. (WebCore::ResourceResponse::doUpdateResourceResponse): Hardcode the
  9829. MIME type for .svg files as well.
  9830. 2007-08-04 Adam Roben <aroben@apple.com>
  9831. Workaround for <rdar://problem/5386894> CFURLResponseGetMIMEType returns "text/html" for local .xhtml and .xml files
  9832. Reviewed by Sam.
  9833. This fixes ~350 failing tests.
  9834. * platform/network/cf/ResourceResponseCFNet.cpp:
  9835. (WebCore::ResourceResponse::doUpdateResourceResponse): Use a workaround
  9836. identical to the one in ResourceResponseMac.mm, but include .xml files
  9837. as well.
  9838. 2007-08-04 David Kilzer <ddkilzer@webkit.org>
  9839. Reviewed by Oliver.
  9840. - fix for http://bugs.webkit.org/show_bug.cgi?id=14882
  9841. <rdar://problem/5386550> REGRESSION (r24866): text/plain documents are always downloaded
  9842. The supportedNonImageMimeTypes list is used to determine which MIME types may be viewed
  9843. within the web browser (e.g., plug-ins add their own MIME types to the list during
  9844. initialization), so we must add "text/plain" and "text/" back to the list. Since
  9845. this change would then break DOMImplementation::isTextMIMEType(), that method was reverted
  9846. to its original form and MIMETypeRegistry::shouldTreatAsText() was removed.
  9847. * dom/DOMImplementation.cpp:
  9848. (WebCore::DOMImplementation::isTextMIMEType): Revert to previous version.
  9849. * platform/MIMETypeRegistry.cpp:
  9850. (WebCore::initialiseSupportedNonImageMimeTypes): Added back "text/plain" and "text/" to the list.
  9851. (WebCore::MIMETypeRegistry::shouldTreatAsText): Removed.
  9852. * platform/MIMETypeRegistry.h:
  9853. 2007-08-03 Brady Eidson <beidson@apple.com>
  9854. Reviewed by Oliver
  9855. Fix for http://bugs.webkit.org/show_bug.cgi?id=14824 and <rdar://problem/5372989>
  9856. Two issues -
  9857. 1 - The WebCore MIMEType registry was designed assuming the list of types would never change
  9858. That is false, as WebKit has API and SPI calls which directly mutate the MIMETypeRegistry
  9859. 2 - DOMImplementation didn't consult the registry for any MIMEType that started with "text/",
  9860. instead maintaining it's own hard coded rules
  9861. * dom/DOMImplementation.cpp:
  9862. (WebCore::DOMImplementation::isTextMIMEType): For now, call through to the MIMETypeRegistry
  9863. until we decided a different fate for this function
  9864. * platform/MIMETypeRegistry.cpp:
  9865. (WebCore::initialiseSupportedNonImageMimeTypes): "SupportedNonImageMIMETypes" is really a misnomer for
  9866. "MIMETypes we should show as HTML" but that line has slowly been blurred since Tiger. In an attempt
  9867. to start to unblur it, remove "text/" and "text/plain"
  9868. (WebCore::MIMETypeRegistry::shouldTreatAsText): The decision is very close to the old DOMImplementation
  9869. method, except we don't automatically hand off "text/" types as true if they are in the set of supported
  9870. MIMETypes
  9871. (WebCore::MIMETypeRegistry::getSupportedImageMIMETypes): Non-const (can be changed!)
  9872. (WebCore::MIMETypeRegistry::getSupportedImageResourceMIMETypes): Non-const (can be changed!)
  9873. (WebCore::MIMETypeRegistry::getSupportedNonImageMIMETypes): Non-const (can be changed!)
  9874. * platform/MIMETypeRegistry.h:
  9875. 2007-08-03 Adele Peterson <adele@apple.com>
  9876. Reviewed by Adam.
  9877. Fix for <rdar://problem/5345862> CrashTracer: [USER] 4 crashes in Safari at com.apple.WebCore: WebCore::Frame::isContentEditable const + 10
  9878. Couldn't reproduce the problem, but a nil check for the frame should fix this.
  9879. * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::adjustRenderStyle):
  9880. 2007-08-03 Anders Carlsson <andersca@apple.com>
  9881. Reviewed by Oliver.
  9882. <rdar://problem/5383286>
  9883. XMLHTTPRequest does not return 401 when user cancels authentication dialog (affects .Mac)
  9884. * loader/ResourceLoader.h:
  9885. Make receivedCancellation virtual.
  9886. * loader/SubresourceLoader.cpp:
  9887. (WebCore::SubresourceLoader::receivedCancellation):
  9888. Call SubresourceLoaderClient::receivedCancellation.
  9889. * xml/XMLHttpRequest.cpp:
  9890. (WebCore::XMLHttpRequest::receivedCancellation):
  9891. Save the failure response.
  9892. 2007-08-03 Anders Carlsson <andersca@apple.com>
  9893. Reviewed by Geoff.
  9894. <rdar://problem/5374393>
  9895. Image change on disk not noticed by WebView; -[WebCache setDisabled:] used to cause a reload every time
  9896. This is essentially a better fix for the crash in <rdar://problem/5362783>.
  9897. * loader/DocLoader.cpp:
  9898. (WebCore::DocLoader::requestResource):
  9899. If the resource already exists in the m_docResources map, remove it and disassociate it from the doc loader.
  9900. 2007-08-03 Oliver Hunt <oliver@apple.com>
  9901. Reviewed by Geoff.
  9902. <rdar://problem/5375190> Mail crashed in WebCore::CachedImage::imageSize() const when viewing a particular message
  9903. Fix the uncached load path to confirm that the type of resource being
  9904. returned actually matches the type that was requested.
  9905. Also make sure we never create a resource in the Cache for invalid urls.
  9906. * loader/Cache.cpp:
  9907. (WebCore::Cache::requestResource):
  9908. * loader/DocLoader.cpp:
  9909. (WebCore::DocLoader::requestResource):
  9910. 2007-08-03 Mitz Pettel <mitz@webkit.org>
  9911. Reviewed by Adele.
  9912. - fix http://bugs.webkit.org/show_bug.cgi?id=14879
  9913. REGRESSION: First item in select (pop-up menu) is displayed even if another item was selected via JavaScript
  9914. Test: fast/forms/menulist-deselect-update.html
  9915. * html/HTMLOptionElement.cpp:
  9916. (WebCore::HTMLOptionElement::setSelected): Reordered to allow setSelectedIndex() to call setChanged().
  9917. 2007-08-03 Anders Carlsson <andersca@apple.com>
  9918. Reviewed by Darin.
  9919. <rdar://problem/5286444>
  9920. http://bugs.webkit.org/show_bug.cgi?id=14269
  9921. REGRESSION: Gmail links stop working after computer sleep
  9922. Add a PowerNotifier object that takes care of resetting and firing the shared timer when coming
  9923. back from sleep.
  9924. * platform/mac/SharedTimerMac.cpp:
  9925. (-[PowerNotifier init]):
  9926. (-[PowerNotifier didWake:]):
  9927. (WebCore::setSharedTimerFireTime):
  9928. 2007-08-04 Mark Rowe <mrowe@apple.com>
  9929. Windows build fix.
  9930. * rendering/RenderTextControl.cpp: Don't use the same name for two arguments.
  9931. 2007-08-03 Mitz Pettel <mitz@webkit.org>
  9932. Reviewed by Darin.
  9933. - fix http://bugs.webkit.org/show_bug.cgi?id=14653
  9934. REGRESSION (r23994): No caret is drawn after clicking a search field's placeholder text
  9935. <rdar://problem/5383841>
  9936. Test: fast/forms/search-click-in-placeholder.html
  9937. Defined a subclass of RenderBlock that never hit-tests children for use in
  9938. text controls. This avoids returning placeholder text as the hit node.
  9939. Since text controls cannot contain inline elements, there is no harm in
  9940. doing that unconditionally, and not just in the case that the field is
  9941. showing placeholder text.
  9942. * rendering/RenderTextControl.cpp:
  9943. (WebCore::RenderTextControlInnerBlock::RenderTextControlInnerBlock):
  9944. (WebCore::RenderTextControlInnerBlock::~RenderTextControlInnerBlock):
  9945. (WebCore::RenderTextControlInnerBlock::nodeAtPoint):
  9946. (WebCore::RenderTextControl::createSubtreeIfNeeded):
  9947. 2007-08-02 Oliver Hunt <oliver@apple.com>
  9948. Reviewed by Geoff
  9949. Fix for <rdar://problem/5369332> Xcode crashes while selecting a hyperlink within a AppleScript dictionary (WebCore::Font::drawGlyphBuffer)
  9950. There were many places where we were not correctly retaining/releasing the
  9951. NSFont object stored in the C++ PlatformFontData object, this resulted in
  9952. the GC incorrectly collecting the NSFont.
  9953. This patch fixes the problem by prevent direct modification of the PlatformFontData
  9954. font pointer, allowing us to enforce correct CFRetain/Release behaviour.
  9955. * platform/FontData.h:
  9956. (WebCore::FontData::getNSFont):
  9957. * platform/mac/FontCacheMac.mm:
  9958. (WebCore::FontCache::getFontDataForCharacters):
  9959. (WebCore::FontCache::createFontPlatformData):
  9960. * platform/mac/FontDataMac.mm:
  9961. (WebCore::initFontData):
  9962. (WebCore::FontData::platformInit):
  9963. (WebCore::FontData::platformDestroy):
  9964. (WebCore::FontData::smallCapsFontData):
  9965. (WebCore::FontData::containsCharacters):
  9966. (WebCore::FontData::determinePitch):
  9967. (WebCore::FontData::platformWidthForGlyph):
  9968. (WebCore::FontData::checkShapesArabic):
  9969. * platform/mac/FontMac.mm:
  9970. (WebCore::initializeATSUStyle):
  9971. (WebCore::overrideLayoutOperation):
  9972. (WebCore::Font::drawGlyphs):
  9973. * platform/mac/FontPlatformData.h:
  9974. (WebCore::FontPlatformData::FontPlatformData):
  9975. (WebCore::FontPlatformData::~FontPlatformData):
  9976. (WebCore::FontPlatformData::hash):
  9977. (WebCore::FontPlatformData::operator==):
  9978. (WebCore::FontPlatformData::font):
  9979. (WebCore::FontPlatformData::setFont):
  9980. 2007-08-03 Antti Koivisto <antti@apple.com>
  9981. Oops, this change wasn't supposed to be commited.
  9982. * page/mac/WebCoreFrameBridge.mm:
  9983. (-[WebCoreFrameBridge setBaseBackgroundColor:]):
  9984. 2007-08-02 Antti Koivisto <antti@apple.com>
  9985. Reviewed by Darin.
  9986. <rdar://problem/5355951>
  9987. plainText() fragments TCMalloc heap badly on large pages
  9988. also likely fixes some cases of
  9989. <rdar://problem/5335382>
  9990. CrashTracer: [REGRESSION] 73 crashes in Safari at com.apple.WebCore: WebCore::DeprecatedStringData::increaseUnicodeSize + 52
  9991. If you load http://dscoder.com/test.txt with WebKit build with TCMalloc and system malloc you see that
  9992. Safari RPRVT with TCMalloc is 118.8MB
  9993. Safari RPRVT with system malloc is 69.7MB
  9994. Difference is almost entirely caused by heap fragmentation from a full document plainText() call (for indexing purposes).
  9995. The patch helps in two ways:
  9996. - construct plainText string in pieces to avoid O(n^2) reallocs
  9997. - allocate buffers using system malloc so they can be returned back to OS and don't fragment and grow TCMalloc heap
  9998. This shrinks http://dscoder.com/test.txt RPRVT to 79.0MB and makes full document plainText() take 50ms instead of 500ms.
  9999. The benefits are not limited to extreme cases, web pages above ~200kB can show substantial improvement in RPRVT.
  10000. * editing/TextIterator.cpp:
  10001. (WebCore::plainTextToMallocAllocatedBuffer):
  10002. (WebCore::plainText):
  10003. * editing/TextIterator.h:
  10004. * page/mac/WebCoreFrameBridge.mm:
  10005. (-[WebCoreFrameBridge selectedString]):
  10006. (-[WebCoreFrameBridge stringForRange:]):
  10007. 2007-08-02 David Hyatt <hyatt@apple.com>
  10008. Fix for 5374437, allow comment nodes to be the child of a document.
  10009. Refine the check to always make a root element to check documentElement()
  10010. rather than firstChild(), since a comment node could be present as the
  10011. firstChild() now.
  10012. Reviewed by Tim Hatcher
  10013. * html/HTMLDocument.cpp:
  10014. (WebCore::HTMLDocument::childAllowed):
  10015. * html/HTMLParser.cpp:
  10016. (WebCore::HTMLParser::finished):
  10017. 2007-08-02 Antti Koivisto <antti@apple.com>
  10018. Reviewed by Darin.
  10019. <rdar://problem/5228138>
  10020. REGRESSION(Leopard): test failures: tests that test Georgian numbering
  10021. Fix to Georgian number tables to get CSS2.1 test results right. Font has relevant characters now
  10022. which revealed that results were actually wrong.
  10023. * rendering/RenderListMarker.cpp:
  10024. (WebCore::toGeorgian):
  10025. 2007-08-02 Ada Chan <adachan@apple.com>
  10026. Reviewed by Steve.
  10027. <rdar://problem/5079175> Added parameters headerHeight and footerHeight to
  10028. computePageRectsForFrame() so we can account for the header and footer when
  10029. calculating page heights for this frame.
  10030. * bridge/win/FrameWin.cpp:
  10031. (WebCore::computePageRectsForFrame):
  10032. * bridge/win/FrameWin.h:
  10033. 2007-08-02 Alice Liu <alice.liu@apple.com>
  10034. Reviewed by Kevin McCullough.
  10035. fixed <rdar://problem/5310312> REGRESSION: javascript is mis-escaped at http://labs.zarate.org/passwd causing bookmarklet to break
  10036. * WebCore.exp:
  10037. expose some calls for WebKit to call.
  10038. * manual-tests/JavaScript-bookmarklets.html: Added.
  10039. 2007-08-01 Adam Treat <treat@kde.org>
  10040. Reviewed by George Staikos.
  10041. Add an interface to manage global history for clients
  10042. * WebCore.pro:
  10043. * platform/qt/TemporaryLinkStubs.cpp:
  10044. 2007-08-01 Adam Treat <treat@kde.org>
  10045. Reviewed by George Staikos.
  10046. Do not call update or paint from inside a paint event.
  10047. * platform/qt/ScrollViewQt.cpp:
  10048. (WebCore::ScrollView::updateContents):
  10049. * platform/qt/WidgetQt.cpp:
  10050. (WebCore::Widget::invalidateRect):
  10051. 2007-08-01 Timothy Hatcher <timothy@apple.com>
  10052. Reviewed by Justin.
  10053. <rdar://problem/5376156> Mail crash in DeleteButtonController::hide() when dropping selected image on DIV's border
  10054. Add the container element back so the selection can not touch the deletion UI nodes. The container
  10055. has style to prevent user selection, user drag and user modification.
  10056. * editing/DeleteButtonController.cpp:
  10057. (WebCore::DeleteButtonController::show): Make the container node, and append the button and outline elements.
  10058. (WebCore::DeleteButtonController::hide): Remove the container elements and null out the other nodes.
  10059. * editing/DeleteButtonController.h:
  10060. 2007-08-01 Steve Falkenburg <sfalken@apple.com>
  10061. Build mod: Fix sln to match configs in vcproj.
  10062. Reviewed by Adam.
  10063. * WebCore.vcproj/WebCore.make:
  10064. 2007-07-31 David Harrison <harrison@apple.com>
  10065. Reviewed by Justin.
  10066. <rdar://problem/5362659> CrashTracer: [USER] 11 crashes in Mail at WebCore::InsertLineBreakCommand::doApply()
  10067. The problem was that deleting with the X control leaves the selection inside the fragment that was deleted.
  10068. * editing/DeleteButtonController.cpp:
  10069. (WebCore::DeleteButtonController::deleteTarget):
  10070. Because the deletion UI only appears when the selection is entirely
  10071. within the target, we unconditionally update the selection to be
  10072. a caret where the target had been.
  10073. 2007-07-31 Adele Peterson <adele@apple.com>
  10074. Reviewed by Hyatt.
  10075. Fix for <rdar://problem/5339395> REGRESSION:http://sudokucraving.com does not render grid correctly
  10076. * rendering/RenderTextControl.h: (WebCore::RenderTextControl::hasControlClip): Clip for search fields.
  10077. * rendering/RenderTextControl.cpp:
  10078. (WebCore::RenderTextControl::controlClipRect): Added a control clip so the search field's cancel button and magnifier glass
  10079. never draw outside the control's bounds.
  10080. (WebCore::RenderTextControl::calcPrefWidths): Only include the inner box's padding when calculating the min/max width without using calcContentBoxWidth.
  10081. Our old behavior was causing that inner padding to get counted twice. Also, no need to add in the border
  10082. for an inner box that can't be controlled from outside this class.
  10083. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::calcPrefWidths): ditto.
  10084. 2007-07-31 Anders Carlsson <andersca@apple.com>
  10085. Reviewed by Geoff.
  10086. Speculative fix for <rdar://problem/5359695>
  10087. REGRESSION (Tiger Beta): Multiple crashes in WebCore::Widget::getView() const + 6
  10088. * page/EventHandler.cpp:
  10089. (WebCore::EventHandler::updateDragAndDrop):
  10090. Null check the frame view.
  10091. 2007-07-31 Timothy Hatcher <timothy@apple.com>
  10092. Reviewed by Oliver and Beth.
  10093. <rdar://problem/5211271> ADOBE Leopard 9A410: At the first Launching InDesign after deactivate, EULA page gets blanked.
  10094. Rename needsAcrobatFrameReloadingQuirk to needsAdobeFrameReloadingQuirk, since this now applies to more Adobe applications.
  10095. * WebCore.exp:
  10096. * page/Settings.cpp:
  10097. (WebCore::Settings::Settings):
  10098. (WebCore::Settings::setNeedsAdobeFrameReloadingQuirk):
  10099. * page/Settings.h:
  10100. (WebCore::Settings::needsAcrobatFrameReloadingQuirk):
  10101. 2007-07-31 Matt Perry <mpComplete@gmail.com>
  10102. Reviewed by Brady and Darin, tweaked by Brady, landed by Brady
  10103. Fix for http://bugs.webkit.org/show_bug.cgi?id=14757 and <rdar://problem/5364692>
  10104. HTMLTokenizer::processingData implementation is incorrect
  10105. * html/HTMLTokenizer.cpp:
  10106. (WebCore::HTMLTokenizer::processingData): Made it also return true if the HTMLTokenizer was inside the write() call.
  10107. * loader/FrameLoader.cpp:
  10108. (WebCore::FrameLoader::FrameLoader):
  10109. (WebCore::FrameLoader::checkLoadCompleteTimerFired):
  10110. (WebCore::FrameLoader::scheduleCheckLoadComplete):
  10111. (WebCore::FrameLoader::stopForUserCancel): Changed a call to checkLoadComplete to be asynchronous, since
  10112. stopForUserCancel can be called while parsing.
  10113. * loader/FrameLoader.h:
  10114. 2007-07-31 Anders Carlsson <andersca@apple.com>
  10115. Reviewed by Geoff.
  10116. <rdar://problem/5371582>
  10117. REGRESSION: PLT .5% slower due to r24451 (copying HTMLCollection objects)
  10118. Make the hash maps store CollectionInfo pointers to reduce amount of copying when
  10119. inserting/rehashing etc.
  10120. * dom/Document.cpp:
  10121. (WebCore::Document::~Document):
  10122. (WebCore::Document::nameCollectionInfo):
  10123. * dom/Document.h:
  10124. 2007-07-31 Sam Weinig <sam@webkit.org>
  10125. Reviewed by Mitz.
  10126. Fix for http://bugs.webkit.org/show_bug.cgi?id=14825
  10127. Non-integer hsl() colours are ignored
  10128. * css/CSSParser.cpp:
  10129. (WebCore::CSSParser::parseHSLParameters): Parse hue as a Number,
  10130. not an Integer.
  10131. 2007-07-30 Justin Garcia <justin.garcia@apple.com>
  10132. Reviewed by Darin.
  10133. <rdar://problem/5369009> Crash due to infinite recursion in moveParagraphs on delete
  10134. After the delete, we moved content into the previous block, and a style
  10135. rule turned a style span in the moved content into a block, throwing
  10136. moveParagraphs into infinite recursion, as it continually tried and failed
  10137. to get the style span into the same paragraph as the content just before it.
  10138. Added a method to ReplaceSelectionCommand to keep inserted style spans
  10139. from turning into blocks because of style rules. Will add code to prevent
  10140. other kinds of content from changing appearance because of style rules,
  10141. post-Leopard (5371536). Also added a bool to ReplaceSelectionCommand's
  10142. constructor to guard against infinite recursion.
  10143. * editing/CompositeEditCommand.cpp:
  10144. (WebCore::CompositeEditCommand::moveParagraphs):
  10145. * editing/JSEditor.cpp:
  10146. * editing/ReplaceSelectionCommand.cpp:
  10147. (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand):
  10148. (WebCore::ReplaceSelectionCommand::negateStyleRulesThatEffectAppearance):
  10149. (WebCore::ReplaceSelectionCommand::doApply):
  10150. * editing/ReplaceSelectionCommand.h:
  10151. 2007-07-30 Anders Carlsson <andersca@apple.com>
  10152. Reviewed by Brady.
  10153. <rdar://problem/5371515>
  10154. BitmapImage::getTIFFRepresentation() bug results in favicons not working at many sites
  10155. Don't bail out if a single frame is invalid.
  10156. * platform/graphics/mac/ImageMac.mm:
  10157. (WebCore::BitmapImage::getTIFFRepresentation):
  10158. 2007-07-30 Adele Peterson <adele@apple.com>
  10159. Reviewed by Darin.
  10160. Fix for <rdar://problem/5274937> Safari 3 breaks Missing Sync's WebKit code by crashing
  10161. * loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::continueAfterContentPolicy): Nil check for the FrameLoader.
  10162. 2007-07-30 Anders Carlsson <andersca@apple.com>
  10163. Reviewed by Darin.
  10164. <rdar://problem/5370710>
  10165. REGRESSION: After switching from Bookmark view, the Find Banner won't appear while displaying a PDF file
  10166. Add a hasHTMLView to FrameLoaderClient. This is only useful for clients who can show different views for different
  10167. MIME types and URL schemes.
  10168. * loader/FrameLoader.cpp:
  10169. (WebCore::FrameLoader::transitionToCommitted):
  10170. Call delegate methods here if the current view is not a HTML view.
  10171. * loader/FrameLoaderClient.h:
  10172. (WebCore::FrameLoaderClient::hasHTMLView):
  10173. 2007-07-30 Sam Weinig <sam@webkit.org>
  10174. Reviewed by Maciej.
  10175. Fix for <rdar://problem/5363896>
  10176. REGRESSION: Setting document.domain does not override port-based cross-frame security checks -- breaks SAP NetWeaver
  10177. Updates the results for:
  10178. http/tests/security/cross-frame-access-port-explicit-domain.html
  10179. http/tests/security/cross-frame-access-protocol-explicit-domain.html
  10180. * bindings/js/kjs_window.cpp:
  10181. (KJS::createWindow): Use the new setDomainInternal method.
  10182. (KJS::Window::isSafeScript): Don't set check the port or protocol
  10183. if both documents have explicitly set document.domain in the DOM
  10184. and the those domains are equal.
  10185. * dom/Document.cpp:
  10186. (WebCore::Document::Document):
  10187. (WebCore::Document::setDomain): Remove force parameter and change
  10188. all calls that relied on it use the new setDomainInternal method
  10189. which does the same thing.
  10190. (WebCore::Document::setDomainInternal):
  10191. * dom/Document.h: Add new m_domainWasSetInDOM variable and accessor.
  10192. (WebCore::Document::domainWasSetInDOM):
  10193. * loader/FrameLoader.cpp:
  10194. (WebCore::FrameLoader::checkCallImplicitClose): Use the new setDomainInternal method.
  10195. 2007-07-30 Justin Garcia <justin.garcia@apple.com>
  10196. Reviewed by Tristan.
  10197. <rdar://problem/5098931> Attachments are lost when they are moved into a ToDo after a delete
  10198. Added an editor client method for asking whether or not it is
  10199. OK to merge content after a delete.
  10200. * bridge/EditorClient.h:
  10201. * editing/DeleteSelectionCommand.cpp:
  10202. (WebCore::DeleteSelectionCommand::mergeParagraphs): Ask if the
  10203. merge is allowed.
  10204. * platform/gdk/EditorClientGdk.cpp:
  10205. (WebCore::EditorClientGdk::shouldMoveRangeAfterDelete): Added a method stub.
  10206. * platform/gdk/EditorClientGdk.h:
  10207. * platform/graphics/svg/SVGImageEmptyClients.h:
  10208. (WebCore::SVGEmptyEditorClient::shouldMoveRangeAfterDelete): Ditto.
  10209. 2007-07-30 Alexey Proskuryakov <ap@webkit.org>
  10210. Reviewed by Anders.
  10211. <rdar://problem/5352526>
  10212. http://bugs.webkit.org/show_bug.cgi?id=14704
  10213. REGRESSION: sync XMLHttpRequest.send() raises an exception for failed authentication
  10214. Test: http/tests/xmlhttprequest/failed-auth.html
  10215. * platform/network/mac/ResourceHandleMac.mm:
  10216. (WebCore::ResourceHandle::loadResourceSynchronously): Make the fake response better match the real one
  10217. in case of failed authentication. Unfortunately, NSURLConnection doesn't give us the real response.
  10218. * xml/XMLHttpRequest.cpp:
  10219. (WebCore::XMLHttpRequest::send): If the response has an HTTP code in it, then the error wasn't
  10220. a network one, and an exception shouldn't be raised.
  10221. 2007-07-30 Anders Carlsson <andersca@apple.com>
  10222. Reviewed by Darin.
  10223. <rdar://problem/4942372> REGRESSION: Anchor links in Mail don't work anymore
  10224. Make it possible for KURL to handle addig fragments to non-hierarchical URLs
  10225. such as mailto: and cid:.
  10226. * platform/KURL.cpp:
  10227. (WebCore::KURL::init):
  10228. If the base URL is not hierarchical but the relative URL is a fragment, then
  10229. allow parsing it.
  10230. (WebCore::KURL::parse):
  10231. If the URL is not hierarchical, set the fragment start and end positions correctly.
  10232. 2007-07-30 Simon Hausmann <hausmann@kde.org>
  10233. Reviewed by Lars.
  10234. On Windows make sure the dll also ends up in $$OUTPUT_DIR/bin, so that QtLauncher can find it.
  10235. * WebCore.pro:
  10236. 2007-07-30 Simon Hausmann <hausmann@kde.org>
  10237. Reviewed by Lars.
  10238. Removed the __BUILDING_QT ifdef in JSStringRef.h and changed UChar for the Qt build to use wchar_t on Windows.
  10239. * platform/TextEncoding.cpp:
  10240. (WebCore::TextEncoding::encode):
  10241. 2007-07-30 Simon Hausmann <hausmann@kde.org>
  10242. Reviewed by Lars.
  10243. Don't link against libxml/libxslt unless we really need it.
  10244. * WebCore.pro:
  10245. 2007-07-29 Tristan O'Tierney <tristan@apple.com>
  10246. Reviewed by Oliver Hunt.
  10247. <rdar://problem/5369282> REGRESSION: DOMHTMLInput throwing exception due to missing _isEdited method
  10248. * bindings/objc/DOMHTML.mm:
  10249. (-[DOMHTMLInputElement _isEdited]):
  10250. (-[DOMHTMLTextAreaElement _isEdited]):
  10251. * bindings/objc/DOMPrivate.h:
  10252. Renamed _isUserEdited to _isEdited.
  10253. 2007-07-29 Adam Treat <treat@kde.org>
  10254. Reviewed by George Staikos.
  10255. Correctly set the update rect for the scrollbars when they are invalidated.
  10256. Do not paint entire page for each scroll delta. Cache the dirty regions
  10257. when webkit calls ScrollView::updateContents as webkit expects the paint
  10258. routine to use the dirty regions bounding rect.
  10259. These changes greatly reduce the cpu load as we are no longer painting the
  10260. entire page for each 1px scroll :P
  10261. * platform/qt/ScrollViewQt.cpp:
  10262. (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
  10263. (WebCore::ScrollView::updateContents):
  10264. (WebCore::ScrollView::paint):
  10265. * platform/qt/WidgetQt.cpp:
  10266. (WebCore::Widget::invalidateRect):
  10267. 2007-07-29 Adele Peterson <adele@apple.com>
  10268. Reviewed by John.
  10269. WebCore part of fix for <rdar://problem/5102522> REGRESSION: Can't tab to webview that doesn't have editable content (affects Safari, preview pane in Mail)
  10270. * WebCore.exp:
  10271. * page/FocusController.cpp:
  10272. (WebCore::FocusController::setInitialFocus): Added.
  10273. (WebCore::FocusController::advanceFocus): Don't give the focus back to the chrome if this is the initial focus.
  10274. * page/FocusController.h:
  10275. 2007-07-29 Adam Treat <treat@kde.org>
  10276. Reviewed by Alexey Proskuryakov.
  10277. WebCore::Widget::setParent should be virtual.
  10278. It is reimplemented in ScrollViewQt for instance.
  10279. * platform/Widget.h:
  10280. 2007-07-29 Alp Toker <alp.toker@collabora.co.uk>
  10281. Reviewed by bdash.
  10282. http://bugs.webkit.org/show_bug.cgi?id=14711 (revisited)
  10283. RenderThemeGdk's buttons are state-agnostic (pressed, hovered)
  10284. Generalize shadow state into a function.
  10285. use a GtkHBox to work around a theme bug (thanks to Nigel Tao).
  10286. * platform/gdk/RenderThemeGdk.cpp:
  10287. (WebCore::RenderThemeGdk::determineShadow):
  10288. (WebCore::RenderThemeGdk::paintCheckbox):
  10289. (WebCore::RenderThemeGdk::paintRadio):
  10290. (WebCore::RenderThemeGdk::paintButton):
  10291. (WebCore::RenderThemeGdk::gtkWindowContainer):
  10292. * platform/gdk/RenderThemeGdk.h:
  10293. 2007-07-27 Adele Peterson <adele@apple.com>
  10294. Reviewed by Darin.
  10295. Temporary fix for Windows to prevent crashing on all frame pages. Darin
  10296. is working on a more permanent fix.
  10297. * loader/FrameLoader.cpp:
  10298. 2007-07-27 Adam Treat <treat@kde.org>
  10299. Reviewed by David Hyatt.
  10300. Fix crash when using QtWebKit canvas support.
  10301. * ChangeLog:
  10302. * html/HTMLCanvasElement.cpp:
  10303. (WebCore::HTMLCanvasElement::reset):
  10304. 2007-07-27 Darin Adler <darin@apple.com>
  10305. * rendering/RenderLayer.cpp: Rolled out accidentally-checked-in code.
  10306. 2007-07-27 Darin Adler <darin@apple.com>
  10307. Reviewed by John Sullivan.
  10308. - fix <rdar://problem/5261393> In Mail the plain text alternatives to messages with attachments show weird little OBJ thingies
  10309. The "weird little thingies" are U+FFFC characters. It's good to render them as zero-width, the way we do
  10310. with control characters -- helps Mail and doesn't hurt web browsing.
  10311. Test: fast/text/zero-width-characters.html
  10312. * platform/CharacterNames.h: Add names for leftToRightMark, rightToLeftMark, and objectReplacementCharacter.
  10313. * platform/GlyphPageTreeNode.cpp: (WebCore::GlyphPageTreeNode::initializePage): Give objectReplacementCharacter
  10314. zero width in the same way we do it for the various other characters.
  10315. 2007-07-27 Lars Knoll <lars@trolltech.com>
  10316. Reviewed by Zack
  10317. Enable XSLT support for the gtk port.
  10318. * WebCore.pro:
  10319. 2007-07-27 Zack Rusin <zack@kde.org>
  10320. Reviewed by Zack and Lars.
  10321. Premature end after finishing parsing is a fatal error.
  10322. * dom/XMLTokenizer.cpp:
  10323. (WebCore::XMLTokenizer::end):
  10324. 2007-07-27 Lars Knoll <lars@trolltech.com>
  10325. Reviewed by Zack and Lars.
  10326. Simplify conversions that go from a QStringRef to a WebCore::String to not use a temporary QString.
  10327. * dom/XMLTokenizer.cpp:
  10328. (WebCore::):
  10329. 2007-07-27 Zack Rusin <zack@kde.org>
  10330. Reviewed by Zack and Lars.
  10331. Fix entity handling in the main document content (attributes still broken)
  10332. * dom/XMLTokenizer.cpp:
  10333. (WebCore::):
  10334. 2007-07-27 Lars Knoll <lars@trolltech.com>
  10335. Reviewed by Zack and Lars.
  10336. Correctly convert a null QString into a null WebCore::String. Add a String(const QStringRef&) constructor so that we can avoid converting QStringRef via QString to WebCore::String.
  10337. * dom/XMLTokenizer.cpp:
  10338. (WebCore::):
  10339. * platform/PlatformString.h:
  10340. * platform/qt/StringQt.cpp:
  10341. (WebCore::String::String):
  10342. 2007-07-27 Zack Rusin <zack@kde.org>
  10343. Reviewed by Zack and Lars.
  10344. Parse version and encoding of the xml document.
  10345. * dom/XMLTokenizer.cpp:
  10346. (WebCore::XMLTokenizer::write):
  10347. 2007-07-27 Zack Rusin <zack@kde.org>
  10348. Reviewed by Zack and Lars.
  10349. Correctly or semi-correctly parse the public and system id.
  10350. Patch from Lars.
  10351. * dom/XMLTokenizer.cpp:
  10352. (WebCore::):
  10353. 2007-07-27 Zack Rusin <zack@kde.org>
  10354. Reviewed by Zack and Lars.
  10355. Fix uri parsing for attributes.
  10356. * dom/XMLTokenizer.cpp:
  10357. (WebCore::):
  10358. 2007-07-27 Zack Rusin <zack@kde.org>
  10359. Reviewed by Zack and Lars.
  10360. Fixing qualified name parsing - from Lars.
  10361. * dom/XMLTokenizer.cpp:
  10362. (WebCore::XMLTokenizer::insertErrorMessageBlock):
  10363. (WebCore::):
  10364. 2007-07-27 Zack Rusin <zack@kde.org>
  10365. Reviewed by Zack and Lars.
  10366. Parse dtd's
  10367. * dom/XMLTokenizer.cpp:
  10368. (WebCore::XMLTokenizer::resumeParsing):
  10369. (WebCore::):
  10370. * dom/XMLTokenizer.h:
  10371. 2007-07-27 Zack Rusin <zack@kde.org>
  10372. Reviewed by Zack and Lars.
  10373. Implement error handling.
  10374. Add our copyrights
  10375. * dom/XMLTokenizer.cpp:
  10376. (WebCore::XMLTokenizer::handleError):
  10377. (WebCore::XMLTokenizer::end):
  10378. (WebCore::):
  10379. * dom/XMLTokenizer.h:
  10380. 2007-07-27 Zack Rusin <zack@kde.org>
  10381. Reviewed by Zack and Lars.
  10382. Making the stylesheets work (plus everything else basically)
  10383. * dom/XMLTokenizer.cpp:
  10384. (WebCore::XMLTokenizer::write):
  10385. (WebCore::XMLTokenizer::insertErrorMessageBlock):
  10386. (WebCore::):
  10387. * dom/XMLTokenizer.h:
  10388. 2007-07-27 Zack Rusin <zack@kde.org>
  10389. Reviewed by Zack and Lars.
  10390. Remove the libxml dependency when not compiling with XSLT.
  10391. Just ifdefing, displaying xml doesn't work.
  10392. * WebCore.pro:
  10393. * dom/XMLTokenizer.cpp:
  10394. (WebCore::XMLTokenizer::XMLTokenizer):
  10395. (WebCore::XMLTokenizer::write):
  10396. (WebCore::XMLTokenizer::startElementNs):
  10397. (WebCore::XMLTokenizer::enterText):
  10398. (WebCore::XMLTokenizer::exitText):
  10399. (WebCore::XMLTokenizer::initializeParserContext):
  10400. (WebCore::XMLTokenizer::end):
  10401. (WebCore::XMLTokenizer::lineNumber):
  10402. (WebCore::XMLTokenizer::columnNumber):
  10403. (WebCore::XMLTokenizer::stopParsing):
  10404. (WebCore::XMLTokenizer::resumeParsing):
  10405. (WebCore::):
  10406. * dom/XMLTokenizer.h:
  10407. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10408. Reviewed by Zack.
  10409. Work around bug in the moc when used as preprocessor for generating the bindings. -DFOO=1 is needed instead of -DFOO
  10410. to make the <hash>if FOO conditional match.
  10411. * WebCore.pro:
  10412. 2007-07-27 Patrick Hanna <phanna@email.unc.edu>
  10413. Reviewed by Darin Adler.
  10414. Change PluginBase::refresh to be static and update PluginsFunc::callAsFunction accordingly. Now we no longer
  10415. allocate an instance of a JSObject subclass on the stack which could lead to a crash during garbage collection.
  10416. * bindings/js/kjs_navigator.cpp:
  10417. (KJS::PluginsFunc::callAsFunction):
  10418. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10419. Done with and reviewed by Lars and Zack.
  10420. Fix snprintf hack for the Qt/Windows build with mingw-gcc. MingW has snprintf, so we don't need this helper function.
  10421. * page/FrameTree.cpp:
  10422. * platform/DeprecatedString.cpp:
  10423. (WebCore::DeprecatedString::format):
  10424. * platform/String.cpp:
  10425. (WebCore::String::format):
  10426. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10427. Done with and reviewed by Lars and Zack.
  10428. Make the DocTypeStrings.cpp generation work with MingW. Cleaned it up to be a regular extra compiler at the same time.
  10429. * WebCore.pro:
  10430. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10431. Done with and reviewed by Lars and Zack.
  10432. MingW build fixes: Do the "OBJECTS_TRAILING_SLASH" trick not only for win32-msvc but for all win32 mkspecs. Added LIB/INCLUDE hack from Qt to make us pick up 3rdparty libraries such as libxml from these environment variables.
  10433. * WebCore.pro:
  10434. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10435. Done with and reviewed by Lars and Zack.
  10436. Use $(MOVE) instead of mv to eliminated the shell dependency and replaced the long shell line to call bison and modify the css grammar file with a few lines of portable perl code.
  10437. * WebCore.pro:
  10438. * css/makegrammar.pl: Added.
  10439. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10440. Done with and reviewed by Lars and Zack.
  10441. On make install on Windows copy the dll into the bin dir.
  10442. * WebCore.pro:
  10443. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10444. Done with and reviewed by Lars and Zack.
  10445. Link in libxml and libxslt on Windows.
  10446. * WebCore.pro:
  10447. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10448. Done with and reviewed by Lars and Zack.
  10449. Temporarily disable the ICO support for the Qt build on Windows.
  10450. * WebCore.pro:
  10451. * platform/graphics/qt/ImageDecoderQt.cpp:
  10452. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10453. Done with and reviewed by Lars and Zack.
  10454. Fix evaluation with ActiveState Perl 5.6. Somehow it tried to treat nameEntries as array.
  10455. * bindings/scripts/CodeGeneratorJS.pm:
  10456. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10457. Done with and reviewed by Lars and Zack.
  10458. Fix compilation with MSVC in the Qt build (missing header files).
  10459. * loader/icon/IconDatabaseNone.cpp:
  10460. * platform/graphics/svg/SVGImage.cpp:
  10461. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10462. Done with and reviewed by Lars and Zack.
  10463. Disable the favicon database on Windows for now, to eliminate the sqlite dependency.
  10464. * WebCore.pro:
  10465. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10466. Done with and reviewed by Lars and Zack.
  10467. Added custom preprocessor support to make_names.pl and use the moc for it in the Qt build.
  10468. * WebCore.pro:
  10469. * ksvg2/scripts/make_names.pl:
  10470. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10471. Done with and reviewed by Lars and Zack.
  10472. Disable the batch mode for nmake to work around the clash of Node.c and Node.cpp both mapping to Node.obj
  10473. * WebCore.pro:
  10474. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10475. Done with and reviewed by Lars and Zack.
  10476. Fix compilation under Windows (removed sys/time.h dependency, use Qt instead).
  10477. * platform/qt/SystemTimeQt.cpp:
  10478. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10479. Done with and reviewed by Lars and Zack.
  10480. Fix compilation on Windows.
  10481. * platform/graphics/qt/PathQt.cpp:
  10482. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10483. Done with and reviewed by Lars and Zack.
  10484. Fix generation of ColorData.c on Windows.
  10485. * WebCore.pro:
  10486. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10487. Done with and reviewed by Lars and Zack.
  10488. Fix compilation under Qt/Windows.
  10489. * loader/icon/IconDatabase.cpp:
  10490. (WebCore::IconDatabase::open):
  10491. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10492. Done with and reviewed by Lars and Zack.
  10493. Changed extendedAttributes to be a variable instead of a hash directly. Required to work with ActiveState perl.
  10494. * bindings/scripts/IDLStructure.pm:
  10495. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10496. Done with and reviewed by Lars and Zack.
  10497. Fix header guard generation for CSSGrammar.h under Windows
  10498. * WebCore.pro:
  10499. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10500. Done with and reviewed by Lars and Zack.
  10501. Fix build with moc as preprocessor. Don't rely the preprocessor preserving whitespace at the beginning of lines.
  10502. * bindings/scripts/IDLParser.pm:
  10503. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10504. Done with and reviewed by Lars and Zack.
  10505. Make make-css-file-arrays.pl work on Windows by not calling /usr/bin/gcc as preprocessor for the Qt build.
  10506. * WebCore.pro:
  10507. * css/make-css-file-arrays.pl:
  10508. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10509. Done with and reviewed by Lars and Zack.
  10510. More gperf commandline fixes for Windows.
  10511. * WebCore.pro:
  10512. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10513. Done with and reviewed by Lars and Zack.
  10514. More quoting fixes for perl under Windows.
  10515. * WebCore.pro:
  10516. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10517. Done with and reviewed by Lars and Zack.
  10518. Fix command quoting under Windows
  10519. * WebCore.pro:
  10520. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10521. Done with and reviewed by Lars and Zack.
  10522. Fix cssmakeprops and cssmakevalue scripts to work on Windows without cygwin perl. Avoid inplace substitutions and direct invocation of /bin/sh. Also call gperf with arguments that GnuWin32's gperf understands.
  10523. * ksvg2/scripts/cssmakeprops:
  10524. * ksvg2/scripts/cssmakevalues:
  10525. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10526. Done with and reviewed by Lars and Zack.
  10527. Beautiful hacks to make more of the extra compiler magic work under Windows outside of cygwin.
  10528. * WebCore.pro:
  10529. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10530. Done with and reviewed by Lars and Zack.
  10531. Correctly propagate the custom preprocessor option through the idl parser and the codegenerator.
  10532. * bindings/scripts/CodeGenerator.pm:
  10533. * bindings/scripts/generate-bindings.pl:
  10534. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10535. Done with and reviewed by Lars and Zack.
  10536. When constructing the absolute path when searching for IDL files in the list of search paths don't prepend a slash if $SOURCEROOT as environment variable is not set. In the Qt build we pass absolute search paths already and we don't set SOURCEROOT. Under Unix that gives a double slash for the directory which works fine, under Windows we get /c:\webkit\foo which of course does not work.
  10537. * bindings/scripts/CodeGenerator.pm:
  10538. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10539. Done with and reviewed by Lars and Zack.
  10540. Relax the regular expression that tries to find constant declarations in the IDL source to not require leading whitespace. This makes it work with preprocessors that happen to eliminate leading whitespace.
  10541. * bindings/scripts/IDLParser.pm:
  10542. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10543. Done with and reviewed by Lars and Zack.
  10544. Try to use the moc as preprocessor for the IDL bindings generator
  10545. * WebCore.pro:
  10546. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10547. Done with and reviewed by Lars and Zack.
  10548. Make it possible to specify the preprocessor the bindings generator uses instead of hardcoding /usr/bin/gcc (which is of course no option on Windows). Also try to use a more portable and Windows friendly way of opening the reading pipe to the preprocessor.
  10549. * bindings/scripts/IDLParser.pm:
  10550. * bindings/scripts/generate-bindings.pl:
  10551. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10552. Done with and reviewed by Lars and Zack.
  10553. Don't use stdout redirection for make_names.pl as it doesn't work under Windows perl (outside cygwin).
  10554. * ksvg2/scripts/make_names.pl:
  10555. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10556. Done with and reviewed by Lars and Zack.
  10557. Fix DocTypeStrings.cpp generation to work on Windows with cmd.exe
  10558. * WebCore.pro:
  10559. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10560. Reviewed by Lars.
  10561. Work around aliasing bugs in WebCore by compiling with -fno-strict-aliasing for gcc builds for now.
  10562. * WebCore.pro:
  10563. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10564. Reviewed by Lars.
  10565. Use -Wreturn-type only when compiling with g++
  10566. * WebCore.pro:
  10567. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10568. Reviewed by Zack.
  10569. Don't use pkg-config on Windows for the Qt build
  10570. * WebCore.pro:
  10571. 2007-07-27 Simon Hausmann <hausmann@kde.org>
  10572. Reviewed by Zack.
  10573. Fix compilation with MSVC.
  10574. * platform/graphics/qt/ImageDecoderQt.cpp:
  10575. 2007-07-26 Tristan O'Tierney <tristan@apple.com>
  10576. Reviewed by Anders Carlsson.
  10577. <rdar://problem/5350019> REGRESSION: Pages on milliyet.com are added to Back list when visited, causing Back button to just reload
  10578. * loader/FrameLoader.cpp:
  10579. (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
  10580. If the policy action is FrameLoadTypeRedirectLockHistory, don't add the frame load url to the history.
  10581. 2007-07-26 Anders Carlsson <andersca@apple.com>
  10582. Reviewed by Geoff.
  10583. Add a FIXME about caching pages with plug-ins that have outstanding NPObjects.
  10584. * loader/FrameLoader.cpp:
  10585. (WebCore::FrameLoader::canCachePage):
  10586. 2007-07-26 David Hyatt <hyatt@apple.com>
  10587. FIx for <rdar://problem/5289721> CrashTracer: [REGRESSION] 2658 crashes in Safari at com.apple.WebCore: WebCore::RenderInline::height const + 16
  10588. Adding a null check for now and an assert. We don't know how/why this
  10589. bug happens, but hopefully the assert will help people to reproduce.
  10590. Reviewed by kevin
  10591. * rendering/RenderInline.cpp:
  10592. (WebCore::RenderInline::height):
  10593. 2007-07-26 Anders Carlsson <andersca@apple.com>
  10594. Reviewed by Oliver.
  10595. <rdar://problem/5362783>
  10596. In Mail, a crash occurs at WTF::fastMalloc() when attempting to create a new HTML message from http://nytimes.com/
  10597. If the cache is disabled and there is already a resource with the given URL, return it instead of creating a new one.
  10598. * loader/DocLoader.cpp:
  10599. (WebCore::DocLoader::requestResource):
  10600. 2007-07-26 Adele Peterson <adele@apple.com>
  10601. Reviewed by Geoff.
  10602. Build fix.
  10603. * platform/network/cf/ResourceRequest.h:
  10604. 2007-07-26 Anders Carlsson <andersca@apple.com>
  10605. Reviewed by John Sullivan.
  10606. <rdar://problem/5349389>
  10607. Some frame load delegate methods not called when loading a page from the BF cache
  10608. These calls were moved to FrameLoader::begin, which is never called for pages loaded
  10609. from the BF cache. This happened in revision 24490.
  10610. * loader/FrameLoader.cpp:
  10611. (WebCore::FrameLoader::transitionToCommitted):
  10612. Call delegate methods if the load is from the BF cache.
  10613. 2007-07-26 Kevin McCullough <kmccullough@apple.com>
  10614. Reviewed by Darin, Geoff and Sam.
  10615. - <rdar://problem/5150461> Resizing the window larger than the screen causes no resize.
  10616. - We now better match the behavior of other browsers.
  10617. * bindings/js/kjs_window.cpp:
  10618. (KJS::constrainToVisible):
  10619. (KJS::WindowFunc::callAsFunction):
  10620. 2007-07-26 Tristan O'Tierney <tristan@apple.com>
  10621. Reviewed by Adele Peterson.
  10622. <rdar://problem/5359921> WebCore should maintain a dirty flag for confirmation on unsaved changes
  10623. * bindings/objc/DOMHTML.mm:
  10624. (-[DOMHTMLInputElement _isUserEdited]):
  10625. (-[DOMHTMLTextAreaElement _isUserEdited]):
  10626. Renamed _isEdited to _isUserEdited since the functionality is now different
  10627. * bindings/objc/DOMPrivate.h:
  10628. Renamed _isEdited to _isUserEdited.
  10629. * rendering/RenderTextControl.cpp:
  10630. (WebCore::RenderTextControl::RenderTextControl):
  10631. Defaulted m_userEdited to false
  10632. (WebCore::RenderTextControl::updateFromElement):
  10633. Set m_userEdited to false, since the change wasn't triggered first by an edit
  10634. (WebCore::RenderTextControl::subtreeHasChanged):
  10635. Set m_userEdited to true, since it has been touched by the user
  10636. * rendering/RenderTextControl.h:
  10637. (WebCore::RenderTextControl::isUserEdited):
  10638. (WebCore::RenderTextControl::setUserEdited):
  10639. Added two new methods to set/return the userEdited boolean value.
  10640. 2007-07-26 Geoffrey Garen <ggaren@apple.com>
  10641. Reviewed by Beth Dakin.
  10642. Fixed NULL-dereference crash seen on buildbot.
  10643. No bug filed because this is a part of <rdar://problem/5241167>.
  10644. * history/PageCache.h:
  10645. (WebCore::PageCache::get): NULL-check HistoryItems passed to get()
  10646. and remove(), to match the old semantics of HashMap. For clarity,
  10647. ASSERT that add() is not called with NULL arguments.
  10648. 2007-07-26 Anders Carlsson <andersca@apple.com>
  10649. Reviewed by Oliver Hunt.
  10650. <rdar://problem/5361106> Crash in user style sheet when loading webpage
  10651. Null check m_frame.
  10652. * dom/Document.cpp:
  10653. (WebCore::Document::stylesheetLoaded):
  10654. 2007-07-26 Geoffrey Garen <ggaren@apple.com>
  10655. Used `svn merge -r24646:24645' to revert project changes I accidentally
  10656. checked in.
  10657. * WebCore.xcodeproj/project.pbxproj:
  10658. 2007-07-26 Geoffrey Garen <ggaren@apple.com>
  10659. Reviewed by Darin Adler.
  10660. Fixed <rdar://problem/5241167> REGRESSION: PLT 1% slower due to r21793
  10661. (global page cache cap)
  10662. I just measured a .1%-.2% regression in PLT average, but a .4% win in
  10663. PLT fastest run, so I think this regression is licked.
  10664. Surprisingly, the combination of wtf data structures I originally used
  10665. for PageCache turned out to be too slow, so I reworked PageCache to use
  10666. a hand-crafted linked list for LRU tracking (instead of ListHashSet),
  10667. to store its CachedPages in the HistoryItems to which they corresponded
  10668. (instead of using a HashMap), and to ref/deref HistoryItems manually
  10669. (instead of using RefPtr, which would ref once for every reference in
  10670. the linked list).
  10671. * history/HistoryItem.h: Added data members for PageCache data. Made
  10672. PageCache a friend so it could access them. Ideally (from an
  10673. encapsulation perspective), we would store this data an independent
  10674. structure, but that's just too slow.
  10675. * history/PageCache.cpp: Added a hand-crafted linked list for LRU
  10676. tracking.
  10677. (WebCore::PageCache::PageCache):
  10678. (WebCore::PageCache::add): Adopt the HistoryItem's ref when it's added.
  10679. (WebCore::PageCache::remove): deref() the Historyitem when it's
  10680. removed.
  10681. (WebCore::PageCache::prune):
  10682. (WebCore::PageCache::addToLRUList):
  10683. (WebCore::PageCache::removeFromLRUList):
  10684. * history/PageCache.h:
  10685. (WebCore::PageCache::get): Inlined just in case.
  10686. 2007-07-26 Adam Treat <treat@kde.org>
  10687. Reviewed by George Staikos.
  10688. Launch the context menu in the right place.
  10689. * platform/qt/ContextMenuQt.cpp:
  10690. (WebCore::ContextMenu::setPlatformDescription):
  10691. 2007-07-25 Maciej Stachowiak <mjs@apple.com>
  10692. Reviewed by Mark.
  10693. - follow-up to previous change to avoid assertion failures in debug
  10694. * xml/XMLHttpRequest.cpp:
  10695. (WebCore::XMLHttpRequest::getResponseText): hold JSLock when needed
  10696. (WebCore::XMLHttpRequest::open): ditto
  10697. (WebCore::XMLHttpRequest::didFinishLoading): ditto
  10698. (WebCore::XMLHttpRequest::didReceiveData): ditto
  10699. * xml/XMLHttpRequest.h:
  10700. 2007-07-25 Anders Carlsson <andersca@apple.com>
  10701. Reviewed by Darin.
  10702. <rdar://problem/5327912>
  10703. iDisk: Web iDisk & main iDisk appear blank
  10704. Prepend any remaining text that scripts might have written.
  10705. * html/HTMLTokenizer.cpp:
  10706. (WebCore::HTMLTokenizer::scriptExecution):
  10707. 2007-07-25 Kevin McCullough <kmccullough@apple.com>
  10708. Reviewed by Tim, Darin, Oliver.
  10709. - <rdar://problem/5329440> REGRESSION: Clicking links with the feed:// protocol in Safari 3 does nothing
  10710. - Check for file:// urls when clicking links, not block all schemes that are treated as local.
  10711. * loader/FrameLoader.cpp:
  10712. (WebCore::FrameLoader::load):
  10713. 2007-07-25 Maciej Stachowiak <mjs@apple.com>
  10714. Reviewed by Darin.
  10715. - fixed <rdar://problem/5300291> Optimize GC to reclaim big, temporary objects (like XMLHttpRequest.responseXML) quickly
  10716. With this plus related JavaScriptCore changes, a number of XMLHttpRequest situations that
  10717. result in huge data sets are addressed, including a single huge responseXML on an XMR done
  10718. repeatedly, or accessing responseText repeatedly during loading of a single large XHR.
  10719. In addition to the GC changes in JavaScriptCore, I changed responseText to be stored as a
  10720. KJS::UString instead of a WebCore::String so that the JavaScript responseText value can
  10721. share the buffer (indeed multiple intermediate responseTexts can share its buffer).
  10722. First of all, here's some manual test cases that will each blow out the process VM without this fix,
  10723. but will settle into decent steady state with.
  10724. * manual-tests/memory: Added.
  10725. * manual-tests/memory/MessageUidsAlreadyDownloaded2: Added.
  10726. * manual-tests/memory/string-growth.html: Added.
  10727. * manual-tests/memory/xhr-multiple-requests-responseText.html: Added.
  10728. * manual-tests/memory/xhr-multiple-requests-responseXML.html: Added.
  10729. * manual-tests/memory/xhr-multiple-requests.html: Added.
  10730. * manual-tests/memory/xhr-repeated-string-access.xml: Added.
  10731. And here's the actual code changes:
  10732. * WebCore.xcodeproj/project.pbxproj:
  10733. * bindings/js/JSDocumentCustom.cpp:
  10734. (WebCore::toJS): Record extra cost if the document is frameless (counting the nodes
  10735. doesn't make a measurable performance difference here in any case I could find)
  10736. * bindings/js/JSXMLHttpRequest.cpp:
  10737. (KJS::JSXMLHttpRequest::getValueProperty): Adjust for the fact that ressponseText
  10738. is now stored as a UString.
  10739. * bindings/js/kjs_binding.cpp:
  10740. (KJS::jsOwnedStringOrNull): New helper.
  10741. * bindings/js/kjs_binding.h:
  10742. * xml/XMLHttpRequest.cpp:
  10743. (WebCore::XMLHttpRequest::getResponseText): It's a UString!
  10744. (WebCore::XMLHttpRequest::getResponseXML): handle the fact that m_responseText
  10745. is a UString.
  10746. (WebCore::XMLHttpRequest::XMLHttpRequest): ditto.
  10747. (WebCore::XMLHttpRequest::abort): call dropProtection
  10748. (WebCore::XMLHttpRequest::didFinishLoading): call dropProtection
  10749. (WebCore::XMLHttpRequest::dropProtection): after removing our GC protection,
  10750. report extra cost of this XHR's responseText buffer.
  10751. * xml/XMLHttpRequest.h:
  10752. 2007-07-25 Timothy Hatcher <timothy@apple.com>
  10753. Reviewed by Brady.
  10754. <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
  10755. Change the outline element to position itself automaticlly using the top, left, bottom and right CSS properties.
  10756. This made the container element redundant, so it has been removed. Now the outline element and the delete button
  10757. both get appended to the target element and positioned based on that container element. This removes the need
  10758. to update the width and height when the target contents changed.
  10759. * editing/DeleteButtonController.cpp:
  10760. (WebCore::DeleteButtonController::show): Change the style properties and remove the container element.
  10761. (WebCore::DeleteButtonController::hide): Remove the button and outline from the target element.
  10762. * editing/DeleteButtonController.h: Removed updateOutlineStyle, respondToChangedContents and m_containerElement.
  10763. * editing/Editor.cpp:
  10764. (WebCore::Editor::respondToChangedContents): Remove the call to DeleteButtonController respondToChangedContents.
  10765. 2007-07-25 Anders Carlsson <andersca@apple.com>
  10766. Reviewed by Darin.
  10767. <rdar://problem/5344471>
  10768. CrashTracer: [USER] 1 crash in Mail at WebCore::PluginTokenizer::writeRawData(char const*, int)
  10769. Make sure to layout so we'll have a renderer. Also null-check the renderer for extra safety.
  10770. * loader/PluginDocument.cpp:
  10771. (WebCore::PluginTokenizer::writeRawData):
  10772. 2007-07-25 Brett Wilson <brettw@chromium.org>
  10773. Reviewed by Maciej, Darin.
  10774. - http://bugs.webkit.org/show_bug.cgi?id=14030
  10775. Add ResourceHandle::setClient to resolve some messiness with handle
  10776. releasing. Clear the client when ResourceLoader is going to release
  10777. the handle to prevent crashes in the case where somebody still holds a
  10778. reference (this doesn't seem to currently happen in practice). Add
  10779. NULL-checking for ResourceHandle implementations using the client.
  10780. * loader/ResourceLoader.cpp:
  10781. (WebCore::ResourceLoader::releaseResources):
  10782. * platform/network/ResourceHandle.cpp:
  10783. (WebCore::ResourceHandle::fireBlockedFailure):
  10784. (WebCore::ResourceHandle::setClient):
  10785. * platform/network/ResourceHandle.h:
  10786. * platform/network/cf/ResourceHandleCFNet.cpp:
  10787. (WebCore::willSendRequest):
  10788. (WebCore::didReceiveResponse):
  10789. (WebCore::didReceiveData):
  10790. (WebCore::didFinishLoading):
  10791. (WebCore::didFail):
  10792. (WebCore::willCacheResponse):
  10793. (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
  10794. (WebCore::ResourceHandle::receivedCancellation):
  10795. * platform/network/mac/ResourceHandleMac.mm:
  10796. (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
  10797. (WebCore::ResourceHandle::didCancelAuthenticationChallenge):
  10798. (WebCore::ResourceHandle::receivedCancellation):
  10799. (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
  10800. (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]):
  10801. (-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:]):
  10802. (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]):
  10803. (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]):
  10804. (-[WebCoreResourceHandleAsDelegate connection:didFailWithError:]):
  10805. (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
  10806. 2007-07-25 Maxime Britto <mbritto@pleyo.com>
  10807. Reviewed by Darin.
  10808. - fix http://bugs.webkit.org/show_bug.cgi?id=11756
  10809. REGRESSION: link targeting a frame in another window does not work
  10810. <rdar://problem/5286420>
  10811. Test: http/tests/navigation/target-frame-from-window.html
  10812. Fix a typo error to really compare the present domain to the domain of the parent of the targeted frame.
  10813. * loader/FrameLoader.cpp: (WebCore::FrameLoader::canTarget):
  10814. 2007-07-25 Mitz Pettel <mitz@webkit.org>
  10815. Reviewed by Darin.
  10816. - fix http://bugs.webkit.org/show_bug.cgi?id=14758
  10817. REGRESSION: Repeated text after line break on facebook.com
  10818. Test: fast/text/reset-emptyRun.html
  10819. * platform/BidiResolver.h:
  10820. (WebCore::::deleteRuns): Re-add a line that was removed for no reason at all
  10821. during refactoring in r24485.
  10822. * rendering/bidi.cpp:
  10823. (WebCore::BidiState::deleteRuns): Ditto.
  10824. 2007-07-24 Oliver Hunt <oliver@apple.com>
  10825. Reviewed by Adam and Justin.
  10826. <rdar://problem/5141779> WebView editableDOMRangeForPoint: & moveDragCaretToPoint: returns last position in DOMText range
  10827. Remove bridge implementation for editableDOMRangeForPoint: and moveDragCaretToPoint:.
  10828. Now use cross-platform code Editor::rangeForPoint and DragController::placeDragCaret instead.
  10829. This required lifting local code from DragController.cpp into the shared methods
  10830. Frame::visiblePositionForPoint and Frame::documentAtPoint.
  10831. * WebCore.exp:
  10832. * editing/Editor.cpp:
  10833. (WebCore::Editor::rangeForPoint):
  10834. * editing/Editor.h:
  10835. * page/DragController.cpp:
  10836. (WebCore::DragController::dragEnded):
  10837. (WebCore::DragController::performDrag):
  10838. (WebCore::DragController::dragEnteredOrUpdated):
  10839. (WebCore::DragController::tryDocumentDrag):
  10840. (WebCore::DragController::operationForLoad):
  10841. (WebCore::setSelectionToDragCaret):
  10842. (WebCore::DragController::concludeDrag):
  10843. (WebCore::DragController::placeDragCaret):
  10844. * page/DragController.h:
  10845. * page/Frame.cpp:
  10846. (WebCore::Frame::visiblePositionForPoint):
  10847. (WebCore::Frame::documentAtPoint):
  10848. * page/Frame.h:
  10849. * page/mac/WebCoreFrameBridge.h:
  10850. * page/mac/WebCoreFrameBridge.mm:
  10851. 2007-07-24 Sam Weinig <sam@webkit.org>
  10852. Rubber-stamped by Adam Roben.
  10853. Remove unused .strip files.
  10854. * WebCore.xcodeproj/project.pbxproj:
  10855. 2007-07-24 Adele Peterson <adele@apple.com>
  10856. Reviewed by Hyatt.
  10857. Fix for <rdar://problem/5308492> Computed width for elements with box-sizing: border-box is not equal to the width set in the CSS
  10858. Test: fast/css/getComputedStyle-border-box.html
  10859. * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  10860. For the width and height properties, when you get the value from the renderer, use the renderer's box sizing value to determine the size.
  10861. 2007-07-24 Anders Carlsson <andersca@apple.com>
  10862. Reviewed by Kevin Decker.
  10863. <rdar://problem/5355781>
  10864. REGRESSION: reproducible crash in CoreFoundation!CFRunLoopFinished on Flash pages
  10865. Null check the loader.
  10866. * plugins/win/PluginStreamWin.cpp:
  10867. (WebCore::PluginStreamWin::start):
  10868. 2007-07-24 Adele Peterson <adele@apple.com>
  10869. Reviewed by Hyatt and Adam.
  10870. Fix for <rdar://problem/5130590> REGRESSION: style="width:1px" on <select> element no longer hides the element
  10871. Removed hack that forced large padding on popup buttons. Now we put that padding in the inner block, so that
  10872. the specified width will be honored.
  10873. * rendering/RenderMenuList.cpp:
  10874. (WebCore::RenderMenuList::adjustInnerStyle): Set the padding on the inner block based on the metrics provided by the theme.
  10875. (WebCore::RenderMenuList::controlClipRect): Clip to the intersection of the inner content box and the outer content box.
  10876. This will leave room for the arrows which sit in the inner box padding, and if the inner box ever spills out of the outer box,
  10877. that will get clipped too.
  10878. (WebCore::RenderMenuList::calcPrefWidths): Add in the inner box's padding and border to the pref widths.
  10879. * rendering/RenderThemeMac.mm:
  10880. (WebCore::RenderThemeMac::paintMenuList): Only inflate the rect for the shadow if the rect is big enough to fit the whole control.
  10881. Also, on Leopard, the NSCell will draw outside of a small rect, so add a clip for that case.
  10882. (WebCore::RenderThemeMac::paintMenuListButton): Restrict font scale to make sure the arrows will actually fit in the bounds vertically.
  10883. Don't draw the arrows if they won't fit horizontally. Reset padding. Since WinIE doesn't honor padding for popups, its not critical to
  10884. support padding at this time.
  10885. (WebCore::RenderThemeMac::adjustMenuListStyle): Don't set the padding here. Instead, we're going to set the padding on the inner block of the select.
  10886. (WebCore::RenderThemeMac::adjustMenuListButtonStyle): ditto.
  10887. (WebCore::RenderThemeMac::popupInternalPaddingLeft): Added. Provides internal padding values for RenderMenuList.
  10888. (WebCore::RenderThemeMac::popupInternalPaddingRight): ditto.
  10889. (WebCore::RenderThemeMac::popupInternalPaddingTop): ditto.
  10890. (WebCore::RenderThemeMac::popupInternalPaddingBottom): ditto.
  10891. * rendering/RenderThemeMac.h:
  10892. * rendering/RenderThemeSafari.cpp: The same changes that were made to RenderThemeMac were made here, with variations for the arrow differences.
  10893. This code should be refactored and shared, but now did not seem like the right time to do that refactoring.
  10894. (WebCore::RenderThemeSafari::paintMenuList):
  10895. (WebCore::RenderThemeSafari::paintMenuListButton):
  10896. (WebCore::RenderThemeSafari::adjustMenuListStyle):
  10897. (WebCore::RenderThemeSafari::popupInternalPaddingLeft):
  10898. (WebCore::RenderThemeSafari::popupInternalPaddingRight):
  10899. (WebCore::RenderThemeSafari::popupInternalPaddingTop):
  10900. (WebCore::RenderThemeSafari::popupInternalPaddingBottom):
  10901. (WebCore::RenderThemeSafari::adjustMenuListButtonStyle):
  10902. * rendering/RenderThemeSafari.h:
  10903. * rendering/RenderTheme.h: Added to provide internal padding values for RenderMenuList.
  10904. (WebCore::RenderTheme::popupInternalPaddingLeft):
  10905. (WebCore::RenderTheme::popupInternalPaddingRight):
  10906. (WebCore::RenderTheme::popupInternalPaddingTop):
  10907. (WebCore::RenderTheme::popupInternalPaddingBottom):
  10908. 2007-07-24 Lars Knoll <lars@trolltech.com>
  10909. Reviewed by Adam Roben & David Kilzer.
  10910. replace the makeprop and makevalues shell scripts by equivalent perl versions. This is required to remove the last shell dependency when building QtWebKit on Windows.
  10911. * DerivedSources.make:
  10912. * WebCore.pro:
  10913. * WebCore.xcodeproj/project.pbxproj:
  10914. * css/makeprop: Added.
  10915. * css/makeprop.pl: Removed.
  10916. * css/makevalues: Added.
  10917. * css/makevalues.pl: Removed.
  10918. 2007-07-24 Beth Dakin <bdakin@apple.com>
  10919. Reviewed by Darin.
  10920. Fix for http://bugs.webkit.org/show_bug.cgi?id=14714 REGRESSION:
  10921. ASSERTION FAILED: i < size() in Vector.h:401 on negative -webkit-
  10922. column-width
  10923. - and -
  10924. http://bugs.webkit.org/show_bug.cgi?id=14718 REGRESSION: ASSERTION
  10925. FAILED: i < size() in Vector.h:401 on zero -webkit-column-count
  10926. * rendering/RenderBlock.cpp:
  10927. (WebCore::RenderBlock::calcColumnWidth): Make 1 the minimum value
  10928. for column-width and column-count. Since the spec does not address
  10929. what to do with negative values for these properties, we are
  10930. patching the rendering code instead of the parser.
  10931. 2007-07-24 Anders Carlsson <andersca@apple.com>
  10932. Reviewed by Steve.
  10933. <rdar://problem/5355403>
  10934. REGRESSION: 303A2 does not display pdf files with AdobeReader 8.1
  10935. Close the file before handing off the file name to the plug-in.
  10936. * plugins/win/PluginStreamWin.cpp:
  10937. (WebCore::PluginStreamWin::destroyStream):
  10938. 2007-07-24 Alp Toker <alp.toker@collabora.co.uk>
  10939. Reviewed by Adam.
  10940. http://bugs.webkit.org/show_bug.cgi?id=14711
  10941. RenderThemeGdk's buttons are state-agnostic (pressed, hovered)
  10942. Remove unnecessary label from widget instances.
  10943. Render check and radio widgets correctly.
  10944. Determine the widget state and render it appropriately.
  10945. * platform/gdk/RenderThemeGdk.cpp:
  10946. (WebCore::RenderThemeGdk::determineState):
  10947. (WebCore::RenderThemeGdk::paintCheckbox):
  10948. (WebCore::RenderThemeGdk::paintRadio):
  10949. (WebCore::RenderThemeGdk::paintButton):
  10950. (WebCore::RenderThemeGdk::gtkButton):
  10951. (WebCore::RenderThemeGdk::gtkCheckbox):
  10952. (WebCore::RenderThemeGdk::gtkRadioButton):
  10953. * platform/gdk/RenderThemeGdk.h:
  10954. 2007-07-24 Mark Rowe <mrowe@apple.com>
  10955. Reviewed by Antti.
  10956. <rdar://problem/5356666> NSMenuItem's seen leaking on buildbot
  10957. * platform/mac/ContextMenuItemMac.mm:
  10958. (WebCore::ContextMenuItem::releasePlatformDescription): Transfer ownership from the RetainPtr's CF-based retain
  10959. count to the Foundation retain count so that callers of releasePlatformDescription can use -[NSObject release]
  10960. to dispose of it in a manner that won't leak under Obj-C GC.
  10961. * platform/mac/ContextMenuMac.mm:
  10962. (WebCore::ContextMenu::appendItem): Release platformItem as we were transferred its ownership by releasePlatformDescription.
  10963. (WebCore::ContextMenu::insertItem): ditto.
  10964. 2007-07-24 Mitz Pettel <mitz@webkit.org>
  10965. Reviewed by Darin.
  10966. - fix http://bugs.webkit.org/show_bug.cgi?id=14684
  10967. Hebrew text in Safari chrome is reversed (LTR instead of RTL)
  10968. Test: fast/text/drawBidiText.html
  10969. * WebCore.pro:
  10970. * WebCore.vcproj/WebCore.vcproj:
  10971. * WebCore.xcodeproj/project.pbxproj:
  10972. * WebCoreSources.bkl:
  10973. * manual-tests/chrome-bidi-text.html: Added.
  10974. * manual-tests/resources/chrome-bidi-text-window.html: Added.
  10975. * platform/BidiReorderCharacters.cpp: Removed.
  10976. * platform/BidiReorderCharacters.h: Removed.
  10977. * platform/BidiResolver.h:
  10978. (WebCore::BidiCharacterRun::start): Added accessor method.
  10979. (WebCore::BidiCharacterRun::stop): Ditto.
  10980. (WebCore::BidiCharacterRun::level): Ditto.
  10981. (WebCore::BidiCharacterRun::next): Ditto.
  10982. (WebCore::::appendRun): Added default implementation.
  10983. * platform/TextStyle.h:
  10984. (WebCore::TextStyle::setDirectionalOverride): Added accessor method.
  10985. * platform/graphics/GraphicsContext.cpp:
  10986. (WebCore::TextRunIterator::TextRunIterator): Added. A BidiResolver-
  10987. compliant iterator over the characters in a TextRun.
  10988. (WebCore::TextRunIterator::offset):
  10989. (WebCore::TextRunIterator::increment):
  10990. (WebCore::TextRunIterator::atEnd):
  10991. (WebCore::TextRunIterator::current):
  10992. (WebCore::TextRunIterator::direction):
  10993. (WebCore::TextRunIterator::operator==):
  10994. (WebCore::TextRunIterator::operator!=):
  10995. (WebCore::GraphicsContext::drawBidiText): Added. Applies the Unicode
  10996. Bidi Algorithm to the text and draws the resulting unidirectional runs
  10997. in the right order and with the right directionality.
  10998. * platform/graphics/GraphicsContext.h:
  10999. * platform/win/PopupMenuWin.cpp:
  11000. (WebCore::PopupMenu::paint): Replaced the use of a character buffer
  11001. and BidiReorderCharacters with calling to drawBidiText(). Removed special
  11002. handling of '-webkit-rtl-ordering:visual' because that CSS property is an
  11003. implementation detail of WebCore's visual Hebrew support, and the UA stylesheet
  11004. sets it to 'logical' for this form control. Authors can specify the ordering
  11005. using the 'direction' and 'unicode-bidi' properties.
  11006. * platform/win/WebCoreTextRenderer.cpp:
  11007. (WebCore::isOneLeftToRightRun): Added. Checks if the text consists of
  11008. a single left-to-right run, in which case it requires no bidi processing.
  11009. (WebCore::doDrawTextAtPoint): Changed to call drawBidiText if the text
  11010. is not entirely left-to-right.
  11011. * rendering/RenderFileUploadControl.cpp:
  11012. (WebCore::RenderFileUploadControl::paintObject): Replaced the use of a
  11013. character buffer in BidiReorderCharacters with calling to drawBidiText().
  11014. Removed special handling of '-webkit-rtl-ordering:visual' for the same reason
  11015. stated above.
  11016. * rendering/RenderListBox.cpp:
  11017. (WebCore::RenderListBox::paintItemForeground): Ditto. Also changed the
  11018. run-rounding modes used when drawing to match those used when measuring.
  11019. 2007-07-23 Oliver Hunt <oliver@apple.com>
  11020. Reviewed by Steve.
  11021. Windows build fix, remove superfluous !
  11022. * page/EventHandler.cpp:
  11023. (WebCore::EventHandler::keyEvent):
  11024. 2007-07-23 Adam Roben <aroben@apple.com>
  11025. Add an assignment operator for BString that takes a BSTR
  11026. Reviewed by Geoff and Oliver.
  11027. * platform/win/BString.cpp:
  11028. (WebCore::BString::operator=):
  11029. * platform/win/BString.h:
  11030. 2007-07-23 Justin Garcia <justin.garcia@apple.com>
  11031. Reviewed by Geoff.
  11032. <rdar://problem/5354455> Word selection when right-clicking can be confusing (14728)
  11033. * page/EventHandler.cpp:
  11034. (WebCore::EventHandler::sendContextMenuEvent): In non-editable content,
  11035. only do word selection over text. In editable content, we will continue
  11036. to select images, line breaks and other elements on right-clicks, to match
  11037. TextEdit. For now, in editable content, we'll live with the cases where
  11038. positionForPoint creates selections that aren't underneath the mouse. These
  11039. aren't regressions because we've always done word selection on right clicks
  11040. in editable content.
  11041. 2007-07-23 Anders Carlsson <andersca@apple.com>
  11042. Reviewed by Oliver.
  11043. <rdar://problem/5335354>
  11044. REGRESSION(r21359-r21368): Can't edit inside RTEF editable region
  11045. If Document::open is called and there's a pending load that has not yet started,
  11046. that load should be cancelled.
  11047. * dom/Document.cpp:
  11048. (WebCore::Document::open):
  11049. 2007-07-23 Timothy Hatcher <timothy@apple.com>
  11050. Reviewed by Hyatt.
  11051. <rdar://problem/5242145> REGRESSION: Clicking on symbol in documentation often doesn't scroll to symbol
  11052. A renderer for the anchor wasn't always available at the time parsing finished. So we need
  11053. to bail out of gotoAnchor if stylesheets are pending and remember to call gotoAnchor later
  11054. once all of the pending stylesheets load.
  11055. * dom/Document.cpp:
  11056. (WebCore::Document::Document): Initialize m_gotoAnchorNeededAfterStylesheetsLoad to false.
  11057. (WebCore::Document::stylesheetLoaded): If we have no more pending stylesheets, call gotoAnchor if needed.
  11058. * dom/Document.h:
  11059. (WebCore::Document::gotoAnchorNeededAfterStylesheetsLoad): New method.
  11060. (WebCore::Document::setGotoAnchorNeededAfterStylesheetsLoad): Ditto.
  11061. * loader/FrameLoader.cpp:
  11062. (WebCore::FrameLoader::gotoAnchor): Bail early if the document still has pending stylesheets.
  11063. * loader/FrameLoader.h: Make gotoAnchor() public.
  11064. 2007-07-23 John Sullivan <sullivan@apple.com>
  11065. Reviewed by Darin
  11066. - fixed <rdar://problem/5327887> Printing Mail note (or Safari page) with misspelled word prints red underline
  11067. * rendering/InlineTextBox.cpp:
  11068. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
  11069. When printing, bail out without doing any work. Also moved a couple of lines down below another early
  11070. bailout since they were pointless above it.
  11071. 2007-07-23 Oliver Hunt <oliver@apple.com>
  11072. Reviewed by Darin.
  11073. <rdar://problem/5353577> WebKit key event behaviour needs to better match other browsers keyevent behaviour
  11074. <rdar://problem/5352152> REGRESSION (24399-24479): Pressing Enter in a search field at apple.com no longer starts a search with Korean IM
  11075. <rdar://problem/5352649> WebKit should send keyDown event on autorepeat keyDowns
  11076. http://bugs.webkit.org/show_bug.cgi?id=14690
  11077. Perform Input Method call first so that our behaviour is determined by whether or not
  11078. the input method has actually handle the event, rather than by making guesses based
  11079. on the existences of marked text. This fixes issues with IMs that have side effects
  11080. even on events they do not handle.
  11081. Refactored the code in order to improve clarity given the hoisting required by performing
  11082. the IM call earlier.
  11083. * page/EventHandler.cpp:
  11084. (WebCore::EventHandler::keyEvent):
  11085. 2007-07-23 Anders Carlsson <andersca@apple.com>
  11086. Reviewed by Darin.
  11087. <rdar://problem/5045711>
  11088. http://bugs.webkit.org/show_bug.cgi?id=12938
  11089. Google calendar settings page crashes
  11090. Move handling of checked radio buttons to a new class, HTMLFormElement::CheckedRadioButtons.
  11091. Each <form> element has an instance of this class. For radio buttons without a containing
  11092. form, the document has an instance of HTMLFormElement::CheckedRadioButtons where the
  11093. state of those radio buttons will be stored.
  11094. be stored.
  11095. This also fixes another bug where removing a checked radio button that does not have a
  11096. containing form would not remove the radio button from the checked radio buttons map,
  11097. which could lead to a crash due to a dangling pointer.
  11098. * dom/Document.cpp:
  11099. (WebCore::Document::~Document):
  11100. * dom/Document.h:
  11101. (WebCore::Document::checkedRadioButtons):
  11102. * html/HTMLFormElement.cpp:
  11103. (WebCore::HTMLFormElement::registerFormElement):
  11104. (WebCore::HTMLFormElement::removeFormElement):
  11105. (WebCore::HTMLFormElement::CheckedRadioButtons::didCheckButton):
  11106. (WebCore::HTMLFormElement::CheckedRadioButtons::checkedButtonForGroup):
  11107. (WebCore::HTMLFormElement::CheckedRadioButtons::removeButtonIfChecked):
  11108. * html/HTMLFormElement.h:
  11109. (WebCore::HTMLFormElement::checkedRadioButtons):
  11110. * html/HTMLGenericFormElement.cpp:
  11111. (WebCore::HTMLGenericFormElement::insertedIntoTree):
  11112. * html/HTMLInputElement.cpp:
  11113. (WebCore::HTMLInputElement::~HTMLInputElement):
  11114. (WebCore::checkedRadioButtons):
  11115. (WebCore::HTMLInputElement::isKeyboardFocusable):
  11116. (WebCore::HTMLInputElement::setInputType):
  11117. (WebCore::HTMLInputElement::parseMappedAttribute):
  11118. (WebCore::HTMLInputElement::setChecked):
  11119. (WebCore::HTMLInputElement::preDispatchEventHandler):
  11120. (WebCore::HTMLInputElement::willMoveToNewOwnerDocument):
  11121. * manual-tests/remove-form-node-with-radio-buttons-crash.html: Added.
  11122. 2007-07-23 David Hyatt <hyatt@apple.com>
  11123. Fix for 5350587, hang in iExploder text 8101. The code that painted outlines for continuations was buggy
  11124. in that it assumed the chain was always inline-block-inline, but this is only true for the innermost chained
  11125. continuation. To make this more robust, we always just use the inline's containing block's containing block,
  11126. which should be guaranteed to enclose all renderers in the continuation chain. In addition, there is now a
  11127. null check (to guarantee no more hangs) and an assert (to check if we hit this situation again where the block
  11128. used to paint does not properly enclose the continuation chain).
  11129. Reviewed by beth
  11130. fast/inline/outline-continuation.html
  11131. * rendering/RenderBlock.cpp:
  11132. (WebCore::RenderBlock::paintContinuationOutlines):
  11133. * rendering/InlineFlowBox.cpp:
  11134. (WebCore::RenderInline::paint):
  11135. 2007-07-22 Holger Hans Peter Freyther <zecke@selfish.org>
  11136. Reviewed by Adam.
  11137. WARNING: NO TEST CASES ADDED OR CHANGED
  11138. Add the WebKit/Gtk API to the buildsystem, ask qmake to create a
  11139. pkg-config file and install headers and libraries.
  11140. Start to emit signals from FrameLoaderClientGdk, hide the kit Frame
  11141. inside the the FrameLoaderClientGdk.
  11142. Move ChromeClientGdk to WebKit/gtk/WebCoreSupport
  11143. * WebCore.pro:
  11144. * loader/gdk/FrameLoaderClientGdk.cpp:
  11145. * loader/gdk/FrameLoaderClientGdk.h:
  11146. * platform/gdk/ChromeClientGdk.h: Removed.
  11147. * platform/gdk/FrameGdk.cpp: Remove code not belonging here
  11148. * platform/gdk/FrameGdk.h:
  11149. * platform/gdk/ScrollViewGdk.cpp: The gdkDrawable won't exist at that time and it is fine
  11150. * platform/gdk/TemporaryLinkStubs.cpp: Removed ChromeClientGdk stubs
  11151. 2007-07-22 Maciej Stachowiak <mjs@apple.com>
  11152. Reviewed by Adam.
  11153. <rdar://problem/5353174> REGRESSION: 1% JavaScript performance regression fro Window refactoring (14717)
  11154. http://bugs.webkit.org/show_bug.cgi?id=14717
  11155. * bindings/js/kjs_window.cpp:
  11156. * bindings/js/kjs_window.h:
  11157. (KJS::Window::impl): inlined
  11158. * page/DOMWindow.cpp:
  11159. * page/DOMWindow.h:
  11160. (WebCore::DOMWindow::frame): inlined
  11161. 2007-07-22 Darin Adler <darin@apple.com>
  11162. * platform/ContextMenu.cpp: Added missing include.
  11163. 2007-07-22 Sam Weinig <sam@webkit.org>
  11164. Reviewed by Darin.
  11165. Fix for http://bugs.webkit.org/show_bug.cgi?id=14682
  11166. REGRESSION(24285-24399): alerts do not appear at W3C RTL test page
  11167. Test: fast/dom/Window/window-function-name-getter-precedence.html
  11168. * bindings/js/JSDOMWindowCustom.cpp:
  11169. (WebCore::JSDOMWindow::customGetOwnPropertySlot): Make sure to return functions
  11170. before the custom name getter.
  11171. 2007-07-22 Darin Adler <darin@apple.com>
  11172. Reviewed by Adam.
  11173. - fix <rdar://problem/5353263> ContextMenuItem and ContextMenu objects leaking (seen on buildbot)
  11174. * platform/ContextMenu.cpp:
  11175. (WebCore::separatorItem): Return an auto_ptr instead of a raw pointer, since this function
  11176. creates an object that's the caller's responsibility to delete.
  11177. (WebCore::createAndAppendFontSubMenu): Create the context menu on the stack, not the heap,
  11178. since setSubMenu does not take ownership, and hence the objects were leaking.
  11179. (WebCore::createAndAppendSpellingAndGrammarSubMenu): Ditto.
  11180. (WebCore::createAndAppendSpellingSubMenu): Ditto.
  11181. (WebCore::createAndAppendSpeechSubMenu): Ditto.
  11182. (WebCore::createAndAppendWritingDirectionSubMenu): Ditto.
  11183. 2007-07-22 Darin Adler <darin@apple.com>
  11184. Reviewed by Kevin Decker.
  11185. - fix <rdar://problem/5126394> REGRESSION: Crash after clicking back button in test application (13250)
  11186. http://bugs.webkit.org/show_bug.cgi?id=13250
  11187. * bindings/objc/WebScriptObject.mm:
  11188. (_didExecute): Removed unnecessary check for isValid() since the _rootObject method already
  11189. takes care of that check.
  11190. (-[WebScriptObject _imp]): Made this return 0 if there is not a valid rootObject.
  11191. (-[WebScriptObject _isSafeScript]): Made this always return false if there is not a valid
  11192. rootObject, eliminating the need to check _rootObject for nil if the code is checking _isSafeScript.
  11193. (-[WebScriptObject callWebScriptMethod:withArguments:]): Removed check of _rootObject, since it's
  11194. immediately followed by a check of _isSafeScript. Removed awkward conversion of name from NSString *
  11195. to KJS::Identifier and did it using WebCore::String instead -- makes it clear that there's no
  11196. arbitrary JavaScript execution after _isSafeScript and before _imp, so we don't need to null-check
  11197. the _imp pointer. Added a second check of _isSafeScript after calling get to get the function
  11198. object, since arbitrary changes could occur in there, including navigation to a new frame.
  11199. This also takes care of null checking the second call to _imp.
  11200. (-[WebScriptObject evaluateWebScript:]): Removed check of _rootObject, since it's
  11201. immediately followed by a check of _isSafeScript. Removed awkward conversion of script from NSString *
  11202. to KJS::Identifier and did it using WebCore::String instead -- makes it clear that there's no
  11203. arbitrary JavaScript execution after _isSafeScript and before _imp, so we don't need to null-check
  11204. the _imp pointer.
  11205. (-[WebScriptObject setValue:forKey:]): Removed check of _rootObject, since it's
  11206. immediately followed by a check of _isSafeScript. Removed awkward conversion of key from NSString *
  11207. to KJS::Identifier and did it using WebCore::String instead -- makes it clear that there's no
  11208. arbitrary JavaScript execution after _isSafeScript and before _imp, so we don't need to null-check
  11209. the _imp pointer.
  11210. (-[WebScriptObject valueForKey:]): Ditto.
  11211. (-[WebScriptObject removeWebScriptKey:]): Ditto.
  11212. (-[WebScriptObject stringRepresentation]): Removed check of _rootObject, since it's
  11213. immediately followed by a check of _isSafeScript. Removed unnecessary local variable
  11214. and const_cast from the call to the _imp method.
  11215. (-[WebScriptObject webScriptValueAtIndex:]): Removed check of _rootObject, since it's
  11216. immediately followed by a check of _isSafeScript.
  11217. (-[WebScriptObject setWebScriptValueAtIndex:value:]): Ditto.
  11218. (-[WebScriptObject JSObject]): Ditto.
  11219. 2007-07-22 Darin Adler <darin@apple.com>
  11220. Reviewed by Anders Carlsson and John Sullivan.
  11221. - speculative fix for <rdar://problem/5337500> CrashTracer: [USER] 4 crashes in Mail
  11222. at WebCore::HTMLImageElement::isURLAttribute(WebCore::Attribute*) const
  11223. * editing/markup.cpp: Added AttributeChange class.
  11224. (WebCore::completeURLs): Changed function so that all the URL completion is done in
  11225. a separate pass after finding all the URL attributes. This is safer, since actually
  11226. applying an attribute change could have any arbitrary effect on the document; it's
  11227. tricky to iterate a document while it's being modified and we don't have the checks
  11228. here that would be needed to make that work in pathological cases.
  11229. 2007-07-18 Darin Adler <darin@apple.com>
  11230. Reviewed by Adam.
  11231. - fix <rdar://problem/5350604> REGRESSION: Crash in inspector controller code after
  11232. clicking back button in test application (14337)
  11233. * page/InspectorController.cpp: (WebCore::InspectorController::addScriptResource):
  11234. Replace an assertion that was firing with some code that at least doesn't immediately crash.
  11235. 2007-07-22 Darin Adler <darin@apple.com>
  11236. Reviewed by Anders.
  11237. - improve the fix for <rdar://problem/5298816> Crash redirecting message,
  11238. in -[SharedBufferData initWithSharedBuffer:]; fixes a crash seen on the buildbot
  11239. * loader/DocLoader.cpp: (WebCore::DocLoader::~DocLoader): Call setDocLoader(0) on all
  11240. the resources so they don't try to use a stale DocLoader pointer later.
  11241. 2007-07-21 Mitz Pettel <mitz@webkit.org>
  11242. Reviewed by Sam Weinig.
  11243. - fixed typos and markup in the following manual tests
  11244. * manual-tests/accidental-strict-mode.html:
  11245. * manual-tests/caretScrolling.html:
  11246. * manual-tests/close-on-closedWindow.html:
  11247. 2007-07-21 Sam Weinig <sam@webkit.org>
  11248. Reviewed by Mitz.
  11249. Patch for <rdar://problem/5352013>
  11250. The computed style for background-position is wrong for the initial value
  11251. - Set the initial value for background-position-x and background-position-y (and
  11252. therefore background-position) to 0% instead of 0px.
  11253. * rendering/RenderStyle.cpp:
  11254. (WebCore::BackgroundLayer::BackgroundLayer):
  11255. * rendering/RenderStyle.h:
  11256. (WebCore::RenderStyle::initialBackgroundXPosition):
  11257. (WebCore::RenderStyle::initialBackgroundYPosition):
  11258. 2007-07-20 Brady Eidson <beidson@apple.com>
  11259. Reviewed by Adele and Andersca
  11260. <rdar://problem/5336105> - WebBackForwardList created from scratch is unusable (always leads to crash)
  11261. * WebCore.exp: Export the BackForwardList c'tor so WebKit can create one explicitly
  11262. 2007-07-20 Sam Weinig <sam@webkit.org>
  11263. Reviewed by Beth Dakin.
  11264. Fix for <rdar://problem/5351901>
  11265. Computed value of border-position should return a CSSValueList, not a CSSPrimitiveValue
  11266. - Return a space separated CSSValueList for background-position
  11267. instead of a CSSPrimitiveValue (string type).
  11268. - Remove the "else if (renderer)" case as it never returns a different
  11269. value than just calling length.value().
  11270. - Make background-position-x and background-position-y behave like
  11271. background-position. Fix case of initial value return 'auto' instead
  11272. of 0.
  11273. Test: fast/css/getComputedStyle-background-position.html
  11274. * css/CSSComputedStyleDeclaration.cpp:
  11275. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  11276. 2007-07-20 Geoffrey Garen <ggaren@apple.com>
  11277. Build fix for non-Mac platforms.
  11278. * bindings/js/GCController.cpp:
  11279. 2007-07-20 Anders Carlsson <andersca@apple.com>
  11280. Reviewed by Darin.
  11281. If the style sheet requested is a user style sheet, don't store it in the DocLoader's resource map;
  11282. user style sheets can outlive their doc loaders.
  11283. * loader/DocLoader.cpp:
  11284. (WebCore::DocLoader::requestCSSStyleSheet):
  11285. 2007-07-20 Justin Garcia <justin.garcia@apple.com>
  11286. Reviewed by Darin.
  11287. <rdar://problem/5109817> Ctrl-click on word in non-editable text doesn't select it
  11288. * bridge/EditorClient.h: Removed a client method for enabling/disabling
  11289. word selection on right clicks.
  11290. * editing/Editor.cpp: Ditto.
  11291. * editing/Editor.h:
  11292. * page/EventHandler.cpp:
  11293. (WebCore::EventHandler::sendContextMenuEvent): Select the
  11294. word underneath the mouse regardless of whether its editable.
  11295. 2007-07-20 Ada Chan <adachan@apple.com>
  11296. Reviewed by Darin and Adam.
  11297. <rdar://problem/5338385> Fixed infinite loop in ScrollView::scrollRectIntoViewRecursively().
  11298. Also removed an unused local variable.
  11299. * platform/win/ScrollViewWin.cpp:
  11300. (WebCore::ScrollView::scrollRectIntoViewRecursively):
  11301. 2007-07-21 Antti <antti@apple.com>
  11302. Reviewed by Darin.
  11303. Fix <rdar://problem/5305788>
  11304. REGRESSION: Safari sometimes loads IE-specific stylesheet on www.apaema.org
  11305. Pick the preferred style sheet set based on document order even if the sheet is still loading. Previously
  11306. the set was chosen based on which stylesheet happened to arrive first. Just fix the problem at hand
  11307. and resist urge to start refactoring this function.
  11308. * dom/Document.cpp:
  11309. (WebCore::Document::recalcStyleSelector):
  11310. 2007-07-20 Sam Weinig <sam@webkit.org>
  11311. Reviewed by Darin.
  11312. Fix for <rdar://problem/5351252>
  11313. Computed value for -webkit-background-size and border-spacing
  11314. should be space separated CSSValueLists.
  11315. * css/CSSComputedStyleDeclaration.cpp:
  11316. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  11317. 2007-07-20 Geoffrey Garen <ggaren@apple.com>
  11318. Suggested by Darin Adler.
  11319. Slight tweak to my last commit: changed gcController() to return a
  11320. reference instead of a pointer.
  11321. 2007-07-20 Geoffrey Garen <ggaren@apple.com>
  11322. Reviewed by Darin Adler.
  11323. Fixed http://bugs.webkit.org/show_bug.cgi?id=12900 Page tear-down
  11324. forces garbage collection once per frame
  11325. Also fixed <rdar://problem/5286989> GC on window close does not always
  11326. bring the JS object count down to 0
  11327. Implemented a 0-delay GC timer in WebCore. Instead of forcing GC
  11328. immediately, code that thinks it has created a lot of garbage starts
  11329. the timer. This has two advantages:
  11330. 1) Multiple GCs can coalesce. In my pathological test case, this
  11331. improves performance by an order of magnitude.
  11332. 2) Conservative marking is less likely to keep alive important dead
  11333. objects, like the window object, because the stack is small and free of
  11334. JS processing when the timer fires.
  11335. Added GCController.h/.cpp, sometimes blindly:
  11336. * WebCore.pro:
  11337. * WebCore.vcproj/WebCore.vcproj:
  11338. * WebCore.xcodeproj/project.pbxproj:
  11339. * WebCoreSources.bkl:
  11340. Added singleton that implements GC on a 0-delay timer:
  11341. * bindings/js/GCController.h: Added.
  11342. * bindings/js/GCController.cpp: Added.
  11343. Changed Collector::collect() calls below to call to the singleton:
  11344. * bindings/js/kjs_proxy.cpp:
  11345. (WebCore::KJSProxy::~KJSProxy):
  11346. * bindings/js/kjs_window.cpp:
  11347. (KJS::Window::clear):
  11348. * history/CachedPage.cpp:
  11349. (WebCore::CachedPage::clear):
  11350. * page/Frame.cpp:
  11351. (WebCore::Frame::~Frame): Removed previous slightly hackish attempt to
  11352. avoid conservative marking of the window object.
  11353. 2007-07-20 Anders Carlsson <andersca@apple.com>
  11354. Reviewed by Darin.
  11355. <rdar://problem/5298816> Crash redirecting message, in -[SharedBufferData initWithSharedBuffer:]
  11356. Have cached resources keep track of what DocLoader they belong to. This is so that they can remove themselves
  11357. from the DocLoader's resource map when they're destroyed when the cache is disabled.
  11358. * html/HTMLImageLoader.cpp:
  11359. (WebCore::HTMLImageLoader::updateFromElement):
  11360. * loader/Cache.cpp:
  11361. (WebCore::Cache::requestResource):
  11362. * loader/CachedResource.cpp:
  11363. (WebCore::CachedResource::CachedResource):
  11364. (WebCore::CachedResource::~CachedResource):
  11365. * loader/CachedResource.h:
  11366. (WebCore::CachedResource::setDocLoader):
  11367. 2007-07-20 Brady Eidson <beidson@apple.com>
  11368. Reviewed by Darin
  11369. <rdar://problem/5153021> and http://bugs.webkit.org/show_bug.cgi?id=13364
  11370. The issue here was that if a document in a subframe was loaded from a URL, but then a script did
  11371. document.open or document.write during parsing, we would overwrite the document's url and baseurl
  11372. with the parent frame's url. WRONG!
  11373. * dom/Document.cpp:
  11374. (WebCore::Document::open): Only set the url and baseURL in document.open if they are still empty or about:blank
  11375. 2007-07-20 Maciej Stachowiak <mjs@apple.com>
  11376. Reviewed by Oliver.
  11377. <rdar://problem/5326303> REGRESSION: blur event fires upon navigating away from a page with focused element
  11378. The proximate cause was the recent change to keep focus on the
  11379. WebHTMLView when switching views. But the reason this happend was
  11380. that didCommitLoadForFrame got called at a time when the new view
  11381. was in place, but the old document was still there. This was a
  11382. longstanding problem with the delegate, and fixing it cleans it
  11383. up.
  11384. * loader/FrameLoader.cpp:
  11385. (WebCore::FrameLoader::begin): Don't send dispatchWindowObjectAvailable if
  11386. caller asked not to (this is to allow order of delegates to be the same).
  11387. (WebCore::FrameLoader::transitionToCommitted): Don't emit didCommitLoadForFrame here.
  11388. (WebCore::FrameLoader::receivedFirstData): Instead do it here, after calling begin(),
  11389. so the new document is set up.
  11390. * loader/FrameLoader.h: Add new optional parameter to begin().
  11391. 2007-07-20 Sam Weinig <sam@webkit.org>
  11392. Reviewed by Beth Dakin.
  11393. Update for fix for http://bugs.webkit.org/show_bug.cgi?id=14646
  11394. <rdar://problem/5340449>
  11395. - Return a CSSValueList instead of CSSValue (with a Pair type) for
  11396. computed values of border radii.
  11397. - Add ability to CSSValueList to print out a space separated list
  11398. instead of a comma.
  11399. - Add border radii to list of computed styles that we create and can
  11400. iterate over.
  11401. * css/CSSComputedStyleDeclaration.cpp:
  11402. (WebCore::):
  11403. (WebCore::getBorderRadiusCornerValue):
  11404. * css/CSSValueList.cpp:
  11405. (WebCore::CSSValueList::CSSValueList):
  11406. (WebCore::CSSValueList::cssText):
  11407. * css/CSSValueList.h:
  11408. 2007-07-20 Mitz Pettel <mitz@webkit.org>
  11409. Reviewed by Darin.
  11410. - http://bugs.webkit.org/show_bug.cgi?id=14626
  11411. Make bidiReorderCharacters independent of RenderBlock
  11412. No layout test possible because there is no change in functionality.
  11413. This patch generalizes RenderBlock's implementation of the Unicode Bidi Algorithm
  11414. in the form of the BidiResolver class template. An instance of a BidiResolver class
  11415. can generate a sequence of runs with corresponding level and override attributes,
  11416. given a range specified by start and end iterators. The iterators can optionally
  11417. call back to the BidiResolver instance to push or pop explicit embedding levels.
  11418. The patch replaces BidiState with a specialization of BidiResolver that uses
  11419. BidiIterators and generates BidiRuns. It also eliminates some of the file statics
  11420. in bidi.cpp, instead relying on BidiResolver data members.
  11421. The patch makes the BidiContext part of BidiStatus, thus making BidiStatus the
  11422. entire state that needs to be saved and restored in order to restart the bidi
  11423. algorithm at a given point. Previously, you had to keep and pass around two
  11424. separate structures, namely the BidiContext and the BidiStatus.
  11425. bidiReorderCharacters is implemented without relying on render objects, using
  11426. a BidiResolver specialization that uses simple character buffer iterators and
  11427. simple run structures.
  11428. * WebCore.pro:
  11429. * WebCore.vcproj/WebCore.vcproj:
  11430. * WebCore.xcodeproj/project.pbxproj:
  11431. * WebCoreSources.bkl:
  11432. * platform/BidiContext.cpp: Added.
  11433. (WebCore::operator==):
  11434. * platform/BidiContext.h: Added.
  11435. (WebCore::BidiContext::BidiContext):
  11436. (WebCore::BidiContext::ref):
  11437. (WebCore::BidiContext::deref):
  11438. (WebCore::BidiContext::parent):
  11439. (WebCore::BidiContext::level):
  11440. (WebCore::BidiContext::dir):
  11441. (WebCore::BidiContext::override):
  11442. * platform/BidiReorderCharacters.cpp: Added.
  11443. (WebCore::CharacterBufferIterator::CharacterBufferIterator):
  11444. (WebCore::CharacterBufferIterator::offset):
  11445. (WebCore::CharacterBufferIterator::increment):
  11446. (WebCore::CharacterBufferIterator::atEnd):
  11447. (WebCore::CharacterBufferIterator::current):
  11448. (WebCore::CharacterBufferIterator::direction):
  11449. (WebCore::CharacterBufferIterator::operator==):
  11450. (WebCore::CharacterBufferIterator::operator!=):
  11451. (WebCore::::appendRun):
  11452. (WebCore::bidiReorderCharacters):
  11453. * platform/BidiReorderCharacters.h: Added.
  11454. * platform/BidiResolver.h: Added.
  11455. (WebCore::BidiStatus::BidiStatus):
  11456. (WebCore::operator==):
  11457. (WebCore::operator!=):
  11458. (WebCore::BidiCharacterRun::BidiCharacterRun):
  11459. (WebCore::BidiCharacterRun::reversed):
  11460. (WebCore::BidiCharacterRun::dirOverride):
  11461. (WebCore::BidiCharacterRun::next):
  11462. (WebCore::BidiResolver::):
  11463. (WebCore::BidiResolver::context):
  11464. (WebCore::BidiResolver::setContext):
  11465. (WebCore::BidiResolver::setLastDir):
  11466. (WebCore::BidiResolver::setLastStrongDir):
  11467. (WebCore::BidiResolver::setEorDir):
  11468. (WebCore::BidiResolver::dir):
  11469. (WebCore::BidiResolver::setDir):
  11470. (WebCore::BidiResolver::status):
  11471. (WebCore::BidiResolver::setStatus):
  11472. (WebCore::BidiResolver::adjustEmbedding):
  11473. (WebCore::BidiResolver::setAdjustEmbedding):
  11474. (WebCore::BidiResolver::firstRun):
  11475. (WebCore::BidiResolver::lastRun):
  11476. (WebCore::BidiResolver::runCount):
  11477. (WebCore::::embed):
  11478. (WebCore::::deleteRuns):
  11479. (WebCore::::reverseRuns):
  11480. (WebCore::::createBidiRunsForLine):
  11481. * platform/win/PopupMenuWin.cpp:
  11482. (WebCore::PopupMenu::paint):
  11483. * rendering/RenderBlock.h:
  11484. * rendering/RenderFileUploadControl.cpp:
  11485. (WebCore::RenderFileUploadControl::paintObject):
  11486. * rendering/RenderListBox.cpp:
  11487. (WebCore::RenderListBox::paintItemForeground):
  11488. * rendering/RootInlineBox.cpp:
  11489. (WebCore::RootInlineBox::childRemoved):
  11490. (WebCore::RootInlineBox::lineBreakBidiStatus):
  11491. (WebCore::RootInlineBox::setLineBreakInfo):
  11492. * rendering/RootInlineBox.h:
  11493. (WebCore::RootInlineBox::RootInlineBox):
  11494. * rendering/bidi.cpp:
  11495. (WebCore::BidiIterator::BidiIterator):
  11496. (WebCore::BidiState::deleteRuns):
  11497. (WebCore::operator==):
  11498. (WebCore::operator!=):
  11499. (WebCore::bidiNext):
  11500. (WebCore::bidiFirst):
  11501. (WebCore::BidiState::addRun):
  11502. (WebCore::appendRunsForObject):
  11503. (WebCore::BidiState::appendRun):
  11504. (WebCore::RenderBlock::constructLine):
  11505. (WebCore::RenderBlock::computeHorizontalPositionsForLine):
  11506. (WebCore::RenderBlock::computeVerticalPositionsForLine):
  11507. (WebCore::RenderBlock::bidiReorderLine):
  11508. (WebCore::buildCompactRuns):
  11509. (WebCore::RenderBlock::layoutInlineChildren):
  11510. (WebCore::RenderBlock::determineStartPosition):
  11511. (WebCore::RenderBlock::determineEndPosition):
  11512. (WebCore::RenderBlock::matchedEndLine):
  11513. (WebCore::RenderBlock::skipWhitespace):
  11514. * rendering/bidi.h:
  11515. (WebCore::BidiRun::BidiRun):
  11516. (WebCore::BidiRun::next):
  11517. 2007-07-20 Darin Adler <darin@apple.com>
  11518. Reviewed by John Sullivan.
  11519. - fix for <rdar://problem/5331723> <rdar://problem/5331723> Safari gives error
  11520. 103 for URLs that Adobe Lightroom's Preview feature produces, with ":1" in the hostname
  11521. Test: fast/loader/file-URL-with-port-number.html
  11522. * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::portAllowed):
  11523. Don't do any port blocking for file URLs.
  11524. 2007-07-20 Mitz Pettel <mitz@webkit.org>
  11525. Reviewed by Darin.
  11526. - fix http://bugs.webkit.org/show_bug.cgi?id=14689
  11527. REGRESSION (3.0.2-TOT): <select> menu items have incorrect background color
  11528. * manual-tests/item-background.html: Added.
  11529. * platform/PopupMenuClient.h:
  11530. * platform/graphics/Color.cpp:
  11531. (WebCore::blendComponent): Renamed the static method blend() to this.
  11532. (WebCore::Color::blend): Added. Compositing (in "normal" or "source over"
  11533. blend mode) B.blend(C) over A is equivalent to compositing C over the
  11534. result of compositing B over A.
  11535. (WebCore::Color::blendWithWhite): Changed for the above rename.
  11536. * platform/graphics/Color.h:
  11537. * platform/win/PopupMenuWin.cpp:
  11538. (WebCore::PopupMenu::paint): Changed to use itemBackgroundColor().
  11539. * rendering/RenderMenuList.cpp:
  11540. (WebCore::RenderMenuList::itemBackgroundColor): Added. Returns the color
  11541. that would result from overlaying the item's background color over the
  11542. menu's background color over solid white. Note that clientStyle() cannot
  11543. be used for the menu's background color, since background color is not
  11544. inherited by the inner block (the regression resulted from changing
  11545. clientStyle() to return the inner block's style), and that the color
  11546. returned from this method is guaranteed to be opaque.
  11547. * rendering/RenderMenuList.h:
  11548. * rendering/RenderTextControl.cpp:
  11549. (WebCore::RenderTextControl::itemBackgroundColor): Added.
  11550. * rendering/RenderTextControl.h:
  11551. 2007-07-20 Rob Buis <buis@kde.org>
  11552. Reviewed by Darin.
  11553. http://bugs.webkit.org/show_bug.cgi?id=14642
  11554. REGRESSION(r24064-24096): Reflection type effect in canvas tag broke
  11555. Do not stop the fill/stroke operation when encountering an empty path.
  11556. * html/CanvasRenderingContext2D.cpp:
  11557. (WebCore::CanvasRenderingContext2D::fill):
  11558. (WebCore::CanvasRenderingContext2D::stroke):
  11559. 2007-07-20 Lars Knoll <lars@trolltech.com>
  11560. Reviewed by Simon.
  11561. Remove some files that are not used anymore.
  11562. * platform/qt/FontCacheQt.cpp: Removed.
  11563. * platform/qt/FontDataQt.cpp: Removed.
  11564. * platform/qt/FontPlatformData.h: Removed.
  11565. * platform/qt/FontPlatformDataQt.cpp: Removed.
  11566. * platform/qt/GlyphPageTreeNodeQt.cpp: Removed.
  11567. 2007-07-20 Lars Knoll <lars@trolltech.com>
  11568. Reviewed by Simon.
  11569. use the correct font for spaces.
  11570. * platform/qt/FontQt.cpp:
  11571. (WebCore::generateComponents):
  11572. 2007-07-20 Lars Knoll <lars@trolltech.com>
  11573. Reviewed by Simon.
  11574. spaces where not correctly taken into account for both offsetForPosition and selectionRectForText. Because of that selections sort of worked in LTR text, but completely failed in RTL.
  11575. * platform/qt/FontQt.cpp:
  11576. (WebCore::TextRunComponent::isSpace):
  11577. (WebCore::TextRunComponent::TextRunComponent):
  11578. (WebCore::generateComponents):
  11579. (WebCore::Font::drawText):
  11580. (WebCore::Font::offsetForPosition):
  11581. (WebCore::Font::selectionRectForText):
  11582. 2007-07-20 Lars Knoll <lars@trolltech.com>
  11583. Reviewed by Simon.
  11584. fix up some smaller issues in selection handling. It's still not perfect and selections in mixed rtl/ltr text are still broken, but it's getting there.
  11585. * platform/qt/FontQt.cpp:
  11586. (WebCore::Font::offsetForPosition):
  11587. (WebCore::cursorToX):
  11588. (WebCore::Font::selectionRectForText):
  11589. 2007-07-20 Lars Knoll <lars@trolltech.com>
  11590. Reviewed by Simon.
  11591. make offsetForPosition and selectionRectForText work correctly with small caps.
  11592. * platform/qt/FontQt.cpp:
  11593. (WebCore::Font::offsetForPosition):
  11594. (WebCore::cursorToX):
  11595. (WebCore::Font::selectionRectForText):
  11596. 2007-07-20 Lars Knoll <lars@trolltech.com>
  11597. Reviewed by Simon.
  11598. clip the drawn text correctly when needed.
  11599. * platform/qt/FontQt.cpp:
  11600. (WebCore::Font::drawText):
  11601. 2007-07-20 Lars Knoll <lars@trolltech.com>
  11602. Reviewed by Simon.
  11603. Fix offsetForPosition and selectionRectForText methods.
  11604. * platform/qt/FontQt.cpp:
  11605. (WebCore::Font::offsetForPosition):
  11606. (WebCore::cursorToX):
  11607. (WebCore::Font::selectionRectForText):
  11608. 2007-07-20 Lars Knoll <lars@trolltech.com>
  11609. Reviewed by Simon.
  11610. fix BiDi text rendering.
  11611. * platform/qt/FontQt.cpp:
  11612. (WebCore::TextRunComponent::TextRunComponent):
  11613. (WebCore::generateComponents):
  11614. (WebCore::Font::drawText):
  11615. 2007-07-20 Mark Rowe <mrowe@apple.com>
  11616. Reviewed by Maciej.
  11617. Move FTPDirectoryTokenizer::m_templateDocumentData to be a function-scoped static
  11618. to avoid creating a global initializer. This fixes the build for x86_64.
  11619. * loader/FTPDirectoryDocument.cpp:
  11620. (WebCore::FTPDirectoryTokenizer::loadDocumentTemplate):
  11621. 2007-07-19 Geoffrey Garen <ggaren@apple.com>
  11622. Reviewed by Maciej Stachowiak.
  11623. Fixed <rdar://problem/5347849> Cache eviction of live decoded data is
  11624. thrash-y
  11625. The solution here is to evict live decoded data based on a strict LRU
  11626. model. This should work well as a "scrolling window."
  11627. With this patch, I see a substantial reduction in CPU while scrolling
  11628. through a page with large images on a low memory system. Layout tests
  11629. pass.
  11630. * loader/Cache.h: Changed from a size-based vector of LRU lists to a
  11631. single LRU list in order to implement strict LRU.
  11632. * loader/CachedResource.h: Removed tracking of access count, since that
  11633. was the old cache eviction model.
  11634. 2007-07-19 Oliver Hunt <oliver@apple.com>
  11635. Reviewed by Maciej.
  11636. <rdar://problem/5076807> REGRESSION: Can't undo conversion of inline text (by hitting ESC)
  11637. <rdar://problem/5346167> DOM key events triggered during IME composition differ in webkit/mac vs all windows browsers
  11638. We now basically match the behaviour of IE/Windows. This means that during composition keydown and autorepeat
  11639. keys generate keydown events with a keyCode of 229, which correlates to the windows VK_PROCESSKEY message.
  11640. keyup events are generated with the keyCode of the actual key that was pressed.
  11641. The only difference is on the first keydown of a composition, in which IE will use keyCode == 229, and we will
  11642. send an event with the keyCode for the actual key that was pressed.
  11643. * page/EventHandler.cpp:
  11644. (WebCore::EventHandler::keyEvent):
  11645. * platform/PlatformKeyboardEvent.h:
  11646. (WebCore::PlatformKeyboardEvent::setWindowsKeyCode):
  11647. 2007-07-19 Brady Eidson <beidson@apple.com>
  11648. Reviewed by Sam
  11649. <rdar://problem/5134929> REGRESSION: Colon detected as delimiting an empty port is stripped
  11650. The fix for this was in KURL::parse() which had a slightly changed rule that would strip the colon if there
  11651. was no port.
  11652. An additional canonicalization fix was made in window.location.host to match the expected behavior of leaving
  11653. the colon in place - before this fix, if the colon was there but no port was there, we'd see the port as 0.
  11654. * bindings/js/kjs_window.cpp:
  11655. (KJS::Location::put): Call setHostAndPort instead of setHost and setPort seperately
  11656. * manual-tests/location-host-canonicalization.html: Added.
  11657. * platform/KURL.cpp:
  11658. (WebCore::KURL::setHostAndPort): Set the host and port as one string component then reparse the URL
  11659. (WebCore::KURL::parse): Change one line to consider the empty colon as part of the host name
  11660. * platform/KURL.h:
  11661. 2007-07-19 Anders Carlsson <andersca@apple.com>
  11662. Reviewed by Adam.
  11663. <rdar://problem/5288617>
  11664. Crash playing a very large QuickTime movie in Safari
  11665. <rdar://problem/5271174>
  11666. http://bugs.webkit.org/show_bug.cgi?id=14148
  11667. LEAK: Serious memory consumption and leak when loading QT movies.
  11668. Don't keep plugin stream data in memory since some plugin resources (like QT movies)
  11669. can be really big. If a plug-in wants data in a file, create a file and write data to it
  11670. as it's coming from the wire, instead of using a big buffer.
  11671. * loader/ResourceLoader.cpp:
  11672. (WebCore::ResourceLoader::ResourceLoader):
  11673. (WebCore::ResourceLoader::addData):
  11674. (WebCore::ResourceLoader::willStopBufferingData):
  11675. * loader/ResourceLoader.h:
  11676. (WebCore::ResourceLoader::setShouldBufferData):
  11677. * plugins/win/PluginStreamWin.cpp:
  11678. (WebCore::PluginStreamWin::PluginStreamWin):
  11679. (WebCore::PluginStreamWin::start):
  11680. (WebCore::PluginStreamWin::startStream):
  11681. (WebCore::PluginStreamWin::destroyStream):
  11682. (WebCore::PluginStreamWin::didReceiveData):
  11683. (WebCore::PluginStreamWin::didFinishLoading):
  11684. * plugins/win/PluginStreamWin.h:
  11685. 2007-07-19 Geoffrey Garen <ggaren@apple.com>
  11686. Reviewed by Darin Adler.
  11687. Fixed <rdar://problem/5348384> Restore old return value behavior of
  11688. stringByEvaluatingJavaScriptFromString
  11689. Return an empty string unless you have a string, boolean, or number
  11690. result.
  11691. * WebCore.xcodeproj/project.pbxproj:
  11692. * page/mac/WebCoreFrameBridge.mm:
  11693. (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  11694. 2007-07-19 Darin Adler <darin@apple.com>
  11695. Reviewed by Alexey.
  11696. - fix http://bugs.webkit.org/show_bug.cgi?id=14666
  11697. remove unused xxx-encodings.txt for all platforms other than Mac
  11698. * platform/gdk/gdk-encodings.txt: Removed.
  11699. * platform/win/win-encodings.txt: Removed.
  11700. * platform/wx/wx-encodings.txt: Removed.
  11701. * platform/character-sets.txt: Moved into mac subdirectory since it's only used for Mac; at some
  11702. point I hope to remove it completely.
  11703. * platform/make-charset-table.pl: Ditto.
  11704. * platform/mac/character-sets.txt: Copied from platform/character-sets.txt.
  11705. * platform/mac/make-charset-table.pl: Copied from platform/make-charset-table.pl.
  11706. * DerivedSources.make: Moved CharsetData.cpp into the MACOS section.
  11707. Changed the build rule to use Mac-specific paths for everything and got rid of
  11708. make variables.
  11709. * WebCore.vcproj/build-generated-files.sh: Removed code to set ENCODINGS_FILE and ENCODINGS_PREFIX.
  11710. * WebCore.xcodeproj/project.pbxproj: Ditto.
  11711. * make-generated-sources.sh: Ditto.
  11712. * Projects/gdk/webcore-gdk.bkl: Removed code to pass gdk-encodings.txt to make-generated-sources.sh.
  11713. * Projects/wx/webcore-wx.bkl: Ditto, but for wx-encodings.txt.
  11714. 2007-07-19 Antti <antti@apple.com>
  11715. Reviewed by Darin.
  11716. Fix <rdar://problem/5257371>
  11717. Dashcode Client crash when clicking on placemarks in Maps widget in WebCore::DeprecatedPtrListImpl::addIterator
  11718. FlexibleBoxes should never have inline children. Don't move children out from last remaining anonymous block.
  11719. * rendering/RenderBlock.cpp:
  11720. (WebCore::RenderBlock::removeChild): real fix
  11721. * rendering/RenderFlexibleBox.cpp:
  11722. (WebCore::RenderFlexibleBox::layoutVerticalBox): just to be sure, this is checked elsewhere too
  11723. 2007-07-19 Anders Carlsson <andersca@apple.com>
  11724. Reviewed by Darin.
  11725. <rdar://problem/5322268>
  11726. Safari Crash at http://www.exlibrisgroup.com/sfx_openurl.htm
  11727. Add a real copy constructor and assignment operator for CollectionInfo
  11728. so that the vectors in the cache maps will be copied correctly.
  11729. * html/HTMLCollection.cpp:
  11730. (WebCore::HTMLCollection::CollectionInfo::CollectionInfo):
  11731. (WebCore::HTMLCollection::CollectionInfo::swap):
  11732. * html/HTMLCollection.h:
  11733. (WebCore::HTMLCollection::CollectionInfo::operator=):
  11734. (WebCore::HTMLCollection::CollectionInfo::copyCacheMap):
  11735. 2007-07-19 David Hyatt <hyatt@apple.com>
  11736. Fix for 5237574, Colloquy main view does not size correctly. Make
  11737. sure to reset the baseilne when calculating a row's height/baseline, so
  11738. that old values don't stick around.
  11739. Reviewed by Tim Hatcher
  11740. * rendering/RenderTableSection.cpp:
  11741. (WebCore::RenderTableSection::calcRowHeight):
  11742. 2007-07-19 Antti <antti@apple.com>
  11743. Reviewed by John.
  11744. Fix <rdar://problem/5346697>
  11745. REGRESSION(r23773): Visibile children on invisible layer are not painted (fast/layers/layer-visibility.html fails)
  11746. Test m_hasVisibleContent instead of renderer()->style()->visibility().
  11747. This takes children into account too.
  11748. Regression spotted by Mitz.
  11749. * rendering/RenderLayer.cpp:
  11750. (WebCore::RenderLayer::paintLayer):
  11751. 2007-07-18 Oliver Hunt <oliver@apple.com>
  11752. Rubber stamped by maciej
  11753. Rollout patch from r24437.
  11754. * page/EventHandler.cpp:
  11755. (WebCore::EventHandler::keyEvent):
  11756. 2007-07-18 Oliver Hunt <oliver@apple.com>
  11757. Reviewed by Kevin M.
  11758. Fix for <rdar://problem/5346167> DOM key events triggered during
  11759. IME composition differ in webkit/mac vs all windows browsers
  11760. We no longer send DOM key events during IME composition. This behaviour
  11761. matches the behaviour of WebKit/Win.
  11762. * page/EventHandler.cpp:
  11763. (WebCore::EventHandler::keyEvent):
  11764. 2007-07-18 Sam Weinig <sam@webkit.org>
  11765. Reviewed by Oliver.
  11766. Fix for http://bugs.webkit.org/show_bug.cgi?id=14646
  11767. WebKit border radius properties are unavailable via JavaScript
  11768. Test: fast/dom/getComputedStyle-borderRadius.html
  11769. * css/CSSComputedStyleDeclaration.cpp:
  11770. (WebCore::getBorderRadiusCornerValue): Helper function that returns a single value if
  11771. width and the height of the corner radius are equal, and otherwise a pair.
  11772. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  11773. 2007-07-18 Anders Carlsson <andersca@apple.com>
  11774. Reviewed by Darin.
  11775. <rdar://problem/5262136> Double form repost alert going forward on britishairways.com
  11776. When checking if the request has changed and a new policy callback needs to be sent,
  11777. ignore the request headers. NSURLConnection in Leopard will always call willSendRequest,
  11778. with a request that was different from the one passed to -[NSURLConnection connectionWithRequest:]
  11779. (a few Accept headers are added).
  11780. * loader/FrameLoader.cpp:
  11781. (WebCore::FrameLoader::checkNavigationPolicy):
  11782. * platform/network/ResourceRequestBase.cpp:
  11783. (WebCore::equalIgnoringHeaderFields):
  11784. (WebCore::operator==):
  11785. * platform/network/ResourceRequestBase.h:
  11786. 2007-07-18 Anders Carlsson <andersca@apple.com>
  11787. Reviewed by Darin.
  11788. <rdar://problem/5340098>
  11789. http://bugs.webkit.org/show_bug.cgi?id=13366
  11790. REGRESSION (r10935): AOL beta music player doesn't play
  11791. The AOL beta music player has a typo, causing it to create an <embed"> element inside of
  11792. an <object> element
  11793. Because of this, it will not be treated as an embed tag, so its name will not be added
  11794. to the document's named item map. Furthermore, since the <object> contains a child that
  11795. is not a <param>, the object's name won't be added either.
  11796. The (somewhat ugly) fix is to add <object> to the named map only if it has <param> or
  11797. unknown elements as children.
  11798. * html/HTMLObjectElement.cpp:
  11799. (WebCore::HTMLObjectElement::updateDocNamedItem):
  11800. 2007-07-18 Timothy Hatcher <timothy@apple.com>
  11801. Reviewed by Adam.
  11802. <rdar://problem/5343767> Should have a way to disable the Web Inspector
  11803. This change facilitates the ability to turn the Web Inspector on and off.
  11804. Makes the InspectorClient be required to create a new Page. This also means that
  11805. InspectorController will never be NULL. Adds a new function on Page to test
  11806. if the inspector is enabled.
  11807. * WebCore.exp: New symbol for the Page constructor.
  11808. * WebCore.pro: Add InspectorClientGdk.cpp.
  11809. * WebCoreSources.bkl: ditto.
  11810. * html/HTMLDocument.cpp:
  11811. (WebCore::HTMLDocument::createTokenizer):
  11812. * loader/FrameLoader.cpp:
  11813. (WebCore::FrameLoader::detachFromParent): Don't null check the InspectorCOntroller.
  11814. (WebCore::FrameLoader::dispatchDidCommitLoad): Ditto.
  11815. (WebCore::FrameLoader::dispatchAssignIdentifierToInitialRequest): Ditto.
  11816. (WebCore::FrameLoader::dispatchWillSendRequest): Ditto.
  11817. (WebCore::FrameLoader::dispatchDidReceiveResponse): Ditto.
  11818. (WebCore::FrameLoader::dispatchDidReceiveContentLength): Ditto.
  11819. (WebCore::FrameLoader::dispatchDidFinishLoading): Ditto.
  11820. (WebCore::FrameLoader::dispatchDidLoadResourceFromMemoryCache): Ditto.
  11821. * page/ContextMenuController.cpp:
  11822. (WebCore::ContextMenuController::handleContextMenuEvent): Ask the InspectorController if it is enabled.
  11823. (WebCore::ContextMenuController::contextMenuItemSelected): Ditto.
  11824. * page/InspectorController.cpp:
  11825. (WebCore::InspectorController::enabled): Ask the Page's settings if developer extras are enabled.
  11826. (WebCore::InspectorController::inspect): Check if the InspectorController is enabled.
  11827. (WebCore::InspectorController::focusNode): Ditto.
  11828. (WebCore::InspectorController::highlight): Ditto.
  11829. (WebCore::InspectorController::hideHighlight): Ditto.
  11830. (WebCore::InspectorController::addMessageToConsole): Ditto.
  11831. (WebCore::InspectorController::attachWindow): Ditto.
  11832. (WebCore::InspectorController::detachWindow): Ditto.
  11833. (WebCore::InspectorController::windowScriptObjectAvailable): Ditto.
  11834. (WebCore::InspectorController::didCommitLoad): Ditto.
  11835. (WebCore::InspectorController::frameDetachedFromParent): Ditto.
  11836. (WebCore::InspectorController::didLoadResourceFromMemoryCache): Ditto.
  11837. (WebCore::InspectorController::identifierForInitialRequest): Ditto.
  11838. (WebCore::InspectorController::willSendRequest): Ditto.
  11839. (WebCore::InspectorController::didReceiveResponse): Ditto.
  11840. (WebCore::InspectorController::didReceiveContentLength): Ditto.
  11841. (WebCore::InspectorController::didFinishLoading): Ditto.
  11842. (WebCore::InspectorController::didFailLoading): Ditto.
  11843. * page/InspectorController.h:
  11844. * page/Page.cpp:
  11845. (WebCore::Page::Page): Require an InspectorClient.
  11846. (WebCore::Page::~Page): Always call pageDestroyed on the InspectorController.
  11847. (WebCore::Page::inspectorEnabled): Check the WebCore settings if the developer extras are enabled.
  11848. * page/Page.h:
  11849. * page/gdk/InspectorClientGdk.cpp: Added.
  11850. (WebCore::InspectorClientGdk::inspectorDestroyed): Empty stub calling notImplemented.
  11851. (WebCore::InspectorClientGdk::createPage): Ditto.
  11852. (WebCore::InspectorClientGdk::showWindow): Ditto.
  11853. (WebCore::InspectorClientGdk::closeWindow): Ditto.
  11854. (WebCore::InspectorClientGdk::attachWindow): Ditto.
  11855. (WebCore::InspectorClientGdk::detachWindow): Ditto.
  11856. (WebCore::InspectorClientGdk::highlight): Ditto.
  11857. (WebCore::InspectorClientGdk::hideHighlight): Ditto.
  11858. (WebCore::InspectorClientGdk::inspectedURLChanged): Ditto.
  11859. * page/gdk/InspectorClientGdk.h: Added.
  11860. * platform/graphics/svg/SVGImage.cpp:
  11861. (WebCore::SVGImage::dataChanged): Pass in a dummy InspectorClient.
  11862. * platform/graphics/svg/SVGImageEmptyClients.h:
  11863. (WebCore::SVGEmptyInspectorClient::~SVGEmptyInspectorClient): Empty dummy implementation.
  11864. (WebCore::SVGEmptyInspectorClient::inspectorDestroyed): Ditto.
  11865. (WebCore::SVGEmptyInspectorClient::createPage): Ditto.
  11866. (WebCore::SVGEmptyInspectorClient::showWindow): Ditto.
  11867. (WebCore::SVGEmptyInspectorClient::closeWindow): Ditto.
  11868. (WebCore::SVGEmptyInspectorClient::attachWindow): Ditto.
  11869. (WebCore::SVGEmptyInspectorClient::detachWindow): Ditto.
  11870. (WebCore::SVGEmptyInspectorClient::highlight): Ditto.
  11871. (WebCore::SVGEmptyInspectorClient::hideHighlight): Ditto.
  11872. (WebCore::SVGEmptyInspectorClient::inspectedURLChanged): Ditto.
  11873. 2007-07-18 Anders Carlsson <andersca@apple.com>
  11874. Make some headers private instead of project.
  11875. * WebCore.xcodeproj/project.pbxproj:
  11876. 2007-07-18 John Sullivan <sullivan@apple.com>
  11877. Reviewed by Maciej and Kevin Decker
  11878. - fixed <rdar://problem/5315926> REGRESSION: ~.4% PLT regression from r23949 (canonicalization change)
  11879. * loader/mac/LoaderNSURLExtras.m:
  11880. (canonicalURL):
  11881. Rolled out the fix for 5249730 that caused this regression. 5249730 is addressed a different way now.
  11882. 2007-07-18 Sam Weinig <sam@webkit.org>
  11883. Build fix.
  11884. * WebCore.xcodeproj/project.pbxproj:
  11885. * loader/gdk/FrameLoaderClientGdk.cpp:
  11886. (WebCore::FrameLoaderClientGdk::objectContentType):
  11887. * platform/graphics/win/ImageWin.cpp:
  11888. * platform/network/cf/ResourceResponseCFNet.cpp:
  11889. * platform/win/ClipboardWin.cpp:
  11890. (WebCore::createGlobalImageFileDescriptor):
  11891. 2007-07-18 Sam Weinig <sam@webkit.org>
  11892. Rubber-stamped by Adam Roben.
  11893. Rename MimeTypeRegistry to MIMETypeRegistry and xmlhttprequest to XMLHttpRequest
  11894. * WebCore.exp:
  11895. * WebCore.pro:
  11896. * WebCore.vcproj/WebCore.vcproj:
  11897. * bindings/js/JSXMLHttpRequest.cpp:
  11898. * bindings/js/kjs_binding.cpp:
  11899. * bindings/js/kjs_dom.cpp:
  11900. * dom/Document.cpp:
  11901. * html/HTMLFormElement.cpp:
  11902. (WebCore::HTMLFormElement::formData):
  11903. * html/HTMLObjectElement.cpp:
  11904. (WebCore::HTMLObjectElement::containsJavaApplet):
  11905. * loader/FrameLoader.cpp:
  11906. (WebCore::FrameLoader::requestObject):
  11907. * loader/mac/LoaderNSURLExtras.m:
  11908. (suggestedFilenameWithMIMEType):
  11909. * platform/MIMETypeRegistry.cpp: Copied from platform/MimeTypeRegistry.cpp.
  11910. (WebCore::initialiseSupportedImageMIMETypes):
  11911. (WebCore::initialiseMIMETypeRegistry):
  11912. (WebCore::MIMETypeRegistry::getMIMETypeForPath):
  11913. (WebCore::MIMETypeRegistry::isSupportedImageMIMEType):
  11914. (WebCore::MIMETypeRegistry::isSupportedImageResourceMIMEType):
  11915. (WebCore::MIMETypeRegistry::isSupportedNonImageMIMEType):
  11916. (WebCore::MIMETypeRegistry::isJavaAppletMIMEType):
  11917. (WebCore::MIMETypeRegistry::getSupportedImageMIMETypes):
  11918. (WebCore::MIMETypeRegistry::getSupportedImageResourceMIMETypes):
  11919. (WebCore::MIMETypeRegistry::getSupportedNonImageMIMETypes):
  11920. * platform/MIMETypeRegistry.h: Copied from platform/MimeTypeRegistry.h.
  11921. * platform/MimeTypeRegistry.cpp: Removed.
  11922. * platform/MimeTypeRegistry.h: Removed.
  11923. * platform/gdk/MIMETypeRegistryGdk.cpp: Copied from platform/gdk/MimeTypeRegistryGdk.cpp.
  11924. (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
  11925. * platform/gdk/MimeTypeRegistryGdk.cpp: Removed.
  11926. * platform/graphics/BitmapImage.cpp:
  11927. * platform/graphics/Image.cpp:
  11928. (WebCore::Image::supportsType):
  11929. * platform/mac/DragDataMac.mm:
  11930. * platform/mac/MIMETypeRegistryMac.mm: Copied from platform/mac/MimeTypeRegistryMac.mm.
  11931. (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
  11932. (WebCore::MIMETypeRegistry::getExtensionsForMIMEType):
  11933. (WebCore::MIMETypeRegistry::getPreferredExtensionForMIMEType):
  11934. * platform/mac/MimeTypeRegistryMac.mm: Removed.
  11935. * platform/mac/PasteboardMac.mm:
  11936. (WebCore::Pasteboard::writeImage):
  11937. * platform/qt/MIMETypeRegistryQt.cpp: Copied from platform/qt/MimeTypeRegistryQt.cpp.
  11938. (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
  11939. * platform/qt/MimeTypeRegistryQt.cpp: Removed.
  11940. * platform/win/MIMETypeRegistryWin.cpp: Copied from platform/win/MimeTypeRegistryWin.cpp.
  11941. (WebCore::MIMETypeRegistry::getPreferredExtensionForMIMEType):
  11942. (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
  11943. * platform/win/MimeTypeRegistryWin.cpp: Removed.
  11944. * rendering/RenderPartObject.cpp:
  11945. (WebCore::RenderPartObject::updateWidget):
  11946. * xml/xmlhttprequest.cpp: Removed.
  11947. * xml/xmlhttprequest.h: Removed.
  11948. * xml/XMLHttpRequest.cpp: Copied from xml/xmlhttprequest.cpp.
  11949. * xml/XMLHttpRequest.h: Copied from xml/xmlhttprequest.h.
  11950. 2007-07-18 Sam Weinig <sam@webkit.org>
  11951. Rubber-stamped by Adam Roben.
  11952. Rename csshelper.h, csshelper.cpp, cssparser.h, cssparser.cpp,
  11953. cssstyleselector.h, and cssstyleselector.cpp to be CamelCase.
  11954. * WebCore.pro:
  11955. * WebCore.vcproj/WebCore.vcproj:
  11956. * bindings/objc/DOM.mm:
  11957. * bindings/objc/DOMHTML.mm:
  11958. * css/CSSGrammar.y:
  11959. * css/CSSMediaRule.cpp:
  11960. * css/CSSMutableStyleDeclaration.cpp:
  11961. * css/CSSPrimitiveValue.cpp:
  11962. * css/CSSStyleSheet.cpp:
  11963. * css/MediaList.cpp:
  11964. * css/MediaQueryExp.cpp:
  11965. * css/csshelper.cpp: Removed.
  11966. * css/csshelper.h: Removed.
  11967. * css/CSSHelper.cpp: Copied from css/csshelper.cpp.
  11968. * css/CSSHelper.h: Copied from css/csshelper.h.
  11969. * css/cssparser.cpp: Removed.
  11970. * css/cssparser.h: Removed.
  11971. * css/CSSParser.cpp: Copied from css/cssparser.cpp.
  11972. * css/CSSParser.h: Copied from css/cssparser.h.
  11973. * css/cssstyleselector.cpp: Removed.
  11974. * css/cssstyleselector.h: Removed.
  11975. * css/CSSStyleSelector.cpp: Copied from css/cssstyleselector.cpp.
  11976. * css/CSSStyleSelector.h: Copied from css/cssstyleselector.h.
  11977. * dom/Document.cpp:
  11978. * dom/Element.cpp:
  11979. * dom/StyledElement.cpp:
  11980. * editing/ApplyStyleCommand.cpp:
  11981. * editing/markup.cpp:
  11982. * html/CanvasGradient.cpp:
  11983. * html/CanvasRenderingContext2D.cpp:
  11984. * html/CanvasStyle.cpp:
  11985. * html/HTMLAnchorElement.cpp:
  11986. * html/HTMLBaseElement.cpp:
  11987. * html/HTMLBodyElement.cpp:
  11988. * html/HTMLDocument.cpp:
  11989. * html/HTMLEmbedElement.cpp:
  11990. * html/HTMLFormElement.cpp:
  11991. * html/HTMLFrameElementBase.cpp:
  11992. * html/HTMLImageElement.cpp:
  11993. * html/HTMLImageLoader.cpp:
  11994. * html/HTMLLinkElement.cpp:
  11995. * html/HTMLObjectElement.cpp:
  11996. * html/HTMLOptGroupElement.cpp:
  11997. * html/HTMLOptionElement.cpp:
  11998. * html/HTMLSelectElement.cpp:
  11999. * html/HTMLTableElement.cpp:
  12000. * html/HTMLTablePartElement.cpp:
  12001. * html/HTMLTokenizer.cpp:
  12002. * ksvg2/css/SVGCSSParser.cpp:
  12003. * ksvg2/css/SVGCSSStyleSelector.cpp:
  12004. * ksvg2/svg/SVGAElement.cpp:
  12005. * ksvg2/svg/SVGClipPathElement.cpp:
  12006. * ksvg2/svg/SVGGradientElement.cpp:
  12007. * ksvg2/svg/SVGLength.cpp:
  12008. * ksvg2/svg/SVGMaskElement.cpp:
  12009. * ksvg2/svg/SVGStyledElement.cpp:
  12010. * ksvg2/svg/SVGUseElement.cpp:
  12011. * page/DOMWindow.cpp:
  12012. * page/mac/FrameMac.mm:
  12013. * page/mac/WebCoreFrameBridge.mm:
  12014. * rendering/HitTestResult.cpp:
  12015. * rendering/RenderObject.cpp:
  12016. * rendering/RenderStyle.cpp:
  12017. * rendering/RenderThemeMac.mm:
  12018. 2007-07-18 Brady Eidson <beidson@apple.com>
  12019. Rubberstamped by Adam
  12020. * platform/win/SharedBufferWin.cpp:
  12021. (WebCore::SharedBuffer::createWithContentsOfFile): Correct license on this newly checked in file from yesterday
  12022. 2007-07-18 Maciej Stachowiak <mjs@apple.com>
  12023. Reviewed by Oliver.
  12024. - fixed <rdar://problem/5340603> REGRESSION: javascript being written to the screen in Safari
  12025. Test Case: fast/tokenizer/badscript.html
  12026. * html/HTMLTokenizer.cpp:
  12027. (WebCore::HTMLTokenizer::parseTag): Don't apply our self-closing
  12028. <script> quirk in cases where the / appears in a mangled attribtue
  12029. value.
  12030. 2007-07-17 Peter Kasting <pkasting@google.com>
  12031. Reviewed by Hyatt.
  12032. http://bugs.webkit.org/show_bug.cgi?id=13618
  12033. Don't set link targets to "_blank" on middle-click; rely on the policy
  12034. delegate to do the right thing.
  12035. * html/HTMLAnchorElement.cpp:
  12036. (WebCore::HTMLAnchorElement::defaultEventHandler):
  12037. 2007-07-17 Oliver Hunt <oliver@apple.com>
  12038. Reviewed by Maciej.
  12039. Fix for <rdar://problem/4799967> Safari and other WebKit
  12040. apps sometimes crash in WebCore::FontData::platformInit
  12041. Always retain/release our font handle, instead of only retaining
  12042. in the presence of GC.
  12043. * platform/mac/FontPlatformData.h:
  12044. (WebCore::FontPlatformData::FontPlatformData):
  12045. (WebCore::FontPlatformData::~FontPlatformData):
  12046. 2007-07-17 Sam Weinig <sam@webkit.org>
  12047. Reviewed by Geoff Garen.
  12048. Fix for <rdar://problem/5333957>
  12049. http://bugs.webkit.org/show_bug.cgi?id=14610
  12050. Original patch by Feng Qian.
  12051. - Clear the selection object when disconnecting a frame.
  12052. Test: http/tests/security/cross-frame-access-selection.html
  12053. * loader/FrameLoader.cpp:
  12054. (WebCore::FrameLoader::clear):
  12055. * page/DOMWindow.cpp:
  12056. (WebCore::DOMWindow::disconnectFrame):
  12057. (WebCore::DOMWindow::clear):
  12058. * page/DOMWindow.h:
  12059. * page/Frame.cpp:
  12060. (WebCore::Frame::clearScriptProxy):
  12061. (WebCore::Frame::clearDOMWindow):
  12062. * page/Frame.h:
  12063. 2007-07-17 Oliver Hunt <oliver@apple.com>
  12064. Reviewed by Sam.
  12065. Fix for <rdar://problem/5154518> REGRESSION: Hitting return does
  12066. nothing in ruby terminal at http://tryruby.hobix.com/
  12067. Calling event.preventDefault() during a keydown event should not
  12068. prevent the keypress event from firing.
  12069. * WebCore.xcodeproj/project.pbxproj:
  12070. * page/EventHandler.cpp:
  12071. (WebCore::EventHandler::keyEvent):
  12072. (WebCore::EventHandler::defaultKeyboardEventHandler):
  12073. 2007-07-17 Anders Carlsson <andersca@apple.com>
  12074. Reviewed by Geoff.
  12075. <rdar://problem/4993463>
  12076. http://bugs.webkit.org/show_bug.cgi?id=12732
  12077. REGRESSION: Comments fields on ircimages not showing up in nightly
  12078. Postpone setting the frame name to just right before we request the frame. Otherwise,
  12079. two calls to FrameTree::uniqueChildName will return the same frame name and in that case only
  12080. one Frame object will actually be created and multiple iframe elements will refer to it.
  12081. * html/HTMLFrameElementBase.cpp:
  12082. (WebCore::HTMLFrameElementBase::openURL):
  12083. (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
  12084. (WebCore::HTMLFrameElementBase::setNameAndOpenURLCallback):
  12085. (WebCore::HTMLFrameElementBase::insertedIntoDocument):
  12086. (WebCore::HTMLFrameElementBase::attach):
  12087. * html/HTMLFrameElementBase.h:
  12088. 2007-07-17 Brady Eidson <beidson@apple.com>
  12089. Reviewed by Steve
  12090. Required for <rdar://problem/4516185> - FTP Directory Listings
  12091. * WebCore.vcproj/WebCore.vcproj: Added SharedBufferWin
  12092. * platform/SharedBuffer.cpp: Windows doesn't get the default empty resource anymore
  12093. * platform/win/SharedBufferWin.cpp: Added.
  12094. (WebCore::SharedBuffer::createWithContentsOfFile):
  12095. 2007-07-17 Brady Eidson <beidson@apple.com>
  12096. Reviewed by Tim Hatcher
  12097. Tweak the class names we give to the icon table cell to make it easier to style
  12098. * loader/FTPDirectoryDocument.cpp:
  12099. (WebCore::FTPDirectoryTokenizer::appendEntry): The the table cell a "IconCell" class name and
  12100. either a "FileType" or "DirectoryType" class name depending on the type
  12101. 2007-07-17 Holger Hans Peter Freyther <zecke@selfish.org>
  12102. Reviewed by NOBODY.
  12103. Build fix after r24366 add an additional ResourceRequest parameter to
  12104. the download method.
  12105. * loader/gdk/FrameLoaderClientGdk.cpp:
  12106. (WebCore::FrameLoaderClientGdk::download):
  12107. * loader/gdk/FrameLoaderClientGdk.h:
  12108. 2007-07-17 Adam Roben <aroben@apple.com>
  12109. Fix Bug 14324: Cannot remove/customize the "Inspect Element" contextual menu item
  12110. http://bugs.webkit.org/show_bug.cgi?id=14324
  12111. Reviewed by Tim.
  12112. No regression test possible.
  12113. * page/ContextMenuController.cpp:
  12114. (WebCore::ContextMenuController::handleContextMenuEvent): Add the
  12115. Inspect Element item to the menu before passing it to the
  12116. ContextMenuClient so that the UI delegate has a chance to
  12117. modify/remove the item.
  12118. 2007-07-17 Adam Roben <aroben@apple.com>
  12119. Remove ContextMenuClient::shouldIncludeInspectElementItem
  12120. Reviewed by Tim.
  12121. No regression test possible.
  12122. * page/ContextMenuClient.h:
  12123. * page/ContextMenuController.cpp:
  12124. (WebCore::ContextMenuController::handleContextMenuEvent): Use Settings
  12125. to determine whether to include the Inspect Element item.
  12126. * page/gdk/ContextMenuClientGdk.cpp:
  12127. * page/gdk/ContextMenuClientGdk.h:
  12128. * platform/graphics/svg/SVGImageEmptyClients.h:
  12129. 2007-07-17 Adam Roben <aroben@apple.com>
  12130. Initialize ContextMenuController::m_page
  12131. Somehow this variable had never been initialized before.
  12132. Reviewed by Tim.
  12133. * page/ContextMenuController.cpp:
  12134. (WebCore::ContextMenuController::ContextMenuController):
  12135. * page/ContextMenuController.h:
  12136. * page/Page.cpp:
  12137. (WebCore::Page::Page):
  12138. 2007-07-17 Adam Roben <aroben@apple.com>
  12139. Add Settings::developerExtrasEnabled
  12140. Reviewed by Tim.
  12141. * WebCore.exp:
  12142. * page/Settings.cpp:
  12143. * page/Settings.h:
  12144. 2007-07-17 Justin Garcia <justin.garcia@apple.com>
  12145. Reviewed by Antti.
  12146. <rdar://problem/5206311>
  12147. Whitespace can't be removed when editing text pasted into from web page
  12148. The whitespace comes from table rows that aren't being removed after they are
  12149. emptied out during a deletion.
  12150. * editing/DeleteSelectionCommand.cpp:
  12151. (WebCore::isTableCell):
  12152. (WebCore::isTableRow):
  12153. (WebCore::isTableCellEmpty):
  12154. (WebCore::isTableRowEmpty):
  12155. (WebCore::DeleteSelectionCommand::initializePositionData): Remember the table
  12156. rows that contained the start and end of the selection.
  12157. (WebCore::DeleteSelectionCommand::removePreviouslySelectedEmptyTableRows):
  12158. Remove table rows that come before the end of the selection
  12159. that was removed (except for the row that contained the start of the selection
  12160. and any before that).
  12161. Remove table rows that are come after the start of the selection
  12162. that was removed (except for the row that contained the end of the selection
  12163. and any after that).
  12164. (WebCore::DeleteSelectionCommand::doApply): Call the new function.
  12165. * editing/DeleteSelectionCommand.h:
  12166. 2007-07-17 Geoffrey Garen <ggaren@apple.com>
  12167. Reviewed by Kevin Decker.
  12168. Removed ASSERT that was breaking the pageout test. It's trivial to
  12169. reproduce this ASSERT when navigating between pages that change their
  12170. names, but nothing bad seems to happen.
  12171. * page/Page.cpp:
  12172. (WebCore::Page::goToItem):
  12173. 2007-07-17 Geoffrey Garen <ggaren@apple.com>
  12174. Build fix.
  12175. * plugins/win/PluginViewWin.cpp: Pass false for lockHistory like we
  12176. do elsewhere.
  12177. 2007-07-17 Holger Hans Peter Freyther <zecke@selfish.org>
  12178. Reviewed by Maciej.
  12179. Implement the callback responsible for handling HTTP headers. This
  12180. callback gets called for every header.
  12181. We will add these headers to our ResourceResponse and on the 'end-of-header'
  12182. indicator we will update the ResourceResponse and dispatch it.
  12183. This patch adds various set methods to ResourceResponse. This improves
  12184. the readability of the headerCallback and avoids storing a CURL handle inside
  12185. the ResourceResponse which would be needed to implement ResourceResponse::doUpdateResourceResponse
  12186. Add a destructor for ResourceHandleManager which would free the resources and remove
  12187. a unused variable.
  12188. * platform/network/ResourceHandleInternal.h:
  12189. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  12190. * platform/network/ResourceResponse.cpp:
  12191. (WebCore::ResourceResponse::setUrl):
  12192. (WebCore::ResourceResponse::setMimeType):
  12193. (WebCore::ResourceResponse::setExpectedContentLength):
  12194. (WebCore::ResourceResponse::setTextEncodingName):
  12195. (WebCore::ResourceResponse::setSuggestedFilename):
  12196. * platform/network/ResourceResponse.h:
  12197. * platform/network/curl/ResourceHandleCurl.cpp:
  12198. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  12199. * platform/network/curl/ResourceHandleManager.cpp:
  12200. (WebCore::ResourceHandleManager::~ResourceHandleManager):
  12201. (WebCore::ResourceHandleManager::sharedInstance):
  12202. (WebCore::headerCallback):
  12203. * platform/network/curl/ResourceHandleManager.h:
  12204. 2007-07-17 Sam Weinig <sam@webkit.org>
  12205. Reviewed by Adam Roben.
  12206. Convert JS undefined to the empty string when calling alert, confirm, and prompt.
  12207. Test: fast/dom/Window/alert-undefined.html
  12208. * page/DOMWindow.idl:
  12209. 2007-07-17 Geoffrey Garen <ggaren@apple.com>
  12210. Reviewed by Kevin McCulough.
  12211. Fixed failing layout test.
  12212. Renamed "FrameLoadTypeInternal" to "FrameLoadTypeRedirectWithLockedHistory".
  12213. This is almost certainly not a correct name for the original intent
  12214. of this load type, but it's a correct name for its current behavior.
  12215. (WebCore::FrameLoader::updateHistoryForRedirectWithLockedHistory):
  12216. When history is supposed to be locked, and no current history item
  12217. exists, only add a new history item if you're the top-level frame.
  12218. This rule, combined with the rule that setting iframe.src should not
  12219. create a history item, is pretty hackish. On the other hand, it
  12220. matches WinIE and doesn't cause any test regressions. So I'm OK with
  12221. it as a short-term solution until the solution described in
  12222. <rdar://problem/5339292> can be implemented.
  12223. 2007-07-17 Tristan O'Tierney <tristan@apple.com>
  12224. Reviewed by Maciej Stachowiak.
  12225. <rdar://problem/5294691> Source of file is misrepresented if downloaded by typing in URL in Safari address bar
  12226. * loader/FrameLoaderClient.h:
  12227. * loader/MainResourceLoader.cpp:
  12228. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  12229. Added an extra request parameter, initialRequest, to the download() method
  12230. by passing up the resource handle's request.
  12231. * platform/graphics/svg/SVGImageEmptyClients.h:
  12232. (WebCore::SVGEmptyFrameLoaderClient::download):
  12233. Added an extra parameter to the empty SVG download method.
  12234. 2007-07-17 Antti <antti@apple.com>
  12235. Reviewed by home-bradee.
  12236. <rdar://problem/5336372>
  12237. Icon database uses too much memory
  12238. XRaying Safari startup memory consumption revealed that icon database is eating quite
  12239. a bit of RAM if Icon.db is large (which it probably is if it has been in use for a while,
  12240. mine used for getting figures below was 2.6MB).
  12241. Note that the wins are less impressive with smaller Icon.db.
  12242. This patch addresses three separate issues
  12243. - SQLite fails to free the memory used by temporary tables. Icon database uses a temporary table
  12244. on startup for pruning unused page urls. This wastes around 1MB. Addressed by rewriting
  12245. pruning so it does not need a temporary table. The new method is also quite a bit faster speeding
  12246. up Safari launch time by around 100ms
  12247. - SQLite has it's own memory cache limited by default to 3MB. Icon database does not really need that much.
  12248. Dropped the cache size to 300kB saving ~1MB on startup.
  12249. Smaller cache slows down startup by ~30ms (more than compensated by faster pruning above)
  12250. - Don't populate m_pageURLToIconURLMap with all urls from database on startup, instead let it get populated
  12251. when urls are accessed (user opens history menu for example). This shouldn't have any real performance impact
  12252. as the accesses are icon loads that need to hit the database anyway. This saves ~700kB.
  12253. All in all with this Icon.db these changes reduce allocated memory by around 2.7MB on startup. Release build
  12254. Safari RPRVT (empty start page) goes from 12.4MB to 10.4MB (TCMalloc pooling probably explaining why the win
  12255. looks bit smaller here).
  12256. * loader/icon/IconDatabase.cpp:
  12257. (WebCore::IconDatabase::IconDatabase):
  12258. (WebCore::IconDatabase::open):
  12259. (WebCore::IconDatabase::deleteAllPreparedStatements):
  12260. (WebCore::IconDatabase::retainIconForPageURL):
  12261. (WebCore::IconDatabase::releaseIconForPageURL):
  12262. (WebCore::IconDatabase::establishIconIDForIconURL):
  12263. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup):
  12264. * loader/icon/IconDatabase.h:
  12265. 2007-07-17 Darin Adler <darin@apple.com>
  12266. Reviewed by Mitz.
  12267. - fix http://bugs.webkit.org/show_bug.cgi?id=14569
  12268. Repro crash due to saved state not being cleared when select and textarea elements
  12269. are adopted by another document
  12270. Test: fast/forms/saved-state-adoptNode-crash.html
  12271. * dom/Document.h:
  12272. (WebCore::Document::registerFormElementWithState): Updated parameter type to be
  12273. HTMLFormControlElementWithState.
  12274. (WebCore::Document::unregisterFormElementWithState): Ditto.
  12275. Also removed isFormElementRegistered function and changed the type of the
  12276. m_formElementsWithState ListHashSet.
  12277. * dom/Document.cpp: (WebCore::Document::formElementsState): Updated to use new type,
  12278. for set contents and to use new saveState() function and only save state for elements
  12279. that return true.
  12280. * html/HTMLGenericFormElement.h: Added HTMLFormControlElementWithState class,
  12281. derived from HTMLGenericFormElement, and moved down all the behavior related to
  12282. saving form control element state. Also removed the unnecessary default parameter
  12283. to the HTMLGenericFormElement constructor.
  12284. * html/HTMLGenericFormElement.cpp:
  12285. (WebCore::HTMLFormControlElementWithState::HTMLFormControlElementWithState): Added.
  12286. Calls registerFormElementWithState.
  12287. (WebCore::HTMLFormControlElementWithState::~HTMLFormControlElementWithState): Added.
  12288. Calls unregisterFormElementWithState.
  12289. (WebCore::HTMLFormControlElementWithState::willMoveToNewOwnerDocument): Added.
  12290. Calls unregisterFormElementWithState.
  12291. (WebCore::HTMLFormControlElementWithState::didMoveToNewOwnerDocument): Added.
  12292. Calls registerFormElementWithState.
  12293. (WebCore::HTMLFormControlElementWithState::closeRenderer): Moved to this class from
  12294. the base class.
  12295. * html/HTMLInputElement.h: Updated the base class name and overrode saveState instead
  12296. of stateValue.
  12297. * html/HTMLInputElement.cpp: Updated the base class name.
  12298. (WebCore::HTMLInputElement::init): Removed the call to registerFormElementWithState.
  12299. (WebCore::HTMLInputElement::~HTMLInputElement): Removed the call to
  12300. unregisterFormElementWithState. Also changed the code to only call the
  12301. unregisterForDidRestoreFromCacheCallback function for type PASSWORD (consistency
  12302. and efficiency).
  12303. (WebCore::HTMLInputElement::setInputType): Removed calls to registerFormElementWithState
  12304. and unregisterFormElementWithState; we now let the element stay registered and simply
  12305. don't save or restore state for password fields.
  12306. (WebCore::HTMLInputElement::saveState): Updated function name and signature to replace
  12307. the old stateValue function. Returns false for password fields.
  12308. (WebCore::HTMLInputElement::willMoveToNewOwnerDocument): Removed the call to
  12309. unregisterFormElementWithState.
  12310. (WebCore::HTMLInputElement::didMoveToNewOwnerDocument): Removed the call to
  12311. registerFormElementWithState.
  12312. * html/HTMLSelectElement.h: Updated the base class name and overrode saveState instead
  12313. of stateValue.
  12314. * html/HTMLSelectElement.cpp: Updated the base class name.
  12315. (WebCore::HTMLSelectElement::HTMLSelectElement): Removed the call to
  12316. registerFormElementWithState.
  12317. (WebCore::HTMLSelectElement::~HTMLSelectElement): Removed the call to
  12318. unregisterFormElementWithState.
  12319. (WebCore::HTMLSelectElement::saveState): Updated function name and signature to
  12320. replace the old stateValue function.
  12321. (WebCore::HTMLSelectElement::setLength): Updated to use document() instead of
  12322. ownerDocument(); the latter is just a slower virtual-function way of doing the
  12323. same thing in all cases except for Document and XPathNamespace.
  12324. * html/HTMLTextAreaElement.h: Update the base class name, overrode saveState instead
  12325. of stateValue, and removed the now-unnecessary explicit destructor.
  12326. * html/HTMLTextAreaElement.cpp: Updated the base class name.
  12327. (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Removed the call to
  12328. registerFormElementWithState.
  12329. (WebCore::HTMLTextAreaElement::saveState): Updated function name and signature to replace
  12330. the old stateValue function.
  12331. 2007-07-17 Sam Weinig <sam@webkit.org>
  12332. Reviewed by Darin.
  12333. - Make HTMLFrameOwnerElement::contentWindow() return a DOMWindow instead of a Frame
  12334. - Remove the unnecessary hack in HTMLFrameElement.idl and HTMLIFrameElement.idl that
  12335. converted from Frame to Window now that it is not necessary.
  12336. - Remove now unused [NullCheck] extended attribute from CodeGeneratorJS.pm.
  12337. * bindings/scripts/CodeGeneratorJS.pm:
  12338. * html/HTMLDocument.idl:
  12339. * html/HTMLFrameElement.idl:
  12340. * html/HTMLFrameOwnerElement.cpp:
  12341. (WebCore::HTMLFrameOwnerElement::contentWindow):
  12342. * html/HTMLFrameOwnerElement.h:
  12343. * html/HTMLIFrameElement.idl:
  12344. 2007-07-16 Sam Weinig <sam@webkit.org>
  12345. Reviewed by Adam Roben.
  12346. Move self, opener, parent, top, window, and frames from kjs_window
  12347. to DOMWindow and auto-generate the bindings for them.
  12348. * bindings/js/kjs_window.cpp:
  12349. (KJS::Window::getValueProperty):
  12350. * bindings/js/kjs_window.h:
  12351. (KJS::Window::):
  12352. * page/DOMWindow.cpp:
  12353. (WebCore::DOMWindow::self):
  12354. (WebCore::DOMWindow::opener):
  12355. (WebCore::DOMWindow::parent):
  12356. (WebCore::DOMWindow::top):
  12357. * page/DOMWindow.h:
  12358. (WebCore::DOMWindow::window):
  12359. (WebCore::DOMWindow::frames):
  12360. * page/DOMWindow.idl:
  12361. 2007-07-16 Geoffrey Garen <ggaren@apple.com>
  12362. Reviewed by Sam Weinig.
  12363. Fixed <rdar://problem/5334483> REGRESSION: JavaScript-induced
  12364. window.open loads not added to back/forward list
  12365. I did an audit of our history rules in loading and tried to establish
  12366. some sane uniformity.
  12367. The uniform rule is:
  12368. - HTTP redirects and HTTP redirects simulated by <meta http-equiv>
  12369. add a history item if and only if the redirect takes > 1 second.
  12370. - Other navigations, including JavaScript navigations, always
  12371. add a history item, except for location.replace navigations.
  12372. In the future, we'll want to refine the second case to be more like the
  12373. first. I've filed <rdar://problem/5339292> about that.
  12374. * bindings/js/JSHTMLDocumentCustom.cpp:
  12375. (WebCore::JSHTMLDocument::setLocation): Don't pass 'true' for
  12376. userGesture unconditionally. userGesture is used to determine popup
  12377. blocking, not history item creation.
  12378. * bindings/js/kjs_window.cpp: Pass 'false' for lockHistory in all loads
  12379. except location.replace, which intends to lock history.
  12380. * loader/FrameLoader.cpp: Distinguish between lockHistory and
  12381. userGesture. The former determines whether a new history item gets
  12382. created. The latter determines whether JavaScript can open popup
  12383. windows. Start passing these variables in functions that used to
  12384. swallow or conflate them.
  12385. (WebCore::FrameLoader::requestFrame): Pass 'true' for lockHistory here
  12386. because that's usually correct when setting the 'src' attribute of a
  12387. child frame, and we want to avoid regressing <rdar://problem/4921797>.
  12388. (WebCore::FrameLoader::load): Use the lockHistory variable to determine
  12389. whether to start a history-creating load. Using userGesture for this
  12390. purpose is wrong, as explained above.
  12391. * loader/FrameLoader.h: Renamed one variant of scheduleRedirection to
  12392. scheduleHTTPRedirection because the behavior there of measuring elapsed
  12393. time is specific to the HTTP redirection case.
  12394. * page/ContextMenuController.cpp:
  12395. (WebCore::ContextMenuController::contextMenuItemSelected): lockHistory
  12396. can always be false here because this navigation is never the result of
  12397. a redirection.
  12398. 2007-07-16 Sam Weinig <sam@webkit.org>
  12399. Reviewed by Adam and Maciej.
  12400. Move the frameElement attribute from kjs_window to DOMWindow and
  12401. auto-generate the bindings for it.
  12402. * bindings/js/kjs_window.cpp:
  12403. (KJS::Window::getValueProperty):
  12404. * bindings/js/kjs_window.h:
  12405. (KJS::Window::):
  12406. * bindings/scripts/CodeGeneratorJS.pm:
  12407. * page/DOMWindow.cpp:
  12408. (WebCore::DOMWindow::frameElement):
  12409. (WebCore::DOMWindow::devicePixelRatio):
  12410. * page/DOMWindow.h:
  12411. * page/DOMWindow.idl:
  12412. 2007-07-16 Sam Weinig <sam@webkit.org>
  12413. Reviewed by Adam.
  12414. Move more functions from kjs_window to DOMWindow and auto-generate
  12415. the bindings for them.
  12416. * bindings/js/kjs_window.cpp:
  12417. (KJS::WindowFunc::callAsFunction):
  12418. * bindings/js/kjs_window.h:
  12419. (KJS::Window::):
  12420. * page/DOMWindow.cpp:
  12421. (WebCore::DOMWindow::print):
  12422. (WebCore::DOMWindow::stop):
  12423. (WebCore::DOMWindow::alert):
  12424. (WebCore::DOMWindow::confirm):
  12425. (WebCore::DOMWindow::prompt):
  12426. (WebCore::DOMWindow::find):
  12427. * page/DOMWindow.h:
  12428. * page/DOMWindow.idl:
  12429. 2007-07-17 Mark Rowe <mrowe@apple.com>
  12430. Gdk build fix.
  12431. * platform/gdk/ChromeClientGdk.h:
  12432. 2007-07-16 Brady Eidson <beidson@apple.com>
  12433. Reviewed by Adam
  12434. Begin the arduous task of localizing FTP directory listings while removing a global initializer!
  12435. * loader/FTPDirectoryDocument.cpp:
  12436. (WebCore::processFilesizeString):
  12437. * page/mac/WebCoreViewFactory.h:
  12438. * platform/LocalizedStrings.h:
  12439. * platform/gdk/TemporaryLinkStubs.cpp:
  12440. (WebCore::unknownFileSizeText):
  12441. * platform/mac/LocalizedStringsMac.mm:
  12442. (WebCore::unknownFileSizeText):
  12443. * platform/qt/Localizations.cpp:
  12444. (WebCore::unknownFileSizeText):
  12445. 2007-07-16 Sam Weinig <sam@webkit.org>
  12446. Reviewed by Oliver.
  12447. Remove more redundant isSafeScript checks.
  12448. * bindings/js/kjs_window.cpp:
  12449. (KJS::Window::getOwnPropertySlot):
  12450. 2007-07-16 Sam Weinig <sam@webkit.org>
  12451. Reviewed by Oliver.
  12452. Turn off -Wshorten-64-to-32 warning for 64-bit builds.
  12453. * Configurations/Base.xcconfig:
  12454. 2007-07-16 Anders Carlsson <andersca@apple.com>
  12455. Reviewed by Oliver.
  12456. <rdar://problem/5336276>
  12457. ASSERT(cs->accessCount() > 0) when instantiating widget templates in DashCode
  12458. If the cache is disabled, accessCount will always be 0. Account for this in the assert.
  12459. * html/HTMLTokenizer.cpp:
  12460. (WebCore::HTMLTokenizer::reset):
  12461. (WebCore::HTMLTokenizer::notifyFinished):
  12462. 2007-07-16 Brady Eidson <beidson@apple.com>
  12463. Reviewed by Darin.
  12464. Append FTP row entries to the first TBODY instead of the TABLE element itself,
  12465. as many TABLE elements end up with an implicit TBODY and that's where most people would
  12466. expect it to be added.
  12467. * html/HTMLTableElement.h:
  12468. (WebCore::HTMLTableElement::firstTBody): Added this accessor
  12469. * loader/FTPDirectoryDocument.cpp:
  12470. (WebCore::FTPDirectoryTokenizer::appendEntry): Add to the first tbody if it exists
  12471. 2007-07-16 Justin Garcia <justin.garcia@apple.com>
  12472. Reviewed by Adele.
  12473. <rdar://problem/5240265>
  12474. REGRESSION: Clicking a <button> clears the selection in contenteditable areas
  12475. * page/FocusController.cpp:
  12476. (WebCore::clearSelectionIfNeeded): Don't clear the selection if
  12477. the mouse press that caused the focus shift occurred in
  12478. a -webkit-user-select: ignore region.
  12479. 2007-07-16 David Hyatt <hyatt@apple.com>
  12480. Fix for 5335829, avoid creating a pathological # of FontData objects
  12481. on Windows. The MLang service actually caches and reuses HFONTs, which
  12482. means it is safe to use our FontPlatformData -> FontData cache.
  12483. Reviewed by olliej
  12484. * platform/win/FontCacheWin.cpp:
  12485. (WebCore::FontCache::getFontDataForCharacters):
  12486. 2007-07-16 Adam Roben <aroben@apple.com>
  12487. Added a manual test to test calling window.print on a subframe.
  12488. Reviewed by Darin.
  12489. * manual-tests/resources/print-subframe.html: Added.
  12490. * manual-tests/window-print-subframe.html: Added.
  12491. 2007-07-16 Adam Roben <aroben@apple.com>
  12492. Replace Frame::print with Chrome::print
  12493. This also adds a Frame* parameter to Chrome::print and
  12494. ChromeClient::print so that it knows which Frame to print.
  12495. Reviewed by Darin.
  12496. All tests pass.
  12497. * bindings/js/kjs_window.cpp:
  12498. (KJS::WindowFunc::callAsFunction): Call Chrome::print.
  12499. * editing/JSEditor.cpp: Ditto.
  12500. * bridge/win/FrameWin.cpp: Removed Frame::print.
  12501. * page/Frame.h: Ditto.
  12502. * page/mac/FrameMac.mm: Ditto.
  12503. * page/qt/FrameQt.cpp: Ditto.
  12504. * platform/gdk/FrameGdk.cpp: Ditto.
  12505. * page/mac/WebCoreFrameBridge.h: Removed -print.
  12506. * page/Chrome.cpp: Added Frame* parameter to Chrome::print and pass it
  12507. up to the ChromeClient.
  12508. * page/Chrome.h: Ditto.
  12509. * page/ChromeClient.h: Ditto.
  12510. * platform/gdk/TemporaryLinkStubs.cpp: Ditto.
  12511. * platform/graphics/svg/SVGImageEmptyClients.h: Ditto.
  12512. 2007-07-16 Adele Peterson <adele@apple.com>
  12513. Reviewed by Brady.
  12514. Fix for <rdar://problem/5321490> REGRESSION: visibility:hidden property doesn't hide parts of file input element and listbox
  12515. http://bugs.webkit.org/show_bug.cgi?id=14565
  12516. Tests:
  12517. fast/forms/hidden-input-file.html
  12518. fast/forms/hidden-listbox.html
  12519. * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::paintObject):
  12520. Only paint if the control is supposed to be visible.
  12521. * rendering/RenderListBox.cpp: (WebCore::RenderListBox::paintObject):
  12522. ditto. We already had checks to prevent drawing the text that considered the option's style too, but if visibility: hidden
  12523. was just set on the listbox then a lot of extra work was being done, and the scrollbar was drawing too. This change fixes that.
  12524. 2007-07-16 David Hyatt <hyatt@apple.com>
  12525. Fix for Radar 5338081, text-shadow should be reset on form controls so that
  12526. it doesn't inherit in when set e.g., on the <body>.
  12527. Reviewed by beth
  12528. * css/html4.css:
  12529. 2007-07-16 Holger Hans Peter Freyther <zecke@selfish.org>
  12530. Reviewed by Niko.
  12531. FrameView, PlatformScrollbar and changes to the way we draw
  12532. Fix the lifetime of PlatformScrollbar, use a default width and
  12533. height and fix drawing of the PlatformScrollbar and other widgets
  12534. the following way: FrameGdk handles the expose events of the Frame
  12535. and will make the frame redraw and now it will draw the childrent of
  12536. the FrameView as well. This approach has the issue of honoring the
  12537. z-order of elements inside the RenderTree. Honoring the z-order will
  12538. be a bit more work
  12539. Widget can now handle Widget::setGtkWidget call where the GtkWidget
  12540. has not yet a GdkWindow allocated. We will lazily set the GdkDrawable.
  12541. In preparation of honoring the z-order of the RenderTree for RenderWidgets
  12542. it is started to store native objects inside the GraphicsContext. Doing this
  12543. nicely eliminates the need of RenderThemeGdk to do any drawing to a temporary
  12544. GdkPixmap. This should fix themes with rounded buttons.
  12545. ScrollView implement add- and removeChild to get a working PlatformScrollbar
  12546. * platform/Widget.h:
  12547. * platform/gdk/FrameGdk.cpp:
  12548. (frame_gdk_expose_child): Will send the expose to all children
  12549. (WebCore::FrameGdk::handleGdkEvent): Painting changes, move to mouseMoved
  12550. * platform/gdk/PlatformScreenGdk.cpp:
  12551. (WebCore::screenDepth): gdkDrawable
  12552. * platform/gdk/PlatformScrollBarGdk.cpp:
  12553. (PlatformScrollbar::PlatformScrollbar): Fix ownership
  12554. (PlatformScrollbar::~PlatformScrollbar): Fix ownership
  12555. (PlatformScrollbar::paint): Widget::paint will do the right thing soon
  12556. * platform/gdk/RenderThemeGdk.cpp: No need for using a GdkPixmap, draw directly
  12557. (WebCore::RenderThemeGdk::paintCheckbox): No need for using a GdkPixmap, draw directly
  12558. (WebCore::RenderThemeGdk::paintRadio): No need for using a GdkPixmap, draw directly
  12559. (WebCore::RenderThemeGdk::paintButton): No need for using a GdkPixmap, draw directly
  12560. * platform/gdk/RenderThemeGdk.h: remove the copyContext call
  12561. * platform/gdk/ScrollViewGdk.cpp: gdkDrawable
  12562. (WebCore::ScrollView::updateView): gdkDrawable
  12563. (WebCore::ScrollView::update): clear the area to fix repainting issues
  12564. (WebCore::ScrollView::setGtkWidget): gdkDrawable
  12565. (WebCore::ScrollView::addChild): implement
  12566. (WebCore::ScrollView::removeChild): implement
  12567. * platform/gdk/TemporaryLinkStubs.cpp: Not needed header removed
  12568. * platform/gdk/WidgetGdk.cpp:
  12569. (WebCore::Widget::gdkDrawable): Renamed from drawable
  12570. (WebCore::Widget::setGtkWidget): use gdkDrawable
  12571. (WebCore::Widget::setCursor): gdkDrawable
  12572. (WebCore::Widget::show): gdkDrawable
  12573. (WebCore::Widget::hide): gdkDrawable
  12574. * platform/graphics/GraphicsContext.h: Allow to set the GdkDrawable, e.g. used inside a expose event
  12575. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  12576. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  12577. (WebCore::GraphicsContext::setGdkDrawable):
  12578. (WebCore::GraphicsContext::gdkDrawable):
  12579. 2007-07-16 Holger Hans Peter Freyther <zecke@selfish.org>
  12580. Reviewed by Maciej.
  12581. Lazily update the scrollbars (e.g. on loading a page) to
  12582. generate less expose events, which will lead to laying out less often
  12583. and will fix http://bugs.webkit.org/show_bug.cgi?id=14020.
  12584. * platform/gdk/ScrollViewGdk.cpp:
  12585. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  12586. (WebCore::ScrollView::update):
  12587. (WebCore::ScrollView::resizeContents):
  12588. (WebCore::ScrollView::updateScrollbars):
  12589. 2007-07-16 Rob Buis <buis@kde.org>
  12590. Reviewed by Maciej.
  12591. http://bugs.webkit.org/show_bug.cgi?id=14462
  12592. non empty <style> element doesn't work
  12593. Return an empty sheet for empty <style> elements
  12594. instead of a null sheet. Clean up StyleElement a bit.
  12595. * dom/StyleElement.cpp:
  12596. (WebCore::StyleElement::StyleElement):
  12597. (WebCore::StyleElement::sheet):
  12598. (WebCore::StyleElement::childrenChanged):
  12599. (WebCore::StyleElement::createSheet):
  12600. * dom/StyleElement.h:
  12601. (WebCore::StyleElement::setLoading):
  12602. * html/HTMLStyleElement.cpp:
  12603. (WebCore::HTMLStyleElement::HTMLStyleElement):
  12604. (WebCore::HTMLStyleElement::sheet):
  12605. * html/HTMLStyleElement.h:
  12606. (WebCore::HTMLStyleElement::setLoading):
  12607. * ksvg2/svg/SVGStyleElement.cpp:
  12608. (WebCore::SVGStyleElement::sheet):
  12609. (WebCore::SVGStyleElement::sheetLoaded):
  12610. * ksvg2/svg/SVGStyleElement.h:
  12611. 2007-07-15 Oliver Hunt <oliver@apple.com>
  12612. Reviewed by Adam.
  12613. Fix for fix for <rdar://problem/5336602> REGRESSION: tab characters
  12614. cannot be entered into text fields
  12615. http://bugs.webkit.org/show_bug.cgi?id=14032
  12616. Need to use UChar not char.
  12617. * html/HTMLInputElement.cpp:
  12618. (WebCore::HTMLInputElement::constrainValue):
  12619. 2007-07-15 Sam Weinig <sam@webkit.org>
  12620. Reviewed by Geoff Garen.
  12621. Remove redundant calls to isSafeScript()
  12622. * bindings/js/JSDOMWindowCustom.cpp:
  12623. (WebCore::JSDOMWindow::customPut):
  12624. * bindings/js/kjs_window.cpp:
  12625. (KJS::Window::put):
  12626. 2007-07-15 Geoffrey Garen <ggaren@apple.com>
  12627. Reviewed by Maciej Stachowiak.
  12628. Removed incorrect error log, seen while running layout tests.
  12629. Perhaps at some point FrameLoadTypeInteral had a specific meaning
  12630. that prevented it from being used in non-child frame, non-redirect
  12631. situations. However, that meaning has been lost and nobody remembers
  12632. how to get it back.
  12633. We currently use FrameLoadTypeInternal for any load that is not
  12634. initiated by a user gesture, so it's trivial to produce this error
  12635. log, even though nothing has gone wrong.
  12636. * loader/FrameLoader.cpp:
  12637. (WebCore::FrameLoader::updateHistoryForInternalLoad):
  12638. 2007-07-15 Oliver Hunt <oliver@apple.com>
  12639. Reviewed by Maciej
  12640. Fix for <rdar://problem/5336602> REGRESSION: tab characters cannot be entered into text fields
  12641. http://bugs.webkit.org/show_bug.cgi?id=14032
  12642. constrainValue attempted to block control characters from being inserted
  12643. by a simple less than ' ' check, which prevent tab characters from being
  12644. inserted. This patch adds an additional check to allow the tab character
  12645. again
  12646. * html/HTMLInputElement.cpp:
  12647. (WebCore::HTMLInputElement::constrainValue):
  12648. 2007-07-14 Brady Eidson <beidson@apple.com>
  12649. Third shot at blind Qt/GDK build fix
  12650. * platform/gdk/TemporaryLinkStubs.cpp:
  12651. (FTPDirectoryDocument::createTokenizer):
  12652. * platform/qt/TemporaryLinkStubs.cpp:
  12653. (FTPDirectoryDocument::createTokenizer):
  12654. 2007-07-14 Brady Eidson <beidson@apple.com>
  12655. Reviewed by Sam
  12656. Windows build fix
  12657. * WebCore.vcproj/WebCore.vcproj:
  12658. 2007-07-14 Sam Weinig <sam@webkit.org>
  12659. Fix Tiger build.
  12660. * config.h:
  12661. 2007-07-14 Brady Eidson <beidson@apple.com>
  12662. Blind attempt at (hopefully) fixing the Qt and GDK builds
  12663. * platform/gdk/TemporaryLinkStubs.cpp:
  12664. (FTPDirectoryDocument::FTPDirectoryDocument):
  12665. * platform/qt/TemporaryLinkStubs.cpp:
  12666. (FTPDirectoryDocument::FTPDirectoryDocument):
  12667. 2007-07-14 Brady Eidson <beidson@apple.com>
  12668. Reviewed by Sam Weinig
  12669. Initial check-in for <rdar://problem/3154486> - Supporting FTP directory listings in the browser
  12670. Development has taken place on both Leopard and Windows (windows enabling patch will follow shortly)
  12671. Support will only exist on platforms whose network layers (ie, ResourceHandle) support piping the raw
  12672. FTP Directory data into the engine.
  12673. This is known to include Leopard, Windows, and CURL based platforms - probably others
  12674. Known incompatible platforms include Tiger.
  12675. The FTP listing page is built in HTML. An external HTML document can be provided as a template for the
  12676. directory listing. This document is parsed, and expected to have a <table> with a certain class in it.
  12677. As FTP directory listings come in, each entry is added to this table as a row.
  12678. If no HTML template is provided to work with, a very basic empty document is hard coded that contains only
  12679. this special table.
  12680. Upgrades to the look and feel of the directory listings can take place largely in this HTML template which,
  12681. admittedly, is conspicuously absent in this initial checkin
  12682. * WebCore.exp: New Settings symbols for WebKit
  12683. * WebCore.xcodeproj/project.pbxproj:
  12684. * config.h: If BUILDING_ON_TIGER, disable FTP directory listing support
  12685. * dom/DOMImplementation.cpp:
  12686. (WebCore::DOMImplementation::createDocument): Create an FTPDirectoryDocument if the mime type is
  12687. "application/x-ftp-directory"
  12688. * loader/FTPDirectoryDocument.cpp: Added.
  12689. (WebCore::FTPDirectoryTokenizer::isWaitingForScripts):
  12690. (WebCore::FTPDirectoryTokenizer::checkBuffer):
  12691. (WebCore::FTPDirectoryTokenizer::FTPDirectoryTokenizer): Building on HTML tokenizer, this facilitates
  12692. parsing FTP Directory listings in the engine
  12693. (WebCore::FTPDirectoryTokenizer::appendEntry): Add a table row for a directory listing to the document
  12694. (WebCore::FTPDirectoryTokenizer::createTDForFilename): Create the TD for the filename with the anchor in it
  12695. (WebCore::processFilesizeString): Prettify the filesize
  12696. (WebCore::wasLastDayOfMonth):
  12697. (WebCore::processFileDateString): Prettify the date
  12698. (WebCore::FTPDirectoryTokenizer::parseAndAppendOneLine):
  12699. (WebCore::FTPDirectoryTokenizer::loadDocumentTemplate): Loads the HTML template that FTP directory listings
  12700. can build on top of
  12701. (WebCore::FTPDirectoryTokenizer::createBasicDocument): Creates a most basic document (body and one table) to
  12702. append the rows to in case the document template is not loaded and parsed
  12703. (WebCore::FTPDirectoryTokenizer::write): Add the FTP listing to the buffer and parse entries out of it
  12704. (WebCore::FTPDirectoryTokenizer::finish):
  12705. (WebCore::FTPDirectoryDocument::FTPDirectoryDocument): Special document-type for FTP directory listings
  12706. (WebCore::FTPDirectoryDocument::createTokenizer):
  12707. * loader/FTPDirectoryDocument.h: Added.
  12708. (WebCore::FTPDirectoryDocument::isImageDocument):
  12709. * loader/FTPDirectoryParser.cpp: Added.
  12710. (WebCore::parseOneFTPLine): Adapted from ParseFTPList.cpp from Firefox - parses most known
  12711. FTP directory listing styles into discrete FTP directory entries
  12712. * loader/FTPDirectoryParser.h: Added.
  12713. (WebCore::ListState::ListState): Maintains FTP Parser state
  12714. (WebCore::ListResult::ListResult): Represents one FTP directory listing
  12715. (WebCore::ListResult::clear):
  12716. * loader/FrameLoader.cpp:
  12717. (WebCore::FrameLoader::checkContentPolicy): If the Settings say to bypass the policy check for
  12718. "application/x-ftp-directory", skip it. This will allow people to test this feature even if their
  12719. browser/WebKit app would otherwise not allow it
  12720. * page/Settings.cpp:
  12721. (WebCore::Settings::Settings):
  12722. (WebCore::Settings::setFTPDirectoryTemplatePath): Set the path to the FTP listing document template
  12723. (WebCore::Settings::setForceFTPDirectoryListings): Set to bypass the policy delegate check for mime type
  12724. "application/x-ftp-directory"
  12725. * page/Settings.h:
  12726. (WebCore::Settings::ftpDirectoryTemplatePath):
  12727. (WebCore::Settings::forceFTPDirectoryListings):
  12728. * platform/Logging.cpp: Add an "LogFTP" logging channel
  12729. * platform/Logging.h:
  12730. * platform/mac/LoggingMac.mm:
  12731. (WebCore::InitializeLoggingChannelsIfNecessary):
  12732. * platform/MimeTypeRegistry.cpp:
  12733. (WebCore::initialiseSupportedNonImageMimeTypes): Add "application/x-ftp-directory"
  12734. * platform/SharedBuffer.cpp:
  12735. (WebCore::SharedBuffer::createWithContentsOfFile): Stub for now
  12736. * platform/SharedBuffer.h:
  12737. * platform/mac/SharedBufferMac.mm:
  12738. (WebCore::SharedBuffer::createWithContentsOfFile): Load contents of the file into an NSData, then
  12739. wrap that NSData
  12740. 2007-07-14 Alexey Proskuryakov <ap@webkit.org>
  12741. Reviewed by Darin.
  12742. http://bugs.webkit.org/show_bug.cgi?id=14618
  12743. REGRESSION(13464): drivehq.com login form doesn't work
  12744. Test: http/tests/misc/post-submit-button.html
  12745. * html/HTMLInputElement.cpp:
  12746. (WebCore::HTMLInputElement::appendFormData): Append a submit even if its value is empty.
  12747. 2007-07-13 Oliver Hunt <oliver@apple.com>
  12748. Reviewed by Sam.
  12749. Fix for
  12750. <rdar://problem/5335265> REGRESSION: WebCore::DragController crashes if WebDragSourceActionDHTML cleared
  12751. http://bugs.webkit.org/show_bug.cgi?id=13652
  12752. Reorder logic for drag initiation: we can always preflight the clipboard, regardless as to whether
  12753. we are performing any dhtml drag handling
  12754. * page/EventHandler.cpp:
  12755. (WebCore::EventHandler::handleDrag):
  12756. 2007-07-13 Matt Lilek <pewtermoose@gmail.com>
  12757. Reviewed by Tim Hatcher.
  12758. Bug 14401: Semi-regression: Can no longer copy anything from the inspector
  12759. http://bugs.webkit.org/show_bug.cgi?id=14401
  12760. * page/inspector/inspector.css:
  12761. 2007-07-13 Beth Dakin <bdakin@apple.com>
  12762. Reviewed by Hyatt.
  12763. Fix for <rdar://problem/5304742> A hang occurs when attempting to
  12764. display web clip banner at http://www.signonsandiego.com/sports/
  12765. chargers/index.html
  12766. Here is the actual fix.
  12767. * rendering/RenderInline.cpp:
  12768. (WebCore::RenderInline::absoluteRects): Set topLevel to
  12769. false when we recurse to get our children's absoluteRects.
  12770. * rendering/RenderInline.h: New boolean parameter
  12771. topLevel that defaults to true.
  12772. * rendering/RenderObject.cpp:
  12773. (WebCore::RenderObject::absoluteRects):
  12774. * rendering/RenderObject.h:
  12775. And these are just other implementations/declarations of this
  12776. (virtual) function that have to add the parameter. No behavior
  12777. change here.
  12778. * rendering/RenderPath.cpp:
  12779. (WebCore::RenderPath::absoluteRects):
  12780. * rendering/RenderPath.h:
  12781. * rendering/RenderSVGContainer.cpp:
  12782. (WebCore::RenderSVGContainer::absoluteRects):
  12783. * rendering/RenderSVGContainer.h:
  12784. * rendering/RenderSVGHiddenContainer.cpp:
  12785. (WebCore::RenderSVGHiddenContainer::absoluteRects):
  12786. * rendering/RenderSVGHiddenContainer.h:
  12787. * rendering/RenderSVGImage.cpp:
  12788. (WebCore::RenderSVGImage::absoluteRects):
  12789. * rendering/RenderSVGImage.h:
  12790. * rendering/RenderSVGInlineText.cpp:
  12791. (WebCore::RenderSVGInlineText::absoluteRects):
  12792. * rendering/RenderSVGInlineText.h:
  12793. * rendering/RenderSVGTSpan.cpp:
  12794. (WebCore::RenderSVGTSpan::absoluteRects):
  12795. * rendering/RenderSVGTSpan.h:
  12796. * rendering/RenderSVGText.cpp:
  12797. (WebCore::RenderSVGText::absoluteRects):
  12798. * rendering/RenderSVGText.h:
  12799. * rendering/RenderText.cpp:
  12800. (WebCore::RenderText::absoluteRects):
  12801. * rendering/RenderText.h:
  12802. * rendering/RenderView.cpp:
  12803. (WebCore::RenderView::absoluteRects):
  12804. * rendering/RenderView.h:
  12805. 2007-07-13 Mitz Pettel <mitz@webkit.org>
  12806. Reviewed by Hyatt.
  12807. - fix http://bugs.webkit.org/show_bug.cgi?id=13438 <rdar://problem/5153030>
  12808. Run rounding makes word-break:break-all/word not functional
  12809. Test: fast/text/word-break-run-rounding.html
  12810. * rendering/RenderText.cpp:
  12811. (WebCore::RenderText::calcPrefWidths): Update the maximum width only on word
  12812. boundaries to avoid rounding errors.
  12813. * rendering/bidi.cpp:
  12814. (WebCore::RenderBlock::findNextLineBreak): Integrated breakAll with the
  12815. midWordBreak/wrapW mechanism. Also made the wrapW upper bound more accurate
  12816. by resetting it when tmpW is committed.
  12817. 2007-07-13 Sam Weinig <sam@webkit.org>
  12818. Reviewed by Geoff Garen.
  12819. Patch for <rdar://problem/5318394>
  12820. http site can read/write content of https site in same domain
  12821. Add protocol and port checks in isSafeScript.
  12822. * bindings/js/kjs_window.cpp:
  12823. (KJS::Window::isSafeScript):
  12824. 2007-07-13 Anders Carlsson <andersca@apple.com>
  12825. Reviewed by Mitz Pettel.
  12826. <rdar://problem/5298870>
  12827. REGRESSION: In Yahoo Mail modal dialog, OK and Cancel buttons do not work, and descriptive text is missing (14327)
  12828. http://bugs.webkit.org/show_bug.cgi?id=14327
  12829. REGRESSION (r21367): dialogArguments not set in window generated by showModalDialog
  12830. When creating popup windows/dialogs, prevent the window properties from being cleared by the initial frame load.
  12831. * loader/FrameLoader.cpp:
  12832. (WebCore::FrameLoader::FrameLoader):
  12833. (WebCore::FrameLoader::createWindow):
  12834. (WebCore::FrameLoader::clear):
  12835. (WebCore::FrameLoader::begin):
  12836. (WebCore::FrameLoader::open):
  12837. * loader/FrameLoader.h:
  12838. (WebCore::FrameLoader::setShouldClearWindowProperties):
  12839. * manual-tests/modal-dialog-arguments.html: Added.
  12840. 2007-07-13 Steve Falkenburg <sfalken@apple.com>
  12841. Update ResourceError related code to account for changes in CF interfaces.
  12842. Reviewed by Darin, Ada.
  12843. * platform/network/ResourceError.h: Change Mac conditionals to CF to share more code.
  12844. * platform/network/cf/ResourceErrorCF.cpp:
  12845. (WebCore::ResourceError::ResourceError): Modified based on CFErrorRef changes
  12846. (WebCore::ResourceError::unpackPlatformError): Ported from ResourceErrorMac.mm.
  12847. (WebCore::ResourceError::operator CFErrorRef): Ported from ResourceErrorMac.mm.
  12848. (WebCore::ResourceError::operator CFStreamError): Modified based on CFErrorRef changes.
  12849. 2007-07-13 Antti Koivisto <antti@apple.com>
  12850. Reviewed by Adele.
  12851. Fix <rdar://problem/5192256>
  12852. click() in onchange handler causes another change event (causes hang at http://forums.whirlpool.net.au/)
  12853. Guard against generating a simulated event from within a simulated event in the same node. Try to
  12854. match Firefox behavior.
  12855. * dom/EventTargetNode.cpp:
  12856. (WebCore::EventTargetNode::dispatchSimulatedMouseEvent):
  12857. (WebCore::EventTargetNode::dispatchSimulatedClick):
  12858. * dom/Node.cpp:
  12859. (WebCore::Node::Node):
  12860. * dom/Node.h:
  12861. 2007-07-13 Antti Koivisto <antti@apple.com>
  12862. Reviewed by Darin.
  12863. Fix <rdar://problem/5333387>
  12864. Combination of selection and click() on checkbox crashes
  12865. Ensure there is no pending style update before doing synchronous paint. Under certain
  12866. circumstances this ends up doing style recalc in middle of paint() which may
  12867. for example tear down the rendering tree being painted, with bad results.
  12868. * dom/ContainerNode.cpp:
  12869. (WebCore::ContainerNode::setActive):
  12870. 2007-07-13 Antti Koivisto <antti@apple.com>
  12871. Reviewed by Adele.
  12872. Fix <rdar://problem/5333365>
  12873. Calling click() is very slow
  12874. There is a 100ms delay in ContainerNode::setActive() to do an activation effect. It is used for
  12875. simulated mouse activations (using keyboard for example). However, it shouldn't be done when calling from javascript
  12876. (through click() interface) since it hangs script execution.
  12877. * html/HTMLElement.cpp:
  12878. (WebCore::HTMLElement::click):
  12879. 2007-07-13 Mitz Pettel <mitz@webkit.org>
  12880. Reviewed by Dave Hyatt.
  12881. - fix http://bugs.webkit.org/show_bug.cgi?id=13873
  12882. Incomplete repaint of replaced element's box shadow
  12883. Tests: fast/repaint/box-shadow-h.html
  12884. fast/repaint/box-shadow-v.html
  12885. * rendering/RenderHTMLCanvas.cpp:
  12886. (WebCore::RenderHTMLCanvas::layout): Added a call to adjustOverflowForBoxShadow().
  12887. * rendering/RenderImage.cpp:
  12888. (WebCore::RenderImage::layout): Ditto.
  12889. * rendering/RenderPartObject.cpp:
  12890. (WebCore::RenderPartObject::layout): Ditto.
  12891. * rendering/RenderReplaced.cpp:
  12892. (WebCore::RenderReplaced::RenderReplaced): Initialize m_hasOverflow.
  12893. (WebCore::RenderReplaced::~RenderReplaced): Added. Removes this object from the
  12894. overflow rect map if it has overflow.
  12895. (WebCore::RenderReplaced::shouldPaint): Account for overflow.
  12896. (WebCore::RenderReplaced::adjustOverflowForBoxShadow): Added. Creates or
  12897. removes an entry for this object in the global overflow rect map.
  12898. (WebCore::RenderReplaced::overflowHeight): Added.
  12899. (WebCore::RenderReplaced::overflowWidth): Added.
  12900. (WebCore::RenderReplaced::overflowLeft): Added.
  12901. (WebCore::RenderReplaced::overflowTop): Added.
  12902. (WebCore::RenderReplaced::overflowRect): Added.
  12903. * rendering/RenderReplaced.h:
  12904. 2007-07-13 Mitz Pettel <mitz@webkit.org>
  12905. Reviewed by Dave Hyatt.
  12906. - fix http://bugs.webkit.org/show_bug.cgi?id=14395
  12907. When a <p> is inside <li> two <BR>s are rendered
  12908. Test: fast/lists/marker-before-empty-inline.html
  12909. * rendering/RenderBlock.h:
  12910. * rendering/RenderListItem.cpp:
  12911. (WebCore::getParentOfFirstLineBox): Changed to skip empty inline flows that
  12912. do not actually generate any line boxes. Limited the nested lists quirk to
  12913. the case where the list is a child of the list item, to match Firefox.
  12914. * rendering/bidi.cpp:
  12915. (WebCore::requiresLineBox): Added. Factored out of skipWhitespace.
  12916. (WebCore::RenderBlock::generatesLineBoxesForInlineChild): Added. Checkes
  12917. whether the child or any of its siblings following it will generate a line
  12918. box in the flow.
  12919. (WebCore::RenderBlock::skipWhitespace):
  12920. 2007-07-13 Holger Hans Peter Freyther <zecke@selfish.org>
  12921. Reviewed by Alexey.
  12922. Move HTTP methods to parse Content-Type from xmlhttprequest.cpp
  12923. which is LGPL to HTTPParsers.cpp. As both files were written by the
  12924. same author and the advice to move them came from him I think this move
  12925. is what is meant to be done.
  12926. Move filenameFromHTTPContentDisposition to HTTPParsers as well. This parse
  12927. function uses Vector<String>::split and doesn't honor quoting. This needs
  12928. to be fixed in later versions.
  12929. http://bugs.webkit.org/show_bug.cgi?id=5954 and http://bugs.webkit.org/show_bug.cgi?id=14059
  12930. benefit from this change.
  12931. * platform/network/HTTPParsers.cpp:
  12932. (WebCore::filenameFromHTTPContentDisposition):
  12933. (WebCore::extractMIMETypeFromMediaType):
  12934. (WebCore::extractCharsetFromMediaType):
  12935. * platform/network/HTTPParsers.h:
  12936. * platform/network/cf/ResourceResponseCFNet.cpp:
  12937. * xml/xmlhttprequest.cpp:
  12938. (WebCore::XMLHttpRequest::responseMIMEType):
  12939. (WebCore::XMLHttpRequest::didReceiveResponse):
  12940. 2007-07-13 Mark Rowe <mrowe@apple.com>
  12941. Reviewed by Mitz.
  12942. Build fix. Stub out ChromeClientGdk::print and SVGEmptyChromeClient::print.
  12943. * platform/gdk/ChromeClientGdk.h:
  12944. * platform/gdk/TemporaryLinkStubs.cpp:
  12945. (ChromeClientGdk::print):
  12946. * platform/graphics/svg/SVGImageEmptyClients.h:
  12947. (WebCore::SVGEmptyChromeClient::print):
  12948. 2007-07-12 Alice Liu <alice.liu@apple.com>
  12949. Reviewed by Maciej and Steve.
  12950. fixed <rdar://4982432> window.print() needs to be implemented
  12951. * bridge/win/FrameWin.cpp:
  12952. (WebCore::Frame::print):
  12953. * page/Chrome.cpp:
  12954. (WebCore::Chrome::print):
  12955. * page/Chrome.h:
  12956. * page/ChromeClient.h:
  12957. * platform/win/TemporaryLinkStubs.cpp:
  12958. 2007-07-11 Justin Garcia <justin.garcia@apple.com>
  12959. Reviewed by Harrison.
  12960. <rdar://problem/5300379> Mail hung on option-delete
  12961. We were starting backward iteration at [container, 0] and
  12962. emitting for container over and over.
  12963. * editing/TextIterator.cpp:
  12964. (WebCore::SimplifiedBackwardsTextIterator::advance): Don't
  12965. emit characters for a node if we're starting iteration at
  12966. [container, 0]. Don't emit characters for exiting containers
  12967. if we've already done so.
  12968. 2007-07-12 Kevin Decker <kdecker@apple.com>
  12969. Reviewed by Mark Rowe.
  12970. <rdar://problem/5039463> find a good gray that works well for full frame plug-ins; consistent look for plugins
  12971. * loader/PluginDocument.cpp:
  12972. (WebCore::PluginTokenizer::createDocumentStructure): Changed values to a darker gray, per request from the HI team.
  12973. 2007-07-11 Sam Weinig <sam@webkit.org>
  12974. Reviewed by Maciej.
  12975. Patch for <rdar://problem/5329841>
  12976. Calling window.closed on a closed window causes Safari to crash
  12977. - Replaces the Frame member variable in KJS::Window for more appropriate DOMWindow
  12978. - Adds additional new null checks as necessary
  12979. - Removes bogus toBoolean method
  12980. - Removes unused scheduleClose method
  12981. Test: fast/dom/Window/window-closed-crash.html
  12982. * bindings/js/JSCustomXPathNSResolver.cpp:
  12983. (WebCore::JSCustomXPathNSResolver::create):
  12984. * bindings/js/JSDOMWindowCustom.cpp:
  12985. (WebCore::JSDOMWindow::customGetOwnPropertySlot):
  12986. (WebCore::JSDOMWindow::customPut):
  12987. * bindings/js/JSXMLHttpRequest.cpp:
  12988. (KJS::JSXMLHttpRequestPrototypeFunction::callAsFunction):
  12989. * bindings/js/kjs_events.cpp:
  12990. (WebCore::JSAbstractEventListener::handleEvent):
  12991. (WebCore::JSLazyEventListener::parseCode):
  12992. * bindings/js/kjs_window.cpp:
  12993. (KJS::Window::Window):
  12994. (KJS::Window::impl):
  12995. (KJS::Window::interpreter):
  12996. (KJS::Window::location):
  12997. (KJS::Window::find):
  12998. (KJS::allowPopUp):
  12999. (KJS::createWindow):
  13000. (KJS::canShowModalDialog):
  13001. (KJS::canShowModalDialogNow):
  13002. (KJS::showModalDialog):
  13003. (KJS::Window::getValueProperty):
  13004. (KJS::Window::childFrameGetter):
  13005. (KJS::Window::indexGetter):
  13006. (KJS::Window::namedItemGetter):
  13007. (KJS::Window::getOwnPropertySlot):
  13008. (KJS::Window::put):
  13009. (KJS::Window::isSafeScript):
  13010. (KJS::Window::setListener):
  13011. (KJS::Window::getListener):
  13012. (KJS::Window::clear):
  13013. (KJS::WindowFunc::callAsFunction):
  13014. (KJS::Window::updateLayout):
  13015. (KJS::ScheduledAction::execute):
  13016. (KJS::Window::disconnectFrame):
  13017. (KJS::Location::put):
  13018. (KJS::LocationFunc::callAsFunction):
  13019. * bindings/js/kjs_window.h:
  13020. * page/mac/WebCoreFrameBridge.mm:
  13021. (updateRenderingForBindings):
  13022. 2007-07-12 Mark Rowe <mrowe@apple.com>
  13023. Reviewed by Ada.
  13024. <rdar://problem/5329877> REGRESSION: Document::setTransformSource leaks an xmlDocPtr if called more than once per document
  13025. * dom/Document.cpp:
  13026. (WebCore::Document::setTransformSource): Free any existing m_transformSource before overwriting it, rather than simply leaking it.
  13027. * dom/Document.h:
  13028. 2007-07-12 Holger Hans Peter Freyther <zecke@selfish.org>
  13029. Reviewed by Mark Rowe.
  13030. Fix compilation of the CURL backend after the removing of accessors from ResourceHandle in r24202
  13031. * platform/network/curl/ResourceHandleManager.cpp:
  13032. (WebCore::ResourceHandleManager::setupPOST):
  13033. (WebCore::ResourceHandleManager::startJob):
  13034. 2007-07-12 Mark Rowe <mrowe@apple.com>
  13035. Reviewed by Darin.
  13036. <rdar://problem/5327189> Logic error in DeprecatedString::to{,U}Int{,64} can lead to reading past end of buffer
  13037. The fix for reading past the end of the buffer is to verify we are not at the end of the string before checking
  13038. for a leading '+' character. Rather than fixing the logic error in four nearly-identical functions I chose to
  13039. extract the common functionality into the toIntegralType helper function which the four functions call through to.
  13040. * platform/DeprecatedString.cpp:
  13041. (WebCore::isCharacterAllowedInBase):
  13042. (WebCore::toIntegralType):
  13043. (WebCore::DeprecatedString::toInt):
  13044. (WebCore::DeprecatedString::toInt64):
  13045. (WebCore::DeprecatedString::toUInt):
  13046. (WebCore::DeprecatedString::toUInt64):
  13047. 2007-07-12 George Staikos <staikos@kde.org>
  13048. Reviewed by Alexey.
  13049. Remove unused variables and fix rendering of comoboxes.
  13050. * platform/graphics/qt/ImageQt.cpp:
  13051. (WebCore::BitmapImage::draw):
  13052. * platform/qt/RenderThemeQt.cpp:
  13053. (WebCore::RenderThemeQt::paintMenuList):
  13054. 2007-07-11 Oliver Hunt <oliver@apple.com>
  13055. Reviewed by Maciej
  13056. Fix for <rdar://problem/5329712> GMail crash when trying to compose new message
  13057. * platform/win/FontDataWin.cpp:
  13058. (WebCore::FontData::containsCharacters):
  13059. 2007-07-11 Alexey Proskuryakov <ap@webkit.org>
  13060. Reviewed by Darin.
  13061. http://bugs.webkit.org/show_bug.cgi?id=14584
  13062. XMLHttpRequest treats null login/password incorrectly
  13063. Test: http/tests/xmlhttprequest/null-auth.php
  13064. * xml/xmlhttprequest.cpp:
  13065. (WebCore::XMLHttpRequest::open):
  13066. * xml/xmlhttprequest.h:
  13067. Split the open() method into three to distinguish between missing and null credentials.
  13068. * bindings/js/JSXMLHttpRequest.cpp:
  13069. (KJS::JSXMLHttpRequestPrototypeFunction::callAsFunction): Call the appropriate open().
  13070. 2007-07-11 Oliver Hunt <oliver@apple.com>
  13071. Build fix for windows
  13072. * page/Frame.cpp:
  13073. (WebCore::Frame::firstRectForRange):
  13074. 2007-07-11 Oliver Hunt <oliver@apple.com>
  13075. Reviewed by Maciej.
  13076. Fix <rdar://problem/5329481> Character range rect code for IME support needs to be crossplatform
  13077. Move -[WebCoreFrameBridge firstRectForDOMRange:] to Frame::firstRectForRange
  13078. * page/Frame.cpp:
  13079. (WebCore::Frame::firstRectForRange):
  13080. * page/Frame.h:
  13081. * page/mac/WebCoreFrameBridge.mm:
  13082. (-[WebCoreFrameBridge firstRectForDOMRange:]):
  13083. 2007-07-11 Steve Falkenburg <sfalken@apple.com>
  13084. Static analysis build fix.
  13085. Only specify /analyze (PREfast) if it is available.
  13086. Prevents entire project from rebuilding each time.
  13087. Reviewed by Hyatt.
  13088. * WebCore.vcproj/WebCore.vcproj:
  13089. 2007-07-11 George Staikos <staikos@kde.org>
  13090. Reviewed by Olliej.
  13091. Make comboboxes update when the current item is changed.
  13092. * platform/qt/PopupMenuQt.cpp:
  13093. (WebCore::PopupMenu::updateFromElement):
  13094. * platform/qt/QWebPopup.cpp:
  13095. (WebCore::QWebPopup::activeChanged):
  13096. 2007-07-11 George Staikos <staikos@kde.org>
  13097. Reviewed by Brady.
  13098. Add a destructor to cleanup the SQL handle.
  13099. * loader/icon/SQLDatabase.h:
  13100. (WebCore::SQLDatabase::~SQLDatabase):
  13101. 2007-07-11 Holger Hans Peter Freyther <zecke@selfish.org>
  13102. Reviewed by Darin.
  13103. As of http://bugs.webkit.org/show_bug.cgi?id=14527 move the
  13104. WebCore/ForwardingHeader/JavaScriptCore to JavaScriptCore
  13105. * ForwardingHeaders/JavaScriptCore: Removed.
  13106. * ForwardingHeaders/JavaScriptCore/APICast.h: Removed.
  13107. * ForwardingHeaders/JavaScriptCore/JSBase.h: Removed.
  13108. * ForwardingHeaders/JavaScriptCore/JSContextRef.h: Removed.
  13109. * ForwardingHeaders/JavaScriptCore/JSLock.h: Removed.
  13110. * ForwardingHeaders/JavaScriptCore/JSObjectRef.h: Removed.
  13111. * ForwardingHeaders/JavaScriptCore/JSStringRef.h: Removed.
  13112. * ForwardingHeaders/JavaScriptCore/JSStringRefCF.h: Removed.
  13113. * ForwardingHeaders/JavaScriptCore/JSValueRef.h: Removed.
  13114. * ForwardingHeaders/JavaScriptCore/JavaScriptCore.h: Removed.
  13115. 2007-07-11 Anders Carlsson <andersca@apple.com>
  13116. Fix build.
  13117. * platform/network/cf/ResourceHandleCFNet.cpp:
  13118. (WebCore::willSendRequest):
  13119. (WebCore::didReceiveResponse):
  13120. (WebCore::didReceiveData):
  13121. (WebCore::didFinishLoading):
  13122. (WebCore::didFail):
  13123. (WebCore::didReceiveChallenge):
  13124. 2007-07-11 George Staikos <staikos@kde.org>
  13125. Repair the build.
  13126. * platform/network/qt/ResourceHandleQt.cpp:
  13127. (WebCore::ResourceHandle::start):
  13128. 2007-07-11 Adele Peterson <adele@apple.com>
  13129. Reviewed by Darin.
  13130. Fix for <rdar://problem/5230188> REGRESSION: Active/inactive marked text is not distinguished in textfields and textareas
  13131. We were previously trying to leave room for 1px of space between the text and the underline.
  13132. This change removes that requirement so that if we don't have room for the extra space, we still draw the thick underline
  13133. touching the text.
  13134. * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::paintMarkedTextUnderline):
  13135. 2007-07-11 Anders Carlsson <andersca@apple.com>
  13136. Reviewed by Darin and Geoff.
  13137. <rdar://problem/5313508>
  13138. REGRESSION (Leopard): http/tests/xmlhttprequest/basic-auth.html hangs
  13139. Leopard Foundation now ignores credentials passed in as part of the URL so we need to pass them ourselves.
  13140. For the asynchronous case, we simply keep track of the URL and if it has a user name and password, we
  13141. pass those if we're asked to authenticate.
  13142. For the synchronous case, implement a new connection delegate and run it in a separate mode so
  13143. no other sources will fire.
  13144. * platform/network/mac/ResourceHandleMac.mm:
  13145. (WebCore::ResourceHandle::loadResourceSynchronously):
  13146. (-[WebCoreResourceHandleAsDelegate dealloc]):
  13147. (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
  13148. (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
  13149. (-[WebCoreSynchronousLoader _isDone]):
  13150. (-[WebCoreSynchronousLoader dealloc]):
  13151. (-[WebCoreSynchronousLoader connection:willSendRequest:redirectResponse:]):
  13152. (-[WebCoreSynchronousLoader connection:didReceiveAuthenticationChallenge:]):
  13153. (-[WebCoreSynchronousLoader connection:didReceiveResponse:]):
  13154. (-[WebCoreSynchronousLoader connection:didReceiveData:]):
  13155. (-[WebCoreSynchronousLoader connectionDidFinishLoading:]):
  13156. (-[WebCoreSynchronousLoader connection:didFailWithError:]):
  13157. (-[WebCoreSynchronousLoader _data]):
  13158. (-[WebCoreSynchronousLoader _response]):
  13159. (-[WebCoreSynchronousLoader _error]):
  13160. (+[WebCoreSynchronousLoader loadRequest:returningResponse:error:]):
  13161. 2007-07-11 Darin Adler <darin@apple.com>
  13162. Reviewed by Sam Weinig.
  13163. - fix <rdar://problem/5315265> REGRESSION: Leopard launch time -
  13164. there are about 190 stats of icudt36b files during launch
  13165. * platform/TextEncodingRegistry.cpp: (WebCore::atomicCanonicalTextEncodingName):
  13166. Add a special case for the empty string so we don't load the extended text
  13167. encodings just so we can return 0 for that case.
  13168. 2007-07-11 Anders Carlsson <andersca@apple.com>
  13169. Reviewed by Darin.
  13170. Remove a bunch of unneeded accessors from ResourceHandle.
  13171. * loader/icon/IconLoader.cpp:
  13172. (WebCore::IconLoader::didReceiveResponse):
  13173. (WebCore::IconLoader::didFail):
  13174. (WebCore::IconLoader::didFinishLoading):
  13175. * platform/network/ResourceHandle.cpp:
  13176. * platform/network/ResourceHandle.h:
  13177. 2007-07-09 Justin Garcia <justin.garcia@apple.com>
  13178. Reviewed by Darin.
  13179. <rdar://problem/5234383> REGRESSION: Sentence breaker method returning entire document length
  13180. The functions for moving the caret to the next/previous sentence boundary
  13181. were in many cases moving to the beginning/end of the document. The functions that
  13182. should move the caret to an equivalent position in the next/previous sentence behaved
  13183. like the aforementioned functions ought to. Put the code from the second two functions
  13184. in the first and made sure that the second two are properly FIXMEd. They're rarely
  13185. used (filed 5323691).
  13186. * editing/SelectionController.cpp:
  13187. (WebCore::SelectionController::modify): Added an option for sentenceBoundary granularity,
  13188. so that we can test the functions that were broken from JS.
  13189. * editing/visible_units.cpp:
  13190. (WebCore::startOfSentence): Removed the FIXME about 5234383.
  13191. (WebCore::endSentenceBoundary): Make this function do what nextSentencePositionBoundary
  13192. current does.
  13193. (WebCore::endOfSentence): Removed the FIXME about 5234383.
  13194. (WebCore::previousSentencePosition): Removed an incorrect FIXME.
  13195. (WebCore::nextSentencePositionBoundary): Tweaked FIXME. This function is
  13196. identical, not close to endSentenceBoundary.
  13197. (WebCore::nextSentencePosition): Removed an incorrect FIXME.
  13198. 2007-07-11 Rob Buis <buis@kde.org>
  13199. Reviewed by Darin.
  13200. http://bugs.webkit.org/show_bug.cgi?id=14453
  13201. REGRESSION: www.nzherald.co.nz almost all the formating is gone
  13202. Be less strict for the hex color definition.
  13203. * css/CSSGrammar.y:
  13204. * css/cssparser.cpp:
  13205. (WebCore::CSSParser::lex):
  13206. (WebCore::CSSParser::text):
  13207. * css/tokenizer.flex:
  13208. 2007-07-11 Rob Buis <buis@kde.org>
  13209. Reviewed by Oliver.
  13210. Forgot to commit this as part of commit r24146. Now we are sure
  13211. createElement creates elements in the xhtml namespace only.
  13212. * ksvg2/svg/SVGDocument.cpp:
  13213. * ksvg2/svg/SVGDocument.h:
  13214. 2007-07-10 Sam Weinig <sam@webkit.org>
  13215. Reviewed by Oliver.
  13216. Move more attributes from the pure JS bindings in KJS::Window
  13217. to the implementation in DOMWindow and autogenerate the new bindings
  13218. Test: fast/dom/Window/get-set-properties.html
  13219. * bindings/js/JSDOMWindowCustom.cpp:
  13220. (WebCore::JSDOMWindow::customGetOwnPropertySlot): Change to use propHashTable in
  13221. JSDOMWindow instead of KJS::Window
  13222. * bindings/js/kjs_window.cpp:
  13223. (KJS::Window::getValueProperty):
  13224. (KJS::Window::put):
  13225. * bindings/js/kjs_window.h:
  13226. (KJS::Window::):
  13227. * bindings/scripts/CodeGeneratorJS.pm: Cleanup getValueProperty and put generation
  13228. to reduce code duplication.
  13229. * page/DOMWindow.cpp:
  13230. (WebCore::DOMWindow::closed):
  13231. (WebCore::DOMWindow::length):
  13232. (WebCore::DOMWindow::name):
  13233. (WebCore::DOMWindow::setName):
  13234. (WebCore::DOMWindow::status):
  13235. (WebCore::DOMWindow::setStatus):
  13236. (WebCore::DOMWindow::defaultStatus):
  13237. (WebCore::DOMWindow::setDefaultStatus):
  13238. * page/DOMWindow.h:
  13239. (WebCore::DOMWindow::defaultstatus):
  13240. (WebCore::DOMWindow::setDefaultstatus):
  13241. * page/DOMWindow.idl:
  13242. 2007-07-10 Sam Weinig <sam@webkit.org>
  13243. Reviewed by Geoff.
  13244. Fix for <rdar://problem/5326791> XSS vulnerability: ability to set window.defaultStatus,
  13245. window.defaultstatus and window.status cross domains
  13246. Test: http/tests/security/cross-frame-access-put.html
  13247. * bindings/js/kjs_window.cpp:
  13248. (KJS::Window::put): Adds isSafeScript check for defaultStatus,
  13249. defaultstatus and status cases.
  13250. 2007-07-10 Sam Weinig <sam@webkit.org>
  13251. Fix build for BuildBot.
  13252. * page/DOMWindow.cpp:
  13253. (WebCore::DOMWindow::outerHeight):
  13254. (WebCore::DOMWindow::outerWidth):
  13255. (WebCore::DOMWindow::screenX):
  13256. (WebCore::DOMWindow::screenY):
  13257. 2007-07-10 Brady Eidson <beidson@apple.com>
  13258. Reviewed by Sam
  13259. <rdar://problem/5326653> - REGRESSION: [WebBackForwardList forwardListCount] might return incorrect result
  13260. No layout test because this is an API issue that can't be tested in DRT or the browser
  13261. * history/BackForwardList.cpp:
  13262. (WebCore::BackForwardList::forwardListCount): If the index is NoCurrentItemIndex, return 0
  13263. 2007-07-10 Sam Weinig <sam@webkit.org>
  13264. Reviewed by Darin.
  13265. Move more readonly attributes from pure JS bindings in KJS::Window
  13266. to the implementation in DOMWindow and autogenerate the new bindings.
  13267. * bindings/js/kjs_window.cpp:
  13268. (KJS::Window::getValueProperty): Sort the hashmap comment into categories
  13269. to make further migration easier.
  13270. * bindings/js/kjs_window.h: Sort the enum into categories to make further
  13271. migration easier.
  13272. (KJS::Window::):
  13273. * page/DOMWindow.cpp: Add new methods.
  13274. (WebCore::DOMWindow::focus):
  13275. (WebCore::DOMWindow::blur):
  13276. (WebCore::DOMWindow::offscreenBuffering):
  13277. (WebCore::DOMWindow::outerHeight):
  13278. (WebCore::DOMWindow::outerWidth):
  13279. (WebCore::DOMWindow::innerHeight):
  13280. (WebCore::DOMWindow::innerWidth):
  13281. (WebCore::DOMWindow::screenX):
  13282. (WebCore::DOMWindow::screenY):
  13283. (WebCore::DOMWindow::scrollX):
  13284. (WebCore::DOMWindow::scrollY):
  13285. (WebCore::DOMWindow::getComputedStyle):
  13286. (WebCore::DOMWindow::getMatchedCSSRules): Add null Document assertion.
  13287. (WebCore::DOMWindow::devicePixelRatio): Add null Frame and Page checks.
  13288. * page/DOMWindow.h:
  13289. (WebCore::DOMWindow::screenLeft):
  13290. (WebCore::DOMWindow::screenTop):
  13291. (WebCore::DOMWindow::pageXOffset):
  13292. (WebCore::DOMWindow::pageYOffset):
  13293. * page/DOMWindow.idl:
  13294. 2007-07-10 Oliver Hunt <oliver@apple.com>
  13295. Reviewed by Maciej.
  13296. Fix for <rdar://problem/5326417> Editor::unmarkText needs to be crossplatform
  13297. Missed this in earlier patch to make text marking platform independent.
  13298. * editing/Editor.cpp:
  13299. (WebCore::Editor::unmarkText):
  13300. Add platform independent impl
  13301. * editing/mac/EditorMac.mm:
  13302. Remove the old mac path.
  13303. 2007-07-10 Geoffrey Garen <ggaren@apple.com>
  13304. Reviewed by Tim Hatcher.
  13305. Added a Page counter. This helped me while investigating
  13306. <rdar://problem/5314463> 40MB of WebKit memory still allocated after
  13307. closing large email in Mail
  13308. * WebCore.xcodeproj/project.pbxproj:
  13309. * page/Page.cpp:
  13310. (WebCore::):
  13311. (WebCore::PageCounter::~PageCounter):
  13312. (WebCore::Page::Page):
  13313. (WebCore::Page::~Page):
  13314. 2007-07-10 Timothy Hatcher <timothy@apple.com>
  13315. Reviewed by Geoff.
  13316. <rdar://problem/5326126> InspectorResource holds onto more data than it needs
  13317. Reduces the fixed size of InspectorResource from 630 bytes to 224 bytes. Now
  13318. selectively pick out parts of the ResourceRequest and ResourceResponse objects
  13319. for the info needed and store that directly in InspectorResource.
  13320. The ResourceRequest and ResourceResponse objects hold a reference to the original
  13321. NSURL object, so almost double the data was being kept around. So the struct size
  13322. reduction is just the tip of the ice burg on what this really saves.
  13323. In a test of 100,000 XMLHTTPRequests using a 85 byte long data URL, I see ~21 MB less
  13324. RSIZE compared to Safari running without this change.
  13325. * page/InspectorController.cpp:
  13326. (WebCore::InspectorResource::InspectorResource):
  13327. (WebCore::InspectorResource::type):
  13328. (WebCore::addSourceToFrame):
  13329. (WebCore::scriptObjectForRequest):
  13330. (WebCore::scriptObjectForResponse):
  13331. (WebCore::InspectorController::addScriptResource):
  13332. (WebCore::InspectorController::addAndUpdateScriptResource):
  13333. (WebCore::updateResourceRequest):
  13334. (WebCore::updateResourceResponse):
  13335. (WebCore::InspectorController::updateScriptResourceRequest):
  13336. (WebCore::InspectorController::updateScriptResourceResponse):
  13337. (WebCore::InspectorController::didLoadResourceFromMemoryCache):
  13338. (WebCore::InspectorController::identifierForInitialRequest):
  13339. (WebCore::InspectorController::willSendRequest):
  13340. (WebCore::InspectorController::didReceiveResponse):
  13341. (WebCore::InspectorController::didFailLoading):
  13342. * page/InspectorController.h:
  13343. 2007-07-10 Darin Adler <darin@apple.com>
  13344. Reviewed by Brady.
  13345. - fix crash introduced by my patch for 5318732, only seen in release builds
  13346. * page/Page.cpp: (WebCore::Page::~Page): Added a missing null check.
  13347. 2007-07-10 Andrea Cavalli <amc82@cam.ac.uk>
  13348. Reviewed by George Staikos.
  13349. Fixed render theme for text field.
  13350. * platform/qt/RenderThemeQt.cpp:
  13351. (WebCore::RenderThemeQt::paintTextField):
  13352. 2007-07-10 Qing Zhao <qing@staikos.net>
  13353. Reviewed by George Staikos.
  13354. Draw focus rings for nodes that are not rendered by QStyle.
  13355. * platform/graphics/qt/GraphicsContextQt.cpp:
  13356. (WebCore::focusRingColor):
  13357. (WebCore::GraphicsContext::drawFocusRing):
  13358. * platform/qt/RenderThemeQt.cpp:
  13359. (WebCore::RenderThemeQt::supportsFocusRing):
  13360. (WebCore::RenderThemeQt::supportsFocus):
  13361. 2007-07-10 Nikolas Zimmermann <zimmermann@kde.org>
  13362. Reviewed by Geoff.
  13363. Fix 'unsigned int' overflow in CodeGeneratorJS.pm.
  13364. This fixes hashing of "SVG_FEBLEND_MODE_NORMAL". Its hashvalue exceeded 2^32, which
  13365. is no problem in perl but in the cpp code. Emulate C/C++ behaviour by using "% 2^32" in
  13366. the perl code. Testcase available in feature-branch soon (js-svg-constructors.svg).
  13367. * bindings/scripts/CodeGeneratorJS.pm:
  13368. 2007-07-10 Geoffrey Garen <ggaren@apple.com>
  13369. Reviewed by Maciej Stachowiak.
  13370. Disabled Arena recycling in RenderArena. PLT shows no regression
  13371. (possibly a small speedup), and this can reduce allocated memory in
  13372. WebKit clients by about 120K (4K per Arena * 30 Arenas).
  13373. I happened upon this optimization while investigating
  13374. <rdar://problem/5314463> WebKit hangs on to 40MB RAM after closing
  13375. large email in Mail (appears to be render tree arena allocator),
  13376. although I don't think it will come close to fixing that bug
  13377. completely.
  13378. * rendering/RenderArena.cpp:
  13379. (WebCore::RenderArena::~RenderArena): Use FinishArenaPool, which frees
  13380. the ArenaPool's Arenas immediately.
  13381. 2007-07-10 Mitz Pettel <mitz@webkit.org>
  13382. Reviewed by Hyatt.
  13383. - fix http://bugs.webkit.org/show_bug.cgi?id=14449
  13384. REGRESSION (r14345-r14375): Absolutely positioned image does not scale to containing element's height
  13385. Test: fast/replaced/absolute-position-percentage-height.html
  13386. * rendering/RenderBox.cpp:
  13387. (WebCore::RenderBox::calcReplacedHeightUsing): For positioned elements, evaluate
  13388. the percentage with respect to the container's final height.
  13389. 2007-07-10 Brady Eidson <beidson@apple.com>
  13390. Reviewed by Mark Rowe
  13391. Add 64-bit integer converters to our string classes for future work
  13392. * platform/DeprecatedString.cpp:
  13393. (WebCore::DeprecatedString::toInt64):
  13394. (WebCore::DeprecatedString::toUInt64):
  13395. * platform/DeprecatedString.h:
  13396. * platform/PlatformString.h:
  13397. * platform/String.cpp:
  13398. (WebCore::String::toInt64):
  13399. (WebCore::String::toUInt64):
  13400. * platform/StringImpl.cpp:
  13401. (WebCore::StringImpl::toInt64):
  13402. (WebCore::StringImpl::toUInt64):
  13403. * platform/StringImpl.h:
  13404. 2007-07-10 Darin Adler <darin@apple.com>
  13405. Reviewed by Anders.
  13406. - fix <rdar://problem/5318732> REGRESSION: In Mail, a crash occurs when attempting to send
  13407. a HTML based message (nytimes.com, washingtonpost.com, latimes.com)
  13408. Did an audit of calls to get the inspector and most other uses of Page* and added null
  13409. checks since Frame* can outlast its Page*.
  13410. * loader/FrameLoader.cpp:
  13411. (WebCore::FrameLoader::createWindow): Added null check.
  13412. (WebCore::FrameLoader::loadSubframe): Ditto.
  13413. (WebCore::FrameLoader::load): Ditto.
  13414. (WebCore::FrameLoader::transitionToCommitted): Ditto.
  13415. (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto.
  13416. (WebCore::FrameLoader::continueLoadAfterWillSubmitForm): Ditto.
  13417. (WebCore::FrameLoader::addExtraFieldsToRequest): Ditto.
  13418. (WebCore::FrameLoader::loadResourceSynchronously): Ditto.
  13419. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Ditto.
  13420. (WebCore::FrameLoader::requestFromDelegate): Ditto.
  13421. (WebCore::FrameLoader::canGoBackOrForward): Ditto.
  13422. (WebCore::FrameLoader::getHistoryLength): Ditto.
  13423. (WebCore::FrameLoader::historyURL): Ditto.
  13424. (WebCore::FrameLoader::cachePageForHistoryItem): Ditto.
  13425. (WebCore::FrameLoader::addBackForwardItemClippedAtTarget): Ditto.
  13426. (WebCore::FrameLoader::goToItem): Ditto.
  13427. (WebCore::FrameLoader::dispatchWindowObjectAvailable): Ditto.
  13428. (WebCore::FrameLoader::dispatchDidCommitLoad): Ditto.
  13429. (WebCore::FrameLoader::dispatchAssignIdentifierToInitialRequest): Ditto.
  13430. (WebCore::FrameLoader::dispatchWillSendRequest): Ditto.
  13431. (WebCore::FrameLoader::dispatchDidReceiveResponse): Ditto.
  13432. (WebCore::FrameLoader::dispatchDidReceiveContentLength): Ditto.
  13433. (WebCore::FrameLoader::dispatchDidFinishLoading): Ditto.
  13434. (WebCore::FrameLoader::dispatchDidLoadResourceFromMemoryCache): Ditto.
  13435. * page/ContextMenuController.h:
  13436. * page/ContextMenuController.cpp:
  13437. (WebCore::ContextMenuController::ContextMenuController): Removed unneeded and
  13438. unused Page* parameter.
  13439. (WebCore::openNewWindow): Added null check.
  13440. (WebCore::ContextMenuController::contextMenuItemSelected): Ditto.
  13441. * page/InspectorController.h:
  13442. (WebCore::InspectorController::pageDestroyed): Added. Since this object is
  13443. owned by the Page and has a back-pointer to it, it needs an explicit disconnect.
  13444. There's already a higher-level one, but this is more reliable than that.
  13445. * page/InspectorController.cpp:
  13446. (WebCore::InspectorController::windowScriptObjectAvailable): Added null check.
  13447. (WebCore::InspectorController::windowUnloading): Ditto.
  13448. * page/Page.cpp:
  13449. (WebCore::Page::Page): Updated for change in parameters of ContextMenuController
  13450. constructor.
  13451. (WebCore::Page::~Page): Added call to InspectorController pageDestroyed().
  13452. * page/Chrome.cpp: Updated includes.
  13453. * page/DragController.cpp: Ditto.
  13454. 2007-07-10 Adam Treat <adam@staikos.net>
  13455. Reviewed by George Staikos.
  13456. Bring scroll wheel out of Ludicrous Speed.
  13457. * platform/qt/WheelEventQt.cpp:
  13458. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  13459. 2007-07-09 Geoffrey Garen <ggaren@apple.com>
  13460. Reviewed by Maciej Stachowiak.
  13461. Fixed http://bugs.webkit.org/show_bug.cgi?id=13241 | <rdar://problem/5126396>
  13462. onload fires before content is finished loading (woot.com)
  13463. * dom/Document.cpp:
  13464. (WebCore::Document::close): Try to go through the normal "Am I done loading?"
  13465. machinery before dispatching the load event. As the comment indicates,
  13466. we can't do this in all cases, so the fix isn't perfect. However, a perfect
  13467. solution would require much riskier sweeping changes to the loader, which
  13468. are best left for later, I think.
  13469. * xml/XSLTProcessor.cpp:
  13470. (WebCore::XSLTProcessor::createDocumentFromSource): Removed a slightly
  13471. worse solution to the same problem.
  13472. 2007-07-10 Rob Buis <buis@kde.org>
  13473. Reviewed by Maciej.
  13474. http://bugs.webkit.org/show_bug.cgi?id=8007
  13475. createElement() and XHTML (A dynamically created table not rendered as such)
  13476. Follow the HTML5 rules of making the name lowercase and then
  13477. creating the element in the xhtml namespace.
  13478. * dom/Document.cpp:
  13479. (WebCore::Document::createElement):
  13480. * dom/Document.h:
  13481. * html/HTMLDocument.cpp:
  13482. * html/HTMLDocument.h:
  13483. 2007-07-09 Qing Zhao <qing@staikos.net>
  13484. Reviewed by George Staikos.
  13485. Add qt context menu support.
  13486. * WebCore.pro:
  13487. * platform/ContextMenu.h:
  13488. * platform/ContextMenuItem.h:
  13489. (WebCore::PlatformMenuItemDescriptionType::PlatformMenuItemDescriptionType):
  13490. * platform/qt/ContextMenuItemQt.cpp:
  13491. (WebCore::ContextMenuItem::ContextMenuItem):
  13492. (WebCore::ContextMenuItem::~ContextMenuItem):
  13493. (WebCore::ContextMenuItem::releasePlatformDescription):
  13494. (WebCore::ContextMenuItem::type):
  13495. (WebCore::ContextMenuItem::setType):
  13496. (WebCore::ContextMenuItem::action):
  13497. (WebCore::ContextMenuItem::setAction):
  13498. (WebCore::ContextMenuItem::title):
  13499. (WebCore::ContextMenuItem::setTitle):
  13500. (WebCore::ContextMenuItem::platformSubMenu):
  13501. (WebCore::ContextMenuItem::setSubMenu):
  13502. (WebCore::ContextMenuItem::setChecked):
  13503. (WebCore::ContextMenuItem::setEnabled):
  13504. (WebCore::ContextMenuItem::enabled):
  13505. * platform/qt/ContextMenuQt.cpp:
  13506. (WebCore::ContextMenu::ContextMenu):
  13507. (WebCore::ContextMenu::~ContextMenu):
  13508. (WebCore::ContextMenu::appendItem):
  13509. (WebCore::ContextMenu::itemCount):
  13510. (WebCore::ContextMenu::insertItem):
  13511. (WebCore::ContextMenu::setPlatformDescription):
  13512. (WebCore::ContextMenu::platformDescription):
  13513. 2007-07-09 Anders Carlsson <andersca@apple.com>
  13514. Build fix.
  13515. * plugins/win/PluginViewWin.cpp:
  13516. (WebCore::PluginViewWin::performRequest):
  13517. 2007-07-09 Anders Carlsson <andersca@apple.com>
  13518. Reviewed by Geoff.
  13519. Get rid of the node argument in our various script execution functions.
  13520. * bindings/js/kjs_proxy.cpp:
  13521. (WebCore::KJSProxy::evaluate):
  13522. * bindings/js/kjs_proxy.h:
  13523. * bindings/js/kjs_window.cpp:
  13524. (KJS::ScheduledAction::execute):
  13525. * dom/XMLTokenizer.cpp:
  13526. (WebCore::XMLTokenizer::endElementNs):
  13527. (WebCore::XMLTokenizer::notifyFinished):
  13528. * html/HTMLScriptElement.cpp:
  13529. (WebCore::HTMLScriptElement::evaluateScript):
  13530. * html/HTMLTokenizer.cpp:
  13531. (WebCore::HTMLTokenizer::scriptExecution):
  13532. * loader/FrameLoader.cpp:
  13533. (WebCore::FrameLoader::changeLocation):
  13534. (WebCore::FrameLoader::urlSelected):
  13535. (WebCore::FrameLoader::submitForm):
  13536. (WebCore::FrameLoader::replaceContentsWithScriptResult):
  13537. (WebCore::FrameLoader::executeScript):
  13538. * loader/FrameLoader.h:
  13539. * page/mac/WebCoreFrameBridge.mm:
  13540. (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  13541. (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
  13542. 2007-07-09 Justin Garcia <justin.garcia@apple.com>
  13543. Rolling the fix for 5290534 back in now that 5310404 has been fixed in Mail.
  13544. * editing/DeleteSelectionCommand.cpp:
  13545. (WebCore::DeleteSelectionCommand::handleGeneralDelete):
  13546. 2007-07-09 Geoffrey Garen <ggaren@apple.com>
  13547. Reviewed by Anders Carlsson.
  13548. A little more FrameLoader cleanup while working on <rdar://problem/5126396>.
  13549. Rename: "checkEmitLoadEvent" => "checkCallImplicitClose" because the function
  13550. doesn't emit the load event; it just calls implicitClose.
  13551. Rename: "m_wasLoadEventEmitted" => "m_didCallImplicitClose" because the variable
  13552. tracks whether implicitClose was called.
  13553. * dom/Document.cpp:
  13554. (WebCore::Document::implicitClose): Turned 12 lines of code into 6, adding ASSERT.
  13555. * loader/FrameLoader.h: Removed bogus declaration of non-existent emitLoadEvent().
  13556. 2007-07-09 Justin Garcia <justin.garcia@apple.com>
  13557. Reviewed by John.
  13558. REGRESSION: Crash when deleting table content in Leopard Mail
  13559. * editing/DeleteSelectionCommand.cpp:
  13560. (WebCore::DeleteSelectionCommand::handleGeneralDelete): Use a RefPtr
  13561. for the next node to delete, in case it is destroyed when the
  13562. current node is deleted. In the crash reported in the radar, we
  13563. crash because the next node is the div that holds the delete button
  13564. and it's destroyed when the node that contains the selection is removed.
  13565. 2007-07-09 Adam Treat <adam@staikos.net>
  13566. Reviewed by George Staikos.
  13567. Convert QWebFrame from a QFrame to a pure QObject to eliminate all
  13568. traces of widgets.
  13569. * page/qt/EventHandlerQt.cpp:
  13570. (WebCore::EventHandler::passSubframeEventToSubframe):
  13571. * platform/ScrollView.h:
  13572. * platform/Widget.h:
  13573. * platform/qt/PlatformScrollBarQt.cpp:
  13574. (WebCore::PlatformScrollbar::handleMouseMoveEvent):
  13575. (WebCore::PlatformScrollbar::handleMousePressEvent):
  13576. (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
  13577. * platform/qt/PopupMenuQt.cpp:
  13578. (WebCore::PopupMenu::show):
  13579. * platform/qt/ScrollViewQt.cpp:
  13580. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  13581. (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
  13582. (WebCore::ScrollView::ScrollViewPrivate::windowClipRect):
  13583. (WebCore::ScrollView::updateContents):
  13584. (WebCore::ScrollView::update):
  13585. (WebCore::ScrollView::geometryChanged):
  13586. (WebCore::ScrollView::windowToContents):
  13587. (WebCore::ScrollView::contentsToWindow):
  13588. (WebCore::ScrollView::convertChildToSelf):
  13589. (WebCore::ScrollView::convertSelfToChild):
  13590. (WebCore::ScrollView::scrollbarUnderMouse):
  13591. (WebCore::ScrollView::addChild):
  13592. (WebCore::ScrollView::paint):
  13593. * platform/qt/WidgetQt.cpp:
  13594. (WebCore::WidgetPrivate::WidgetPrivate):
  13595. (WebCore::WidgetPrivate::~WidgetPrivate):
  13596. (WebCore::WidgetPrivate::setGeometry):
  13597. (WebCore::WidgetPrivate::geometry):
  13598. (WebCore::Widget::frameGeometry):
  13599. (WebCore::Widget::setFocus):
  13600. (WebCore::Widget::setCursor):
  13601. (WebCore::Widget::show):
  13602. (WebCore::Widget::hide):
  13603. (WebCore::Widget::qwebframe):
  13604. (WebCore::Widget::setQWebFrame):
  13605. (WebCore::Widget::qwidget):
  13606. (WebCore::Widget::setQWidget):
  13607. (WebCore::Widget::setFrameGeometry):
  13608. (WebCore::Widget::isEnabled):
  13609. (WebCore::Widget::setEnabled):
  13610. (WebCore::Widget::setIsSelected):
  13611. (WebCore::Widget::invalidate):
  13612. (WebCore::Widget::invalidateRect):
  13613. (WebCore::Widget::removeFromParent):
  13614. (WebCore::Widget::geometryChanged):
  13615. (WebCore::Widget::convertToContainingWindow):
  13616. (WebCore::Widget::convertFromContainingWindow):
  13617. (WebCore::Widget::convertChildToSelf):
  13618. (WebCore::Widget::convertSelfToChild):
  13619. (WebCore::Widget::containingWindow):
  13620. 2007-07-09 Anders Carlsson <andersca@apple.com>
  13621. Reviewed by Oliver.
  13622. Add DocumentLoader::isLoadingMainResource.
  13623. * WebCore.exp:
  13624. 2007-07-09 John Sullivan <sullivan@apple.com>
  13625. Reviewed by Darin
  13626. * WebCore.exp:
  13627. * WebCore.xcodeproj/project.pbxproj:
  13628. exported String::createCFString, needed for <rdar://problem/5320208>
  13629. 2007-07-09 Mitz Pettel <mitz@webkit.org>
  13630. Reviewed by Maciej.
  13631. Test case for the bug below, which is http://bugs.webkit.org/show_bug.cgi?id=14207
  13632. * manual-tests/flash-unload-tab.html: Added.
  13633. 2007-07-09 Maciej Stachowiak <mjs@apple.com>
  13634. Reviewed by Oliver.
  13635. <rdar://problem/5295734> Repro crash closing tab/window @ maps.google.com in
  13636. WTF::HashSet<KJS::RuntimeObjectImp*, WTF::PtrHash<KJS::RuntimeObjectImp*>,
  13637. WTF::HashTraits<KJS::RuntimeObjectImp*> >::add + 11
  13638. Automated test case is not possible. Did not bother with manual test this time.
  13639. * bindings/js/kjs_dom.cpp:
  13640. (WebCore::getRuntimeObject): Check that runtime root isn't null, as well as instance;
  13641. this should cover the case where the plugin is already shut down and onunload time.
  13642. 2007-07-08 Maciej Stachowiak <mjs@apple.com>
  13643. Reviewed by Sam.
  13644. - fixed <rdar://problem/5220706> REGRESSION (TOT): repro crash in -[WebView(WebViewInternal) _addObject:forIdentifier:] [14425]
  13645. http://bugs.webkit.org/show_bug.cgi?id=14425
  13646. * bindings/js/kjs_window.cpp:
  13647. (KJS::createWindow): No longer take an immediate argument - always do immediate loads
  13648. on a newly created Window. Also, do a load of "" to make sure that the right info makes
  13649. it to the app.
  13650. (KJS::showModalDialog): Updated for above.
  13651. (KJS::WindowFunc::callAsFunction): Updated for above.
  13652. * dom/Document.cpp:
  13653. (WebCore::Document::shouldBeAllowedToLoadLocalResources): If our URL is about:blank,
  13654. we're allowed if our opener is (since the opener must have written the contents).
  13655. * loader/FrameLoader.cpp:
  13656. (WebCore::FrameLoader::changeLocation): Add a variant which takes a KURL, which it
  13657. expects to be pre-completed. This is to avoid completing "" to the opener URL.
  13658. (WebCore::FrameLoader::urlSelected): Allow loading empty URLs.
  13659. * loader/FrameLoader.h:
  13660. Test case is manual only, since it takes particular app behavior to reproduce:
  13661. * manual-tests/new-window-subresource-crash.html: Added.
  13662. 2007-07-08 Mitz Pettel <mitz@webkit.org>
  13663. Reviewed by Maciej.
  13664. - fix leaks introduced in r24099
  13665. * dom/Element.cpp:
  13666. (WebCore::Element::~Element): Do not delete the cached computed style here.
  13667. (WebCore::Element::detach): Delete the computed style here instead.
  13668. (WebCore::Element::computedStyle): Removed a redundant ref() which was
  13669. causing the leak. Changed to return 0 if the element is not attached,
  13670. because in that case there is currently no way to tell when to delete the computed
  13671. style.
  13672. 2007-07-08 Mitz Pettel <mitz@webkit.org>
  13673. Reviewed by Darin.
  13674. - fix http://bugs.webkit.org/show_bug.cgi?id=12384
  13675. getComputedStyle with td.style.display='none' reports '' for all properties except display
  13676. Test: fast/css/computed-style-without-renderer.html
  13677. Implement rich computed style for elements that do not have a renderer.
  13678. * css/CSSComputedStyleDeclaration.cpp:
  13679. (WebCore::getPositionOffsetValue): Changed to take a RenderStyle instead of
  13680. a RenderObject.
  13681. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Changed to
  13682. use the computed style returned by the node instead of going through the
  13683. renderer. Changed properties that compute by measuring the renderer to
  13684. fall back on returning the length from the RenderStyle if a renderer does
  13685. not exist.
  13686. (WebCore::CSSComputedStyleDeclaration::length): Changed to return the number
  13687. of properties we can compute even if the element has no renderer.
  13688. (WebCore::CSSComputedStyleDeclaration::copyInheritableProperties): Changed
  13689. to use the computed style returned by the node instead of going through the
  13690. renderer.
  13691. * dom/Element.cpp:
  13692. (WebCore::ElementRareData::ElementRareData): Added a computed style member,
  13693. used to cache computed style for elements that do not have a renderer.
  13694. (WebCore::ElementRareData::resetComputedStyle): Added.
  13695. (WebCore::Element::~Element): Delete the cached computed style.
  13696. (WebCore::Element::recalcStyle): Added code to delete the cached computed
  13697. style when necessary.
  13698. (WebCore::Element::computedStyle): Added. Returns the style used in rendering
  13699. the element, if available. Otherwise uses the style selector to compute style
  13700. for the element.
  13701. * dom/Element.h:
  13702. * dom/Node.cpp:
  13703. (WebCore::Node::computedStyle): Added. This method returns either the style
  13704. used in rendering the node, or the style that would be used if the node
  13705. had a renderer.
  13706. * dom/Node.h:
  13707. 2007-07-08 Mitz Pettel <mitz@webkit.org>
  13708. Reviewed by Darin.
  13709. - fix http://bugs.webkit.org/show_bug.cgi?id=14544
  13710. Scroll wheel events are ignored when the cursor is over an iframe's border
  13711. * page/mac/EventHandlerMac.mm:
  13712. (WebCore::EventHandler::passWheelEventToWidget): Changed to return false if
  13713. the event coordinates are not inside the widget's NSView hierarchy.
  13714. 2007-07-08 Rob Buis <buis@kde.org>
  13715. Reviewed by Mitz.
  13716. http://bugs.webkit.org/show_bug.cgi?id=10752
  13717. The inspector should not respond to Make Text Smaller/Bigger commands
  13718. Use the -webkit-text-size-adjust property to ignore text sizing
  13719. and do not take the zoom factor into account for line height when
  13720. -webkit-text-size-adjust is set to none.
  13721. * css/cssstyleselector.cpp:
  13722. (WebCore::CSSStyleSelector::applyProperty):
  13723. * page/inspector/inspector.css:
  13724. 2007-07-08 Darin Adler <darin@apple.com>
  13725. Reviewed by Maciej.
  13726. - fix <rdar://problem/5318994> Integer overflow in WebCore's Base64.cpp:base64Encode
  13727. * platform/Base64.cpp:
  13728. (WebCore::base64Encode): Check against a maximum size.
  13729. (WebCore::base64Decode): Ditto.
  13730. 2007-07-08 Darin Adler <darin@apple.com>
  13731. Reviewed by Maciej.
  13732. - fix <rdar://problem/5124665> WebCore secondary-thread assertion should use linked-on-or-after check instead of building on Tiger check
  13733. * platform/ThreadCheck.h: Renamed _WebCoreThreadViolationCheck to reportThreadViolation
  13734. since it's in the WebCore namespace and also we shouldn't use leading underscores since
  13735. those are reserved for the compiler and standard library. Added a new function named
  13736. setDefaultThreadViolationBehavior and an enum for the parameter. Removed the
  13737. threadViolationIsException parameter from WebCoreReportThreadViolation since we use
  13738. a global variable for it now. Got rid of the unnecessary use of do while (0) in the
  13739. WebCoreThreadViolationCheck macro -- since it's only a single function call it's already
  13740. a statement and doesn't need to be turned into one with the do while (0) trick.
  13741. * platform/mac/ThreadCheck.mm:
  13742. (WebCore::readThreadViolationBehaviorFromUserDefaults): Moved the code to read from
  13743. NSUserDefaults into this helper function. Changed it to use stringForKey instead of
  13744. objectForKey so we don't get a "method not found" if someone puts something other than
  13745. a string in there. Updated to use the new globals.
  13746. (WebCore::setDefaultThreadViolationBehavior): Added.
  13747. (WebCore::reportThreadViolation): Simplified, now that most of the work is in the
  13748. readThreadViolationBehaviorFromUserDefaults function.
  13749. (WebCoreReportThreadViolation): Changed to use a global variable instead of parameter
  13750. to determine how to report a violation. Added LogOnFirstThreadViolation, which will
  13751. log only once for each function that violates.
  13752. * WebCore.exp: Updated for above changes.
  13753. 2007-07-08 Mitz Pettel <mitz@webkit.org>
  13754. Reviewed by Darin.
  13755. - fix http://bugs.webkit.org/show_bug.cgi?id=14221
  13756. Repro crash (ASSERTION FAILED: oldText in RenderBlock::updateFirstLetter() during relayout of :before content with first-letter style)
  13757. Test: fast/css-generated-content/before-with-first-letter.html
  13758. * rendering/RenderContainer.cpp:
  13759. (WebCore::RenderContainer::updateBeforeAfterContentForContainer): If a child
  13760. of the existing 'before' container is not text, do not assume that it is an
  13761. image, since it can also be an inline wrapping a first-letter. In that case,
  13762. do not update its style (so in particular, keep it a FIRST_LETTER type style)
  13763. and leave it to updateFirstLetter() to take care of.
  13764. 2007-07-07 Sam Weinig <sam@webkit.org>
  13765. Reviewed by Oliver Hunt.
  13766. Bailout early in Window::put() if attribute is readonly to avoid
  13767. extra calls to isSafeScript().
  13768. * bindings/js/kjs_window.cpp:
  13769. (KJS::Window::put):
  13770. 2007-07-07 Darin Adler <darin@apple.com>
  13771. Reviewed by Oliver Hunt.
  13772. - fix <rdar://problem/5292364> REGRESSION: ZX Spectrum 3.0 widget - graphic anomalies in widget window frame
  13773. Updated Dashboard quirk so it affects fill, stroke, and clip, rather than just stroke.
  13774. Test: fast/canvas/fill-stroke-clip-reset-path.html
  13775. * html/CanvasRenderingContext2D.h: Added clearPathForDashboardBackwardCompatibilityMode.
  13776. * html/CanvasRenderingContext2D.cpp:
  13777. (WebCore::CanvasRenderingContext2D::clearPathForDashboardBackwardCompatibilityMode): Added.
  13778. (WebCore::CanvasRenderingContext2D::fill): Call the new function.
  13779. (WebCore::CanvasRenderingContext2D::stroke): Replaced in-line code with a call to the new function.
  13780. (WebCore::CanvasRenderingContext2D::clip): Call the new function.
  13781. 2007-07-07 Rob Buis <buis@kde.org>
  13782. Reviewed and tweaked by Darin.
  13783. http://bugs.webkit.org/show_bug.cgi?id=8994
  13784. Canvas doesn't reset on resize
  13785. Also reset the rendering context when resetting the canvas.
  13786. * html/HTMLCanvasElement.cpp:
  13787. (WebCore::HTMLCanvasElement::reset):
  13788. (WebCore::HTMLCanvasElement::drawingContext):
  13789. 2007-07-07 Alexey Proskuryakov <ap@webkit.org>
  13790. Reviewed by Maciej.
  13791. http://bugs.webkit.org/show_bug.cgi?id=14525
  13792. Support exslt:node-set()
  13793. Test: fast/xsl/exslt-node-set.xml
  13794. * xml/XSLTExtensions.cpp: Added.
  13795. (WebCore::exsltNodeSetFunction): A copy of exslt:node-set() implementation
  13796. from libexslt 1.1.11 (shipped with Tiger).
  13797. (WebCore::registerXSLTExtensions): This function registers any WebCore-provided
  13798. extensions on a context. Currently, the only extension is exslt:node-set().
  13799. * xml/XSLTExtensions.h: Added.
  13800. * xml/XSLTProcessor.cpp:
  13801. (WebCore::XSLTProcessor::transformToString):
  13802. Register extensions when creating a context.
  13803. * WebCore.pro:
  13804. * WebCore.vcproj/WebCore.vcproj:
  13805. * WebCore.xcodeproj/project.pbxproj:
  13806. * WebCoreSources.bkl:
  13807. Add XSLTExtensions.{h,cpp} to projects.
  13808. 2007-07-06 Maciej Stachowiak <mjs@apple.com>
  13809. Reviewed by Oliver.
  13810. - fixed <rdar://problem/5133420> ASSERT in WebDocumentLoaderMac::decreaseLoadCount() un-discarding Gmail message
  13811. test case: fast/loader/early-load-cancel.html
  13812. * loader/ResourceLoader.cpp:
  13813. (WebCore::ResourceLoader::didCancel): Don't send cancel-related client callbacks
  13814. if we never even sent willSendRequest because we were deferred.
  13815. 2007-07-06 Oliver Hunt <oliver@apple.com>
  13816. Reviewed by Maciej.
  13817. Pulled a number of methods from WebKit and WebCoreFrameBridge into
  13818. C++ objects.
  13819. * WebCore.exp:
  13820. * WebCore.xcodeproj/project.pbxproj:
  13821. * editing/Editor.cpp:
  13822. (WebCore::Editor::replaceMarkedText):
  13823. From -[WebCoreFrameBridge replaceMarkedTextWithText:]
  13824. * editing/Editor.h:
  13825. * page/Frame.cpp:
  13826. (WebCore::Frame::setMarkedTextRange):
  13827. Pulled platform independent logic from Mac specific implementation
  13828. (WebCore::Frame::selectRangeInMarkedText):
  13829. Converted from -[WebHTMLView _selectRangeInMarkedText:]
  13830. * page/Frame.h:
  13831. * page/mac/FrameMac.mm:
  13832. (WebCore::Frame::setMarkedTextRange):
  13833. Now only does Mac specific logic when manipulating initial
  13834. NSAttributedString
  13835. * page/mac/WebCoreFrameBridge.h:
  13836. * page/mac/WebCoreFrameBridge.mm:
  13837. Removed -[WebCoreFrameBridge replaceMarkedTextWithText:]
  13838. 2007-07-06 Mitz Pettel <mitz@webkit.org>
  13839. Reviewed by Darin.
  13840. - fix http://bugs.webkit.org/show_bug.cgi?id=14545
  13841. REGRESSION (r21854-r21869): Repro crash in RenderBlock::updateFirstLetter @ nola.com/rose/
  13842. Test: fast/css/first-letter-capitalized.html
  13843. * rendering/RenderBlock.cpp:
  13844. (WebCore::RenderBlock::updateFirstLetter): Moved the call to setFirstLetter
  13845. further down so that the first letter is not destroyed if a text transform
  13846. is applied to the remaining text fragment when it is add to the render tree.
  13847. * rendering/RenderText.cpp:
  13848. (WebCore::RenderText::previousCharacter): Factored out of setTextInternal.
  13849. (WebCore::RenderText::setTextInternal): Changed to call previousCharacter().
  13850. * rendering/RenderText.h:
  13851. * rendering/RenderTextFragment.cpp:
  13852. (WebCore::RenderTextFragment::previousCharacter): Override to return the
  13853. character in the original string before the start of the fragment.
  13854. * rendering/RenderTextFragment.h:
  13855. 2007-07-06 Mitz Pettel <mitz@webkit.org>
  13856. Reviewed by Beth.
  13857. - fix http://bugs.webkit.org/show_bug.cgi?id=14536
  13858. Unnecessary layout done when mousing down in text field
  13859. No test possible because there is no change in functionality.
  13860. * rendering/RenderTextControl.cpp:
  13861. (WebCore::RenderTextControl::setStyle): Reset the height and the width in
  13862. the old style to avoid getting a layout hint as a result of having mutated
  13863. the old style during layout.
  13864. (WebCore::RenderTextControl::layout): Update children's layout if an inner
  13865. block's dimensions should change. This need for layout was previously masked
  13866. by the bug.
  13867. 2007-07-06 Brady Eidson <beidson@apple.com>
  13868. Fix builds that use IconDatabaseNone.cpp - better, this time
  13869. * loader/icon/IconDatabaseNone.cpp:
  13870. (WebCore::IconDatabase::isOpen):
  13871. 2007-07-06 Brady Eidson <beidson@apple.com>
  13872. Fix builds that use IconDatabaseNone.cpp
  13873. * loader/icon/IconDatabaseNone.cpp:
  13874. (WebCore::IconDatabase::databasePath):
  13875. 2007-07-06 John Sullivan <sullivan@apple.com>
  13876. Reviewed by Brady
  13877. - WebCore part of fix for:
  13878. <rdar://problem/5310739> Time Machine shouldn't back up WebKit's icon database files
  13879. * loader/icon/IconDatabase.h:
  13880. * loader/icon/IconDatabase.cpp:
  13881. (WebCore::IconDatabase::isOpen):
  13882. made this method const (necessary to make IconDatabase::databasePath const)
  13883. (WebCore::IconDatabase::databasePath):
  13884. new method, returns SQLDatabase's path if open, otherwise empty string
  13885. * loader/icon/SQLDatabase.cpp:
  13886. (WebCore::SQLDatabase::open):
  13887. don't append a null character to the m_path ivar. The appended null character was making the path()
  13888. method return a String with a trailing null, which is bad. However, there were no callers to the
  13889. path() method until now. Instead of appending a null character to the ivar, use charactersWithNullTermination()
  13890. instead of characters() when opening the database.
  13891. * loader/icon/SQLDatabase.h:
  13892. (WebCore::SQLDatabase::isOpen):
  13893. made this method const (necessary to make IconDatabase::databasePath const)
  13894. (WebCore::SQLDatabase::path):
  13895. made this method const (not required for these changes, but seemed worth doing at the same time)
  13896. * WebCore.exp:
  13897. added symbol for IconDatabase::databasePath
  13898. 2007-07-06 George Staikos <staikos@kde.org>
  13899. No real functional change - just move the localizations out and
  13900. stick some placeholder text in.
  13901. * platform/qt/Localizations.cpp: Added.
  13902. (WebCore::submitButtonDefaultLabel):
  13903. (WebCore::inputElementAltText):
  13904. (WebCore::resetButtonDefaultLabel):
  13905. (WebCore::defaultLanguage):
  13906. (WebCore::searchableIndexIntroduction):
  13907. (WebCore::fileButtonChooseFileLabel):
  13908. (WebCore::fileButtonNoFileSelectedLabel):
  13909. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  13910. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  13911. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  13912. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  13913. (WebCore::contextMenuItemTagDownloadImageToDisk):
  13914. (WebCore::contextMenuItemTagCopyImageToClipboard):
  13915. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  13916. (WebCore::contextMenuItemTagCopy):
  13917. (WebCore::contextMenuItemTagGoBack):
  13918. (WebCore::contextMenuItemTagGoForward):
  13919. (WebCore::contextMenuItemTagStop):
  13920. (WebCore::contextMenuItemTagReload):
  13921. (WebCore::contextMenuItemTagCut):
  13922. (WebCore::contextMenuItemTagPaste):
  13923. (WebCore::contextMenuItemTagNoGuessesFound):
  13924. (WebCore::contextMenuItemTagIgnoreSpelling):
  13925. (WebCore::contextMenuItemTagLearnSpelling):
  13926. (WebCore::contextMenuItemTagSearchWeb):
  13927. (WebCore::contextMenuItemTagLookUpInDictionary):
  13928. (WebCore::contextMenuItemTagOpenLink):
  13929. (WebCore::contextMenuItemTagIgnoreGrammar):
  13930. (WebCore::contextMenuItemTagSpellingMenu):
  13931. (WebCore::contextMenuItemTagShowSpellingPanel):
  13932. (WebCore::contextMenuItemTagCheckSpelling):
  13933. (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
  13934. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  13935. (WebCore::contextMenuItemTagFontMenu):
  13936. (WebCore::contextMenuItemTagBold):
  13937. (WebCore::contextMenuItemTagItalic):
  13938. (WebCore::contextMenuItemTagUnderline):
  13939. (WebCore::contextMenuItemTagOutline):
  13940. (WebCore::contextMenuItemTagWritingDirectionMenu):
  13941. (WebCore::contextMenuItemTagDefaultDirection):
  13942. (WebCore::contextMenuItemTagLeftToRight):
  13943. (WebCore::contextMenuItemTagRightToLeft):
  13944. (WebCore::contextMenuItemTagInspectElement):
  13945. (WebCore::searchMenuNoRecentSearchesText):
  13946. (WebCore::searchMenuRecentSearchesText):
  13947. (WebCore::searchMenuClearRecentSearchesText):
  13948. (WebCore::AXWebAreaText):
  13949. (WebCore::AXLinkText):
  13950. (WebCore::AXListMarkerText):
  13951. (WebCore::AXImageMapText):
  13952. (WebCore::AXHeadingText):
  13953. * platform/qt/TemporaryLinkStubs.cpp:
  13954. 2007-07-06 Geoffrey Garen <ggaren@apple.com>
  13955. Reviewed by Anders Carlsson.
  13956. A little more FrameLoader cleanup while working on <rdar://problem/5126396>.
  13957. Moved url() and URL() methods next to each other to highlight their subtlety.
  13958. * loader/FrameLoader.cpp:
  13959. (WebCore::FrameLoader::url):
  13960. * loader/FrameLoader.h:
  13961. 2007-07-06 Geoffrey Garen <ggaren@apple.com>
  13962. Reviewed by Anders Carlsson.
  13963. A little FrameLoader cleanup while working on <rdar://problem/5126396>.
  13964. Renamed endIfNotLoading() to endIfNotLoadingMainResource() because "loading"
  13965. and "loadingMainResource" have distinct meanings and this function
  13966. honors the latter.
  13967. (WebCore::FrameLoader::endIfNotLoadingMainResource): Protect after the
  13968. early return to avoid ref count churn.
  13969. * loader/FrameLoader.h:
  13970. (WebCore::FrameLoader::isLoadingMainResource): Inlined this function.
  13971. 2007-07-06 Adam Treat <adam@staikos.net>
  13972. Reviewed by George Staikos.
  13973. Convert QWebFrame to a QFrame from a scroll area.
  13974. * page/qt/EventHandlerQt.cpp:
  13975. (WebCore::EventHandler::passSubframeEventToSubframe):
  13976. (WebCore::EventHandler::passWheelEventToWidget):
  13977. (WebCore::EventHandler::createDraggingClipboard):
  13978. (WebCore::EventHandler::passMousePressEventToScrollbar):
  13979. * platform/ScrollView.h:
  13980. * platform/Widget.h:
  13981. * platform/qt/PlatformScrollBar.h:
  13982. * platform/qt/PlatformScrollBarQt.cpp:
  13983. (WebCore::PlatformScrollbar::setRect):
  13984. (WebCore::PlatformScrollbar::frameGeometry):
  13985. (WebCore::PlatformScrollbar::setFrameGeometry):
  13986. (WebCore::PlatformScrollbar::handleMouseMoveEvent):
  13987. (WebCore::PlatformScrollbar::handleMousePressEvent):
  13988. (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
  13989. * platform/qt/ScrollViewQt.cpp:
  13990. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  13991. (WebCore::ScrollView::ScrollViewPrivate::~ScrollViewPrivate):
  13992. (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
  13993. (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
  13994. (WebCore::ScrollView::ScrollViewPrivate::valueChanged):
  13995. (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
  13996. (WebCore::ScrollView::ScrollViewPrivate::windowClipRect):
  13997. (WebCore::ScrollView::ScrollView):
  13998. (WebCore::ScrollView::~ScrollView):
  13999. (WebCore::ScrollView::setScrollArea):
  14000. (WebCore::ScrollView::horizontalScrollBar):
  14001. (WebCore::ScrollView::verticalScrollBar):
  14002. (WebCore::ScrollView::updateContents):
  14003. (WebCore::ScrollView::update):
  14004. (WebCore::ScrollView::visibleWidth):
  14005. (WebCore::ScrollView::visibleHeight):
  14006. (WebCore::ScrollView::visibleContentRect):
  14007. (WebCore::ScrollView::setContentsPos):
  14008. (WebCore::ScrollView::resizeContents):
  14009. (WebCore::ScrollView::setFrameGeometry):
  14010. (WebCore::ScrollView::geometryChanged):
  14011. (WebCore::ScrollView::contentsX):
  14012. (WebCore::ScrollView::contentsY):
  14013. (WebCore::ScrollView::contentsWidth):
  14014. (WebCore::ScrollView::contentsHeight):
  14015. (WebCore::ScrollView::windowToContents):
  14016. (WebCore::ScrollView::contentsToWindow):
  14017. (WebCore::ScrollView::scrollOffset):
  14018. (WebCore::ScrollView::maximumScroll):
  14019. (WebCore::ScrollView::scrollBy):
  14020. (WebCore::ScrollView::scrollRectIntoViewRecursively):
  14021. (WebCore::ScrollView::hScrollbarMode):
  14022. (WebCore::ScrollView::vScrollbarMode):
  14023. (WebCore::ScrollView::suppressScrollbars):
  14024. (WebCore::ScrollView::setHScrollbarMode):
  14025. (WebCore::ScrollView::setVScrollbarMode):
  14026. (WebCore::ScrollView::setScrollbarsMode):
  14027. (WebCore::ScrollView::setStaticBackground):
  14028. (WebCore::ScrollView::inWindow):
  14029. (WebCore::ScrollView::updateScrollbars):
  14030. (WebCore::ScrollView::scrollbarUnderMouse):
  14031. (WebCore::ScrollView::addChild):
  14032. (WebCore::ScrollView::removeChild):
  14033. (WebCore::ScrollView::paint):
  14034. (WebCore::ScrollView::wheelEvent):
  14035. (WebCore::ScrollView::scroll):
  14036. (WebCore::ScrollView::windowResizerRect):
  14037. (WebCore::ScrollView::resizerOverlapsContent):
  14038. (WebCore::ScrollView::adjustOverlappingScrollbarCount):
  14039. (WebCore::ScrollView::setParent):
  14040. (WebCore::ScrollView::addToDirtyRegion):
  14041. (WebCore::ScrollView::scrollBackingStore):
  14042. (WebCore::ScrollView::updateBackingStore):
  14043. * platform/qt/WidgetQt.cpp:
  14044. (WebCore::WidgetPrivate::canvas):
  14045. (WebCore::WidgetPrivate::setGeometry):
  14046. (WebCore::WidgetPrivate::geometry):
  14047. (WebCore::Widget::setQWidget):
  14048. (WebCore::Widget::paint):
  14049. (WebCore::Widget::originalGeometry):
  14050. (WebCore::Widget::geometryChanged):
  14051. 2007-07-06 Anders Carlsson <andersca@apple.com>
  14052. Reviewed by Mitz.
  14053. <rdar://problem/5280532>
  14054. REGRESSION: Can't access nested embed by document.name if object is not immediate parent
  14055. Traverse up the tree looking for an object element.
  14056. * html/HTMLEmbedElement.cpp:
  14057. (WebCore::HTMLEmbedElement::getInstance):
  14058. 2007-07-06 George Staikos <staikos@kde.org>
  14059. Qt build fix: Don't clobber qmake variables that are already set.
  14060. * WebCore.pro:
  14061. 2007-07-05 Maciej Stachowiak <mjs@apple.com>
  14062. Reviewed by Antti.
  14063. - <rdar://problem/5311093> JavaScriptCore fails to build with strict-aliasing warnings
  14064. * platform/StringHash.h:
  14065. (WTF::): Adapt to newer way to do storage types.
  14066. 2007-07-06 Bernhard Rosenkraenzer <bero@arklinux.org>
  14067. Reviewed by Sam.
  14068. Fix for http://bugs.webkit.org/show_bug.cgi?id=13985
  14069. Bug 13985: WebCore/rendering/RenderTable.cpp fails to compile with gcc 4.2.x
  14070. * rendering/RenderTable.cpp:
  14071. (WebKit::RenderTable::calcBorderLeft)
  14072. (WebKit::RenderTable::calcBorderRight)
  14073. 2007-07-06 Maxime Britto <mbritto@pleyo.com>
  14074. Reviewed by Maciej.
  14075. Fix http://bugs.webkit.org/show_bug.cgi?id=13038
  14076. Bug 13038: ASSERTION FAILED: item->target().isEmpty() || m_mainFrame->tree()->find(item->target()) == m_mainFrame
  14077. Modify an ASSERT in goToItem related to going back/forward in history. We don't need to check the frameset if the target is _blank.
  14078. The attached test case is a manual one since it relies on having pages opened in tabs in Safari.
  14079. * manual-tests/goBack-blank-tab-page.html: Added.
  14080. * manual-tests/resources/before-go-back.html: Added.
  14081. * manual-tests/resources/will-go-back.html: Added.
  14082. * page/Page.cpp:
  14083. (WebCore::Page::goToItem):
  14084. 2007-07-06 Mitz Pettel <mitz@webkit.org>
  14085. Reviewed by Maciej.
  14086. - fix http://bugs.webkit.org/show_bug.cgi?id=14400
  14087. Assertion failure (SHOULD NEVER BE REACHED) going back on YouTube
  14088. Test: fast/forms/button-state-restore.html
  14089. * dom/Document.h:
  14090. (WebCore::Document::isFormElementRegistered): Added.
  14091. * html/HTMLGenericFormElement.cpp:
  14092. (WebCore::HTMLGenericFormElement::closeRenderer): Restore saved form
  14093. element state only if the element is registered with the document to
  14094. have its state saved.
  14095. 2007-07-06 Mitz Pettel <mitz@webkit.org>
  14096. Reviewed by Maciej.
  14097. - fix http://bugs.webkit.org/show_bug.cgi?id=14487
  14098. Incomplete repaint of background and border of boxes with -webkit-border-fit:lines
  14099. Test: fast/repaint/border-fit-lines.html
  14100. * rendering/RenderObject.cpp:
  14101. (WebCore::RenderObject::repaintAfterLayoutIfNeeded): Do a full repaint if
  14102. -webkit-border-fit:lines was specified.
  14103. 2007-07-06 Tony Chang <idealisms@gmail.com>
  14104. Reviewed by Maciej.
  14105. http://bugs.webkit.org/show_bug.cgi?id=14516
  14106. Bug 14516: crash loading multipart/x-mixed-replace data on windows safari
  14107. NULL check m_resourceData to prevent a crash in Safari on Windows.
  14108. * loader/ResourceLoader.cpp:
  14109. (WebCore::ResourceLoader::clearResourceData):
  14110. 2007-07-06 Jungshik Shin <jungshik.shin@gmail.com>
  14111. Reviewed by Alexey.
  14112. - Add UTF-32 encoding support
  14113. http://bugs.webkit.org/show_bug.cgi?id=13415
  14114. Test:
  14115. - fast/encoding/utf-32-big-endian-bom.html
  14116. - fast/encoding/utf-32-big-endian-nobom.xml
  14117. - fast/encoding/utf-32-little-endian-bom.html
  14118. - fast/encoding/utf-32-little-endian-nobom.xml
  14119. * loader/TextResourceDecoder.cpp:
  14120. (WebCore::TextResourceDecoder::checkForBOM):
  14121. (WebCore::TextResourceDecoder::checkForHeadCharset):
  14122. * platform/TextDecoder.cpp:
  14123. (WebCore::TextDecoder::checkForBOM):
  14124. * platform/TextDecoder.h:
  14125. * platform/TextEncoding.cpp:
  14126. (WebCore::UTF32BigEndianEncoding):
  14127. (WebCore::UTF32LittleEndianEncoding):
  14128. * platform/TextEncoding.h:
  14129. 2007-07-06 Holger Hans Peter Freyther <zecke@selfish.org>
  14130. Reviewed by Maciej.
  14131. Start implementening RenderThemeGdk/Gtk using GtkStyle. The approach is
  14132. to allocate one native control for each widget type. And use margins, spacing,
  14133. style properties from the Widget. And for drawing use GtkStyle on the rect supplied.
  14134. This should allow nice integration and be relative resource friendly. Mozilla is using
  14135. a similiar approach. They seem to share the GdkPixmap among several operations and this
  14136. will be an obvious candidate for improvements. Create a normally big enough GdkPixmap and
  14137. use that for drawing and then set clip regions for cairo to make sure to not go beyond the
  14138. width and height.
  14139. The next steps will be to introduce states for the widgets, add more widgets, handle focus,
  14140. and various other style attributes, honor the size and margin and use that to propagate this
  14141. back to RenderStyle*.
  14142. * platform/gdk/RenderThemeGdk.cpp:
  14143. (WebCore::RenderThemeGdk::RenderThemeGdk):
  14144. (WebCore::RenderThemeGdk::setCheckboxSize):
  14145. (WebCore::RenderThemeGdk::paintCheckbox):
  14146. (WebCore::RenderThemeGdk::setRadioSize):
  14147. (WebCore::RenderThemeGdk::paintRadio):
  14148. (WebCore::RenderThemeGdk::paintButton):
  14149. (WebCore::RenderThemeGdk::copyToContext):
  14150. (WebCore::RenderThemeGdk::gtkButton):
  14151. (WebCore::RenderThemeGdk::gtkCheckbox):
  14152. (WebCore::RenderThemeGdk::gtkRadioButton):
  14153. (WebCore::RenderThemeGdk::gtkWindowContainer):
  14154. * platform/gdk/RenderThemeGdk.h:
  14155. 2007-07-06 Rob Buis <buis@kde.org>
  14156. Reviewed by Adam.
  14157. http://bugs.webkit.org/show_bug.cgi?id=14442
  14158. Adding a stop with value 1.0 to a gradient that has already been used has no effect
  14159. Implement start and end stop handling differently so they are not
  14160. in the color stop array.
  14161. * html/CanvasGradient.cpp:
  14162. (WebCore::compareStops):
  14163. (WebCore::CanvasGradient::getColor):
  14164. (WebCore::CanvasGradient::findStop):
  14165. 2007-07-06 Adam Roben <aroben@apple.com>
  14166. Fix <rdar://problem/5301994> Garbled text still showing on some sites
  14167. Replace calls to GetGlyphIndices with wkGetGlyphs.
  14168. Reviewed by Alice.
  14169. * platform/win/GlyphPageTreeNodeWin.cpp:
  14170. (WebCore::GlyphPage::fill): Use wkGetGlyphs.
  14171. * platform/win/FontDataWin.cpp:
  14172. (WebCore::FontData::containsCharacters):
  14173. 2007-07-06 Matt Lilek <pewtermoose@gmail.com>
  14174. Not reviewed - Windows build fix.
  14175. * bridge/win/FrameWin.cpp:
  14176. (WebCore::imageFromSelection):
  14177. 2007-07-06 George Staikos <staikos@kde.org>
  14178. Reviewed by Maciej.
  14179. Switch USE(ICONDATABASE) to ENABLE(ICONDATABASE) and activate the
  14180. flag via the .pro file
  14181. * WebCore.pro:
  14182. * loader/icon/IconDatabase.h:
  14183. 2007-07-05 John Sullivan <sullivan@apple.com>
  14184. Reviewed by Adam
  14185. - WebCore part of fix for <rdar://problem/5315033>
  14186. * rendering/RenderObject.h:
  14187. replaced PaintRestrictionSelectionOnlyWhiteText with PaintRestrictionSelectionOnlyBlackText
  14188. (WebCore::RenderObject::PaintInfo::PaintInfo):
  14189. replaced forceWhiteText with forceBlackText
  14190. * rendering/RenderObject.cpp:
  14191. (WebCore::RenderObject::addLineBoxRects):
  14192. added a useSelectionHeight parameter, which defaults to false; this method is unimplemented
  14193. at this level so this has no effect.
  14194. * rendering/RenderText.h:
  14195. * rendering/RenderText.cpp:
  14196. (WebCore::RenderText::addLineBoxRects):
  14197. added a useSelectionHeight parameter, which defaults to false. If true, use the vertical position
  14198. and height returned by selectionRect rather than replacing it with the more tight-fitting position
  14199. and height of the line box.
  14200. * dom/Range.h:
  14201. * dom/Range.cpp:
  14202. (WebCore::Range::addLineBoxRects):
  14203. added a useSelectionHeight parameter, which defaults to false. Passes this along to RenderObject.
  14204. * page/Frame.h:
  14205. renamed parameter to selectionImage
  14206. * page/Frame.cpp:
  14207. (WebCore::Frame::selectionTextRects):
  14208. pass true for addLineBoxRects new useSelectionHeight parameter, so the rects returned by this new
  14209. method will match the height that the selection would be painted here
  14210. (WebCore::Frame::paint):
  14211. updated for white->black name changes
  14212. * page/mac/FrameMac.mm:
  14213. (WebCore::Frame::selectionImage):
  14214. updated for white->black name changes
  14215. * rendering/InlineFlowBox.cpp:
  14216. (WebCore::InlineFlowBox::paintTextDecorations):
  14217. updated for white->black name changes
  14218. * rendering/RenderLayer.cpp:
  14219. (WebCore::RenderLayer::paintLayer):
  14220. updated for white->black name changes
  14221. * rendering/InlineTextBox.cpp:
  14222. (WebCore::InlineTextBox::paint):
  14223. updated for white->black name changes, and actually use black instead of white. This was the goal
  14224. of all the name changes.
  14225. 2007-07-05 Anders Carlsson <andersca@apple.com>
  14226. Reviewed by Oliver.
  14227. Fix layout test failures.
  14228. * loader/FrameLoader.cpp:
  14229. (WebCore::FrameLoader::commitProvisionalLoad):
  14230. Don't make a representation if we're creating the initial document.
  14231. 2007-07-05 Alp Toker <alp.toker@collabora.co.uk>
  14232. Fix Bug 14388: Input in text fields limited to 1024 characters
  14233. http://bugs.webkit.org/show_bug.cgi?id=14388
  14234. Slightly modified by Adam Roben.
  14235. Reviewed by Adele.
  14236. Tests: fast/forms/input-implicit-length-limit.html
  14237. fast/forms/input-maxlength.html
  14238. * html/HTMLInputElement.cpp: Bump limit to 524288.
  14239. (WebCore::HTMLInputElement::init):
  14240. (WebCore::HTMLInputElement::parseMappedAttribute):
  14241. * html/HTMLInputElement.h:
  14242. 2007-07-05 Anders Carlsson <andersca@apple.com>
  14243. Build fix.
  14244. * loader/FrameLoader.cpp:
  14245. (WebCore::FrameLoader::init):
  14246. 2007-07-05 Sam Weinig <sam@webkit.org>
  14247. Reviewed by Geoff.
  14248. Add focus, blur and close functions to DOMWindow implementation class
  14249. and move bindings from Window to JSDOMWindow.
  14250. * bindings/js/JSDOMWindowCustom.cpp:
  14251. (WebCore::JSDOMWindow::customGetOwnPropertySlot):
  14252. * bindings/js/kjs_window.cpp:
  14253. (KJS::Window::getOwnPropertySlot):
  14254. (KJS::WindowFunc::callAsFunction):
  14255. * bindings/js/kjs_window.h:
  14256. (KJS::Window::):
  14257. * bindings/scripts/CodeGeneratorJS.pm: Move prototype function declaration from
  14258. the implementation to the header.
  14259. * page/DOMWindow.cpp:
  14260. (WebCore::DOMWindow::focus):
  14261. (WebCore::DOMWindow::blur):
  14262. (WebCore::DOMWindow::close):
  14263. * page/DOMWindow.h:
  14264. * page/DOMWindow.idl:
  14265. 2007-07-05 Justin Garcia <justin.garcia@apple.com>
  14266. Reviewed by Harrison.
  14267. <rdar://problem/5279521> REGRESSION: In Mail, a crash occurs at WebCore::Range::startPosition() when attempting to apply alignment to selected image/text in message body
  14268. * editing/TextIterator.cpp:
  14269. (WebCore::TextIterator::exitNode): Previously emitted content shouldn't have
  14270. to come from a text node in order to emit a '\n' as we exit block containers.
  14271. 2007-07-05 Anders Carlsson <andersca@apple.com>
  14272. Reviewed by Geoff.
  14273. <rdar://problem/5315284> REGRESSION: Leopard Launch Time - plugins are being accessed at startup.
  14274. Set a response that has a MIME type of "text/html" on the document loader so WebKit won't refresh the
  14275. plugin database looking for a plug-in that can handle the document's MIME type (which will be null anyway).
  14276. * loader/FrameLoader.cpp:
  14277. (WebCore::FrameLoader::init):
  14278. 2007-07-05 Anders Carlsson <andersca@apple.com>
  14279. Reviewed by Oliver.
  14280. <rdar://problem/5106788>
  14281. WebKit loads user style sheets too late as seen in Mail (breaks DataDetectors; Mail flashes wrong font)
  14282. Let the document know when the user style sheet is loading so that it try not to display anything
  14283. until the user style sheet has finished loading.
  14284. * page/Frame.cpp:
  14285. (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
  14286. (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader):
  14287. (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
  14288. (WebCore::Frame::setUserStyleSheetLocation):
  14289. 2007-07-05 Sam Weinig <sam@webkit.org>
  14290. Reviewed by Darin.
  14291. Move JSDOMWindow overriding getOwnPropertySlot logic from KJS::Window
  14292. up into JSDOMWindow. No change in functionality so no testcase required.
  14293. * bindings/js/JSDOMWindowCustom.cpp:
  14294. (WebCore::JSDOMWindow::customGetOwnPropertySlot):
  14295. * bindings/js/kjs_window.cpp:
  14296. (KJS::Window::getOwnPropertySlot):
  14297. * bindings/js/kjs_window.h:
  14298. 2007-07-05 Mitz Pettel <mitz@webkit.org>
  14299. Reviewed and Landed by Sam.
  14300. - fix bug 14465 for window.showModalDialog
  14301. * bindings/js/kjs_window.cpp:
  14302. (KJS::parseModalDialogFeatures):
  14303. (KJS::showModalDialog):
  14304. 2007-07-05 Sam Weinig <sam@webkit.org>
  14305. Reviewed by Mitz.
  14306. Patch for http://bugs.webkit.org/show_bug.cgi?id=14465
  14307. window.open() uses the literal "undefined" as the URL
  14308. * bindings/js/kjs_window.cpp:
  14309. (KJS::WindowFunc::callAsFunction): add checks for undefined and null values when setting the url.
  14310. * manual-tests/open-url-undefined.html: Added.
  14311. 2007-07-05 Holger Hans Peter Freyther <zecke@selfish.org>
  14312. Reviewed by Rob Buis.
  14313. Rework FontData and FontPlatformData for the Gdk work to make valgrind
  14314. happy.
  14315. Move destroying of FontConfig and Cairo objects held in FontPlatformData
  14316. to FontData::platformDestroy. The ownership of these objects is held by
  14317. FontData. This is following the Mac and Qt port at least.
  14318. Currently it is possible that FontPlatformData will not create cairo resources
  14319. in this case at least make sure the variables are initialized to 0.
  14320. Initialize x,y of the cairo_glyph_t with zero to avoid extents.x_advance depending
  14321. on subtracing with not defined values.
  14322. FontPlatformData::hash. Using FontDescription is a bad idea as we don't have a clue
  14323. about how it is packed, if holes are present, etc. The FcPattern and the m_fontMatrix
  14324. should be good enough to describe the Font. All other objects are created using these
  14325. variables
  14326. Replace C-style casts with C++ casts, in this case reinterpret_cast.
  14327. * platform/gdk/FontDataGdk.cpp:
  14328. (WebCore::FontData::platformInit): Don't assert
  14329. (WebCore::FontData::platformDestroy): Take over ownership
  14330. (WebCore::FontData::platformWidthForGlyph): initialize
  14331. (WebCore::FontData::setFont): be paranoid and assert
  14332. * platform/gdk/FontPlatformData.h:
  14333. (WebCore::FontPlatformData::FontPlatformData): Initialize everything
  14334. (WebCore::FontPlatformData::hash): make valgrind happy and don't use m_fontDescription
  14335. * platform/gdk/FontPlatformDataGdk.cpp:
  14336. (WebCore::FontPlatformData::FontPlatformData):
  14337. (WebCore::FontPlatformData::~FontPlatformData): FontData::platformDestroy will do this
  14338. (WebCore::FontPlatformData::list): Don't use C-style casts.
  14339. (WebCore::FontPlatformData::setFont): m_fontFace, m_fontMatrix, m_options might not be initialized
  14340. (WebCore::FontPlatformData::operator==): Don't use C-style casts.
  14341. 2007-07-05 Alp Toker <alp.toker@collabora.co.uk>
  14342. Reviewed by Mark Rowe.
  14343. http://bugs.webkit.org/show_bug.cgi?id=14445
  14344. GraphicsContextCairo code style cleanup
  14345. Follow the cr naming convention for cairo_t*.
  14346. Remove trailing whitespace.
  14347. Replace C casts with C++ casts.
  14348. Avoid needless casts.
  14349. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  14350. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  14351. (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
  14352. (WebCore::GraphicsContext::GraphicsContext):
  14353. (WebCore::GraphicsContext::platformContext):
  14354. (WebCore::GraphicsContext::savePlatformState):
  14355. (WebCore::GraphicsContext::restorePlatformState):
  14356. (WebCore::GraphicsContext::drawRect):
  14357. (WebCore::adjustLineToPixelBoundaries):
  14358. (WebCore::GraphicsContext::drawLine):
  14359. (WebCore::GraphicsContext::drawEllipse):
  14360. (WebCore::GraphicsContext::strokeArc): Save/restore the graphics state.
  14361. (WebCore::GraphicsContext::drawConvexPolygon):
  14362. (WebCore::GraphicsContext::fillRect):
  14363. (WebCore::GraphicsContext::clip):
  14364. (WebCore::GraphicsContext::drawFocusRing):
  14365. (WebCore::GraphicsContext::roundToDevicePixels):
  14366. (WebCore::GraphicsContext::translate):
  14367. (WebCore::GraphicsContext::origin):
  14368. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  14369. (WebCore::GraphicsContext::setPlatformStrokeStyle):
  14370. (WebCore::GraphicsContext::setPlatformFont):
  14371. (WebCore::GraphicsContext::concatCTM):
  14372. (WebCore::GraphicsContext::addInnerRoundedRectClip):
  14373. (WebCore::GraphicsContext::beginTransparencyLayer):
  14374. (WebCore::GraphicsContext::endTransparencyLayer):
  14375. (WebCore::GraphicsContext::clearRect):
  14376. (WebCore::GraphicsContext::setLineCap):
  14377. (WebCore::GraphicsContext::setLineJoin):
  14378. (WebCore::GraphicsContext::setMiterLimit):
  14379. (WebCore::GraphicsContext::setCompositeOperation):
  14380. (WebCore::GraphicsContext::beginPath):
  14381. (WebCore::GraphicsContext::addPath):
  14382. (WebCore::GraphicsContext::rotate):
  14383. (WebCore::GraphicsContext::scale):
  14384. * platform/graphics/cairo/ImageBufferCairo.cpp:
  14385. (WebCore::ImageBuffer::ImageBuffer):
  14386. * platform/graphics/cairo/ImageCairo.cpp: Avoid the confusing ctxt/context naming scheme.
  14387. (WebCore::BitmapImage::draw):
  14388. (WebCore::Image::drawPattern):
  14389. 2007-07-05 Alp Toker <alp.toker@collabora.co.uk>
  14390. Reviewed by Mark Rowe.
  14391. http://bugs.webkit.org/show_bug.cgi?id=14531
  14392. Cairo SVGImage::nativeImageForCurrentFrame() has no return
  14393. Return the Cairo surface from the frame cache.
  14394. Also add a fall-through else macro with notImplemented() so that future
  14395. ports do not make the same mistake.
  14396. * platform/graphics/svg/SVGImage.cpp:
  14397. (WebCore::SVGImage::nativeImageForCurrentFrame):
  14398. 2007-07-05 Alp Toker <alp.toker@collabora.co.uk>
  14399. Reviewed by Mark Rowe.
  14400. http://bugs.webkit.org/show_bug.cgi?id=14513
  14401. Cairo animated GIF support is broken
  14402. Implement ImageSource::frameIsCompleteAtIndex() to enable animated GIFs.
  14403. * platform/graphics/cairo/ImageSourceCairo.cpp:
  14404. (WebCore::ImageSource::frameIsCompleteAtIndex):
  14405. 2007-07-04 Matt Perry <mpComplete@gmail.com>
  14406. Reviewed by Adam.
  14407. Fix for http://bugs.webkit.org/show_bug.cgi?id=13400
  14408. Bug 13400: REGRESSION (r20809-20814): No back entry created for navigations created by assigning to document.location
  14409. <rdar://problem/5153025>
  14410. Treat userGesture as always true for setLocation, forcing a back/forward
  14411. entry to be created.
  14412. * bindings/js/JSHTMLDocumentCustom.cpp:
  14413. (WebCore::JSHTMLDocument::setLocation):
  14414. 2007-07-04 Adam Roben <aroben@apple.com>
  14415. Restore MouseEventWithHitTestResults::targetNode's old behavior
  14416. Reviewed by Mark.
  14417. Fixes fast/images/imagemap-case and fast/replace/image-map.
  14418. * page/MouseEventWithHitTestResults.cpp:
  14419. (WebCore::MouseEventWithHitTestResults::targetNode): Use the inner
  14420. node, not the inner non-shared node.
  14421. 2007-07-04 Adam Roben <aroben@apple.com>
  14422. Mac, Qt, and Gdk build fixes.
  14423. * page/EventHandler.h:
  14424. * page/gdk/EventHandlerGdk.cpp:
  14425. * page/mac/EventHandlerMac.mm:
  14426. (WebCore::EventHandler::passSubframeEventToSubframe):
  14427. * page/qt/EventHandlerQt.cpp:
  14428. 2007-07-04 Adam Roben <aroben@apple.com>
  14429. Fix the Qt/Gdk builds.
  14430. * page/gdk/EventHandlerGdk.cpp:
  14431. * page/qt/EventHandlerQt.cpp:
  14432. 2007-07-04 Adam Roben <aroben@apple.com>
  14433. Move tooltip logic down into WebCore so that it can be shared cross-platform
  14434. Reviewed by Sam.
  14435. * page/Chrome.cpp:
  14436. (WebCore::Chrome::setToolTip): Added.
  14437. * page/Chrome.h:
  14438. * page/ChromeClient.h:
  14439. * page/EventHandler.cpp:
  14440. (WebCore::EventHandler::mouseMoved): Call Chrome::setToolTip.
  14441. * platform/graphics/svg/SVGImageEmptyClients.h:
  14442. Added stubs for Gdk:
  14443. * platform/gdk/ChromeClientGdk.h:
  14444. * platform/gdk/TemporaryLinkStubs.cpp:
  14445. (ChromeClientGdk::setToolTip):
  14446. 2007-07-04 Adam Roben <aroben@apple.com>
  14447. Add Settings::showsURLsInToolTips
  14448. Reviewed by Sam.
  14449. * WebCore.exp:
  14450. * page/Settings.cpp:
  14451. (WebCore::Settings::Settings):
  14452. * page/Settings.h:
  14453. 2007-07-04 Adam Roben <aroben@apple.com>
  14454. Move logic for calling mouseDidMoveOverElement into WebCore
  14455. Reviewed by Sam.
  14456. * page/EventHandler.cpp:
  14457. (WebCore::EventHandler::mouseMoved): Added. Calls Chrome::mouseDidMoveOverElement.
  14458. (WebCore::EventHandler::handleMouseMoveEvent): Now takes an optional
  14459. HitTestResult* parameter which is used to communicate to the caller the
  14460. node the mouse is over.
  14461. * page/EventHandler.h:
  14462. * page/mac/EventHandlerMac.mm:
  14463. (WebCore::EventHandler::mouseMoved): Changed to call the overloaded
  14464. mouseMoved().
  14465. (WebCore::EventHandler::passMouseMoveEventToSubframe): Pass hoveredNode
  14466. through to the subframe so we can get the deepest node hovered, not
  14467. just the node's parent frame.
  14468. * page/win/EventHandlerWin.cpp:
  14469. (WebCore::EventHandler::passMouseMoveEventToSubframe): Ditto.
  14470. 2007-07-04 Adam Roben <aroben@apple.com>
  14471. Add Chrome::mouseDidMoveOverElement
  14472. This does the work of calling up to the ChromeClient (which will call
  14473. the UI delegate).
  14474. Reviewed by Sam.
  14475. * page/Chrome.cpp:
  14476. (WebCore::Chrome::mouseDidMoveOverElement): Added.
  14477. * page/Chrome.h:
  14478. * page/ChromeClient.h:
  14479. * platform/graphics/svg/SVGImageEmptyClients.h: Updated for change to
  14480. ChromeClient.
  14481. * platform/gdk/ChromeClientGdk.h:
  14482. * platform/gdk/TemporaryLinkStubs.cpp:
  14483. (ChromeClientGdk::mouseDidMoveOverElement):
  14484. 2007-07-04 Adam Roben <aroben@apple.com>
  14485. Changed PlatformMouseEvent to store the modifier flags of the event
  14486. Reviewed by Sam.
  14487. * platform/PlatformMouseEvent.h:
  14488. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  14489. * platform/mac/PlatformMouseEventMac.mm:
  14490. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  14491. * platform/win/PlatformMouseEventWin.cpp:
  14492. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  14493. 2007-07-04 Adam Roben <aroben@apple.com>
  14494. Add HitTestResult::setToNonShadowAncestor
  14495. Reviewed by Sam.
  14496. * page/EventHandler.cpp:
  14497. (WebCore::EventHandler::hitTestResultAtPoint): Moved logic into
  14498. HitTestResult::setToNonShadowAncestor.
  14499. * rendering/HitTestResult.cpp:
  14500. (WebCore::HitTestResult::setToNonShadowAncestor):
  14501. * rendering/HitTestResult.h:
  14502. 2007-07-04 Adam Roben <aroben@apple.com>
  14503. Change MouseEventWithHitTestResults to hold onto a HitTestResult
  14504. Reviewed by Sam.
  14505. * dom/Document.cpp:
  14506. (WebCore::Document::prepareMouseEvent):
  14507. * page/MouseEventWithHitTestResults.cpp:
  14508. (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
  14509. (WebCore::MouseEventWithHitTestResults::targetNode):
  14510. (WebCore::MouseEventWithHitTestResults::localPoint):
  14511. (WebCore::MouseEventWithHitTestResults::scrollbar):
  14512. * page/MouseEventWithHitTestResults.h:
  14513. (WebCore::MouseEventWithHitTestResults::event):
  14514. (WebCore::MouseEventWithHitTestResults::hitTestResult):
  14515. 2007-07-04 Matt Lilek <pewtermoose@gmail.com>
  14516. Not reviewed, gdk build fix.
  14517. * platform/gdk/FrameGdk.cpp:
  14518. 2007-07-05 Antti Koivisto <antti@apple.com>
  14519. Reviewed by John.
  14520. Fix Repro crash due to infinite recursion in HTMLParser::handleError @ youos.com
  14521. <rdar://problem/5237811>
  14522. It is possible to add table parts (thead etc) without table ancestor to a document fragment. If a new table element
  14523. was added to such a part, as in
  14524. div.innerHTML = '<tbody><table>';
  14525. the parser error handling code would try to pop the previous table as normal. However since
  14526. the table does not actually exist nothing would happen and parser would go to infinite recursion.
  14527. Solution here is to pop table parts one by one when handling the error inside a fragment instead of trying to pop
  14528. the table straight away (as it might not exist).
  14529. * html/HTMLParser.cpp:
  14530. (WebCore::HTMLParser::handleError):
  14531. 2007-07-04 Qing Zhao <qing@staikos.net>
  14532. Reviewed by George Staikos.
  14533. Draw menulist (comboboxes) without text overlap on the button.
  14534. * platform/qt/RenderThemeQt.cpp:
  14535. (WebCore::RenderThemeQt::setPopupPadding):
  14536. 2007-07-04 George Staikos <staikos@kde.org>
  14537. Compile
  14538. * page/qt/FrameQt.cpp:
  14539. * WebCore.pro:
  14540. 2007-07-04 Sam Weinig <sam@webkit.org>
  14541. Reviewed by Mitz.
  14542. Patch for http://bugs.webkit.org/show_bug.cgi?id=14504
  14543. REGRESSION (r23573): Amazon Book Excerpt can not be viewed in recent nightly
  14544. - Made it possible (again) to shadow window properties with local variable names.
  14545. Test: fast/dom/Window/window-property-shadowing.html
  14546. * bindings/js/JSDOMWindowCustom.cpp:
  14547. (WebCore::JSDOMWindow::customPut):
  14548. * bindings/js/kjs_window.cpp:
  14549. (KJS::Window::put):
  14550. * bindings/scripts/CodeGeneratorJS.pm:
  14551. * page/DOMWindow.idl:
  14552. 2007-07-03 Alice Liu <alice.liu@apple.com>
  14553. Reviewed by Adam.
  14554. Fixed <rdar://problem/5225119> support smart pasting on Windows
  14555. * WebCore.vcproj/WebCore.vcproj:
  14556. * WebCore.xcodeproj/project.pbxproj:
  14557. Added new files
  14558. * editing/SmartReplace.cpp: Added.
  14559. (WebCore::isCharacterSmartReplaceExempt):
  14560. Added non-CF implementation placeholder
  14561. * editing/SmartReplace.h: Added.
  14562. * editing/SmartReplaceCF.cpp: Added.
  14563. (WebCore::getSmartSet):
  14564. (WebCore::isCharacterSmartReplaceExempt):
  14565. Added new implementation
  14566. * bridge/win/FrameWin.cpp:
  14567. * page/Frame.h:
  14568. * page/mac/FrameMac.mm:
  14569. Removed old declaration and implementation
  14570. * editing/ReplaceSelectionCommand.cpp:
  14571. (WebCore::ReplaceSelectionCommand::doApply):
  14572. Changed to call the new function instead of old
  14573. * page/mac/WebCoreFrameBridge.h:
  14574. * page/mac/WebCoreFrameBridge.mm:
  14575. Removed old declaration and implementation
  14576. (-[WebCoreFrameBridge smartInsertForString:replacingRange:beforeString:afterString:]):
  14577. Changed to call the new function instead of old
  14578. * platform/win/PasteboardWin.cpp:
  14579. (WebCore::Pasteboard::Pasteboard):
  14580. Register new clipboard format
  14581. (WebCore::Pasteboard::writeSelection):
  14582. Set data for smartpaste format on clipboard
  14583. (WebCore::Pasteboard::canSmartReplace):
  14584. Added non-stub implementation
  14585. 2007-07-04 Qing Zhao <qing@staikos.net>
  14586. Reviewed by George Staikos.
  14587. Similar to the PlatformScrollbar fixes, adjust the painter to make the
  14588. styler draw all subcontrols, and in this case the focus rect, in the
  14589. proper location
  14590. * platform/qt/RenderThemeQt.cpp:
  14591. (WebCore::RenderThemeQt::paintMenuList):
  14592. 2007-07-04 Mitz Pettel <mitz@webkit.org>
  14593. Reviewed by Maciej.
  14594. - fix http://bugs.webkit.org/show_bug.cgi?id=14495
  14595. REGRESSION: Wrong cursor is displayed during drag and drop when text is selected
  14596. <rdar://problem/5312384>
  14597. No test possible because DumpRenderTree cannot query the current cursor.
  14598. * page/EventHandler.cpp:
  14599. (WebCore::EventHandler::selectCursor): Changed into a member function and
  14600. added that if the last mouse down event could not have started a
  14601. selection, then the cursor should not change to an I-beam unconditionally.
  14602. (WebCore::EventHandler::handleMouseMoveEvent):
  14603. * page/EventHandler.h:
  14604. 2007-07-04 Holger Hans Peter Freyther <zecke@selfish.org>
  14605. Reviewed by Rob Buis.
  14606. A little progress in tracking dependencies.
  14607. * WebCore.pro: Add DEPENDPATH for the Gdk port.
  14608. 2007-07-03 Darin Adler <darin@apple.com>
  14609. Reviewed by Tim Hatcher.
  14610. - fix <rdar://problem/5221297> Font family name in the cssText for a DOMCSSStyleDeclaration needs quotes
  14611. Test: editing/style/font-family-with-space.html
  14612. * css/FontFamilyValue.cpp:
  14613. (WebCore::isValidCSSIdentifier): Added. Implements the same rule that the CSS lexer does.
  14614. (WebCore::quoteStringIfNeeded): Changed to call isValidCSSIdentifier instead of just
  14615. checking for a leading "#" character.
  14616. * editing/markup.cpp:
  14617. (WebCore::escapeTextForMarkup): Changed to take a String parameter for better efficiency.
  14618. (WebCore::renderedText): Changed to return a String for better efficiency.
  14619. (WebCore::addNamespace): Updated to pass String to escapeTextForMarkup.
  14620. (WebCore::startMarkup): Updated to pass String to escapeTextForMarkup. Added missing call
  14621. to escapeTextForMarkup in the special case for the style property.
  14622. (WebCore::createMarkup): Changed from single quotes to double quotes and also added missing
  14623. call to escapeTextForMarkup in two special cases for the style property.
  14624. 2007-07-03 Sam Weinig <sam@webkit.org>
  14625. Reviewed by Darin.
  14626. Twelfth round of fixes for implicit 64-32 bit conversion errors.
  14627. <rdar://problem/5292262>
  14628. - Add casts and accompanying FIXMEs to avoid remaining compiler errors.
  14629. * WebCore.xcodeproj/project.pbxproj:
  14630. * loader/FrameLoader.cpp:
  14631. (WebCore::FrameLoader::opened):
  14632. (WebCore::FrameLoader::sendRemainingDelegateMessages):
  14633. * loader/FrameLoader.h:
  14634. * loader/ResourceLoader.cpp:
  14635. (WebCore::ResourceLoader::didReceiveData):
  14636. * platform/network/mac/ResourceHandleMac.mm:
  14637. (-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:]):
  14638. (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]):
  14639. * platform/network/mac/ResourceResponseMac.mm:
  14640. (WebCore::ResourceResponse::nsURLResponse):
  14641. 2007-07-03 Anders Carlsson <andersca@apple.com>
  14642. Reviewed by Adam.
  14643. <rdar://problem/5093862>
  14644. Nothing shown in plugin area when trying to play content using the DivX plugin
  14645. Defer calling SetWindow for the DivX plugin, just like we do with the WMP plugin.
  14646. * plugins/win/PluginViewWin.cpp:
  14647. (WebCore::PluginViewWin::determineQuirks):
  14648. 2007-07-03 Sam Weinig <sam@webkit.org>
  14649. Reviewed by Brady Eidson.
  14650. Ninth round of fixes for implicit 64-32 bit conversion errors.
  14651. <rdar://problem/5292262>
  14652. - Fix function signature to use unsigned long instead of unsigned long long.
  14653. * loader/ProgressTracker.cpp:
  14654. (WebCore::ProgressTracker::completeProgress):
  14655. * loader/ProgressTracker.h:
  14656. 2007-07-03 Sam Weinig <sam@webkit.org>
  14657. Reviewed by Oliver.
  14658. Eighth round of fixes for implicit 64-32 bit conversion errors.
  14659. <rdar://problem/5292262>
  14660. - Convert SVG implementation files to use floats instead of doubles
  14661. to match the spec/IDLs.
  14662. * bindings/scripts/CodeGeneratorJS.pm:
  14663. * ksvg2/svg/SVGAngle.cpp:
  14664. * ksvg2/svg/SVGAnimatedTemplate.h:
  14665. * ksvg2/svg/SVGAnimationElement.cpp:
  14666. (WebCore::SVGAnimationElement::getEndTime):
  14667. (WebCore::SVGAnimationElement::getStartTime):
  14668. (WebCore::SVGAnimationElement::getCurrentTime):
  14669. (WebCore::SVGAnimationElement::getSimpleDuration):
  14670. * ksvg2/svg/SVGAnimationElement.h:
  14671. * ksvg2/svg/SVGFitToViewBox.cpp:
  14672. (WebCore::SVGFitToViewBox::parseViewBox):
  14673. * ksvg2/svg/SVGLength.cpp:
  14674. (WebCore::SVGLength::setValueAsString):
  14675. * ksvg2/svg/SVGLinearGradientElement.cpp:
  14676. (WebCore::SVGLinearGradientElement::buildGradient):
  14677. * ksvg2/svg/SVGMatrix.idl:
  14678. * ksvg2/svg/SVGNumber.idl:
  14679. * ksvg2/svg/SVGParserUtilities.cpp:
  14680. (WebCore::SVGPathParser::parseSVG):
  14681. (WebCore::SVGPathParser::calculateArc):
  14682. (WebCore::SVGPathParser::svgLineToHorizontal):
  14683. (WebCore::SVGPathParser::svgLineToVertical):
  14684. (WebCore::SVGPathParser::svgCurveToCubicSmooth):
  14685. (WebCore::SVGPathParser::svgCurveToQuadratic):
  14686. (WebCore::SVGPathParser::svgCurveToQuadraticSmooth):
  14687. (WebCore::SVGPathParser::svgArcTo):
  14688. * ksvg2/svg/SVGParserUtilities.h:
  14689. * ksvg2/svg/SVGPathElement.cpp:
  14690. (WebCore::SVGPathElement::SVGPathElement):
  14691. (WebCore::SVGPathElement::getTotalLength):
  14692. (WebCore::SVGPathElement::getPointAtLength):
  14693. (WebCore::SVGPathElement::getPathSegAtLength):
  14694. (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
  14695. (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
  14696. (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
  14697. (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
  14698. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
  14699. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
  14700. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
  14701. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
  14702. (WebCore::SVGPathElement::createSVGPathSegArcAbs):
  14703. (WebCore::SVGPathElement::createSVGPathSegArcRel):
  14704. (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
  14705. (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
  14706. (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
  14707. (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
  14708. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
  14709. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
  14710. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
  14711. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
  14712. (WebCore::SVGPathElement::svgMoveTo):
  14713. (WebCore::SVGPathElement::svgLineTo):
  14714. (WebCore::SVGPathElement::svgLineToHorizontal):
  14715. (WebCore::SVGPathElement::svgLineToVertical):
  14716. (WebCore::SVGPathElement::svgCurveToCubic):
  14717. (WebCore::SVGPathElement::svgCurveToCubicSmooth):
  14718. (WebCore::SVGPathElement::svgCurveToQuadratic):
  14719. (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
  14720. (WebCore::SVGPathElement::svgArcTo):
  14721. (WebCore::SVGPathElement::parseMappedAttribute):
  14722. * ksvg2/svg/SVGPathElement.h:
  14723. * ksvg2/svg/SVGPathSegArc.cpp:
  14724. (WebCore::SVGPathSegArcAbs::SVGPathSegArcAbs):
  14725. (WebCore::SVGPathSegArcAbs::setX):
  14726. (WebCore::SVGPathSegArcAbs::x):
  14727. (WebCore::SVGPathSegArcAbs::setY):
  14728. (WebCore::SVGPathSegArcAbs::y):
  14729. (WebCore::SVGPathSegArcAbs::setR1):
  14730. (WebCore::SVGPathSegArcAbs::r1):
  14731. (WebCore::SVGPathSegArcAbs::setR2):
  14732. (WebCore::SVGPathSegArcAbs::r2):
  14733. (WebCore::SVGPathSegArcAbs::setAngle):
  14734. (WebCore::SVGPathSegArcAbs::angle):
  14735. (WebCore::SVGPathSegArcRel::SVGPathSegArcRel):
  14736. (WebCore::SVGPathSegArcRel::setX):
  14737. (WebCore::SVGPathSegArcRel::x):
  14738. (WebCore::SVGPathSegArcRel::setY):
  14739. (WebCore::SVGPathSegArcRel::y):
  14740. (WebCore::SVGPathSegArcRel::setR1):
  14741. (WebCore::SVGPathSegArcRel::r1):
  14742. (WebCore::SVGPathSegArcRel::setR2):
  14743. (WebCore::SVGPathSegArcRel::r2):
  14744. (WebCore::SVGPathSegArcRel::setAngle):
  14745. (WebCore::SVGPathSegArcRel::angle):
  14746. * ksvg2/svg/SVGPathSegArc.h:
  14747. * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
  14748. (WebCore::SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs):
  14749. (WebCore::SVGPathSegCurvetoCubicAbs::setX):
  14750. (WebCore::SVGPathSegCurvetoCubicAbs::x):
  14751. (WebCore::SVGPathSegCurvetoCubicAbs::setY):
  14752. (WebCore::SVGPathSegCurvetoCubicAbs::y):
  14753. (WebCore::SVGPathSegCurvetoCubicAbs::setX1):
  14754. (WebCore::SVGPathSegCurvetoCubicAbs::x1):
  14755. (WebCore::SVGPathSegCurvetoCubicAbs::setY1):
  14756. (WebCore::SVGPathSegCurvetoCubicAbs::y1):
  14757. (WebCore::SVGPathSegCurvetoCubicAbs::setX2):
  14758. (WebCore::SVGPathSegCurvetoCubicAbs::x2):
  14759. (WebCore::SVGPathSegCurvetoCubicAbs::setY2):
  14760. (WebCore::SVGPathSegCurvetoCubicAbs::y2):
  14761. (WebCore::SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel):
  14762. (WebCore::SVGPathSegCurvetoCubicRel::setX):
  14763. (WebCore::SVGPathSegCurvetoCubicRel::x):
  14764. (WebCore::SVGPathSegCurvetoCubicRel::setY):
  14765. (WebCore::SVGPathSegCurvetoCubicRel::y):
  14766. (WebCore::SVGPathSegCurvetoCubicRel::setX1):
  14767. (WebCore::SVGPathSegCurvetoCubicRel::x1):
  14768. (WebCore::SVGPathSegCurvetoCubicRel::setY1):
  14769. (WebCore::SVGPathSegCurvetoCubicRel::y1):
  14770. (WebCore::SVGPathSegCurvetoCubicRel::setX2):
  14771. (WebCore::SVGPathSegCurvetoCubicRel::x2):
  14772. (WebCore::SVGPathSegCurvetoCubicRel::setY2):
  14773. (WebCore::SVGPathSegCurvetoCubicRel::y2):
  14774. * ksvg2/svg/SVGPathSegCurvetoCubic.h:
  14775. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
  14776. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs):
  14777. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX):
  14778. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::x):
  14779. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY):
  14780. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::y):
  14781. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX2):
  14782. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::x2):
  14783. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY2):
  14784. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::y2):
  14785. (WebCore::SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel):
  14786. (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX):
  14787. (WebCore::SVGPathSegCurvetoCubicSmoothRel::x):
  14788. (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY):
  14789. (WebCore::SVGPathSegCurvetoCubicSmoothRel::y):
  14790. (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX2):
  14791. (WebCore::SVGPathSegCurvetoCubicSmoothRel::x2):
  14792. (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY2):
  14793. (WebCore::SVGPathSegCurvetoCubicSmoothRel::y2):
  14794. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
  14795. * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
  14796. (WebCore::SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs):
  14797. (WebCore::SVGPathSegCurvetoQuadraticAbs::setX):
  14798. (WebCore::SVGPathSegCurvetoQuadraticAbs::x):
  14799. (WebCore::SVGPathSegCurvetoQuadraticAbs::setY):
  14800. (WebCore::SVGPathSegCurvetoQuadraticAbs::y):
  14801. (WebCore::SVGPathSegCurvetoQuadraticAbs::setX1):
  14802. (WebCore::SVGPathSegCurvetoQuadraticAbs::x1):
  14803. (WebCore::SVGPathSegCurvetoQuadraticAbs::setY1):
  14804. (WebCore::SVGPathSegCurvetoQuadraticAbs::y1):
  14805. (WebCore::SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel):
  14806. (WebCore::SVGPathSegCurvetoQuadraticRel::setX):
  14807. (WebCore::SVGPathSegCurvetoQuadraticRel::x):
  14808. (WebCore::SVGPathSegCurvetoQuadraticRel::setY):
  14809. (WebCore::SVGPathSegCurvetoQuadraticRel::y):
  14810. (WebCore::SVGPathSegCurvetoQuadraticRel::setX1):
  14811. (WebCore::SVGPathSegCurvetoQuadraticRel::x1):
  14812. (WebCore::SVGPathSegCurvetoQuadraticRel::setY1):
  14813. (WebCore::SVGPathSegCurvetoQuadraticRel::y1):
  14814. * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
  14815. (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
  14816. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
  14817. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs):
  14818. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setX):
  14819. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::x):
  14820. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setY):
  14821. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::y):
  14822. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel):
  14823. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setX):
  14824. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::x):
  14825. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setY):
  14826. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::y):
  14827. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
  14828. * ksvg2/svg/SVGPathSegLineto.cpp:
  14829. (WebCore::SVGPathSegLinetoAbs::SVGPathSegLinetoAbs):
  14830. (WebCore::SVGPathSegLinetoAbs::setX):
  14831. (WebCore::SVGPathSegLinetoAbs::x):
  14832. (WebCore::SVGPathSegLinetoAbs::setY):
  14833. (WebCore::SVGPathSegLinetoAbs::y):
  14834. (WebCore::SVGPathSegLinetoRel::SVGPathSegLinetoRel):
  14835. (WebCore::SVGPathSegLinetoRel::setX):
  14836. (WebCore::SVGPathSegLinetoRel::x):
  14837. (WebCore::SVGPathSegLinetoRel::setY):
  14838. (WebCore::SVGPathSegLinetoRel::y):
  14839. * ksvg2/svg/SVGPathSegLineto.h:
  14840. * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
  14841. (WebCore::SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs):
  14842. (WebCore::SVGPathSegLinetoHorizontalAbs::setX):
  14843. (WebCore::SVGPathSegLinetoHorizontalAbs::x):
  14844. (WebCore::SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel):
  14845. (WebCore::SVGPathSegLinetoHorizontalRel::setX):
  14846. (WebCore::SVGPathSegLinetoHorizontalRel::x):
  14847. * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
  14848. * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
  14849. (WebCore::SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs):
  14850. (WebCore::SVGPathSegLinetoVerticalAbs::setY):
  14851. (WebCore::SVGPathSegLinetoVerticalAbs::y):
  14852. (WebCore::SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel):
  14853. (WebCore::SVGPathSegLinetoVerticalRel::setY):
  14854. (WebCore::SVGPathSegLinetoVerticalRel::y):
  14855. * ksvg2/svg/SVGPathSegLinetoVertical.h:
  14856. * ksvg2/svg/SVGPathSegList.cpp:
  14857. (WebCore::SVGPathSegList::getPathSegAtLength):
  14858. * ksvg2/svg/SVGPathSegList.h:
  14859. * ksvg2/svg/SVGPathSegMoveto.cpp:
  14860. (WebCore::SVGPathSegMovetoAbs::SVGPathSegMovetoAbs):
  14861. (WebCore::SVGPathSegMovetoAbs::setX):
  14862. (WebCore::SVGPathSegMovetoAbs::x):
  14863. (WebCore::SVGPathSegMovetoAbs::setY):
  14864. (WebCore::SVGPathSegMovetoAbs::y):
  14865. (WebCore::SVGPathSegMovetoRel::SVGPathSegMovetoRel):
  14866. (WebCore::SVGPathSegMovetoRel::setX):
  14867. (WebCore::SVGPathSegMovetoRel::x):
  14868. (WebCore::SVGPathSegMovetoRel::setY):
  14869. (WebCore::SVGPathSegMovetoRel::y):
  14870. * ksvg2/svg/SVGPathSegMoveto.h:
  14871. * ksvg2/svg/SVGPolyElement.cpp:
  14872. (WebCore::SVGPolyElement::svgPolyTo):
  14873. * ksvg2/svg/SVGRadialGradientElement.cpp:
  14874. (WebCore::SVGRadialGradientElement::buildGradient):
  14875. * ksvg2/svg/SVGSVGElement.cpp:
  14876. (WebCore::SVGSVGElement::viewport):
  14877. (WebCore::SVGSVGElement::getCurrentTime):
  14878. * ksvg2/svg/SVGStopElement.cpp:
  14879. (WebCore::SVGStopElement::SVGStopElement):
  14880. (WebCore::SVGStopElement::parseMappedAttribute):
  14881. * ksvg2/svg/SVGStopElement.h:
  14882. * ksvg2/svg/SVGTransform.cpp:
  14883. (SVGTransform::translate):
  14884. (SVGTransform::scale):
  14885. * ksvg2/svg/SVGTransformDistance.cpp:
  14886. (WebCore::SVGTransformDistance::addToSVGTransform):
  14887. (WebCore::SVGTransformDistance::distance):
  14888. * ksvg2/svg/SVGTransformable.cpp:
  14889. (WebCore::SVGTransformable::parseTransformAttribute):
  14890. 2007-07-03 Anders Carlsson <andersca@apple.com>
  14891. Reviewed by Darin.
  14892. <rdar://problem/5289718>
  14893. http://bugs.webkit.org/show_bug.cgi?id=14437
  14894. CrashTracer: [REGRESSION] 76 crashes in Safari at com.apple.WebCore: WebCore::Frame::settings const + 6 (14437)
  14895. Based on a patch from Maxime Britto.
  14896. * page/mac/WebCoreFrameBridge.mm:
  14897. (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  14898. If the script caused the frame to go away, return nil. This can only happen if a plugin in a subframe destroys
  14899. its frame.
  14900. (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
  14901. ASSERT that this is only called on the main frame.
  14902. 2007-07-03 John Sullivan <sullivan@apple.com>
  14903. Written by Darin, reviewed by me
  14904. - fixed <rdar://problem/5249730> REGRESSION (Leopard, around 9A464): Safari opens the same local
  14905. documents more than once due to canonicalization change
  14906. * loader/mac/LoaderNSURLExtras.m:
  14907. (canonicalURL):
  14908. pass URL through KURL so we get KURL's version of canonicalization as well as
  14909. NSURLProtocol's version of canonicalization
  14910. 2007-07-03 Sam Weinig <sam@webkit.org>
  14911. Reviewed by Darin.
  14912. Seventh round of fixes for implicit 64-32 bit conversion errors.
  14913. <rdar://problem/5292262>
  14914. - Adds more narrowPrecision functions to FloatPoint, FloatSize and FloatRect.
  14915. - Changes over more implicit conversions to use new functions.
  14916. * bindings/js/kjs_window.cpp:
  14917. (KJS::WindowFunc::callAsFunction):
  14918. * platform/graphics/FloatPoint.cpp:
  14919. (WebCore::FloatPoint::matrixTransform):
  14920. (WebCore::FloatPoint::narrowPrecision):
  14921. * platform/graphics/FloatPoint.h:
  14922. * platform/graphics/FloatRect.cpp:
  14923. (WebCore::FloatRect::narrowPrecision):
  14924. * platform/graphics/FloatRect.h:
  14925. * platform/graphics/FloatSize.cpp:
  14926. (WebCore::FloatSize::narrowPrecision):
  14927. * platform/graphics/FloatSize.h:
  14928. * platform/graphics/Path.cpp:
  14929. (WebCore::Path::createRoundedRectangle):
  14930. (WebCore::Path::createRectangle):
  14931. (WebCore::Path::createEllipse):
  14932. * platform/graphics/mac/ColorMac.mm:
  14933. (WebCore::nsColor):
  14934. * platform/graphics/mac/IconMac.mm:
  14935. (WebCore::Icon::paint):
  14936. * platform/graphics/svg/cg/CgSupport.cpp:
  14937. (WebCore::applyStrokeStyleToContext):
  14938. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  14939. (WebCore::CGShadingRefForRadialGradient):
  14940. (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
  14941. (WebCore::SVGPaintServerGradient::handleBoundingBoxModeAndGradientTransformation):
  14942. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  14943. (WebCore::applyLuminanceToAlphaFilter):
  14944. (WebCore::applyExpandAlphatoGrayscaleFilter):
  14945. (WebCore::transformImageIntoGrayscaleMask):
  14946. * platform/mac/WebCoreTextRenderer.mm:
  14947. (WebCoreDrawTextAtPoint):
  14948. * rendering/RenderPath.cpp:
  14949. (WebCore::RenderPath::mapAbsolutePointToLocal):
  14950. * rendering/RenderSVGContainer.cpp:
  14951. (WebCore::RenderSVGContainer::calcViewport):
  14952. * rendering/RenderSVGImage.cpp:
  14953. (WebCore::RenderSVGImage::nodeAtPoint):
  14954. * rendering/RenderSVGText.cpp:
  14955. (WebCore::RenderSVGText::relativeBBox):
  14956. 2007-07-03 Anders Carlsson <andersca@apple.com>
  14957. Reviewed by Adam.
  14958. <rdar://problem/5261523>
  14959. Crash playing MP11 on cnbc.com
  14960. The WMP Netscape plugin still creates a window even when windowless mode is turned on. Work around this by
  14961. always removing the "windowlessvideo" parameter before passing it to the plugin.
  14962. According to http://msdn2.microsoft.com/en-us/library/bb249373.aspx, "The windowlessVideo property is not
  14963. supported for Netscape Navigator. Setting a value for this property in Navigator may yield unexpected results."
  14964. * plugins/win/PluginViewWin.cpp:
  14965. (WebCore::PluginViewWndProc):
  14966. (WebCore::PluginViewWin::paint):
  14967. (WebCore::PluginViewWin::invalidateRect):
  14968. (WebCore::PluginViewWin::determineQuirks):
  14969. (WebCore::PluginViewWin::setParameters):
  14970. (WebCore::PluginViewWin::PluginViewWin):
  14971. (WebCore::PluginViewWin::init):
  14972. * plugins/win/PluginViewWin.h:
  14973. (WebCore::):
  14974. 2007-07-03 Qing Zhao <qing@staikos.net>
  14975. Reviewed by George Staikos.
  14976. Only draw sunken state for appropriate widgets. Not, for example, for
  14977. lineedits.
  14978. * platform/qt/RenderThemeQt.cpp:
  14979. (WebCore::RenderThemeQt::applyTheme):
  14980. 2007-07-03 Antti Koivisto <antti@apple.com>
  14981. Reviewed by Maciej.
  14982. REGRESSION: misplaced selection ring remains after link is no longer focused.
  14983. <rdar://problem/5205580>
  14984. Fix placement of selection ring when part of the ring is in a different layer.
  14985. * rendering/RenderFlow.cpp:
  14986. (WebCore::RenderFlow::addFocusRingRects): Get coordinates right when moving to a different layer.
  14987. * rendering/RenderObject.cpp:
  14988. (WebCore::RenderObject::setStyle):
  14989. Don't reset state variables when not necessary. When repaint() was called at the end of setSyle() it would
  14990. get repaint rects wrong in some cases.
  14991. 2007-07-03 Antti Koivisto <antti@apple.com>
  14992. Reviewed by Maciej.
  14993. Blind fix for CrashTracer: [USER] 25 crashes in Safari at com.apple.WebCore: WebCore::Frame::document const + 6
  14994. <rdar://problem/5263939>
  14995. No one has managed to reproduce this but it looks like null check is needed here. There are plausible ways
  14996. m_frame could be null for a live FrameView object.
  14997. * page/FrameView.cpp:
  14998. (WebCore::FrameView::needsLayout):
  14999. 2007-07-02 Oliver Hunt <oliver@apple.com>
  15000. Reviewed by Darin.
  15001. Fix for <rdar://problem/5098378> single-pixel image optimization needs to be rewritten to not depend on floating point bitmap
  15002. Tested by fast/replaced/image-solid-color-with-alpha.html
  15003. Switch from float to byte based bitmap when pulling the color from 1x1 pixel images so
  15004. that we can use the single pixel image optimisation in WebKit/win.
  15005. * platform/graphics/cg/ImageCG.cpp:
  15006. (WebCore::BitmapImage::checkForSolidColor):
  15007. 2007-07-02 Adam Roben <aroben@apple.com>
  15008. Fix Bug 14498: RenderContainer::positionForCoordinates contains an order of operations error
  15009. http://bugs.webkit.org/show_bug.cgi?id=14498
  15010. There were two bugs:
  15011. 1) xPos/yPos were flipped
  15012. 2) + binds tighter than ?:, so the order of operations was incorrect
  15013. Reviewed by Darin.
  15014. Test: fast/inline-block/14498-positionForCoordinates.html
  15015. * rendering/RenderContainer.cpp:
  15016. (WebCore::RenderContainer::positionForCoordinates):
  15017. 2007-07-02 Darin Adler <darin@apple.com>
  15018. Reviewed by Kevin Decker and Tim Hatcher.
  15019. - fix <rdar://problem/5307906> some classes need finalize methods because
  15020. of non-trivial work done in dealloc methods
  15021. * bindings/objc/DOMRGBColor.mm:
  15022. (+[DOMRGBColor initialize]): Added. Tells finalizer to run on main thread,
  15023. which is needed because we are sharing a CFDictionary here with no locking.
  15024. * bridge/mac/WebCoreAXObject.mm:
  15025. (+[WebCoreAXObject initialize]): Added. Tells finalizer to run on main thread.
  15026. (-[WebCoreAXObject finalize]): Added. Calls detach.
  15027. * WebCore.xcodeproj/project.pbxproj: Let Xcode do what it wants to do.
  15028. 2007-07-02 Sam Weinig <sam@webkit.org>
  15029. Reviewed by Darin.
  15030. Sixth round of fixes for implicit 64-32 bit conversion errors.
  15031. <rdar://problem/5292262>
  15032. Use new narrowPrecisionToFloat() and narrowPrecisionToCGFloat() where
  15033. appropriate.
  15034. * html/CanvasRenderingContext2D.cpp:
  15035. (WebCore::CanvasRenderingContext2D::setShadow):
  15036. (WebCore::CanvasRenderingContext2D::applyShadow):
  15037. * html/CanvasStyle.cpp:
  15038. (WebCore::CanvasStyle::applyStrokeColor):
  15039. (WebCore::CanvasStyle::applyFillColor):
  15040. * ksvg2/svg/SVGAngle.cpp:
  15041. * ksvg2/svg/SVGAnimationElement.cpp:
  15042. (WebCore::SVGAnimationElement::parseKeyNumbers):
  15043. (WebCore::parseKeySplines):
  15044. (WebCore::SVGAnimationElement::handleTimerEvent):
  15045. (WebCore::SVGAnimationElement::updateAnimatedValueForElapsedSeconds):
  15046. * ksvg2/svg/SVGPatternElement.cpp:
  15047. (WebCore::SVGPatternElement::buildPattern):
  15048. * ksvg2/svg/SVGRadialGradientElement.cpp:
  15049. (WebCore::SVGRadialGradientElement::buildGradient):
  15050. * platform/graphics/cg/AffineTransformCG.cpp:
  15051. (WebCore::AffineTransform::AffineTransform):
  15052. (WebCore::AffineTransform::setMatrix):
  15053. (WebCore::AffineTransform::map):
  15054. (WebCore::AffineTransform::setA):
  15055. (WebCore::AffineTransform::setB):
  15056. (WebCore::AffineTransform::setC):
  15057. (WebCore::AffineTransform::setD):
  15058. (WebCore::AffineTransform::setE):
  15059. (WebCore::AffineTransform::setF):
  15060. (WebCore::AffineTransform::scale):
  15061. (WebCore::AffineTransform::rotate):
  15062. (WebCore::AffineTransform::translate):
  15063. (WebCore::AffineTransform::shear):
  15064. 2007-07-02 John Sullivan <sullivan@apple.com>
  15065. * page/mac/WebCoreFrameBridge.mm:
  15066. (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
  15067. added a comment
  15068. 2007-07-02 Sam Weinig <sam@webkit.org>
  15069. Rubberstamped by Darin.
  15070. Rename FloatConversionUtilities.h to FloatConversion.h.
  15071. Fix Win32 build.
  15072. * WebCore.vcproj/WebCore.vcproj:
  15073. * WebCore.xcodeproj/project.pbxproj:
  15074. * platform/DeprecatedString.cpp:
  15075. * platform/FloatConversion.h: Copied from platform/FloatConversionUtilities.h.
  15076. * platform/FloatConversionUtilities.h: Removed.
  15077. * platform/StringImpl.cpp:
  15078. 2007-07-02 Sam Weinig <sam@webkit.org>
  15079. Reviewed by Darin.
  15080. Fifth round of fixes for implicit 64-32 bit conversion errors.
  15081. <rdar://problem/5292262>
  15082. Add toFloat() method to string classes and use it where appropriate.
  15083. * WebCore.xcodeproj/project.pbxproj:
  15084. * css/cssparser.cpp:
  15085. (WebCore::CSSParser::lex):
  15086. * ksvg2/svg/SVGAngle.cpp:
  15087. (WebCore::SVGAngle::setValueAsString):
  15088. * platform/AtomicString.h:
  15089. (WebCore::AtomicString::toFloat):
  15090. * platform/DeprecatedString.cpp:
  15091. (WebCore::DeprecatedString::toFloat):
  15092. * platform/DeprecatedString.h:
  15093. * platform/FloatConversionUtilities.h: Added.
  15094. (WebCore::narrowPrecisionToFloat):
  15095. (WebCore::narrowPrecisionToCGFloat):
  15096. * platform/PlatformString.h:
  15097. * platform/String.cpp:
  15098. (WebCore::String::toFloat):
  15099. * platform/StringImpl.cpp:
  15100. (WebCore::StringImpl::toFloat):
  15101. * platform/StringImpl.h:
  15102. 2007-07-02 Sam Weinig <sam@webkit.org>
  15103. Reviewed by Kevin McCullough.
  15104. Fourth round of fixes for implicit 64-32 bit conversion errors.
  15105. <rdar://problem/5292262>
  15106. Use new piDouble and piFloat constants instead of M_PI.
  15107. * html/CanvasRenderingContext2D.cpp:
  15108. (WebCore::CanvasRenderingContext2D::rotate):
  15109. * ksvg2/svg/SVGParserUtilities.cpp:
  15110. (WebCore::SVGPathParser::calculateArc):
  15111. * platform/graphics/Path.cpp:
  15112. (WebCore::pathLengthApplierFunction):
  15113. (WebCore::Path::createEllipse):
  15114. * platform/graphics/cg/GraphicsContextCG.cpp:
  15115. (WebCore::GraphicsContext::drawEllipse):
  15116. (WebCore::GraphicsContext::strokeArc):
  15117. * platform/graphics/cg/PDFDocumentImage.cpp:
  15118. (WebCore::PDFDocumentImage::setCurrentPage):
  15119. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
  15120. * rendering/RenderPath.cpp:
  15121. (WebCore::drawMarkerWithData):
  15122. 2007-07-01 Adam Roben <aroben@apple.com>
  15123. Clarify/fix {Shadow,BorderImage}ParseContext's memory management
  15124. Prefast emitted warnings that drew my attention to
  15125. {Shadow,BorderImage}ParseContext::failed(). It turned out that these
  15126. methods were actually correct, but rather confusing. "failed" really
  15127. meant "abort and clean up" rather than "did you fail?", which was
  15128. unclear. However, once I figured that out, the "and clean up" part was
  15129. still a bit confusing, because all failed() did was to set a flag that
  15130. would later cause the ParseContext's members to be deleted in the
  15131. destructor. To clear this up, I've gotten rid of the failed() method
  15132. altogether. It always returned false, so I've replaced all calls to
  15133. it with the value false.
  15134. I also noticed that the lifetime management of the ParseContexts'
  15135. members was in all cases confusing, and in some cases wrong. The
  15136. m_border{Top,Right,Bottom,Left} members of BorderImageParseContext
  15137. were leaked whenever a border-image property was successfully parsed.
  15138. I fixed that by holding these members in OwnPtrs. The
  15139. CSSPrimitiveValue members of {Shadow,BorderImage}ParseContext, which
  15140. inherit from Shared, were being explicitly deleted, which is not a
  15141. safe way to manage the lifetime of objects that inherit from Shared.
  15142. To fix this, I put those members inside RefPtrs. These two changes
  15143. allowed me to remove the destructors entirely.
  15144. Reviewed by Darin.
  15145. All regression tests pass.
  15146. * css/cssparser.cpp:
  15147. (WebCore::ShadowParseContext::commitValue): Use .release() to avoid
  15148. ref-count churn.
  15149. (WebCore::ShadowParseContext::commitLength): Use a RefPtr for the new
  15150. value to avoid a leak.
  15151. (WebCore::CSSParser::parseShadow): Use 'false' instead of
  15152. 'context.failed()', and use .release() to avoid ref-count churn.
  15153. (WebCore::BorderImageParseContext::commitWidth): Updated to use
  15154. OwnPtr.
  15155. (WebCore::CSSParser::parseBorderImage): Use 'false' instead of
  15156. 'context.failed'.
  15157. 2007-07-01 Anders Carlsson <andersca@apple.com>
  15158. Reviewed by John Sullivan.
  15159. <rdar://problem/5297146>
  15160. Crash in Mail at WebCore::Frame::setUserStyleSheetLocation (reproducible w/ particular message)
  15161. * loader/Cache.cpp:
  15162. (WebCore::Cache::requestResource):
  15163. Only insert the resource in the LRU list if the cache is enabled.
  15164. (WebCore::Cache::insertInLRUList):
  15165. (WebCore::Cache::resourceAccessed):
  15166. Assert that the resource is in the cache.
  15167. 2007-07-01 Darin Adler <darin@apple.com>
  15168. * css/tokenizer.flex: Rolled out the fix for 14453.
  15169. The layout test wasn't passing. We'll try again.
  15170. 2007-07-01 Adam Roben <aroben@apple.com>
  15171. Fix a crash in ~PluginViewWin()
  15172. This crash was introduced in r23827.
  15173. Reviewed by Anders.
  15174. Fixes dom/html/level2/html/HTMLAnchorElement01.html
  15175. * plugins/win/PluginViewWin.cpp:
  15176. (WebCore::PluginViewWin::~PluginViewWin): Allow m_plugin to be null.
  15177. 2007-07-01 Rob Buis <buis@kde.org>
  15178. Reviewed by Darin.
  15179. http://bugs.webkit.org/show_bug.cgi?id=14453
  15180. REGRESSION: www.nzherald.co.nz almost all the formating is gone
  15181. * css/tokenizer.flex: Allow hex colors with 2, 4, or 5 hex digits.
  15182. 2007-07-01 Sam Weinig <sam@webkit.org>
  15183. Reviewed by Oliver.
  15184. Third round of implicit 64-32 bit conversion errors fixes.
  15185. <rdar://problem/5292262>
  15186. - Use new CSSPrimitiveValue::getDoubleValue() and CSSPrimitiveValue::getIntValue()
  15187. methods instead of CSSPrimitiveValue::getFloatValue() where appropriate.
  15188. * css/CSSPrimitiveValue.cpp:
  15189. (WebCore::CSSPrimitiveValue::computeLengthInt):
  15190. (WebCore::CSSPrimitiveValue::computeLengthIntForLength):
  15191. (WebCore::CSSPrimitiveValue::computeLengthShort):
  15192. (WebCore::CSSPrimitiveValue::computeLengthFloat):
  15193. (WebCore::CSSPrimitiveValue::computeLengthDouble):
  15194. (WebCore::CSSPrimitiveValue::getDoubleValue):
  15195. * css/CSSPrimitiveValue.h:
  15196. (WebCore::CSSPrimitiveValue::getDoubleValue):
  15197. (WebCore::CSSPrimitiveValue::getFloatValue):
  15198. (WebCore::CSSPrimitiveValue::getIntValue):
  15199. * css/Counter.h:
  15200. (WebCore::Counter::listStyleNumber):
  15201. * css/MediaQueryEvaluator.cpp:
  15202. (WebCore::parseAspectRatio):
  15203. * css/cssparser.cpp:
  15204. (WebCore::BorderImageParseContext::commitBorderImage):
  15205. * css/cssstyleselector.cpp:
  15206. (WebCore::convertToLength):
  15207. (WebCore::applyCounterList):
  15208. (WebCore::CSSStyleSelector::applyProperty):
  15209. (WebCore::CSSStyleSelector::mapBackgroundSize):
  15210. (WebCore::CSSStyleSelector::mapBackgroundXPosition):
  15211. (WebCore::CSSStyleSelector::mapBackgroundYPosition):
  15212. * html/HTMLTableElement.cpp:
  15213. (WebCore::HTMLTableElement::parseMappedAttribute):
  15214. * ksvg2/css/SVGCSSStyleSelector.cpp:
  15215. (WebCore::CSSStyleSelector::applySVGProperty):
  15216. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  15217. (WebCore::KSVGPainterFactory::cssPrimitiveToLength):
  15218. (WebCore::KSVGPainterFactory::dashArrayFromRenderingStyle):
  15219. 2007-07-01 Pamela Greene <pamg.bugs@gmail.com>
  15220. Reviewed by Darin.
  15221. Fix for <http://bugs.webkit.org/show_bug.cgi?id=14320>
  15222. Bug 14320: <canvas> gradient stops at identical offsets are applied in the wrong order
  15223. <rdar://problem/5290084>
  15224. Use std::stable_sort() instead of qsort() to sort gradient stops.
  15225. Adjust the comparison function accordingly.
  15226. * html/CanvasGradient.cpp:
  15227. (WebCore::compareStops):
  15228. (WebCore::CanvasGradient::findStop):
  15229. 2007-07-01 Holger Hans Peter Freyther <zecke@selfish.org>
  15230. Reviewed by Darin.
  15231. m_usesPageCache was not initialized. As the b/f cache is only
  15232. implemented in the Mac port and WebView.mm is taking care of calling
  15233. Settings::setUsesPageCache I decided to make it false by default.
  15234. * page/Settings.cpp:
  15235. (WebCore::Settings::Settings): m_usesPageCache was not initialized
  15236. 2007-07-01 Holger Hans Peter Freyther <zecke@selfish.org>
  15237. Reviewed by Darin.
  15238. Inherited- and NonInheritedFlags is a bit field. But for comparsion
  15239. the other part of the union _iflags/_niflags is used for comparions.
  15240. This will compare 5 uninitialized bits of _iflags and 22 of _niflags.
  15241. Make sure the unused bits have a specified value.
  15242. * ksvg2/css/SVGRenderStyle.h:
  15243. (WebCore::SVGRenderStyle::setBitDefaults): Make sure the unused bits
  15244. have a value as well.
  15245. 2007-06-30 Adam Roben <aroben@apple.com>
  15246. Compile WebCore with /W4 on Windows
  15247. Some more warnings were disabled globally, including assignment within
  15248. a conditional, unused variable, and various warnings related to
  15249. inability to instantiate opaque structs.
  15250. In addition, the "unreachable code" warning was turned off for
  15251. CSSGrammar.cpp and XPathGrammar.cpp.
  15252. Reviewed by Oliver.
  15253. * WebCore.vcproj/WebCore.vcproj:
  15254. 2007-06-29 Adam Roben <aroben@apple.com>
  15255. Give CString an equality operator to fix a bug in HTMLFormElement::formData
  15256. The bug was spotted by MSVC /W4. The problem was that we were comparing
  15257. a CString to a char* using ==, but CString had no equality operator.
  15258. The result was that the CString was being cast to a const char* and a
  15259. pointer comparison was being done, which would (essentially) always
  15260. return false.
  15261. There are two parts to the fix: get rid of CString's const char*
  15262. casting operator, and add an equality operator. Previous uses of the
  15263. casting operator have been changed to use CString::data().
  15264. Test: http/misc/isindex-formdata.html
  15265. Reviewed by Oliver.
  15266. * dom/XMLTokenizer.cpp:
  15267. (WebCore::parseXMLDocumentFragment):
  15268. * html/HTMLDocument.cpp:
  15269. (WebCore::HTMLDocument::determineParseMode):
  15270. * html/HTMLFormElement.cpp:
  15271. (WebCore::HTMLFormElement::formData):
  15272. * loader/TextResourceDecoder.cpp:
  15273. (WebCore::TextResourceDecoder::checkForCSSCharset):
  15274. * platform/CString.cpp:
  15275. (WebCore::operator==):
  15276. * platform/CString.h:
  15277. * platform/KURL.cpp:
  15278. (WebCore::encodeRelativeString):
  15279. * platform/StringImpl.cpp:
  15280. (WebCore::StringImpl::toDouble):
  15281. * platform/network/cf/FormDataStreamCFNet.cpp:
  15282. (WebCore::setHTTPBody):
  15283. * platform/network/mac/FormDataStreamMac.mm:
  15284. (WebCore::setHTTPBody):
  15285. * platform/win/ClipboardUtilitiesWin.cpp:
  15286. (WebCore::markupToCF_HTML):
  15287. * plugins/win/PluginPackageWin.cpp:
  15288. (WebCore::splitString):
  15289. * plugins/win/PluginStreamWin.cpp:
  15290. (WebCore::PluginStreamWin::startStream):
  15291. (WebCore::PluginStreamWin::destroyStream):
  15292. (WebCore::PluginStreamWin::sendJavaScriptStream):
  15293. (WebCore::PluginStreamWin::didFinishLoading):
  15294. * plugins/win/PluginViewWin.cpp:
  15295. (WebCore::PluginViewWin::start):
  15296. (WebCore::createUTF8String):
  15297. (WebCore::PluginViewWin::userAgent):
  15298. * xml/XSLStyleSheet.cpp:
  15299. (WebCore::XSLStyleSheet::locateStylesheetSubResource):
  15300. * xml/XSLTProcessor.cpp:
  15301. (WebCore::xsltParamArrayFromParameterMap):
  15302. 2007-06-29 Adam Roben <aroben@apple.com>
  15303. Initialize two variables that MSVC /W4 isn't smart enough to realize always get initialized
  15304. Reviewed by John.
  15305. * editing/Editor.cpp:
  15306. (WebCore::Editor::advanceToNextMisspelling):
  15307. * html/HTMLParser.cpp:
  15308. 2007-06-29 Adam Roben <aroben@apple.com>
  15309. Fix some possibly unitialized variables found by MSVC /W4
  15310. Reviewed by John.
  15311. * rendering/bidi.cpp:
  15312. (WebCore::RenderBlock::layoutInlineChildren):
  15313. 2007-06-29 Adam Roben <aroben@apple.com>
  15314. Remove bogus cast found by MSVC /W4
  15315. Reviewed by John and Oliver.
  15316. * ksvg2/css/SVGCSSParser.cpp:
  15317. (WebCore::CSSParser::parseSVGValue):
  15318. 2007-06-29 Adam Roben <aroben@apple.com>
  15319. Remove unused local functions uncovered by MSVC /W4
  15320. Reviewed by John and Oliver.
  15321. * platform/win/SearchPopupMenuWin.cpp:
  15322. * rendering/RenderText.cpp:
  15323. 2007-06-29 Adam Roben <aroben@apple.com>
  15324. Don't take the address of temporary values to appease MSVC /W4
  15325. Reviewed by Oliver.
  15326. No regression test possible.
  15327. * platform/win/PopupMenuWin.cpp:
  15328. (WebCore::PopupMenu::invalidateItem):
  15329. (WebCore::PopupMenu::valueChanged):
  15330. (WebCore::PopupWndProc):
  15331. * platform/win/ScrollViewWin.cpp:
  15332. (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
  15333. * platform/win/UniscribeController.cpp:
  15334. (WebCore::UniscribeController::shapeAndPlaceItem):
  15335. * platform/win/WidgetWin.cpp:
  15336. (WebCore::Widget::invalidateRect):
  15337. 2007-06-29 Adam Roben <aroben@apple.com>
  15338. Make an int -> UINT conversion explicit that MSVC /W4 complains about
  15339. Reviewed by John and Oliver.
  15340. No regression test possible.
  15341. * platform/win/SoundWin.cpp:
  15342. 2007-06-29 Adam Roben <aroben@apple.com>
  15343. Remove unreachable code uncovered by MSVC /W4
  15344. Reviewed by Oliver.
  15345. No regression test possible.
  15346. * html/CanvasRenderingContext2D.cpp:
  15347. (WebCore::CanvasRenderingContext2D::createPattern):
  15348. * html/HTMLAnchorElement.cpp:
  15349. (WebCore::HTMLAnchorElement::isLiveLink):
  15350. * html/HTMLElement.cpp:
  15351. (WebCore::HTMLElement::contentEditable):
  15352. * platform/DeprecatedString.cpp:
  15353. (WebCore::allocateHandle):
  15354. (WebCore::freeHandle):
  15355. * plugins/win/npapi.cpp:
  15356. (pluginViewForInstance):
  15357. * rendering/RenderImage.cpp:
  15358. (WebCore::RenderImage::isWidthSpecified):
  15359. (WebCore::RenderImage::isHeightSpecified):
  15360. * rendering/RenderTheme.cpp:
  15361. (WebCore::RenderTheme::isControlStyled):
  15362. 2007-06-29 John Sullivan <sullivan@apple.com>
  15363. Reviewed by Oliver Hunt.
  15364. - WebCore support for accessing the set of rectangles that encompass the selected text
  15365. * page/Frame.h:
  15366. * page/Frame.cpp:
  15367. (WebCore::Frame::selectionTextRects):
  15368. new function, fills in a passed Vector with the line box rects that represent the selected range
  15369. * rendering/RenderText.cpp:
  15370. (WebCore::RenderText::addLineBoxRects):
  15371. fixed off-by-one bug involving use of the confusing function InlineTextBox::end()
  15372. * WebCore.exp:
  15373. exported symbol for this new function
  15374. 2007-06-29 Justin Garcia <justin.garcia@apple.com>
  15375. Reviewed by Harrison.
  15376. <rdar://problem/5299513> REGRESSION: In Mail, a crash occurs when attempting to undo a newly created To Do
  15377. Rolled out a change made in r23787.
  15378. * editing/DeleteSelectionCommand.cpp:
  15379. (WebCore::DeleteSelectionCommand::handleGeneralDelete):
  15380. 2007-06-29 Geoffrey Garen <ggaren@apple.com>
  15381. Reviewed by Darin Adler, Anders Carlsson.
  15382. Fixed <rdar://problem/5303567> REGRESSION: XMLHttpRequest.responseXML
  15383. returns NULL if response MIME type is not XML -- breaks Wikipedia widget
  15384. The spec says that responseXML must return null for any HTTP response
  15385. with a non-XML MIME type. Technically, that leaves non-HTTP responses
  15386. free to do whatever they want.
  15387. * xml/xmlhttprequest.cpp:
  15388. (WebCore::XMLHttpRequest::getResponseXML): Only return null for non-XML
  15389. MIME types if the response was HTTP.
  15390. 2007-06-29 Sam Weinig <sam@webkit.org>
  15391. Reviewed by Darin.
  15392. Second pass at fixing implicit 64-32 bit conversion errors.
  15393. <rdar://problem/5292262>
  15394. - Use new JSValue::toFloat() method instead of toNumber() where
  15395. appropriate.
  15396. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  15397. (WebCore::JSCanvasRenderingContext2D::setFillColor):
  15398. (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
  15399. (WebCore::JSCanvasRenderingContext2D::strokeRect):
  15400. (WebCore::JSCanvasRenderingContext2D::drawImage):
  15401. (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
  15402. (WebCore::JSCanvasRenderingContext2D::setShadow):
  15403. * bindings/js/JSHTMLSelectElementCustom.cpp:
  15404. (WebCore::JSHTMLSelectElement::remove):
  15405. * bindings/js/JSSVGMatrixCustom.cpp:
  15406. (WebCore::JSSVGMatrix::rotateFromVector):
  15407. * bindings/js/kjs_events.cpp:
  15408. (KJS::JSClipboardPrototypeFunction::callAsFunction):
  15409. * bindings/scripts/CodeGeneratorJS.pm:
  15410. * ksvg2/svg/SVGScriptElement.cpp:
  15411. (WebCore::SVGScriptElement::executeScript):
  15412. 2007-06-29 Adele Peterson <adele@apple.com>
  15413. Rolling out fix for <rdar://problem/5301322> since it broke layout tests.
  15414. * html/HTMLInputElement.h:
  15415. * html/HTMLTextAreaElement.h:
  15416. 2007-06-29 Geoffrey Garen <ggaren@apple.com>
  15417. Reviewed by Oliver Hunt.
  15418. Fixed <rdar://problem/4962298> REGRESSION: Synchronous XHR for missing
  15419. local file throws exception -- breaks Wikipedia widget
  15420. * WebCore.xcodeproj/project.pbxproj:
  15421. * xml/xmlhttprequest.cpp:
  15422. (WebCore::XMLHttpRequest::send): Don't throw exceptions for local files.
  15423. 2007-06-29 Ada Chan <adachan@apple.com>
  15424. Reviewed by Adam.
  15425. Fixed a previous fix to a signed/unsigned mismatch.
  15426. * plugins/win/PluginPackageWin.cpp:
  15427. (WebCore::splitString):
  15428. 2007-06-29 Adele Peterson <adele@apple.com>
  15429. Reviewed by Ada and Kevin McCullough.
  15430. Fix for <rdar://problem/5301322> REGRESSION: Select All selects the whole page when used in readonly textareas
  15431. Implemented canSelectAll and selectAll for text fields and textareas, since they're special cases even when they're not editable.
  15432. Tests:
  15433. fast/forms/input-readonly-select-all.html
  15434. fast/forms/textarea-readonly-select-all.html
  15435. * html/HTMLInputElement.h:
  15436. (WebCore::HTMLInputElement::canSelectAll):
  15437. (WebCore::HTMLInputElement::selectAll):
  15438. * html/HTMLTextAreaElement.h:
  15439. (WebCore::HTMLTextAreaElement::canSelectAll):
  15440. (WebCore::HTMLTextAreaElement::selectAll):
  15441. 2007-06-29 Adam Roben <aroben@apple.com>
  15442. Build fix
  15443. This is what happens when you test your patch on two OSs and then
  15444. commit from the wrong one.
  15445. * rendering/RenderTextControl.cpp:
  15446. (WebCore::RenderTextControl::valueChanged):
  15447. (WebCore::RenderTextControl::itemText):
  15448. (WebCore::RenderTextControl::itemIsSeparator):
  15449. 2007-06-29 Adam Roben <aroben@apple.com>
  15450. Start compiling WebCore with /W3 under MSVC
  15451. One warning was globally disabled: implicit conversion of int to bool.
  15452. Reviewed by Darin.
  15453. * WebCore.vcproj/WebCore.vcproj:
  15454. 2007-06-29 Adam Roben <aroben@apple.com>
  15455. Turn DeprecatedStringData's copy constructor into a static method to appease MSVC /W3
  15456. DeprecatedStringData now has no public copy constructor. The single
  15457. call to the old one has been replaced with a call to the new
  15458. DeprecatedStringData::createAndAdopt static method.
  15459. Reviewed by Darin.
  15460. All regression tests pass.
  15461. * platform/DeprecatedString.cpp:
  15462. (WebCore::DeprecatedStringData::createAndAdopt):
  15463. (WebCore::DeprecatedStringData::adopt):
  15464. (WebCore::DeprecatedString::detachIfInternal):
  15465. * platform/DeprecatedString.h:
  15466. 2007-06-29 Adam Roben <aroben@apple.com>
  15467. Fix more signed/unsigned mismatches uncovered by MSVC /W3
  15468. Reviewed by John.
  15469. No regression tests possible.
  15470. * platform/network/cf/ResourceResponseCFNet.cpp:
  15471. (WebCore::filenameHasSaneExtension):
  15472. * platform/win/FontDataWin.cpp:
  15473. (WebCore::FontData::containsCharacters):
  15474. * platform/win/PlatformScrollBarSafari.cpp:
  15475. (WebCore::):
  15476. * platform/win/UniscribeController.cpp:
  15477. (WebCore::UniscribeController::advance):
  15478. (WebCore::UniscribeController::shapeAndPlaceItem):
  15479. * platform/win/WebCoreTextRenderer.cpp:
  15480. (WebCore::doDrawTextAtPoint):
  15481. * plugins/win/PluginDatabaseWin.cpp:
  15482. (WebCore::parseVersionString):
  15483. * plugins/win/PluginPackageWin.cpp:
  15484. (WebCore::splitString):
  15485. * plugins/win/PluginViewWin.cpp:
  15486. (WebCore::freeStringArray):
  15487. (WebCore::PluginViewWin::invalidateTimerFired):
  15488. 2007-06-29 Adam Roben <aroben@apple.com>
  15489. Change PopupMenuClient::listSize to return an int to appease warnings from MSVC /W3
  15490. Reviewed by John.
  15491. No regression test possible.
  15492. * html/HTMLSelectElement.cpp:
  15493. (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
  15494. * platform/PopupMenuClient.h:
  15495. * platform/win/PopupMenuWin.cpp:
  15496. (WebCore::PopupMenu::calculatePositionAndSize):
  15497. (WebCore::PopupMenu::focusFirst):
  15498. (WebCore::PopupMenu::focusLast):
  15499. (WebCore::PopupMenu::down):
  15500. (WebCore::PopupMenu::up):
  15501. (WebCore::PopupMenu::paint):
  15502. * rendering/RenderMenuList.cpp:
  15503. * rendering/RenderMenuList.h:
  15504. * rendering/RenderTextControl.cpp:
  15505. * rendering/RenderTextControl.h:
  15506. 2007-06-29 Adam Roben <aroben@apple.com>
  15507. Fix two typos spotted by MSVC /W3
  15508. Both typos were a semicolon following the condition of an if. This
  15509. would cause the intended body of the if to always execute.
  15510. Unfortunately neither of these fixes are testable.
  15511. BackForwardList::goForward is only called from WebBackForwardList, and
  15512. the createDragImageFromImage bug would only manifest itself when
  15513. CreateCompatibleDC failed.
  15514. Reviewed by Mark.
  15515. * history/BackForwardList.cpp:
  15516. (WebCore::BackForwardList::goForward):
  15517. * platform/win/DragImageWin.cpp:
  15518. (WebCore::createDragImageFromImage):
  15519. 2007-06-29 Adam Treat <adam@staikos.net>
  15520. Reviewed by george Staikos.
  15521. Support horizontal and vertical scroll, and set the right units.
  15522. * platform/qt/WheelEventQt.cpp:
  15523. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  15524. 2007-06-28 Adam Roben <aroben@apple.com>
  15525. Get WebCore compiling with /W2 on Windows
  15526. Reviewed by Steve.
  15527. No regression tests affected.
  15528. * WebCore.vcproj/WebCore.vcproj: Turn the warning level up to 2, and
  15529. disable two warnings: implicit int <=> float conversion, and class vs.
  15530. struct inconsistency.
  15531. * dom/CharacterData.cpp:
  15532. (WebCore::CharacterData::deleteData): Cast to int before negating.
  15533. * loader/Cache.cpp:
  15534. (WebCore::Cache::remove): Ditto.
  15535. * platform/graphics/Path.cpp:
  15536. (WebCore::pathLengthApplierFunction): Consistently use floats.
  15537. * platform/graphics/cg/GraphicsContextCG.cpp:
  15538. (WebCore::GraphicsContext::drawEllipse): Ditto.
  15539. * platform/win/GraphicsContextWin.cpp:
  15540. (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar): Ditto.
  15541. 2007-06-28 Geoffrey Garen <ggaren@apple.com>
  15542. Reviewed by Maciej Stachowiak.
  15543. Fixed <rdar://problem/5299005> DOM timers fire without a local autorelease
  15544. pool => pathologically high high water mark
  15545. I couldn't measure any performance problems with iBench HTML or PLT.
  15546. * WebCore.xcodeproj/project.pbxproj: Changed .cpp file to be ObjC++.
  15547. * platform/mac/SharedTimerMac.cpp:
  15548. (WebCore::timerFired): Added autorelease pool.
  15549. 2007-06-28 Mitz Pettel <mitz@webkit.org>
  15550. Reviewed by Beth.
  15551. - fix http://bugs.webkit.org/show_bug.cgi?id=14118
  15552. ASSERTION FAILED: !needsLayout() seen again
  15553. Test: fast/dynamic/recursive-layout.html
  15554. * page/FrameView.cpp:
  15555. (WebCore::FrameView::layout): Removed the midLayout guards around
  15556. the calls to invalidateSelection() and updateWidgetPositions(). Those
  15557. calls may dirty the layout, but in that case they also update it, so
  15558. they should be allowed to do it. Added an ASSERT to make sure that when
  15559. they return, the root is not marked for layout.
  15560. 2007-06-28 Sam Weinig <sam@webkit.org>
  15561. Rubberstamped by Adam Roben.
  15562. Roll out r23861. It caused the buildbot to fail on intel.
  15563. * page/Page.cpp:
  15564. (WebCore::Page::goToItem):
  15565. 2007-06-26 Maxime Britto <mbritto@pleyo.com>
  15566. Reviewed by Geoff.
  15567. Patch for http://bugs.webkit.org/show_bug.cgi?id=13038
  15568. ASSERTION FAILED: item->target().isEmpty() || m_mainFrame->tree()->find(item->target()) == m_mainFrame
  15569. Modification of an ASSERT on goToItem related to go back/forward in
  15570. history.Don't need to check the frameset if the target is _blank.
  15571. * page/Page.cpp:
  15572. (WebCore::Page::goToItem):
  15573. 2007-06-28 Anders Carlsson <andersca@apple.com>
  15574. Reviewed by Oliver.
  15575. <rdar://problem/5234139>
  15576. <object> with PNG src rendered as image document.
  15577. Complete the URL before passing it to the frame loader client.
  15578. * html/HTMLObjectElement.cpp:
  15579. (WebCore::HTMLObjectElement::isImageType):
  15580. 2007-06-28 Rob Buis <buis@kde.org>
  15581. Reviewed by Maciej.
  15582. http://bugs.webkit.org/show_bug.cgi?id=14373
  15583. CSS1: selectors (classes and IDs) cannot start with a dash or with a digit
  15584. Make sure the id selector validates against the CSS2.1 identfier
  15585. definition, not the hexcolor/HASH definition.
  15586. * css/CSSGrammar.y:
  15587. * css/cssparser.cpp:
  15588. (WebCore::CSSParser::lex):
  15589. (WebCore::CSSParser::text):
  15590. * css/tokenizer.flex:
  15591. 2007-06-28 Simon Hausmann <hausmann@kde.org>
  15592. Reviewed by Zack.
  15593. Implemented PasteboardQt::writeSelection to copy the selected text into the Clipboard as well as PasteboardQt::plainText to retrieve plain text from the clipboard for pasting for example into form fields.
  15594. * platform/qt/PasteboardQt.cpp:
  15595. (WebCore::Pasteboard::writeSelection):
  15596. 2007-06-28 Antti Koivisto <antti@apple.com>
  15597. Reviewed by Mitz.
  15598. Fix http://bugs.webkit.org/show_bug.cgi?id=14332
  15599. Bug 14332: REGRESSION (r21145): <td> width ignored
  15600. <rdar://problem/5290123>
  15601. Cells in table with non-zero cellpadding are not considered empty.
  15602. * rendering/AutoTableLayout.cpp:
  15603. (WebCore::AutoTableLayout::recalcColumn):
  15604. 2007-06-28 Adam Roben <aroben@apple.com>
  15605. Fix <rdar://problem/5300455> Prefast: typo in RenderBlock::paintObject
  15606. Reviewed by Hyatt.
  15607. No layout test possible, as this bug didn't have any effect since
  15608. "bool & bool" has the same value as "bool && bool"
  15609. * rendering/RenderBlock.cpp:
  15610. (WebCore::RenderBlock::paintObject): Changed & to &&.
  15611. 2007-06-28 Adam Roben <aroben@apple.com>
  15612. Fix <rdar://problem/5300443> word-break and -webkit-user-modify allow any value
  15613. The bug was caused by two typos found by prefast.
  15614. Reviewed by Hyatt.
  15615. * css/cssparser.cpp:
  15616. (WebCore::CSSParser::parseValue): Fixed typos.
  15617. 2007-06-20 Matt Perry <mpComplete@gmail.com>
  15618. Reviewed by Adam.
  15619. - Fix http://bugs.webkit.org/show_bug.cgi?id=14251:
  15620. onchange handler for select controls doesn't fire when changing via keyboard
  15621. * html/HTMLSelectElement.cpp:
  15622. (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Got rid of
  15623. a call to saveLastSelection in the "Enter" key handler for select
  15624. controls that was preventing onchange from firing.
  15625. 2007-06-27 Sam Weinig <sam@webkit.org>
  15626. Fix Gdk, Qt, and Win32 builds.
  15627. * WebCore.pro:
  15628. * WebCore.vcproj/WebCore.vcproj:
  15629. 2007-06-27 Sam Weinig <sam@webkit.org>
  15630. Reviewed by Geoff.
  15631. Patch for http://bugs.webkit.org/show_bug.cgi?id=14319
  15632. Move the Selection object out of the JS bindings
  15633. - Renames JS Object Selection to DOMSelection to avoid a name
  15634. conflict.
  15635. * DerivedSources.make:
  15636. * WebCore.xcodeproj/project.pbxproj:
  15637. * bindings/js/kjs_window.cpp:
  15638. (KJS::WindowPrivate::WindowPrivate):
  15639. (KJS::Window::mark):
  15640. (KJS::Window::clearHelperObjectProperties):
  15641. (KJS::WindowFunc::callAsFunction):
  15642. (KJS::Window::disconnectFrame):
  15643. * bindings/js/kjs_window.h:
  15644. (KJS::Window::):
  15645. * page/DOMSelection.cpp: Added.
  15646. (WebCore::DOMSelection::DOMSelection):
  15647. (WebCore::DOMSelection::frame):
  15648. (WebCore::DOMSelection::disconnectFrame):
  15649. (WebCore::DOMSelection::anchorNode):
  15650. (WebCore::DOMSelection::baseNode):
  15651. (WebCore::DOMSelection::anchorOffset):
  15652. (WebCore::DOMSelection::baseOffset):
  15653. (WebCore::DOMSelection::focusNode):
  15654. (WebCore::DOMSelection::extentNode):
  15655. (WebCore::DOMSelection::focusOffset):
  15656. (WebCore::DOMSelection::extentOffset):
  15657. (WebCore::DOMSelection::isCollapsed):
  15658. (WebCore::DOMSelection::type):
  15659. (WebCore::DOMSelection::rangeCount):
  15660. (WebCore::DOMSelection::collapse):
  15661. (WebCore::DOMSelection::collapseToEnd):
  15662. (WebCore::DOMSelection::collapseToStart):
  15663. (WebCore::DOMSelection::empty):
  15664. (WebCore::DOMSelection::setBaseAndExtent):
  15665. (WebCore::DOMSelection::setPosition):
  15666. (WebCore::DOMSelection::modify):
  15667. (WebCore::DOMSelection::getRangeAt):
  15668. (WebCore::DOMSelection::removeAllRanges):
  15669. (WebCore::DOMSelection::addRange):
  15670. (WebCore::DOMSelection::toString):
  15671. * page/DOMSelection.h: Added.
  15672. * page/DOMSelection.idl: Added.
  15673. * page/DOMWindow.cpp:
  15674. (WebCore::DOMWindow::disconnectFrame):
  15675. (WebCore::DOMWindow::getSelection):
  15676. * page/DOMWindow.h:
  15677. * page/DOMWindow.idl:
  15678. 2007-06-27 Sam Weinig <sam@webkit.org>
  15679. Reviewed by Maciej.
  15680. 2nd patch for http://bugs.webkit.org/show_bug.cgi?id=14111
  15681. Autogenerate Event JS binding
  15682. - Cleanup kjs_events
  15683. * bindings/js/kjs_events.cpp:
  15684. (WebCore::JSAbstractEventListener::JSAbstractEventListener):
  15685. (WebCore::JSAbstractEventListener::handleEvent):
  15686. (WebCore::JSAbstractEventListener::isHTMLEventListener):
  15687. (WebCore::JSUnprotectedEventListener::JSUnprotectedEventListener):
  15688. (WebCore::JSUnprotectedEventListener::~JSUnprotectedEventListener):
  15689. (WebCore::JSUnprotectedEventListener::listenerObj):
  15690. (WebCore::JSUnprotectedEventListener::windowObj):
  15691. (WebCore::JSUnprotectedEventListener::clearWindowObj):
  15692. (WebCore::JSUnprotectedEventListener::mark):
  15693. (WebCore::JSEventListener::JSEventListener):
  15694. (WebCore::JSEventListener::~JSEventListener):
  15695. (WebCore::JSEventListener::listenerObj):
  15696. (WebCore::JSEventListener::windowObj):
  15697. (WebCore::JSEventListener::clearWindowObj):
  15698. (WebCore::JSLazyEventListener::JSLazyEventListener):
  15699. (WebCore::JSLazyEventListener::listenerObj):
  15700. (WebCore::JSLazyEventListener::parseCode):
  15701. (WebCore::getNodeEventListener):
  15702. (WebCore::JSClipboard::JSClipboard):
  15703. (WebCore::JSClipboard::getValueProperty):
  15704. (WebCore::JSClipboard::putValueProperty):
  15705. (WebCore::JSClipboardPrototypeFunction::callAsFunction):
  15706. (WebCore::toJS):
  15707. (WebCore::toClipboard):
  15708. * bindings/js/kjs_events.h:
  15709. (WebCore::JSClipboard::classInfo):
  15710. (WebCore::JSClipboard::impl):
  15711. * bindings/js/kjs_window.h:
  15712. * ksvg2/events/JSSVGLazyEventListener.h:
  15713. 2007-06-27 Sam Weinig <sam@webkit.org>
  15714. Reviewed by Adam Roben.
  15715. Patch for http://bugs.webkit.org/show_bug.cgi?id=12045
  15716. Crash under gmalloc at WTF::RefPtr<WebCore::HTMLSliderThumbElement>::operator->
  15717. <rdar://problem/5286670>
  15718. Test: fast/forms/thumbslider-no-parent-slider.html
  15719. Test: fast/forms/thumbslider-crash.html
  15720. * rendering/RenderObject.h:
  15721. (WebCore::RenderObject::isSlider):
  15722. * rendering/RenderSlider.h:
  15723. (WebCore::RenderSlider::isSlider):
  15724. * rendering/RenderTheme.cpp:
  15725. (WebCore::RenderTheme::paint): Only paint thumbslider
  15726. if the parent renderer is a RenderSlider.
  15727. * rendering/RenderThemeMac.mm:
  15728. (WebCore::RenderThemeMac::paintSliderThumb):
  15729. * rendering/RenderThemeSafari.cpp:
  15730. (WebCore::RenderThemeSafari::paintSliderThumb):
  15731. 2007-06-27 George Staikos <staikos@kde.org>
  15732. Make Qt builds link when XSLT is turned off.
  15733. * WebCore.pro:
  15734. 2007-06-27 Steve Falkenburg <sfalken@apple.com>
  15735. Turn on static code analysis (Windows only).
  15736. Affects only folks that have Visual Studio Team Suite installed,
  15737. or who have replaced their compiler with the version shipping in the
  15738. Vista SDK.
  15739. Reviewed by Oliver.
  15740. * WebCore.vcproj/WebCore.vcproj:
  15741. 2007-06-27 George Staikos <staikos@kde.org>
  15742. Remove old commented out files that no-longer exist.
  15743. * WebCore.pro:
  15744. 2007-06-27 Justin Garcia <justin.garcia@apple.com>
  15745. Reviewed by John.
  15746. <rdar://problem/5247341> REGRESSION: Pasting sometimes leaves out trailing newline
  15747. Pasting with a trailing interchange newline doesn't work when pasting
  15748. into an empty line. Code that handles removing brs at the insertion
  15749. position tries to also handle trailing interchange newlines by re-using
  15750. those brs and fails. Removed that code and handle all interchange
  15751. newlines with code later in doApply().
  15752. * editing/ReplaceSelectionCommand.cpp:
  15753. (WebCore::ReplaceSelectionCommand::doApply): Don't try to re-use the
  15754. endBR when there's a trailing interchange newline.
  15755. 2007-06-27 Anders Carlsson <andersca@apple.com>
  15756. Reviewed by Oliver.
  15757. <rdar://problem/5253950>
  15758. When Shockwave plugin has been loaded, exiting crashes Safari
  15759. Add a "load count" for plugin packages. When the load count is zero, unload the plugin.
  15760. * plugins/win/PluginPackageWin.cpp:
  15761. (WebCore::PluginPackageWin::PluginPackageWin):
  15762. (WebCore::PluginPackageWin::load):
  15763. (WebCore::PluginPackageWin::unload):
  15764. (WebCore::PluginPackageWin::unloadWithoutShutdown):
  15765. * plugins/win/PluginPackageWin.h:
  15766. * plugins/win/PluginViewWin.cpp:
  15767. (WebCore::PluginViewWin::~PluginViewWin):
  15768. Make sure to unload the plugin package and clear any references to plugin script objects.
  15769. 2007-06-27 George Staikos <staikos@kde.org>
  15770. This was succeeding compile by luck. Setup dependencies properly.
  15771. * WebCore.pro:
  15772. 2007-06-27 Justin Garcia <justin.garcia@apple.com>
  15773. Reviewed by John.
  15774. <rdar://problem/4580583> Breaking blockquoted list should not automatically renumber the second list
  15775. When a quoted numbered list is broken in half, it's cloned
  15776. to make the second list. That second list needs its start attribute
  15777. set so that the numbers of the list items in it will be preserved.
  15778. * editing/BreakBlockquoteCommand.cpp:
  15779. (WebCore::BreakBlockquoteCommand::doApply): Set the start attribute
  15780. of a cloned list to be the original number of the first list item in it.
  15781. 2007-06-27 Alexey Proskuryakov <ap@webkit.org>
  15782. Reviewed by Geoff.
  15783. http://bugs.webkit.org/show_bug.cgi?id=14413
  15784. GIF animation throttling is different from MSIE
  15785. * platform/graphics/cg/ImageSourceCG.cpp:
  15786. (WebCore::ImageSource::frameDurationAtIndex):
  15787. Change the cut-off value to 50ms to match MSIE.
  15788. 2007-06-27 Sam Weinig <sam@webkit.org>
  15789. Reviewed by Darin.
  15790. First pass at fixing implicit 64-32 bit conversion errors.
  15791. <rdar://problem/5292262>
  15792. - Add 'f' suffix where necessary.
  15793. * bridge/mac/WebCoreAXObject.mm:
  15794. (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
  15795. * css/csshelper.h:
  15796. * css/cssstyleselector.cpp:
  15797. (WebCore::):
  15798. (WebCore::CSSStyleSelector::largerFontSize):
  15799. (WebCore::CSSStyleSelector::smallerFontSize):
  15800. * html/CanvasGradient.cpp:
  15801. (WebCore::CanvasGradient::addColorStop):
  15802. * html/CanvasPattern.cpp:
  15803. (WebCore::CanvasPattern::createPattern):
  15804. * ksvg2/css/SVGCSSStyleSelector.cpp:
  15805. (WebCore::CSSStyleSelector::applySVGProperty):
  15806. * ksvg2/css/SVGRenderStyle.h:
  15807. * ksvg2/events/SVGZoomEvent.cpp:
  15808. (WebCore::SVGZoomEvent::SVGZoomEvent):
  15809. * ksvg2/svg/SVGLength.cpp:
  15810. (WebCore::SVGLength::SVGLength):
  15811. (WebCore::SVGLength::value):
  15812. (WebCore::SVGLength::setValue):
  15813. (WebCore::SVGLength::valueAsPercentage):
  15814. (WebCore::SVGLength::PercentageOfViewport):
  15815. * ksvg2/svg/SVGSVGElement.cpp:
  15816. (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
  15817. (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
  15818. (WebCore::SVGSVGElement::getScreenCTM):
  15819. * ksvg2/svg/SVGTextContentElement.cpp:
  15820. (WebCore::SVGTextContentElement::getComputedTextLength):
  15821. (WebCore::SVGTextContentElement::getSubStringLength):
  15822. (WebCore::SVGTextContentElement::getRotationOfChar):
  15823. * ksvg2/svg/SVGTransformDistance.cpp:
  15824. (WebCore::SVGTransformDistance::SVGTransformDistance):
  15825. (WebCore::SVGTransformDistance::distance):
  15826. * page/InspectorController.cpp:
  15827. (WebCore::InspectorResource::InspectorResource):
  15828. * platform/graphics/FloatPoint3D.cpp:
  15829. (WebCore::FloatPoint3D::normalize):
  15830. * platform/graphics/Path.cpp:
  15831. (WebCore::pathLengthApplierFunction):
  15832. (WebCore::Path::createRoundedRectangle):
  15833. * platform/graphics/cg/GraphicsContextCG.cpp:
  15834. (WebCore::GraphicsContext::drawLine):
  15835. (WebCore::GraphicsContext::strokeArc):
  15836. * platform/graphics/cg/ImageCG.cpp:
  15837. (WebCore::FrameData::clear):
  15838. * platform/graphics/cg/ImageSourceCG.cpp:
  15839. (WebCore::ImageSource::frameDurationAtIndex):
  15840. * platform/graphics/cg/PDFDocumentImage.cpp:
  15841. (WebCore::PDFDocumentImage::setCurrentPage):
  15842. * platform/graphics/svg/SVGPaintServerPattern.cpp:
  15843. (WebCore::SVGPaintServerPattern::externalRepresentation):
  15844. * platform/graphics/svg/SVGPaintServerRadialGradient.cpp:
  15845. (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient):
  15846. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  15847. (WebCore::cgGradientCallback):
  15848. (WebCore::CGShadingRefForRadialGradient):
  15849. (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
  15850. * platform/mac/FontDataMac.mm:
  15851. (WebCore::webFallbackFontFamily):
  15852. * platform/mac/PopupMenuMac.mm:
  15853. (WebCore::PopupMenu::show):
  15854. * rendering/InlineFlowBox.cpp:
  15855. (WebCore::InlineFlowBox::placeBoxesHorizontally):
  15856. * rendering/RenderSlider.cpp:
  15857. (WebCore::RenderSlider::setValueForPosition):
  15858. (WebCore::RenderSlider::setPositionFromValue):
  15859. 2007-06-27 Alexey Proskuryakov <ap@webkit.org>
  15860. Reviewed by Geoff.
  15861. http://bugs.webkit.org/show_bug.cgi?id=14288
  15862. XMLHttpRequest doesn't use a correct content type for file:// URLs
  15863. Test: fast/dom/xmlhttprequest-html-response-encoding.html
  15864. * xml/xmlhttprequest.cpp:
  15865. (WebCore::XMLHttpRequest::responseMIMEType): Use MIME type provided by
  15866. the network layer, since it provides it even for non-HTTP responses.
  15867. 2007-06-26 Alp Toker <alp.toker@collabora.co.uk>
  15868. Reviewed by Sam Weinig.
  15869. http://bugs.webkit.org/show_bug.cgi?id=14061
  15870. Implement more of FrameLoaderClientGdk
  15871. Make FrameLoaderClientGdk work properly when the MIME type is set.
  15872. * loader/gdk/FrameLoaderClientGdk.cpp:
  15873. (WebCore::FrameLoaderClientGdk::objectContentType):
  15874. (WebCore::FrameLoaderClientGdk::canShowMIMEType):
  15875. 2007-06-26 Alp Toker <alp.toker@collabora.co.uk>
  15876. Reviewed by Maciej.
  15877. http://bugs.webkit.org/show_bug.cgi?id=14058
  15878. Gdk font backend cleanup
  15879. * platform/FontData.h: Remove obsolete function.
  15880. * platform/gdk/FontDataGdk.cpp:
  15881. (WebCore::FontData::containsCharacters): Lock/unlock only once.
  15882. (WebCore::FontData::platformWidthForGlyph): Remove needless cast.
  15883. * platform/gdk/FontPlatformData.h: Remove obsolete function.
  15884. * platform/gdk/FontPlatformDataGdk.cpp:
  15885. (WebCore::FontPlatformData::FontPlatformData): Pass the actual size,
  15886. not the pixel size.
  15887. (WebCore::FontPlatformData::~FontPlatformData): Free m_fontMatrix.
  15888. * platform/gdk/GlyphPageTreeNodeGdk.cpp:
  15889. (WebCore::GlyphPage::fill): Lock/unlock only once.
  15890. 2007-06-26 Mitz Pettel <mitz@webkit.org>
  15891. Reviewed by Hyatt.
  15892. - fix http://bugs.webkit.org/show_bug.cgi?id=14406
  15893. <colgroup>'s borders are ignored when it has <col> children
  15894. Covered by existing tests.
  15895. * rendering/RenderTableCell.cpp:
  15896. (WebCore::RenderTableCell::collapsedLeftBorder):
  15897. (WebCore::RenderTableCell::collapsedRightBorder):
  15898. (WebCore::RenderTableCell::collapsedTopBorder):
  15899. (WebCore::RenderTableCell::collapsedBottomBorder):
  15900. 2007-06-26 Mitz Pettel <mitz@webkit.org>
  15901. Reviewed by Oliver.
  15902. - fix http://bugs.webkit.org/show_bug.cgi?id=14329
  15903. REGRESSION: TEXTAREA - cannot drag-and-drop text at en.wikipedia.org/
  15904. Test: fast/repaint/text-selection-rect-in-overflow-2.html
  15905. * rendering/RenderObject.cpp:
  15906. (WebCore::RenderObject::computeAbsoluteRepaintRect): Added code to account
  15907. for overflow scroll and columns.
  15908. * rendering/RenderText.cpp:
  15909. (WebCore::RenderText::selectionRect): Adjust for columns only in the
  15910. non-clipped case, since RenderObject::absolutePosition() does not.
  15911. 2007-06-26 Mitz Pettel <mitz@webkit.org>
  15912. Reviewed by Sam.
  15913. - http://bugs.webkit.org/show_bug.cgi?id=14415
  15914. Remove the unused method RenderObject::setTable()
  15915. * rendering/RenderObject.h:
  15916. 2007-06-26 Darin Fisher <darin@chromium.org>
  15917. Reviewed by Maciej.
  15918. Implement http://bugs.webkit.org/show_bug.cgi?id=14225
  15919. Bug 14225: Make it possible to define platform-specific ResourceRequest without #ifdefs
  15920. This change moves the bulk of ResourceRequest into a base class named
  15921. ResourceRequestBase with all platform-specific bits pushed into
  15922. ResourceRequest. This allows ports to easily add new members to a
  15923. ResourceRequest without having to #ifdef the code that is shared
  15924. between ports.
  15925. * WebCore.exp:
  15926. * WebCore.pro:
  15927. * WebCore.vcproj/WebCore.vcproj:
  15928. * WebCore.xcodeproj/project.pbxproj:
  15929. * platform/network/ResourceRequest.cpp: Removed.
  15930. * platform/network/ResourceRequest.h: Removed.
  15931. * platform/network/ResourceRequestBase.cpp: Added.
  15932. (WebCore::ResourceRequestBase::asResourceRequest):
  15933. (WebCore::ResourceRequestBase::isEmpty):
  15934. (WebCore::ResourceRequestBase::isNull):
  15935. (WebCore::ResourceRequestBase::url):
  15936. (WebCore::ResourceRequestBase::setURL):
  15937. (WebCore::ResourceRequestBase::cachePolicy):
  15938. (WebCore::ResourceRequestBase::setCachePolicy):
  15939. (WebCore::ResourceRequestBase::timeoutInterval):
  15940. (WebCore::ResourceRequestBase::setTimeoutInterval):
  15941. (WebCore::ResourceRequestBase::mainDocumentURL):
  15942. (WebCore::ResourceRequestBase::setMainDocumentURL):
  15943. (WebCore::ResourceRequestBase::httpMethod):
  15944. (WebCore::ResourceRequestBase::setHTTPMethod):
  15945. (WebCore::ResourceRequestBase::httpHeaderFields):
  15946. (WebCore::ResourceRequestBase::httpHeaderField):
  15947. (WebCore::ResourceRequestBase::setHTTPHeaderField):
  15948. (WebCore::ResourceRequestBase::httpBody):
  15949. (WebCore::ResourceRequestBase::setHTTPBody):
  15950. (WebCore::ResourceRequestBase::allowHTTPCookies):
  15951. (WebCore::ResourceRequestBase::setAllowHTTPCookies):
  15952. (WebCore::ResourceRequestBase::addHTTPHeaderField):
  15953. (WebCore::ResourceRequestBase::addHTTPHeaderFields):
  15954. (WebCore::operator==):
  15955. (WebCore::ResourceRequestBase::isConditional):
  15956. (WebCore::ResourceRequestBase::updatePlatformRequest):
  15957. (WebCore::ResourceRequestBase::updateResourceRequest):
  15958. * platform/network/ResourceRequestBase.h: Added.
  15959. (WebCore::):
  15960. (WebCore::ResourceRequestBase::httpContentType):
  15961. (WebCore::ResourceRequestBase::setHTTPContentType):
  15962. (WebCore::ResourceRequestBase::httpReferrer):
  15963. (WebCore::ResourceRequestBase::setHTTPReferrer):
  15964. (WebCore::ResourceRequestBase::clearHTTPReferrer):
  15965. (WebCore::ResourceRequestBase::httpUserAgent):
  15966. (WebCore::ResourceRequestBase::setHTTPUserAgent):
  15967. (WebCore::ResourceRequestBase::httpAccept):
  15968. (WebCore::ResourceRequestBase::setHTTPAccept):
  15969. (WebCore::ResourceRequestBase::ResourceRequestBase):
  15970. (WebCore::operator!=):
  15971. * platform/network/cf/ResourceRequest.h: Added.
  15972. (WebCore::ResourceRequest::ResourceRequest):
  15973. * platform/network/curl/ResourceRequest.h: Added.
  15974. (WebCore::ResourceRequest::ResourceRequest):
  15975. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  15976. (WebCore::ResourceRequest::doUpdateResourceRequest):
  15977. * platform/network/mac/ResourceRequest.h: Added.
  15978. (WebCore::ResourceRequest::ResourceRequest):
  15979. * platform/network/qt/ResourceRequest.h: Added.
  15980. (WebCore::ResourceRequest::ResourceRequest):
  15981. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  15982. (WebCore::ResourceRequest::doUpdateResourceRequest):
  15983. 2007-06-26 Adam Roben <aroben@apple.com>
  15984. Add ChangeLog entries from the Windows merge.
  15985. Reviewed by Maciej.
  15986. * ChangeLog:
  15987. 2007-06-26 Sam Weinig <sam@webkit.org>
  15988. Reviewed by Maciej.
  15989. Make sure not to enumerate the toString() function.
  15990. <rdar://problem/5297118>
  15991. * bindings/js/kjs_window.cpp:
  15992. * bindings/scripts/CodeGeneratorJS.pm: Add support for [DontEnum].
  15993. * html/HTMLAnchorElement.idl:
  15994. 2007-06-26 Alp Toker <alp.toker@collabora.co.uk>
  15995. Reviewed by Mitz, landed by Anders.
  15996. http://bugs.webkit.org/show_bug.cgi?id=14421
  15997. Implement GraphicsContext::clearRect()
  15998. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  15999. (WebCore::GraphicsContext::clearRect):
  16000. 2007-06-26 Alp Toker <alp.toker@collabora.co.uk>
  16001. Reviewed and landed by Anders.
  16002. http://bugs.webkit.org/show_bug.cgi?id=14416
  16003. Content does not render fully in some cases
  16004. Fix mismatched calls to cairo_save/restore due to an early method return.
  16005. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  16006. (WebCore::GraphicsContext::drawLine):
  16007. 2007-06-26 Tristan O'Tierney <tristan@apple.com>
  16008. Reviewed by John Sullivan.
  16009. Added two accessor functions for <rdar://problem/4119138>
  16010. * bindings/objc/DOMHTML.mm:
  16011. (-[DOMHTMLInputElement _isEdited]):
  16012. (-[DOMHTMLTextAreaElement _isEdited]):
  16013. Added an accessor to the isEdited value of a DOM node's render object
  16014. * bindings/objc/DOMPrivate.h:
  16015. Added header definitions for _isEdited
  16016. 2007-06-26 Sam Weinig <sam@webkit.org>
  16017. Fix Win32 build.
  16018. * WebCore.vcproj/WebCore.vcproj:
  16019. 2007-06-26 Sam Weinig <sam@webkit.org>
  16020. Fix Qt and Gdk builds.
  16021. * WebCore.pro:
  16022. 2007-06-26 Sam Weinig <sam@webkit.org>
  16023. Reviewed by Geoff.
  16024. Patch for http://bugs.webkit.org/show_bug.cgi?id=14111
  16025. Autogenerate Event JS binding
  16026. - Moves the dataTransfer method into MouseEvent where it should be.
  16027. * WebCore.xcodeproj/project.pbxproj:
  16028. * bindings/js/JSEventCustom.cpp: Added.
  16029. (WebCore::JSEvent::clipboardData):
  16030. (WebCore::toJS):
  16031. * bindings/js/JSEventTargetNode.cpp:
  16032. * bindings/js/JSXMLHttpRequest.cpp:
  16033. * bindings/js/kjs_events.cpp:
  16034. * bindings/js/kjs_events.h:
  16035. * bindings/objc/DOMUtility.mm:
  16036. (KJS::createDOMWrapper):
  16037. * bindings/scripts/CodeGeneratorJS.pm:
  16038. * dom/Event.h:
  16039. (WebCore::Event::returnValue):
  16040. (WebCore::Event::setReturnValue):
  16041. (WebCore::Event::clipboardData):
  16042. * dom/Event.idl:
  16043. * dom/MouseEvent.h:
  16044. (WebCore::MouseEvent::dataTransfer):
  16045. * dom/MouseEvent.idl:
  16046. 2007-06-26 Timothy Hatcher <timothy@apple.com>
  16047. Reviewed by Mark Rowe.
  16048. Follow up fix for: Bug 14385: Web Inspector's computed style doesn't show implicitly set properties
  16049. http://bugs.webkit.org/show_bug.cgi?id=14385
  16050. Correctly remember the "Show implicit properties" setting as you switch nodes.
  16051. * page/inspector/ResourcePanel.js:
  16052. 2007-06-26 Justin Garcia <justin.garcia@apple.com>
  16053. Reviewed by John.
  16054. <rdar://problem/5290534> Crash at RenderTextControl::calcHeight() after deleting text in a search field
  16055. Editing removed a node that was part of a search field's internal
  16056. structure that should not be removed.
  16057. * editing/DeleteSelectionCommand.cpp:
  16058. (WebCore::DeleteSelectionCommand::handleGeneralDelete): If the
  16059. selection to delete ends at [container, x], where x is the number
  16060. of children in container, don't remove container. Special case
  16061. code elsewhere in this function will remove it if necessary.
  16062. 2007-06-25 Sam Weinig <sam@webkit.org>
  16063. Reviewed by Maciej.
  16064. Patch for http://bugs.webkit.org/show_bug.cgi?id=11315
  16065. Mutating document.constructor.prototype mutates Object.prototype
  16066. Test: fast/js/constructor.html
  16067. * bindings/scripts/CodeGeneratorJS.pm: add constructor attribute to
  16068. classes with constructors. It is an non-enumeratable, non-deletable,
  16069. readonly attribute.
  16070. 2007-06-26 George Staikos <staikos@kde.org>
  16071. Repair the OS X build.
  16072. * WebCore.exp:
  16073. 2007-06-26 Adam Treat <adam@staikos.net>
  16074. Reviewed by Adam Roben.
  16075. Make the SQLite icon database optional.
  16076. * loader/icon/IconDatabase.cpp:
  16077. (WebCore::IconDatabase::isOpen):
  16078. (WebCore::IconDatabase::isPrivateBrowsingEnabled):
  16079. (WebCore::IconDatabase::enabled):
  16080. * loader/icon/IconDatabase.h:
  16081. 2007-06-25 Sam Weinig <sam@webkit.org>
  16082. Reviewed by Adam Roben.
  16083. Patch for http://bugs.webkit.org/show_bug.cgi?id=14369
  16084. HTML syntax highlighting colors and DOM tree colors should be the same
  16085. * css/view-source.css:
  16086. * page/inspector/ResourcePanel.js:
  16087. * page/inspector/inspector.css:
  16088. * page/inspector/inspector.js:
  16089. * page/inspector/utilities.js:
  16090. 2007-06-25 Adam Roben <aroben@apple.com>
  16091. Fix Bug 14402: Main resource of http://www.apple.com/safari/ is called "www.apple.com" instead of "safari"
  16092. http://bugs.webkit.org/show_bug.cgi?id=14402
  16093. The solution was to make KURL::lastPathComponent ignore trailing
  16094. slashes, which is what -[NSURL lastPathComponent] does, too.
  16095. Reviewed by Oliver.
  16096. * platform/KURL.cpp:
  16097. (WebCore::KURL::lastPathComponent):
  16098. 2007-06-25 Sam Weinig <sam@webkit.org>
  16099. Reviewed by Adam Roben.
  16100. Patch for http://bugs.webkit.org/show_bug.cgi?id=14257
  16101. Web Inspector lists favicon.ico as "other" instead of "image"
  16102. * page/InspectorController.cpp:
  16103. (WebCore::InspectorResource::type):
  16104. 2007-06-25 Adele Peterson <adele@apple.com>
  16105. Reviewed by Hyatt.
  16106. Fix for <rdar://problem/5286410> Scrollbar and resize corner for overflow area is not hidden with style "visibility: hidden;"
  16107. http://bugs.webkit.org/show_bug.cgi?id=14297
  16108. Test: fast/overflow/hidden-scrollbar-resize.html
  16109. * rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintLayer):
  16110. Updated our shouldPaint check to consider visibility.
  16111. 2007-06-25 Oliver Hunt <oliver@apple.com>
  16112. Reviewed by Darin.
  16113. <rdar://problem/5293444> REGRESSION: Dragging plain text into a styled text region does not acquire the correct style info
  16114. Fixing logic error in DragController
  16115. * manual-tests/drop-text-acquires-style.html: Added.
  16116. * page/DragController.cpp:
  16117. (WebCore::documentFragmentFromDragData):
  16118. 2007-06-25 Sam Weinig <sam@webkit.org>
  16119. Reviewed by Adam Roben.
  16120. Annotate prototypes by adding "Prototype" subtitle.
  16121. * page/inspector/ResourcePanel.js:
  16122. 2007-06-25 George Staikos <staikos@kde.org>
  16123. Reviewed by Zack.
  16124. Start to add proxy and SSL support to WebKitQt. Proxying works.
  16125. * platform/network/ResourceHandleInternal.h:
  16126. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  16127. * platform/network/qt/ResourceHandleQt.cpp:
  16128. (WebCore::ResourceHandle::start):
  16129. 2007-06-25 Alp Toker <alp.toker@collabora.co.uk>
  16130. Reviewed by Adam Roben.
  16131. http://bugs.webkit.org/show_bug.cgi?id=14386
  16132. Gdk build fix
  16133. * WebCore.pro: Fix gtk/gdk typo.
  16134. 2007-06-25 Timothy Hatcher <timothy@apple.com>
  16135. Reviewed by Anders.
  16136. Bug 14385: Web Inspector's computed style doesn't show implicitly set properties
  16137. http://bugs.webkit.org/show_bug.cgi?id=14385
  16138. Add a toggle to show implict computed properties.
  16139. * page/inspector/ResourcePanel.js:
  16140. * page/inspector/inspector.css:
  16141. * page/inspector/inspector.js:
  16142. 2007-06-25 Alp Toker <alp.toker@collabora.co.uk>
  16143. Reviewed by Mark.
  16144. http://bugs.webkit.org/show_bug.cgi?id=13975
  16145. Use system-provided libjpeg and libpng
  16146. * WebCore.pro: Remove bundled libjpeg and libpng sources.
  16147. * platform/image-decoders/jpeg: Remove sources.
  16148. * platform/image-decoders/png: Remove sources.
  16149. 2007-06-25 Mitz Pettel <mitz@webkit.org>
  16150. Reviewed by Darin.
  16151. - fix http://bugs.webkit.org/show_bug.cgi?id=14202
  16152. Table caption renders too narrow sometimes
  16153. Test: fast/table/caption-relayout.html
  16154. * rendering/RenderTable.cpp:
  16155. (WebCore::RenderTable::layout): Mark the caption for layout if the table
  16156. width changed.
  16157. 2007-06-25 Mitz Pettel <mitz@webkit.org>
  16158. Reviewed by Darin.
  16159. - fix http://bugs.webkit.org/show_bug.cgi?id=14245
  16160. Underline painted under <br>, not repainted properly
  16161. Test: fast/inline/br-text-decoration.html
  16162. * platform/graphics/cg/GraphicsContextCG.cpp:
  16163. (WebCore::GraphicsContext::drawLineForText): Added an early return if the line width
  16164. is zero. Also changed the line stroke to a rect fill, so that lines with length shorter
  16165. than their thickness paint correctly.
  16166. 2007-06-25 Mitz Pettel <mitz@webkit.org>
  16167. Reviewed by Maciej.
  16168. - fix http://bugs.webkit.org/show_bug.cgi?id=14341
  16169. rules="none" ignored in certain cases
  16170. Covered by existing tests.
  16171. * html/HTMLTableElement.cpp:
  16172. (WebCore::HTMLTableElement::getSharedCellDecl):
  16173. 2007-06-24 Sam Weinig <sam@webkit.org>
  16174. Reviewed by Mitz.
  16175. Patch for http://bugs.webkit.org/show_bug.cgi?id=14379
  16176. Anchor elements show up as their href in the properties pane, not HTMLAnchorElement
  16177. * page/inspector/ResourcePanel.js: make sure not to call an overriden
  16178. toString() by using Object.prototype.toString.call().
  16179. 2007-06-24 Adam Roben <aroben@apple.com>
  16180. Fix http://bugs.webkit.org/show_bug.cgi?id=14374
  16181. Bug 14374: Computed Style section should be expanded by default
  16182. Reviewed by Sam.
  16183. No regression test possible.
  16184. * page/inspector/ResourcePanel.js: Expand all style sections.
  16185. 2007-06-24 Adam Roben <aroben@apple.com>
  16186. Unify the style of enums in the Inspector JS
  16187. All our enums are now represented by an object with a property for
  16188. each enum value.
  16189. Reviewed by Sam.
  16190. No regression test possible.
  16191. * page/inspector/ConsolePanel.js:
  16192. * page/inspector/Resource.js:
  16193. * page/inspector/ResourcePanel.js:
  16194. * page/inspector/inspector.js:
  16195. 2007-06-23 Sam Weinig <sam@webkit.org>
  16196. Reviewed by Mitz.
  16197. Patch for http://bugs.webkit.org/show_bug.cgi?id=14321
  16198. getComputedStyle(...).zIndex returns string "normal"
  16199. Test: fast/css/getComputedStyle-zIndex-auto.html
  16200. * css/CSSComputedStyleDeclaration.cpp:
  16201. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 'auto' instead of 'normal'.
  16202. 2007-06-24 Matt Lilek <pewtermoose@gmail.com>
  16203. Reviewed by Tim Hatcher.
  16204. Bug 14265: Cannot resize columns in webinspector
  16205. http://bugs.webkit.org/show_bug.cgi?id=14265
  16206. * page/inspector/inspector.css:
  16207. * page/inspector/inspector.html:
  16208. * page/inspector/inspector.js:
  16209. 2007-06-23 Adam Roben <aroben@apple.com>
  16210. Silence a build warning about not finding `num-cpus`
  16211. Reviewed by Mark Rowe.
  16212. * WebCore.vcproj/build-generated-files.sh: Look for num-cpus in its new
  16213. location.
  16214. 2007-06-22 Anders Carlsson <andersca@apple.com>
  16215. Reviewed by Darin.
  16216. * plugins/win/PluginStreamWin.cpp:
  16217. (WebCore::PluginStreamWin::didFinishLoading):
  16218. No need to fetch the size from resourceData.
  16219. 2007-06-22 Anders Carlsson <andersca@apple.com>
  16220. Reviewed by Darin.
  16221. <rdar://problem/5288617>
  16222. Crash playing a very large QuickTime movie inside Safari.
  16223. Get rid of m_completeDeliveryData and use the loader's resource data instead. This reduces the memory usage for
  16224. plug-ins which loads large files and use a transfer mode of NP_ASFILE or NP_ASFILEONLY.
  16225. * plugins/win/PluginStreamWin.cpp:
  16226. (WebCore::PluginStreamWin::PluginStreamWin):
  16227. (WebCore::PluginStreamWin::~PluginStreamWin):
  16228. (WebCore::PluginStreamWin::didReceiveData):
  16229. (WebCore::PluginStreamWin::didFinishLoading):
  16230. * plugins/win/PluginStreamWin.h:
  16231. 2007-06-22 Beth Dakin <bdakin@apple.com>
  16232. Reviewed by Oliver and Darin.
  16233. Fix for <rdar://problem/5266999> Loading page from MangleMe fuzz
  16234. tester crashes in RenderTableRow::addChild (giant ROWSPAN)
  16235. We already have code that tries to prevent allocating too-large
  16236. rowspans. The rowspan in this test, however, was small enough that
  16237. we thought it was okay in that code, even though clearly it was
  16238. still too large. I did a bunch of testing in Firefox, and it seems
  16239. that they set a hard limit on the maximum rowspan right in the DOM
  16240. -- 8k. So that is what this patch implements.
  16241. * html/HTMLTableCellElement.cpp:
  16242. (WebCore::HTMLTableCellElement::parseMappedAttribute):
  16243. 2007-06-22 Justin Garcia <justin.garcia@apple.com>
  16244. Reviewed by Darin.
  16245. <rdar://problem/5272440> Adding To Do via Note received in e-mail adds newlines on delete
  16246. Deletion inserts a placeholder after it removes full paragraphs if
  16247. one doesn't already exist. The code that looked for a pre-existing
  16248. placeholder didn't work because of a bug in enclosingNodeOfType.
  16249. * editing/htmlediting.cpp:
  16250. (WebCore::enclosingNodeOfType): We start looking at node->parentNode(),
  16251. but don't go above an editing root.
  16252. 2007-06-22 Anders Carlsson <andersca@apple.com>
  16253. Reviewed by Maciej and Geoff.
  16254. <rdar://problem/5244734>
  16255. WebKit shouldn't send delegate resource load methods for the user stylesheet (doing so causes assertions in Safari)
  16256. Add a sendResourceLoadCallbacks argument to the ResourceLoader and only send resource load callbacks if it's true. Make it so that
  16257. loading the user style sheet creates a resource loader with sendResourceLoadCallbacks set to false (done by adding a sendResourceLoadCallbacks
  16258. argument to a bunch of classes).
  16259. * loader/Cache.cpp:
  16260. (WebCore::createResource):
  16261. (WebCore::Cache::requestResource):
  16262. * loader/Cache.h:
  16263. * loader/CachedCSSStyleSheet.cpp:
  16264. (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
  16265. * loader/CachedCSSStyleSheet.h:
  16266. * loader/CachedResource.cpp:
  16267. (WebCore::CachedResource::CachedResource):
  16268. * loader/CachedResource.h:
  16269. (WebCore::CachedResource::sendResourceLoadCallbacks):
  16270. * loader/DocLoader.cpp:
  16271. (WebCore::DocLoader::requestCSSStyleSheet):
  16272. (WebCore::DocLoader::requestResource):
  16273. (WebCore::DocLoader::checkCacheObjectStatus):
  16274. * loader/DocLoader.h:
  16275. * loader/MainResourceLoader.cpp:
  16276. (WebCore::MainResourceLoader::MainResourceLoader):
  16277. * loader/Request.cpp:
  16278. (WebCore::Request::Request):
  16279. * loader/Request.h:
  16280. (WebCore::Request::sendResourceLoadCallbacks):
  16281. * loader/ResourceLoader.cpp:
  16282. (WebCore::ResourceLoader::ResourceLoader):
  16283. (WebCore::ResourceLoader::willSendRequest):
  16284. (WebCore::ResourceLoader::didReceiveResponse):
  16285. (WebCore::ResourceLoader::didReceiveData):
  16286. (WebCore::ResourceLoader::didFinishLoadingOnePart):
  16287. (WebCore::ResourceLoader::didFail):
  16288. (WebCore::ResourceLoader::didCancel):
  16289. * loader/ResourceLoader.h:
  16290. (WebCore::ResourceLoader::sendResourceLoadCallbacks):
  16291. * loader/SubresourceLoader.cpp:
  16292. (WebCore::SubresourceLoader::SubresourceLoader):
  16293. (WebCore::SubresourceLoader::create):
  16294. * loader/SubresourceLoader.h:
  16295. * loader/loader.cpp:
  16296. (WebCore::Loader::load):
  16297. (WebCore::Loader::servePendingRequests):
  16298. * loader/loader.h:
  16299. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  16300. (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
  16301. 2007-06-21 Richard Connamacher <rich@indieimage.com>
  16302. Reviewed by Tim Hatcher.
  16303. Bug 14305: Web Inspector marks local files with server-side compression tip
  16304. http://bugs.webkit.org/show_bug.cgi?id=14305
  16305. * page/inspector/Resource.js:
  16306. (WebInspector.Resource._shouldCompress): Prevent server-side compression tip
  16307. from being given to local files
  16308. 2007-06-21 Mark Rowe <mrowe@apple.com>
  16309. Reviewed by Darin.
  16310. Fix for <rdar://problem/5266928> REGRESSION: crash/assert failure beneath RenderFrameSet::layOutAxis when loading
  16311. * platform/StringImpl.cpp:
  16312. (WebCore::StringImpl::toLengthArray): Simplify whitespace before checking for an empty string. This avoids returning
  16313. a length of zero when the string is collapsed to empty by whitespace simplification.
  16314. 2007-06-21 Dave Hyatt <hyatt@apple.com>
  16315. Fix for <rdar://problem/5286978>, large font sizes crash Windows.
  16316. Limit the maximum font size to 1,000,000 to avoid crashes and issues with platforms that
  16317. start failing to do anything useful if the font size is too big.
  16318. Reviewed by olliej
  16319. * css/cssstyleselector.cpp:
  16320. (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
  16321. 2007-06-21 Andrew Wellington <proton@wiretapped.net>
  16322. Reviewed by Timothy.
  16323. Stop shift+scroll wheel performing a horizontal scroll in Web Inspector
  16324. * page/inspector/inspector.css: Set body margin to 0
  16325. 2007-06-21 Adam Treat <adam@staikos.net>
  16326. Reviewed by George Staikos.
  16327. Implement the default resources on Qt.
  16328. * platform/graphics/BitmapImage.h:
  16329. * platform/graphics/Image.h:
  16330. * platform/graphics/qt/ImageQt.cpp:
  16331. (WebCore::Image::loadPlatformResource):
  16332. (WebCore::BitmapImage::BitmapImage):
  16333. (WebCore::BitmapImage::initPlatformData):
  16334. (WebCore::BitmapImage::invalidatePlatformData):
  16335. (WebCore::BitmapImage::getPixmap):
  16336. * platform/qt/TemporaryLinkStubs.cpp:
  16337. 2007-06-21 Oliver Hunt <oliver@apple.com>
  16338. Reviewed by Darin.
  16339. Use RetainPtr for holding currentEvent. This removes explicit HardRetain/Release calls
  16340. and makes reference handling simpler in advance of IME refactoring.
  16341. * WebCore.xcodeproj/project.pbxproj:
  16342. * page/mac/EventHandlerMac.mm:
  16343. (WebCore::currentEvent):
  16344. (WebCore::EventHandler::currentNSEvent):
  16345. (WebCore::EventHandler::wheelEvent):
  16346. (WebCore::EventHandler::keyEvent):
  16347. (WebCore::lastEventIsMouseUp):
  16348. (WebCore::EventHandler::passMouseDownEventToWidget):
  16349. (WebCore::EventHandler::eventLoopHandleMouseDragged):
  16350. (WebCore::EventHandler::eventLoopHandleMouseUp):
  16351. (WebCore::EventHandler::passSubframeEventToSubframe):
  16352. (WebCore::EventHandler::passWheelEventToWidget):
  16353. (WebCore::EventHandler::mouseDown):
  16354. (WebCore::EventHandler::mouseDragged):
  16355. (WebCore::EventHandler::mouseUp):
  16356. (WebCore::EventHandler::mouseMoved):
  16357. 2007-06-21 George Staikos <staikos@kde.org>
  16358. Reviewed by George & Marius.
  16359. Patch by me, revision by Marius, minor rev by me. Adds rendered
  16360. and stylable scrollbars.
  16361. * page/qt/EventHandlerQt.cpp:
  16362. (WebCore::EventHandler::passMousePressEventToScrollbar):
  16363. * platform/Widget.h:
  16364. * platform/qt/PlatformScrollBar.h:
  16365. (WebCore::PlatformScrollbar::isWidget):
  16366. * platform/qt/PlatformScrollBarQt.cpp:
  16367. (WebCore::PlatformScrollbar::PlatformScrollbar):
  16368. (WebCore::PlatformScrollbar::~PlatformScrollbar):
  16369. (WebCore::PlatformScrollbar::updateThumbPosition):
  16370. (WebCore::PlatformScrollbar::updateThumbProportion):
  16371. (WebCore::PlatformScrollbar::width):
  16372. (WebCore::PlatformScrollbar::height):
  16373. (WebCore::PlatformScrollbar::setRect):
  16374. (WebCore::PlatformScrollbar::isEnabled):
  16375. (WebCore::PlatformScrollbar::setEnabled):
  16376. (WebCore::PlatformScrollbar::paint):
  16377. (WebCore::PlatformScrollbar::thumbPosition):
  16378. (WebCore::PlatformScrollbar::thumbLength):
  16379. (WebCore::PlatformScrollbar::trackLength):
  16380. (WebCore::PlatformScrollbar::handleMouseMoveEvent):
  16381. (WebCore::PlatformScrollbar::handleMouseOutEvent):
  16382. (WebCore::PlatformScrollbar::handleMousePressEvent):
  16383. (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
  16384. (WebCore::PlatformScrollbar::startTimerIfNeeded):
  16385. (WebCore::PlatformScrollbar::stopTimerIfNeeded):
  16386. (WebCore::PlatformScrollbar::autoscrollPressedPart):
  16387. (WebCore::PlatformScrollbar::autoscrollTimerFired):
  16388. (WebCore::PlatformScrollbar::pressedPartScrollDirection):
  16389. (WebCore::PlatformScrollbar::pressedPartScrollGranularity):
  16390. (WebCore::PlatformScrollbar::thumbUnderMouse):
  16391. (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
  16392. (WebCore::PlatformScrollbar::verticalScrollbarWidth):
  16393. (WebCore::PlatformScrollbar::windowClipRect):
  16394. * platform/qt/ScrollViewQt.cpp:
  16395. (WebCore::ScrollView::addChild):
  16396. (WebCore::ScrollView::removeChild):
  16397. * platform/qt/WidgetQt.cpp:
  16398. (WebCore::WidgetPrivate::WidgetPrivate):
  16399. (WebCore::Widget::setQWidget):
  16400. (WebCore::Widget::invalidate):
  16401. (WebCore::Widget::invalidateRect):
  16402. (WebCore::Widget::setParent):
  16403. (WebCore::Widget::parent):
  16404. 2007-06-21 Geoffrey Garen <ggaren@apple.com>
  16405. Reviewed by Dave Hyatt.
  16406. Fixed <rdar://problem/4977124> | http://bugs.webkit.org/show_bug.cgi?id=12646
  16407. REGRESSION: RapidWeaver's "Hello" HTML page doesn't display any DHTML
  16408. effects when clicking on its links (12646)
  16409. I'm rolling our r7703 for these reasons:
  16410. 1. It broke RapidWeaver.
  16411. 2. WebKit is now orders of magnitude faster when handling deep nesting
  16412. (5 seconds vs 3 minutes on my MBP in this particular case).
  16413. 3. Firefox, IE, and HTML5 all allow nested heading tags.
  16414. 4. Hyatt said so.
  16415. * html/HTMLParser.cpp:
  16416. (WebCore::HTMLParser::parseToken):
  16417. 2007-06-21 Sam Weinig <sam@webkit.org>
  16418. Reviewed by Tim Hatcher.
  16419. http://bugs.webkit.org/show_bug.cgi?id=14260
  16420. ASSERTION FAILED: m_mainResource->loader == loader going back in history on any page
  16421. Remove assert for now as it is causing the back button to not
  16422. work in debug builds.
  16423. * page/InspectorController.cpp:
  16424. (WebCore::InspectorController::didCommitLoad):
  16425. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16426. Remove some debug output.
  16427. * platform/qt/FontQt.cpp:
  16428. (WebCore::generateComponents):
  16429. (WebCore::Font::width):
  16430. 2007-06-21 George Staikos <staikos@kde.org>
  16431. Repair Qt/Mac OS X build.
  16432. * WebCore.pro:
  16433. 2007-06-21 Alexey Proskuryakov <ap@webkit.org>
  16434. Reviewed by Anders.
  16435. http://bugs.webkit.org/show_bug.cgi?id=13905
  16436. REGRESSION: A Chinese dictionary widget has a problem with XMLHttpRequest response encoding
  16437. Tiger WebKit accidentally looked at HTML Http-Equiv META to determine the response encoding
  16438. (regardless of the actual response MIME type). This was corrected a while ago to match other
  16439. browsers and the draft XHR spec.
  16440. Now restoring this functionality for "text/html", with spec editor's blessing.
  16441. * xml/xmlhttprequest.cpp:
  16442. (WebCore::XMLHttpRequest::responseMIMEType):
  16443. (WebCore::XMLHttpRequest::responseIsXML):
  16444. (WebCore::XMLHttpRequest::didReceiveData):
  16445. * xml/xmlhttprequest.h:
  16446. 2007-06-21 Andrew Wellington <proton@wiretapped.net>
  16447. Mac build fix.
  16448. * platform/Font.h:
  16449. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16450. Reviewed by Simon.
  16451. another small fix for letter spacing
  16452. * platform/qt/FontQt.cpp:
  16453. (WebCore::generateComponents):
  16454. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16455. Reviewed by Simon.
  16456. fix word-spacing
  16457. * platform/qt/FontQt.cpp:
  16458. (WebCore::generateComponents):
  16459. (WebCore::Font::width):
  16460. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16461. Reviewed by Simon.
  16462. fix letterspacing and small caps.
  16463. * platform/Font.h:
  16464. * platform/graphics/qt/GraphicsContextQt.cpp:
  16465. (WebCore::GraphicsContext::setPlatformFont):
  16466. * platform/qt/FileChooserQt.cpp:
  16467. * platform/qt/FontQt.cpp:
  16468. (WebCore::TextRunComponent::TextRunComponent):
  16469. (WebCore::Font::Font):
  16470. (WebCore::Font::operator=):
  16471. (WebCore::Font::update):
  16472. (WebCore::generateComponents):
  16473. (WebCore::Font::selectionRectForText):
  16474. * platform/qt/RenderThemeQt.cpp:
  16475. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16476. Reviewed by Simon.
  16477. store the metrics and space width in the Font object
  16478. * platform/Font.h:
  16479. * platform/qt/FontQt.cpp:
  16480. (WebCore::Font::Font):
  16481. (WebCore::Font::drawText):
  16482. (WebCore::Font::width):
  16483. (WebCore::Font::isFixedPitch):
  16484. (WebCore::Font::ascent):
  16485. (WebCore::Font::descent):
  16486. (WebCore::Font::lineSpacing):
  16487. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16488. Reviewed by Simon.
  16489. simplify some codepaths
  16490. * platform/qt/FontQt.cpp:
  16491. (WebCore::Font::drawText):
  16492. (WebCore::Font::width):
  16493. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16494. Reviewed by Simon.
  16495. fix copyright header
  16496. * platform/qt/FontQt.cpp:
  16497. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16498. Reviewed by Simon.
  16499. correctly load fonts when a list of font families is given
  16500. * platform/qt/FontQt.cpp:
  16501. (WebCore::Font::Font):
  16502. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16503. Reviewed by Simon.
  16504. fix some more of the font support
  16505. * platform/qt/FontQt.cpp:
  16506. (WebCore::Font::drawText):
  16507. (WebCore::Font::width):
  16508. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16509. Reviewed by Simon.
  16510. Compile fixes
  16511. * platform/Font.h:
  16512. (WebCore::Font::isRoundingHackCharacter):
  16513. * platform/qt/FontQt.cpp:
  16514. (WebCore::Font::drawText):
  16515. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16516. Reviewed by Simon.
  16517. Some more work on the implementation of FontQt.
  16518. * platform/qt/FontQt.cpp:
  16519. (WebCore::Font::Font):
  16520. (WebCore::Font::~Font):
  16521. (WebCore::Font::operator=):
  16522. 2007-06-21 Lars Knoll <lars@trolltech.com>
  16523. Reviewed by Simon.
  16524. Started work on the new font infrastructure for the Qt port.
  16525. * WebCore.pro:
  16526. * editing/Editor.cpp:
  16527. (WebCore::Editor::fontForSelection):
  16528. * platform/Font.h:
  16529. (WebCore::Font::treatAsSpace):
  16530. (WebCore::Font::treatAsZeroWidthSpace):
  16531. (WebCore::Font::isRoundingHackCharacter):
  16532. * platform/qt/FontQt.cpp:
  16533. (WebCore::Font::operator QFont):
  16534. * platform/qt/TemporaryLinkStubs.cpp:
  16535. 2007-06-21 Adam Roben <aroben@apple.com>
  16536. More Gdk build fixes.
  16537. * page/gdk/ContextMenuClientGdk.cpp:
  16538. (WebCore::ContextMenuClientGdk::shouldIncludeInspectElementItem):
  16539. * page/gdk/ContextMenuClientGdk.h:
  16540. * platform/gdk/TemporaryLinkStubs.cpp:
  16541. 2007-06-21 Adam Roben <aroben@apple.com>
  16542. Speculative Gdk build fix.
  16543. * page/InspectorController.h: Only include the JS headers we really
  16544. need to avoid pulling in ones like JSStringRefCF.h.
  16545. 2007-06-20 Adam Roben <aroben@apple.com>
  16546. Speculative Gdk build fix.
  16547. * WebCore.pro: Don't try to build WebKitQt/Plugins on Gdk.
  16548. 2007-06-20 Adam Roben <aroben@apple.com>
  16549. Windows build fix.
  16550. * WebCore.vcproj/WebCore.vcproj: Include ForwardingHeaders after
  16551. everything but $WebKitLibrariesDir so that we will pick up
  16552. JavaScriptCore headers directly.
  16553. 2007-06-15 George Staikos <staikos@kde.org>
  16554. Add missing symbol.
  16555. * platform/qt/TemporaryLinkStubs.cpp:
  16556. (WebCore::contextMenuItemTagInspectElement):
  16557. 2007-06-20 Steve Falkenburg <sfalken@apple.com>
  16558. Reviewed by Maciej, Anders.
  16559. <rdar://problem/5283789> Crash after dismissing JavaScript alert at end of test on http://lcamtuf.coredump.cx/ierace/
  16560. Keep a reference to the Page (via the main frame) for the
  16561. load deferred pages.
  16562. Reference is held via the frame since Page isn't refcounted.
  16563. * page/Chrome.cpp:
  16564. (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
  16565. (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
  16566. 2007-06-15 Adam Treat <adam@staikos.net>
  16567. Reviewed by George Staikos.
  16568. Add ICO support to the Qt build.
  16569. * WebCore.pro:
  16570. * platform/graphics/qt/ImageDecoderQt.cpp:
  16571. (Q_IMPORT_PLUGIN):
  16572. 2007-06-15 George Staikos <staikos@kde.org>
  16573. Fixing Qt build.
  16574. * ForwardingHeaders/JavaScriptCore/APICast.h: Added.
  16575. * WebCore.pro:
  16576. * page/InspectorController.h:
  16577. 2007-06-20 Adam Roben <aroben@apple.com>
  16578. More speculative Qt/Gdk build fixes.
  16579. * WebCore.pro: Add new files.
  16580. 2007-06-20 Adam Roben <aroben@apple.com>
  16581. Speculative Qt/Gdk build fix.
  16582. Added forwarding headers for JavaScriptCore. We may eventually move
  16583. InspectorController off of the JSC API, but for now this is the
  16584. quickest way to a working build.
  16585. * ForwardingHeaders/JavaScriptCore/JSBase.h: Added.
  16586. * ForwardingHeaders/JavaScriptCore/JSContextRef.h: Added.
  16587. * ForwardingHeaders/JavaScriptCore/JSObjectRef.h: Added.
  16588. * ForwardingHeaders/JavaScriptCore/JSStringRef.h: Added.
  16589. * ForwardingHeaders/JavaScriptCore/JSStringRefCF.h: Added.
  16590. * ForwardingHeaders/JavaScriptCore/JSValueRef.h: Added.
  16591. * ForwardingHeaders/JavaScriptCore/JavaScriptCore.h: Added.
  16592. 2007-06-20 Sam Weinig <sam@webkit.org>
  16593. Rubber stamped by Adam Roben.
  16594. Add licenses.
  16595. * page/inspector/ConsolePanel.js:
  16596. * page/inspector/NetworkPanel.js:
  16597. * page/inspector/Resource.js:
  16598. * page/inspector/ResourceCategory.js:
  16599. * page/inspector/ResourcePanel.js:
  16600. 2007-06-20 Mark Rowe <mrowe@apple.com>
  16601. Reviewed by Adam.
  16602. * WebCore.exp: Export InspectorController::inspect so WebKit can see it.
  16603. 2007-06-20 Geoffrey Garen <ggaren@apple.com>
  16604. Reviewed by Adele Peterson, Oliver Hunt, Anders Carlsson.
  16605. Fixed <rdar://problem/5222911> Leopard9A446 : VitalSource Bookshelf 4.5:
  16606. Crashes when you click on sign in (stringByEvaluatingJavaScriptFromString
  16607. returning nil instead of "")
  16608. I'm basically rolling out the change for <rdar://problem/4782422> because
  16609. my testing shows that it was backwards.
  16610. * html/HTMLElement.cpp:
  16611. (dumpInnerHTML): New debug-only function to work around gdb being
  16612. perpetually suck-tastic.
  16613. * page/mac/WebCoreFrameBridge.mm:
  16614. (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  16615. Return "", not nil. This function never used to return nil, so let's not
  16616. start now. I've filed <rdar://problem/5283271> to cover the documentation bug,
  16617. 2007-06-20 Adam Roben <aroben@apple.com>
  16618. Addressed some of Geoff's comments.
  16619. * page/ContextMenuController.cpp:
  16620. (WebCore::ContextMenuController::handleContextMenuEvent): Added a
  16621. FIXME.
  16622. * platform/ContextMenu.cpp:
  16623. (WebCore::ContextMenu::addInspectElementItem): Null-check
  16624. frame->page().
  16625. 2007-06-20 Adam Roben <aroben@apple.com>
  16626. Fix crash in fast/dom/dir-no-body.html
  16627. Reviewed by Mark.
  16628. * html/HTMLDocument.cpp:
  16629. (WebCore::HTMLDocument::createTokenizer): Don't assume we have a
  16630. Frame, since we won't if someone creates an HTMLDocument from JS.
  16631. 2007-06-20 Adam Roben <aroben@apple.com>
  16632. Land the new Inspector.
  16633. Co-written with Tim Hatcher.
  16634. Reviewed by Anders, Adele, Hyatt, and Sam.
  16635. No regression tests possible.
  16636. Add a new InspectorController that is in charge of the Inspector. It
  16637. has an InspectorClient that controls the Inspector's window and node
  16638. highlight.
  16639. * page/InspectorClient.h: Added.
  16640. (WebCore::InspectorClient::~InspectorClient):
  16641. * page/InspectorController.cpp: Added.
  16642. (WebCore::ConsoleMessage::ConsoleMessage):
  16643. (WebCore::InspectorResource::): Represents a single resource that the
  16644. Inspector knows about.
  16645. (WebCore::InspectorResource::InspectorResource):
  16646. (WebCore::InspectorResource::~InspectorResource):
  16647. (WebCore::InspectorResource::type):
  16648. (WebCore::InspectorResource::setScriptObject):
  16649. (WebCore::addSourceToFrame): Callback available from JS.
  16650. (WebCore::getResourceDocumentNode): Ditto.
  16651. (WebCore::highlightDOMNode): Ditto.
  16652. (WebCore::hideDOMNodeHighlight): Ditto.
  16653. (WebCore::loaded): Ditto.
  16654. (WebCore::unloading): Ditto.
  16655. (WebCore::attach): Ditto.
  16656. (WebCore::detach): Ditto.
  16657. (WebCore::log): Ditto.
  16658. (WebCore::search): Ditto.
  16659. (WebCore::inspectedWindow): Ditto.
  16660. (WebCore::InspectorController::InspectorController):
  16661. (WebCore::InspectorController::~InspectorController):
  16662. (WebCore::InspectorController::inspect): Called by
  16663. ContextMenuController to inspect a node.
  16664. (WebCore::InspectorController::focusNode):
  16665. (WebCore::InspectorController::highlight):
  16666. (WebCore::InspectorController::hideHighlight):
  16667. (WebCore::InspectorController::windowVisible):
  16668. (WebCore::InspectorController::setWindowVisible):
  16669. (WebCore::InspectorController::addMessageToConsole):
  16670. (WebCore::InspectorController::attachWindow):
  16671. (WebCore::InspectorController::detachWindow):
  16672. (WebCore::InspectorController::windowScriptObjectAvailable):
  16673. (WebCore::InspectorController::scriptObjectReady):
  16674. (WebCore::InspectorController::windowUnloading):
  16675. (WebCore::addHeaders): Static helper function.
  16676. (WebCore::objectForRequest): Ditto.
  16677. (WebCore::objectForResponse): Ditto.
  16678. (WebCore::InspectorController::addScriptResource):
  16679. (WebCore::InspectorController::addAndUpdateScriptResource):
  16680. (WebCore::InspectorController::removeScriptResource):
  16681. (WebCore::InspectorController::updateScriptResource):
  16682. (WebCore::InspectorController::populateScriptResources):
  16683. (WebCore::InspectorController::addScriptConsoleMessage):
  16684. (WebCore::callClearFunction): Static helper function.
  16685. (WebCore::InspectorController::clearScriptResources):
  16686. (WebCore::InspectorController::clearScriptConsoleMessages):
  16687. (WebCore::InspectorController::clearNetworkTimeline):
  16688. (WebCore::InspectorController::pruneResources):
  16689. (WebCore::InspectorController::didCommitLoad): Callback from
  16690. FrameLoader.
  16691. (WebCore::InspectorController::frameDetachedFromParent): Ditto.
  16692. (WebCore::InspectorController::addResource): Ditto.
  16693. (WebCore::InspectorController::removeResource): Ditto.
  16694. (WebCore::InspectorController::didLoadResourceFromMemoryCache): Ditto.
  16695. (WebCore::InspectorController::identifierForInitialRequest): Ditto.
  16696. (WebCore::InspectorController::willSendRequest): Ditto.
  16697. (WebCore::InspectorController::didReceiveResponse): Ditto.
  16698. (WebCore::InspectorController::didReceiveContentLength): Ditto.
  16699. (WebCore::InspectorController::didFinishLoading): Ditto.
  16700. (WebCore::InspectorController::didFailLoading): Ditto.
  16701. * page/InspectorController.h: Added.
  16702. (WebCore::InspectorController::inspectedPage):
  16703. (WebCore::InspectorController::scriptContext):
  16704. (WebCore::InspectorController::setScriptContext):
  16705. (WebCore::InspectorController::resources):
  16706. (WebCore::InspectorController::removeAllResources):
  16707. Add the JavaScript that defines most of the behavior of the Inspector.
  16708. * page/inspector/ConsolePanel.js: Added.
  16709. * page/inspector/NetworkPanel.js: Added.
  16710. * page/inspector/Resource.js: Added.
  16711. * page/inspector/ResourceCategory.js: Added.
  16712. * page/inspector/ResourcePanel.js: Added.
  16713. * page/inspector/inspector.js: Added.
  16714. * page/inspector/treeoutline.js: Renamed from WebKit/WebInspector/webInspector/treeoutline.js.
  16715. * page/inspector/utilities.js: Added.
  16716. Add the Inspector's CSS and HTML.
  16717. * page/inspector/inspector.css: Added.
  16718. * page/inspector/inspector.html: Added.
  16719. Hang the InspectorController off of Page. We only create an
  16720. InspectorController if an InspectorClient is given to the Page.
  16721. * page/Page.cpp:
  16722. (WebCore::Page::Page):
  16723. * page/Page.h:
  16724. (WebCore::Page::inspectorController):
  16725. Use FrameLoader to notify the InspectorController of resource loads.
  16726. * loader/FrameLoader.cpp:
  16727. (WebCore::FrameLoader::begin):
  16728. (WebCore::FrameLoader::transitionToCommitted):
  16729. (WebCore::FrameLoader::continueLoadAfterWillSubmitForm):
  16730. (WebCore::FrameLoader::detachFromParent):
  16731. (WebCore::FrameLoader::assignIdentifierToInitialRequest):
  16732. (WebCore::FrameLoader::willSendRequest):
  16733. (WebCore::FrameLoader::didReceiveResponse):
  16734. (WebCore::FrameLoader::didReceiveData):
  16735. (WebCore::FrameLoader::sendRemainingDelegateMessages):
  16736. (WebCore::FrameLoader::requestFromDelegate):
  16737. (WebCore::FrameLoader::didFinishLoad):
  16738. (WebCore::FrameLoader::dispatchWindowObjectAvailable):
  16739. (WebCore::FrameLoader::dispatchDidCommitLoad):
  16740. (WebCore::FrameLoader::dispatchAssignIdentifierToInitialRequest):
  16741. (WebCore::FrameLoader::dispatchWillSendRequest):
  16742. (WebCore::FrameLoader::dispatchDidReceiveResponse):
  16743. (WebCore::FrameLoader::dispatchDidReceiveContentLength):
  16744. (WebCore::FrameLoader::dispatchDidFinishLoading):
  16745. (WebCore::FrameLoader::dispatchDidLoadResourceFromMemoryCache):
  16746. * loader/FrameLoader.h:
  16747. Send console messages to the InspectorController.
  16748. * page/Chrome.cpp:
  16749. (WebCore::Chrome::addMessageToConsole): Send all console messages to
  16750. the InspectorController.
  16751. * page/Chrome.h: Add a new MessageLevel and MessageSource that are
  16752. used in the Inspector JS.
  16753. Report HTML errors when the Inspector window is open.
  16754. We don't report errors when the window is closed because we don't want
  16755. to slow down the HTMLTokenizer.
  16756. * html/HTMLDocument.cpp:
  16757. (WebCore::HTMLDocument::createTokenizer):
  16758. * html/HTMLParser.cpp:
  16759. (WebCore::HTMLParser::HTMLParser):
  16760. * html/HTMLParser.h:
  16761. * html/HTMLTokenizer.cpp:
  16762. (WebCore::HTMLTokenizer::HTMLTokenizer):
  16763. * html/HTMLTokenizer.h:
  16764. Append the "Inspect Element" context menu item after passing the
  16765. context menu to the ContextMenuClient. This work used to be done in
  16766. WebKit.
  16767. * page/ContextMenuClient.h:
  16768. * page/ContextMenuController.cpp:
  16769. (WebCore::ContextMenuController::handleContextMenuEvent): Add the
  16770. "Inspect Element" item.
  16771. (WebCore::ContextMenuController::contextMenuItemSelected): Handle the
  16772. "Inspect Element" item.
  16773. * platform/ContextMenu.cpp:
  16774. (WebCore::ContextMenu::addInspectElementItem):
  16775. (WebCore::ContextMenu::checkOrEnableIfNeeded): Updated for "Inspect
  16776. Element" item.
  16777. * platform/ContextMenu.h:
  16778. * platform/ContextMenuItem.h:
  16779. (WebCore::): Add ContextMenuItemTagInspectElement.
  16780. * platform/graphics/svg/SVGImageEmptyClients.h:
  16781. * page/mac/WebCoreViewFactory.h: Add the "Inspect Element" localized
  16782. string.
  16783. * platform/LocalizedStrings.h: Ditto.
  16784. * platform/mac/LocalizedStringsMac.mm:
  16785. (WebCore::contextMenuItemTagInspectElement): Ditto.
  16786. Miscellaneous changes:
  16787. * css/view-source.css: Add message bubble styles.
  16788. * loader/DocumentLoader.h: Add a frame getter.
  16789. * platform/win/ScrollViewWin.cpp:
  16790. (WebCore::ScrollView::updateScrollbars): Respect
  16791. Frame::prohibitsScrolling.
  16792. Add new images needed for the Inspector.
  16793. * page/inspector/Images/attachedShadow.png: Added.
  16794. * page/inspector/Images/bottomShadow.png: Added.
  16795. * page/inspector/Images/breadcrumbBackground.png: Added.
  16796. * page/inspector/Images/checker.png: Added.
  16797. * page/inspector/Images/console.png: Added.
  16798. * page/inspector/Images/darkShadow.png: Added.
  16799. * page/inspector/Images/disclosureDownPressed.png: Added.
  16800. * page/inspector/Images/disclosureRightDown.png: Added.
  16801. * page/inspector/Images/disclosureRightPressed.png: Added.
  16802. * page/inspector/Images/document.png: Added.
  16803. * page/inspector/Images/domViewButton.png: Added.
  16804. * page/inspector/Images/domViewButtonSelected.png: Added.
  16805. * page/inspector/Images/downTriangle.png: Added.
  16806. * page/inspector/Images/errorIcon.png: Added.
  16807. * page/inspector/Images/errorMediumIcon.png: Added.
  16808. * page/inspector/Images/folder.png: Added.
  16809. * page/inspector/Images/goArrow.png: Added.
  16810. * page/inspector/Images/gradient.png: Added.
  16811. * page/inspector/Images/gradientHighlight.png: Added.
  16812. * page/inspector/Images/gradientHighlightBottom.png: Added.
  16813. * page/inspector/Images/hideStatusWidget.png: Added.
  16814. * page/inspector/Images/hideStatusWidgetPressed.png: Added.
  16815. * page/inspector/Images/network.png: Added.
  16816. * page/inspector/Images/paneBottomGrow.png: Added.
  16817. * page/inspector/Images/paneBottomGrowActive.png: Added.
  16818. * page/inspector/Images/paneGrowHandleLine.png: Added.
  16819. * page/inspector/Images/paneHeader.png: Added.
  16820. * page/inspector/Images/paneHeaderActive.png: Added.
  16821. * page/inspector/Images/plainDocument.png: Added.
  16822. * page/inspector/Images/popupArrows.png: Added.
  16823. * page/inspector/Images/rightTriangle.png: Added.
  16824. * page/inspector/Images/segment.png: Added.
  16825. * page/inspector/Images/segmentEnd.png: Added.
  16826. * page/inspector/Images/segmentHover.png: Added.
  16827. * page/inspector/Images/segmentHoverEnd.png: Added.
  16828. * page/inspector/Images/segmentSelected.png: Added.
  16829. * page/inspector/Images/segmentSelectedEnd.png: Added.
  16830. * page/inspector/Images/showStatusWidget.png: Added.
  16831. * page/inspector/Images/showStatusWidgetPressed.png: Added.
  16832. * page/inspector/Images/sidbarItemBackground.png: Added.
  16833. * page/inspector/Images/sidebarActionWidget.png: Added.
  16834. * page/inspector/Images/sidebarActionWidgetPressed.png: Added.
  16835. * page/inspector/Images/sidebarAttachWidget.png: Added.
  16836. * page/inspector/Images/sidebarAttachWidgetPressed.png: Added.
  16837. * page/inspector/Images/sidebarDetachWidget.png: Added.
  16838. * page/inspector/Images/sidebarDetachWidgetPressed.png: Added.
  16839. * page/inspector/Images/sidebarResizeWidget.png: Added.
  16840. * page/inspector/Images/sidebarSelection.png: Added.
  16841. * page/inspector/Images/sidebarSelectionBlurred.png: Added.
  16842. * page/inspector/Images/sidebarSelectionBlurredTall.png: Added.
  16843. * page/inspector/Images/sidebarSelectionGray.png: Added.
  16844. * page/inspector/Images/sidebarSelectionGrayTall.png: Added.
  16845. * page/inspector/Images/sidebarSelectionTall.png: Added.
  16846. * page/inspector/Images/sidebarStatusAreaBackground.png: Added.
  16847. * page/inspector/Images/sourceViewButton.png: Added.
  16848. * page/inspector/Images/sourceViewButtonSelected.png: Added.
  16849. * page/inspector/Images/splitviewDimple.png: Added.
  16850. * page/inspector/Images/splitviewDividerBackground.png: Added.
  16851. * page/inspector/Images/tab.png: Added.
  16852. * page/inspector/Images/tabSelected.png: Added.
  16853. * page/inspector/Images/timelinePillBlue.png: Added.
  16854. * page/inspector/Images/timelinePillGray.png: Added.
  16855. * page/inspector/Images/timelinePillGreen.png: Added.
  16856. * page/inspector/Images/timelinePillOrange.png: Added.
  16857. * page/inspector/Images/timelinePillPurple.png: Added.
  16858. * page/inspector/Images/timelinePillRed.png: Added.
  16859. * page/inspector/Images/timelinePillYellow.png: Added.
  16860. * page/inspector/Images/tipBalloon.png: Added.
  16861. * page/inspector/Images/tipBalloonBottom.png: Added.
  16862. * page/inspector/Images/tipIcon.png: Added.
  16863. * page/inspector/Images/tipIconPressed.png: Added.
  16864. * page/inspector/Images/toggleDown.png: Added.
  16865. * page/inspector/Images/toggleUp.png: Added.
  16866. * page/inspector/Images/toolbarBackground.png: Added.
  16867. * page/inspector/Images/toolbarBackgroundInactive.png: Added.
  16868. * page/inspector/Images/toolbarButton.png: Added.
  16869. * page/inspector/Images/toolbarButtonInactive.png: Added.
  16870. * page/inspector/Images/toolbarButtonPressed.png: Added.
  16871. * page/inspector/Images/toolbarButtonPressedInactive.png: Added.
  16872. * page/inspector/Images/toolbarSplitButtonDivider.png: Added.
  16873. * page/inspector/Images/toolbarSplitButtonDividerInactive.png: Added.
  16874. * page/inspector/Images/treeDownTriangleBlack.png: Added.
  16875. * page/inspector/Images/treeDownTriangleWhite.png: Added.
  16876. * page/inspector/Images/treeLeftTriangleBlack.png: Added.
  16877. * page/inspector/Images/treeRightTriangleBlack.png: Added.
  16878. * page/inspector/Images/treeRightTriangleWhite.png: Added.
  16879. * page/inspector/Images/warningIcon.png: Added.
  16880. * page/inspector/Images/warningMediumIcon.png: Added.
  16881. * page/inspector/Images/warningsErrors.png: Added.
  16882. Build-fu:
  16883. * WebCore.exp: Added new symbols.
  16884. * WebCore.xcodeproj/project.pbxproj: Added new source files and
  16885. resources.
  16886. * WebCore.vcproj/WebCore.vcproj: Ditto, and copy the resources to
  16887. $WebKitOutputDir.
  16888. Windows build fixes:
  16889. * history/HistoryItem.h: ResourceRequest is a struct.
  16890. * loader/FrameLoaderClient.h: Ditto.
  16891. 2007-06-20 Mitz Pettel <mitz@webkit.org>
  16892. Reviewed by Beth.
  16893. - fix http://bugs.webkit.org/show_bug.cgi?id=14056
  16894. REGRESSION (r21113-21143): TR background not repainted via style class change
  16895. Test: fast/repaint/table-row.html
  16896. * rendering/RenderTableRow.cpp:
  16897. (WebCore::RenderTableRow::layout): Added a repaint to make up for the case where the
  16898. table row also needs layout, so it doesn't get a repaint in setStyle().
  16899. 2007-06-20 Mitz Pettel <mitz@webkit.org>
  16900. Reviewed by Adele.
  16901. - fix http://bugs.webkit.org/show_bug.cgi?id=14040
  16902. Top and bottom border images flipped when using -webkit-border-image when border end up tiled
  16903. Test: fast/borders/border-image-01.html
  16904. Correctly account for the fact that "pattern space" is flipped.
  16905. * platform/graphics/Image.cpp: (WebCore::Image::drawTiled):
  16906. * platform/graphics/cg/ImageCG.cpp:
  16907. (WebCore::Image::drawPatternCallback):
  16908. (WebCore::Image::drawPattern):
  16909. 2007-06-20 Anders Carlsson <andersca@apple.com>
  16910. Reviewed by Darin.
  16911. <rdar://problem/5245555> REGRESSION: HTTP header injection in XMLHttpRequest.setRequestHeader
  16912. Check for either '\r' or '\n' in the header value.
  16913. * xml/xmlhttprequest.cpp:
  16914. (WebCore::isValidHeaderValue):
  16915. 2007-06-20 Patti Hoa <patti@apple.com>
  16916. Reviewed by Geoffrey Garen.
  16917. <rdar://problem/4882527> VO should speak URL of image links that lack tags
  16918. Add additional change from review
  16919. * bridge/mac/WebCoreAXObject.mm:
  16920. (-[WebCoreAXObject accessibilityAttributeValue:]):
  16921. Check if the element has imgTag before asking for its url
  16922. 2007-06-20 Patti Hoa <patti@apple.com>
  16923. Reviewed by Tristan O'Tierney.
  16924. <rdar://problem/4882527> VO should speak URL of image links that lack tags
  16925. * bridge/mac/WebCoreAXObject.mm:
  16926. (-[WebCoreAXObject accessibilityAttributeNames]):
  16927. (-[WebCoreAXObject accessibilityAttributeValue:]):
  16928. Return the url of images.
  16929. 2007-06-19 Anders Carlsson <andersca@apple.com>
  16930. Reviewed by Kevin Decker.
  16931. <rdar://problem/5266289> REGRESSION (Safari 3 Beta 1): Incoming iChat messages are delayed
  16932. Add a new m_deferMainResourceDataLoad that can be used to control whether a data load should be deferred using a timer or not.
  16933. * loader/DocumentLoader.cpp:
  16934. (WebCore::DocumentLoader::DocumentLoader):
  16935. * loader/DocumentLoader.h:
  16936. (WebCore::DocumentLoader::deferMainResourceDataLoad):
  16937. * loader/MainResourceLoader.cpp:
  16938. (WebCore::MainResourceLoader::handleDataLoadSoon):
  16939. (WebCore::MainResourceLoader::loadNow):
  16940. (WebCore::MainResourceLoader::setDefersLoading):
  16941. 2007-06-19 Patti Hoa <patti@apple.com>
  16942. Reviewed by Justin Garcia.
  16943. <rdar://problem/5237325> Incorrect AXLeftLineTextMarkerRangeForTextMarker/AXPreviousLineStartTextMarkerForTextMarker for non-editable text
  16944. * editing/visible_units.cpp:
  16945. (WebCore::startPositionForLine):
  16946. (WebCore::startOfLine):
  16947. (WebCore::endPositionForLine):
  16948. (WebCore::endOfLine):
  16949. Break down the line routines to allow another try to ask for start/end of line if the returned position is not valid.
  16950. An example would be when lineStart/lineEnd at different line than the input position.
  16951. This can happen if the input position is before the space character at the end of a soft-wrapped non-editable line,
  16952. specifically a line without webkit-line-break:after-white-space style.
  16953. 2007-06-19 Patti Hoa <patti@apple.com>
  16954. Reviewed by Justin Garcia.
  16955. <rdar://problem/3992645> VO view bounds misplaced when reading text after a line wrap
  16956. * bridge/mac/WebCoreAXObject.mm:
  16957. (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
  16958. Improve the accuracy of the bounds for a given range
  16959. 2007-06-19 Anders Carlsson <andersca@apple.com>
  16960. Reviewed by Darin.
  16961. <rdar://problem/5130630>
  16962. XPath fails LayoutTests on Windows
  16963. * xml/XPathPredicate.cpp:
  16964. Include MathExtras.h here so we get a version of fmod that works around a bug in the Microsoft CRT.
  16965. * xml/XPathValue.cpp:
  16966. (WebCore::XPath::Value::toNumber):
  16967. Instead of using NAN, which isn't really the NaN value on Windows, use numeric_limits.
  16968. 2007-06-19 Geoffrey Garen <ggaren@apple.com>
  16969. Reviewed by Darin Adler.
  16970. Fixed cross-frame access. <rdar://problem/5251309>.
  16971. * bindings/js/kjs_window.cpp:
  16972. (KJS::Window::getValueProperty):
  16973. * bindings/scripts/CodeGeneratorJS.pm:
  16974. * page/DOMWindow.idl:
  16975. 2007-06-19 Anders Carlsson <andersca@apple.com>
  16976. Build fix.
  16977. * platform/win/PopupMenuWin.cpp:
  16978. 2007-06-19 Lars Knoll <lars@trolltech.com>
  16979. Reviewed by Zack
  16980. Implement these methods correctly.
  16981. * platform/qt/PlatformScreenQt.cpp:
  16982. (WebCore::screenRect):
  16983. (WebCore::screenAvailableRect):
  16984. 2007-06-19 Sam Weinig <sam@webkit.org>
  16985. Reviewed by Geoff.
  16986. Patch for http://bugs.webkit.org/show_bug.cgi?id=14226
  16987. Move the History object out of the JS bindings
  16988. - Autogenerate JSHistory.
  16989. * DerivedSources.make:
  16990. * WebCore.pro:
  16991. * WebCore.vcproj/WebCore.vcproj:
  16992. * WebCore.xcodeproj/project.pbxproj:
  16993. * bindings/js/kjs_window.cpp:
  16994. (KJS::WindowPrivate::WindowPrivate):
  16995. (KJS::Window::mark):
  16996. (KJS::Window::getValueProperty):
  16997. (KJS::Window::clearHelperObjectProperties):
  16998. (KJS::Window::disconnectFrame):
  16999. * bindings/js/kjs_window.h:
  17000. (KJS::Window::):
  17001. * bridge/GlobalHistory.h: Copied from WebCore/bridge/History.h.
  17002. * bridge/History.h: Removed.
  17003. * bridge/mac/GlobalHistoryMac.mm: Copied from WebCore/bridge/mac/HistoryMac.mm.
  17004. * bridge/mac/HistoryMac.mm: Removed.
  17005. * bridge/win/GlobalHistoryWin.cpp: Copied from WebCore/bridge/win/HistoryWin.cpp.
  17006. * bridge/win/HistoryWin.cpp: Removed.
  17007. * css/cssstyleselector.cpp:
  17008. * page/DOMWindow.cpp:
  17009. (WebCore::DOMWindow::disconnectFrame):
  17010. (WebCore::DOMWindow::history):
  17011. * page/DOMWindow.h:
  17012. * page/DOMWindow.idl:
  17013. * page/History.cpp: Added.
  17014. (WebCore::History::History):
  17015. (WebCore::History::frame):
  17016. (WebCore::History::disconnectFrame):
  17017. (WebCore::History::length):
  17018. (WebCore::History::back):
  17019. (WebCore::History::forward):
  17020. (WebCore::History::go):
  17021. * page/History.h: Added.
  17022. * page/History.idl: Added.
  17023. * platform/gdk/TemporaryLinkStubs.cpp:
  17024. * platform/qt/TemporaryLinkStubs.cpp:
  17025. * platform/wx/TemporaryLinkStubs.cpp:
  17026. 2007-06-18 Sam Weinig <sam@webkit.org>
  17027. Qt build fix.
  17028. * platform/qt/PlatformScreenQt.cpp:
  17029. (WebCore::screenDepth):
  17030. (WebCore::screenDepthPerComponent):
  17031. (WebCore::screenIsMonochrome):
  17032. (WebCore::screenRect):
  17033. (WebCore::screenAvailableRect):
  17034. 2007-06-18 Sam Weinig <sam@webkit.org>
  17035. Reviewed by Beth.
  17036. Fix build and update licenses.
  17037. * WebCore.xcodeproj/project.pbxproj:
  17038. * page/BarInfo.cpp:
  17039. * page/BarInfo.h:
  17040. * page/BarInfo.idl:
  17041. * page/Screen.cpp:
  17042. (WebCore::Screen::height):
  17043. (WebCore::Screen::width):
  17044. (WebCore::Screen::colorDepth):
  17045. (WebCore::Screen::pixelDepth):
  17046. (WebCore::Screen::availLeft):
  17047. (WebCore::Screen::availTop):
  17048. (WebCore::Screen::availHeight):
  17049. (WebCore::Screen::availWidth):
  17050. * page/Screen.h:
  17051. * page/Screen.idl:
  17052. 2007-06-18 Anders Carlsson <andersca@apple.com>
  17053. Reviewed by John Sullivan.
  17054. <rdar://problem/5277008> Assertion in [LocationChangeHandler finishedLoadingFrame:]
  17055. Don't send any frame load callbacks if the document load hasn't been
  17056. committed for real.
  17057. * loader/FrameLoader.cpp:
  17058. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  17059. 2007-06-18 Sam Weinig <sam@webkit.org>
  17060. Reviewed by Geoff.
  17061. Patch for http://bugs.webkit.org/show_bug.cgi?id=14193
  17062. Move the Screen object out of the JS bindings
  17063. - Renames Screen.h to PlatformScreen.h to accommodate new class.
  17064. - Autogenerates JSScreen.
  17065. * DerivedSources.make:
  17066. * WebCore.pro:
  17067. * WebCore.vcproj/WebCore.vcproj:
  17068. * WebCore.xcodeproj/project.pbxproj:
  17069. * bindings/js/kjs_window.cpp:
  17070. (KJS::WindowPrivate::WindowPrivate):
  17071. (KJS::Window::mark):
  17072. (KJS::Window::getValueProperty):
  17073. (KJS::Window::clearHelperObjectProperties):
  17074. * bindings/js/kjs_window.h:
  17075. (KJS::Window::):
  17076. * css/MediaQueryEvaluator.cpp:
  17077. * page/DOMWindow.cpp:
  17078. (WebCore::DOMWindow::DOMWindow):
  17079. (WebCore::DOMWindow::~DOMWindow):
  17080. (WebCore::DOMWindow::frame):
  17081. (WebCore::DOMWindow::disconnectFrame):
  17082. (WebCore::DOMWindow::screen):
  17083. * page/DOMWindow.h:
  17084. * page/DOMWindow.idl:
  17085. * page/Screen.cpp: Added.
  17086. (WebCore::Screen::Screen):
  17087. (WebCore::Screen::disconnectFrame):
  17088. (WebCore::Screen::height):
  17089. (WebCore::Screen::width):
  17090. (WebCore::Screen::colorDepth):
  17091. (WebCore::Screen::pixelDepth):
  17092. (WebCore::Screen::availLeft):
  17093. (WebCore::Screen::availTop):
  17094. (WebCore::Screen::availHeight):
  17095. (WebCore::Screen::availWidth):
  17096. * page/Screen.h: Added.
  17097. * page/Screen.idl: Added.
  17098. * page/mac/WebCoreFrameBridge.mm:
  17099. * platform/PlatformScreen.h: Copied from WebCore/platform/Screen.h.
  17100. * platform/Screen.h: Removed.
  17101. * platform/gdk/PlatformScreenGdk.cpp: Copied from WebCore/platform/gdk/ScreenGdk.cpp.
  17102. * platform/gdk/ScreenGdk.cpp: Removed.
  17103. * platform/mac/PlatformMouseEventMac.mm:
  17104. * platform/mac/PlatformScreenMac.mm: Copied from WebCore/platform/mac/ScreenMac.mm.
  17105. * platform/mac/ScreenMac.mm: Removed.
  17106. * platform/qt/PlatformScreenQt.cpp: Added.
  17107. (WebCore::WebCore::screenDepth):
  17108. (WebCore::WebCore::screenDepthPerComponent):
  17109. (WebCore::WebCore::screenIsMonochrome):
  17110. (WebCore::WebCore::screenRect):
  17111. (WebCore::WebCore::screenAvailableRect):
  17112. * platform/qt/TemporaryLinkStubs.cpp:
  17113. * platform/win/PlatformScreenWin.cpp: Copied from WebCore/platform/win/ScreenWin.cpp.
  17114. * platform/win/ScreenWin.cpp: Removed.
  17115. * rendering/RenderObject.cpp:
  17116. 2007-06-18 Sam Weinig <sam@webkit.org>
  17117. Reviewed by Geoff.
  17118. Patch for http://bugs.webkit.org/show_bug.cgi?id=14211
  17119. Move the BarInfo object out of the JS bindings
  17120. * DerivedSources.make:
  17121. * WebCore.pro:
  17122. * WebCore.vcproj/WebCore.vcproj:
  17123. * WebCore.xcodeproj/project.pbxproj:
  17124. * bindings/js/kjs_window.cpp:
  17125. (KJS::WindowPrivate::WindowPrivate):
  17126. (KJS::Window::mark):
  17127. (KJS::Window::getValueProperty):
  17128. (KJS::Window::clearHelperObjectProperties):
  17129. (KJS::Window::disconnectFrame):
  17130. * bindings/js/kjs_window.h:
  17131. (KJS::Window::):
  17132. * page/BarInfo.cpp: Added.
  17133. (WebCore::BarInfo::BarInfo):
  17134. (WebCore::BarInfo::disconnectFrame):
  17135. (WebCore::BarInfo::visible):
  17136. * page/BarInfo.h: Added.
  17137. (WebCore::BarInfo::):
  17138. * page/BarInfo.idl: Added.
  17139. * page/DOMWindow.cpp:
  17140. (WebCore::DOMWindow::~DOMWindow):
  17141. (WebCore::DOMWindow::disconnectFrame):
  17142. (WebCore::DOMWindow::locationbar):
  17143. (WebCore::DOMWindow::menubar):
  17144. (WebCore::DOMWindow::personalbar):
  17145. (WebCore::DOMWindow::scrollbars):
  17146. (WebCore::DOMWindow::statusbar):
  17147. (WebCore::DOMWindow::toolbar):
  17148. * page/DOMWindow.h:
  17149. * page/DOMWindow.idl:
  17150. 2007-06-18 Sam Weinig <sam@webkit.org>
  17151. Reviewed by Darin.
  17152. Remove the FrameArray class and instead make window.frames another
  17153. self-reference for window (like window.window, window.self, etc).
  17154. This is what Firefox and what the HTML5 dictates.
  17155. * bindings/js/kjs_window.cpp:
  17156. (KJS::WindowPrivate::WindowPrivate):
  17157. (KJS::Window::mark):
  17158. (KJS::Window::getValueProperty):
  17159. (KJS::Window::clearHelperObjectProperties):
  17160. (KJS::Window::disconnectFrame):
  17161. * bindings/js/kjs_window.h:
  17162. 2007-06-18 Mitz Pettel <mitz@webkit.org>
  17163. Reviewed by Adele.
  17164. - fix http://bugs.webkit.org/show_bug.cgi?id=13413
  17165. Failed assertion in RenderTextControl::setSelectionRange in Google Spreadsheets
  17166. Test: fast/forms/input-zero-height-focus.html
  17167. * rendering/RenderTextControl.cpp:
  17168. (WebCore::RenderTextControl::setSelectionRange): Avoid setting the
  17169. selection in a zero-height text control.
  17170. 2007-06-18 Alp Toker <alp.toker@collabora.co.uk>
  17171. Reviewed by Sam Weinig.
  17172. http://bugs.webkit.org/show_bug.cgi?id=14052
  17173. Implement SoundGdk
  17174. * WebCore.pro:
  17175. * platform/gdk/SoundGdk.cpp: Added.
  17176. (WebCore::systemBeep):
  17177. * platform/gdk/TemporaryLinkStubs.cpp:
  17178. (WebCore::systemBeep):
  17179. 2007-06-18 Dave Hyatt <hyatt@apple.com>
  17180. Add support for horizontal mouse wheeling on Windows.
  17181. Reviewed by aroben
  17182. * platform/PlatformWheelEvent.h:
  17183. * platform/win/WheelEventWin.cpp:
  17184. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  17185. 2007-06-17 Sam Weinig <sam@webkit.org>
  17186. Win32 build fix.
  17187. * WebCore.vcproj/WebCore.vcproj:
  17188. 2007-06-15 David Hyatt <hyatt@apple.com>
  17189. Fix for bugzilla bugs 14183 and 14184, 'repeat' regressed in border-image
  17190. because of a botched 'round' support removal. Also update for a change in
  17191. the spec that has the second stretch/round/repeat keyword match the first
  17192. if omitted.
  17193. Reviewed by olliej
  17194. * css/cssparser.cpp:
  17195. (WebCore::BorderImageParseContext::commitBorderImage):
  17196. * platform/graphics/Image.cpp:
  17197. (WebCore::Image::drawTiled):
  17198. * platform/graphics/Image.h:
  17199. (WebCore::Image::):
  17200. 2007-06-15 Sam Weinig <sam@webkit.org>
  17201. Reviewed by Darin.
  17202. Patch for http://bugs.webkit.org/show_bug.cgi?id=14053
  17203. Autogenerate JS binding for Rect
  17204. - Renames RectImpl to Rect, DOMStyleSheetList to JSStyleSheetList
  17205. and DOMRGBColor to JSRGBColor
  17206. - Moves JSStyleSheetList and JSRGBColor into the WebCore namespace.
  17207. * DerivedSources.make:
  17208. * WebCore.pro:
  17209. * WebCore.xcodeproj/project.pbxproj:
  17210. * bindings/js/kjs_css.cpp:
  17211. (WebCore::):
  17212. (WebCore::JSStyleSheetList::JSStyleSheetList):
  17213. (WebCore::JSStyleSheetList::~JSStyleSheetList):
  17214. (WebCore::JSStyleSheetList::getValueProperty):
  17215. (WebCore::JSStyleSheetList::indexGetter):
  17216. (WebCore::JSStyleSheetList::nameGetter):
  17217. (WebCore::JSStyleSheetList::getOwnPropertySlot):
  17218. (WebCore::toJS):
  17219. (WebCore::JSStyleSheetListFunc::callAsFunction):
  17220. (WebCore::JSRGBColor::JSRGBColor):
  17221. (WebCore::JSRGBColor::~JSRGBColor):
  17222. (WebCore::JSRGBColor::getOwnPropertySlot):
  17223. (WebCore::JSRGBColor::getValueProperty):
  17224. (WebCore::getJSRGBColor):
  17225. * bindings/js/kjs_css.h:
  17226. (WebCore::JSStyleSheetList::classInfo):
  17227. (WebCore::JSStyleSheetList::):
  17228. (WebCore::JSStyleSheetList::impl):
  17229. (WebCore::JSRGBColor::classInfo):
  17230. (WebCore::JSRGBColor::):
  17231. (WebCore::JSRGBColor::impl):
  17232. * bindings/objc/DOMUtility.mm:
  17233. (KJS::createDOMWrapper):
  17234. * bindings/scripts/CodeGeneratorJS.pm:
  17235. * bindings/scripts/CodeGeneratorObjC.pm:
  17236. * css/CSSBorderImageValue.cpp:
  17237. (WebCore::CSSBorderImageValue::CSSBorderImageValue):
  17238. * css/CSSBorderImageValue.h:
  17239. * css/CSSPrimitiveValue.cpp:
  17240. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  17241. (WebCore::CSSPrimitiveValue::cssText):
  17242. * css/CSSPrimitiveValue.h:
  17243. (WebCore::CSSPrimitiveValue::getRectValue):
  17244. (WebCore::CSSPrimitiveValue::):
  17245. * css/DashboardRegion.h:
  17246. * css/Rect.h: Copied from css/RectImpl.h.
  17247. (WebCore::Rect::~Rect):
  17248. (WebCore::Rect::top):
  17249. (WebCore::Rect::right):
  17250. (WebCore::Rect::bottom):
  17251. (WebCore::Rect::left):
  17252. (WebCore::Rect::setTop):
  17253. (WebCore::Rect::setRight):
  17254. (WebCore::Rect::setBottom):
  17255. (WebCore::Rect::setLeft):
  17256. * css/Rect.idl:
  17257. * css/RectImpl.h: Removed.
  17258. * css/cssparser.cpp:
  17259. (WebCore::CSSParser::parseShape):
  17260. (WebCore::BorderImageParseContext::commitBorderImage):
  17261. * css/cssstyleselector.cpp:
  17262. (WebCore::CSSStyleSelector::applyProperty):
  17263. * page/DOMWindow.idl:
  17264. 2007-06-14 George Staikos <staikos@kde.org>
  17265. Reviewed by Lars.
  17266. Implement missing tab support and a slight refactor.
  17267. * platform/qt/PlatformKeyboardEventQt.cpp:
  17268. (WebCore::keyIdentifierForQtKeyCode):
  17269. (WebCore::windowsKeyCodeForKeyEvent):
  17270. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  17271. 2007-06-14 Dave Hyatt <hyatt@apple.com>
  17272. Fix for Bugzilla bug 14806, missing text for bold/italic fonts in non-English Windows installs.
  17273. This patch adds an additional step after the lookup by full name fails. It will then look up
  17274. a PostScript name in a (localized full name) -> (PostScript name) cache. If the name is not
  17275. found, then the font's name table is obtained and searched for a PostScript name (and the
  17276. result is cached).
  17277. If lookup on PostScript name fails too, then we now properly fall back to the next font in the
  17278. list (so text should never be missing).
  17279. Reviewed by Darin (thoroughly reviewed, super reviewed even)
  17280. * platform/win/FontCacheWin.cpp:
  17281. * platform/win/FontPlatformDataWin.cpp:
  17282. 2007-06-14 Anders Carlsson <andersca@apple.com>
  17283. Reviewed by Geoff.
  17284. Add Frame::cleanupScriptObjectsForPlugin which will invalidate the root object
  17285. for a given plug-in.
  17286. * WebCore.exp:
  17287. * page/Frame.cpp:
  17288. (WebCore::Frame::cleanupScriptObjectsForPlugin):
  17289. * page/Frame.h:
  17290. 2007-06-14 Anders Carlsson <andersca@apple.com>
  17291. Reviewed by Geoff.
  17292. <rdar://problem/5211677>
  17293. -[WebPreferences setJavaEnabled:] only disables java inside <applet>, not <object>
  17294. * loader/FrameLoader.cpp:
  17295. (WebCore::FrameLoader::requestObject):
  17296. If the object is a Java MIME type and Java is disabled, don't load the plug-in.
  17297. * platform/MimeTypeRegistry.cpp:
  17298. (WebCore::MimeTypeRegistry::isJavaAppletMIMEType):
  17299. Clean this up and add another applet MIME type.
  17300. 2007-06-14 George Staikos <staikos@kde.org>
  17301. Reviewed by Lars.
  17302. Implement the file chooser for Qt.
  17303. * platform/qt/FileChooserQt.cpp:
  17304. (WebCore::FileChooser::openFileChooser):
  17305. (WebCore::FileChooser::basenameForWidth):
  17306. 2007-06-14 George Staikos <staikos@kde.org>
  17307. Reviewed by Lars.
  17308. Add missing initialization of pointer.
  17309. * platform/qt/ContextMenuQt.cpp:
  17310. (WebCore::ContextMenu::ContextMenu):
  17311. 2007-06-14 Anders Carlsson <andersca@apple.com>
  17312. Reviewed by Mitz.
  17313. <rdar://problem/5244948>
  17314. Safari keeps on complaining about slow script playing NBC TV video (14133)
  17315. http://bugs.webkit.org/show_bug.cgi?id=14133
  17316. Runaway JavaScript timer fires when spinning around in Google Maps street view
  17317. Make sure to start and stop the timeout checker around calls to JS.
  17318. * bindings/objc/WebScriptObject.mm:
  17319. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  17320. (-[WebScriptObject evaluateWebScript:]):
  17321. 2007-06-14 George Staikos <staikos@kde.org>
  17322. Reviewed by Maciej.
  17323. Keypress causes typeahead crash on empty selects due to modulo 0.
  17324. * html/HTMLSelectElement.cpp:
  17325. (WebCore::HTMLSelectElement::typeAheadFind):
  17326. 2007-06-13 George Staikos <staikos@kde.org>
  17327. Reviewed by Lars.
  17328. Compile without self-linking.
  17329. * WebCore.pro:
  17330. 2007-06-13 Darin Adler <darin@apple.com>
  17331. Reviewed by Kevin Decker.
  17332. - fix <rdar://problem/5264923> Safari frequently "stalls" beneath
  17333. +[NSFont fontWithName:size:] while loading a web page (searching on disk for the font)
  17334. * platform/mac/WebFontCache.mm:
  17335. (+[WebFontCache internalFontWithFamily:traits:size:]): Renamed from fontWithFamily.
  17336. Took out the auto-activation code.
  17337. (+[WebFontCache fontWithFamily:traits:size:]): Added. Calls internalFontWithFamily,
  17338. then calls NSFont to trigger activation if that returned nil, then calls
  17339. internalFontWithFamily again.
  17340. 2007-06-13 Anders Carlsson <andersca@apple.com>
  17341. Reviewed by Geoff.
  17342. Pass the root object to methods that end up creating new ObjcInstance objects.
  17343. * bindings/objc/WebScriptObject.mm:
  17344. (listFromNSArray):
  17345. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  17346. (-[WebScriptObject evaluateWebScript:]):
  17347. (-[WebScriptObject setValue:forKey:]):
  17348. (-[WebScriptObject valueForKey:]):
  17349. (-[WebScriptObject removeWebScriptKey:]):
  17350. (-[WebScriptObject setWebScriptValueAtIndex:value:]):
  17351. 2007-06-13 Anders Carlsson <andersca@apple.com>
  17352. Reviewed by Darin.
  17353. <rdar://problem/5267992>
  17354. Make sure an alert doesn't allow loading to continue inside a script.
  17355. Make sure to defer all loads where it's possible for a second main loop to be running.
  17356. * page/Chrome.cpp:
  17357. (WebCore::Chrome::runModal):
  17358. (WebCore::Chrome::runBeforeUnloadConfirmPanel):
  17359. (WebCore::Chrome::runJavaScriptAlert):
  17360. (WebCore::Chrome::runJavaScriptConfirm):
  17361. (WebCore::Chrome::runJavaScriptPrompt):
  17362. (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
  17363. (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
  17364. * platform/network/cf/ResourceHandleCFNet.cpp:
  17365. (WebCore::ResourceHandle::setDefersLoading):
  17366. Implement this.
  17367. 2007-06-13 Alp Toker <alp.toker@collabora.co.uk>
  17368. Reviewed by Rob.
  17369. http://bugs.webkit.org/show_bug.cgi?id=14060
  17370. Cairo SVG support
  17371. * WebCore.pro: Add new files to the build.
  17372. * platform/graphics/svg/SVGPaintServerPattern.h:
  17373. * platform/graphics/svg/SVGPaintServerSolid.h:
  17374. * platform/graphics/svg/cairo: Added.
  17375. * platform/graphics/svg/cairo/RenderPathCairo.cpp: Added.
  17376. (WebCore::RenderPath::strokeContains):
  17377. (WebCore::RenderPath::strokeBBox):
  17378. * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Added.
  17379. (WebCore::SVGPaintServer::draw):
  17380. (WebCore::SVGPaintServer::teardown):
  17381. (WebCore::SVGPaintServer::renderPath):
  17382. * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Added.
  17383. (WebCore::SVGPaintServerGradient::setup):
  17384. * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Added.
  17385. (WebCore::SVGPaintServerPattern::setup):
  17386. * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Added.
  17387. (WebCore::SVGPaintServerSolid::setup):
  17388. * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Added.
  17389. (WebCore::SVGResourceClipper::applyClip):
  17390. * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Added.
  17391. (WebCore::SVGResourceMasker::applyMask):
  17392. 2007-06-13 Simon Hausmann <hausmann@kde.org>
  17393. Reviewed by Lars.
  17394. Added a make install target that installs the Qt port and renamed
  17395. WebKitQt to QtWebKit
  17396. * WebCore.pro:
  17397. 2007-06-13 Adam Roben <aroben@apple.com>
  17398. Fix one more BITMAPINFO/BITMAPINFOHEADER typo.
  17399. Rubberstamped by Oliver.
  17400. * platform/win/DragImageWin.cpp:
  17401. (WebCore::allocImage):
  17402. 2007-06-12 Oliver Hunt <oliver@apple.com>
  17403. Reviewed by Darin.
  17404. Use correct size for BITMAPINFOHEADER -- whoops.
  17405. * platform/win/CursorWin.cpp:
  17406. (WebCore::Cursor::Cursor):
  17407. * platform/win/PasteboardWin.cpp:
  17408. (WebCore::Pasteboard::writeImage):
  17409. 2007-06-12 Sam Weinig <sam@webkit.org>
  17410. Reviewed by Oliver.
  17411. Patch for http://bugs.webkit.org/show_bug.cgi?id=14109
  17412. Cleanup JSEvent and JSClipboard in preperation for autogeneration
  17413. * bindings/js/kjs_events.cpp:
  17414. (KJS::DOMEvent::DOMEvent):
  17415. (KJS::DOMEvent::getValueProperty):
  17416. (KJS::DOMEvent::put):
  17417. (KJS::DOMEvent::putValueProperty):
  17418. (KJS::DOMEventPrototypeFunction::callAsFunction):
  17419. (KJS::toJS):
  17420. (KJS::toEvent):
  17421. (KJS::):
  17422. (KJS::JSClipboard::JSClipboard):
  17423. (KJS::JSClipboard::~JSClipboard):
  17424. (KJS::JSClipboard::getOwnPropertySlot):
  17425. (KJS::JSClipboard::getValueProperty):
  17426. (KJS::JSClipboard::put):
  17427. (KJS::JSClipboard::putValueProperty):
  17428. (KJS::JSClipboardPrototypeFunction::callAsFunction):
  17429. (KJS::toClipboard):
  17430. * bindings/js/kjs_events.h:
  17431. (KJS::DOMEvent::):
  17432. (KJS::DOMEvent::impl):
  17433. (KJS::JSClipboard::impl):
  17434. * dom/ClipboardEvent.h:
  17435. * dom/Event.h:
  17436. (WebCore::Event::srcElement):
  17437. (WebCore::Event::returnValue):
  17438. (WebCore::Event::clipboardData):
  17439. (WebCore::Event::dataTransfer):
  17440. (WebCore::Event::clipboard):
  17441. * dom/MouseEvent.h:
  17442. 2007-06-13 Lars Knoll <lars@trolltech.com>
  17443. Reviewed by Niko.
  17444. Small cleanup
  17445. * platform/qt/PlugInInfoStoreQt.cpp:
  17446. (WebCore::PlugInInfoStore::supportsMIMEType):
  17447. 2007-06-13 Lars Knoll <lars@trolltech.com>
  17448. Reviewed by Niko
  17449. Implement the parts required for the JS bridge
  17450. to know about the plugins.
  17451. * WebCore.pro:
  17452. * platform/qt/PlugInInfoStoreQt.cpp: Added.
  17453. (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
  17454. (WebCore::PlugInInfoStore::pluginCount):
  17455. (WebCore::PlugInInfoStore::supportsMIMEType):
  17456. (WebCore::refreshPlugins):
  17457. * platform/qt/TemporaryLinkStubs.cpp:
  17458. === Merged the following changes from branches/WindowsMerge ===
  17459. 2007-06-09 Sam Weinig <sam@webkit.org>
  17460. Build fix.
  17461. * WebCore.vcproj/WebCore.vcproj:
  17462. 2007-06-08 Anders Carlsson <andersca@apple.com>
  17463. Reviewed by Adam.
  17464. If both the old and new WMP plugins are present, remove the old one
  17465. so we won't end up choosing it.
  17466. * plugins/win/PluginDatabaseWin.cpp:
  17467. (WebCore::PluginDatabaseWin::getPluginsInPaths):
  17468. 2007-06-08 David Hyatt <hyatt@apple.com>
  17469. Update licenses/copyrights for WebCoreWin.
  17470. Reviewed by mccullough
  17471. * WebCorePrefix.cpp:
  17472. * bridge/win/FrameWin.cpp:
  17473. * bridge/win/FrameWin.h:
  17474. * bridge/win/HistoryWin.cpp:
  17475. * bridge/win/PageWin.cpp:
  17476. * page/win/EventHandlerWin.cpp:
  17477. * platform/graphics/cg/ColorCG.cpp:
  17478. * platform/graphics/cg/GraphicsContextPlatformPrivate.h:
  17479. * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
  17480. * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp:
  17481. * platform/graphics/win/IconWin.cpp:
  17482. * platform/graphics/win/ImageWin.cpp:
  17483. * platform/network/cf/FormDataStreamCFNet.cpp:
  17484. * platform/network/cf/FormDataStreamCFNet.h:
  17485. * platform/network/cf/ResourceHandleCFNet.cpp:
  17486. * platform/network/cf/ResourceRequestCFNet.cpp:
  17487. * platform/network/cf/ResourceResponseCFNet.cpp:
  17488. * platform/network/win/CookieJarWin.cpp:
  17489. * platform/network/win/ResourceHandleWin.cpp:
  17490. * platform/network/win/ResourceHandleWin.h:
  17491. * platform/win/BString.cpp:
  17492. * platform/win/BString.h:
  17493. * platform/win/ClipboardWin.h:
  17494. * platform/win/ContextMenuWin.cpp:
  17495. * platform/win/CursorWin.cpp:
  17496. * platform/win/EditorWin.cpp:
  17497. * platform/win/FontCacheWin.cpp:
  17498. * platform/win/FontDataWin.cpp:
  17499. * platform/win/FontPlatformData.h:
  17500. * platform/win/FontPlatformDataWin.cpp:
  17501. * platform/win/FontWin.cpp:
  17502. * platform/win/GlyphPageTreeNodeWin.cpp:
  17503. * platform/win/GraphicsContextWin.cpp:
  17504. * platform/win/KeyEventWin.cpp:
  17505. * platform/win/MimeTypeRegistryWin.cpp:
  17506. * platform/win/NotImplemented.h:
  17507. * platform/win/PlatformMouseEventWin.cpp:
  17508. * platform/win/PlatformScrollBar.h:
  17509. * platform/win/PlatformScrollBarWin.cpp:
  17510. * platform/win/PopupMenuWin.cpp:
  17511. * platform/win/ScreenWin.cpp:
  17512. * platform/win/ScrollViewWin.cpp:
  17513. * platform/win/SearchPopupMenuWin.cpp:
  17514. * platform/win/SoundWin.cpp:
  17515. * platform/win/TemporaryLinkStubs.cpp:
  17516. * platform/win/TextBoundariesWin.cpp:
  17517. * platform/win/WebCoreHistory.cpp:
  17518. * platform/win/WebCoreHistory.h:
  17519. * platform/win/WebCoreSystemInterface.cpp:
  17520. * platform/win/WebCoreSystemInterface.h:
  17521. * platform/win/WheelEventWin.cpp:
  17522. * platform/win/WidgetWin.cpp:
  17523. * plugins/win/PlugInInfoStoreWin.cpp:
  17524. * plugins/win/PluginDatabaseWin.cpp:
  17525. * plugins/win/PluginDatabaseWin.h:
  17526. * plugins/win/PluginDebug.h:
  17527. * plugins/win/PluginPackageWin.cpp:
  17528. * plugins/win/PluginPackageWin.h:
  17529. * plugins/win/PluginStreamWin.cpp:
  17530. * plugins/win/PluginStreamWin.h:
  17531. * plugins/win/PluginViewWin.cpp:
  17532. * plugins/win/PluginViewWin.h:
  17533. * plugins/win/npapi.cpp:
  17534. * plugins/win/npfunctions.h:
  17535. * rendering/RenderThemeSafari.cpp:
  17536. * rendering/RenderThemeSafari.h:
  17537. * rendering/RenderThemeWin.h:
  17538. 2007-06-07 Sam Weinig <sam@webkit.org>
  17539. Fix build.
  17540. * WebCore.vcproj/WebCore.vcproj:
  17541. 2007-06-07 Anders Carlsson <andersca@apple.com>
  17542. Reviewed by Steve.
  17543. <rdar://problem/5252902>
  17544. Shockwave plug-in content crashes.
  17545. Add a new quirk for plug-ins that need their WNDPROCs to be ASCII. If someone uses SetWindowLongA to set the WNDPROC to an ASCII one
  17546. and the previous one was an Unicode one, the value returned from SetWindowLongA (the old WNDPROC) will not be a function pointer, but instead
  17547. a special value. The Win32 API CallWndProc knows that when it encounters a special value it must convert the message to Unicode. Shockwave
  17548. does not use CallWndProc but instead treats the WNDPROC as a function.
  17549. * plugins/win/PluginViewWin.cpp:
  17550. (WebCore::PluginViewWndProc):
  17551. (WebCore::PluginViewWin::determineQuirks):
  17552. (WebCore::PluginViewWin::init):
  17553. * plugins/win/PluginViewWin.h:
  17554. (WebCore::):
  17555. (WebCore::PluginViewWin::quirks):
  17556. 2007-06-07 Sam Weinig <sam@webkit.org>
  17557. Build fix for the build fix.
  17558. * WebCore.vcproj/WebCore.vcproj:
  17559. 2007-06-07 Sam Weinig <sam@webkit.org>
  17560. Build fix.
  17561. * WebCore.vcproj/WebCore.vcproj:
  17562. 2007-06-06 Sam Weinig <sam@webkit.org>
  17563. Build fix.
  17564. * WebCore.vcproj/WebCore.vcproj:
  17565. 2007-06-03 Steve Falkenburg <sfalken@apple.com>
  17566. Reviewed by Oliver.
  17567. Update to last fix.
  17568. Invalidate a list of rects rather than unioning them.
  17569. * plugins/win/PluginViewWin.cpp:
  17570. (WebCore::PluginViewWin::invalidateTimerFired):
  17571. (WebCore::PluginViewWin::invalidateRect):
  17572. * plugins/win/PluginViewWin.h:
  17573. 2007-06-03 Steve Falkenburg <sfalken@apple.com>
  17574. Reviewed by Oliver.
  17575. <rdar://problem/5245016> 100A89+WebKit.dll: Can't select text in page location field at kids.yahoo.com
  17576. Delay invalidates for windowless Flash to prevent Flash WM_PAINT and WM_USER+1 messages from
  17577. starving other HWNDs.
  17578. This code defers the invalidate through a WebCore::Timer. We could have used a Windows ::SetTimer
  17579. to further lessen CPU load, but this would have the additional risk of negatively impacting Flash
  17580. performance, since WebCore::Timer is set up to be more responsive than ::SetTimer.
  17581. * plugins/win/PluginViewWin.cpp:
  17582. (WebCore::PluginViewWin::invalidateTimerFired): Added.
  17583. (WebCore::PluginViewWin::invalidateRect): Delay invalidates for windowless Flash.
  17584. (WebCore::PluginViewWin::determineQuirks): Add delayed invalidate quirk.
  17585. * plugins/win/PluginViewWin.h:
  17586. 2007-06-02 Steve Falkenburg <sfalken@apple.com>
  17587. Reviewed by Adam.
  17588. Update last fix to use startsWith instead of strcmpi.
  17589. * plugins/win/PluginStreamWin.cpp:
  17590. (WebCore::PluginStreamWin::startStream):
  17591. * plugins/win/PluginViewWin.cpp:
  17592. (WebCore::scriptStringIfJavaScriptURL):
  17593. 2007-06-02 Steve Falkenburg <sfalken@apple.com>
  17594. Reviewed by gramps.
  17595. Fix http://www.tvguide.com/ "LAUNCH VIDEO & PHOTO PLAYER" button.
  17596. Make "javascript" URL scheme string compare case insensitive.
  17597. * plugins/win/PluginStreamWin.cpp:
  17598. (WebCore::PluginStreamWin::startStream): Use strcmpi.
  17599. * plugins/win/PluginViewWin.cpp:
  17600. (WebCore::scriptStringIfJavaScriptURL): Use strcmpi.
  17601. 2007-06-01 Anders Carlsson <andersca@apple.com>
  17602. Reviewed by Steve.
  17603. If the value exists but is empty, return an empty String.
  17604. * plugins/win/PluginPackageWin.cpp:
  17605. (WebCore::getVersionInfo):
  17606. 2007-06-01 Anders Carlsson <andersca@apple.com>
  17607. Reviewed by Steve.
  17608. Add the default path for the new WMP Firefox plugin.
  17609. * plugins/win/PluginDatabaseWin.cpp:
  17610. (WebCore::addWindowsMediaPlayerPluginPath):
  17611. 2007-05-31 Sam Weinig <sam@webkit.org>
  17612. Fixed build.
  17613. * WebCore.vcproj/WebCore.vcproj:
  17614. 2007-05-31 Sam Weinig <sam@webkit.org>
  17615. Fixed build.
  17616. * WebCore.vcproj/WebCore.vcproj:
  17617. 2007-05-30 Ada Chan <adachan@apple.com>
  17618. Reviewed by Adam.
  17619. Fixed build.
  17620. * platform/win/PopupMenuWin.cpp:
  17621. (WebCore::PopupMenu::itemWritingDirectionIsNatural):
  17622. 2007-05-30 Sam Weinig <sam@webkit.org>
  17623. Build Fix.
  17624. * WebCore.vcproj/WebCore.vcproj:
  17625. 2007-05-29 Sam Weinig <sam@webkit.org>
  17626. Fix the build.
  17627. * WebCore.vcproj/WebCore.vcproj:
  17628. 2007-05-29 Anders Carlsson <andersca@apple.com>
  17629. Reviewed by Adam.
  17630. <rdar://4782915> plugin is not in the right place at jumble.com/play.html
  17631. Pass the plugin window coordinates for windowed plugins too.
  17632. * plugins/win/PluginViewWin.cpp:
  17633. (WebCore::PluginViewWin::setNPWindowRect):
  17634. 2007-05-29 Anders Carlsson <andersca@apple.com>
  17635. Reviewed by Adam.
  17636. <rdar://problem/4761543> nike.com doesn't finish loading if Flash plugin is installed
  17637. <rdar://problem/5131528> play button on Flash in ESPN front page does not start movie
  17638. Make sure to call NPP_SetWindow right after creating the plugin, and not from the main loop. However,
  17639. the WMP plugin needs to have the plugin's window coordinates set correctly when calling NPP_SetWindow so add a
  17640. quirk for that.
  17641. * plugins/win/PluginViewWin.cpp:
  17642. (WebCore::PluginViewWin::determineQuirks):
  17643. (WebCore::PluginViewWin::init):
  17644. * plugins/win/PluginViewWin.h:
  17645. (WebCore::):
  17646. 2007-05-29 Sam Weinig <sam@webkit.org>
  17647. Reviewed by Adam Roben.
  17648. - Removes platform/win/NotImplemented.h because we have consolidated
  17649. the notImplemented() for all platforms in platform/NotImplemented.h
  17650. - Fixes remaining uses of old macro to use the new notImplemented() one.
  17651. * WebCore.vcproj/WebCore.vcproj:
  17652. * page/win/EventHandlerWin.cpp:
  17653. (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
  17654. * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
  17655. (WebCore::SVGResourceFilter::prepareFilter):
  17656. (WebCore::SVGResourceFilter::applyFilter):
  17657. * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp:
  17658. (WebCore::SVGResourceMasker::applyMask):
  17659. * platform/win/GraphicsContextWin.cpp:
  17660. (WebCore::contextForImage):
  17661. * platform/win/NotImplemented.h: Removed.
  17662. * platform/win/SearchPopupMenuWin.cpp:
  17663. (WebCore::SearchPopupMenu::saveRecentSearches):
  17664. (WebCore::SearchPopupMenu::loadRecentSearches):
  17665. * platform/win/TemporaryLinkStubs.cpp:
  17666. (Frame::print):
  17667. (Frame::issueTransposeCommand):
  17668. (GraphicsContextPlatformPrivate::clip):
  17669. (WebCore::FrameView::updateBorder):
  17670. (Widget::setIsSelected):
  17671. (ScrollView::inWindow):
  17672. (WebCore::focusRingColor):
  17673. (WebCore::setFocusRingColorChangeFunction):
  17674. (Frame::setNeedsReapplyStyles):
  17675. (FrameLoader::overrideMediaType):
  17676. (DocumentLoader::getResponseModifiedHeader):
  17677. (ResourceHandle::willLoadFromCache):
  17678. (WebCore::userIdleTime):
  17679. (CachedPage::close):
  17680. (WebCore::supportedKeySizes):
  17681. (WebCore::signedPublicKeyAndChallengeString):
  17682. * plugins/win/PluginViewWin.cpp:
  17683. (WebCore::PluginViewWin::newStream):
  17684. (WebCore::PluginViewWin::write):
  17685. (WebCore::PluginViewWin::setValue):
  17686. 2007-05-29 Anders Carlsson <andersca@apple.com>
  17687. Build fix.
  17688. * rendering/RenderThemeSafari.cpp:
  17689. (WebCore::RenderThemeSafari::adjustSliderThumbStyle):
  17690. 2007-05-29 Anders Carlsson <andersca@apple.com>
  17691. Reviewed by Adam.
  17692. Port code from open source changeset 21808, fixing
  17693. http://bugs.webkit.org/show_bug.cgi?id=13871
  17694. * rendering/RenderThemeSafari.cpp:
  17695. (WebCore::RenderThemeMac::adjustSliderThumbStyle):
  17696. * rendering/RenderThemeSafari.h:
  17697. 2007-05-29 Ada Chan <adachan@apple.com>
  17698. Build fix.
  17699. - Added "$(ProjectDir)..\platform\win" to include paths
  17700. - Added WebCore\bindings\js\JSCSSStyleDeclarationCustom.cpp to project
  17701. * WebCore.vcproj/WebCore.vcproj:
  17702. 2007-05-28 Sam Weinig <sam@webkit.org>
  17703. Build fix.
  17704. * WebCore.vcproj/WebCore.vcproj:
  17705. 2007-05-27 Sam Weinig <sam@webkit.org>
  17706. Build fix.
  17707. * WebCore.vcproj/WebCore.vcproj:
  17708. 2007-05-24 Geoffrey Garen <ggaren@apple.com>
  17709. Reviewed by Darin Adler.
  17710. Fixed a bug with Settings where a number of different objects held bare
  17711. Settings* data members, even though the Page owns the Settings object and
  17712. deletes it upon destruction.
  17713. Added NULL checks since the Page can be deleted before the frame/document.
  17714. * plugins/win/PluginViewWin.cpp:
  17715. (WebCore::PluginViewWin::load):
  17716. 2007-05-24 Sam Weinig <sam@webkit.org>
  17717. Reviewed by NOBODY.
  17718. Build fix.
  17719. * WebCore.vcproj/WebCore.vcproj:
  17720. 2007-05-24 Anders Carlsson <andersca@apple.com>
  17721. Reviewed by Adam.
  17722. <rdar://5211882>
  17723. Need to relaunch Boomer to recognize newly installed QT plug-in
  17724. <rdar://5061867>
  17725. After installing Flash, Safari would still not display pages that needed it
  17726. * plugins/win/PluginDatabaseWin.cpp:
  17727. (WebCore::PluginDatabaseWin::refresh):
  17728. Return whether the plugin database changed or not.
  17729. (WebCore::PluginDatabaseWin::findPlugin):
  17730. New function that tries to find a plug-in given its url and MIME type.
  17731. (WebCore::PluginDatabaseWin::createPluginView):
  17732. If no plugin is found, refresh the database and search for the plugin again if the database changed.
  17733. 2007-05-24 Adele Peterson <adele@apple.com>
  17734. - fix http://bugs.webkit.org/show_bug.cgi?id=13837
  17735. Separator in new <select> widget disappears when block element with border is in document.
  17736. * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintMenuListButton):
  17737. Added calls to set the stroke style and thickness when painting the arrows and the separator.
  17738. 2007-05-24 Sam Weinig <sam@webkit.org>
  17739. Build fix.
  17740. * WebCore.vcproj/WebCore.vcproj:
  17741. 2007-05-23 Sam Weinig <sam@webkit.org>
  17742. Build fix.
  17743. * WebCore.vcproj/WebCore.vcproj:
  17744. 2007-05-23 Anders Carlsson <andersca@apple.com>
  17745. Fix build.
  17746. * platform/win/CursorWin.cpp:
  17747. (WebCore::zoomInCursor):
  17748. (WebCore::zoomOutCursor):
  17749. 2007-05-22 Ada Chan <adachan@apple.com>
  17750. Fix build.
  17751. * plugins/win/PluginViewWin.cpp:
  17752. (WebCore::PluginViewWin::handleMouseEvent):
  17753. 2007-05-22 Justin Garcia <justin.garcia@apple.com>
  17754. Reviewed by oliver
  17755. Build fix.
  17756. * plugins/win/PluginViewWin.cpp:
  17757. (WebCore::PluginViewWin::handleMouseEvent):
  17758. 2007-05-21 Sam Weinig <sam@webkit.org>
  17759. Reviewed by Oliver.
  17760. Build fix.
  17761. * WebCore.vcproj/WebCore.vcproj:
  17762. 2007-05-21 Sam Weinig <sam@webkit.org>
  17763. Reviewed by Adam.
  17764. Build fix.
  17765. * WebCore.vcproj/WebCore.vcproj:
  17766. 2007-05-17 Steve Falkenburg <sfalken@apple.com>
  17767. Reviewed by Geoff, Adam.
  17768. Use precompiled headers (via WebCorePrefix.h) to speed up WebCoreWin builds.
  17769. This improved WebCore debug rebuild time from 40 minutes to 25 for me.
  17770. A few files needed to be excluded, since they didn't build properly with
  17771. the prefix file: ColorData.c, CSSGrammar.cpp, HTMLEntityNames.c, XPathGrammar.cpp, XPathParser.cpp.
  17772. * WebCore.vcproj/WebCore.vcproj: Turn on precompiled header, force includes flags.
  17773. * WebCorePrefix.cpp: Added.
  17774. * WebCorePrefix.h: Added.
  17775. * config.h: Modified to be compatible with WebCorePrefix.h.
  17776. 2007-05-18 Sam Weinig <sam@webkit.org>
  17777. Reviewed by Adam.
  17778. Fixing the vcproj paths.
  17779. * WebCore.vcproj/WebCore.vcproj:
  17780. 2007-05-18 Sam Weinig <sam@webkit.org>
  17781. Reviewed by Geoff.
  17782. Build fix after r21577.
  17783. * WebCore.vcproj/WebCore.vcproj:
  17784. 2007-05-18 Adam Roben <aroben@apple.com>
  17785. Build fix after r21562.
  17786. * platform/win/TemporaryLinkStubs.cpp:
  17787. * platform/win/WidgetWin.cpp:
  17788. * plugins/win/PluginViewWin.cpp:
  17789. * plugins/win/PluginViewWin.h:
  17790. 2007-05-18 Anders Carlsson <andersca@apple.com>
  17791. Reviewed by Geoff.
  17792. <rdar://problem/4914940> Some plugins won't redraw correctly when scrolling
  17793. This patch does two things:
  17794. 1. It comments out the call to set the window's region to an empty region while it's being moved. This was done to prevent
  17795. the QT plugin from drawing outside its bounds when scrolling it when it's inside an iframe or div with overflow.
  17796. 2. It lets Windows handle its invalid region when moving the window and setting its new window region.
  17797. * plugins/win/PluginViewWin.cpp:
  17798. (WebCore::PluginViewWin::updateWindow):
  17799. 2007-05-18 Adam Roben <aroben@apple.com>
  17800. Build fix after r21555.
  17801. * page/win/EventHandlerWin.cpp:
  17802. (WebCore::EventHandler::passMouseMoveEventToSubframe):
  17803. 2007-05-17 Sam Weinig <sam@webkit.org>
  17804. Reviewed by Adam.
  17805. Build Fix after <rdar://problem/5201423>
  17806. * WebCore.vcproj/WebCore.vcproj:
  17807. 2007-05-17 Adele Peterson <adele@apple.com>
  17808. Reviewed by Hyatt.
  17809. Follow up to <rdar://problem/5092645> PopupMenuWin needs bidiReorderCharacters logic from RenderListBox
  17810. * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::paint):
  17811. Use the clientStyle to determine how to handle bidi text. For popup buttons, which we restrict to LTR,
  17812. we will match the button text.
  17813. 2007-05-17 Anders Carlsson <andersca@apple.com>
  17814. Reviewed by Darin.
  17815. <rdar://problem/5210600> New WMP plugin doesn't show any contents
  17816. Call NPP_SetWindow after the window's size has been updated.
  17817. * plugins/win/PluginViewWin.cpp:
  17818. (WebCore::PluginViewWin::setFrameGeometry):
  17819. 2007-05-17 Anders Carlsson <andersca@apple.com>
  17820. Reviewed by John.
  17821. <rdar://problem/5204016> Repro crash on nytimes.com in MimeTypeRegistry::getMIMETypeForExtension
  17822. Return null if the extension is null.
  17823. * platform/win/MimeTypeRegistryWin.cpp:
  17824. (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
  17825. 2007-05-16 Adele Peterson <adele@apple.com>
  17826. Reviewed by Hyatt.
  17827. Fix for:
  17828. <rdar://problem/5092645> PopupMenuWin needs bidiReorderCharacters logic from RenderListBox
  17829. <rdar://problem/5205654> Select popup menus should always be ltr to match the mac
  17830. * platform/win/PopupMenuWin.cpp:
  17831. (WebCore::PopupMenu::show): Remove special cases for RTL menus, since we are always going to left align.
  17832. (WebCore::PopupMenu::calculatePositionAndSize): ditto.
  17833. (WebCore::PopupMenu::paint): Added call to bidiReorderCharacters.
  17834. 2007-05-14 Oliver Hunt <oliver@apple.com>
  17835. Reviewed by Sam.
  17836. Fix for <rdar://problem/5147895> REGRESSION: Content-Disposition: filename is ignored for drag-and-drop.
  17837. If the image does not already have a title, fall back to the
  17838. name suggested by Content-Disposition.
  17839. * platform/win/ClipboardWin.cpp:
  17840. (WebCore::createGlobalImageFileDescriptor):
  17841. 2007-05-14 Oliver Hunt <oliver@apple.com>
  17842. Reviewed by Sam.
  17843. Fix for <rdar://problem/5202805> Null dereference in createGlobalData(CString str)
  17844. Null terminate manually to prevent us from dereferencing null.
  17845. * platform/win/ClipboardUtilitiesWin.cpp:
  17846. (WebCore::createGlobalData):
  17847. 2007-05-14 Oliver Hunt <oliver@apple.com>
  17848. Reviewed by Geoff.
  17849. Windows side of fix for
  17850. <rdar://problem/4728842> Can't drag-and-drop files onto <input type="file">
  17851. * platform/win/ClipboardUtilitiesWin.cpp:
  17852. (WebCore::cfHDropFormat):
  17853. Need to be able to access externally
  17854. * platform/win/ClipboardUtilitiesWin.h:
  17855. Declare cfHDropFormat
  17856. * platform/win/DragDataWin.cpp:
  17857. (WebCore::DragData::containsFiles):
  17858. (WebCore::DragData::asFilenames):
  17859. Add implementation of containsFiles and asFilenames
  17860. 2007-05-14 Geoffrey Garen <ggaren@apple.com>
  17861. Build fix.
  17862. * WebCore.vcproj/WebCore.vcproj:
  17863. 2007-05-14 Anders Carlsson <andersca@apple.com>
  17864. Reviewed by Geoff.
  17865. <rdar://problem/5176940> Seed10: MS Silverlight 1.0 beta plug-in is not supported
  17866. * plugins/win/PluginDatabaseWin.cpp:
  17867. (WebCore::addPluginsFromRegistry):
  17868. New function that adds plugins from the registry from HKEY_LOCAL_MACHINE/MozillaPlugins.
  17869. * plugins/win/PluginViewWin.cpp:
  17870. (WebCore::PluginViewWin::invalidateRect):
  17871. (WebCore::PluginViewWin::forceRedraw):
  17872. Make these work with windowed plugins.
  17873. 2007-05-13 Darin Adler <darin@apple.com>
  17874. Requested by Hyatt.
  17875. - internal part of http://bugs.webkit.org/show_bug.cgi?id=13529
  17876. DOM3 keyIdentifier text is incorrect
  17877. * platform/win/KeyEventWin.cpp:
  17878. (WebCore::keyIdentifierForWindowsKeyCode): Use 4 digits for "U+" stuff.
  17879. 2007-05-12 Oliver Hunt <oliver@apple.com>
  17880. rs=hyatt.
  17881. Stubs to prevent build bustage
  17882. * platform/win/DragDataWin.cpp:
  17883. (WebCore::DragData::containsFiles):
  17884. (WebCore::DragData::asFilenames):
  17885. 2007-05-11 Darin Adler <darin@apple.com>
  17886. * WebCore.vcproj/WebCore.vcproj: Added new RenderWordBreak.cpp/h files.
  17887. 2007-05-10 Adele Peterson <adele@apple.com>
  17888. Reviewed by Hyatt.
  17889. * bridge/win/FrameWin.cpp:
  17890. (WebCore::imageFromSelection): Updated to use selectionRect instead of visibleSelectionRect
  17891. 2007-05-08 Steve Falkenburg <sfalken@apple.com>
  17892. Rubber-stamped by Geoff.
  17893. Moved shared EditorWin code to Editor.cpp in open source.
  17894. * platform/win/EditorWin.cpp: Deleted (moved) most of this file.
  17895. 2007-05-08 Steve Falkenburg <sfalken@apple.com>
  17896. Reviewed by Darin, Oliver.
  17897. Removed localized string stubs.
  17898. * platform/win/TemporaryLinkStubs.cpp:
  17899. 2007-05-08 Steve Falkenburg <sfalken@apple.com>
  17900. Reviewed by Ada.
  17901. Updated for new editor interface.
  17902. * platform/win/EditorWin.cpp:
  17903. (WebCore::Editor::advanceToNextMisspelling):
  17904. (WebCore::isRangeUngrammatical):
  17905. 2007-05-07 Alice Liu <alice.liu@apple.com>
  17906. Reviewed by Oliver.
  17907. Fixed <rdar://5087119> Paste fidelity isn't as good as it is on the mac
  17908. and <rdar://5087118> Plain text copy/paste yields bad line endings on Boomer
  17909. and re-organized standalone functions in DragDataWin.cpp and PasteboardWin.cpp
  17910. into ClipboardUtilitiesWin.h/cpp.
  17911. * WebCore.vcproj/WebCore.vcproj:
  17912. * platform/win/ClipboardUtilitiesWin.cpp: Added.
  17913. (WebCore::cfHDropFormat):
  17914. (WebCore::getWebLocData):
  17915. (WebCore::extractURL):
  17916. (WebCore::texthtmlFormat):
  17917. (WebCore::createGlobalData):
  17918. (WebCore::markupToCF_HTML):
  17919. (WebCore::urlToMarkup):
  17920. (WebCore::replaceNewlinesWithWindowsStyleNewlines):
  17921. (WebCore::replaceNBSPWithSpace):
  17922. (WebCore::urlWFormat):
  17923. (WebCore::urlFormat):
  17924. (WebCore::plainTextFormat):
  17925. (WebCore::plainTextWFormat):
  17926. (WebCore::filenameWFormat):
  17927. (WebCore::filenameFormat):
  17928. (WebCore::htmlFormat):
  17929. (WebCore::getURL):
  17930. (WebCore::getPlainText):
  17931. (WebCore::fragmentFromFilenames):
  17932. (WebCore::containsFilenames):
  17933. (WebCore::fragmentFromCF_HTML):
  17934. (WebCore::fragmentFromHTML):
  17935. (WebCore::containsHTML):
  17936. * platform/win/ClipboardUtilitiesWin.h: Added.
  17937. * platform/win/ClipboardWin.cpp:
  17938. (WebCore::ClipboardWin::writeRange):
  17939. * platform/win/DragDataWin.cpp:
  17940. * platform/win/PasteboardWin.cpp:
  17941. (WebCore::Pasteboard::writeSelection):
  17942. (WebCore::Pasteboard::documentFragment):
  17943. 2007-05-04 Steve Falkenburg <sfalken@apple.com>
  17944. Reviewed by Darin.
  17945. Fix crash when using "check spelling while typing".
  17946. * WebCore.vcproj/WebCore.vcproj: Added TextBreakIteratorInternalICUWin.cpp
  17947. * platform/win/TemporaryLinkStubs.cpp: Removed findSentenceBoundary, findNextSentenceFromIndex.
  17948. 2007-05-04 Alice Liu <alice.liu@apple.com>
  17949. Reviewed by Darin.
  17950. changed use of DeprecatedString::fromUTF8 to UTF8Encoding().decode()
  17951. * platform/win/DragDataWin.cpp:
  17952. (WebCore::fragmentFromHTML):
  17953. * platform/win/PasteboardWin.cpp:
  17954. (WebCore::Pasteboard::documentFragment):
  17955. 2007-05-03 Steve Falkenburg <sfalken@apple.com>
  17956. Reviewed by Ada, Oliver.
  17957. Checkpoint:
  17958. <rdar://problem/4602372> Spelling
  17959. <rdar://problem/4769763> Spell checking engine support
  17960. * platform/win/EditorWin.cpp:
  17961. (WebCore::findFirstBadGrammarInRange): Account for start offset when reporting bad grammar range (fixed my porting mistake).
  17962. (WebCore::Editor::advanceToNextMisspelling): Include user description with spelling error.
  17963. (WebCore::isRangeUngrammatical): Include user description with spelling error.
  17964. 2007-05-03 Alice Liu <alice.liu@apple.com>
  17965. Reviewed by Oliver.
  17966. Fixed <rdar://5181466> HTML formatted clipboard data is not converted from UTF8 when pasted
  17967. * platform/win/DragDataWin.cpp:
  17968. (WebCore::fragmentFromHTML):
  17969. * platform/win/PasteboardWin.cpp:
  17970. (WebCore::fragmentFromCF_HTML):
  17971. (WebCore::Pasteboard::documentFragment):
  17972. 2007-05-03 Oliver Hunt <oliver@apple.com>
  17973. Reviewed by Steve
  17974. Fix misuse of GlobalLock.
  17975. * platform/win/PasteboardWin.cpp:
  17976. (WebCore::createGlobalData):
  17977. 2007-05-03 Oliver Hunt <oliver@apple.com>
  17978. Reviewed by Steve.
  17979. Add logic to draw underlines for grammar and spelling errors.
  17980. (rdar://problem/4769832)
  17981. * platform/win/GraphicsContextWin.cpp:
  17982. (WebCore::spellingPatternColor):
  17983. (WebCore::grammarPatternColor):
  17984. Can't define global const with constructor so use function scoped globals instead.
  17985. (WebCore::setCGStrokeColor):
  17986. Utility function pulled over from GraphicsContextCG
  17987. (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
  17988. * platform/win/TemporaryLinkStubs.cpp:
  17989. Remove old drawLineForMisspellingOrBadGrammar stub
  17990. 2007-05-01 Steve Falkenburg <sfalken@apple.com>
  17991. Reviewed by Oliver.
  17992. Fix crash when retrieving title of context menu after it has been selected.
  17993. Necessary to get spelling corrections code working.
  17994. * platform/win/ContextMenuWin.cpp:
  17995. (WebCore::ContextMenu::itemWithAction): menu item info fType is a set of flags, MFT_STRING is 0, so we need to or off flags before comparing.
  17996. 2007-04-29 Adam Roben <aroben@apple.com>
  17997. Build fix after r21183.
  17998. * WebCore.vcproj/WebCore.vcproj: Added LayoutState.(h|cpp).
  17999. 2007-04-29 Oliver Hunt <oliver@apple.com>
  18000. Reviewed by Steve.
  18001. Fix for <rdar://problem/5126393> REGRESSION (r19672-19697): Safari drag image drags at original size (13261)
  18002. Prevent build bustage from opensource changes, correct scaling
  18003. * platform/win/DragImageWin.cpp:
  18004. (WebCore::scaleDragImage):
  18005. 2007-04-24 Steve Falkenburg <sfalken@apple.com>
  18006. Reviewed by Darin, Oliver.
  18007. Checkpoint:
  18008. <rdar://problem/4602372> Spelling
  18009. <rdar://problem/4769763> Spell checking engine support
  18010. Ported code from EditorMac.mm into EditorWin.cpp.
  18011. Once this works, I'll move this code into Editor.cpp and remove it
  18012. form EditorMac.mm.
  18013. * platform/win/EditorWin.cpp:
  18014. (WebCore::Editor::ignoreSpelling):
  18015. (WebCore::Editor::learnSpelling):
  18016. (WebCore::findFirstMisspellingInRange):
  18017. (WebCore::paragraphAlignedRangeForRange):
  18018. (WebCore::findFirstGrammarDetailInRange):
  18019. (WebCore::findFirstBadGrammarInRange):
  18020. (WebCore::Editor::advanceToNextMisspelling):
  18021. (WebCore::Editor::isSelectionMisspelled):
  18022. (WebCore::isRangeUngrammatical):
  18023. (WebCore::Editor::isSelectionUngrammatical):
  18024. (WebCore::Editor::guessesForUngrammaticalSelection):
  18025. (WebCore::Editor::guessesForMisspelledSelection):
  18026. (WebCore::Editor::showSpellingGuessPanel):
  18027. (WebCore::Editor::spellingPanelIsShowing):
  18028. (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  18029. (WebCore::markAllMisspellingsInRange):
  18030. (WebCore::markAllBadGrammarInRange):
  18031. (WebCore::markMisspellingsOrBadGrammar):
  18032. (WebCore::Editor::markMisspellings):
  18033. (WebCore::Editor::markBadGrammar):
  18034. * platform/win/TemporaryLinkStubs.cpp:
  18035. 2007-04-23 Anders Carlsson <andersca@apple.com>
  18036. Reviewed by Ada.
  18037. <rdar://problem/5061022>
  18038. REGRESSION: Acrobat 8 plug-in fails to scroll with trackpad two-finger scroll or mouse wheel (12995)
  18039. * page/win/EventHandlerWin.cpp:
  18040. (WebCore::EventHandler::passWheelEventToWidget):
  18041. Get rid of passWheelEventToSubframe and pass wheel events to all widgets.
  18042. 2007-04-23 Adam Roben <aroben@apple.com>
  18043. Build fix.
  18044. * page/win/EventHandlerWin.cpp: Removed passWheelEventToSubframe.
  18045. 2007-04-20 Beth Dakin <bdakin@apple.com>
  18046. Reviewed by Adam.
  18047. Fix for <rdar://problem/5089822> Boomer does not send scroll events
  18048. * platform/win/ScrollViewWin.cpp:
  18049. (WebCore::ScrollView::ScrollViewPrivate::valueChanged):
  18050. 2007-04-19 Adam Roben <aroben@apple.com>
  18051. * WebCore.vcproj/WebCore.vcproj: Removed empty filter.
  18052. 2007-04-19 Adam Roben <aroben@apple.com>
  18053. * WebCore.vcproj/WebCore.vcproj: Removed unused files.
  18054. 2007-04-18 Adam Roben <aroben@apple.com>
  18055. Reviewed by Oliver.
  18056. Added an equality operator to COMPtr.
  18057. * platform/win/COMPtr.h:
  18058. (operator==):
  18059. (operator!=):
  18060. 2007-04-18 Oliver Hunt <oliver@apple.com>
  18061. Reviewed by Geoff.
  18062. Allow images to be dragged from page and dropped as files.
  18063. This is the remainder of the fix for <rdar://problem/5035948>
  18064. -- Dragging image or link from boomer doesn't create webloc
  18065. or image file.
  18066. * platform/win/ClipboardWin.cpp:
  18067. (WebCore::filesystemPathFromUrlOrTitle):
  18068. Make name generation nicer, and better match Firefox
  18069. (WebCore::createGlobalURLContent):
  18070. rename function
  18071. (WebCore::createGlobalImageFileContent):
  18072. Copies image data into global store
  18073. (WebCore::createGlobalUrlFileDescriptor):
  18074. Rename function
  18075. Updated for parameter change on filesystemPathFromUrlOrTitle
  18076. (WebCore::createGlobalImageFileDescriptor):
  18077. Set up file descriptor for image drag
  18078. (WebCore::getCachedImage):
  18079. Helper function
  18080. (WebCore::writeImageToDataObject):
  18081. Attempts to build and insert data for image->file drag
  18082. (WebCore::ClipboardWin::declareAndWriteDragImage):
  18083. Attempts to build and insert data for image->file drag
  18084. (WebCore::ClipboardWin::writeURL):
  18085. Add call to imageDataToDataObject
  18086. 2007-04-17 Adam Roben <aroben@apple.com>
  18087. Rubberstamped by Oliver.
  18088. * platform/network/cf/ResourceHandleCFNet.cpp: Removed an unnecessary
  18089. include.
  18090. 2007-04-17 Oliver Hunt <oliver@apple.com>
  18091. Whoops, had code commented out from manual failure test.
  18092. Also fixed date of previous changelog entry
  18093. * platform/win/ClipboardWin.cpp:
  18094. (WebCore::writeFileToDataObject):
  18095. 2007-04-17 Oliver Hunt <oliver@apple.com>
  18096. Reviewed by Ada.
  18097. Partial fix for <rdar://problem/5035948> -- Dragging image
  18098. or link from boomer doesn't create webloc or image file.
  18099. Add all the ground work to set up FileDescriptors and FileContent
  18100. for allowing files to be created from drag and drop actions,
  18101. and hook up logic for links to create WebLoc data for drag and drop.
  18102. * platform/win/ClipboardWin.cpp:
  18103. (WebCore::fileDescriptorFormat):
  18104. (WebCore::fileContentFormat):
  18105. Clipboard formats
  18106. (WebCore::pathRemoveBadFSCharacters):
  18107. (WebCore::filesystemPathFromUrlOrTitle):
  18108. Helper functions for create filenames
  18109. (WebCore::createGlobalDataForURLContent):
  18110. Create the WebLoc content
  18111. (WebCore::createGlobalDataForUrlFileDescriptor):
  18112. Create a file descriptor for the WebLoc data
  18113. (WebCore::writeFileToDataObject):
  18114. Basic helper function to push generated file info
  18115. into the target DataObject
  18116. (WebCore::ClipboardWin::writeURL):
  18117. Now puts WebLoc file onto the Clipboard
  18118. 2007-04-16 Adam Roben <aroben@apple.com>
  18119. Reviewed by Adele.
  18120. Fix <rdar://problem/5002577> Focus ring SPI in GraphicsContextWin.cpp
  18121. needs to move to WebKitSystemInterface
  18122. * platform/win/GraphicsContextWin.cpp:
  18123. (WebCore::GraphicsContext::drawFocusRing): Use wkDrawFocusRing.
  18124. 2007-04-14 Adam Roben <aroben@apple.com>
  18125. * WebCore.vcproj/WebCore.submit.sln: Use the Debug_Internal
  18126. configuration.
  18127. 2007-04-14 Adam Roben <aroben@apple.com>
  18128. Small correctness fix that is needed for building OpenSource.
  18129. * platform/win/PopupMenuWin.cpp: Use RenderTheme instead of RenderThemeWin.
  18130. 2007-04-13 Adam Roben <aroben@apple.com>
  18131. Reviewed by Tim.
  18132. Sync our config.h with the OpenSource version so we can merge ours in
  18133. later.
  18134. * config.h: Added #defines from the OpenSource version, moved
  18135. Windows-specific defines inside #if PLATFORM(WIN[_OS]), and got rid
  18136. of assert.h
  18137. * platform/win/CursorWin.cpp:
  18138. (WebCore::Cursor::Cursor): Use ASSERT instead of assert.
  18139. 2007-04-13 Adam Roben <aroben@apple.com>
  18140. Rubberstamped by Tim.
  18141. Removed the loader/win directory since it only contains empty files.
  18142. * WebCore.vcproj/WebCore.vcproj: Removed empty files.
  18143. * loader/win/FrameLoaderWin.cpp: Removed.
  18144. * loader/win/ResourceLoaderWin.cpp: Removed.
  18145. 2007-04-12 Adam Roben <aroben@apple.com>
  18146. Rubberstamped by Steve.
  18147. Removed unused file.
  18148. * WebCore.vcproj/WebCore.sln: Removed.
  18149. 2007-04-12 Adam Roben <aroben@apple.com>
  18150. Didn't mean to commit this.
  18151. * WebCore.vcproj/WebCore.vcproj:
  18152. 2007-04-12 Adam Roben <aroben@apple.com>
  18153. Reviewed by Steve.
  18154. <rdar://problem/5131565> Need to be able to use debug WebKit with
  18155. release Safari.
  18156. * WebCore.vcproj/WebCore.vcproj:
  18157. * WebCore.vcproj/debug.vsprops:
  18158. * WebCore.vcproj/debug_internal.vsprops: Added.
  18159. * WebCore.vcproj/release.vsprops:
  18160. 2007-04-11 Adam Roben <aroben@apple.com>
  18161. Reviewed by Tim.
  18162. Get rid of FrameViewWin.cpp, since it's empty.
  18163. * WebCore.vcproj/WebCore.vcproj:
  18164. * bridge/win/FrameViewWin.cpp: Removed.
  18165. 2007-04-11 Adam Roben <aroben@apple.com>
  18166. Reviewed by Anders.
  18167. Update for changes to Pasteboard.
  18168. * platform/win/PasteboardWin.cpp:
  18169. (WebCore::Pasteboard::writeImage):
  18170. 2007-04-10 Brady Eidson <beidson@apple.com>
  18171. Reviewed by Darin
  18172. <rdar://problem/4887095> - PageCache and PageState should be combined
  18173. Changed a TemporaryLinkStub and updated the project file
  18174. * WebCore.vcproj/WebCore.vcproj:
  18175. * platform/win/TemporaryLinkStubs.cpp:
  18176. (CachedPage::close):
  18177. 2007-04-10 John Sullivan <sullivan@apple.com>
  18178. * platform/win/TemporaryLinkStubs.cpp:
  18179. (WebCore::Editor::markBadGrammar):
  18180. Keep build going: added stub for this new method
  18181. 2007-04-10 Anders Carlsson <andersca@apple.com>
  18182. Reviewed by Adam.
  18183. <rdar://problem/5056988>
  18184. Can not open player on http://radioalice.com
  18185. Fix scriptStringIfJavaScriptURL to not use the path of the URL. This would ignore any characters past
  18186. a '?' character because that would be parsed as the query part of the URL.
  18187. * plugins/win/PluginViewWin.cpp:
  18188. (WebCore::scriptStringIfJavaScriptURL):
  18189. Make this be more like the mac, chopping off the first 12 characters ("javascript:")
  18190. and then decoding the remaining characters.
  18191. 2007-04-10 Anders Carlsson <acarlsson@apple.com>
  18192. * plugins/win/PluginViewWin.cpp:
  18193. (WebCore::PluginViewWin::PluginViewWin):
  18194. Initialize m_status.
  18195. 2007-04-09 Anders Carlsson <acarlsson@apple.com>
  18196. Reviewed by Adam.
  18197. <rdar://problem/5062624>
  18198. No prompt to install QT for pages with uninstalled QT plug-in.
  18199. Add a status() accessor to PluginViewWin. This can be used by WebKit to find out if the plug-in
  18200. loaded successfully or not.
  18201. * plugins/win/PluginViewWin.cpp:
  18202. (WebCore::PluginViewWin::PluginViewWin):
  18203. (WebCore::PluginViewWin::init):
  18204. * plugins/win/PluginViewWin.h:
  18205. (WebCore::):
  18206. (WebCore::PluginViewWin::status):
  18207. 2007-04-09 Brady Eidson <beidson@apple.com>
  18208. Build fix
  18209. * plugins/win/PluginViewWin.cpp:
  18210. (WebCore::PluginViewWin::performRequest): assume userGesture is true
  18211. 2007-04-09 Adam Roben <aroben@apple.com>
  18212. Build fix.
  18213. * platform/win/PasteboardWin.cpp:
  18214. (WebCore::Pasteboard::writeImage):
  18215. 2007-04-08 Adam Roben <aroben@apple.com>
  18216. Reviewed by Oliver.
  18217. Stubbed out Frame::dashboardRegionsChanged now that it's not
  18218. Mac-specific.
  18219. * bridge/win/FrameWin.cpp:
  18220. (WebCore::Frame::dashboardRegionsChanged):
  18221. 2007-04-06 Oliver Hunt <oliver@apple.com>
  18222. Reviewed by Adam.
  18223. Fix for rdar://problem/5097227 Can't drag Flash-based
  18224. scrollbar on mtv.com
  18225. The problem was when creating a mouse move event for the
  18226. plugin we weren't passing on the mouse button state.
  18227. The opensource side of this patch adds logic that allows
  18228. us to distinguish between a MouseEvent with NoButton and
  18229. a MouseEvent with LeftButton, so we can then provide the
  18230. correct information to the plugin.
  18231. * plugins/win/PluginViewWin.cpp:
  18232. (WebCore::PluginViewWin::handleMouseEvent):
  18233. 2007-04-06 Dave Hyatt <hyatt@apple.com>
  18234. Internal side of fix for bug 13274.
  18235. Reviewed by olliej
  18236. * page/win/EventHandlerWin.cpp:
  18237. (WebCore::EventHandler::passMousePressEventToSubframe):
  18238. * platform/win/PlatformScrollBarSafari.cpp:
  18239. (WebCore::PlatformScrollbar::handleMousePressEvent):
  18240. * platform/win/PopupMenuWin.cpp:
  18241. (WebCore::PopupMenu::PopupMenu):
  18242. (WebCore::PopupWndProc):
  18243. * platform/win/ScrollViewWin.cpp:
  18244. (WebCore::ScrollView::removeChild):
  18245. * platform/win/WidgetWin.cpp:
  18246. 2007-04-07 Mark Rowe <mrowe@apple.com>
  18247. Internal build fox after opensource r20753.
  18248. * platform/win/PlatformMouseEventWin.cpp:
  18249. * platform/win/TemporaryLinkStubs.cpp:
  18250. 2007-04-03 Oliver Hunt <oliver@apple.com>
  18251. Buildfix
  18252. * platform/network/cf/ResourceResponseCFNet.cpp:
  18253. (WebCore::ResourceResponse::doUpdateResourceResponse):
  18254. Adding .get() calls
  18255. 2007-04-03 Maciej Stachowiak <mjs@apple.com>
  18256. Reviewed by Alice.
  18257. - fixed <rdar://problem/5107069> WebCore leaks a copy of the CFHTTPMessage CFDictionary (from CFHTTPMessageCopyAllHeaderFields)
  18258. * platform/network/cf/ResourceResponseCFNet.cpp:
  18259. (WebCore::ResourceResponse::doUpdateResourceResponse): Use RetainPtr (once to avoid a leak and once
  18260. just as style cleanup).
  18261. 2007-04-02 Anders Carlsson <andersca@apple.com>
  18262. Reviewed by Adam.
  18263. Fix crashes seen when running the plugin layout tests.
  18264. * plugins/win/PluginPackageWin.cpp:
  18265. (WebCore::PluginPackageWin::load):
  18266. Fill in the enumerate pointer, not the evaluate pointer (it's already been filled in).
  18267. * plugins/win/PluginStreamWin.cpp:
  18268. (WebCore::PluginStreamWin::didFinishLoading):
  18269. Handle the case where there was no plugin stream data at all.
  18270. 2007-04-02 Anders Carlsson <andersca@apple.com>
  18271. Reviewed by Darin.
  18272. Check that NPStream pointers passed to NPN_DestroyStream are valid.
  18273. * plugins/win/PluginStreamWin.cpp:
  18274. (WebCore::streams):
  18275. (WebCore::PluginStreamWin::PluginStreamWin):
  18276. (WebCore::PluginStreamWin::~PluginStreamWin):
  18277. (WebCore::PluginStreamWin::ownerForStream):
  18278. * plugins/win/PluginStreamWin.h:
  18279. * plugins/win/PluginViewWin.cpp:
  18280. (WebCore::PluginViewWin::destroyStream):
  18281. 2007-04-02 Anders Carlsson <andersca@apple.com>
  18282. Reviewed by Darin.
  18283. <rdar://problem/5095582>
  18284. PluginViewWin doesn't implement NPN_DestroyStream.
  18285. * plugins/win/PluginStreamWin.cpp:
  18286. (WebCore::PluginStreamWin::startStream):
  18287. Handle the case where NPN_DestroyStream is called from the newstream handler.
  18288. * plugins/win/PluginViewWin.cpp:
  18289. (WebCore::PluginViewWin::destroyStream):
  18290. Implement this.
  18291. 2007-04-02 Anders Carlsson <andersca@apple.com>
  18292. Reviewed by Dave Hyatt.
  18293. <rdar://problem/5097225>
  18294. Mouse cursors don't work with windowless plugins
  18295. * platform/win/WidgetWin.cpp:
  18296. (WebCore::Widget::setCursor):
  18297. Add an "ignoreNextSetCursor" boolean and don't call SetCursor if it's true.
  18298. * plugins/win/PluginViewWin.cpp:
  18299. (WebCore::PluginViewWin::handleMouseEvent):
  18300. Store away the current cursor and make sure that it won't be reset.
  18301. 2007-04-02 Anders Carlsson <andersca@apple.com>
  18302. Reviewed by Adam.
  18303. Fix logic in windowless paint functions.
  18304. * plugins/win/PluginViewWin.cpp:
  18305. (WebCore::PluginViewWin::invalidateRect):
  18306. (WebCore::PluginViewWin::invalidateRegion):
  18307. (WebCore::PluginViewWin::forceRedraw):
  18308. 2007-03-31 Dave Hyatt <hyatt@apple.com>
  18309. Internal side of 13234. Open source side was reviewed by
  18310. Mitz. Layout of justified text was broken when dragged or
  18311. when a ::selection style was in effect.
  18312. * platform/win/FontWin.cpp:
  18313. (WebCore::Font::selectionRectForComplexText):
  18314. (WebCore::Font::drawComplexText):
  18315. (WebCore::Font::floatWidthForComplexText):
  18316. * platform/win/UniscribeController.cpp:
  18317. (WebCore::UniscribeController::UniscribeController):
  18318. (WebCore::UniscribeController::offsetForPosition):
  18319. * platform/win/UniscribeController.h:
  18320. * platform/win/WebCoreTextRenderer.cpp:
  18321. (WebCore::doDrawTextAtPoint):
  18322. 2007-03-30 Anders Carlsson <andersca@apple.com>
  18323. Reviewed by Geoff.
  18324. * plugins/win/PluginDatabaseWin.cpp:
  18325. (WebCore::PluginDatabaseWin::addExtraPluginPath):
  18326. * plugins/win/PluginDatabaseWin.h:
  18327. New function for adding an extra plugin path, to be used by DRT.
  18328. * plugins/win/PluginPackageWin.cpp:
  18329. (WebCore::PluginPackageWin::load):
  18330. Set the current directory tho the plugin directory while loading the plugin. Add new NPN callbacks.
  18331. * plugins/win/PluginViewWin.cpp:
  18332. (WebCore::PluginViewWin::invalidateRect):
  18333. (WebCore::PluginViewWin::invalidateRegion):
  18334. (WebCore::PluginViewWin::forceRedraw):
  18335. Don't do anything if the plugin is windowed.
  18336. * plugins/win/npapi.cpp:
  18337. (NPN_PushPopupsEnabledState):
  18338. (NPN_PopPopupsEnabledState):
  18339. Add stubs.
  18340. * plugins/win/npfunctions.h:
  18341. Add new methods and merge some fixes from the open source version.
  18342. 2007-03-29 Dave Hyatt <hyatt@apple.com>
  18343. Enable CG's local font cache. rdar://problem/5070005
  18344. Reviewed by aroben
  18345. * platform/win/FontCacheWin.cpp:
  18346. (WebCore::FontCache::platformInit):
  18347. 2007-03-28 Maciej Stachowiak <mjs@apple.com>
  18348. Reviewed by Darin.
  18349. - updates for <rdar://problem/4820817> Autoscroll is broken in Mail.app (message jumps around when trying to select text)
  18350. * platform/win/ScrollViewWin.cpp:
  18351. (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers):
  18352. (WebCore::ScrollView::scrollRectIntoViewRecursively):
  18353. 2007-03-27 Dave Hyatt <hyatt@apple.com>
  18354. Fix for 5090964, arabic text is all jumbled in list boxes and popup menus (and in the
  18355. Boomer app too). The fallback font was not the right size because the font you're mapping
  18356. from had to be selected into the HDC first.
  18357. Reviewed by ggaren
  18358. * ChangeLog:
  18359. * platform/win/FontCacheWin.cpp:
  18360. (WebCore::FontCache::getFontDataForCharacters):
  18361. 2007-03-27 Geoffrey Garen <ggaren@apple.com>
  18362. Reviewed by Anders Carlsson.
  18363. Fixed <rdar://problem/5085076> WebView stops painting after
  18364. loading stand-alone netflix movie preview in WMP format
  18365. The stand-alone WMP plug-in seems to do all its drawing in
  18366. the WM_ERASEBKGN phase, not the WM_PAINT phase, so our
  18367. InvalidateRect call for plug-in windows needs to specify
  18368. 'true' for whether the background region should be erased.
  18369. A smart plug-in that wants to avoid background draws can
  18370. still do so by just returning 1 in response to WM_ERASEBKGN,
  18371. or by setting its background brush to NULL.
  18372. * plugins/win/PluginViewWin.cpp:
  18373. (WebCore::PluginViewWin::updateWindow):
  18374. 2007-03-27 Anders Carlsson <acarlsson@apple.com>
  18375. Reviewed by Maciej.
  18376. <rdar://problem/5091459>
  18377. Crash when destroying "null plugin"
  18378. <rdar://problem/5056845>
  18379. Invoking itunes page has missing plugin icon on it
  18380. * plugins/win/PluginViewWin.cpp:
  18381. (WebCore::PluginViewWin::paintMissingPluginIcon):
  18382. Clip before painting.
  18383. (WebCore::freeStringArray):
  18384. Add null-check.
  18385. (WebCore::PluginViewWin::PluginViewWin):
  18386. Initialize plugin names and values.
  18387. 2007-03-27 Dave Hyatt <hyatt@apple.com>
  18388. Add support for glyph offsets to the GlyphBuffer.
  18389. Reviewed by olliej
  18390. * platform/win/FontWin.cpp:
  18391. (WebCore::Font::drawGlyphs):
  18392. * platform/win/UniscribeController.cpp:
  18393. (WebCore::UniscribeController::shapeAndPlaceItem):
  18394. 2007-03-26 Antti Koivisto <antti@apple.com>
  18395. Reviewed by Darin.
  18396. Initialize new m_isContinuous field in WheelEvent
  18397. * platform/win/WheelEventWin.cpp:
  18398. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  18399. 2007-03-27 Dave Hyatt <hyatt@apple.com>
  18400. Enable complex text. Selection and small-caps support are now enabled with this patch.
  18401. Reviewed by aroben
  18402. * platform/win/FontWin.cpp:
  18403. (WebCore::Font::selectionRectForComplexText):
  18404. (WebCore::Font::drawComplexText):
  18405. (WebCore::Font::floatWidthForComplexText):
  18406. (WebCore::Font::offsetForPositionForComplexText):
  18407. * platform/win/UniscribeController.cpp:
  18408. (WebCore::UniscribeController::UniscribeController):
  18409. (WebCore::UniscribeController::floatWidth):
  18410. (WebCore::UniscribeController::offsetForPosition):
  18411. (WebCore::UniscribeController::advance):
  18412. (WebCore::UniscribeController::itemizeShapeAndPlace):
  18413. (WebCore::UniscribeController::shapeAndPlaceItem):
  18414. * platform/win/UniscribeController.h:
  18415. (WebCore::UniscribeController::runWidthSoFar):
  18416. 2007-03-26 Adele Peterson <adele@apple.com>
  18417. Reviewed by Adam.
  18418. Fix for <rdar://problem/5088844> Popup menu is not positioned correctly on a yahoo comics page
  18419. Fixes test: fast/forms/control-restrict-line-height.html
  18420. This change was made in RenderThemeMac a while ago, and will fix the line height for aqua popup buttons,
  18421. buttons and search fields.
  18422. * rendering/RenderThemeSafari.cpp: WebCore::RenderThemeSafari::setFontFromControlSize):
  18423. Don't honor line-height for controls that have restricted font size.
  18424. 2007-03-25 Brady Eidson <beidson@apple.com>
  18425. Reviewed by Oliver
  18426. <rdar://problem/5086888> - WebHistory(Item) Leak
  18427. * platform/win/COMPtr.h:
  18428. (COMPtr::COMPtr): An an adoptRef constructor
  18429. 2007-03-24 Adam Roben <aroben@apple.com>
  18430. Reviewed by Maciej.
  18431. Fix <rdar://problem/5076610> Crash in PluginViewWin::updateWindow when
  18432. loading a PDF page for the first time after installing Acrobat Reader
  18433. Don't call PluginPackageWin::load() until the PluginViewWin has been
  18434. inserted into the Widget tree. load() can result in arbitrary code
  18435. execution (in this case, a EULA window appears which takes focus from
  18436. the WebView, causing Frame::setIsActive(false) to be called), and we
  18437. don't want to be in a transitional state when that happens.
  18438. * plugins/win/PluginDatabaseWin.cpp:
  18439. (WebCore::PluginDatabaseWin::createPluginView): Call PluginViewWin's
  18440. one and only constructor.
  18441. * plugins/win/PluginViewWin.cpp:
  18442. (WebCore::PluginViewWin::setParent): Call init() after inserting
  18443. ourselves into the Widget tree.
  18444. (WebCore::PluginViewWin::PluginViewWin): Defer all real work until
  18445. init() is called.
  18446. (WebCore::PluginViewWin::init): Added. Calls m_plugin->load(), then
  18447. does the rest of the work that was once done by the constructor.
  18448. * plugins/win/PluginViewWin.h: Removed createNullPlugin and simplified
  18449. constructor, added setParent override and new init method.
  18450. 2007-03-24 Brady Eidson <beidson@apple.com>
  18451. Reviewed by Adam
  18452. <rdar://problem/5086210> - Move RetainPtr to WTF for WebKitWin and the App
  18453. * WebCore.vcproj/WebCore.vcproj: Add the ForwardingHeader to the vcprojs
  18454. 2007-03-23 Adele Peterson <adele@apple.com>
  18455. Reviewed by Maciej.
  18456. Fix for <rdar://problem/5083928> In editable webviews, caps lock key is ignored
  18457. * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  18458. Removed code to store lowercase characters in m_text. Now that we use the character code
  18459. to create m_text this is already taken care of. This does mean that m_unmodifiedText is
  18460. not right. This is used for accesskeys, which don't work yet, so that is covered in rdar://5085596.
  18461. This also fixes line endings in this file.
  18462. 2007-03-22 Geoffrey Garen <ggaren@apple.com>
  18463. Reviewed by Adam Roben.
  18464. Fixed <rdar://problem/5082985> Select menus are too see-through
  18465. Upped alpha value from 90 to 95. Menus will still seem a little
  18466. more see-through than on the mac, since their backgrounds are
  18467. white, not grey, but white matches other Windows browsers.
  18468. * ChangeLog:
  18469. * platform/win/PopupMenuWin.cpp:
  18470. 2007-03-22 Anders Carlsson <acarlsson@apple.com>
  18471. Reviewed by Maciej.
  18472. <rdar://problem/5081539>
  18473. QT content is dupped on a page, if page is being previewed or printed.
  18474. Don't update the frame geometry if the document is in printing mode.
  18475. * plugins/win/PluginViewWin.cpp:
  18476. (WebCore::PluginViewWin::setFrameGeometry):
  18477. 2007-03-22 Beth Dakin <bdakin@apple.com>
  18478. Fix by Hyatt, reviewed and committed by me.
  18479. Fix for <rdar://problem/5082360> Incomplete frame paint when
  18480. shrinking window @ google.com
  18481. * platform/win/ScrollViewWin.cpp:
  18482. (WebCore::ScrollView::setFrameGeometry): Wrong order!
  18483. 2007-03-22 Dave Hyatt <hyatt@apple.com>
  18484. Fix for crasher in layout caused by paints that happen without layout being current. Change to be
  18485. more like the Mac and crawl the frame tree up front ensuring everyone is up to date before painting.
  18486. Reviewed by olliej
  18487. * platform/win/ScrollViewWin.cpp:
  18488. (WebCore::ScrollView::setFrameGeometry):
  18489. (WebCore::ScrollView::children):
  18490. (WebCore::ScrollView::geometryChanged):
  18491. 2007-03-22 Dave Hyatt <hyatt@apple.com>
  18492. Fix for mouse wheel issues. Only return success from passWheelEventToSubframe is the event was
  18493. actually accepted.
  18494. * page/win/EventHandlerWin.cpp:
  18495. (WebCore::EventHandler::passWheelEventToSubframe):
  18496. 2007-03-21 Dave Hyatt <hyatt@apple.com>
  18497. Fix numerous bugs in RTL support. Only use a directional override if the run
  18498. tells us to. Uniscribe will give incorrect results when measuring RTL runs as LTR if the
  18499. directional override is set. Switch from logical order for glyphs to visual order
  18500. instead. This is more similar to ATSUI (less similar to the fast code path, which always uses
  18501. logical ordering for glyph generation). Using visual ordering forces a lot of games to be played
  18502. (have to walk the script items in backwards order for RTL for example), but Uniscribe does not combine
  18503. glyphs properly if visual ordering is not used.
  18504. Add support for justification, letter-spacing, word-spacing and rounding hacks. The CG vs. ATSUI layout
  18505. test now passes with identical results to the Mac. The ATSUI spacing features layout test now
  18506. generates correct results (although they are different from the Mac because we fall back to Arial for
  18507. Hebrew instead of Lucida Grande).
  18508. Reviewed by oliver
  18509. * platform/win/UniscribeController.cpp:
  18510. (WebCore::UniscribeController::UniscribeController):
  18511. (WebCore::UniscribeController::resetControlAndState):
  18512. (WebCore::UniscribeController::shapeAndPlaceItem):
  18513. (WebCore::UniscribeController::shape):
  18514. * platform/win/UniscribeController.h:
  18515. 2007-03-20 Adam Roben <aroben@apple.com>
  18516. Reviewed by Ada.
  18517. Added null-checks for ResourceHandle::cookieStorage() before passing it
  18518. into CFNetwork functions, which are not null-safe.
  18519. * platform/network/win/CookieJarWin.cpp:
  18520. (WebCore::setCookies):
  18521. (WebCore::cookies):
  18522. 2007-03-20 Adam Roben <aroben@apple.com>
  18523. Build fix.
  18524. * WebCore.vcproj/WebCore.vcproj: Added XPathNodeSet.(cpp|h).
  18525. 2007-03-20 Adam Roben <aroben@apple.com>
  18526. Reviewed by Oliver.
  18527. Made the metrics of styled selects match those on the Mac to get
  18528. fast/forms/001.html passing.
  18529. * rendering/RenderThemeSafari.cpp: Use 2px less padding for the
  18530. select's arrow since the arrow is 2px wider than on the Mac.
  18531. 2007-03-20 Adam Roben <aroben@apple.com>
  18532. Build fix.
  18533. * platform/network/cf/ResourceHandleCFNet.cpp:
  18534. (WebCore::makeFinalRequest): Fix typo.
  18535. 2007-03-20 Dave Hyatt <hyatt@apple.com>
  18536. Land advanced text code path (turned off).
  18537. Reviewed by aroben
  18538. * WebCore.vcproj/WebCore.vcproj:
  18539. * platform/win/FontCacheWin.cpp:
  18540. (WebCore::FontCache::createFontPlatformData):
  18541. * platform/win/FontDataWin.cpp:
  18542. (WebCore::FontData::platformInit):
  18543. (WebCore::FontData::platformDestroy):
  18544. (WebCore::FontData::smallCapsFontData):
  18545. (WebCore::FontData::scriptFontProperties):
  18546. * platform/win/FontWin.cpp:
  18547. (WebCore::Font::drawComplexText):
  18548. (WebCore::Font::floatWidthForComplexText):
  18549. (WebCore::Font::offsetForPositionForComplexText):
  18550. * platform/win/UniscribeController.cpp: Added.
  18551. (WebCore::UniscribeController::UniscribeController):
  18552. (WebCore::UniscribeController::resetControlAndState):
  18553. (WebCore::UniscribeController::shapeAndPlaceItem):
  18554. (WebCore::UniscribeController::shape):
  18555. * platform/win/UniscribeController.h: Added.
  18556. (WebCore::UniscribeController::width):
  18557. (WebCore::UniscribeController::glyphBuffer):
  18558. 2007-03-20 Anders Carlsson <acarlsson@apple.com>
  18559. Reviewed by Adam.
  18560. <rdar://problem/4921198>
  18561. Cookie acceptance policy not settable
  18562. * platform/network/cf/ResourceHandleCFNet.cpp:
  18563. (WebCore::willSendRequest):
  18564. (WebCore::willCacheResponse):
  18565. Remove FIXMEs.
  18566. (WebCore::makeFinalRequest):
  18567. New function that makes a final CFURLRequest depending on cookie policy and whether any
  18568. invalid SSL certificates should be ignored.
  18569. (WebCore::ResourceHandle::start):
  18570. (WebCore::ResourceHandle::loadResourceSynchronously):
  18571. Use makeFinalRequest.
  18572. (WebCore::ResourceHandle::cookieStorageAcceptPolicy):
  18573. (WebCore::ResourceHandle::setCookieStorageAcceptPolicy):
  18574. (WebCore::ResourceHandle::cookieStorage):
  18575. (WebCore::ResourceHandle::setCookieStorage):
  18576. (WebCore::ResourceHandle::setHostAllowsAnyHTTPSCertificate):
  18577. New functions for setting cookie policy, the deafult cookie storage and whether invalid
  18578. SSL certificates should result in an error.
  18579. * platform/network/cf/ResourceRequestCFNet.cpp:
  18580. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  18581. Set cookie storage, cookie policy and SSL properties.
  18582. * platform/network/win/CookieJarWin.cpp:
  18583. (WebCore::setCookies):
  18584. (WebCore::cookies):
  18585. Use same functions as the mac (sorta).
  18586. (WebCore::cookiesEnabled):
  18587. Implement this.
  18588. 2007-03-19 Adam Roben <aroben@apple.com>
  18589. Reviewed by Anders and Darin.
  18590. Added JavaScriptStatistics to the project for
  18591. <rdar://problems/5071653>.
  18592. * WebCore.vcproj/WebCore.vcproj: Added include/pthreads to the include
  18593. path, and added JavaScriptStatistics.(cpp|h).
  18594. 2007-03-18 David Hyatt <hyatt@apple.com>
  18595. Fix the CSS2 system font for 'menu' to match Mac. Makes the system fonts layout test pass.
  18596. * rendering/RenderThemeSafari.cpp:
  18597. (WebCore::RenderThemeSafari::systemFont):
  18598. 2007-03-18 Adam Roben <aroben@apple.com>
  18599. Reviewed by Hyatt.
  18600. Changed the file upload button to say "Choose File" to match Mac.
  18601. * platform/win/TemporaryLinkStubs.cpp:
  18602. (WebCore::fileButtonChooseFileLabel):
  18603. 2007-03-18 Geoffrey Garen <ggaren@apple.com>
  18604. Reviewed by Oliver Hunt.
  18605. Fixed <rdar://problem/5061807> STRESS (2): Crash in PlatformScrollbar::setRect
  18606. No test case because I can't seem to get the Windows DRT to cooperate. I'll try again tomorrow.
  18607. The problem was that the FrameView would try to reset the document's scrollbars after having
  18608. been removed from the page, so its page pointer would be NULL. Added NULL checks.
  18609. This situation ultimately results from the FrameView's non-trivial destructor, which
  18610. creates a fragile dependency on tear-down timing. It looks like the timing on Windows
  18611. is slightly different from the timing on Mac. I didn't see any obvious resulting bugs,
  18612. though, so the NULL checks should be sufficient for now.
  18613. * platform/win/ScrollViewWin.cpp:
  18614. (WebCore::ScrollView::windowResizerRect):
  18615. (WebCore::ScrollView::addToDirtyRegion):
  18616. (WebCore::ScrollView::scrollBackingStore):
  18617. (WebCore::ScrollView::updateBackingStore):
  18618. 2007-03-17 David Hyatt <hyatt@apple.com>
  18619. The internal side of the patch that ensures Boomer paints twice on ibench. Don't let the timer beat out
  18620. that first paint.
  18621. Reviewed by aroben
  18622. * platform/win/ScrollViewWin.cpp:
  18623. (WebCore::ScrollView::update):
  18624. 2007-03-17 Adam Roben <aroben@apple.com>
  18625. Reviewed by Brady.
  18626. Fix fast/dom/isindex-002.html.
  18627. Add default strings to our two remaining unimplemented localizable
  18628. strings in WebCore.
  18629. * platform/win/TemporaryLinkStubs.cpp:
  18630. (WebCore::searchableIndexIntroduction): Added English string from Mac.
  18631. (WebCore::inputElementAltText): Ditto.
  18632. 2007-03-17 Adele Peterson <adele@apple.com>
  18633. Reviewed by Hyatt.
  18634. Fix for <rdar://problem/4960391> REGRESSION (r18922): onChange never fired after selecting an item from a menulist
  18635. * platform/win/PopupMenuWin.cpp:
  18636. (WebCore::PopupMenu::PopupMenu): Initialize m_focusedIndex to 0. Instead of using the client to track the focused index, we'll
  18637. keep track of it internally. Our old behavior was trying to match Firefox by updating the selected index as you focus items, but that
  18638. doesn't seem necessary if the selection never gets committed.
  18639. (WebCore::PopupMenu::show): Initialize the focused index to the client's selected index.
  18640. (WebCore::PopupMenu::setFocusedIndex): Remove the fireOnChange argument. Remove the call to valueChanged.
  18641. (WebCore::PopupMenu::focusedIndex): Return m_focusedIndex instead of getting this from the client.
  18642. (WebCore::PopupMenu::down): Use the focusedIndex.
  18643. (WebCore::PopupMenu::up): ditto.
  18644. (WebCore::PopupMenu::paint): Paint a selected appearance for the item with the focused index.
  18645. 2007-03-16 Adele Peterson <adele@apple.com>
  18646. Reviewed by Lou.
  18647. Fix for <rdar://problem/5065040> cannot mousedown + drag in a <select> menu
  18648. * platform/win/PopupMenuWin.cpp:
  18649. (WebCore::PopupMenu::show): Set the capture when the popup window comes up.
  18650. (WebCore::PopupWndProc): Release the capture only when the mouse is not down, and the mouse moves outside the popup window,
  18651. or if you mouse up inside the window, and you're about to hide the popup. The mouse will get recaptured if you mouse down
  18652. again in the window.
  18653. 2007-03-15 Brady Eidson <beidson@apple.com>
  18654. Reviewed by Oliver
  18655. CFNetwork related cleanup that was a work around for previous deficiencies in CFURLDownload
  18656. This might fix some of the random crashers we see on stress testing if they end up
  18657. downloading links.
  18658. * platform/network/cf/ResourceHandleCFNet.cpp:
  18659. (WebCore::ResourceHandleInternal::~ResourceHandleInternal): Always call cancel if theres a
  18660. connection - the ref-count-check hack is no longer neccesary
  18661. (WebCore::ResourceHandle::releaseConnectionForDownload): Give up the CFURLConnection without
  18662. derefing it
  18663. 2007-03-15 Maciej Stachowiak <mjs@apple.com>
  18664. Reviewed by Geoff and Steve.
  18665. - fixed <rdar://problem/5029776> iBench JavaScript test slower than Opera
  18666. - fixes to use FastMalloc on Windows
  18667. * config.h: Don't force USE_SYSTEM_MALLOC
  18668. 2007-03-15 Adam Roben <aroben@apple.com>
  18669. Rubberstamped by Hyatt.
  18670. * platform/win/FontDataWin.cpp:
  18671. (WebCore::FontData::platformInit): Move the code to get the font face
  18672. to the top of the function for easier debugging.
  18673. * platform/win/FontPlatformDataWin.cpp:
  18674. (WebCore::FontPlatformData::FontPlatformData): ASSERT that we got a
  18675. valid CGFontRef back from CG, as CG and GDI should agree on the fonts
  18676. installed.
  18677. 2007-03-14 Anders Carlsson <acarlsson@apple.com>
  18678. Reviewed by Adam.
  18679. Use CFURLResponseCopySuggestedFilename.
  18680. * platform/network/cf/ResourceResponseCFNet.cpp:
  18681. (WebCore::suggestedFilenameForResponse):
  18682. 2007-03-14 Adam Roben <aroben@apple.com>
  18683. Reviewed by Hyatt.
  18684. Use CG to get xHeight.
  18685. * platform/win/FontDataWin.cpp:
  18686. (WebCore::scaleEmToUnits): Made robust against divide-by-zero errors.
  18687. (WebCore::FontData::platformInit): Ported Mac code to get xHeight using CG.
  18688. 2007-03-14 Anders Carlsson <acarlsson@apple.com>
  18689. Build fixes.
  18690. * platform/graphics/win/ImageWin.cpp:
  18691. (WebCore::Image::loadPlatformResource):
  18692. * platform/win/EditorWin.cpp:
  18693. 2007-03-13 Adam Roben <aroben@apple.com>
  18694. Reviewed by Anders.
  18695. * platform/win/FontDataWin.cpp:
  18696. (WebCore::scaleEmToUnits): Ported from FontDataMac.
  18697. (WebCore::FontData::platformInit): Use CG for metrics, and apply Mac's
  18698. line-height hack for Times, Helvetica, and Courier.
  18699. (WebCore::FontData::platformWidthForGlyph): Call wkGetGlyphAdvances to
  18700. use some CG SPI to match Mac.
  18701. 2007-03-12 Darin Adler <darin@apple.com>
  18702. * WebCore.vcproj/WebCore.vcproj: Added new JavaScript wrapper derived source files.
  18703. 2007-03-12 Anders Carlsson <acarlsson@apple.com>
  18704. Reviewed by Darin.
  18705. <rdar://problem/5054694>
  18706. Repro crash when viewing fast/dom/HTMLObjectElement/object-as-frame.html
  18707. * bridge/win/FrameWin.cpp:
  18708. (WebCore::Frame::createScriptInstanceForWidget):
  18709. Return 0 for frame views.
  18710. 2007-03-12 Anders Carlsson <acarlsson@apple.com>
  18711. Reviewed by Adam.
  18712. <rdar://problem/5054713>
  18713. Crash in suggestedFilenameForResponse in two fast/encoding tests.
  18714. Add null checks.
  18715. * platform/network/cf/ResourceResponseCFNet.cpp:
  18716. (WebCore::suggestedFilenameForResponse):
  18717. 2007-03-12 Adele Peterson <adele@apple.com>
  18718. Reviewed by Oliver.
  18719. Fix for <rdar://problem/5053618> Disable "recent searches" search field menu.
  18720. * platform/win/SearchPopupMenuWin.cpp: (WebCore::SearchPopupMenu::enabled):
  18721. 2007-03-12 Adele Peterson <adele@apple.com>
  18722. Reviewed by Oliver.
  18723. WebCore part of fix for <rdar://problem/5044790> preventing default of keypress event doesn't work (affects .mac)
  18724. * platform/win/KeyEventWin.cpp:
  18725. (WebCore::singleCharacterString): Added inline keyword.
  18726. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  18727. Renamed arguments to be more meaningful. Added characterCode argument to be used when constructing m_text.
  18728. 2007-03-12 Adele Peterson <adele@apple.com>
  18729. Reviewed by Oliver.
  18730. Forking KeyEventWin.cpp from revision 20118.
  18731. * WebCore.vcproj/WebCore.vcproj:
  18732. * platform/win/KeyEventWin.cpp: Added.
  18733. 2007-03-11 Oliver Hunt <oliver@apple.com>
  18734. Reviewed by Adele.
  18735. Removed Frame::respondToChangedSelection stub
  18736. added Editor::markMisspellings stub
  18737. * platform/win/TemporaryLinkStubs.cpp:
  18738. (WebCore::Editor::markMisspellings):
  18739. 2007-03-10 Geoffrey Garen <ggaren@apple.com>
  18740. Reviewed by Darin Adler.
  18741. Fixed <rdar://problem/4587763> PAC file: lock inversion between QT and
  18742. JSCore causes a hang @ www.panoramas.dk
  18743. See JavaScriptCore ChangeLog for details.
  18744. Stress test doesn't show any problems.
  18745. Drop the JSLock before making calls through the plug-in API from functions
  18746. that may have been called by JavaScript.
  18747. * plugins/win/PluginViewWin.cpp:
  18748. (WebCore::PluginViewWin::paint):
  18749. (WebCore::PluginViewWin::handleKeyboardEvent):
  18750. (WebCore::PluginViewWin::handleMouseEvent):
  18751. (WebCore::PluginViewWin::setNPWindowRect):
  18752. (WebCore::PluginViewWin::start):
  18753. (WebCore::PluginViewWin::stop):
  18754. (WebCore::PluginViewWin::performRequest):
  18755. (WebCore::PluginViewWin::bindingInstance):
  18756. 2007-03-09 Oliver Hunt <oliver@apple.com>
  18757. Reviewed by John.
  18758. Fix the doubled text in the image used to drag a link
  18759. * platform/win/WebCoreTextRenderer.cpp:
  18760. (WebCore::WebCoreDrawDoubledTextAtPoint):
  18761. 2007-03-09 Anders Carlsson <acarlsson@apple.com>
  18762. Reviewed by Adam.
  18763. Implement setting the suggested filename for a response.
  18764. * platform/network/cf/ResourceResponseCFNet.cpp:
  18765. (WebCore::filenameFromHTTPContentDisposition):
  18766. (WebCore::filenameHasSaneExtension):
  18767. (WebCore::suggestedFilenameForResponse):
  18768. (WebCore::ResourceResponse::doUpdateResourceResponse):
  18769. * platform/win/MimeTypeRegistryWin.cpp:
  18770. (WebCore::getMIMETypeForUTI):
  18771. (WebCore::mimeTypeForExtension):
  18772. Fix two bugs in this function.
  18773. (WebCore::MimeTypeRegistry::getPreferredExtensionForMIMEType):
  18774. 2007-03-09 Anders Carlsson <acarlsson@apple.com>
  18775. * plugins/win/PluginViewWin.cpp:
  18776. (WebCore::PluginViewWin::performRequest):
  18777. Fixup comments and remove an obsolete FIXME.
  18778. 2007-03-09 Oliver Hunt <oliver@apple.com>
  18779. Reviewed by Steve.
  18780. Executing a script for a plugin can cause cause this to be deleted
  18781. so we take a reference to our parent prior to executing the script
  18782. * plugins/win/PluginViewWin.cpp:
  18783. (WebCore::PluginViewWin::performRequest):
  18784. 2007-03-08 Oliver Hunt <oliver@apple.com>
  18785. Reviewed by Steve.
  18786. Allow webloc files to be dropped onto the webview
  18787. <rdar://problem/4883564> Regression: cannot open webloc file by dnd to Boomer's window
  18788. * platform/win/DragDataWin.cpp:
  18789. (WebCore::cfHDropFormat):
  18790. Clipboard format for HDROP, non-static as i will need it elsewhere in the future
  18791. (WebCore::getWebLocData):
  18792. Extract a url from a webloc file
  18793. (WebCore::getURL):
  18794. Call getWebLocData
  18795. 2007-03-08 Steve Falkenburg <sfalken@apple.com>
  18796. Fix Production build more
  18797. * WebCore.vcproj/WebCore.vcproj:
  18798. 2007-03-08 Steve Falkenburg <sfalken@apple.com>
  18799. Production build fix
  18800. * WebCore.vcproj/WebCore.vcproj:
  18801. 2007-03-08 Adam Roben <aroben@apple.com>
  18802. Reviewed by Steve.
  18803. Fix <rdar://problem/4969070> Failed error pages show "unknown error"
  18804. rather than specific error
  18805. Make ResourceError aware of kCFErrorDomainCFNetwork.
  18806. * platform/network/cf/ResourceErrorCF.cpp:
  18807. (WebCore::ResourceError::ResourceError): Added case for
  18808. kCFErrorDomainCFNetwork.
  18809. 2007-03-06 Adam Roben <aroben@apple.com>
  18810. Fixing the build while semi-blind is fun.
  18811. * platform/win/TemporaryLinkStubs.cpp:
  18812. (WebCore::supportedKeySizes): Need a namespace.
  18813. (WebCore::signedPublicKeyAndChallengeString): Ditto.
  18814. 2007-03-06 Adam Roben <aroben@apple.com>
  18815. It works better if you use valid C++ syntax.
  18816. * platform/win/TemporaryLinkStubs.cpp:
  18817. 2007-03-06 Adam Roben <aroben@apple.com>
  18818. Build fix.
  18819. * platform/win/TemporaryLinkStubs.cpp: Added missing stubs.
  18820. 2007-03-06 Adam Roben <aroben@apple.com>
  18821. Reviewed by Anders.
  18822. Always keep rounding hacks on.
  18823. * platform/win/FileChooserWin.cpp:
  18824. (WebCore::FileChooser::basenameForWidth): Tell StringTruncator to keep
  18825. rounding hacks on.
  18826. * platform/win/WebCoreTextRenderer.cpp:
  18827. (WebCore::WebCoreTextFloatWidth): Ditto.
  18828. 2007-03-06 Anders Carlsson <acarlsson@apple.com>
  18829. Build fix.
  18830. * plugins/win/PluginViewWin.cpp:
  18831. (WebCore::PluginViewWin::userAgent):
  18832. 2007-03-05 Anders Carlsson <acarlsson@apple.com>
  18833. Reviewed by Adam.
  18834. <rdar://problem/5041348>
  18835. Can't watch videos at cnn.com
  18836. * plugins/win/PluginStreamWin.cpp:
  18837. (WebCore::PluginStreamWin::cancelAndDestroyStream):
  18838. Change this function back to call call stop() after destroyStream(). Also, make sure to
  18839. protect the stream since destroyStream can eventually, well, destroy it.
  18840. 2007-03-05 Anders Carlsson <acarlsson@apple.com>
  18841. Reviewed by Adam.
  18842. <rdar://problem/4987743>
  18843. Regression: java content is represented as broken images on pages
  18844. * plugins/win/PluginPackageWin.cpp:
  18845. (WebCore::PluginPackageWin::load):
  18846. Make sure to set the size of the NPPluginFuncs struct correctly.
  18847. 2007-03-05 Steve Falkenburg <sfalken@apple.com>
  18848. Fix build
  18849. * plugins/win/PluginStreamWin.cpp:
  18850. (WebCore::PluginStreamWin::stop): Call cancel() instead of stopLoading(), since the latter was removed.
  18851. 2007-03-02 Adam Roben <aroben@apple.com>
  18852. Reviewed by Anders.
  18853. Added optional underlining of a single character to
  18854. WebCoreTextRenderer.
  18855. No layout tests possible.
  18856. * platform/win/WebCoreTextRenderer.cpp:
  18857. (WebCore::doDrawTextAtPoint): Added. This is an extraction of the code
  18858. from DrawTextAtPoint that now also contains the underlining code.
  18859. (WebCore::WebCoreDrawTextAtPoint): Call the helper function.
  18860. (WebCore::WebCoreDrawDoubledTextAtPoint): Ditto.
  18861. * platform/win/WebCoreTextRenderer.h: Added optional underlinedIndex
  18862. parameters.
  18863. 2007-03-01 Anders Carlsson <acarlsson@apple.com>
  18864. Reviewed by Tim.
  18865. * plugins/win/npfunctions.h:
  18866. Fix tyop.
  18867. 2007-02-28 Adam Roben <aroben@apple.com>
  18868. Reviewed by Anders.
  18869. Clean up WebCoreTextRenderer. WebCoreDrawTextAtPoint now just draws
  18870. text at a point. It doesn't center truncate, clip, or modify alignment.
  18871. No layout test possible.
  18872. * platform/win/WebCoreTextRenderer.cpp:
  18873. (WebCore::WebCoreDrawTextAtPoint): Use only WebCore types, and don't
  18874. center truncate or modify alignment.
  18875. (WebCore::WebCoreDrawDoubledTextAtPoint): Moved from WebKitGraphics.cpp.
  18876. (WebCore::WebCoreTextFloatWidth): Added.
  18877. * platform/win/WebCoreTextRenderer.h: Updated/added declarations.
  18878. 2007-02-28 Adele Peterson <adele@apple.com>
  18879. Reviewed by Adam.
  18880. Fix for <rdar://problem/4887423> REGRESSION: search results popup menu strings are not localized
  18881. and <rdar://problem/3517227> accessibility-related strings in WebCore are not localized
  18882. * platform/win/TemporaryLinkStubs.cpp:
  18883. (WebCore::searchMenuNoRecentSearchesText):
  18884. (WebCore::searchMenuRecentSearchesText):
  18885. (WebCore::searchMenuClearRecentSearchesText):
  18886. (WebCore::AXWebAreaText):
  18887. (WebCore::AXLinkText):
  18888. (WebCore::AXListMarkerText):
  18889. (WebCore::AXImageMapText):
  18890. (WebCore::AXHeadingText):
  18891. 2007-02-28 Maciej Stachowiak <mjs@apple.com>
  18892. Reviewed by Adam.
  18893. - fixed <rdar://problem/5005120> Crash: selecting View all RSS Articles from context menu of bookmark folder
  18894. * platform/network/cf/ResourceRequestCFNet.cpp:
  18895. (WebCore::ResourceRequest::doUpdatePlatformRequest): Use RetainPtr
  18896. instead of explicit release, as this was caused by CFRelease on
  18897. a null pointer, and REtainPtr is tolerant.
  18898. 2007-02-27 Beth Dakin <bdakin@apple.com>
  18899. Reviewed by Adam.
  18900. <rdar://problem/4956528> Implement Pasteboard::writeImage for
  18901. Boomer context menus
  18902. * platform/win/PasteboardWin.cpp:
  18903. (WebCore::Pasteboard::writeImage): Copy a bitmap to the clipboard.
  18904. 2007-02-27 Oliver Hunt <oliver@apple.com>
  18905. Reviewed by Lou and Steve.
  18906. Add a store for current Cursor to fix <rdar://problem/4788352>
  18907. * platform/win/WidgetWin.cpp:
  18908. (WebCore::Widget::setCursor):
  18909. 2007-02-26 Oliver Hunt <oliver@apple.com>
  18910. Reviewed by Maciej.
  18911. To stop the drag image for transparent images from looking
  18912. ugly (especially fully transparent images) we render the
  18913. image to a white background prior to passing the image on to
  18914. Windows
  18915. <rdar://problem/5015946>
  18916. * platform/win/DragImageWin.cpp:
  18917. (WebCore::createDragImageFromImage):
  18918. 2007-02-26 Adam Roben <aroben@apple.com>
  18919. Reviewed by Adele.
  18920. * platform/win/GraphicsContextWin.cpp: Get rid of so-five-hours-ago SVG_SUPPORT.
  18921. 2007-02-26 Adam Roben <aroben@apple.com>
  18922. Build fix.
  18923. * config.h: Remove redundant #define.
  18924. * WebCore.vcproj/WebCore.vcproj: Update to new macros.
  18925. 2007-02-26 Adam Roben <aroben@apple.com>
  18926. Rubberstamped by Ada.
  18927. * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: Make #if match the header file.
  18928. 2007-02-26 Adam Roben <aroben@apple.com>
  18929. Reviewed by Darin.
  18930. Build fix.
  18931. * WebCore.vcproj/build-generated-files.sh: Updated FEATURE_DEFINES.
  18932. * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: Use shiny new ENABLE(SVG).
  18933. * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: Ditto.
  18934. 2007-02-25 Maciej Stachowiak <mjs@apple.com>
  18935. Reviewed by Adam.
  18936. - fixed layout test failure in fast/overflow/scrollRevealButton
  18937. I added a new ScrollView method, fullyClippedContentRect, that vies the content rect
  18938. as clipped by all ancestor scroll views, not just this one. Currently it only works
  18939. correctly on mac however. visibleContentRect, only accounting for the clipping from
  18940. this particular scroll view, is sufficient for most purposes.
  18941. * platform/win/ScrollViewWin.cpp:
  18942. (WebCore::ScrolView::fullyClippedContentRect):
  18943. 2007-02-24 Adam Roben <aroben@apple.com>
  18944. Change #if to #ifdef to match style.
  18945. * platform/win/PopupMenuWin.cpp:
  18946. (WebCore::PopupMenu::show):
  18947. 2007-02-24 Adam Roben <aroben@apple.com>
  18948. Reviewed by Steve.
  18949. Fix <rdar://problem/5013502> REGRESSION: <select> menus are not
  18950. animating smoothly
  18951. This was caused by making the menus partially transparent in r12250.
  18952. * platform/win/PopupMenuWin.cpp:
  18953. (WebCore::PopupMenu::show): Disable animations.
  18954. 2007-02-23 Anders Carlsson <acarlsson@apple.com>
  18955. Reviewed by Adam.
  18956. <rdar://problem/4761543>
  18957. nike.com doesn't finish loading if Flash plugin is installed.
  18958. If a plugin requests a JavaScript URL with a non null frame target, execute the JavaScript expression. If the result
  18959. is not "undefined", replace the contents of the frame with the result converted to a string.
  18960. * plugins/win/PluginViewWin.cpp:
  18961. (WebCore::getString):
  18962. (WebCore::PluginViewWin::performRequest):
  18963. (WebCore::PluginViewWin::requestTimerFired):
  18964. 2007-02-22 Oliver Hunt <oliver@apple.com>
  18965. rs = adam
  18966. Replacing radar numbers from previous patch with one
  18967. the isn't fictitious <rdar://problem/5018591>
  18968. * platform/win/CursorWin.cpp:
  18969. (WebCore::columnResizeCursor):
  18970. (WebCore::rowResizeCursor):
  18971. (WebCore::verticalTextCursor):
  18972. 2007-02-22 Oliver Hunt <oliver@apple.com>
  18973. Reviewed by Ada.
  18974. Implemented a couple more cursor methods
  18975. * platform/win/CursorWin.cpp:
  18976. (WebCore::columnResizeCursor):
  18977. (WebCore::rowResizeCursor):
  18978. (WebCore::verticalTextCursor):
  18979. Added radar bug reference <rdar://problem/5018452>
  18980. (WebCore::progressCursor):
  18981. (WebCore::noDropCursor):
  18982. (WebCore::notAllowedCursor):
  18983. Making them return the correct cursor
  18984. 2007-02-22 Oliver Hunt <oliver@apple.com>
  18985. Reviewed by Anders.
  18986. Removing accessive COMPtr use from ClipboardWin constructors
  18987. Adding data verification to ClipoardWin::SetData
  18988. Small amount code tidying, and allowing for failure when writing an URL
  18989. * page/win/EventHandlerWin.cpp:
  18990. (WebCore::EventHandler::createDraggingClipboard):
  18991. Updated for new ClipboardWin constructor
  18992. * platform/win/ClipboardWin.cpp:
  18993. (WebCore::ClipboardWin::ClipboardWin):
  18994. (WebCore::writeURL):
  18995. (WebCore::ClipboardWin::getData):
  18996. Tidying code, and allowing failure
  18997. (WebCore::ClipboardWin::setData):
  18998. Verifying that we're writing a valid url
  18999. * platform/win/ClipboardWin.h:
  19000. * platform/win/EditorWin.cpp:
  19001. (WebCore::Editor::newGeneralClipboard):
  19002. Updated for new ClipboardWin constructor
  19003. 2007-02-22 Oliver Hunt <oliver@apple.com>
  19004. Reviewed by Ada, Lou, and Steve.
  19005. Last of the major Drag and drop implementation
  19006. patches for windows:
  19007. * Adds support for DOM Clipboard during drag operations
  19008. * Un-statics and refactors a few Pasteboard and DragData functions
  19009. to allow them to share implementation with ClipboardWin and other
  19010. drag logic
  19011. * Moves COMPtr.h from WebKit to WebCore
  19012. * Adds WCDataObject, which is basically a direct copy of
  19013. SDataObject from the app, with a few modifications to support
  19014. DOM clipboard functionality. Also includes a few suggestions
  19015. from Ada and Steve, mostly involving memory management :D
  19016. This resolves
  19017. <rdar://problem/4821407> Cannot drag link to bookmarks bar to create new link
  19018. <rdar://problem/4869496> User Interaction Essentials: Drag
  19019. * WebCore.vcproj/WebCore.vcproj:
  19020. Adding new files
  19021. * page/win/DragControllerWin.cpp:
  19022. (WebCore::DragController::maxDragImageSize):
  19023. Maximum size of drag image to allow sharp edges
  19024. is 208x208
  19025. * page/win/EventHandlerWin.cpp:
  19026. (WebCore::EventHandler::createDraggingClipboard):
  19027. Properly implemented now
  19028. * platform/win/ClipboardWin.cpp:
  19029. (WebCore::):
  19030. (WebCore::clipboardTypeFromMIMEType):
  19031. (WebCore::ClipboardWin::ClipboardWin):
  19032. (WebCore::ClipboardWin::~ClipboardWin):
  19033. (WebCore::writeURL):
  19034. Helper function to write a url to a WCDataObject
  19035. (WebCore::ClipboardWin::clearData):
  19036. (WebCore::ClipboardWin::clearAllData):
  19037. (WebCore::ClipboardWin::getData):
  19038. (WebCore::ClipboardWin::setData):
  19039. (WebCore::addMimeTypesForFormat):
  19040. Helper function for ClipboardWin::types
  19041. (WebCore::ClipboardWin::types):
  19042. (WebCore::ClipboardWin::setDragImage):
  19043. (WebCore::ClipboardWin::setDragImageElement):
  19044. General setters, match behaviour of WebKit/Mac
  19045. (WebCore::ClipboardWin::createDragImage):
  19046. Creates a drag image for a DOM specified Image is specified
  19047. can't currently generate an image for an arbitrary element
  19048. (WebCore::imageToMarkup):
  19049. Wraps a url in an img tag
  19050. (WebCore::ClipboardWin::declareAndWriteDragImage):
  19051. (WebCore::ClipboardWin::writeURL):
  19052. (WebCore::ClipboardWin::writeRange):
  19053. (WebCore::ClipboardWin::hasData):
  19054. Implement Clipboard required by DragController.
  19055. Provides read/write DOM Clipboard implementation for dragging,
  19056. read only when accessing system clipboard.
  19057. * platform/win/ClipboardWin.h:
  19058. (WebCore::ClipboardWin::dataObject):
  19059. Provide an accessor for the dataObject
  19060. * platform/win/DragDataWin.cpp:
  19061. (WebCore::urlWFormat):
  19062. (WebCore::urlFormat):
  19063. (WebCore::plainTextFormat):
  19064. (WebCore::plainTextWFormat):
  19065. (WebCore::texthtmlFormat):
  19066. (WebCore::htmlFormat):
  19067. (WebCore::getURL):
  19068. (WebCore::DragData::asURL):
  19069. (WebCore::getPlainText):
  19070. (WebCore::DragData::asPlainText):
  19071. (WebCore::DragData::asFragment):
  19072. Refactoring and removing of a few static modifiers to allow sharing with Clipboard
  19073. * platform/win/DragImageWin.cpp:
  19074. (WebCore::dragImageSize):
  19075. (WebCore::deleteDragImage):
  19076. (WebCore::allocImage):
  19077. (WebCore::createCgContextFromBitmap):
  19078. (WebCore::scaleDragImage):
  19079. (WebCore::dissolveDragImageToFraction):
  19080. (WebCore::createDragImageFromImage):
  19081. (WebCore::createDragImageIconForCachedImage):
  19082. Implement DragImage functions
  19083. * platform/win/EditorWin.cpp:
  19084. (WebCore::Editor::newGeneralClipboard):
  19085. Creating a Clipboard that wraps the system clipboard
  19086. * platform/win/PasteboardWin.cpp:
  19087. (WebCore::createGlobalData):
  19088. (WebCore::markupToCF_HTML):
  19089. (WebCore::urlToMarkup):
  19090. (WebCore::replaceNBSP):
  19091. removing 'static'
  19092. * platform/win/WCDataObject.cpp: Added.
  19093. (WebCore::WCEnumFormatEtc::WCEnumFormatEtc):
  19094. (WebCore::WCEnumFormatEtc::QueryInterface):
  19095. (WebCore::WCEnumFormatEtc::AddRef):
  19096. (WebCore::WCEnumFormatEtc::Release):
  19097. (WebCore::WCEnumFormatEtc::Next):
  19098. (WebCore::WCEnumFormatEtc::Skip):
  19099. (WebCore::WCEnumFormatEtc::Reset):
  19100. (WebCore::WCEnumFormatEtc::Clone):
  19101. (WebCore::WCDataObject::createInstance):
  19102. (WebCore::WCDataObject::WCDataObject):
  19103. (WebCore::WCDataObject::~WCDataObject):
  19104. (WebCore::WCDataObject::QueryInterface):
  19105. (WebCore::WCDataObject::AddRef):
  19106. (WebCore::WCDataObject::Release):
  19107. (WebCore::WCDataObject::GetData):
  19108. (WebCore::WCDataObject::GetDataHere):
  19109. (WebCore::WCDataObject::QueryGetData):
  19110. (WebCore::WCDataObject::GetCanonicalFormatEtc):
  19111. (WebCore::WCDataObject::SetData):
  19112. (WebCore::WCDataObject::CopyMedium):
  19113. (WebCore::WCDataObject::EnumFormatEtc):
  19114. (WebCore::WCDataObject::DAdvise):
  19115. (WebCore::WCDataObject::DUnadvise):
  19116. (WebCore::WCDataObject::EnumDAdvise):
  19117. (WebCore::WCDataObject::clearData):
  19118. Copied from SDataObject in the App createInstance and clearData
  19119. are the only new functions. clearData removes any entries in the
  19120. object with a specified CLIPFORMAT.
  19121. Have also made a few error and memory handling changes suggested
  19122. by Steve and Ada
  19123. * platform/win/WCDataObject.h: Added.
  19124. Header for the above
  19125. 2007-02-22 Adam Roben <aroben@apple.com>
  19126. Reviewed by Adele.
  19127. Make sure we always paint the right size search results icon.
  19128. * rendering/RenderThemeSafari.cpp:
  19129. (WebCore::RenderThemeSafari::paintSearchFieldCancelButton): Removed unused parameter.
  19130. (WebCore::RenderThemeSafari::paintSearchFieldDecoration): Ditto.
  19131. (WebCore::RenderThemeSafari::paintSearchFieldResultsDecoration): Base
  19132. the control size off of the search field rect to ensure that the icon
  19133. and the control are the same size.
  19134. (WebCore::RenderThemeSafari::paintSearchFieldResultsButton): Ditto.
  19135. 2007-02-21 Adam Roben <aroben@apple.com>
  19136. Reviewed by Adele.
  19137. Updated for SafariTheme changes.
  19138. * rendering/RenderThemeSafari.cpp:
  19139. (WebCore::RenderThemeSafari::paintMenuList): Use DropDownButtonPart.
  19140. 2007-02-20 Adele Peterson <adele@apple.com>
  19141. Reviewed by Darin.
  19142. * WebCore.vcproj/WebCore.vcproj: Added JSHTMLSelectElementCustom.h
  19143. 2007-02-20 Beth Dakin <bdakin@apple.com>
  19144. Reviewed by Maciej.
  19145. Some changes needed to match moving writeImage() to the Pasteboard
  19146. on the Mac.
  19147. * platform/win/PasteboardWin.cpp:
  19148. (WebCore::Pasteboard::writeURL): Now takes a bool indicating if the
  19149. url if for an image.
  19150. (WebCore::Pasteboard::writeImage): This is just a stub for now. I
  19151. am putting it here instead of on TemporaryLinkStubs because I plan
  19152. on implementing it very soon.
  19153. 2007-02-20 Adam Roben <aroben@apple.com>
  19154. Reviewed by Darin and Anders.
  19155. Fix <rdar://problem/5003318> App: Status bar text is more difficult to
  19156. read than Mac OS X Safari
  19157. * WebCore.vcproj/WebCore.vcproj: Added new files.
  19158. * platform/win/FileChooserWin.cpp:
  19159. (WebCore::FileChooser::openFileChooser):
  19160. (WebCore::FileChooser::basenameForWidth): Added truncation.
  19161. * platform/win/WebCoreTextRenderer.cpp:
  19162. (WebCore::WebCoreDrawTextAtPoint): Added bottomAlign and centerTruncate parameters.
  19163. * platform/win/WebCoreTextRenderer.h: Ditto.
  19164. 2007-02-20 Alice Liu <alice.liu@apple.com>
  19165. Build fix
  19166. * WebCore.vcproj/WebCore.vcproj:
  19167. Added PositionIterator.cpp & h
  19168. 2007-02-20 Steve Falkenburg <sfalken@apple.com>
  19169. Production build fix
  19170. * WebCore.vcproj/WebCore.vcproj:
  19171. 2007-02-19 Geoffrey Garen <ggaren@apple.com>
  19172. Reviewed by Adam Roben.
  19173. Fixed some leaks in RenderThemeSafari.
  19174. I just merged some of the code I wrote for RenderThemeMac.
  19175. * rendering/RenderThemeSafari.cpp:
  19176. (WebCore::RenderThemeSafari::paintMenuListButtonGradients):
  19177. (WebCore::RenderThemeSafari::paintSliderTrack):
  19178. 2007-02-19 Anders Carlsson <acarlsson@apple.com>
  19179. Reviewed by Oliver.
  19180. Fix build.
  19181. * page/win/DragControllerWin.cpp:
  19182. (WebCore::DragController::maxDragImageSize):
  19183. 2007-02-19 Adele Peterson <adele@apple.com>
  19184. Reviewed by Adam.
  19185. Fix for <rdar://problem/5006882> PlatformScrollbarSafari doesn't support small scroll bars
  19186. * platform/win/PlatformScrollBar.h:
  19187. * platform/win/PlatformScrollBarSafari.cpp:
  19188. (WebCore::):
  19189. (WebCore::PlatformScrollbar::PlatformScrollbar):
  19190. (WebCore::trackRepaintRect):
  19191. (WebCore::buttonRepaintRect):
  19192. (WebCore::PlatformScrollbar::invalidateTrack):
  19193. (WebCore::PlatformScrollbar::invalidatePart):
  19194. (WebCore::PlatformScrollbar::backButtonRect):
  19195. (WebCore::PlatformScrollbar::forwardButtonRect):
  19196. (WebCore::PlatformScrollbar::trackRect):
  19197. (WebCore::PlatformScrollbar::splitTrack):
  19198. (WebCore::PlatformScrollbar::thumbLength):
  19199. (WebCore::PlatformScrollbar::paintButton):
  19200. (WebCore::PlatformScrollbar::paintTrack):
  19201. (WebCore::PlatformScrollbar::paintThumb):
  19202. (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
  19203. (WebCore::PlatformScrollbar::verticalScrollbarWidth):
  19204. * platform/win/PopupMenuWin.cpp:
  19205. (WebCore::PopupMenu::show):
  19206. (WebCore::PopupMenu::calculatePositionAndSize):
  19207. 2007-02-19 Anders Carlsson <acarlsson@apple.com>
  19208. Reviewed by Adam.
  19209. <rdar://problem/5008424>
  19210. Regression: Crash loading mp3.com
  19211. * platform/network/cf/ResourceErrorCF.cpp:
  19212. (WebCore::ResourceError::ResourceError):
  19213. Handle null resource errrors.
  19214. 2007-02-19 Adam Roben <aroben@apple.com>
  19215. Build fix.
  19216. * bridge/win/FrameWin.cpp:
  19217. (WebCore::computePageRectsForFrame): This is no longer an instance
  19218. method of Frame.
  19219. * bridge/win/FrameWin.h:
  19220. 2007-02-18 Maciej Stachowiak <mjs@apple.com>
  19221. Reviewed by Oliver.
  19222. - Adapt for Lars's patch to clean up Frame
  19223. * bridge/win/FrameWin.cpp:
  19224. (WebCore::Frame::cleanupPlatformScriptObjects):
  19225. (WebCore::Frame::createScriptInstanceForWidget):
  19226. (WebCore::Frame::computePageRects):
  19227. (WebCore::drawRectIntoContext):
  19228. (WebCore::imageFromSelection):
  19229. (WebCore::Frame::isCharacterSmartReplaceExempt):
  19230. * bridge/win/FrameWin.h:
  19231. * page/win/EventHandlerWin.cpp:
  19232. * platform/win/ScrollViewWin.cpp:
  19233. (WebCore::ScrollView::windowResizerRect):
  19234. (WebCore::ScrollView::addToDirtyRegion):
  19235. (WebCore::ScrollView::scrollBackingStore):
  19236. (WebCore::ScrollView::updateBackingStore):
  19237. * platform/win/TemporaryLinkStubs.cpp:
  19238. (Frame::print):
  19239. (Frame::issueTransposeCommand):
  19240. (WebCore::Frame::respondToChangedSelection):
  19241. * plugins/win/PluginDatabaseWin.cpp:
  19242. (WebCore::PluginDatabaseWin::createPluginView):
  19243. * plugins/win/PluginDatabaseWin.h:
  19244. * plugins/win/PluginViewWin.cpp:
  19245. (WebCore::PluginViewWin::createNullPluginView):
  19246. (WebCore::PluginViewWin::PluginViewWin):
  19247. * plugins/win/PluginViewWin.h:
  19248. 2007-02-18 Ada Chan <adachan@apple.com>
  19249. Reviewed by Adam.
  19250. Move app text controls to use WebView.
  19251. - added a method to let us render text using WebKit.
  19252. * WebCore.vcproj/WebCore.vcproj:
  19253. * platform/win/WebCoreTextRenderer.cpp: Added.
  19254. (WebCore::WebCoreDrawTextAtPoint):
  19255. * platform/win/WebCoreTextRenderer.h: Added.
  19256. 2007-02-18 Adam Roben <aroben@apple.com>
  19257. Rubberstamped by Hyatt.
  19258. Fix <rdar://problem/5006918> All selected text is black, even if it is
  19259. some other color when not selected
  19260. * platform/win/PopupMenuWin.cpp:
  19261. (WebCore::PopupMenu::paint): Use the listbox colors for selected items.
  19262. * rendering/RenderThemeSafari.cpp: Removed platformActiveSelectionForegroundColor.
  19263. * rendering/RenderThemeSafari.h: Ditto.
  19264. 2007-02-18 Adam Roben <aroben@apple.com>
  19265. Reviewed by Hyatt.
  19266. Fix <rdar://problem/5006872> <select> popups need Aqua scroll bars
  19267. PopupMenuWin now uses a PlatformScrollbar.
  19268. * platform/win/PlatformScrollBarSafari.cpp:
  19269. (WebCore::PlatformScrollbar::hitTest): Allow hit testing even when we
  19270. don't have a parent widget.
  19271. (WebCore::PlatformScrollbar::autoscrollPressedPart): Don't autoscroll
  19272. if nothing is pressed.
  19273. * platform/win/PopupMenuWin.cpp: m_scrollOffset is now measured in menu
  19274. items, not in pixels.
  19275. (WebCore::PopupMenu::PopupMenu): Initialize new member.
  19276. (WebCore::PopupMenu::show): Make popups partially transparent, don't
  19277. use Windows' built-in scroll bars, and create a PlatformScrollbar if
  19278. needed.
  19279. (WebCore::PopupMenu::calculatePositionAndSize): Get the scroll bar's
  19280. width from PlatformScrollbar instead of from Windows.
  19281. (WebCore::PopupMenu::visibleItems): Added.
  19282. (WebCore::PopupMenu::listIndexAtPoint): Definition moved here from header.
  19283. (WebCore::PopupMenu::invalidateItem): Update for m_scrollOffset change,
  19284. and shrink the damage rect to not invalidate the scroll bar unnecessarily.
  19285. (WebCore::PopupMenu::scrollToRevealSelection): Updated to use PlatformScrollbar.
  19286. (WebCore::PopupMenu::updateFromElement): Changed bool to BOOL.
  19287. (WebCore::PopupMenu::paint): Updated for m_scrollOffset change, and
  19288. paint the scroll bar at the end.
  19289. (WebCore::PopupMenu::valueChanged): Added. Code comes from the old scrollTo method.
  19290. (WebCore::PopupMenu::windowClipRect): Added.
  19291. (WebCore::PopupWndProc):
  19292. - Set up the scroll bar in WM_SIZE
  19293. - Send mouse events to the scroll bar when appropriate
  19294. - Get rid of handling of WM_VSCROLL events (we shouldn't receive these anymore)
  19295. 2007-02-18 Oliver Hunt <oliver@apple.com>
  19296. Reviewed by Adam.
  19297. Updated to include stubs for drag and drop methods
  19298. Added DragImage[Win].cpp to project file
  19299. Now uses platform independent EventHandler::handleDrag
  19300. * WebCore.vcproj/WebCore.vcproj:
  19301. * bridge/win/FrameWin.cpp:
  19302. (WebCore::Frame::dragImageForSelection):
  19303. Just wrap the platform specific selectionImage method
  19304. * page/win/DragControllerWin.cpp:
  19305. Defining constants for drag images -- basically copied the Mac definitions
  19306. * page/win/EventHandlerWin.cpp:
  19307. (WebCore::EventHandler::createDraggingClipboard):
  19308. Basic implementation -- needs to create an IDataObject to be useful
  19309. but ClipboardWin is basically unimplemented anyway so not yet a problem
  19310. * platform/win/ClipboardWin.cpp:
  19311. (WebCore::ClipboardWin::createDragImage):
  19312. (WebCore::ClipboardWin::declareAndWriteDragImage):
  19313. (WebCore::ClipboardWin::writeURL):
  19314. (WebCore::ClipboardWin::writeRange):
  19315. (WebCore::ClipboardWin::hasData):
  19316. Stubs
  19317. * platform/win/ClipboardWin.h:
  19318. Updated interface
  19319. * platform/win/DragImageWin.cpp: Added.
  19320. (WebCore::dragImageSize):
  19321. (WebCore::deleteDragImage):
  19322. (WebCore::scaleDragImage):
  19323. (WebCore::dissolveDragImageToFraction):
  19324. (WebCore::createDragImageFromImage):
  19325. (WebCore::createDragImageIconForCachedImage):
  19326. Stubs
  19327. 2007-02-17 Adam Roben <aroben@apple.com>
  19328. * WebCore.vcproj/WebCore.vcproj: Removed bogus single-file
  19329. configuration for MimeTypeRegistryWin.cpp.
  19330. 2007-02-17 David Hyatt <hyatt@apple.com>
  19331. Part of the OpenSource fix to make sure the fill color starts off as transparent. Make sure our CG context
  19332. has its state properly in sync with the CGContext.
  19333. Reviewed by aroben
  19334. * platform/win/GraphicsContextWin.cpp:
  19335. (WebCore::GraphicsContext::GraphicsContext):
  19336. 2007-02-17 Adam Roben <aroben@apple.com>
  19337. Build fix.
  19338. * platform/win/CursorWin.cpp:
  19339. (WebCore::notAllowedCursor):
  19340. 2007-02-17 Dave Hyatt <hyatt@apple.com>
  19341. Change how resizers are invalidated to fix Radar bug #4976772.
  19342. Reviewed by olliej
  19343. * platform/win/GraphicsContextWin.cpp:
  19344. (WebCore::GraphicsContext::GraphicsContext):
  19345. * platform/win/ScrollViewWin.cpp:
  19346. (WebCore::ScrollView::suppressScrollbars):
  19347. (WebCore::ScrollView::paint):
  19348. (WebCore::ScrollView::adjustOverlappingScrollbarCount):
  19349. * platform/win/WidgetWin.cpp:
  19350. (WebCore::Widget::invalidateRect):
  19351. 2007-02-16 Dave Hyatt <hyatt@apple.com>
  19352. Fix for Radar bug #4981074, RSS Scrollbar overlaps window resizer. Teach all scrollbars how to
  19353. avoid the window resizer.
  19354. Reviewed by aroben
  19355. * platform/win/PlatformScrollBar.h:
  19356. * platform/win/PlatformScrollBarSafari.cpp:
  19357. (WebCore::PlatformScrollbar::PlatformScrollbar):
  19358. (WebCore::PlatformScrollbar::setRect):
  19359. (WebCore::PlatformScrollbar::setParent):
  19360. * platform/win/PlatformScrollBarWin.cpp:
  19361. (WebCore::PlatformScrollbar::PlatformScrollbar):
  19362. (WebCore::PlatformScrollbar::setRect):
  19363. (WebCore::PlatformScrollbar::setParent):
  19364. * platform/win/ScrollViewWin.cpp:
  19365. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  19366. (WebCore::ScrollView::updateScrollbars):
  19367. (WebCore::ScrollView::resizerOverlapsContent):
  19368. (WebCore::ScrollView::adjustOverlappingScrollbarCount):
  19369. (WebCore::ScrollView::setParent):
  19370. 2007-02-16 Adam Roben <aroben@apple.com>
  19371. Rubberstamped by Anders.
  19372. * platform/win/PlatformScrollBarSafari.cpp:
  19373. (WebCore::PlatformScrollbar::paint): Don't draw the arrows when we're disabled.
  19374. 2007-02-15 Dave Hyatt <hyatt@apple.com>
  19375. Reviewed by Adam.
  19376. Fix for 4804657 and 4952931, scroll view gets confused and ends up at a bad scroll
  19377. offset.
  19378. * platform/win/ScrollViewWin.cpp:
  19379. (WebCore::ScrollView::ScrollViewPrivate::valueChanged):
  19380. (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
  19381. (WebCore::ScrollView::updateScrollbars):
  19382. 2007-02-16 Anders Carlsson <acarlsson@apple.com>
  19383. Reviewed by Adam.
  19384. <rdar://problem/4993040>
  19385. Crash in plugin code watching yahoo news video
  19386. Zero out the plugin function struct.
  19387. * plugins/win/PluginPackageWin.cpp:
  19388. (WebCore::PluginPackageWin::load):
  19389. 2007-02-16 Anders Carlsson <acarlsson@apple.com>
  19390. Fix build.
  19391. Use adoptCF instead of adopt.
  19392. * platform/network/cf/ResourceHandleCFNet.cpp:
  19393. (WebCore::ResourceHandle::start):
  19394. * platform/network/cf/ResourceRequestCFNet.cpp:
  19395. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  19396. 2007-02-16 Adam Roben <aroben@apple.com>
  19397. Reviewed by Oliver.
  19398. Implemented square button look.
  19399. * rendering/RenderThemeSafari.cpp:
  19400. (WebCore::RenderThemeSafari::adjustRepaintRect): Only inflate the rect
  19401. if we have a pushbutton.
  19402. (WebCore::RenderThemeSafari::paintButton): Ditto.
  19403. 2007-02-15 Anders Carlsson <acarlsson@apple.com>
  19404. Reviewed by Adam.
  19405. Add the default Flash plugin location to the list of plugin paths.
  19406. * plugins/win/PluginDatabaseWin.cpp:
  19407. (WebCore::addFlashPluginPath):
  19408. (WebCore::PluginDatabaseWin::defaultPluginPaths):
  19409. 2007-02-15 Lou Amadio <lamadio@apple.com>
  19410. Reviewed by Steve.
  19411. <rdar://problem/4945799> CGText: should use correct mechanism to set font smoothing style
  19412. * platform/win/FontWin.cpp:
  19413. (WebCore::Font::drawGlyphs):
  19414. 2007-02-15 Anders Carlsson <acarlsson@apple.com>
  19415. Reviewed by Adam.
  19416. <rdar://problem/4987529>
  19417. Regression: first clicks don't work at flash-based Nokia.com
  19418. * plugins/win/PluginViewWin.cpp:
  19419. (WebCore::PluginViewWin::handleMouseEvent):
  19420. Don't set buttons for mouse move. Also, ignore unknown mouse events.
  19421. 2007-02-13 Brady Eidson <beidson@apple.com>
  19422. Reviewed by Adam
  19423. Switch permanently from CFStreamError to CFErrorRef in ResourceHandleCF
  19424. * platform/network/cf/ResourceHandleCFNet.cpp:
  19425. (WebCore::didFail):
  19426. (WebCore::ResourceHandle::start):
  19427. 2007-02-13 Adam Roben <aroben@apple.com>
  19428. Build fix.
  19429. * WebCore.vcproj/WebCore.vcproj: Remove SVGDOMImplementation.(cpp|h)
  19430. 2007-02-12 Ada Chan <adachan@apple.com>
  19431. Reviewed by Steve.
  19432. <rdar://4952715> Events not being passed from WebCore/WebKit up through IWebForm::doCommandBySelector
  19433. Frame::doTextFieldCommandFromEvent()'s signature has changed from taking in a PlatformKeyboardEvent
  19434. to KeyboardEvent. Match that in FrameWin.
  19435. * bridge/win/FrameWin.cpp:
  19436. (WebCore::FrameWin::doTextFieldCommandFromEvent):
  19437. * bridge/win/FrameWin.h:
  19438. 2007-02-10 Adam Roben <aroben@apple.com>
  19439. Rubberstamped by Oliver.
  19440. * rendering/RenderThemeSafari.cpp:
  19441. (WebCore::RenderThemeSafari::paintButton): Call controlSizeFromRect
  19442. instead of controlSizeForFont to determine the correct control size.
  19443. 2007-02-09 Alice Liu <alice.liu@apple.com>
  19444. Reviewed by Brady and Adam.
  19445. Fixed <rdar://4986194> Typing in content editable body does not automatically scroll to reveal cursor
  19446. * platform/win/ScrollViewWin.cpp:
  19447. (WebCore::ScrollView::updateScrollbars):
  19448. The scrollview's scrolloffset wasn't getting set in cases where there were no scrollbars
  19449. You can have a scrolloffset even if you don't have scrollbars
  19450. 2007-02-09 Darin Adler <darin@apple.com>
  19451. Reviewed by Adele.
  19452. - Add TextEvent to the DOM (based on the proposed DOM level 3)
  19453. to be used to fix some international input bugs soon.
  19454. At this point, we don't send any text events.
  19455. - Remove some obsolete files.
  19456. * WebCore.vcproj/WebCore.vcproj: Add new files, remove obsolete files.
  19457. 2007-02-09 Anders Carlsson <acarlsson@apple.com>
  19458. Reviewed by Adam.
  19459. * plugins/win/PluginViewWin.cpp:
  19460. (WebCore::PluginViewWin::performRequest):
  19461. Add the stream to the m_streams hash set.
  19462. 2007-02-08 Adele Peterson <adele@apple.com>
  19463. Reviewed by Brady.
  19464. Fix for http://bugs.webkit.org/show_bug.cgi?id=12599
  19465. <rdar://problem/4973507> REGRESSION: When replying in Gmail, the caret disappears when you start to type (12599)
  19466. This also fixes a bug where when you called window.focus() on a background window, it did not come to the front.
  19467. * bridge/win/FrameWin.h: Removed focusWindow() and unfocusWindow() stubs since there are now implementations in the base class.
  19468. * platform/win/TemporaryLinkStubs.cpp:
  19469. 2007-02-08 Anders Carlsson <acarlsson@apple.com>
  19470. Reviewed by Geoff.
  19471. <rdar://problem/4955068>
  19472. PluginViewWin leaks memory.
  19473. Make streams ref-counted. Remove streams from the hash set once they're done loading.
  19474. Don't try to paint if painting is disabled.
  19475. * plugins/win/PluginStreamWin.cpp:
  19476. (WebCore::PluginStreamWin::PluginStreamWin):
  19477. (WebCore::PluginStreamWin::cancelAndDestroyStream):
  19478. (WebCore::PluginStreamWin::destroyStream):
  19479. * plugins/win/PluginStreamWin.h:
  19480. * plugins/win/PluginViewWin.cpp:
  19481. (WebCore::PluginViewWin::paint):
  19482. (WebCore::PluginViewWin::stop):
  19483. (WebCore::PluginViewWin::~PluginViewWin):
  19484. (WebCore::PluginViewWin::disconnectStream):
  19485. * plugins/win/PluginViewWin.h:
  19486. 2007-02-08 Adam Roben <aroben@apple.com>
  19487. Reviewed by Adele.
  19488. Fix scrollbar painting.
  19489. * platform/win/PlatformScrollBarSafari.cpp:
  19490. (WebCore::trackRepaintRect): Added.
  19491. (WebCore::buttonRepaintRect): Added.
  19492. (WebCore::PlatformScrollbar::invalidateTrack): Inavlidate the repaint
  19493. rect, not the rect used for hit testing.
  19494. (WebCore::PlatformScrollbar::invalidatePart): Ditto.
  19495. (WebCore::PlatformScrollbar::paint): Paint the track first, then the
  19496. buttons, then the thumb.
  19497. (WebCore::PlatformScrollbar::paintButton): Paint in the repaintRect,
  19498. not the rect used for hit testing.
  19499. (WebCore::PlatformScrollbar::paintTrack): Ditto.
  19500. 2007-02-08 Anders Carlsson <acarlsson@apple.com>
  19501. Remove unused stub.
  19502. * platform/win/TemporaryLinkStubs.cpp:
  19503. 2007-02-08 Anders Carlsson <acarlsson@apple.com>
  19504. Reviewed by Brady.
  19505. <rdar://problem/4888871>
  19506. Need to support synchronous XMLHttpRequest.
  19507. * platform/network/cf/ResourceHandleCFNet.cpp:
  19508. (WebCore::ResourceHandle::loadResourceSynchronously):
  19509. 2007-02-07 Adam Roben <aroben@apple.com>
  19510. Reviewed by Maciej.
  19511. Fix mini search field painting.
  19512. * rendering/RenderThemeSafari.cpp:
  19513. (WebCore::RenderThemeSafari::searchFieldSizes): Use the right height.
  19514. 2007-02-07 Adele Peterson <adele@apple.com>
  19515. Reviewed by Adam.
  19516. Draw a single down arrow for styled menu lists.
  19517. * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintMenuListButton):
  19518. * rendering/RenderThemeWin.cpp: Moved #ifndef USE_SAFARI_THEME to enclose the body of the file.
  19519. 2007-02-07 Brady Eidson <beidson@apple.com>
  19520. RS = Adam
  19521. Touch these files to force it to recompile...
  19522. * platform/win/PlatformScrollBarSafari.cpp:
  19523. * rendering/RenderThemeWin.cpp:
  19524. 2007-02-07 Adam Roben <aroben@apple.com>
  19525. Rubberstamped by Maciej.
  19526. Turn on SafariTheme so we can try it out.
  19527. * WebCore.vcproj/WebCore.vcproj:
  19528. 2007-02-07 Adam Roben <aroben@apple.com>
  19529. Reviewed by Adele.
  19530. * rendering/RenderThemeSafari.cpp:
  19531. (WebCore::RenderThemeSafari::determineState): Pass focus information down to SafariTheme.
  19532. 2007-02-06 Adam Roben <aroben@apple.com>
  19533. Rubberstamped by Brady.
  19534. Updated for log channel rename.
  19535. * platform/win/GDIObjectCounter.cpp:
  19536. (WebCore::GDIObjectCounter::~GDIObjectCounter):
  19537. 2007-02-06 Adele Peterson <adele@apple.com>
  19538. Reviewed by Adam.
  19539. Added support for radio buttons and checkboxes.
  19540. * platform/win/PlatformScrollBarSafari.cpp:
  19541. (WebCore::PlatformScrollbar::paintButton):
  19542. (WebCore::PlatformScrollbar::paintTrack):
  19543. (WebCore::PlatformScrollbar::paintThumb):
  19544. * rendering/RenderThemeSafari.cpp:
  19545. (WebCore::RenderThemeSafari::determineState):
  19546. (WebCore::RenderThemeSafari::platformActiveSelectionForegroundColor):
  19547. (WebCore::RenderThemeSafari::adjustRepaintRect):
  19548. (WebCore::RenderThemeSafari::paintCheckbox):
  19549. (WebCore::RenderThemeSafari::checkboxMargins):
  19550. (WebCore::RenderThemeSafari::paintRadio):
  19551. (WebCore::RenderThemeSafari::radioMargins):
  19552. (WebCore::RenderThemeSafari::adjustMenuListStyle):
  19553. (WebCore::RenderThemeSafari::paintSliderThumb):
  19554. * rendering/RenderThemeSafari.h:
  19555. 2007-02-05 Adam Roben <aroben@apple.com>
  19556. Reviewed by Ada and Oliver.
  19557. Add a GDIObjectCounter class that informs us of GDI leaks.
  19558. * WebCore.vcproj/WebCore.vcproj: Added new files.
  19559. * platform/win/GDIObjectCounter.cpp: Added.
  19560. (WebCore::GDIObjectCounter::GDIObjectCounter):
  19561. (WebCore::GDIObjectCounter::init):
  19562. (WebCore::GDIObjectCounter::~GDIObjectCounter):
  19563. (WebCore::GDIObjectCounter::currentGDIObjectsInUse):
  19564. * platform/win/GDIObjectCounter.h: Added.
  19565. 2007-02-05 Adam Roben <aroben@apple.com>
  19566. Build fix.
  19567. * WebCore.vcproj/WebCore.vcproj: Add new files.
  19568. 2007-02-04 Oliver Hunt <oliver@apple.com>
  19569. Reviewed by Adam.
  19570. Removed unimplemented EventHandler::handleMouseUp,
  19571. as a platform independent version is available now.
  19572. * page/win/EventHandlerWin.cpp:
  19573. (WebCore::EventHandler::eventActivatedView):
  19574. Now we use this method, it needs to be implemented
  19575. 2007-02-02 Steve Falkenburg <sfalken@apple.com>
  19576. Fix build.
  19577. * WebCore.vcproj/WebCore.vcproj:
  19578. 2007-02-02 Steve Falkenburg <sfalken@apple.com>
  19579. * platform/network/cf/FormDataStreamCFNet.cpp:
  19580. 2007-02-02 Adam Roben <aroben@apple.com>
  19581. Turn on Lucida Grande.
  19582. * rendering/RenderThemeSafari.cpp:
  19583. (WebCore::RenderThemeSafari::systemFont):
  19584. Use Lucida Grande.
  19585. (WebCore::RenderThemeSafari::setFontFromControlSize):
  19586. Ditto.
  19587. (WebCore::RenderThemeSafari::controlSizeForSystemFont):
  19588. Implemented using font sizes from NSFont.m.
  19589. (WebCore::RenderThemeSafari::adjustRepaintRect):
  19590. Uncommented.
  19591. (WebCore::RenderThemeSafari::minimumMenuListSize):
  19592. Ditto.
  19593. 2007-02-02 Adam Roben <aroben@apple.com>
  19594. Reviewed by Maciej.
  19595. Implemented menulist drawing.
  19596. * rendering/RenderThemeSafari.cpp:
  19597. (WebCore::controlSizeFromRect):
  19598. Moved to top of file.
  19599. (WebCore::RenderThemeSafari::adjustRepaintRect):
  19600. Uncommented menulist case.
  19601. (WebCore::RenderThemeSafari::popupButtonMargins):
  19602. Added controlSize parameter, made margins match AppKit artwork.
  19603. (WebCore::RenderThemeSafari::paintMenuList):
  19604. Implemented.
  19605. * rendering/RenderThemeSafari.h:
  19606. Updated decalartion.
  19607. 2007-02-01 Anders Carlsson <acarlsson@apple.com>
  19608. Reviewed by Brady.
  19609. * platform/network/cf/ResourceHandleCFNet.cpp:
  19610. (WebCore::willSendRequest):
  19611. Make sure to always retain the request we return. (In practice, we were already doing this since
  19612. client can never be null).
  19613. (WebCore::didReceiveResponse):
  19614. Remove client null check.
  19615. 2007-02-01 Steve Falkenburg <sfalken@apple.com>
  19616. Production build fix
  19617. * WebCore.vcproj/WebCore.vcproj:
  19618. 2007-01-31 Oliver Hunt <oliver@apple.com>
  19619. Reviewed by Adam.
  19620. Updating event handler logic to make use of methods migrated from
  19621. WebKit to WebCore
  19622. * page/win/EventHandlerWin.cpp:
  19623. (WebCore::EventHandler::handleDrag):
  19624. Updating handleDrag to use methods that we've migrated to WebCore
  19625. * platform/win/PlatformMouseEventWin.cpp:
  19626. (WebCore::messageToEventType):
  19627. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  19628. provide the type of mouse event
  19629. 2007-01-31 Steve Falkenburg <sfalken@apple.com>
  19630. Reviewed by Ada.
  19631. Fix BString bugs.
  19632. * platform/win/BString.cpp:
  19633. (WebCore::BString::BString): Call SysAllocString instead of SysAllocStringLen
  19634. (WebCore::BString::operator=): Add proper null checks
  19635. (WebCore::operator ==): Add proper null checks
  19636. 2007-01-30 Anders Carlsson <acarlsson@apple.com>
  19637. Build fix.
  19638. * platform/win/TemporaryLinkStubs.cpp:
  19639. (ResourceHandle::setDefersLoading):
  19640. 2007-01-30 Steve Falkenburg <sfalken@apple.com>
  19641. Production build fix
  19642. * WebCore.vcproj/WebCore.vcproj:
  19643. 2007-01-29 Adam Roben <aroben@apple.com>
  19644. Build fix.
  19645. * platform/win/TemporaryLinkStubs.cpp: Removed old stub.
  19646. 2007-01-29 Brady Eidson <beidson@apple.com>
  19647. Reviewed by Oliver
  19648. All the downloads plumbing for if you have ToT CFNetwork + my changes
  19649. (or after they submit with my changes)
  19650. * platform/network/cf/FormDataStreamCFNet.cpp: Reword the #ifdef for CFNetwork ToT for clarity
  19651. * platform/network/cf/ResourceHandleCFNet.cpp:
  19652. (WebCore::didFail): Use a RetainPtr .get()
  19653. (WebCore::ResourceHandleInternal::~ResourceHandleInternal): Only cancel the connection if we hold the last ref
  19654. (WebCore::ResourceHandle::start): Use a RetainPtr - adopt and .get()
  19655. (WebCore::ResourceHandle::cancel): Use a RetainPtr .get()
  19656. (WebCore::ResourceHandle::receivedCredential):Use a RetainPtr .get()
  19657. (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential): Use a RetainPtr .get()
  19658. (WebCore::ResourceHandle::connection): Use a RetainPtr .get()
  19659. * platform/network/cf/ResourceRequestCFNet.cpp:
  19660. (WebCore::ResourceRequest::doUpdatePlatformRequest): Prevent a crash if a null
  19661. 2007-01-29 Brady Eidson <beidson@apple.com>
  19662. Reviewed by Geoff
  19663. Change LOG_NOTIMPL() to use a LOG() and its logging channel instead of LOG_ERROR()
  19664. so you can actually turn it off.
  19665. * platform/win/NotImplemented.h:
  19666. 2007-01-29 Maciej Stachowiak <mjs@apple.com>
  19667. - fix build
  19668. * platform/win/TemporaryLinkStubs.cpp:
  19669. 2007-01-29 Steve Falkenburg <sfalken@apple.com>
  19670. Fix build break from RootObject ownership change.
  19671. * bridge/win/FrameWin.cpp:
  19672. (WebCore::FrameWin::createRootObject): Added
  19673. (WebCore::FrameWin::cleanupPluginObjects): change destroy to invalidate
  19674. (WebCore::FrameWin::bindingRootObject): change new RootObject to RootObject::create
  19675. * bridge/win/FrameWin.h:
  19676. * plugins/win/PluginViewWin.cpp:
  19677. (WebCore::PluginViewWin::bindingInstance): change new RootObject to FrameWin::createRootObject.
  19678. 2007-01-26 Adam Roben <aroben@apple.com>
  19679. Reviewed by Oliver.
  19680. Fix frequent failed assertions when painting scroll bars.
  19681. * platform/win/PlatformScrollBarSafari.cpp:
  19682. (WebCore::PlatformScrollbar::paint): Check that painting is enabled
  19683. before painting.
  19684. 2007-01-26 Oliver Hunt <oliver@apple.com>
  19685. Build fix.
  19686. * WebCore.vcproj/WebCore.vcproj:
  19687. 2007-01-26 Beth Dakin <bdakin@apple.com>
  19688. Reviewed by Darin.
  19689. Due to <rdar://problem/4956565> REGRESSION: After scrolling frame,
  19690. hovering over link in this frame doesn't change cursor to pointing
  19691. hand
  19692. lastEventIsMouseUp() is a Mac-only issue. This patch makes it Mac-
  19693. only code, so we can remove the temporary link stub for it.
  19694. * platform/win/TemporaryLinkStubs.cpp:
  19695. 2007-01-26 Oliver Hunt <oliver@apple.com>
  19696. Build fix -- adding SVGInlineTextBox.{cpp,h} to project
  19697. * WebCore.vcproj/WebCore.vcproj:
  19698. 2007-01-25 Oliver Hunt <oliver@apple.com>
  19699. Reviewed by Maciej.
  19700. Fixed DragDataWin behaviour so that it will provide plain text
  19701. for a file dropped on the window.
  19702. * platform/win/DragDataWin.cpp:
  19703. (WebCore::DragData::asPlainText):
  19704. 2007-01-25 Brady Eidson <beidson@apple.com>
  19705. Reviewed by Adam
  19706. -Setup for new CFNetwork API for those using their ToT and their next submission
  19707. -Setup for new CoreFoundation API for those using their ToT and their next submission
  19708. * platform/network/cf/FormDataStreamCFNet.cpp:
  19709. (WebCore::setHTTPBody): New callback format - will need to define USE_NEW_CFSTREAM_CALLBACKS
  19710. to switch to the new API
  19711. * platform/network/cf/ResourceHandleCFNet.cpp:
  19712. (WebCore::didFail): This automagically works :)
  19713. 2007-01-25 Adele Peterson <adele@apple.com>
  19714. Reviewed by Adam.
  19715. Added support for slider.
  19716. * rendering/RenderThemeSafari.cpp:
  19717. (WebCore::RenderThemeSafari::RenderThemeSafari):
  19718. (WebCore::RenderThemeSafari::inflateRect):
  19719. (WebCore::RenderThemeSafari::paintSliderTrack):
  19720. (WebCore::RenderThemeSafari::paintSliderThumb):
  19721. * rendering/RenderThemeSafari.h:
  19722. 2007-01-25 Steve Falkenburg <sfalken@apple.com>
  19723. Production build fix
  19724. * WebCore.vcproj/WebCore.vcproj:
  19725. 2007-01-24 Adele Peterson <adele@apple.com>
  19726. Reviewed by Brady and Oliver.
  19727. Moved keyEvent method from FrameWin to EventHandler and updated
  19728. call sites. Now this method is shared with the mac.
  19729. * bridge/win/FrameWin.cpp:
  19730. * bridge/win/FrameWin.h:
  19731. 2007-01-24 Steve Falkenburg <sfalken@apple.com>
  19732. Reviewed by Lou.
  19733. * bridge/win/FrameWin.cpp:
  19734. (WebCore::regExpForLabels): Ported from FrameMac.mm
  19735. (WebCore::FrameWin::searchForLabelsAboveCell): Ported from FrameMac.mm
  19736. (WebCore::FrameWin::searchForLabelsBeforeElement): Ported from FrameMac.mm
  19737. (WebCore::FrameWin::matchLabelsAgainstElement): Ported from FrameMac.mm
  19738. * bridge/win/FrameWin.h:
  19739. 2007-01-24 Adam Roben <aroben@apple.com>
  19740. Reviewed by Adele.
  19741. Added PlatformScrollBarSafari for Aqua scroll bars.
  19742. * WebCore.vcproj/WebCore.vcproj: Added new file to project.
  19743. * platform/win/PlatformScrollBarSafari.cpp: Added. Copied from PlatformScrollBarWin.cpp.
  19744. (WebCore::PlatformScrollbar::PlatformScrollbar):
  19745. (WebCore::PlatformScrollbar::paint):
  19746. (WebCore::PlatformScrollbar::backButtonRect):
  19747. (WebCore::PlatformScrollbar::forwardButtonRect):
  19748. (WebCore::PlatformScrollbar::trackRect):
  19749. (WebCore::PlatformScrollbar::thumbLength):
  19750. (WebCore::PlatformScrollbar::paintButton):
  19751. (WebCore::PlatformScrollbar::paintTrack):
  19752. (WebCore::PlatformScrollbar::paintThumb):
  19753. (WebCore::PlatformScrollbar::paintGripper):
  19754. (WebCore::PlatformScrollbar::gripperRect):
  19755. (WebCore::PlatformScrollbar::themeChanged):
  19756. * platform/win/PlatformScrollBarWin.cpp: Added #ifndef USE_SAFARI_THEME.
  19757. * rendering/RenderThemeSafari.cpp: Updated for SafariTheme.h changes.
  19758. (WebCore::RenderThemeSafari::RenderThemeSafari):
  19759. 2007-01-23 Brady Eidson <beidson@apple.com>
  19760. Reviewed by Steve
  19761. Initial hookup of Download support
  19762. * platform/network/cf/ResourceErrorCF.cpp:
  19763. (WebCore::ResourceError::ResourceError):
  19764. (WebCore::ResourceError::operator CFStreamError):
  19765. * platform/network/cf/ResourceHandleCFNet.cpp:
  19766. (WebCore::ResourceHandle::loaderRunLoop): Accessor so downloads can run on the same
  19767. runloop as connections
  19768. (WebCore::ResourceHandle::start):
  19769. (WebCore::ResourceHandle::connection):
  19770. * platform/win/BString.cpp:
  19771. (WebCore::BString::BString): Ability to create BString from a CFStringRef
  19772. * platform/win/BString.h:
  19773. 2007-01-23 Anders Carlsson <acarlsson@apple.com>
  19774. Reviewed by Darin.
  19775. <rdar://problem/4919754>
  19776. Boomer freezes after attempt to play video.
  19777. * plugins/win/PluginStreamWin.cpp:
  19778. Change WebReasonNone to -2, some plugins return -1 to indicate error.
  19779. (WebCore::PluginStreamWin::stop):
  19780. Just don't clear the loader, stop loading as well.
  19781. (WebCore::PluginStreamWin::startStream):
  19782. Destroy the stream if newstream returns an error.
  19783. * plugins/win/PluginViewWin.cpp:
  19784. (WebCore::PluginViewWin::performRequest):
  19785. If the call to toString throws an exception, clear it.
  19786. 2007-01-23 Steve Falkenburg <sfalken@apple.com>
  19787. Fix release build.
  19788. * WebCore.vcproj/WebCore.vcproj:
  19789. 2007-01-23 Adele Peterson <adele@apple.com>
  19790. Reviewed by Adam.
  19791. Added call to paintThemeTextArea.
  19792. * rendering/RenderThemeSafari.cpp:
  19793. (WebCore::RenderThemeSafari::paintTextArea):
  19794. 2007-01-23 Anders Carlsson <acarlsson@apple.com>
  19795. Build fixes.
  19796. * WebCore.vcproj/WebCore.vcproj:
  19797. Copy plugin and JS headers.
  19798. * loader/win/FrameLoaderWin.cpp:
  19799. Move functions to WebKitWin.
  19800. 2007-01-23 Oliver Hunt <oliver@apple.com>
  19801. Reviewed by Adam.
  19802. * WebCore.vcproj/WebCore.vcproj:
  19803. * page/win/DragControllerWin.cpp: Added.
  19804. (WebCore::DragController::dragOperation):
  19805. (WebCore::DragController::isCopyKeyDown):
  19806. Platform specific implementation
  19807. * platform/win/ClipboardWin.cpp:
  19808. (WebCore::ClipboardWin::ClipboardWin):
  19809. (WebCore::ClipboardWin::isForDragging):
  19810. * platform/win/ClipboardWin.h:
  19811. Migrated common Clipboard functionality from ClipboardMac/Win -> Clipboard
  19812. * platform/win/DragDataWin.cpp: Added.
  19813. (WebCore::DragData::createClipboard):
  19814. (WebCore::urlWFormat):
  19815. (WebCore::urlFormat):
  19816. (WebCore::filenameWFormat):
  19817. (WebCore::filenameFormat):
  19818. (WebCore::plainTextFormat):
  19819. (WebCore::plainTextWFormat):
  19820. (WebCore::DragData::containsURL):
  19821. (WebCore::extractURL):
  19822. (WebCore::DragData::asURL):
  19823. (WebCore::DragData::containsPlainText):
  19824. (WebCore::DragData::asPlainText):
  19825. (WebCore::texthtmlFormat):
  19826. (WebCore::htmlFormat):
  19827. (WebCore::containsHTML):
  19828. (WebCore::fragmentFromHTML):
  19829. (WebCore::containsFilenames):
  19830. (WebCore::fragmentFromFilenames):
  19831. (WebCore::DragData::containsColor):
  19832. (WebCore::DragData::canSmartReplace):
  19833. (WebCore::DragData::containsCompatibleContent):
  19834. (WebCore::DragData::asFragment):
  19835. (WebCore::DragData::asColor):
  19836. Implementation of DragData accesor methods, and helper functions
  19837. * platform/win/EditorWin.cpp:
  19838. (WebCore::Editor::newGeneralClipboard):
  19839. Updated for new ClipboardWin constructor
  19840. * platform/win/PasteboardWin.cpp:
  19841. (WebCore::fragmentFromCF_HTML):
  19842. (WebCore::Pasteboard::documentFragment):
  19843. Pulled out CF_HTML parsing to a seperate function so logic
  19844. can be shared with DragDataWin
  19845. 2007-01-22 Adam Roben <aroben@apple.com>
  19846. Reviewed by Adele.
  19847. Implemented search field painting, and did some cleanup.
  19848. * rendering/RenderThemeSafari.cpp:
  19849. (WebCore::RenderThemeSafari::RenderThemeSafari): Updated for changes to SafariTheme.
  19850. (WebCore::RenderThemeSafari::paintButton): Ditto.
  19851. (WebCore::RenderThemeSafari::paintTextField): Ditto.
  19852. (WebCore::controlSizeFromRect): New helper function.
  19853. (WebCore::RenderThemeSafari::paintSearchField): Implemented.
  19854. (WebCore::RenderThemeSafari::paintSearchFieldCancelButton): Ditto.
  19855. (WebCore::RenderThemeSafari::paintSearchFieldResultsDecoration): Ditto.
  19856. (WebCore::RenderThemeSafari::paintSearchFieldResultsButton): Ditto.
  19857. (WebCore::RenderThemeSafari::setSearchFieldSize): Uncommented setSizeFromFont call.
  19858. (WebCore::RenderThemeSafari::adjustSearchFieldCancelButtonStyle): Ditto.
  19859. (WebCore::RenderThemeSafari::adjustSearchFieldDecorationStyle): Ditto.
  19860. (WebCore::RenderThemeSafari::adjustSearchFieldResultsDecorationStyle): Ditto.
  19861. (WebCore::RenderThemeSafari::adjustSearchFieldResultsButtonStyle): Ditto.
  19862. 2007-01-22 Anders Carlsson <acarlsson@apple.com>
  19863. Reviewed by Adam.
  19864. <rdar://problem/4771115>
  19865. Windows Media Player plugin crashes.
  19866. * WebCore.vcproj/WebCore.vcproj:
  19867. Formatting changes.
  19868. * plugins/win/PluginDatabaseWin.cpp:
  19869. (WebCore::PluginDatabaseWin::defaultPluginPaths):
  19870. Add Windows Media Player path.
  19871. * plugins/win/PluginStreamWin.cpp:
  19872. (WebCore::PluginStreamWin::sendJavaScriptStream):
  19873. * plugins/win/PluginStreamWin.h:
  19874. New function which sends a JavaScript result stream and handles any errors that the
  19875. plug-in returns.
  19876. * plugins/win/PluginViewWin.cpp:
  19877. (WebCore::PluginViewWin::setFrameGeometry):
  19878. Always call NPP_SetWindow, some plugins (like WMP) relies on it.
  19879. (WebCore::PluginViewWin::performRequest):
  19880. If a plug-in requests a javascript: URL that doesn't evaluate to a string, call toString on it.
  19881. The Windows Media Player plugin calls javascript:document.location and expects to get the location back.
  19882. 2007-01-23 Darin Adler <darin@apple.com>
  19883. - internal part of fix for http://bugs.webkit.org/show_bug.cgi?id=12273
  19884. REGRESSION: File input value invisible after removing and re-appending
  19885. * WebCore.vcproj/WebCore.vcproj: Added FileChooser.cpp.
  19886. * platform/win/FileChooserWin.cpp: Removed many now-unneeded functions.
  19887. (WebCore::FileChooser::FileChooser): Updated for changed parameters and members.
  19888. (WebCore::FileChooser::openFileChooser): Changed to take document parmaeter and
  19889. find the FrameView from that instead of the upload control.
  19890. (WebCore::FileChooser::basenameForWidth): Added ignored Font parameter.
  19891. 2007-01-22 Anders Carlsson <acarlsson@apple.com>
  19892. Reviewed by Adam.
  19893. <rdar://problem/4903230>
  19894. Boomer crashes at Flickr website when "View as slideshow" is clicked.
  19895. * plugins/win/PluginViewWin.cpp:
  19896. (WebCore::PluginViewWin::bindingInstance):
  19897. Return null if m_plugin is null (which it can be if the plugin failed to load).
  19898. 2007-01-22 Anders Carlsson <acarlsson@apple.com>
  19899. Build fix.
  19900. * WebCore.vcproj/WebCore.vcproj:
  19901. 2007-01-22 Adam Roben <aroben@apple.com>
  19902. Moved ifdefs to match Darin's suggestion.
  19903. * rendering/RenderThemeSafari.cpp:
  19904. * rendering/RenderThemeSafari.h:
  19905. 2007-01-22 Adam Roben <aroben@apple.com>
  19906. Build fix.
  19907. * rendering/RenderThemeSafari.cpp:
  19908. (WebCore::theme):
  19909. * rendering/RenderThemeSafari.h:
  19910. 2007-01-21 Adam Roben <aroben@apple.com>
  19911. Reviewed by Maciej.
  19912. Implemented drawing button states and control sizes.
  19913. * WebCore.vcproj/WebCore.vcproj:
  19914. * rendering/RenderThemeSafari.cpp:
  19915. (WebCore::RenderThemeSafari::determineState): Added.
  19916. (WebCore::RenderThemeSafari::systemFont): Implemented rest of font sizes.
  19917. (WebCore::RenderThemeSafari::paintButton): Updated for SafariTheme changes.
  19918. (WebCore::RenderThemeSafari::paintTextField): Ditto.
  19919. * rendering/RenderThemeSafari.h: Added declaration.
  19920. 2007-01-21 Adam Roben <aroben@apple.com>
  19921. Reviewed by Maciej.
  19922. * rendering/RenderThemeSafari.cpp: Updated declarations of SafariTheme calls.
  19923. (WebCore::systemFontSizeForControlSize): Added.
  19924. (WebCore::RenderThemeSafari::systemFont): Made it work in the small-control case.
  19925. (WebCore::RenderThemeSafari::adjustRepaintRect): Made it work for buttons and checkboxes.
  19926. (WebCore::RenderThemeSafari::setFontFromControlSize): Fixed to work on Windows.
  19927. (WebCore::RenderThemeSafari::checkboxMargins): Added controlSize parameter.
  19928. (WebCore::RenderThemeSafari::buttonMargins): Ditto.
  19929. (WebCore::RenderThemeSafari::paintButton): Fixed FIXME, added save/restore calls.
  19930. (WebCore::RenderThemeSafari::paintTextField): Added save/restore calls.
  19931. * rendering/RenderThemeSafari.h: Updated declarations.
  19932. 2007-01-21 Adele Peterson <adele@apple.com>
  19933. Reviewed by Adam.
  19934. Adding RenderThemeSafari.
  19935. * WebCore.vcproj/WebCore.vcproj:
  19936. * rendering/RenderThemeSafari.cpp: Added.
  19937. (WebCore::):
  19938. (WebCore::theme):
  19939. (WebCore::RenderThemeSafari::RenderThemeSafari):
  19940. (WebCore::RenderThemeSafari::~RenderThemeSafari):
  19941. (WebCore::RenderThemeSafari::platformActiveSelectionBackgroundColor):
  19942. (WebCore::RenderThemeSafari::platformInactiveSelectionBackgroundColor):
  19943. (WebCore::RenderThemeSafari::activeListBoxSelectionBackgroundColor):
  19944. (WebCore::RenderThemeSafari::systemFont):
  19945. (WebCore::RenderThemeSafari::isControlStyled):
  19946. (WebCore::RenderThemeSafari::adjustRepaintRect):
  19947. (WebCore::RenderThemeSafari::inflateRect):
  19948. (WebCore::RenderThemeSafari::baselinePosition):
  19949. (WebCore::RenderThemeSafari::controlSupportsTints):
  19950. (WebCore::RenderThemeSafari::controlSizeForFont):
  19951. (WebCore::RenderThemeSafari::sizeForFont):
  19952. (WebCore::RenderThemeSafari::sizeForSystemFont):
  19953. (WebCore::RenderThemeSafari::setSizeFromFont):
  19954. (WebCore::RenderThemeSafari::setFontFromControlSize):
  19955. (WebCore::RenderThemeSafari::controlSizeForSystemFont):
  19956. (WebCore::RenderThemeSafari::paintCheckbox):
  19957. (WebCore::RenderThemeSafari::checkboxSizes):
  19958. (WebCore::RenderThemeSafari::checkboxMargins):
  19959. (WebCore::RenderThemeSafari::setCheckboxSize):
  19960. (WebCore::RenderThemeSafari::paintRadio):
  19961. (WebCore::RenderThemeSafari::radioSizes):
  19962. (WebCore::RenderThemeSafari::radioMargins):
  19963. (WebCore::RenderThemeSafari::setRadioSize):
  19964. (WebCore::RenderThemeSafari::setButtonPaddingFromControlSize):
  19965. (WebCore::RenderThemeSafari::adjustButtonStyle):
  19966. (WebCore::RenderThemeSafari::buttonSizes):
  19967. (WebCore::RenderThemeSafari::buttonMargins):
  19968. (WebCore::RenderThemeSafari::setButtonSize):
  19969. (WebCore::RenderThemeSafari::paintButton):
  19970. (WebCore::RenderThemeSafari::paintTextField):
  19971. (WebCore::RenderThemeSafari::adjustTextFieldStyle):
  19972. (WebCore::RenderThemeSafari::paintTextArea):
  19973. (WebCore::RenderThemeSafari::adjustTextAreaStyle):
  19974. (WebCore::RenderThemeSafari::popupButtonMargins):
  19975. (WebCore::RenderThemeSafari::popupButtonSizes):
  19976. (WebCore::RenderThemeSafari::popupButtonPadding):
  19977. (WebCore::RenderThemeSafari::setPopupPaddingFromControlSize):
  19978. (WebCore::RenderThemeSafari::paintMenuList):
  19979. (WebCore::TopGradientInterpolate):
  19980. (WebCore::BottomGradientInterpolate):
  19981. (WebCore::MainGradientInterpolate):
  19982. (WebCore::TrackGradientInterpolate):
  19983. (WebCore::RenderThemeSafari::paintMenuListButtonGradients):
  19984. (WebCore::RenderThemeSafari::paintMenuListButton):
  19985. (WebCore::RenderThemeSafari::adjustMenuListStyle):
  19986. (WebCore::RenderThemeSafari::adjustMenuListButtonStyle):
  19987. (WebCore::RenderThemeSafari::menuListSizes):
  19988. (WebCore::RenderThemeSafari::minimumMenuListSize):
  19989. (WebCore::RenderThemeSafari::paintSliderTrack):
  19990. (WebCore::RenderThemeSafari::paintSliderThumb):
  19991. (WebCore::RenderThemeSafari::adjustSliderThumbSize):
  19992. (WebCore::RenderThemeSafari::paintSearchField):
  19993. (WebCore::RenderThemeSafari::searchFieldSizes):
  19994. (WebCore::RenderThemeSafari::setSearchFieldSize):
  19995. (WebCore::RenderThemeSafari::adjustSearchFieldStyle):
  19996. (WebCore::RenderThemeSafari::paintSearchFieldCancelButton):
  19997. (WebCore::RenderThemeSafari::cancelButtonSizes):
  19998. (WebCore::RenderThemeSafari::adjustSearchFieldCancelButtonStyle):
  19999. (WebCore::RenderThemeSafari::resultsButtonSizes):
  20000. (WebCore::RenderThemeSafari::adjustSearchFieldDecorationStyle):
  20001. (WebCore::RenderThemeSafari::paintSearchFieldDecoration):
  20002. (WebCore::RenderThemeSafari::adjustSearchFieldResultsDecorationStyle):
  20003. (WebCore::RenderThemeSafari::paintSearchFieldResultsDecoration):
  20004. (WebCore::RenderThemeSafari::adjustSearchFieldResultsButtonStyle):
  20005. (WebCore::RenderThemeSafari::paintSearchFieldResultsButton):
  20006. * rendering/RenderThemeSafari.h: Added.
  20007. (WebCore::RenderThemeSafari::supportsControlTints):
  20008. * rendering/RenderThemeWin.cpp:
  20009. 2007-01-21 Adam Roben <aroben@apple.com>
  20010. Build fix.
  20011. * WebCore.vcproj/WebCore.vcproj: Added JSDocumentCustom.cpp.
  20012. 2007-01-19 Ada Chan <adachan@apple.com>
  20013. Build fix.
  20014. * WebCore.vcproj/WebCore.vcproj:
  20015. 2007-01-19 Anders Carlsson <acarlsson@apple.com>
  20016. Build fix.
  20017. * WebCore.vcproj/WebCore.vcproj:
  20018. Add SVG files.
  20019. 2007-01-19 Anders Carlsson <acarlsson@apple.com>
  20020. Build fix.
  20021. * platform/win/ContextMenuItemWin.cpp:
  20022. (WebCore::ContextMenuItem::enabled):
  20023. Use correct class name.
  20024. 2007-01-18 Anders Carlsson <acarlsson@apple.com>
  20025. Reviewed by Adam.
  20026. Remove some unused FrameWin functions.
  20027. * bridge/win/FrameWin.cpp:
  20028. (WebCore::FrameWin::~FrameWin):
  20029. * bridge/win/FrameWin.h:
  20030. * plugins/win/PluginViewWin.cpp:
  20031. (WebCore::PluginViewWin::status):
  20032. 2007-01-18 Adam Roben <aroben@apple.com>
  20033. Build fix.
  20034. * platform/win/ContextMenuItemWin.cpp:
  20035. (WebCore::ContextMenu::enabled): Implemented.
  20036. 2007-01-18 Anders Carlsson <acarlsson@apple.com>
  20037. Build fix.
  20038. * WebCore.vcproj/WebCore.vcproj:
  20039. * platform/win/GlyphMapWin.cpp: Removed.
  20040. * platform/win/GlyphPageTreeNodeWin.cpp: Added.
  20041. (WebCore::GlyphPage::fill):
  20042. 2007-01-18 Anders Carlsson <acarlsson@apple.com>
  20043. Reviewed by Brady.
  20044. Fix ownership handling of CFRequestRef. A ResourceRequest holds on to its CFRequestRef
  20045. and doesn't ref it when returning it. Also, implement willCacheResponse.
  20046. * platform/network/cf/ResourceHandleCFNet.cpp:
  20047. (WebCore::willSendRequest):
  20048. (WebCore::willCacheResponse):
  20049. (WebCore::ResourceHandle::start):
  20050. * platform/network/cf/ResourceRequestCFNet.cpp:
  20051. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  20052. 2007-01-17 Brady Eidson <beidson@apple.com>
  20053. Reviewed by Maciej
  20054. Final hookup of HTTP Auth plumbing - have the ResourceHandle actually call into
  20055. CFNetwork for HTTP Auth.
  20056. Also, deal with svn:eol-style issues on another batch of files that didn't have it set
  20057. * platform/network/cf/ResourceHandleCFNet.cpp:
  20058. (WebCore::ResourceHandle::receivedCredential): Call into CFNetwork
  20059. (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential): Ditto
  20060. (WebCore::ResourceHandle::receivedCancellation): Copy Mac behavior by calling cancel on the handle
  20061. 2007-01-16 Brady Eidson <beidson@apple.com>
  20062. Reviewed by Anders
  20063. Futher improvements/bug fixes to BString
  20064. * platform/win/BString.cpp:
  20065. (WebCore::BString::BString):
  20066. (WebCore::BString::operator=):
  20067. * platform/win/BString.h:
  20068. 2007-01-16 Brady Eidson <beidson@apple.com>
  20069. Reviewed by Ada, Adam, and Anders oh my!
  20070. Add handle ==/!= operators to BString
  20071. * platform/win/BString.cpp:
  20072. (WebCore::operator ==):
  20073. (WebCore::operator !=):
  20074. * platform/win/BString.h:
  20075. 2007-01-16 Beth Dakin <bdakin@apple.com>
  20076. Reviewed by Adam.
  20077. Fix for <rdar://problem/4874565> Draw context menus using CG
  20078. * platform/win/ContextMenuItemWin.cpp:
  20079. (WebCore::ContextMenuItem::type): Re-worked to be more forgiving.
  20080. * platform/win/ContextMenuWin.cpp: No need for show() and hide()
  20081. since WebKit takes care of this now.
  20082. 2007-01-15 Brady Eidson <beidson@apple.com>
  20083. Reviewed by Adam
  20084. Hook up AuthenticationChallenge to CF network.
  20085. Call up through appropriate client methods through to WebFrame (FrameLoaderClient) at
  20086. which point my upcoming implementation for the IWebURL<auth> classes will be used
  20087. * WebCore.vcproj/WebCore.vcproj:
  20088. * platform/network/cf/AuthenticationCF.cpp: Added.
  20089. (WebCore::AuthenticationChallenge::AuthenticationChallenge):
  20090. (WebCore::createCF):
  20091. (WebCore::core):
  20092. * platform/network/cf/AuthenticationCF.h: Added.
  20093. * platform/network/cf/ResourceErrorCF.cpp: Added.
  20094. (WebCore::ResourceError::ResourceError):
  20095. (WebCore::ResourceError::operator CFStreamError):
  20096. * platform/network/cf/ResourceHandleCFNet.cpp:
  20097. (WebCore::didReceiveChallenge):
  20098. (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
  20099. (WebCore::ResourceHandle::receivedCredential):
  20100. (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
  20101. (WebCore::ResourceHandle::receivedCancellation):
  20102. 2007-01-15 Anders Carlsson <acarlsson@apple.com>
  20103. Build fix.
  20104. * WebCore.vcproj/WebCore.vcproj:
  20105. Add ProgressTracker.[cpp|h]
  20106. 2007-01-12 Anders Carlsson <acarlsson@apple.com>
  20107. Reviewed by Darin.
  20108. * loader/win/FrameLoaderWin.cpp:
  20109. (WebCore::FrameLoader::didChangeTitle):
  20110. Copied here from FrameLoaderMac.mm
  20111. * platform/network/cf/ResourceHandleCFNet.cpp:
  20112. (WebCore::ResourceHandle::start):
  20113. Removed setting referrer and user-agend and added a check for null page.
  20114. (WebCore::ResourceHandle::cancel):
  20115. Don't call didFail.
  20116. * platform/win/TemporaryLinkStubs.cpp:
  20117. (FrameWin::getAppletInstanceForWidget):
  20118. Use LOG_NOIMPL here.
  20119. 2007-01-11 Anders Carlsson <acarlsson@apple.com>
  20120. * platform/network/cf/ResourceResponseCFNet.cpp:
  20121. (WebCore::ResourceResponse::cfURLResponse):
  20122. Add getter that I forgot to commit.
  20123. 2007-01-11 Brady Eidson <beidson@apple.com>
  20124. Reviewed by NOBODY.
  20125. Make it build after my HTTP Auth OpenSource checkin
  20126. * WebCore.vcproj/WebCore.vcproj:
  20127. 2007-01-11 Anders Carlsson <acarlsson@apple.com>
  20128. Build fix.
  20129. * WebCore.vcproj/WebCore.vcproj:
  20130. * platform/win/TemporaryLinkStubs.cpp:
  20131. (WebCore::Editor::advanceToNextMisspelling):
  20132. 2007-01-10 Steve Falkenburg <sfalken@apple.com>
  20133. Reviewed by Lou.
  20134. <rdar://problem/4818840> Crash occurs after selecting Print Preview from under the File menu if no printer is selected
  20135. * bridge/win/FrameWin.cpp:
  20136. (WebCore::FrameWin::computePageRects): removed calls to setupRootForPrinting
  20137. * bridge/win/FrameWin.h: removed setupRootForPrinting
  20138. 2007-01-10 Anders Carlsson <acarlsson@apple.com>
  20139. Yet another build fix.
  20140. * platform/win/TemporaryLinkStubs.cpp:
  20141. (DocumentLoader::getResponseModifiedHeader):
  20142. 2007-01-10 Anders Carlsson <acarlsson@apple.com>
  20143. Another build fix.
  20144. * bridge/win/FrameWin.h:
  20145. * loader/win/FrameLoaderWin.cpp:
  20146. 2007-01-10 Anders Carlsson <acarlsson@apple.com>
  20147. Build fix.
  20148. * platform/win/TemporaryLinkStubs.cpp:
  20149. (ResourceHandle::setDefersLoading):
  20150. 2007-01-09 Steve Falkenburg <sfalken@apple.com>
  20151. Production build fix
  20152. * WebCore.vcproj/WebCore.vcproj:
  20153. 2007-01-09 Anders Carlsson <acarlsson@apple.com>
  20154. Build fix.
  20155. * platform/win/TextBoundariesWin.cpp:
  20156. 2007-01-08 Anders Carlsson <acarlsson@apple.com>
  20157. Remove FrameLoader functions that have been implemented.
  20158. * platform/win/TemporaryLinkStubs.cpp:
  20159. 2007-01-08 Anders Carlsson <acarlsson@apple.com>
  20160. Build fix.
  20161. * WebCore.vcproj/WebCore.vcproj:
  20162. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  20163. Reviewed by Adam.
  20164. Update temporary link stubs.
  20165. * platform/win/TemporaryLinkStubs.cpp:
  20166. (FrameLoader::referrer):
  20167. (FrameLoader::overrideMediaType):
  20168. (FrameLoader::checkLoadCompleteForThisFrame):
  20169. (DocumentLoader::getResponseRefreshAndModifiedHeaders):
  20170. (MainResourceLoader::create):
  20171. (ResourceLoader::cancel):
  20172. (ResourceLoader::load):
  20173. (ResourceLoader::releaseResources):
  20174. (ResourceLoader::addData):
  20175. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  20176. Fix build.
  20177. * platform/win/TemporaryLinkStubs.cpp:
  20178. (ResourceLoader::cancel):
  20179. (FrameLoader::didChangeTitle):
  20180. (DocumentLoader::unreachableURL):
  20181. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  20182. Fix the build.
  20183. * WebCore.vcproj/WebCore.vcproj:
  20184. * platform/network/cf/ResourceHandleCFNet.cpp:
  20185. (WebCore::ResourceHandle::bufferedData):
  20186. (WebCore::ResourceHandle::supportsBufferedData):
  20187. * platform/win/TemporaryLinkStubs.cpp:
  20188. (WebCore::CheckCacheObjectStatus):
  20189. 2007-01-04 David Hyatt <hyatt@apple.com>
  20190. Always use 1.0 as the synthetic bold offset for now. Fixes bug 9534.
  20191. Reviewed by olliej
  20192. * platform/win/FontDataWin.cpp:
  20193. (WebCore::FontData::platformInit):
  20194. 2007-01-03 Darin Adler <darin@apple.com>
  20195. Reviewed by Adele.
  20196. - removed some obsolete source files
  20197. * WebCore.vcproj/WebCore.vcproj: Removed obsolete files.
  20198. 2007-01-03 Beth Dakin <bdakin@apple.com>
  20199. Reviewed by John.
  20200. Add stubs for all of the localized context menu item titles. The
  20201. stubs just return English Strings until we have a localization
  20202. solution in WebKit.
  20203. * platform/win/TemporaryLinkStubs.cpp:
  20204. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  20205. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  20206. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  20207. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  20208. (WebCore::contextMenuItemTagDownloadImageToDisk):
  20209. (WebCore::contextMenuItemTagCopyImageToClipboard):
  20210. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  20211. (WebCore::contextMenuItemTagCopy):
  20212. (WebCore::contextMenuItemTagGoBack):
  20213. (WebCore::contextMenuItemTagGoForward):
  20214. (WebCore::contextMenuItemTagStop):
  20215. (WebCore::contextMenuItemTagReload):
  20216. (WebCore::contextMenuItemTagCut):
  20217. (WebCore::contextMenuItemTagPaste):
  20218. (WebCore::contextMenuItemTagNoGuessesFound):
  20219. (WebCore::contextMenuItemTagIgnoreSpelling):
  20220. (WebCore::contextMenuItemTagLearnSpelling):
  20221. (WebCore::contextMenuItemTagSearchWeb):
  20222. (WebCore::contextMenuItemTagLookUpInDictionary):
  20223. (WebCore::contextMenuItemTagOpenLink):
  20224. (WebCore::contextMenuItemTagIgnoreGrammar):
  20225. (WebCore::contextMenuItemTagSpellingMenu):
  20226. (WebCore::contextMenuItemTagShowSpellingPanel):
  20227. (WebCore::contextMenuItemTagCheckSpelling):
  20228. (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
  20229. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  20230. (WebCore::contextMenuItemTagFontMenu):
  20231. (WebCore::contextMenuItemTagBold):
  20232. (WebCore::contextMenuItemTagItalic):
  20233. (WebCore::contextMenuItemTagUnderline):
  20234. (WebCore::contextMenuItemTagOutline):
  20235. (WebCore::contextMenuItemTagWritingDirectionMenu):
  20236. (WebCore::contextMenuItemTagDefaultDirection):
  20237. (WebCore::contextMenuItemTagLeftToRight):
  20238. (WebCore::contextMenuItemTagRightToLeft):
  20239. 2007-01-03 Anders Carlsson <acarlsson@apple.com>
  20240. Reviewed by Geoff.
  20241. <rdar://problem/4857027>
  20242. ragnarok online misrenders (due to lack of support for windowless plugins)
  20243. * plugins/win/PluginViewWin.cpp:
  20244. (WebCore::PluginViewWin::updateWindow):
  20245. Rename from updateHwnd since this now handles updating the clip rect for windowless plugins.
  20246. (WebCore::PluginViewWin::paintMissingPluginIcon):
  20247. New function which paints the missing plugin icon.
  20248. (WebCore::PluginViewWin::paint):
  20249. Do windowless painting here.
  20250. (WebCore::PluginViewWin::handleKeyboardEvent):
  20251. (WebCore::PluginViewWin::handleMouseEvent):
  20252. (WebCore::PluginViewWin::handleEvent):
  20253. New functions for handling mouse and keyboard events, translating them and handing them to the plugin.
  20254. (WebCore::PluginViewWin::setNPWindowRect):
  20255. Set correct window rect for windowless plugins.
  20256. (WebCore::PluginViewWin::getValue):
  20257. Add variable for containing HWND.
  20258. (WebCore::PluginViewWin::setValue):
  20259. Add windowless and transparent variables.
  20260. (WebCore::PluginViewWin::invalidateRect):
  20261. (WebCore::PluginViewWin::invalidateRegion):
  20262. (WebCore::PluginViewWin::forceRedraw):
  20263. Implement these.
  20264. (WebCore::PluginViewWin::determineQuirks):
  20265. Set quirks now that we support windowless flash.
  20266. (WebCore::PluginViewWin::PluginViewWin):
  20267. Only create the window if the plugin isn't windowless.
  20268. * plugins/win/PluginViewWin.h:
  20269. New declarations.
  20270. * plugins/win/npapi.cpp:
  20271. (NPN_InvalidateRect):
  20272. (NPN_InvalidateRegion):
  20273. (NPN_ForceRedraw):
  20274. Implement these and forward them to the plugin view.
  20275. 2007-01-02 Brady Eidson <beidson@apple.com>
  20276. Reviewed by Lou
  20277. Temporary Link Stub fix for Back/Forward cache landing in OpenSource
  20278. * WebCore.vcproj/WebCore.vcproj:
  20279. * platform/win/TemporaryLinkStubs.cpp:
  20280. (DocumentLoader::request):
  20281. (DocumentLoader::originalRequest):
  20282. (DocumentLoader::title):
  20283. (DocumentLoader::unreachableURL):
  20284. (DocumentLoader::urlForHistory):
  20285. (DocumentLoader::setCommitted):
  20286. (DocumentLoader::prepareForLoadStart):
  20287. (DocumentLoader::replaceRequestURLForAnchorScroll):
  20288. (DocumentLoader::isClientRedirect):
  20289. (DocumentLoader::isLoading):
  20290. (DocumentLoader::getResponseRefreshAndModifiedHeaders):
  20291. (FrameLoader::applyUserAgent):
  20292. (FrameLoader::dataURLBaseFromRequest):
  20293. (FrameLoader::load):
  20294. (FrameLoader::opened):
  20295. (ResourceHandle::willLoadFromCache):
  20296. (WebCore::userIdleTime):
  20297. (PageCache::close):
  20298. 2007-01-02 Anders Carlsson <acarlsson@apple.com>
  20299. Build fix.
  20300. * WebCore.vcproj/WebCore.vcproj:
  20301. 2006-12-29 Geoffrey Garen <ggaren@apple.com>
  20302. Build fix.
  20303. * bridge/win/FrameWin.cpp:
  20304. (WebCore::FrameWin::bindingRootObject):
  20305. * plugins/win/PluginViewWin.cpp:
  20306. (WebCore::PluginViewWin::bindingInstance):
  20307. 2006-12-27 Oliver Hunt <oliver@apple.com>
  20308. Build fix
  20309. * WebCore.vcproj/WebCore.vcproj:
  20310. * platform/graphics/win/ImageWin.cpp:
  20311. (WebCore::BitmapImage::initPlatformData):
  20312. (WebCore::BitmapImage::invalidatePlatformData):
  20313. (WebCore::Image::loadPlatformResource):
  20314. (WebCore::BitmapImage::getHBITMAP):
  20315. 2006-12-25 Geoffrey Garen <ggaren@apple.com>
  20316. Fixed build. Tsk, tsk, Oliver.
  20317. * WebCore.vcproj/WebCore.vcproj:
  20318. 2006-12-25 Geoffrey Garen <ggaren@apple.com>
  20319. Reviewed by Oliver Hunt.
  20320. Removed WebCoreSettings, cleaned up WebCore::Settings.
  20321. * WebCore.vcproj/WebCore.vcproj: Added Settings.cpp to the project.
  20322. * bridge/win/FrameWin.cpp: Updated to use new preferences names.
  20323. (WebCore::FrameWin::bindingRootObject):
  20324. (WebCore::FrameWin::windowScriptNPObject):
  20325. * loader/win/FrameLoaderWin.cpp: ditto.
  20326. (WebCore::FrameLoader::partClearedInBegin):
  20327. * plugins/win/PluginViewWin.cpp: ditto.
  20328. (WebCore::PluginViewWin::load):
  20329. 2006-12-22 Ada Chan <adachan@apple.com>
  20330. Reviewed by Anders.
  20331. Build fix.
  20332. * WebCore.vcproj/WebCore.vcproj:
  20333. 2006-12-22 Anders Carlsson <acarlsson@apple.com>
  20334. Build fix.
  20335. * WebCore.vcproj/WebCore.vcproj:
  20336. 2006-12-22 John Sullivan <sullivan@apple.com>
  20337. Reviewed by Kevin Decker
  20338. Renamed stub method name to match change in WebCore
  20339. * platform/win/TemporaryLinkStubs.cpp:
  20340. (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  20341. renamed from markMisspellingsInAdjacentWords
  20342. 2006-12-20 Adam Roben <aroben@apple.com>
  20343. Reviewed by Hyatt.
  20344. Fix: <rdar://4769797> REGRESSION: No focus rings
  20345. * platform/win/GraphicsContextWin.cpp:
  20346. (WebCore::GraphicsContext::drawFocusRing):
  20347. * platform/win/TemporaryLinkStubs.cpp:
  20348. (WebCore::focusRingColor): Changed to match the Aqua focus ring color.
  20349. 2006-12-20 David Hyatt <hyatt@apple.com>
  20350. Remove line width setting in font rendering now that GraphicsContext sets
  20351. it for us.
  20352. * platform/win/FontWin.cpp:
  20353. (WebCore::Font::drawGlyphs):
  20354. 2006-12-20 David Hyatt <hyatt@apple.com>
  20355. Add support for stroking and filling of text to CSS. Boomer side. Same code as in FontMac.
  20356. * platform/win/FontWin.cpp:
  20357. (WebCore::Font::drawGlyphs):
  20358. 2006-12-19 Steve Falkenburg <sfalken@apple.com>
  20359. Remove non-existent header from vcproj
  20360. * WebCore.vcproj/WebCore.vcproj:
  20361. 2006-12-19 Brady Eidson <beidson@apple.com>
  20362. Reviewed by Ada
  20363. -Changed CFNetwork debugging output to use a logging channel
  20364. -Added the url to each logging message - the debugging output was quite crippled without this
  20365. * platform/network/cf/ResourceHandleCFNet.cpp:
  20366. (WebCore::willSendRequest):
  20367. (WebCore::didReceiveResponse):
  20368. (WebCore::didReceiveData):
  20369. (WebCore::didFinishLoading):
  20370. (WebCore::didFail):
  20371. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  20372. (WebCore::ResourceHandle::~ResourceHandle):
  20373. (WebCore::ResourceHandle::start):
  20374. 2006-12-19 Anders Carlsson <acarlsson@apple.com>
  20375. Reviewed by Geoff.
  20376. <rdar://problem/4876963>
  20377. Crash launching Boomer after all options deselected in pref->security
  20378. * loader/win/FrameLoaderWin.cpp:
  20379. (WebCore::FrameLoader::partClearedInBegin):
  20380. Add check for JavaScript.
  20381. 2006-12-19 Anders Carlsson <acarlsson@apple.com>
  20382. Reviewed by Kevin Decker.
  20383. Add (currently disabled) plugin quirks. This is necessary in order to get the Flash plugin
  20384. to request windowless plugins (which it only will do if it think it's running on a Mozilla browser).
  20385. * plugins/win/PluginViewWin.cpp:
  20386. (WebCore::PluginViewWin::userAgent):
  20387. (WebCore::PluginViewWin::determineQuirks):
  20388. (WebCore::PluginViewWin::PluginViewWin):
  20389. * plugins/win/PluginViewWin.h:
  20390. (WebCore::):
  20391. * plugins/win/npapi.cpp:
  20392. (NPN_UserAgent):
  20393. 2006-12-19 Brady Eidson <beidson@apple.com>
  20394. Change by Lou, reviewed by Brady
  20395. Scrolling caused Desktop flickering as well as other strange
  20396. flickering in the case of a missing plug-in
  20397. * plugins/win/PluginViewWin.cpp:
  20398. (WebCore::PluginViewWin::updateHwnd):
  20399. 2006-12-19 Anders Carlsson <acarlsson@apple.com>
  20400. * WebCore.vcproj/WebCore.vcproj:
  20401. Update for SVG changes.
  20402. 2006-12-18 Ada Chan <adachan@apple.com>
  20403. Reviewed by Adam.
  20404. Removed scheduleClose() from FrameWin. The implementation has
  20405. been moved to Frame.cpp.
  20406. * bridge/win/FrameWin.h:
  20407. * platform/win/TemporaryLinkStubs.cpp:
  20408. (FrameWin::mimeTypeForFileName):
  20409. 2006-12-18 Anders Carlsson <acarlsson@apple.com>
  20410. Reviewed by Adam and Oliver.
  20411. <rdar://problem/4856014> Target weekly ad doesn't work.
  20412. Store the real base URL and use it for requests.
  20413. * plugins/win/PluginViewWin.cpp:
  20414. (WebCore::PluginViewWin::getURLNotify):
  20415. (WebCore::PluginViewWin::getURL):
  20416. (WebCore::PluginViewWin::handlePost):
  20417. (WebCore::PluginViewWin::PluginViewWin):
  20418. * plugins/win/PluginViewWin.h:
  20419. 2006-12-19 Darin Adler <darin@apple.com>
  20420. * platform/win/FontWin.cpp: (WebCore::Font::drawGlyphs): Fix build,
  20421. wrong variable name.
  20422. 2006-12-18 David Hyatt <hyatt@apple.com>
  20423. Boomer side of my changes for filling/stroking of text.
  20424. Reviewed by olliej
  20425. * platform/win/FontWin.cpp:
  20426. (WebCore::Font::drawGlyphs):
  20427. 2006-12-18 Alice Liu <alice.liu@apple.com>
  20428. Reviewed by Adam.
  20429. <rdar://problem/4853363> hook up various deletion-related functions in WebView
  20430. * WebCore.vcproj/WebCore.vcproj:
  20431. Added file EditorDeleteAction.h
  20432. 2006-12-18 Kevin McCullough <KMcCullough@apple.com>
  20433. Reviewed by Oliver.
  20434. - Remove CG header includes in OpenSource files
  20435. * config.h:
  20436. * platform/graphics/cg/GraphicsContextPlatformPrivate.h:
  20437. 2006-12-18 Adam Roben <aroben@apple.com>
  20438. Build fixes.
  20439. * WebCore.vcproj/WebCore.vcproj: Removed deleted files.
  20440. * platform/win/CursorWin.cpp: Added missing method.
  20441. (WebCore::noneCursor):
  20442. 2006-12-16 Beth Dakin <bdakin@apple.com>
  20443. Reviewed by Adam (and partially Geoff).
  20444. Boomer side of making WebCore Context Menus support state and
  20445. enabled/disabled, and re-architecture of ContextMenuItem.
  20446. * platform/win/ContextMenuItemWin.cpp: ContextMenuItem class holds
  20447. the platformDescription as the sole member variable. Changes to
  20448. account for this.
  20449. (WebCore::ContextMenuItem::ContextMenuItem): Same.
  20450. (WebCore::ContextMenuItem::releasePlatformDescription): Same.
  20451. (WebCore::ContextMenuItem::type): Same
  20452. (WebCore::ContextMenuItem::platformSubMenu): Same.
  20453. (WebCore::ContextMenuItem::setType): Same.
  20454. (WebCore::ContextMenuItem::setTitle): Same.
  20455. (WebCore::ContextMenuItem::setSubMenu): Same.
  20456. (WebCore::ContextMenuItem::setChecked): Same.
  20457. (WebCore::ContextMenuItem::setEnabled): Same.
  20458. * platform/win/ContextMenuWin.cpp:
  20459. (WebCore::ContextMenu::insertItem): Takes ownership of the item by
  20460. calling releasePlatformDescription()
  20461. (WebCore::ContextMenu::appendItem): Same.
  20462. (WebCore::ContextMenu::itemWithAction): This is the new at(). Since
  20463. we are no longer using notifybypos, we instead need a way to find a
  20464. menu item by its action. (Its ID.)
  20465. (WebCore::ContextMenu::setPlatformDescription): No longer use
  20466. notifybypos.
  20467. 2006-12-16 Adele Peterson <adele@apple.com>
  20468. RS by Adam.
  20469. Removed TextField, RenderLineEdit classes.
  20470. * WebCore.vcproj/WebCore.vcproj:
  20471. * platform/win/TemporaryLinkStubs.cpp:
  20472. 2006-12-16 Adele Peterson <adele@apple.com>
  20473. Reviewed by Adam.
  20474. Added PopupMenu and theme code for:
  20475. <rdar://problem/4463829> Switch to use new search field implementation for <input type="search">
  20476. * WebCore.vcproj/WebCore.vcproj:
  20477. * platform/graphics/win/IconWin.cpp:
  20478. (WebCore::Icon::Icon):
  20479. * platform/win/PopupMenuWin.cpp:
  20480. (WebCore::PopupMenu::setFocusedIndex):
  20481. (WebCore::PopupWndProc):
  20482. * platform/win/SearchPopupMenuWin.cpp: Added.
  20483. (WebCore::SearchPopupMenu::SearchPopupMenu):
  20484. (WebCore::autosaveKey):
  20485. (WebCore::SearchPopupMenu::saveRecentSearches):
  20486. (WebCore::SearchPopupMenu::loadRecentSearches):
  20487. * rendering/RenderThemeWin.cpp:
  20488. (WebCore::RenderThemeWin::paintSearchField):
  20489. (WebCore::RenderThemeWin::adjustSearchFieldStyle):
  20490. (WebCore::RenderThemeWin::paintSearchFieldCancelButton):
  20491. (WebCore::RenderThemeWin::adjustSearchFieldCancelButtonStyle):
  20492. (WebCore::RenderThemeWin::adjustSearchFieldDecorationStyle):
  20493. (WebCore::RenderThemeWin::paintSearchFieldDecoration):
  20494. (WebCore::RenderThemeWin::adjustSearchFieldResultsDecorationStyle):
  20495. (WebCore::RenderThemeWin::paintSearchFieldResultsDecoration):
  20496. (WebCore::RenderThemeWin::adjustSearchFieldResultsButtonStyle):
  20497. (WebCore::RenderThemeWin::paintSearchFieldResultsButton):
  20498. * rendering/RenderThemeWin.h:
  20499. 2006-12-15 Anders Carlson <acarlsson@apple.com>
  20500. * platform/win/TemporaryLinkStubs.cpp:
  20501. Remove DocumentLoader::isStopped because it's now in DocumentLoader.cpp.
  20502. 2006-12-15 Geoffrey Garen <ggaren@apple.com>
  20503. I'm in ur prjct, fxng ur build.
  20504. * WebCore.vcproj/WebCore.vcproj:
  20505. * platform/win/TemporaryLinkStubs.cpp:
  20506. (ResourceHandle::loadResourceSynchronously):
  20507. 2006-12-14 Geoffrey Garen <ggaren@apple.com>
  20508. Reviewed by Brady Eidson.
  20509. Fixed <rdar://problem/4760682> Crash clicking nav links at left loading
  20510. www.tivofaq.com
  20511. The underlying problem is that we can't resize framesets. I've filed that
  20512. as <rdar://problem/4885227>.
  20513. I've fixed the proximate problem: we were interpreting a click as a frameset
  20514. resize, because the subframe event handler was returning false. A Subframe
  20515. event handler needs to return true to indicate that the subframe has handled
  20516. the event. This is how the Mac works, despite the plethora of convoluted code
  20517. suggesting otherwise.
  20518. We should really remove these meaningless return values and unify Mac and
  20519. Windows event handling, but that's beyond the scope of this patch.
  20520. * page/win/EventHandlerWin.cpp:
  20521. (WebCore::EventHandler::passMousePressEventToSubframe):
  20522. (WebCore::EventHandler::passMouseMoveEventToSubframe):
  20523. (WebCore::EventHandler::passMouseReleaseEventToSubframe):
  20524. (WebCore::EventHandler::passWheelEventToSubframe):
  20525. 2006-12-14 Adele Peterson <adele@apple.com>
  20526. Reviewed by Adam.
  20527. Update PopupMenu code to use new PopupMenuClient instead of RenderMenuList.
  20528. * platform/win/PopupMenuWin.cpp:
  20529. (WebCore::PopupMenu::PopupMenu):
  20530. (WebCore::PopupMenu::show):
  20531. (WebCore::PopupMenu::calculatePositionAndSize):
  20532. (WebCore::PopupMenu::setFocusedIndex):
  20533. (WebCore::PopupMenu::focusedIndex):
  20534. (WebCore::PopupMenu::focusFirst):
  20535. (WebCore::PopupMenu::focusLast):
  20536. (WebCore::PopupMenu::down):
  20537. (WebCore::PopupMenu::up):
  20538. (WebCore::PopupMenu::paint):
  20539. (WebCore::PopupWndProc):
  20540. 2006-12-14 Steve Falkenburg <sfalken@apple.com>
  20541. Build fix.
  20542. * platform/win/TemporaryLinkStubs.cpp:
  20543. (SubresourceLoader::didCancel):
  20544. 2006-12-14 Steve Falkenburg <sfalken@apple.com>
  20545. Production build fix. Added JSSVGPODTypeWrapper.h to the vcproj.
  20546. * WebCore.vcproj/WebCore.vcproj:
  20547. 2006-12-14 Adam Roben <aroben@apple.com>
  20548. Reviewed by Adele.
  20549. Build fix.
  20550. * platform/win/TemporaryLinkStubs.cpp:
  20551. (DocumentLoader::URL):
  20552. (ResourceHandle::loadResourceSynchronously):
  20553. 2006-12-14 Anders Carlsson <acarlsson@apple.com>
  20554. Fix the build.
  20555. * platform/win/TemporaryLinkStubs.cpp:
  20556. (FrameLoader::loadResourceSynchronously):
  20557. (ResourceHandle::loadResourceSynchronously):
  20558. 2006-12-13 Anders Carlsson <acarlsson@apple.com>
  20559. Fix the build.
  20560. * platform/win/TemporaryLinkStubs.cpp:
  20561. (PolicyCheck::call):
  20562. (DocumentLoader::URL):
  20563. 2006-12-13 Geoffrey Garen <ggaren@apple.com>
  20564. Reviewed by Darin Adler, Dave Hyatt.
  20565. Fixed <rdar://problem/4840261> Frame::setIsActive not called when frames
  20566. are focused/unfocused
  20567. Minor problems remain with focus in frames, but basic editing / cursor
  20568. focus works.
  20569. I moved tracking of the focused frame from the Widget hiearchy to Page's
  20570. FocusController. Not all widgets are frames, so this change cleaned up a
  20571. dubious static cast. Also, the DOM needs to track frame focus because (1)
  20572. it needs to respond to focus changes and (2) you can focus an element /
  20573. frame even before it has a renderer / widget.
  20574. * page/win/EventHandlerWin.cpp:
  20575. (WebCore::EventHandler::focusDocumentView): Implemented. This function is
  20576. poorly named, based on the Mac design.
  20577. (WebCore::PluginViewWin::hasFocus): Added for completeness. It's not really
  20578. used on Windows, though.
  20579. 2006-12-13 Steve Falkenburg <sfalken@apple.com>
  20580. Reviewed by Adam.
  20581. Add missing ForwardingHeaders to project
  20582. * WebCore.vcproj/WebCore.make: Fixed line endings
  20583. * WebCore.vcproj/WebCore.vcproj: Added missing headers
  20584. 2006-12-12 Steve Falkenburg <sfalken@apple.com>
  20585. Reviewed by Adam.
  20586. Production build fix
  20587. * WebCore.vcproj/build-generated-files.sh:
  20588. 2006-12-12 Alice Liu <alice.liu@apple.com>
  20589. Reviewed by Geoff.
  20590. Fixed <rdar://problem/4853199> extra whitespace at beginning and end of pasted fragment into contenteditable region
  20591. * WebCore.vcproj/WebCore.vcproj:
  20592. * platform/win/PasteboardWin.cpp:
  20593. (WebCore::Pasteboard::documentFragment):
  20594. 2006-12-12 Adam Roben <aroben@apple.com>
  20595. Reviewed by Anders.
  20596. Fixed use of min/max macros (again).
  20597. * WebCore.vcproj/WebCore.vcproj: Make sure we include ForwardingHeaders
  20598. before any include directories so that we get the newest versions
  20599. of our headers.
  20600. * config.h: Move the fake #defines of min/max out of #if
  20601. PLATFORM(WIN_OS) since this is useful in general.
  20602. * platform/win/BString.cpp: Include windows.h
  20603. * platform/win/BString.h: Forward-declare BSTR so we don't have to
  20604. include windows.h.
  20605. 2006-12-12 Geoffrey Garen <ggaren@apple.com>
  20606. Reviewed by Adam Roben, Dave Hyatt, Darin Adler.
  20607. Added FocusController to project.
  20608. * WebCore.vcproj/WebCore.vcproj:
  20609. 2006-12-12 Anders Carlsson <acarlsson@apple.com>
  20610. * loader/win/ResourceLoaderWin.cpp:
  20611. * platform/network/cf/ResourceHandleCFNet.cpp:
  20612. (WebCore::ResourceHandle::start):
  20613. * platform/win/TemporaryLinkStubs.cpp:
  20614. (ResourceHandle::loadsBlocked):
  20615. Update for changes to ResourceHandle.
  20616. 2006-12-13 Darin Adler <darin@apple.com>
  20617. - fix build
  20618. * WebCore.vcproj/WebCore.vcproj: Added missing files, removed obsolete files.
  20619. 2006-12-11 Adam Roben <aroben@apple.com>
  20620. Build fix.
  20621. * WebCore.vcproj/WebCore.vcproj: Added missing files to project.
  20622. 2006-12-11 Steve Falkenburg <sfalken@apple.com>
  20623. Production build fix.
  20624. Remove platform/UChar.h from our vcproj, since it doesn't exist anymore.
  20625. * WebCore.vcproj/WebCore.vcproj:
  20626. 2006-12-11 Alice Liu <alice.liu@apple.com>
  20627. Reviewed by ggaren.
  20628. Fixed <rdar://problem/4854901> "Copy Link" and "Copy Image Address" context menu items don't work
  20629. And some cleanup of PlatformMouseEvent(Win)
  20630. * page/win/EventHandlerWin.cpp:
  20631. (WebCore::EventHandler::handleDrag):
  20632. Removed unnecessary check for mouse event type
  20633. * platform/win/PasteboardWin.cpp:
  20634. (WebCore::PasteboardOwnerWndProc):
  20635. (WebCore::createGlobalData):
  20636. Added more overloaded implemtations and renamed from createHandle
  20637. (WebCore::markupToCF_HTML):
  20638. Changed to handle less-specific input and renamed from createCF_HTML
  20639. (WebCore::urlToMarkup):
  20640. (WebCore::Pasteboard::writeURL):
  20641. Added these.
  20642. (WebCore::replaceNBSP):
  20643. Moved out of Pasteboard class
  20644. (WebCore::Pasteboard::clear):
  20645. Renamed from clearTypes.
  20646. (WebCore::Pasteboard::writeSelection):
  20647. (WebCore::Pasteboard::canSmartReplace):
  20648. (WebCore::Pasteboard::plainText):
  20649. (WebCore::Pasteboard::documentFragment):
  20650. Trivial cleanup of these.
  20651. * platform/win/PlatformMouseEventWin.cpp:
  20652. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  20653. Removed anything having to do with unnecessary m_type
  20654. 2006-12-11 Darin Adler <darin@apple.com>
  20655. Reviewed by Brady.
  20656. - http://bugs.webkit.org/show_bug.cgi?id=11794
  20657. fix lifetime problems affecting Frame's ownerElement pointer
  20658. * WebCore.vcproj/WebCore.vcproj: Update for added files.
  20659. * bridge/win/FrameWin.h:
  20660. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin):
  20661. * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::createFrame):
  20662. Changed to use HTMLFrameOwnerElement.
  20663. * platform/win/TemporaryLinkStubs.cpp: (FrameLoader::load):
  20664. Changed to use HTMLFormElement.
  20665. 2006-12-11 Beth Dakin <bdakin@apple.com>
  20666. Reviewed by Adam.
  20667. Build fix from Nick Zimmerman's last check-in.
  20668. * WebCore.vcproj/WebCore.vcproj:
  20669. 2006-12-09 Adam Roben <aroben@apple.com>
  20670. Reviewed by Hyatt.
  20671. Use num-cpus to determine the number of jobs make should run
  20672. concurrently.
  20673. * WebCore.vcproj/build-generated-files.sh:
  20674. 2006-12-09 Adam Roben <aroben@apple.com>
  20675. Reviewed by Hyatt.
  20676. Fix: <rdar://problem/4860184> Can't select context menu items with the
  20677. right mouse button
  20678. * platform/win/ContextMenuWin.cpp:
  20679. (WebCore::ContextMenu::show):
  20680. 2006-12-09 Adam Roben <aroben@apple.com>
  20681. Reviewed by Darin.
  20682. Build fixes after OpenSource r18098 and r18106.
  20683. * WebCore.vcproj/WebCore.vcproj:
  20684. - Changed include paths to reflect the now-flattened JSCore headers.
  20685. - Added missing files to project.
  20686. - Changed post-build step to also copy ForwardingHeaders.
  20687. - Removed unnecessary definition of WTF_PLATFORM_CF from project
  20688. file (it's already defined in config.h).
  20689. * platform/win/TextBoundariesWin.cpp: Fixed up includes and renamed
  20690. function calls.
  20691. (WebCore::findNextWordFromIndex):
  20692. (WebCore::findWordBoundary):
  20693. 2006-12-08 Adam Roben <aroben@apple.com>
  20694. Rubberstamped by Anders.
  20695. * platform/win/FontPlatformDataWin.cpp:
  20696. (WebCore::FontPlatformData::FontPlatformData): Fix use of min().
  20697. 2006-12-08 Adam Roben <aroben@apple.com>
  20698. Build fix.
  20699. * WebCore.vcproj/WebCore.vcproj:
  20700. 2006-12-07 Beth Dakin <bdakin@apple.com>
  20701. Reviewed by Maciej.
  20702. Add a new member variable to ContectMenuItem to hold on to the sub-
  20703. menu. The new member variable is an OwnPtr<ContextMenu>. Not doing
  20704. this breaks sub-menus on Boomer since the menu items are no longer
  20705. static.
  20706. * platform/win/ContextMenuItemWin.cpp:
  20707. (WebCore::ContextMenuItem::ContextMenuItem):
  20708. (WebCore::ContextMenuItem::platformSubMenu):
  20709. (WebCore::ContextMenuItem::setSubMenu):
  20710. 2006-12-07 Kevin McCullough <kmccullough@apple.com>
  20711. Reviewed by.
  20712. Fixed previous comment
  20713. * ChangeLog:
  20714. 2006-12-07 Kevin McCullough <kmccullough@apple.com>
  20715. Reviewed by Geof.
  20716. - keyDown events must be followed by keyPressed events and before keyUp events.
  20717. * bridge/win/FrameWin.cpp:
  20718. (WebCore::FrameWin::keyEvent):
  20719. 2006-12-07 Beth Dakin <bdakin@apple.com>
  20720. Reviewed by Brady.
  20721. New link stub for load() function used by
  20722. ContextMenuItemTagOpenLink action.
  20723. * platform/win/TemporaryLinkStubs.cpp:
  20724. (FrameLoader::load):
  20725. 2006-12-07 Ada Chan <adachan@apple.com>
  20726. Reviewed by Steve and Anders.
  20727. <rdar://4866288> Crash on boomer quit
  20728. - don't close the themes on termination, since uxtheme should do that anyway.
  20729. * rendering/RenderThemeWin.cpp:
  20730. (WebCore::RenderThemeWin::~RenderThemeWin):
  20731. 2006-12-06 Ada Chan <adachan@apple.com>
  20732. Reviewed by Maciej.
  20733. Fixed a couple of things while investigating <rdar://4866288> (note this doesn't fix the crash yet):
  20734. - we forgot to initialize m_sliderTheme
  20735. - we did the wrong null check when getting the slider theme.
  20736. * rendering/RenderThemeWin.cpp:
  20737. (WebCore::RenderThemeWin::RenderThemeWin):
  20738. (WebCore::RenderThemeWin::sliderTheme):
  20739. 2006-12-06 Anders Carlsson <acarlsson@apple.com>
  20740. Fix the build.
  20741. * platform/network/cf/ResourceHandleCFNet.cpp:
  20742. (WebCore::didReceiveData):
  20743. (WebCore::didFail):
  20744. (WebCore::ResourceHandle::start):
  20745. (WebCore::ResourceHandle::cancel):
  20746. 2006-12-06 Anders Carlsson <acarlsson@apple.com>
  20747. Reviewed by Adam.
  20748. Modify PluginStreamWin to use a SubresourceLoader instead of a ResourceHandle.
  20749. * plugins/win/PluginStreamWin.cpp:
  20750. (WebCore::PluginStreamWin::PluginStreamWin):
  20751. (WebCore::PluginStreamWin::~PluginStreamWin):
  20752. (WebCore::PluginStreamWin::start):
  20753. (WebCore::PluginStreamWin::stop):
  20754. (WebCore::PluginStreamWin::deliverData):
  20755. (WebCore::PluginStreamWin::didReceiveResponse):
  20756. (WebCore::PluginStreamWin::didReceiveData):
  20757. (WebCore::PluginStreamWin::didFail):
  20758. (WebCore::PluginStreamWin::didFinishLoading):
  20759. * plugins/win/PluginStreamWin.h:
  20760. * plugins/win/PluginViewWin.cpp:
  20761. (WebCore::PluginViewWin::performRequest):
  20762. (WebCore::PluginViewWin::load):
  20763. 2006-12-06 Anders Carlsson <acarlsson@apple.com>
  20764. Build fixes.
  20765. * WebCore.vcproj/WebCore.vcproj:
  20766. * platform/win/TemporaryLinkStubs.cpp:
  20767. (FrameWin::scheduleClose):
  20768. 2006-12-05 John Sullivan <sullivan@apple.com>
  20769. Try to keep the windows build happy with Frame -> Editor changes...
  20770. * bridge/win/FrameWin.h:
  20771. removed declarations of spelling and grammar functions
  20772. * platform/win/TemporaryLinkStubs.cpp:
  20773. changed spelling and grammar functions from FrameWin:: to Editor::
  20774. (WebCore::Editor::isSelectionMisspelled):
  20775. (WebCore::Editor::isSelectionUngrammatical):
  20776. (WebCore::Editor::guessesForMisspelledSelection):
  20777. (WebCore::Editor::guessesForUngrammaticalSelection):
  20778. (WebCore::Editor::markMisspellingsInAdjacentWords):
  20779. (WebCore::Editor::advanceToNextMisspelling):
  20780. 2006-12-05 Anders Carlsson <acarlsson@apple.com>
  20781. Reviewed by Maciej.
  20782. Don't delete the internal pointer anymore since it's an OwnPtr now.
  20783. * platform/network/cf/ResourceHandleCFNet.cpp:
  20784. (WebCore::ResourceHandle::~ResourceHandle):
  20785. 2006-12-05 Steve Falkenburg <sfalken@apple.com>
  20786. Fix the build
  20787. * platform/win/TemporaryLinkStubs.cpp:
  20788. 2006-12-05 Steve Falkenburg <sfalken@apple.com>
  20789. Production build fix.
  20790. ...and add ImageAnimationObserver.h into its new location.
  20791. * WebCore.vcproj/WebCore.vcproj:
  20792. 2006-12-05 Steve Falkenburg <sfalken@apple.com>
  20793. Production build fix.
  20794. Remove ImageAnimationObserver.h from vcproj.
  20795. * WebCore.vcproj/WebCore.vcproj:
  20796. 2006-12-05 John Sullivan <sullivan@apple.com>
  20797. Reviewed by Geoff Garen
  20798. Changes to keep up with Frame -> Editor changes in WebCore
  20799. * bridge/win/FrameWin.h:
  20800. remove ignoreSpelling() and learnSpelling()
  20801. * platform/win/TemporaryLinkStubs.cpp:
  20802. (WebCore::Editor::ignoreSpelling):
  20803. moved from FrameWin to Editor
  20804. (WebCore::Editor::learnSpelling):
  20805. ditto
  20806. 2006-12-05 Alice Liu <alice.liu@apple.com>
  20807. Build fix.
  20808. * platform/win/CursorWin.cpp:
  20809. (WebCore::copyCursor):
  20810. 2006-12-05 Alice Liu <alice.liu@apple.com>
  20811. Build fix.
  20812. * bridge/win/FrameWin.h:
  20813. added missing declarations for the functions in John's checkin, below.
  20814. 2006-12-05 John Sullivan <sullivan@apple.com>
  20815. * platform/win/TemporaryLinkStubs.cpp:
  20816. (WebCore::FrameWin::isSelectionUngrammatical):
  20817. (WebCore::FrameWin::guessesForUngrammaticalSelection):
  20818. added stubs to correspond to new Frame functions
  20819. 2006-12-04 Anders Carlsson <acarlsson@apple.com>
  20820. Reviewed by Darin.
  20821. * WebCore.vcproj/WebCore.vcproj:
  20822. Add SubresourceClient.h
  20823. * platform/network/cf/ResourceHandleCFNet.cpp:
  20824. (WebCore::didReceiveResponse):
  20825. Get rid of the receivedResponse call.
  20826. (WebCore::didFinishLoading):
  20827. Get rid of the receivedAllData call, that's handled by the subresource loader now.
  20828. 2006-12-04 Darin Adler <darin@apple.com>
  20829. Reviewed by Adele.
  20830. * WebCore.vcproj/WebCore.vcproj: Update for new UIEventWithKeyState.cpp file.
  20831. 2006-12-04 Kevin McCullough <KMcCullough@apple.com>
  20832. Reviewed by Darin.
  20833. - removed the guards for the "multiple forms submission" issue, which may not be
  20834. an issue anymore and the guards prevent perfectly legitimate websites from
  20835. working correctly.
  20836. * bridge/win/FrameWin.cpp:
  20837. (WebCore::FrameWin::keyEvent):
  20838. * config.h:
  20839. * loader/win/FrameLoaderWin.cpp:
  20840. (WebCore::FrameLoader::submitForm):
  20841. 2006-12-04 Darin Adler <darin@apple.com>
  20842. Reviewed by Alice.
  20843. * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::generalPasteboard):
  20844. Got rid of s_generalPasteboard. Also removed definition of destructor.
  20845. 2006-12-04 Anders Carlsson <acarlsson@apple.com>
  20846. Reviewed by Darin, Geoff.
  20847. Get rid of ref() in ResourceHandle::start() and remove all uses of kill().
  20848. * platform/network/cf/ResourceHandleCFNet.cpp:
  20849. (WebCore::didFinishLoading):
  20850. (WebCore::didFail):
  20851. (WebCore::ResourceHandle::start):
  20852. * plugins/win/PluginStreamWin.cpp:
  20853. (WebCore::PluginStreamWin::stop):
  20854. 2006-12-04 Alice Liu <alice.liu@apple.com>
  20855. Reviewed by Oliver.
  20856. Fixed <rdar://problem/4822632> clicks don't work if you move mouse immediately
  20857. This bug was fixed by implementing EventHandler::handleDrag. The part of that
  20858. function after the drag hysteresis is exceeded remains unimplemented until
  20859. drag&drop is implemented.
  20860. * page/win/EventHandlerWin.cpp:
  20861. (WebCore::dragState):
  20862. (WebCore::EventHandler::dragHysteresisExceeded):
  20863. (WebCore::EventHandler::handleDrag):
  20864. (WebCore::EventHandler::handleMouseUp):
  20865. (WebCore::EventHandler::shouldDragAutoNode):
  20866. (WebCore::EventHandler::focusDocumentView):
  20867. (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
  20868. * platform/win/PlatformMouseEventWin.cpp:
  20869. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  20870. 2006-12-01 Beth Dakin <bdakin@apple.com>
  20871. Reviewed by Adam.
  20872. Support for sub-menus in WebCore context menus. Also some
  20873. adjustments to make ContextMenuItem class a wrapper for the
  20874. platformDescription. (In this case, a wrapper for LPMENUITEMINFO.)
  20875. * WebCore.vcproj/WebCore.vcproj:
  20876. * platform/win/ContextMenuItemWin.cpp:
  20877. (WebCore::ContextMenuItem::ContextMenuItem):
  20878. (WebCore::ContextMenuItem::platformDescription):
  20879. (WebCore::ContextMenuItem::action):
  20880. (WebCore::ContextMenuItem::title):
  20881. (WebCore::ContextMenuItem::platformSubMenu):
  20882. (WebCore::ContextMenuItem::setAction):
  20883. (WebCore::ContextMenuItem::setTitle):
  20884. (WebCore::ContextMenuItem::setSubMenu):
  20885. * platform/win/ContextMenuWin.cpp:
  20886. (WebCore::ContextMenu::ContextMenu):
  20887. (WebCore::ContextMenu::insertItem):
  20888. 2006-11-30 Geoffrey Garen <ggaren@apple.com>
  20889. Rubber Stamped by Anders Carlsson.
  20890. Global rename of Document::focusNode to Document::focusedNode. 'focusNode'
  20891. suggested a command, and conflicted with a different meaning for 'focusNode'
  20892. in the Mozilla selection API.
  20893. * bridge/win/FrameWin.cpp:
  20894. (WebCore::FrameWin::keyEvent):
  20895. 2006-11-30 Adam Roben <aroben@apple.com>
  20896. Lather, rinse, repeat.
  20897. * platform/win/GraphicsContextWin.cpp:
  20898. (WebCore::contextForImage):
  20899. 2006-11-30 Adam Roben <aroben@apple.com>
  20900. Build fix.
  20901. * platform/graphics/cg/GraphicsContextCG.cpp: Removed. This file was
  20902. un-forked a while ago.
  20903. * platform/win/ContextMenuWin.cpp:
  20904. (WebCore::ContextMenu::platformDescription):
  20905. * platform/win/GraphicsContextWin.cpp:
  20906. (WebCore::contextForImage):
  20907. 2006-11-30 Adam Roben <aroben@apple.com>
  20908. Build fix.
  20909. * WebCore.vcproj/WebCore.vcproj:
  20910. * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
  20911. (WebCore::SVGResourceFilter::prepareFilter):
  20912. (WebCore::SVGResourceFilter::applyFilter):
  20913. (WebCore::SVGResourceFilter::createFilterEffect):
  20914. * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp:
  20915. (WebCore::SVGResourceMasker::applyMask):
  20916. 2006-11-30 Geoffrey Garen <ggaren@apple.com>
  20917. Reviewed by Beth Dakin.
  20918. Fixed <rdar://problem/4844838> Whole document leak seen
  20919. running HTML iBench
  20920. * loader/win/FrameLoaderWin.cpp: Removed custom implementation
  20921. for detachFromParent, since FrameLoader has a cross-platform
  20922. version now.
  20923. 2006-11-30 Steve Falkenburg <sfalken@apple.com>
  20924. Production build fix. Add missing header files to vcproj.
  20925. * WebCore.vcproj/WebCore.vcproj:
  20926. 2006-11-29 Anders Carlsson <acarlsson@apple.com>
  20927. Build fix.
  20928. * platform/win/TemporaryLinkStubs.cpp:
  20929. Remove unused function.
  20930. 2006-11-29 Anders Carlsson <acarlsson@apple.com>
  20931. Reviewed by Oliver.
  20932. Fix fast/dom/xmlhttprequest-get layout test failure.
  20933. * platform/network/cf/ResourceResponseCFNet.cpp:
  20934. (WebCore::ResourceResponse::doUpdateResourceResponse):
  20935. Initialize the status code to 0 for non-http responses.
  20936. 2006-11-29 Anders Carlsson <acarlsson@apple.com>
  20937. Reviewed by Darin.
  20938. Have ResourceResponse hold on to the platform object and do lazy
  20939. initialization of the data members.
  20940. * WebCore.vcproj/WebCore.vcproj:
  20941. * platform/network/cf/ResourceHandleCFNet.cpp:
  20942. (WebCore::willSendRequest):
  20943. (WebCore::didReceiveResponse):
  20944. * platform/network/cf/ResourceRequestCFNet.h: Removed.
  20945. * platform/network/cf/ResourceResponseCFNet.cpp:
  20946. (WebCore::ResourceResponse::doUpdateResourceResponse):
  20947. * platform/network/cf/ResourceResponseCFNet.h: Removed.
  20948. * platform/win/MimeTypeRegistryWin.cpp:
  20949. 2006-11-28 Geoffrey Garen <ggaren@apple.com>
  20950. Reviewed by Beth Dakin.
  20951. Fixed <rdar://problem/4844855> Should clarify when to create clients in
  20952. the WebCore client API
  20953. All clients must now be supplied as constructor arguments. This clarifies
  20954. when you need to create clients, and also guarantees that objects can't
  20955. (for the most part) be in a clientless state.
  20956. Layout tests pass. No leaks reported.
  20957. * bridge/win/FrameWin.cpp:
  20958. (WebCore::FrameWin::FrameWin):
  20959. * bridge/win/FrameWin.h:
  20960. 2006-11-28 Adam Roben <aroben@apple.com>
  20961. Reviewed by Ada.
  20962. Add platform-specific constructor/destructor to ContextMenu so we can
  20963. properly dispose of the HMENU.
  20964. * platform/win/ContextMenuWin.cpp:
  20965. (WebCore::ContextMenu::ContextMenu):
  20966. (WebCore::ContextMenu::~ContextMenu):
  20967. (WebCore::ContextMenu::itemCount):
  20968. (WebCore::ContextMenu::insertItem):
  20969. (WebCore::ContextMenu::at):
  20970. (WebCore::ContextMenu::setPlatformDescription):
  20971. (WebCore::ContextMenu::show):
  20972. 2006-11-28 Steve Falkenburg <sfalken@apple.com>
  20973. B&I build fix
  20974. * WebCore.vcproj/WebCore.vcproj:
  20975. 2006-11-28 Anders Carlsson <acarlsson@apple.com>
  20976. Fix the build by doing the same changes that were done in the open source WebCore repo.
  20977. * WebCore.vcproj/WebCore.vcproj:
  20978. * platform/network/cf/ResourceHandleCFNet.cpp:
  20979. (WebCore::willSendRequest):
  20980. (WebCore::didReceiveResponse):
  20981. (WebCore::ResourceHandle::start):
  20982. * platform/network/cf/ResourceRequestCFNet.cpp:
  20983. (WebCore::ResourceRequest::cfURLRequest):
  20984. (WebCore::addHeadersFromHashMap):
  20985. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  20986. (WebCore::ResourceRequest::doUpdateResourceRequest):
  20987. * platform/network/cf/ResourceRequestCFNet.h:
  20988. 2006-11-28 Adam Roben <aroben@apple.com>
  20989. Reviewed by Ada and Beth.
  20990. Fix: <rdar://problem/4601523> Contextual Menus (in web content)
  20991. * WebCore.vcproj/WebCore.vcproj: Defined WEBCORE_CONTEXT_MENUS to turn
  20992. on the context menus. Added new ContextMenuItem files.
  20993. * platform/win/ContextMenuItemWin.cpp: Added.
  20994. (WebCore::ContextMenuItem::ContextMenuItem):
  20995. * platform/win/ContextMenuWin.cpp:
  20996. (WebCore::ContextMenu::itemCount): Updated to match ContextMenu.h and
  20997. ContextMenuItem changes.
  20998. (WebCore::ContextMenu::insertItem): Ditto.
  20999. (WebCore::ContextMenu::appendItem): Ditto.
  21000. (WebCore::ContextMenu::at): New method, similar to Vector<T>::at.
  21001. (WebCore::ContextMenu::setPlatformDescription): Use MIM_APPLYTOSUBMENUS
  21002. to make sure all submenus get the MNS_NOTIFYBYPOS style.
  21003. (WebCore::ContextMenu::show): Implemented.
  21004. Updates to match OpenSource changes.
  21005. * loader/win/FrameLoaderWin.cpp: Added missing #include.
  21006. * page/win/EventHandlerWin.cpp: Return bools to signify whether the
  21007. event was handled.
  21008. (WebCore::EventHandler::passMousePressEventToSubframe):
  21009. (WebCore::EventHandler::passMouseMoveEventToSubframe):
  21010. (WebCore::EventHandler::passMouseReleaseEventToSubframe):
  21011. (WebCore::EventHandler::passWheelEventToSubframe):
  21012. (WebCore::EventHandler::passMousePressEventToScrollbar):
  21013. * platform/win/PlatformScrollBar.h: Ditto.
  21014. * platform/win/PlatformScrollBarWin.cpp: Ditto.
  21015. (WebCore::PlatformScrollbar::handleMouseMoveEvent):
  21016. (WebCore::PlatformScrollbar::handleMouseOutEvent):
  21017. (WebCore::PlatformScrollbar::handleMousePressEvent):
  21018. (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
  21019. Small fix inspired by WebView.cpp changes.
  21020. * platform/win/PopupMenuWin.cpp:
  21021. (WebCore::PopupMenu::calculatePositionAndSize): Use ::ClientToScreen to
  21022. do coordinate conversion instead of doing it ourselves.
  21023. 2006-11-28 Anders Carlsson <acarlsson@apple.com>
  21024. Reviewed by Adam.
  21025. <rdar://problem/4850883>
  21026. Crash loading pdf page (W4 form)
  21027. * platform/win/TemporaryLinkStubs.cpp:
  21028. (FrameLoader::redirectDataToPlugin):
  21029. * loader/win/FrameLoaderWin.cpp:
  21030. (WebCore::FrameLoader::redirectDataToPlugin):
  21031. Move the function to FrameLoaderWin.cpp and get rid of STOP_NOIMPL() for now,
  21032. we do things differently on Windows so this function doesn't need do do anything.
  21033. I've filed 4852889 about redoing this once the loader has been ported.
  21034. 2006-11-28 Alice Liu <alice.liu@apple.com>
  21035. Reviewed by Ada, Adam, and Lou.
  21036. * WebCore.vcproj/WebCore.vcproj:
  21037. Added the files listed below
  21038. * platform/win/ClipboardWin.h: Added.
  21039. * platform/win/ClipboardWin.cpp: Added.
  21040. Added the minimum stubs for the ClipboardWin class
  21041. (WebCore::ClipboardWin::isForDragging):
  21042. (WebCore::ClipboardWin::dropEffect):
  21043. (WebCore::ClipboardWin::setDropEffect):
  21044. (WebCore::ClipboardWin::effectAllowed):
  21045. (WebCore::ClipboardWin::setEffectAllowed):
  21046. (WebCore::ClipboardWin::clearData):
  21047. (WebCore::ClipboardWin::clearAllData):
  21048. (WebCore::ClipboardWin::getData):
  21049. (WebCore::ClipboardWin::setData):
  21050. (WebCore::ClipboardWin::types):
  21051. (WebCore::ClipboardWin::dragLocation):
  21052. (WebCore::ClipboardWin::dragImage):
  21053. (WebCore::ClipboardWin::setDragImage):
  21054. (WebCore::ClipboardWin::dragImageElement):
  21055. (WebCore::ClipboardWin::setDragImageElement):
  21056. (WebCore::ClipboardWin::setAccessPolicy):
  21057. (WebCore::ClipboardWin::~ClipboardWin):
  21058. * platform/win/EditorWin.cpp: Added.
  21059. Added this to make dispatchCPPEvent happy.
  21060. (WebCore::Editor::newGeneralClipboard):
  21061. * platform/win/PasteboardWin.cpp: Added.
  21062. The pasteboard class follows a singleton pattern
  21063. Implemented the following to support CF_HTML, CF_UNICODE, and CF_TEXT
  21064. (WebCore::Pasteboard::generalPasteboard):
  21065. (WebCore::Pasteboard::Pasteboard):
  21066. (WebCore::Pasteboard::~Pasteboard):
  21067. (WebCore::Pasteboard::registerSelectionPasteboardTypes):
  21068. (WebCore::Pasteboard::clearTypes):
  21069. (WebCore::Pasteboard::writeSelection):
  21070. (WebCore::Pasteboard::createHandleFromString):
  21071. (WebCore::Pasteboard::createHandleFromCString):
  21072. (WebCore::Pasteboard::createCF_HTMLFromRange):
  21073. (WebCore::Pasteboard::replaceNBSP):
  21074. (WebCore::Pasteboard::canSmartReplace):
  21075. (WebCore::Pasteboard::plainText):
  21076. (WebCore::Pasteboard::documentFragment):
  21077. (WebCore::PasteboardOwnerWndProc):
  21078. 2006-11-28 Geoffrey Garen <ggaren@apple.com>
  21079. Reviewed by Anders Carlsson.
  21080. Fixed <rdar://problem/4844863> REGRESSION: screen flashes when scrolling/
  21081. resizing page with plug-in (@ cnn.com, for example).
  21082. LockWindowUpdate was to blame. It turns out that using LockWindowUpdate
  21083. was wrong to begin with. It's really only intended for use in drag-n-drop
  21084. operations, which explains why only one window can be locked at a time.
  21085. (See http://blogs.msdn.com/oldnewthing/archive/2004/06/10/152612.aspx.)
  21086. The new solution I've implemented for avoiding plug-in fragments while scrolling
  21087. is simply to clip the plug-in to the zero rect before moving it, and
  21088. then to un-clip it when done.
  21089. * plugins/win/PluginViewWin.cpp:
  21090. (WebCore::PluginViewWin::updateHwnd):
  21091. 2006-11-28 Geoffrey Garen <ggaren@apple.com>
  21092. Reviewed by Adam.
  21093. Fixed <rdar://problem/4844848> REGRESSION: extra cross-library ref/deref
  21094. calls cause .5% PLT regression.
  21095. Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient
  21096. from the Frame to the Page, since it's only responsible for
  21097. Webview-level delegate calls.
  21098. I don't really love this design, but it fixes the regression and allows
  21099. a single WebKit object to implement multiple client interfaces.
  21100. Layout tests pass.
  21101. 2006-11-27 Beth Dakin <bdakin@apple.com>
  21102. Reviewed by Adam.
  21103. Stub out functions in order to remove FIXMEs from ContextMenu.cpp
  21104. * bridge/win/FrameWin.h: Spell checker functions pushed down from
  21105. WebKit.
  21106. * platform/win/TemporaryLinkStubs.cpp: Stubs for spelling
  21107. functions.
  21108. (WebCore::FrameWin::isSelectionMisspelled):
  21109. (WebCore::FrameWin::guessesForMisspelledSelection):
  21110. 2006-11-27 Oliver Hunt <oliver@apple.com>
  21111. Reviewed by Adam.
  21112. Fixes a crash in SVG caused by an attempt to
  21113. perform css overflow clipping by preventing
  21114. the css overflow clip from being set in SVG.
  21115. <rdar:/problems/4839568>
  21116. * WebCore.vcproj/WebCore.vcproj:
  21117. 2006-11-27 Anders Carlsson <acarlsson@apple.com>
  21118. Remove addMessageToConsole from FrameWin.
  21119. * bridge/win/FrameWin.h:
  21120. * platform/win/TemporaryLinkStubs.cpp:
  21121. 2006-11-21 Anders Carlsson <acarlsson@apple.com>
  21122. Reviewed by Adam.
  21123. Various fixes that make file upload possible.
  21124. * bridge/win/FrameWin.h:
  21125. * loader/win/FrameLoaderWin.cpp:
  21126. (WebCore::FrameLoader::submitForm):
  21127. Change submitForm to take a FrameLoadRequest.
  21128. * platform/network/cf/FormDataStreamCFNet.cpp:
  21129. (WebCore::advanceCurrentStream):
  21130. Pass kCFURLWindowsPathStyle to CFURLCreateWithFileSystemPath.
  21131. * platform/network/cf/ResourceHandleCFNet.cpp:
  21132. (WebCore::willSendRequest):
  21133. Call the client method.
  21134. 2006-11-21 Anders Carlsson <acarlsson@apple.com>
  21135. Rubber-stamped by Maciej.
  21136. Fork the CF loader.
  21137. * WebCore.vcproj/WebCore.vcproj:
  21138. * platform/network/cf/FormDataStreamCFNet.cpp: Added.
  21139. (WebCore::getStreamFormDatas):
  21140. (WebCore::pairRetain):
  21141. (WebCore::pairRelease):
  21142. (WebCore::pairEqual):
  21143. (WebCore::pairHash):
  21144. (WebCore::closeCurrentStream):
  21145. (WebCore::scheduleWithPair):
  21146. (WebCore::advanceCurrentStream):
  21147. (WebCore::openNextStream):
  21148. (WebCore::formCreate):
  21149. (WebCore::formFinalize):
  21150. (WebCore::formOpen):
  21151. (WebCore::formRead):
  21152. (WebCore::formCanRead):
  21153. (WebCore::formClose):
  21154. (WebCore::formSchedule):
  21155. (WebCore::formUnschedule):
  21156. (WebCore::formEventCallback):
  21157. (WebCore::setHTTPBody):
  21158. (WebCore::httpBodyFromStream):
  21159. * platform/network/cf/FormDataStreamCFNet.h: Added.
  21160. * platform/network/cf/ResourceHandleCFNet.cpp: Added.
  21161. (WebCore::willSendRequest):
  21162. (WebCore::didReceiveResponse):
  21163. (WebCore::didReceiveData):
  21164. (WebCore::didFinishLoading):
  21165. (WebCore::didFail):
  21166. (WebCore::willCacheResponse):
  21167. (WebCore::didReceiveChallenge):
  21168. (WebCore::addHeadersFromHashMap):
  21169. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  21170. (WebCore::ResourceHandle::~ResourceHandle):
  21171. (WebCore::arrayFromFormData):
  21172. (WebCore::emptyPerform):
  21173. (WebCore::runLoaderThread):
  21174. (WebCore::ResourceHandle::start):
  21175. (WebCore::ResourceHandle::cancel):
  21176. * platform/network/cf/ResourceRequestCFNet.cpp: Added.
  21177. (WebCore::getResourceRequest):
  21178. (WebCore::addHeadersFromHashMap):
  21179. (WebCore::cfURLRequest):
  21180. * platform/network/cf/ResourceRequestCFNet.h: Added.
  21181. * platform/network/cf/ResourceResponseCFNet.cpp: Added.
  21182. (WebCore::getResourceResponse):
  21183. * platform/network/cf/ResourceResponseCFNet.h: Added.
  21184. 2006-11-21 Anders Carlsson <acarlsson@apple.com>
  21185. Reviewed by Lou, Dave Hyatt.
  21186. <rdar://problem/4761639>
  21187. Group label in list box doesn't appear as bold
  21188. <rdar://problem/4805795>
  21189. <optgroup> labels should be bold in popup menus
  21190. * platform/win/FontPlatformDataWin.cpp:
  21191. (WebCore::enumStylesCallback):
  21192. (WebCore::FontPlatformData::FontPlatformData):
  21193. Enumerate the existing font styles and decide what to synthesize
  21194. depending on what styles are available.
  21195. 2006-11-21 Anders Carlsson <acarlsson@apple.com>
  21196. Fix build.
  21197. * WebCore.vcproj/WebCore.vcproj:
  21198. 2006-11-20 Anders Carlsson <acarlsson@apple.com>
  21199. Add the same include paths to the debug build.
  21200. * WebCore.vcproj/WebCore.vcproj:
  21201. 2006-11-20 Anders Carlsson <acarlsson@apple.com>
  21202. Fix build.
  21203. * WebCore.vcproj/WebCore.vcproj:
  21204. * kcanvas/device/quartz/KCanvasFilterQuartz.cpp: Removed.
  21205. * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: Added.
  21206. (WebCore::SVGResourceFilter::SVGResourceFilter):
  21207. (WebCore::SVGResourceFilter::~SVGResourceFilter):
  21208. (WebCore::SVGResourceFilter::prepareFilter):
  21209. (WebCore::SVGResourceFilter::applyFilter):
  21210. 2006-11-19 Beth Dakin <bdakin@apple.com>
  21211. Reviewed by Adam.
  21212. Boomer part of context menu actions.
  21213. * bridge/win/FrameWin.h: New spelling functions on Frame.
  21214. * platform/win/ContextMenuWin.cpp:
  21215. (WebCore::ContextMenu::show):
  21216. (WebCore::ContextMenu::hide):
  21217. * platform/win/TemporaryLinkStubs.cpp: New stubs.
  21218. (FrameWin::ignoreSpelling):
  21219. (FrameWin::learnSpelling):
  21220. (FrameLoader::reload):
  21221. 2006-11-18 Adam Roben <aroben@apple.com>
  21222. Build fix from OpenSource r17841.
  21223. * platform/win/CursorWin.cpp: New method stubs.
  21224. (WebCore::aliasCursor):
  21225. (WebCore::progressCursor):
  21226. (WebCore::noDropCursor):
  21227. 2006-11-17 Anders Carlsson <acarlsson@apple.com>
  21228. Reviewed by Adam.
  21229. Add #defines in config.h to prevent the min and max macros from being used.
  21230. * bridge/win/FrameWin.cpp:
  21231. * config.h:
  21232. * platform/win/FontCacheWin.cpp:
  21233. (WebCore::FontCache::createFontPlatformData):
  21234. * platform/win/PopupMenuWin.cpp:
  21235. * plugins/win/PluginStreamWin.cpp:
  21236. * plugins/win/PluginViewWin.cpp:
  21237. (WebCore::PluginViewWin::handlePost):
  21238. 2006-11-17 Kevin McCullough <kmccullough@apple.com>
  21239. Reviewed by Adam.
  21240. - Fixes Targetted Form Submission to now work. Radar: 4762693
  21241. * ChangeLog:
  21242. * loader/win/FrameLoaderWin.cpp:
  21243. (WebCore::FrameLoader::submitForm):
  21244. 2006-11-16 Adele Peterson <adele@apple.com>
  21245. Reviewed by Adam.
  21246. Added theme for sider.
  21247. * rendering/RenderThemeWin.cpp:
  21248. (WebCore::RenderThemeWin::sliderTheme):
  21249. (WebCore::RenderThemeWin::close):
  21250. (WebCore::RenderThemeWin::determineSliderThumbState):
  21251. (WebCore::RenderThemeWin::getClassicThemeData):
  21252. (WebCore::RenderThemeWin::getThemeData):
  21253. (WebCore::drawControl):
  21254. (WebCore::RenderThemeWin::paintSliderTrack):
  21255. (WebCore::RenderThemeWin::paintSliderThumb):
  21256. (WebCore::RenderThemeWin::adjustSliderThumbSize):
  21257. * rendering/RenderThemeWin.h:
  21258. 2006-11-15 Adam Roben <aroben@apple.com>
  21259. Reviewed by Anders.
  21260. Added new ContextMenuClient and ContextMenuController classes.
  21261. * WebCore.vcproj/WebCore.vcproj: Added new files.
  21262. * platform/win/ContextMenuWin.cpp: Added method implementations Beth
  21263. forgot to check in in r11129.
  21264. (WebCore::ContextMenu::itemCount):
  21265. (WebCore::ContextMenu::appendItem):
  21266. 2006-11-15 Geoffrey Garen <ggaren@apple.com>
  21267. Reviewed by Anders Carlsson.
  21268. Fixed flash of plug-in content outside its containing iframe while
  21269. scrolling the iframe.
  21270. The problem was that the plug-in would draw between our call to MoveWindow
  21271. and our call to SetWindowRgn. The solution here is to lock all updates in
  21272. the plug-in's HWND until we've called both MoveWindow and SetWindowRgn.
  21273. Tested with Quicktime and Flash.
  21274. * plugins/win/PluginViewWin.cpp:
  21275. (WebCore::PluginViewWin::updateHwnd):
  21276. (WebCore::PluginViewWin::setFrameGeometry):
  21277. (WebCore::PluginViewWin::geometryChanged):
  21278. * plugins/win/PluginViewWin.h: Removed bogus invalidate parameter to updateHwnd.
  21279. 2006-11-15 Adele Peterson <adele@apple.com>
  21280. Reviewed by Adam.
  21281. Adding RenderSlider class, and removing DeprecatedSlider and Slider classes.
  21282. * WebCore.vcproj/WebCore.vcproj:
  21283. * platform/win/TemporaryLinkStubs.cpp:
  21284. 2006-11-15 Beth Dakin <bdakin@apple.com>
  21285. & Adam Roben <aroben@apple.com>
  21286. Reviewed by Adam and Beth.
  21287. Internal side of r17796.
  21288. * WebCore.vcproj/WebCore.vcproj:
  21289. * platform/win/ContextMenuWin.cpp: Added.
  21290. (WebCore::ContextMenu::insertItem):
  21291. (WebCore::ContextMenu::setPlatformMenuDescription):
  21292. 2006-11-15 Anders Carlsson <acarlsson@apple.com>
  21293. Reviewed by Darin.
  21294. Remove some (now) obsolete methods.
  21295. * bridge/win/FrameWin.h:
  21296. * platform/win/TemporaryLinkStubs.cpp:
  21297. (FrameWin::unfocusWindow):
  21298. (FrameWin::getAppletInstanceForWidget):
  21299. (FrameWin::issuePasteCommand):
  21300. (FrameWin::respondToChangedSelection):
  21301. 2006-11-15 Steve Falkenburg <sfalken@apple.com>
  21302. Remove header from vcproj that no longer exists
  21303. * WebCore.vcproj/WebCore.vcproj:
  21304. 2006-11-15 Steve Falkenburg <sfalken@apple.com>
  21305. Fix the B&I build
  21306. * WebCore.vcproj/WebCore.vcproj:
  21307. 2006-11-14 Darin Adler <darin@apple.com>
  21308. Reviewed by Anders.
  21309. - update for creation of EventHandler
  21310. * WebCore.vcproj/WebCore.vcproj: Added EventHandler.cpp/h/Win.cpp.
  21311. * bridge/win/FrameWin.h: Moved virtual functions lastEventIsMouseUp,
  21312. tabsToLinks, and tabsToAllControls to EventHandler.
  21313. * bridge/win/FrameWin.cpp: Ditto.
  21314. * bridge/win/FrameViewWin.cpp: Moved passMousePressEventToSubframe and similar
  21315. functions to EventHandler.
  21316. * page/win/EventHandlerWin.cpp: Added. Code from FrameViewWin and FrameWin.
  21317. * platform/win/PlatformScrollBarWin.cpp:
  21318. (WebCore::PlatformScrollbar::handleMouseReleaseEvent): Call the setMousePressed
  21319. function in its new home in EventHandler.
  21320. * platform/win/TemporaryLinkStubs.cpp: Moved lastEventIsMouseUp stub to EventHandler.
  21321. 2006-11-13 Brady Eidson <beidson@apple.com>
  21322. Rubberstamped by Maciej
  21323. Windows half of 17755 - Make FormData shared
  21324. * bridge/win/FrameWin.h:
  21325. * loader/win/FrameLoaderWin.cpp:
  21326. (WebCore::FrameLoader::submitForm):
  21327. * plugins/win/PluginViewWin.cpp:
  21328. (WebCore::PluginViewWin::handlePost):
  21329. 2006-11-13 Anders Carlsson <acarlsson@apple.com>
  21330. Reviewed by Adam.
  21331. * platform/win/PopupMenuWin.cpp:
  21332. (WebCore::PopupWndProc):
  21333. Make sure to call valueChanged after hiding the popup so that change events will
  21334. be delivered correctly.
  21335. 2006-11-13 Steve Falkenburg <sfalken@apple.com>
  21336. Reviewed by Anders, Lou.
  21337. Fix merge script
  21338. * WebCore.vcproj/merge-opensource.sh: Don't copy cairo, pixman
  21339. 2006-11-12 Geoffrey Garen <ggaren@apple.com>
  21340. Reviewed by Beth Dakin.
  21341. Added project-wide setting to disable Microsoft's made-up deprecation
  21342. warnings related to std:: functions. (Doesn't have any affect yet,
  21343. since we currently disable all deprecation warnings.)
  21344. * WebCore.vcproj/WebCore.vcproj:
  21345. 2006-11-11 Anders Carlsson <acarlsson@apple.com>
  21346. Reviewed by Oliver.
  21347. Rename keyPress to keyEvent, it's used for both key presses
  21348. and releases.
  21349. * bridge/win/FrameWin.cpp:
  21350. (WebCore::FrameWin::keyEvent):
  21351. * bridge/win/FrameWin.h:
  21352. 2006-11-11 Adam Roben <aroben@apple.com>
  21353. Reviewed by Geoff.
  21354. Move graphics-related files to platform/graphics to stay in sync with
  21355. changes from OpenSource r17727.
  21356. Also, as discussed with Darin and Steve, we now copy all our headers to
  21357. a flat include/WebCore directory instead of copying the directory
  21358. structure of WebCore. This mirrors how Mac builds.
  21359. * WebCore.vcproj/WebCore.vcproj:
  21360. * platform/cg/ColorCG.cpp: Removed.
  21361. * platform/cg/GraphicsContextCG.cpp: Removed.
  21362. * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
  21363. * platform/win/IconWin.cpp: Removed.
  21364. * platform/win/ImageWin.cpp: Removed.
  21365. 2006-11-11 Darin Adler <darin@apple.com>
  21366. - blind attempt to fix the build
  21367. * platform/win/CursorWin.cpp:
  21368. (WebCore::verticalTextCursor): Added. Just returns the pointer cursor.
  21369. (WebCore::cellCursor): Ditto.
  21370. (WebCore::contextMenuCursor): Ditto.
  21371. 2006-11-10 Steve Falkenburg <sfalken@apple.com>
  21372. Build fix for opensource/internal merge script.
  21373. * WebCore.vcproj/WebCore.vcproj:
  21374. 2006-11-10 Anders Carlsson <acarlsson@apple.com>
  21375. Reviewed by Oliver.
  21376. Implement findNextWordFromIndex using ICU.
  21377. * platform/win/TemporaryLinkStubs.cpp:
  21378. (WebCore::findSentenceBoundary):
  21379. * platform/win/TextBoundariesWin.cpp:
  21380. (WebCore::findNextWordFromIndex):
  21381. 2006-11-09 Oliver Hunt <oliver@apple.com>
  21382. Reviewed by Brady.
  21383. Added Windows side of MIME Type registry, and updated
  21384. objectContentType and ImageWin to make use of it
  21385. This fixes <rdar://problem/4791483>
  21386. * WebCore.vcproj/WebCore.vcproj:
  21387. * loader/win/FrameLoaderWin.cpp:
  21388. (WebCore::FrameLoader::objectContentType):
  21389. * platform/win/ImageWin.cpp:
  21390. * platform/win/MimeTypeRegistryWin.cpp: Added.
  21391. (WebCore::getMIMETypeForUTI):
  21392. (WebCore::mimeTypeForExtension):
  21393. (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
  21394. 2006-11-09 Lou Amadio <lamadio@apple.com>
  21395. Reviewed by mjs
  21396. Corrected positioning of text for find overlay on subframes
  21397. * bridge/win/FrameWin.cpp:
  21398. (WebCore::FrameWin::imageFromRect):
  21399. 2006-11-08 Lou Amadio <lamadio@apple.com>
  21400. Reviewed by ggaren
  21401. Moved CookieJar to OpenSourceWin
  21402. Ported CookieJar to CFNetwork
  21403. Corrected an uninitialized variable which crashed on Vista in the Wininet code
  21404. * WebCore.vcproj/WebCore.vcproj:
  21405. * platform/network/win/CookieJarWin.cpp:
  21406. (WebCore::setCookies):
  21407. (WebCore::cookies):
  21408. 2006-11-08 Maciej Stachowiak <mjs@apple.com>
  21409. Reviewed by Geoff.
  21410. - added ResourceError class and didFailWithError client method
  21411. * plugins/win/PluginStreamWin.cpp:
  21412. (WebCore::PluginStreamWin::didFailLoadingWithError):
  21413. (WebCore::PluginStreamWin::didFinishLoading):
  21414. * plugins/win/PluginStreamWin.h:
  21415. 2006-11-08 Geoffrey Garen <ggaren@apple.com>
  21416. Reviewed by Anders Carlsson.
  21417. Updated Windows to use the new platform abstraction for Screen.
  21418. * WebCore.vcproj/WebCore.vcproj:
  21419. * platform/win/PopupMenuWin.cpp:
  21420. (WebCore::PopupMenu::calculatePositionAndSize):
  21421. * platform/win/ScreenWin.cpp:
  21422. (WebCore::monitorInfoForWidget):
  21423. (WebCore::deviceInfoForWidget):
  21424. (WebCore::screenDepth):
  21425. (WebCore::screenDepthPerComponent):
  21426. (WebCore::screenIsMonochrome):
  21427. (WebCore::screenRect):
  21428. (WebCore::screenAvailableRect):
  21429. 2006-11-09 Darin Adler <darin@apple.com>
  21430. - fix the build
  21431. * bridge/win/FrameWin.h: Add a forward declaration of FormData.
  21432. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::keyPress):
  21433. Call resetMultipleFormSubmissionProtection instead of prepareForUserAction.
  21434. * platform/win/TemporaryLinkStubs.cpp: Remove the parameter from the
  21435. TextField constructor.
  21436. 2006-11-08 Steve Falkenburg <sfalken@apple.com>
  21437. Rubber stamped by Adam.
  21438. Windows buildbot fix.
  21439. Remove /d from xcopy commands that merge opensource/internal components.
  21440. Sync debug and release post-build event.
  21441. * WebCore.vcproj/WebCore.vcproj:
  21442. 2006-11-07 Ada Chan <adachan@apple.com>
  21443. Reviewed by Steve.
  21444. Make the Slider implementation call LOG_NOIMPL() instead of STOP_NOIMPL() so the RSS feed page can load.
  21445. * platform/win/TemporaryLinkStubs.cpp:
  21446. (Slider::Slider):
  21447. (Slider::sizeHint):
  21448. (Slider::setValue):
  21449. (Slider::setMaxValue):
  21450. (Slider::setMinValue):
  21451. (Slider::~Slider):
  21452. (Slider::setFont):
  21453. (Slider::value):
  21454. 2006-11-07 Lou Amadio <lamadio@apple.com>
  21455. Reviewed by sfalken, adam
  21456. Implemented Find banner, overlay, bouncy.
  21457. plummed some find, search and marking in WebCore & WebKit
  21458. Added SDC - a DC wrapper with knowledge of CG
  21459. Added button element
  21460. Ported AppKit's oval button drawing code
  21461. Abstracted the high performance animations
  21462. * bridge/win/FrameWin.cpp:
  21463. (WebCore::FrameWin::imageFromRect):
  21464. (WebCore::FrameWin::imageFromSelection):
  21465. * bridge/win/FrameWin.h:
  21466. * platform/win/GraphicsContextWin.cpp:
  21467. (WebCore::GraphicsContext::setCompositeOperation):
  21468. * platform/win/TemporaryLinkStubs.cpp:
  21469. (Frame::setNeedsReapplyStyles):
  21470. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  21471. Build fixes.
  21472. * WebCore.vcproj/WebCore.vcproj:
  21473. * platform/win/TemporaryLinkStubs.cpp:
  21474. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  21475. * loader/win/FrameLoaderWin.cpp:
  21476. (WebCore::FrameLoader::partClearedInBegin):
  21477. Use m_frame instead of this, include the correct files.
  21478. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  21479. (I'm not doing this to get commit 11000)
  21480. * loader/win/FrameLoaderWin.cpp:
  21481. (WebCore::FrameLoader::partClearedInBegin):
  21482. It's m_frame, not frame.
  21483. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  21484. It's FrameLoader, not FrameWin.
  21485. * loader/win/FrameLoaderWin.cpp:
  21486. (WebCore::FrameLoader::partClearedInBegin):
  21487. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  21488. A blind attempt at fixing the build.
  21489. * bridge/win/FrameWin.cpp:
  21490. * loader/win/FrameLoaderWin.cpp:
  21491. (WebCore::FrameWin::partClearedInBegin):
  21492. * platform/win/TemporaryLinkStubs.cpp:
  21493. (FrameLoader::restoreDocumentState):
  21494. 2006-11-07 Geoffrey Garen <ggaren@apple.com>
  21495. Reviewed by Anders.
  21496. Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
  21497. None of Screen's responsibilities require up-calls to WebKit or delegates,
  21498. so WebCore can handle it all.
  21499. Moved Screen back from page/ to platform/ because it's a platform
  21500. abstraction again.
  21501. Fixed bug where Screen would query the default screen instead of the screen
  21502. on which the active window was located. (The code is written in Klingon,
  21503. but that's cool.)
  21504. Implemented some missing screen functionality on Win.
  21505. I can't fully verify this code because I can't load files without crashing
  21506. in CFNetwork, but I exercised most of it with javascript: URLs and the
  21507. debugger reported reasonable values.
  21508. * WebCore.vcproj/WebCore.vcproj:
  21509. * platform/win/ScreenWin.cpp: Added. Merged over from opensource tree.
  21510. (WebCore::getWindow):
  21511. (WebCore::getMonitorInfo):
  21512. (WebCore::getDeviceInfo):
  21513. (WebCore::Screen::depth):
  21514. (WebCore::Screen::depthPerComponent):
  21515. (WebCore::Screen::isMonochrome):
  21516. (WebCore::Screen::rect):
  21517. (WebCore::Screen::usableRect):
  21518. 2006-11-07 Darin Adler <darin@apple.com>
  21519. Reviewed by Geoff.
  21520. - moved loader code from Frame/FrameMac to FrameLoader
  21521. * WebCore.vcproj/WebCore.vcproj:
  21522. * bridge/win/FrameWin.cpp:
  21523. (WebCore::FrameWin::FrameWin):
  21524. (WebCore::FrameWin::~FrameWin):
  21525. * bridge/win/FrameWin.h:
  21526. * loader/win/FrameLoaderWin.cpp: Added.
  21527. (WebCore::FrameLoader::submitForm):
  21528. (WebCore::FrameLoader::urlSelected):
  21529. (WebCore::FrameLoader::originalRequestURL):
  21530. (WebCore::FrameLoader::didFirstLayout):
  21531. (WebCore::FrameLoader::objectContentType):
  21532. (WebCore::FrameLoader::createPlugin):
  21533. (WebCore::FrameLoader::createFrame):
  21534. (WebCore::FrameLoader::detachFromParent):
  21535. (WebCore::FrameLoader::createJavaAppletWidget):
  21536. (WebCore::FrameLoader::setTitle):
  21537. * platform/win/TemporaryLinkStubs.cpp:
  21538. (FrameWin::markMisspellings):
  21539. (FrameWin::respondToChangedSelection):
  21540. (FrameWin::clearUndoRedoOperations):
  21541. (IconLoader::notifyIconChanged):
  21542. (PolicyCheck::PolicyCheck):
  21543. (PolicyCheck::clear):
  21544. (PolicyCheck::call):
  21545. (PolicyCheck::clearRequest):
  21546. (FrameLoader::saveDocumentState):
  21547. (FrameLoader::restoreDocumentState):
  21548. (FrameLoader::partClearedInBegin):
  21549. (FrameLoader::goBackOrForward):
  21550. (FrameLoader::historyURL):
  21551. (FrameLoader::canGoBackOrForward):
  21552. (FrameLoader::getHistoryLength):
  21553. (DocumentLoader::setupForReplaceByMIMEType):
  21554. (ResourceLoader::cancel):
  21555. (DocumentLoader::stopLoading):
  21556. (DocumentLoader::setLoading):
  21557. (DocumentLoader::updateLoading):
  21558. (DocumentLoader::setFrame):
  21559. (DocumentLoader::stopRecordingResponses):
  21560. (DocumentLoader::isStopping):
  21561. (DocumentLoader::setPrimaryLoadComplete):
  21562. (DocumentLoader::finishedLoading):
  21563. (DocumentLoader::URL):
  21564. (DocumentLoader::isLoadingInAPISense):
  21565. (DocumentLoader::frameLoader):
  21566. (FrameLoader::overrideMediaType):
  21567. (FrameLoader::redirectDataToPlugin):
  21568. (FrameLoader::checkLoadCompleteForThisFrame):
  21569. (FrameLoader::loadEmptyDocumentSynchronously):
  21570. (FrameLoader::startLoading):
  21571. (FrameLoader::referrer):
  21572. * plugins/win/PluginViewWin.cpp:
  21573. (WebCore::PluginViewWin::performRequest):
  21574. (WebCore::PluginViewWin::userAgent):
  21575. 2006-11-07 Anders Carlsson <acarlsson@apple.com>
  21576. Reviewed by Oliver.
  21577. Let the Frame client know when the window object is available.
  21578. * bridge/win/FrameWin.cpp:
  21579. (WebCore::FrameWin::partClearedInBegin):
  21580. * bridge/win/FrameWin.h:
  21581. * platform/win/TemporaryLinkStubs.cpp:
  21582. (FrameWin::unfocusWindow):
  21583. (FrameWin::markMisspellings):
  21584. (FrameWin::restoreDocumentState):
  21585. 2006-11-07 Adam Roben <aroben@apple.com>
  21586. Build fix.
  21587. * platform/win/TemporaryLinkStubs.cpp: Remove no-longer-needed stub.
  21588. 2006-11-07 Steve Falkenburg <sfalken@apple.com>
  21589. Fixes for B&I submission
  21590. * WebCore.vcproj/WebCore.vcproj:
  21591. * WebCore.vcproj/merge-opensource.sh:
  21592. 2006-11-06 Kevin McCullough <kmccullough@apple.com>
  21593. -Fix test fields accepting text.
  21594. * WebCore.vcproj/WebCore.vcproj:
  21595. 2006-11-06 Anders Carlsson <acarlsson@apple.com>
  21596. Reviewed by Dave Hyatt.
  21597. <rdar://problem/4778180>
  21598. wikipedia.org crashes when loading
  21599. * platform/win/GlyphMapWin.cpp:
  21600. (WebCore::GlyphMap::fillPage):
  21601. Don't call GetGlyphIndices on buffers larger than the page size. GetGlyphIndicies doesn't know anything about
  21602. Unicode supplementary characters and will overwrite the local buffer if the passed-in buffer is bigger than the page size.
  21603. 2006-11-06 Anders Carlsson <acarlsson@apple.com>
  21604. Fork GlyphMapWin.cpp
  21605. * platform/win/GlyphMapWin.cpp: Added.
  21606. (WebCore::GlyphMap::fillPage):
  21607. 2006-11-06 Geoffrey Garen <ggaren@apple.com>
  21608. Reviewed by Darin.
  21609. Hooked up the Chrome and Screen clients on Windows.
  21610. * WebCore.vcproj/WebCore.vcproj:
  21611. * bridge/win/PageWin.cpp:
  21612. * platform/win/PopupMenuWin.cpp:
  21613. (WebCore::PopupMenu::calculatePositionAndSize):
  21614. * platform/win/TemporaryLinkStubs.cpp:
  21615. 2006-11-06 Anders Carlsson <acarlsson@apple.com>
  21616. Reviewed by Maciej.
  21617. Copy npfunctions.h to WebKitOutputDir.
  21618. * WebCore.vcproj/WebCore.vcproj:
  21619. 2006-11-06 Steve Falkenburg <sfalken@apple.com>
  21620. Fix double-include of FormData.cpp/.h.
  21621. * WebCore.vcproj/WebCore.vcproj:
  21622. 2006-11-06 Maciej Stachowiak <mjs@apple.com>
  21623. - build fixes, adjusted for file move
  21624. * WebCore.vcproj/WebCore.vcproj:
  21625. 2006-11-05 Beth Dakin <bdakin@apple.com>
  21626. Reviewed by Steve and Anders.
  21627. Add client() fucntion to FrameWin to return the FrameClient.
  21628. * bridge/win/FrameWin.h:
  21629. (WebCore::FrameWin::client):
  21630. 2006-11-05 Steve Falkenburg <sfalken@apple.com>
  21631. Fix build
  21632. * WebCore.vcproj/WebCore.vcproj:
  21633. 2006-11-05 Steve Falkenburg <sfalken@apple.com>
  21634. Fix build breaks
  21635. * bridge/win/FrameWin.cpp:
  21636. * bridge/win/PageWin.cpp:
  21637. 2006-11-04 Darin Adler <darin@apple.com>
  21638. Reviewed by Maciej.
  21639. * bridge/win/FrameWin.h:
  21640. * bridge/win/FrameWin.cpp:
  21641. (WebCore::FrameWin::urlSelected): Updated for change of const Event* to Event*.
  21642. (WebCore::FrameWin::submitForm): Added Event* parameter.
  21643. 2006-11-03 Maciej Stachowiak <mjs@apple.com>
  21644. Reviewed by Adele.
  21645. - replaced receivedRedirect with new willSendRequest delegate
  21646. - removed most mac-specific loader functions
  21647. - use ResourceResponse more in loader code
  21648. * WebCore.vcproj/WebCore.vcproj: Added new files
  21649. * platform/win/TemporaryLinkStubs.cpp: Removed unneeded link stubs
  21650. 2006-11-03 Steve Falkenburg <sfalken@apple.com>
  21651. Fix build
  21652. * config.h: Touched to cause re-build w/ SVG_SUPPORT enabled
  21653. * platform/win/TemporaryLinkStubs.cpp:
  21654. (WebCore::CachedResource::setResponse): Added
  21655. 2006-11-03 Adele Peterson <adele@apple.com>
  21656. Reviewed by Oliver.
  21657. Removed DeprecatedRenderSelect and ListBox classes.
  21658. * WebCore.vcproj/WebCore.vcproj:
  21659. * platform/win/TemporaryLinkStubs.cpp:
  21660. 2006-11-03 Anders Carlsson <acarlsson@apple.com>
  21661. Remove SVGRenderAsText files from the project.
  21662. * WebCore.vcproj/WebCore.vcproj:
  21663. 2006-11-03 Anders Carlsson <acarlsson@apple.com>
  21664. Build fix.
  21665. * platform/win/TemporaryLinkStubs.cpp:
  21666. (WebCore::CachedResource::setPlatformResponse):
  21667. 2006-11-03 Geoffrey Garen <ggaren@apple.com>
  21668. Reviewed by Darin, Beth.
  21669. Updated to use ChromeClient.
  21670. * WebCore.vcproj/WebCore.vcproj:
  21671. * bridge/win/PageWin.cpp:
  21672. * loader/win/ResourceLoaderWin.cpp: Added.
  21673. (WebCore::ResourceLoader::loadsBlocked):
  21674. * platform/win/TemporaryLinkStubs.cpp:
  21675. 2006-11-02 Anders Carlsson <acarlsson@apple.com>
  21676. Reviewed by Oliver.
  21677. * WebCore.vcproj/WebCore.vcproj:
  21678. Use the forked CursorWin.cpp
  21679. * platform/win/CursorWin.cpp:
  21680. (WebCore::moveCursor):
  21681. Implement this.
  21682. * platform/win/TemporaryLinkStubs.cpp:
  21683. Get rid of it here.
  21684. 2006-11-02 Anders Carlsson <acarlsson@apple.com>
  21685. Reviewed by Oliver.
  21686. Add forked copy of CursorWin.cpp
  21687. * platform/win/CursorWin.cpp: Added.
  21688. 2006-11-01 Oliver Hunt <oliver@apple.com>
  21689. Reviewed by Adam.
  21690. Adding SVG_SUPPORT to Boomer.
  21691. * WebCore.vcproj/WebCore.vcproj:
  21692. * WebCore.vcproj/build-generated-files.sh:
  21693. * kcanvas/device/quartz/KCanvasFilterQuartz.cpp: Added.
  21694. (WebCore::KCanvasFilterQuartz::KCanvasFilterQuartz):
  21695. (WebCore::KCanvasFilterQuartz::~KCanvasFilterQuartz):
  21696. (WebCore::KCanvasFilterQuartz::prepareFilter):
  21697. (WebCore::KCanvasFilterQuartz::applyFilter):
  21698. (WebCore::KCanvasFilterQuartz::imageForName):
  21699. (WebCore::KCanvasFilterQuartz::setImageForName):
  21700. (WebCore::KCanvasFilterQuartz::setOutputImage):
  21701. (WebCore::KCanvasFilterQuartz::inputImage):
  21702. * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: Added.
  21703. (WebCore::SVGResourceMasker::applyMask):
  21704. 2006-11-01 Beth Dakin <bdakin@apple.com>
  21705. Reviewed by Adam.
  21706. Build fix from Sam Weinig's check-in. i.p in the PaintInfo is now
  21707. i.context
  21708. * rendering/RenderThemeWin.cpp:
  21709. (WebCore::RenderThemeWin::paintButton):
  21710. (WebCore::RenderThemeWin::paintTextField):
  21711. (WebCore::RenderThemeWin::paintMenuList):
  21712. (WebCore::RenderThemeWin::paintMenuListButton):
  21713. 2006-11-01 Anders Carlsson <acarlsson@apple.com>
  21714. Reviewed by Geoff.
  21715. * bridge/win/FrameWin.cpp:
  21716. (WebCore::FrameWin::createJavaAppletWidget):
  21717. Ask the plugin database to create a java applet plugin.
  21718. * platform/win/TemporaryLinkStubs.cpp:
  21719. Remove FrameWin::createJavaAppletWidget.
  21720. * plugins/win/PluginDatabaseWin.cpp:
  21721. (WebCore::PluginDatabaseWin::defaultPluginPaths):
  21722. Don't look for the Sun Java plugin anymore.
  21723. 2006-11-01 Anders Carlsson <acarlsson@apple.com>
  21724. * plugins/win/PluginStreamWin.cpp:
  21725. (WebCore::PluginStreamWin::startStream):
  21726. Build fix.
  21727. 2006-11-01 Anders Carlsson <acarlsson@apple.com>
  21728. Reviewed by Adam.
  21729. Convert plugin code over to using ResourceResponse.
  21730. * plugins/win/PluginStreamWin.cpp:
  21731. (WebCore::PluginStreamWin::startStream):
  21732. (WebCore::PluginStreamWin::didReceiveResponse):
  21733. (WebCore::PluginStreamWin::didFinishLoading):
  21734. * plugins/win/PluginStreamWin.h:
  21735. * plugins/win/PluginViewWin.cpp:
  21736. (WebCore::PluginViewWin::performRequest):
  21737. 2006-10-31 Steve Falkenburg <sfalken@apple.com>
  21738. Yet more B&I build fixes
  21739. Another missing .h file from the vcproj
  21740. * WebCore.vcproj/WebCore.vcproj:
  21741. 2006-10-31 Steve Falkenburg <sfalken@apple.com>
  21742. Another fix for B&I submission
  21743. (missing .h files from the WebCore vcproj prevents proper merging of OpenSource/Internal WebCore trees)
  21744. * WebCore.vcproj/WebCore.vcproj:
  21745. 2006-10-31 Steve Falkenburg <sfalken@apple.com>
  21746. Remove extra files I accidently added
  21747. * WebCore.vcproj/WebCore.vcproj:
  21748. 2006-10-31 Steve Falkenburg <sfalken@apple.com>
  21749. Build fixes for submission merge script
  21750. * WebCore.vcproj/WebCore.vcproj:
  21751. 2006-10-31 Adam Roben <aroben@apple.com>
  21752. Build fixes.
  21753. * WebCore.vcproj/WebCore.vcproj: Add new platform/graphics directory to
  21754. our include path, and copy headers from there for WebKit's benefit.
  21755. * bridge/win/FrameWin.cpp: Update accessors of FrameLoadRequest.
  21756. (WebCore::FrameWin::urlSelected):
  21757. (WebCore::FrameWin::submitForm):
  21758. * plugins/win/PluginViewWin.cpp: Ditto.
  21759. (WebCore::PluginViewWin::start):
  21760. (WebCore::PluginViewWin::performRequest):
  21761. (WebCore::PluginViewWin::load):
  21762. (WebCore::PluginViewWin::getURLNotify):
  21763. (WebCore::PluginViewWin::getURL):
  21764. (WebCore::PluginViewWin::handlePost):
  21765. * plugins/win/PluginViewWin.h: Correct forward declaration of
  21766. FrameLoadRequest.
  21767. 2006-10-30 Darin Adler <darin@apple.com>
  21768. Reviewed by Anders.
  21769. - remove BrowserExtension
  21770. * WebCore.vcproj/WebCore.vcproj:
  21771. * bridge/win/FrameWin.cpp:
  21772. (WebCore::FrameWin::FrameWin):
  21773. * platform/win/TemporaryLinkStubs.cpp:
  21774. * plugins/win/PluginViewWin.cpp:
  21775. (WebCore::PluginViewWin::performRequest):
  21776. 2006-10-30 Anders Carlsson <acarlsson@apple.com>
  21777. Reviewed by Adam.
  21778. If there's no plug-in for a given mime type, or if the plug-in fails
  21779. to initialize, draw the "missing plug-in" icon.
  21780. * plugins/win/PluginDatabaseWin.cpp:
  21781. (WebCore::PluginDatabaseWin::createPluginView):
  21782. If no plug-in can be found, create a null plugin view.
  21783. * plugins/win/PluginViewWin.cpp:
  21784. (WebCore::PluginViewWin::paint):
  21785. If the plugin hasn't been started, paint the missing plugin image.
  21786. (WebCore::PluginViewWin::setNPWindowSize):
  21787. Return early if the plugin hasn't been started.
  21788. (WebCore::PluginViewWin::start):
  21789. Return if the plugin couldn't be created.
  21790. (WebCore::PluginViewWin::createNullPluginView):
  21791. New function which just creates a plugin view and doesn't try to start its plugin
  21792. (because there is none).
  21793. (WebCore::PluginViewWin::PluginViewWin):
  21794. New constructor for the null plugin view.
  21795. 2006-10-31 Darin Adler <darin@apple.com>
  21796. Reviewed by Adam.
  21797. * WebCore.vcproj/WebCore.vcproj: Added new source files from the
  21798. loader directory.
  21799. 2006-10-29 Maciej Stachowiak <mjs@apple.com>
  21800. Reviewed by Anders.
  21801. - added ResourceResponse class and didReceiveResponse delegate call
  21802. * WebCore.vcproj/WebCore.vcproj: Added new files.
  21803. * platform/win/TemporaryLinkStubs.cpp:
  21804. (WebCore::ServeSynchronousRequest): Changed prototype to match
  21805. new version.
  21806. 2006-10-29 Darin Adler <darin@apple.com>
  21807. - update for the WebCore renames
  21808. * WebCore.vcproj/WebCore.vcproj:
  21809. * bridge/win/FrameWin.cpp:
  21810. (WebCore::FrameWin::bindingRootObject):
  21811. (WebCore::FrameWin::windowScriptNPObject):
  21812. * plugins/win/PluginViewWin.cpp:
  21813. (WebCore::PluginViewWin::load):
  21814. (WebCore::PluginViewWin::bindingInstance):
  21815. 2006-10-29 Maciej Stachowiak <mjs@apple.com>
  21816. Rubber stamped by Darin.
  21817. - renamed ResourceLoader to ResourceHandle (and same for related classes)
  21818. * WebCore.vcproj/WebCore.vcproj:
  21819. * bridge/win/FrameWin.cpp:
  21820. * platform/network/win/ResourceHandleWin.cpp: Added.
  21821. (WebCore::):
  21822. (WebCore::addToOutstandingJobs):
  21823. (WebCore::lookupResourceHandle):
  21824. (WebCore::ResourceHandleWndProc):
  21825. (WebCore::ResourceHandle::onHandleCreated):
  21826. (WebCore::ResourceHandle::onRequestRedirected):
  21827. (WebCore::ResourceHandle::onRequestComplete):
  21828. (WebCore::initializeOffScreenResourceHandleWindow):
  21829. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  21830. (WebCore::ResourceHandle::~ResourceHandle):
  21831. (WebCore::ResourceHandle::startHTTPRequest):
  21832. (WebCore::ResourceHandle::start):
  21833. (WebCore::ResourceHandle::fileLoadTimer):
  21834. (WebCore::ResourceHandle::cancel):
  21835. * platform/network/win/ResourceHandleWin.h: Added.
  21836. * platform/network/win/ResourceLoaderWin.cpp: Removed.
  21837. * platform/network/win/ResourceLoaderWin.h: Removed.
  21838. * platform/win/TemporaryLinkStubs.cpp:
  21839. (WebCore::ResourceHandle::assembleResponseHeaders):
  21840. (WebCore::ResourceHandle::retrieveResponseEncoding):
  21841. (IconLoader::receivedResponse):
  21842. * plugins/win/PluginStreamWin.cpp:
  21843. (WebCore::PluginStreamWin::start):
  21844. (WebCore::PluginStreamWin::deliverData):
  21845. (WebCore::PluginStreamWin::receivedResponse):
  21846. (WebCore::PluginStreamWin::didReceiveData):
  21847. (WebCore::PluginStreamWin::receivedAllData):
  21848. * plugins/win/PluginStreamWin.h:
  21849. 2006-10-28 Adam Roben <aroben@apple.com>
  21850. Build fix.
  21851. * WebCore.vcproj/WebCore.vcproj: Adding new HitTestResult.{cpp,h}
  21852. files.
  21853. 2006-10-27 Anders Carlsson <acarlsson@apple.com>
  21854. Reviewed by Oliver.
  21855. <rdar://problem/4730678> Plug-ins should be able to open URLs
  21856. * plugins/win/PluginViewWin.cpp:
  21857. (WebCore::PluginViewWin::performRequest):
  21858. 2006-10-26 Anders Carlsson <acarlsson@apple.com>
  21859. Reviewed by John Sullivan.
  21860. <rdar://problem/4764502> PluginStreams should cancel their loader jobs on error
  21861. * plugins/win/PluginStreamWin.cpp:
  21862. (WebCore::PluginStreamWin::receivedResponse):
  21863. (WebCore::PluginStreamWin::didReceiveData):
  21864. (WebCore::PluginStreamWin::receivedAllData):
  21865. Modify assertions. None of the above functions should be run after aborting the load.
  21866. 2006-10-26 Anders Carlsson <acarlsson@apple.com>
  21867. Reviewed by Adam.
  21868. * plugins/win/PluginDatabaseWin.cpp:
  21869. (WebCore::addPluginPath):
  21870. (WebCore::PluginDatabaseWin::defaultPluginPaths):
  21871. Look for plugins in a plugins directory which is relative to the executable directory.
  21872. (WebCore::PluginDatabaseWin::createPluginView):
  21873. Use reverseFind instead of findRev here.
  21874. 2006-10-26 Adam Roben <aroben@apple.com>
  21875. Reviewed by Beth.
  21876. Fix: <rdar://problem/4799084> Text and dropdown button too close
  21877. together in <select>s
  21878. Fix: <rdar://problem/4800493> Popup menus should be positioned so that
  21879. their text is horizontally aligned with the <select> control's text
  21880. * platform/win/PopupMenuWin.cpp:
  21881. (WebCore::PopupMenu::calculatePositionAndSize): Switch alignment of LTR
  21882. vs. RTL popups, and add padding to align the text.
  21883. (WebCore::PopupMenu::paint): Add padding from the <select> control to
  21884. align the text with the <select> control's text.
  21885. * rendering/RenderThemeWin.cpp: Set svn:eol-style native.
  21886. (WebCore::RenderThemeWin::systemFont): Clean up line endings.
  21887. (WebCore::RenderThemeWin::adjustMenuListButtonStyle): Add some extra
  21888. padding between the dropdown button and text.
  21889. (WebCore::RenderThemeWin::paintMenuListButton): Clean up code a bit.
  21890. 2006-10-26 Adam Roben <aroben@apple.com>
  21891. Forgot to make the change to Release as well in my last checkin.
  21892. * WebCore.vcproj/WebCore.vcproj:
  21893. 2006-10-26 Adam Roben <aroben@apple.com>
  21894. Rubberstamped by Steve.
  21895. Add some missing '/d' flags to xcopy calls to only copy headers if
  21896. they've been modified.
  21897. * WebCore.vcproj/WebCore.vcproj:
  21898. 2006-10-26 Anders Carlsson <acarlsson@apple.com>
  21899. * platform/win/TemporaryLinkStubs.cpp:
  21900. (GraphicsContext::drawLineForMisspellingOrBadGrammar):
  21901. Build fix from Oliver.
  21902. 2006-10-26 Anders Carlsson <acarlsson@apple.com>
  21903. Reviewed by Adam.
  21904. Use FrameLoadRequest and ResourceRequest instead of passing around
  21905. the individual components.
  21906. * plugins/win/PluginStreamWin.cpp:
  21907. (WebCore::PluginStreamWin::PluginStreamWin):
  21908. (WebCore::PluginStreamWin::start):
  21909. (WebCore::PluginStreamWin::destroyStream):
  21910. * plugins/win/PluginStreamWin.h:
  21911. * plugins/win/PluginViewWin.cpp:
  21912. (WebCore::PluginRequestWin::PluginRequestWin):
  21913. (WebCore::PluginRequestWin::frameLoadRequest):
  21914. (WebCore::PluginViewWin::start):
  21915. (WebCore::PluginViewWin::performRequest):
  21916. (WebCore::PluginViewWin::load):
  21917. (WebCore::PluginViewWin::getURLNotify):
  21918. (WebCore::PluginViewWin::getURL):
  21919. (WebCore::PluginViewWin::handlePost):
  21920. * plugins/win/PluginViewWin.h:
  21921. 2006-10-26 Adam Roben <aroben@apple.com>
  21922. Reviewed by Adele.
  21923. Fix: <rdar://problem/4794162> Implement type-ahead find for popup menus
  21924. Fix: <rdar://problem/4800486> Pressing TAB while a popup is focused
  21925. should close the popup and move selection in the page
  21926. * platform/win/PopupMenuWin.cpp:
  21927. (WebCore::PopupMenu::PopupMenu): Don't cache the focused index.
  21928. (WebCore::PopupMenu::focusedIndex): Always get the focused index from
  21929. the HTMLSelectElement.
  21930. (WebCore::PopupMenu::setFocusedIndex): Invalidate before calling
  21931. valueChanged(), as this will change the result of focusedIndex().
  21932. (WebCore::PopupMenu::scrollToRevealSelection):
  21933. (WebCore::PopupMenu::updateFromElement): New method to repaint/rescroll
  21934. the popup.
  21935. (WebCore::PopupWndProc): Send TAB keypresses and printable characters
  21936. back to the WebView for handling. Also omove handling of Return/Escape
  21937. into the WM_CHAR event, as this is recommended by MSDN.
  21938. 2006-10-25 Steve Falkenburg <sfalken@apple.com>
  21939. Reviewed by Darin.
  21940. Checked in Luke's CG printing code
  21941. * bridge/win/FrameWin.cpp:
  21942. (WebCore::FrameWin::setupRootForPrinting): Added
  21943. (WebCore::FrameWin::computePageRects): Added
  21944. * bridge/win/FrameWin.h: Added setupRootForPrinting, computePageRects
  21945. 2006-10-24 Maciej Stachowiak <mjs@apple.com>
  21946. Reviewed by Oliver.
  21947. - updated for ResourceRequest changes.
  21948. * plugins/win/PluginStreamWin.cpp:
  21949. (WebCore::PluginStreamWin::setRequestHeaders):
  21950. * plugins/win/PluginStreamWin.h:
  21951. * plugins/win/PluginViewWin.cpp:
  21952. (WebCore::PluginViewWin::loadURL):
  21953. (WebCore::parseRFC822HeaderFields):
  21954. (WebCore::PluginViewWin::handlePost):
  21955. * plugins/win/PluginViewWin.h:
  21956. 2006-10-24 Steve Falkenburg <sfalken@apple.com>
  21957. Build fix for official builds
  21958. * WebCore.vcproj/WebCore.make:
  21959. 2006-10-24 Steve Falkenburg <sfalken@apple.com>
  21960. Fix build so it can be submitted.
  21961. * WebCore.vcproj/WebCore.vcproj:
  21962. * WebCore.vcproj/merge-opensource.sh:
  21963. * rendering/RenderThemeWin.cpp:
  21964. 2006-10-24 Geoffrey Garen <ggaren@apple.com>
  21965. Rolling back in, now fixed:
  21966. Nixed a few more redundant loading functions in Frame.
  21967. * bridge/win/FrameWin.h:
  21968. * platform/win/TemporaryLinkStubs.cpp:
  21969. (FrameWin::shouldInterruptJavaScript):
  21970. (FrameWin::lastEventIsMouseUp):
  21971. 2006-10-24 Maciej Stachowiak <mjs@apple.com>
  21972. Reviewed by Geoff.
  21973. - update for ResourceLoader API changes
  21974. * platform/win/TemporaryLinkStubs.cpp:
  21975. (WebCore::ServeSynchronousRequest):
  21976. * plugins/win/PluginStreamWin.cpp:
  21977. (WebCore::PluginStreamWin::start):
  21978. (WebCore::PluginStreamWin::receivedAllData):
  21979. * plugins/win/PluginStreamWin.h:
  21980. * plugins/win/PluginViewWin.cpp:
  21981. (WebCore::PluginViewWin::performRequest):
  21982. 2006-10-24 Geoffrey Garen <ggaren@apple.com>
  21983. Rolling out my last change because it broke the world.
  21984. * bridge/win/FrameWin.h:
  21985. * platform/win/TemporaryLinkStubs.cpp:
  21986. (FrameWin::openURL):
  21987. 2006-10-24 Anders Carlsson <acarlsson@apple.com>
  21988. Reviewed by Adam.
  21989. <rdar://problem/4760429> Crash in PluginStreamWin::~PluginStreamWin when
  21990. navigating away from mcdonalds.com
  21991. * plugins/win/PluginPackageWin.cpp:
  21992. (WebCore::PluginPackageWin::fetchInfo):
  21993. Use fastFree instead of free when memory is allocated by fastMalloc.
  21994. If the plugin name or description is null, don't try to fetch info about the plugin.
  21995. * plugins/win/PluginStreamWin.cpp:
  21996. (WebCore::PluginStreamWin::setRequestHeaders):
  21997. (WebCore::PluginStreamWin::start):
  21998. (WebCore::PluginStreamWin::stop):
  21999. * plugins/win/PluginStreamWin.h:
  22000. Change type of header map to ResourceRequest::HTTPHeaderMap. When a plugin is stopped,
  22001. set its state to StreamStopped.
  22002. * plugins/win/PluginViewWin.cpp:
  22003. (WebCore::PluginViewWin::loadURL):
  22004. (WebCore::parseRFC822HeaderFields):
  22005. (WebCore::PluginViewWin::handlePost):
  22006. * plugins/win/PluginViewWin.h:
  22007. Update for type changes to the header map.
  22008. 2006-10-24 Geoffrey Garen <ggaren@apple.com>
  22009. Reviewed by Anders.
  22010. Nixed a few more redundant loading functions in Frame.
  22011. * bridge/win/FrameWin.h:
  22012. * platform/win/TemporaryLinkStubs.cpp:
  22013. (FrameWin::shouldInterruptJavaScript):
  22014. (FrameWin::lastEventIsMouseUp):
  22015. 2006-10-23 Geoffrey Garen <ggaren@apple.com>
  22016. Reviewed by Bradee.
  22017. Removed methods from BrowserExtension.
  22018. * bridge/win/FrameWin.h:
  22019. * platform/win/TemporaryLinkStubs.cpp:
  22020. (FrameWin::canPaste):
  22021. (FrameWin::canGoBackOrForward):
  22022. (FrameWin::goBackOrForward):
  22023. (FrameWin::getHistoryLength):
  22024. (FrameWin::historyURL):
  22025. (Page::canRunModal):
  22026. (Page::canRunModalNow):
  22027. (Page::runModal):
  22028. (BrowserExtensionWin::BrowserExtensionWin):
  22029. 2006-10-23 Adam Roben <aroben@apple.com>
  22030. Reviewed by Adele.
  22031. Fix: <rdar://problem/4796994> Styled <select>s should still use Windows
  22032. theme
  22033. The fix is to do most of our drawing for menulists in
  22034. RenderThemeWin::paintMenuListButton (which is called for styled
  22035. <select>s), and then do any extra drawing for unstyled <select>s in
  22036. RenderThemeWin::paintMenuList.
  22037. * rendering/RenderThemeWin.cpp:
  22038. (WebCore::RenderThemeWin::getThemeData): Case for
  22039. MenulistButtonAppearance should be the same as MenulistAppearance.
  22040. (WebCore::RenderThemeWin::paintMenuList): Draw the border, then defer
  22041. to paintMenuListButton to handle the rest of painting.
  22042. (WebCore::RenderThemeWin::adjustMenuListStyle): Reset the border so we
  22043. can draw our own, then defer to adjustMenuListStyle.
  22044. (WebCore::RenderThemeWin::adjustMenuListButtonStyle): Code moved from
  22045. adjustMenuListStyle, less the call to resetBorder().
  22046. (WebCore::RenderThemeWin::paintMenuListButton): Code moved from
  22047. paintMenuList, less the border-drawing code.
  22048. * rendering/RenderThemeWin.h:
  22049. 2006-10-23 Adam Roben <aroben@apple.com>
  22050. Reviewed by Adele.
  22051. Fix: <rdar://problem/4786759> PageUp/PageDown/Home/End don't work in
  22052. <select> menus
  22053. * platform/win/PopupMenuWin.cpp:
  22054. (WebCore::PopupMenu::setFocusedIndex): Only call ::UpdateWindow if we
  22055. didn't scroll, because scrolling will do the update for us.
  22056. (WebCore::PopupMenu::focusFirst): New method.
  22057. (WebCore::PopupMenu::focusLast): New method.
  22058. (WebCore::PopupMenu::down): Add a parameter to specify how far we
  22059. should try to move the selection.
  22060. (WebCore::PopupMenu::up): Ditto.
  22061. (WebCore::PopupMenu::invalidateItem): Cleanup code by using IntRect
  22062. instead of RECT.
  22063. (WebCore::PopupMenu::scrollTo): Return a boolean to say whether
  22064. scrolling actually happened.
  22065. (WebCore::PopupMenu::scrollToRevealSelection): Ditto.
  22066. (WebCore::PopupWndProc): Handle PageUp/PageDown/Home/End.
  22067. 2006-10-23 Adam Roben <aroben@apple.com>
  22068. Build fix.
  22069. * WebCore.vcproj/WebCore.vcproj: Copy headers from new platform/network
  22070. directory and subdirectories.
  22071. 2006-10-23 Adam Roben <aroben@apple.com>
  22072. Build fix.
  22073. * plugins/win/PluginStreamWin.h: Rename methods to match Maciej's
  22074. changes.
  22075. 2006-10-23 Adam Roben <aroben@apple.com>
  22076. Build fix.
  22077. * WebCore.vcproj/WebCore.vcproj: Copied AdditionalIncludeDirectories
  22078. from Release to All Configurations.
  22079. 2006-10-23 Maciej Stachowiak <mjs@apple.com>
  22080. Rubber-stamped by Anders.
  22081. - fixed for ResourceLoader refactoring.
  22082. * platform/network/win/ResourceLoaderWin.cpp:
  22083. (WebCore::ResourceLoader::onRequestComplete):
  22084. (WebCore::ResourceLoader::fileLoadTimer):
  22085. (WebCore::ResourceLoader::cancel):
  22086. * plugins/win/PluginStreamWin.cpp:
  22087. (WebCore::PluginStreamWin::didReceiveData):
  22088. (WebCore::PluginStreamWin::didFinishLoading):
  22089. * plugins/win/PluginViewWin.cpp:
  22090. (WebCore::PluginViewWin::performRequest):
  22091. 2006-10-22 Maciej Stachowiak <mjs@apple.com>
  22092. Reviewed by Anders.
  22093. - updated for new ResourceLoader file locations.
  22094. * WebCore.vcproj/WebCore.vcproj: Updated file paths.
  22095. * platform/win/ResourceLoaderWin.cpp: Moved to platform/network/win
  22096. * platform/win/ResourceLoaderWin.h: ditto
  22097. 2006-10-22 Adam Roben <aroben@apple.com>
  22098. Reviewed by Steve.
  22099. Fix some crashes caused by the <select> element being detached while
  22100. the popup is open.
  22101. * platform/win/PopupMenuWin.cpp:
  22102. (WebCore::PopupWndProc):
  22103. 2006-10-21 Adam Roben <aroben@apple.com>
  22104. Reviewed by Anders.
  22105. Fix: <rdar://problem/4794151> Popup should scroll to reveal selected
  22106. item, not just one line at a time
  22107. Fix: <rdar://problem/4794229> Popup hot-tracking should not change text
  22108. in <select> control
  22109. * platform/win/PopupMenuWin.cpp:
  22110. (WebCore::PopupMenu::calculatePositionAndSize): Cleaned up code by
  22111. translating into screen coordinates right away.
  22112. (WebCore::PopupMenu::setFocusedIndex): Added parameter to specify
  22113. whether the text in the <select> control should be updated.
  22114. (WebCore::PopupMenu::scrollTo): Extracted scrolling code from
  22115. PopupWndProc to here.
  22116. (WebCore::PopupMenu::scrollToRevealSelection): New method.
  22117. (WebCore::PopupWndProc): Use scrollToRevealSelection() instead of
  22118. manually scrolling one line at a time. Fixed a bug in detecting a
  22119. mouse drag. Pass in HDC from ::BeginPaint to PopupMenu::paint.
  22120. 2006-10-21 Adam Roben <aroben@apple.com>
  22121. Build fix.
  22122. * WebCore.vcproj/WebCore.vcproj: Add new DeleteButton* files to
  22123. project.
  22124. 2006-10-20 Steve Falkenburg <sfalken@apple.com>
  22125. Reviewed by Anders.
  22126. Turn on CFNetwork
  22127. * config.h:
  22128. 2006-10-20 Steve Falkenburg <sfalken@apple.com>
  22129. Reviewed by Ada.
  22130. <rdar://4778502> Boomer userAgent string needs to support pulling in proper build #, plus customization
  22131. Useragent/versioning changes
  22132. Stamp auto-generated version number into DLL and into user agent.
  22133. Generate a real user agent string instead of hardcoding one.
  22134. Support client supplying an application name for the user agent.
  22135. Support client overriding the useragent (for debug menu).
  22136. Support per-URL user agents (not used at least for now).
  22137. * bridge/win/FrameWin.cpp:
  22138. (WebCore::FrameWin::userAgent): Now calls userAgentForURL
  22139. (WebCore::FrameWin::originalRequestURL): Implemented
  22140. * bridge/win/FrameWin.h: changed userAgent to userAgentForURL, added originalRequestURL
  22141. * platform/win/TemporaryLinkStubs.cpp: Removed originalRequestURL
  22142. 2006-10-20 Alice Liu <alice.liu@apple.com>
  22143. Reviewed by Steve.
  22144. Adding knowledge of the Editor and EditorClient to Windows WebCore
  22145. No layout tests needed
  22146. * WebCore.vcproj/WebCore.vcproj:
  22147. added Sound.h, SoundWin.cpp, EditorClient.h, Editor.h&.cpp
  22148. * bridge/win/FrameWin.cpp:
  22149. (WebCore::FrameWin::FrameWin):
  22150. added client to constructor params
  22151. * bridge/win/FrameWin.h:
  22152. added client to constructor params
  22153. * platform/win/SoundWin.cpp: Added.
  22154. (WebCore::systemBeep):
  22155. Calls windows system beep
  22156. 2006-10-19 Steve Falkenburg <sfalken@apple.com>
  22157. Reviewed by Adam.
  22158. <rdar://4771958> Holding down Ctrl when a redirect happens opens the redirected page in a new tab
  22159. Send triggering event to url selection.
  22160. * bridge/win/FrameWin.cpp:
  22161. (WebCore::FrameWin::urlSelected): Add triggeringEvent parameter
  22162. * bridge/win/FrameWin.h: Add triggeringEvent parameter
  22163. * platform/win/PlatformMouseEventWin.cpp:
  22164. (WebCore::PlatformMouseEvent::PlatformMouseEvent): Call GetKeyState instead of GetAsyncKeyState
  22165. * platform/win/WheelEventWin.cpp:
  22166. (WebCore::PlatformWheelEvent::PlatformWheelEvent): Call GetKeyState instead of GetAsyncKeyState
  22167. 2006-10-19 Adam Roben <aroben@apple.com>
  22168. Reviewed by Ada.
  22169. This is a partial reimplementation of PopupMenu for Windows. The old
  22170. implementation used the Win32 ListBox control, but as we needed to
  22171. customize the behavior more and more it began to make sense to roll our
  22172. own popup from scratch. That is what this patch accomplishes. And...
  22173. Fix: <rdar://problem/4709416>
  22174. Implement mouse hot-tracking for <select> menus
  22175. Fix: <rdar://problem/4786763>
  22176. Can select disabled options in <select> menus using mouse
  22177. (It was easier to implement these than to leave them broken.)
  22178. * WebCore.vcproj/WebCore.vcproj: Removed PopupMenu.cpp from project.
  22179. * platform/win/PopupMenuWin.cpp: Carnage. PopupMenu has gained a slew
  22180. of new private instance variables to maintain the window state.
  22181. m_container has been removed as it is no longer needed.
  22182. (WebCore::PopupMenu::PopupMenu): Initialize new variables.
  22183. (WebCore::PopupMenu::~PopupMenu): Clean up new variables.
  22184. (WebCore::PopupMenu::show): Now that we don't have m_container, m_popup
  22185. gets the WS_BORDER and WS_POPUP styles. Also moved code to animate the
  22186. window out of the old PopupMenu::setPositionAndSize() into this method
  22187. since it fits the purpose of this method better.
  22188. (WebCore::PopupMenu::hide):
  22189. (WebCore::PopupMenu::calculatePositionAndSize): Renamed from
  22190. setPositionAndSize(), as this method no longer actually sets the window
  22191. position and size, just calculates it. It also now makes sure the
  22192. window is sized to never show partial items, and takes into account the
  22193. window's border when calculating the size.
  22194. (WebCore::PopupMenu::setFocusedIndex): New method to handle setting the
  22195. selected index of the <select> and highlighting the item in the popup menu.
  22196. (WebCore::PopupMenu::down): Use setSelectedIndex() to do the dirty work.
  22197. (WebCore::PopupMenu::up): Ditto.
  22198. (WebCore::PopupMenu::invalidateItem): New method to invalidate the
  22199. rectangle in the popup menu for this item.
  22200. (WebCore::PopupMenu::clientRect): New method to calculate an IntRect
  22201. for the client area of the window.
  22202. (WebCore::PopupMenu::incrementWheelDelta): New method to add the wheel
  22203. delta obtained from a WM_MOUSEWHEEL message to any pre-existing delta.
  22204. (WebCore::PopupMenu::reduceWheelDelta): New method to reduce the
  22205. pre-existing wheel delta by a given amount towards 0.
  22206. (WebCore::PopupMenu::paint): Does the work that PopupMenu::drawItem
  22207. did, but for every item contained within the damageRect. Can also paint
  22208. into a passed-in HDC (needed for window animations and smooth-scrolling).
  22209. (WebCore::registerPopup): Changed a void* to a PopupMenu*, since that's
  22210. what it really is.
  22211. (WebCore::PopupWndProc): Added code to handle all the messages any
  22212. self-respecting window would handle, and removed messages only relevant
  22213. to the ListBox control.
  22214. * platform/win/TemporaryLinkStubs.cpp: Removed unneeded #include.
  22215. 2006-10-19 Adam Roben <aroben@apple.com>
  22216. Rubberstamped by Maciej.
  22217. Build fix.
  22218. * bridge/win/FrameWin.cpp:
  22219. (WebCore::FrameWin::submitForm):
  22220. 2006-10-19 Maciej Stachowiak <mjs@apple.com>
  22221. Reviewed by Steve.
  22222. - speculative build fix for Windows for my recent changes.
  22223. * bridge/win/FrameWin.cpp:
  22224. (WebCore::FrameWin::submitForm):
  22225. 2006-10-19 Anders Carlsson <acarlsson@apple.com>
  22226. * platform/win/TemporaryLinkStubs.cpp:
  22227. (WebCore::ResourceLoader::retrieveResponseEncoding):
  22228. Build fix.
  22229. 2006-10-18 Maciej Stachowiak <mjs@apple.com>
  22230. Reviewed by Geoff.
  22231. - remove remnants of KXMLCore name.
  22232. * WebCore.vcproj/WebCore.vcproj:
  22233. * config.h:
  22234. 2006-10-18 Steve Falkenburg <sfalken@apple.com>
  22235. Fix build
  22236. * platform/win/TemporaryLinkStubs.cpp:
  22237. (BrowserExtensionWin::historyURL):
  22238. (BrowserExtensionWin::BrowserExtensionWin):
  22239. 2006-10-17 Steve Falkenburg <sfalken@apple.com>
  22240. Build fix
  22241. * platform/win/TemporaryLinkStubs.cpp:
  22242. (BrowserExtensionWin::createNewWindow):
  22243. 2006-10-17 Geoffrey Garen <ggaren@apple.com>
  22244. Reviewed by Anders.
  22245. Added WindowFeatures.h to the project.
  22246. * WebCore.vcproj/WebCore.vcproj:
  22247. 2006-10-17 Steve Falkenburg <sfalken@apple.com>
  22248. Reviewed by Maciej.
  22249. Turn off a very noisy warning (unknown pragma) caused by an Interfacer include
  22250. * WebCore.vcproj/WebCore.vcproj:
  22251. 2006-10-17 Oliver Hunt <oliver@apple.com>
  22252. Reviewed by Brady.
  22253. Fixed alpha in favicons, added composite operation conversion
  22254. for cg
  22255. rdar://problem/4758934
  22256. * platform/win/GraphicsContextWin.cpp:
  22257. (WebCore::GraphicsContext::setCompositeOperation):
  22258. * platform/win/ImageWin.cpp:
  22259. (WebCore::Image::getHBITMAP):
  22260. * platform/win/TemporaryLinkStubs.cpp:
  22261. (GraphicsContext::drawLineForMisspelling):
  22262. 2006-10-15 Geoffrey Garen <ggaren@apple.com>
  22263. Reviewed by Adam.
  22264. Added HTMLFrameElementBase to the project.
  22265. * WebCore.vcproj/WebCore.vcproj:
  22266. 2006-10-17 Adam Roben <aroben@apple.com>
  22267. Reviewed by Geoff.
  22268. A couple of cleanups that Geoff suggested after my last checkin.
  22269. * platform/win/PopupMenuWin.cpp:
  22270. (WebCore::PopupMenu::setPositionAndSize):
  22271. 2006-10-17 Adam Roben <aroben@apple.com>
  22272. Reviewed by Adele.
  22273. Fix: <rdar://problem/4772506> <select> popup menu should not clip items
  22274. when width: is set.
  22275. Popups are now sized and positioned as follows:
  22276. 1. Popups are at least as wide as the <select> control on the page.
  22277. 2. Popups for LTR <select>s are right-aligned with the <select>, popups
  22278. for RTL <select>s are left-aligned. This means the scrollbar in the
  22279. popup will always line up with the dropdown button in the <select>.
  22280. 3. Popups try to be wide enough to fit their widest item, but will
  22281. shrink to ensure they don't extend off the screen.
  22282. * platform/win/PopupMenuWin.cpp:
  22283. (WebCore::PopupMenu::setPositionAndSize):
  22284. 2006-10-16 Adam Roben <aroben@apple.com>
  22285. Reviewed by Kevin.
  22286. Fix: <rdar://problem/4758923> <select> menu text doesn't draw right
  22287. aligned on right-to-left sites
  22288. * platform/win/PopupMenuWin.cpp:
  22289. (WebCore::PopupMenu::show): Pass appropriate styles to CreateWindowEx
  22290. so that we get a left-aligned scrollbar in RTL popups.
  22291. (WebCore::PopupMenu::drawItem): Set text to be right-aligned and draw
  22292. RTL when direction:rtl is set.
  22293. (WebCore::PopupWndProc): Add 1px of vertical height to each menu item
  22294. to match RenderListBox.
  22295. * rendering/RenderThemeWin.cpp:
  22296. (WebCore::RenderThemeWin::paintMenuList): Draw the dropdown button on
  22297. the left when in RTL.
  22298. (WebCore::RenderThemeWin::adjustMenuListStyle): Set padding to allow
  22299. for the dropdown button being on the left in RTL.
  22300. 2006-10-16 Adam Roben <aroben@apple.com>
  22301. Reviewed by John.
  22302. Forgot to save these changes John suggested before checking in.
  22303. * platform/win/PopupMenuWin.cpp:
  22304. (WebCore::PopupMenu::drawItem):
  22305. 2006-10-16 Adam Roben <aroben@apple.com>
  22306. Reviewed by John.
  22307. Fix: <rdar://problem/4709480> Implement option groups
  22308. Fix: <rdar://problem/4785693> Use CG to draw popup menu items
  22309. Fix: <rdar://problem/4709487> Implement separators in <select> popups
  22310. Fix: <rdar://problem/4709358> Move CreateWindowEx calls out of PopupMenu constructor
  22311. * platform/win/PopupMenuWin.cpp: Added some now-required #includes,
  22312. moved some constants into the WebCore namespace.
  22313. (WebCore::PopupMenu::PopupMenu): Moved CreateWindowEx calls into PopupMenu::show().
  22314. (WebCore::PopupMenu::show): Pass LBS_OWNERDRAWFIXED to CreateWindowEx
  22315. to assume responsibility for drawing menu itesm. Removed call to set
  22316. the font on the popup menu, as CG will take care of this.
  22317. (WebCore::addString): Added to help with the PopupMenu::add* methods.
  22318. (WebCore::PopupMenu::addOption): Use addString.
  22319. (WebCore::PopupMenu::addGroupLabel): Ditto, and moved from TemporaryLinkStubs.cpp.
  22320. (WebCore::PopupMenu::addSeparator): Ditto.
  22321. (WebCore::PopupMenu::down): Skip items that are not enabled <option>
  22322. elements, and tell the popup menu to set the selection to the element
  22323. we end up on.
  22324. (WebCore::PopupMenu::up): Ditto.
  22325. (WebCore::PopupMenu::drawItem): Added. This is the method that is
  22326. called to draw each item in the menu.
  22327. (WebCore::PopupWndProc): Add cases for WM_MEASUREITEM and WM_DRAWITEM
  22328. messages (required now that we're drawing the menu items ourselves). In
  22329. the cases for arrow key presses, return -2 to signify that we're
  22330. handling all aspects of changing the selection.
  22331. * platform/win/TemporaryLinkStubs.cpp: Removed PopupMenu::addSeparator
  22332. and PopupMenu::addGroupLabel.
  22333. 2006-10-15 Adam Roben <aroben@apple.com>
  22334. Build fix.
  22335. Merge OpenSource r17056 to TemporaryLinkStubs.cpp.
  22336. * platform/win/TemporaryLinkStubs.cpp:
  22337. (WebCore::CacheObjectExpiresTime):
  22338. (WebCore::ResponseIsMultipart):
  22339. (WebCore::ResponseMIMEType):
  22340. (WebCore::IsResponseURLEqualToURL):
  22341. (WebCore::ResponseURL):
  22342. (WebCore::CachedResource::setResponse):
  22343. (WebCore::CachedResource::setAllData):
  22344. 2006-10-13 Maciej Stachowiak <mjs@apple.com>
  22345. Reviewed by Darin.
  22346. - split FrameLoadRequest off from ResourceRequest - it's a ResourceRequest plus frame name plus lockHistory bool
  22347. * WebCore.vcproj/WebCore.vcproj:
  22348. * bridge/win/FrameWin.cpp:
  22349. (WebCore::FrameWin::urlSelected):
  22350. (WebCore::FrameWin::submitForm):
  22351. * bridge/win/FrameWin.h:
  22352. * platform/win/TemporaryLinkStubs.cpp:
  22353. (BrowserExtensionWin::createNewWindow):
  22354. (IconLoader::notifyIconChanged):
  22355. 2006-10-13 Dave Hyatt <hyatt@apple.com>
  22356. Make form controls work inside transparency layers by having
  22357. them draw into bitmap that is then turned into a CGImageRef
  22358. and blended into the CG transparency layer.
  22359. Reviewed by aroben
  22360. * platform/cg/GraphicsContextPlatformPrivate.h:
  22361. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  22362. (WebCore::GraphicsContextPlatformPrivate::beginTransparencyLayer):
  22363. (WebCore::GraphicsContextPlatformPrivate::endTransparencyLayer):
  22364. * platform/win/GraphicsContextWin.cpp:
  22365. (WebCore::GraphicsContext::getWindowsContext):
  22366. (WebCore::GraphicsContext::releaseWindowsContext):
  22367. * platform/win/IconWin.cpp:
  22368. (WebCore::Icon::paint):
  22369. * platform/win/PlatformScrollBar.h:
  22370. * platform/win/PlatformScrollBarWin.cpp:
  22371. (WebCore::PlatformScrollbar::PlatformScrollbar):
  22372. (WebCore::PlatformScrollbar::paint):
  22373. (WebCore::PlatformScrollbar::paintButton):
  22374. (WebCore::PlatformScrollbar::paintTrack):
  22375. (WebCore::PlatformScrollbar::paintThumb):
  22376. * rendering/RenderThemeWin.cpp:
  22377. (WebCore::RenderThemeWin::RenderThemeWin):
  22378. (WebCore::drawControl):
  22379. 2006-10-12 Dave Hyatt <hyatt@apple.com>
  22380. Voting Cairo off the island
  22381. or
  22382. Jeff Probst: "Cairo, the tribe has spoken. It's time for you
  22383. to go."
  22384. * WebCore.vcproj/WebCore.vcproj:
  22385. * platform/win/FontDataWin.cpp:
  22386. (WebCore::FontData::platformInit):
  22387. (WebCore::FontData::platformDestroy):
  22388. (WebCore::FontData::platformWidthForGlyph):
  22389. * platform/win/FontPlatformData.h:
  22390. (WebCore::FontPlatformData::FontPlatformData):
  22391. (WebCore::FontPlatformData::hfont):
  22392. (WebCore::FontPlatformData::cgFont):
  22393. (WebCore::FontPlatformData::operator==):
  22394. * platform/win/FontPlatformDataWin.cpp:
  22395. * platform/win/FontWin.cpp:
  22396. (WebCore::Font::drawGlyphs):
  22397. * platform/win/GraphicsContextWin.cpp:
  22398. * platform/win/IconWin.cpp:
  22399. * platform/win/ImageWin.cpp:
  22400. (WebCore::Image::loadPlatformResource):
  22401. * platform/win/TemporaryLinkStubs.cpp:
  22402. (GraphicsContextPlatformPrivate::clip):
  22403. (GraphicsContext::drawLineForMisspelling):
  22404. 2006-10-12 Adele Peterson <adele@apple.com>
  22405. RS by Geoff.
  22406. Renamed uploadControlDetaching to disconnectUploadControl.
  22407. * platform/win/FileChooserWin.cpp:
  22408. (WebCore::FileChooser::disconnectUploadControl):
  22409. 2006-10-12 Adele Peterson <adele@apple.com>
  22410. Reviewed by Alice.
  22411. Fixed a small oversight from the last checkin. The populate method was calling itself,
  22412. instead of the newly renamed addItems method.
  22413. * platform/win/PopupMenuWin.cpp:
  22414. (WebCore::PopupMenu::populate):
  22415. 2006-10-12 Adam Roben <aroben@apple.com>
  22416. Reviewed by Adele.
  22417. Move popup menu code out of rendering/ and into platform/.
  22418. RenderPopupMenu becomes PopupMenu, the
  22419. RenderPopupMenuMac/RenderPopupMenuWin subclasses and all the associated
  22420. virtual methods go away, RenderTheme gets to stop worrying about popup
  22421. menus, PopupMenu becomes ref-counted, and everyone becomes happy.
  22422. Also fixes <rdar://problem/4710456> Get rid of RenderPopupMenu{Win,Mac}
  22423. classes.
  22424. * WebCore.vcproj/WebCore.vcproj: Move files within project.
  22425. * platform/win/PopupMenuWin.cpp: Moved from
  22426. rendering/RenderPopupMenuWin.cpp. Rename RenderPopupMenuWin to
  22427. PopupMenu.
  22428. (WebCore::PopupMenu::PopupMenu):
  22429. (WebCore::PopupMenu::~PopupMenu):
  22430. (WebCore::PopupMenu::clear):
  22431. (WebCore::PopupMenu::populate):
  22432. (WebCore::PopupMenu::show):
  22433. (WebCore::PopupMenu::hide):
  22434. (WebCore::PopupMenu::setPositionAndSize):
  22435. (WebCore::PopupMenu::addOption):
  22436. (WebCore::PopupMenu::focusedIndex): New method to get the index of the
  22437. element that is currently highlighted. This won't always be the same as
  22438. the selectedIndex because of mouse hot-tracking.
  22439. (WebCore::PopupMenu::down):
  22440. (WebCore::PopupMenu::up):
  22441. (WebCore::registerPopup):
  22442. (WebCore::PopupWndProc): Use focusedIndex() instead of sending messages
  22443. to the popup window.
  22444. * platform/win/TemporaryLinkStubs.cpp: Rename RenderPopupMenuWin to PopupMenu.
  22445. (PopupMenu::addSeparator):
  22446. (PopupMenu::addGroupLabel):
  22447. * rendering/RenderPopupMenuWin.cpp: Removed.
  22448. * rendering/RenderPopupMenuWin.h: Removed.
  22449. * rendering/RenderThemeWin.cpp: Get rid of createPopupMenu() method.
  22450. * rendering/RenderThemeWin.h: Ditto.
  22451. 2006-10-12 Dave Hyatt <hyatt@apple.com>
  22452. Implement full-blown double buffering (keeping a bitmap in the WebView that holds the backing store for it).
  22453. Reviewed by mjs
  22454. * bridge/win/FrameWin.cpp:
  22455. (WebCore::FrameWin::addToDirtyRegion):
  22456. (WebCore::FrameWin::scrollBackingStore):
  22457. (WebCore::FrameWin::updateBackingStore):
  22458. * bridge/win/FrameWin.h:
  22459. * platform/win/PlatformScrollBar.h:
  22460. * platform/win/PlatformScrollBarWin.cpp:
  22461. (WebCore::PlatformScrollbar::windowClipRect):
  22462. * platform/win/ScrollViewWin.cpp:
  22463. (WebCore::ScrollView::ScrollViewPrivate::valueChanged):
  22464. (WebCore::ScrollView::ScrollViewPrivate::windowClipRect):
  22465. (WebCore::ScrollView::updateContents):
  22466. (WebCore::ScrollView::updateScrollbars):
  22467. (WebCore::ScrollView::windowResizerRect):
  22468. (WebCore::ScrollView::addToDirtyRegion):
  22469. (WebCore::ScrollView::scrollBackingStore):
  22470. (WebCore::ScrollView::updateBackingStore):
  22471. * platform/win/WidgetWin.cpp:
  22472. (WebCore::Widget::suppressInvalidation):
  22473. (WebCore::Widget::invalidateRect):
  22474. * plugins/win/PluginViewWin.cpp:
  22475. (WebCore::PluginViewWin::windowClipRect):
  22476. 2006-10-11 Adam Roben <aroben@apple.com>
  22477. Rubberstamped by Brady.
  22478. Clean up logic in Icon::newIconForFile.
  22479. * platform/win/IconWin.cpp:
  22480. (WebCore::Icon::newIconForFile): Error case should return early.
  22481. 2006-10-11 Adam Roben <aroben@apple.com>
  22482. Reviewed by Steve.
  22483. Fixes <rdar://problem/4777719>
  22484. Icons don't paint with CG
  22485. * platform/win/IconWin.cpp:
  22486. (WebCore::Icon::paint): Remove Cairo-specific code now that we have
  22487. GraphicsContextWin.
  22488. 2006-10-11 Adam Roben <aroben@apple.com>
  22489. Rubberstamped by Anders.
  22490. Clean up FileChooser::create, Icon::create.
  22491. * platform/win/FileChooserWin.cpp:
  22492. (WebCore::FileChooser::create): Just return a FileChooser* and let the
  22493. implicit cast happen.
  22494. * platform/win/IconWin.cpp:
  22495. (WebCore::Icon::newIconForFile): Ditto for Icon*.
  22496. 2006-10-10 Adam Roben <aroben@apple.com>
  22497. Reviewed by Oliver.
  22498. Fixes <rdar://problem/4731316>
  22499. Crash when <input type="file"> element removed while file chooser is open
  22500. * platform/win/FileChooserWin.cpp: Make FileChooser ref-counted.
  22501. (WebCore::FileChooser::create):
  22502. (WebCore::FileChooser::openFileChooser): Add a protector RefPtr around
  22503. the call to GetOpenFileName so we don't get deleted while the file
  22504. chooser window is open.
  22505. 2006-10-10 Adam Roben <aroben@apple.com>
  22506. Reviewed by Anders.
  22507. Fixes <rdar://problem/4772428>
  22508. <select> popup menus positioned incorrectly within frames
  22509. * rendering/RenderPopupMenuWin.cpp:
  22510. (WebCore::RenderPopupMenuWin::setPositionAndSize): Use
  22511. contentsToWindow() instead of scrollOffset() to correct menu location.
  22512. 2006-10-10 Adam Roben <aroben@apple.com>
  22513. Reviewed by Adele.
  22514. Fixes <rdar://problem/4763246>
  22515. Using arrow keys in <select> popup fires onChange event
  22516. Also updates text shown in <select> element on page when using arrow
  22517. keys to change selection within the popup menu, and makes onChange fire
  22518. in the same cases as Firefox/IE.
  22519. * rendering/RenderPopupMenuWin.cpp:
  22520. (WebCore::RenderPopupMenuWin::down): Update text of the <select>
  22521. control. Change call to valueChanged() so that onChange doesn't fire.
  22522. (WebCore::RenderPopupMenuWin::up): Ditto.
  22523. (WebCore::PopupWndProc): Don't fire onChange anytime selection changes.
  22524. Fire onChange when pressing Enter
  22525. 2006-10-09 Anders Carlsson <acarlsson@apple.com>
  22526. Reviewed by Maciej.
  22527. Fix <rdar://problem/4756255>
  22528. PDF/Acrobat Reader plugin don't work
  22529. * bridge/win/FrameWin.cpp:
  22530. (WebCore::FrameWin::getObjectInstanceForWidget):
  22531. (WebCore::FrameWin::getEmbedInstanceForWidget):
  22532. Implement these, getting the instance from the plugin view.
  22533. * platform/win/TemporaryLinkStubs.cpp:
  22534. Remove functions that are now implemented.
  22535. * plugins/win/PlugInInfoStoreWin.cpp:
  22536. (WebCore::PlugInInfoStore::pluginCount):
  22537. (WebCore::PlugInInfoStore::supportsMIMEType):
  22538. Implement this, returning whether we a plugin exists for a given mime type.
  22539. * plugins/win/PluginDatabaseWin.cpp:
  22540. (WebCore::parseVersionString):
  22541. (WebCore::compareVersions):
  22542. New functions for handling versions.
  22543. (WebCore::addMozillaPluginPaths):
  22544. (WebCore::addWindowsMediaPlayerPluginPath):
  22545. (WebCore::addQuickTimePluginPath):
  22546. (WebCore::addJavaPluginPath):
  22547. (WebCore::addAdobeAcrobatPluginPath):
  22548. (WebCore::PluginDatabaseWin::defaultPluginPaths):
  22549. Factor out checks into separate functions, add checks for Java and Adobe Acrobat.
  22550. (WebCore::PluginDatabaseWin::isMIMETypeRegistered):
  22551. Handle null MIME types.
  22552. * plugins/win/PluginPackageWin.cpp:
  22553. (WebCore::PluginPackageWin::load):
  22554. Add some missing functions. Unload the library if the load failed.
  22555. * plugins/win/PluginViewWin.cpp:
  22556. (WebCore::PluginViewWin::getValue):
  22557. Uncomment code for getting the element object.
  22558. (WebCore::PluginViewWin::bindingInstance):
  22559. * plugins/win/PluginViewWin.h:
  22560. New function which fetches the plugin NPObject and wraps it in an instance.
  22561. 2006-10-09 Anders Carlsson <acarlsson@apple.com>
  22562. Reviewed by Steve.
  22563. Fix <rdar://problem/4773320>
  22564. Safari didn't pick up quicktime that was already installed
  22565. * plugins/win/PluginDatabaseWin.cpp:
  22566. (WebCore::PluginDatabaseWin::defaultPluginPaths):
  22567. 2006-10-09 Anders Carlsson <acarlsson@apple.com>
  22568. * WebCore.vcproj/WebCore.vcproj:
  22569. * bridge/win/FrameWin.h:
  22570. * platform/win/TemporaryLinkStubs.cpp:
  22571. (FrameWin::createJavaAppletWidget):
  22572. Fix build.
  22573. 2006-10-09 Adam Roben <aroben@apple.com>
  22574. Reviewed by Adele.
  22575. Fixes <rdar://problem/4773142>
  22576. Crash in Settings::mediumFontSize() on ebay.com
  22577. Call cancelAndClear() from ~FrameWin (just like Mac does) so we don't
  22578. end up calling the Frame::saveDocumentState, which is pure virtual.
  22579. * bridge/win/FrameWin.cpp:
  22580. (WebCore::FrameWin::~FrameWin):
  22581. 2006-10-08 Adam Roben <aroben@apple.com>
  22582. Reviewed by Maciej.
  22583. Port of OpenSource r16526, r16528
  22584. Break up ResourceLoaderWndProc into callback functions.
  22585. * platform/win/ResourceLoaderWin.cpp: Fix up #includes
  22586. (WebCore::): Remove loadStatusMessage, struct JobLoadStatus, add
  22587. messageHandlers array.
  22588. (WebCore::ResourceLoaderWndProc): Split handling of different messages
  22589. into callbacks.
  22590. (WebCore::ResourceLoader::onHandleCreated): New callback.
  22591. (WebCore::ResourceLoader::onRequestRedirected): New callback.
  22592. (WebCore::ResourceLoader::onRequestComplete): New callback.
  22593. (WebCore::initializeOffScreenResourceLoaderWindow): No need to register
  22594. loadStatusMessage anymore.
  22595. (WebCore::transferJobStatusCallback): Change how information is passed
  22596. into ResourceLoaderWndProc.
  22597. 2006-10-08 Dave Hyatt <hyatt@apple.com>
  22598. Add support for the Win2k/Classic theme for all controls.
  22599. * rendering/RenderThemeWin.cpp:
  22600. (WebCore::RenderThemeWin::buttonTheme):
  22601. (WebCore::RenderThemeWin::textFieldTheme):
  22602. (WebCore::RenderThemeWin::menuListTheme):
  22603. (WebCore::RenderThemeWin::supportsHover):
  22604. (WebCore::RenderThemeWin::determineClassicState):
  22605. (WebCore::RenderThemeWin::getClassicThemeData):
  22606. (WebCore::RenderThemeWin::getThemeData):
  22607. (WebCore::drawControl):
  22608. (WebCore::RenderThemeWin::paintButton):
  22609. (WebCore::RenderThemeWin::paintTextField):
  22610. (WebCore::RenderThemeWin::paintMenuList):
  22611. * rendering/RenderThemeWin.h:
  22612. (WebCore::ThemeData::m_state):
  22613. 2006-10-07 Steve Falkenburg <sfalken@apple.com>
  22614. Reviewed by Adam.
  22615. Fix <rdar://4772205> Regression (r10623): WinInet loader doesn't ever write to the cache.
  22616. * platform/win/ResourceLoaderWin.cpp:
  22617. (WebCore::ResourceLoaderWndProc): Apply POST related flags only for posts.
  22618. (WebCore::ResourceLoader::startHTTPRequest): Don't add no-cache-write flag to non-post transactions.
  22619. 2006-10-07 Dave Hyatt <hyatt@apple.com>
  22620. Add code to paint the Windows 2000 and "Windows Classic" theme look for scrollbars.
  22621. * platform/win/PlatformScrollBarWin.cpp:
  22622. (WebCore::PlatformScrollbar::paintButton):
  22623. (WebCore::PlatformScrollbar::paintTrack):
  22624. (WebCore::PlatformScrollbar::paintThumb):
  22625. (WebCore::PlatformScrollbar::paintGripper):
  22626. 2006-10-07 Dave Hyatt <hyatt@apple.com>
  22627. Make sure frames and iframes honor scrolling="no" and
  22628. margins.
  22629. * bridge/win/FrameWin.cpp:
  22630. (WebCore::FrameWin::createFrame):
  22631. 2006-10-07 Dave Hyatt <hyatt@apple.com>
  22632. Fix the resizer rect so that it is in the ScrollView's coordinate space and not in the document's coordinate space.
  22633. (Fixes all the layout errors with the scrollbar overlapping the resizer.)
  22634. Fill scroll corners with white, since it matches Mac (and our chosen resizer look) and looks nicer anyway.
  22635. * platform/win/ScrollViewWin.cpp:
  22636. (WebCore::ScrollView::updateScrollbars):
  22637. (WebCore::ScrollView::paint):
  22638. 2006-10-06 Dave Hyatt <hyatt@apple.com>
  22639. Make sure to update plugin clip regions when scrollbars come and go on a scrollview.
  22640. * platform/win/ScrollViewWin.cpp:
  22641. (WebCore::ScrollView::updateScrollbars):
  22642. 2006-10-06 Dave Hyatt <hyatt@apple.com>
  22643. Revise the cached clip rect so that it is in the HWND's coordinate space. This way SetWindowRgn
  22644. doesn't get wastefully called when the plugin is scrolled.
  22645. * plugins/win/PluginViewWin.cpp:
  22646. (WebCore::PluginViewWin::updateHwnd):
  22647. 2006-10-06 Dave Hyatt <hyatt@apple.com>
  22648. Implement flawless clipping of windowed plugins, including
  22649. respecting nested frames, CSS overflow and CSS clip. (This
  22650. puts Boomer way ahead of Mac as far as plugin clipping is
  22651. concerned).
  22652. Implement support for correct blitting of scrolled subframes,
  22653. even when clipped by enclosing scrollviews.
  22654. Fix a crash caused by focused children not being cleaned up
  22655. when they are removed from a scrollview.
  22656. * platform/win/ScrollViewWin.cpp:
  22657. (WebCore::ScrollView::ScrollViewPrivate::valueChanged):
  22658. (WebCore::ScrollView::setFrameGeometry):
  22659. (WebCore::ScrollView::addChild):
  22660. (WebCore::ScrollView::removeChild):
  22661. (WebCore::ScrollView::geometryChanged):
  22662. * plugins/win/PluginViewWin.cpp:
  22663. (WebCore::PluginViewWin::updateHwnd):
  22664. (WebCore::PluginViewWin::windowClipRect):
  22665. (WebCore::PluginViewWin::setFrameGeometry):
  22666. (WebCore::PluginViewWin::geometryChanged):
  22667. * plugins/win/PluginViewWin.h:
  22668. 2006-10-06 Geoffrey Garen <ggaren@apple.com>
  22669. Fixed <rdar://4768789> Crash on ebay.com in Frame::didOpenURL
  22670. The issue was a resource loader making a callback to a
  22671. frame after the frame had been destroyed. This doesn't happen on Mac
  22672. because Mac WebKit cancels all loads before tearing down frames.
  22673. The solution is to add a callback to Win WebKit to allow a frame
  22674. to cancel its main resource load. This is a temporary work-around.
  22675. It is temporary because it doesn't address pending subresource loads.
  22676. The long-term solution we anticipate is to have a legitimate loader
  22677. inside WebCore.
  22678. * ChangeLog:
  22679. * bridge/win/FrameWin.cpp:
  22680. (WebCore::FrameWin::~FrameWin):
  22681. * bridge/win/FrameWin.h:
  22682. 2006-10-06 Steve Falkenburg <sfalken@apple.com>
  22683. Reviewed by Adam, Lou.
  22684. Resizer fixes.
  22685. We now properly invalidate and draw overlapping contents or opaque.
  22686. * platform/win/ScrollViewWin.cpp:
  22687. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  22688. (WebCore::ScrollView::updateScrollbars):
  22689. (WebCore::ScrollView::resizerOverlapsContent):
  22690. 2006-10-06 Anders Carlsson <acarlsson@apple.com>
  22691. Reviewed by Adam.
  22692. * plugins/win/PluginDatabaseWin.cpp:
  22693. (WebCore::PluginDatabaseWin::defaultPluginPaths):
  22694. Add (commented out) WMP plugin check.
  22695. 2006-10-06 Anders Carlsson <acarlsson@apple.com>
  22696. Reviewed by Brady and Geoff.
  22697. <rdar://problems/4769023>
  22698. Crash on cnettv.com - PluginStreamWin::receivedResponse
  22699. * platform/win/ResourceLoaderWin.cpp:
  22700. (WebCore::ResourceLoaderWndProc):
  22701. If the Content-Type header is missing, try to figure o ut the content type
  22702. from the file extension. Failing that, just use "application/octet-stream".
  22703. 2006-10-06 Adam Roben <aroben@apple.com>
  22704. Reviewed by Maciej.
  22705. Some loader improvements, courtesy of Steve.
  22706. Functionally, the improvements are these:
  22707. 1. Support HTTP Authentication
  22708. 2. Respect WinInet errors better
  22709. There are also some general code cleanups, like extracting the creation
  22710. of an HTTP request into its own method.
  22711. * platform/win/ResourceLoaderWin.cpp: Add dwError field to
  22712. JobLoadStatus to store WinInet error codes. Also removed the
  22713. globalInternetHandle() function as the global HINTERNET is now only
  22714. needed within startHTTPRequest.
  22715. (WebCore::ResourceLoaderWndProc): Respect error codes and add HTTP
  22716. Authentication support. Also, process HTTP status codes as ints instead
  22717. of strings.
  22718. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal): Cleanup
  22719. m_formData
  22720. (WebCore::transferJobStatusCallback): Cleanup the code, and set
  22721. dwError.
  22722. (WebCore::ResourceLoader::startHTTPRequest): New method to start a new
  22723. HTTP request.
  22724. (WebCore::ResourceLoader::start): Restructure code.
  22725. 2006-10-06 Dave Hyatt <hyatt@apple.com>
  22726. Fix the plugins on cnn.com. Don't let the scroll view move child plugins around if it hasn't even been parented yet.
  22727. Fix an assert in widget destructors caused by not unparenting a ScrollView's scrollbars in its destructor.
  22728. * platform/win/ScrollViewWin.cpp:
  22729. (WebCore::ScrollView::ScrollViewPrivate::~ScrollViewPrivate):
  22730. (WebCore::ScrollView::setFrameGeometry):
  22731. 2006-10-06 Dave Hyatt <hyatt@apple.com>
  22732. Make sure that plugin windows get properly moved if an ancestor scrollview is shifted without changing its size (meaning
  22733. that layout doesn't get called on the scrollview to update the widget positions).
  22734. Fixes the plugins on osnews.com.
  22735. * platform/win/ScrollViewWin.cpp:
  22736. (WebCore::ScrollView::setFrameGeometry):
  22737. 2006-10-05 Steve Falkenburg <sfalken@apple.com>
  22738. Reviewed by aroben.
  22739. Scrollbars now dodge resizing gripper.
  22740. * bridge/win/FrameViewWin.cpp:
  22741. (WebCore::FrameView::windowResizerRect): added.
  22742. * bridge/win/FrameWin.cpp:
  22743. (WebCore::FrameWin::windowResizerRect): added.
  22744. * bridge/win/FrameWin.h:
  22745. * platform/win/ScrollViewWin.cpp:
  22746. (WebCore::ScrollView::updateScrollbars): Scrollbars now dodge resizing gripper.
  22747. 2006-10-05 Dave Hyatt <hyatt@apple.com>
  22748. Fix a bug where scrollbars would incorrectly show up for iframes when they weren't needed.
  22749. Change the flow of control to be more like Mac.
  22750. * platform/win/ScrollViewWin.cpp:
  22751. (WebCore::ScrollView::resizeContents):
  22752. (WebCore::ScrollView::setFrameGeometry):
  22753. 2006-10-05 Dave Hyatt <hyatt@apple.com>
  22754. Fix clipping and transforms by making sure to propagate them as they happen on the CGContext over into the HDC.
  22755. * platform/cg/GraphicsContextPlatformPrivate.h:
  22756. * platform/win/GraphicsContextWin.cpp:
  22757. (WebCore::CGContextWithHDC):
  22758. (WebCore::GraphicsContext::getWindowsContext):
  22759. (WebCore::GraphicsContext::releaseWindowsContext):
  22760. (WebCore::GraphicsContextPlatformPrivate::save):
  22761. (WebCore::GraphicsContextPlatformPrivate::restore):
  22762. (WebCore::GraphicsContextPlatformPrivate::clip):
  22763. (WebCore::GraphicsContextPlatformPrivate::scale):
  22764. (WebCore::GraphicsContextPlatformPrivate::rotate):
  22765. (WebCore::GraphicsContextPlatformPrivate::translate):
  22766. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  22767. * platform/win/TemporaryLinkStubs.cpp:
  22768. (GraphicsContextPlatformPrivate::clip):
  22769. 2006-10-05 Geoffrey Garen <ggaren@apple.com>
  22770. build fix.
  22771. * platform/win/WidgetWin.cpp:
  22772. (WebCore::Widget::~Widget):
  22773. (WebCore::Widget::setParent):
  22774. (WebCore::Widget::parent):
  22775. (WebCore::Widget::removeFromParent):
  22776. 2006-10-05 David Hyatt <hyatt@apple.com>
  22777. Stub out GraphicsContextPlatformPrivate methods so that the HDC can
  22778. be updated when clips/transforms are applied.
  22779. Reviewed by darin
  22780. * platform/cg/GraphicsContextPlatformPrivate.h:
  22781. (WebCore::GraphicsContextPlatformPrivate::save):
  22782. (WebCore::GraphicsContextPlatformPrivate::restore):
  22783. (WebCore::GraphicsContextPlatformPrivate::clip):
  22784. (WebCore::GraphicsContextPlatformPrivate::scale):
  22785. (WebCore::GraphicsContextPlatformPrivate::rotate):
  22786. (WebCore::GraphicsContextPlatformPrivate::translate):
  22787. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  22788. 2006-10-05 Adam Roben <aroben@apple.com>
  22789. Build fix.
  22790. * platform/win/TemporaryLinkStubs.cpp:
  22791. (BrowserExtensionWin::BrowserExtensionWin): Change Frame* to FrameWin*
  22792. 2006-10-05 Adam Roben <aroben@apple.com>
  22793. Build fix. Remove RenderImageButton.{h,cpp}.
  22794. * WebCore.vcproj/WebCore.vcproj:
  22795. 2006-10-05 Geoffrey Garen <ggaren@apple.com>
  22796. Reviewed by Darin.
  22797. Fixed <rdar://problem/4766987>
  22798. - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
  22799. except for file names.
  22800. - fixed RenderLayer to properly tear down scrollbars, removing them from
  22801. their parents.
  22802. * bridge/win/FrameViewWin.cpp:
  22803. (WebCore::FrameView::passMousePressEventToScrollbar):
  22804. * platform/win/PlatformScrollBar.h:
  22805. (WebCore::):
  22806. * platform/win/PlatformScrollBarWin.cpp:
  22807. (WebCore::PlatformScrollbar::PlatformScrollbar):
  22808. (WebCore::PlatformScrollbar::~PlatformScrollbar):
  22809. (WebCore::PlatformScrollbar::updateThumbPosition):
  22810. (WebCore::PlatformScrollbar::updateThumbProportion):
  22811. (WebCore::PlatformScrollbar::invalidateTrack):
  22812. (WebCore::PlatformScrollbar::invalidatePart):
  22813. (WebCore::PlatformScrollbar::width):
  22814. (WebCore::PlatformScrollbar::height):
  22815. (WebCore::PlatformScrollbar::setRect):
  22816. (WebCore::PlatformScrollbar::setEnabled):
  22817. (WebCore::PlatformScrollbar::paint):
  22818. (WebCore::PlatformScrollbar::backButtonRect):
  22819. (WebCore::PlatformScrollbar::forwardButtonRect):
  22820. (WebCore::PlatformScrollbar::trackRect):
  22821. (WebCore::PlatformScrollbar::thumbRect):
  22822. (WebCore::PlatformScrollbar::gripperRect):
  22823. (WebCore::PlatformScrollbar::splitTrack):
  22824. (WebCore::PlatformScrollbar::thumbPosition):
  22825. (WebCore::PlatformScrollbar::thumbLength):
  22826. (WebCore::PlatformScrollbar::trackLength):
  22827. (WebCore::PlatformScrollbar::paintButton):
  22828. (WebCore::PlatformScrollbar::paintTrack):
  22829. (WebCore::PlatformScrollbar::paintThumb):
  22830. (WebCore::PlatformScrollbar::paintGripper):
  22831. (WebCore::PlatformScrollbar::hitTest):
  22832. (WebCore::PlatformScrollbar::handleMouseMoveEvent):
  22833. (WebCore::PlatformScrollbar::handleMouseOutEvent):
  22834. (WebCore::PlatformScrollbar::handleMousePressEvent):
  22835. (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
  22836. (WebCore::PlatformScrollbar::startTimerIfNeeded):
  22837. (WebCore::PlatformScrollbar::stopTimerIfNeeded):
  22838. (WebCore::PlatformScrollbar::autoscrollPressedPart):
  22839. (WebCore::PlatformScrollbar::autoscrollTimerFired):
  22840. (WebCore::PlatformScrollbar::pressedPartScrollDirection):
  22841. (WebCore::PlatformScrollbar::pressedPartScrollGranularity):
  22842. (WebCore::PlatformScrollbar::thumbUnderMouse):
  22843. (WebCore::PlatformScrollbar::themeChanged):
  22844. (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
  22845. (WebCore::PlatformScrollbar::verticalScrollbarWidth):
  22846. * platform/win/ScrollViewWin.cpp:
  22847. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  22848. (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
  22849. (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
  22850. (WebCore::ScrollView::ScrollViewPrivate::valueChanged):
  22851. (WebCore::ScrollView::resizeContents):
  22852. (WebCore::ScrollView::scrollBy):
  22853. (WebCore::ScrollView::hScrollbarMode):
  22854. (WebCore::ScrollView::vScrollbarMode):
  22855. (WebCore::ScrollView::suppressScrollbars):
  22856. (WebCore::ScrollView::setHScrollbarMode):
  22857. (WebCore::ScrollView::setVScrollbarMode):
  22858. (WebCore::ScrollView::setScrollbarsMode):
  22859. (WebCore::ScrollView::updateScrollbars):
  22860. (WebCore::ScrollView::scrollbarUnderMouse):
  22861. (WebCore::ScrollView::paint):
  22862. (WebCore::ScrollView::themeChanged):
  22863. 2006-10-05 Adam Roben <aroben@apple.com>
  22864. Reviewed by Maciej.
  22865. Fixes <rdar://problem/4757387>
  22866. Unable to sign on to my.yahoo.com
  22867. This patch fixes a number of bugs that all resulted in not being able
  22868. to log on to many websites. The problems were that we weren't allowing
  22869. redirects between HTTP and HTTPS sites and weren't correctly handling
  22870. redirects from POST requests to GET requests.
  22871. * platform/win/ResourceLoaderWin.cpp:
  22872. (WebCore::globalInternetHandle): Move internetHandle and callbackHandle
  22873. into file scope, and add this function to initialize them.
  22874. (WebCore::logLastError): Add this debug logging function to give more
  22875. readable WinInet error messages.
  22876. (WebCore::ResourceLoaderWndProc): The most substantial change here is
  22877. to allow redirects from POST to GET to function correctly. To do this
  22878. we have to create a new HINTERNET for the GET. We also have to be sure
  22879. not to try to read from our now-invalid handles after the redirect.
  22880. (WebCore::transferJobStatusCallback): Rename timerId to jobId, since
  22881. that's what it is.
  22882. (WebCore::ResourceLoader::start): Call new static initializer, and pass
  22883. flags to allow HTTP<->HTTPS redirects. Also change a few delete calls
  22884. to kill().
  22885. 2006-10-05 Maciej Stachowiak <mjs@apple.com>
  22886. Reviewed by Adam.
  22887. - changed ResourceLoader to be refcounted
  22888. It keeps a ref on itself while loading as well. This makes
  22889. for a much saner memory management model than the previous.
  22890. In addition, keep it ref'd across all of ResourceLoaderWndProc
  22891. to avoid sending messages to jobs that get deleted partway.
  22892. This fixes <rdar://problem/4766859> Crash in ResourceLoaderWndProc - line 232 at televisionwithoutpity.com, washingtonpost.com
  22893. * platform/win/ResourceLoaderWin.cpp:
  22894. (WebCore::ResourceLoaderWndProc):
  22895. (WebCore::ResourceLoader::start):
  22896. * plugins/win/PluginStreamWin.cpp:
  22897. (WebCore::PluginStreamWin::PluginStreamWin):
  22898. (WebCore::PluginStreamWin::start):
  22899. (WebCore::PluginStreamWin::stop):
  22900. * plugins/win/PluginStreamWin.h:
  22901. 2006-10-05 Dave Hyatt <hyatt@apple.com>
  22902. Make key events work with iframes. Implement scrolling keyboard behavior. Fix a bug with mouse wheeling that
  22903. made it fail on iframes nested within iframes.
  22904. Reviewed by mjs
  22905. * bridge/win/FrameViewWin.cpp:
  22906. (WebCore::FrameView::passWheelEventToSubframe):
  22907. * platform/win/ScrollViewWin.cpp:
  22908. (WebCore::ScrollView::scroll):
  22909. * platform/win/WidgetWin.cpp:
  22910. (WebCore::Widget::Widget):
  22911. (WebCore::Widget::capturingMouse):
  22912. (WebCore::Widget::setCapturingMouse):
  22913. (WebCore::Widget::capturingTarget):
  22914. (WebCore::Widget::setCapturingChild):
  22915. (WebCore::Widget::hasFocus):
  22916. (WebCore::Widget::setFocus):
  22917. (WebCore::Widget::clearFocus):
  22918. (WebCore::Widget::setFocused):
  22919. (WebCore::Widget::focusedTarget):
  22920. (WebCore::Widget::focusedChild):
  22921. (WebCore::Widget::setFocusedChild):
  22922. (WebCore::Widget::clearFocusFromDescendants):
  22923. 2006-10-05 Adam Roben <aroben@apple.com>
  22924. Reviewed by Maciej and Tim H.
  22925. Fixes <rdar://problem/4760991>
  22926. Flash content doesn't go away when navigating to a new page
  22927. Actually destroy subframes when detaching.
  22928. * bridge/win/FrameWin.cpp:
  22929. (WebCore::FrameWin::frameDetached):
  22930. * bridge/win/FrameWin.h:
  22931. 2006-10-05 Anders Carlsson <acarlsson@apple.com>
  22932. Reviewed by Maciej.
  22933. <rdar://problem/4762998>
  22934. REGRESSION: dragging to select text does not work
  22935. * platform/win/PlatformMouseEventWin.cpp:
  22936. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  22937. Set the correct button for WM_MOUSEMOVE events.
  22938. 2006-10-05 Anders Carlsson <acarlsson@apple.com>
  22939. Reviewed by Adam.
  22940. rdar://problem/4757081
  22941. Crashes/hangs when using Flash 8 plugin (Flash 9 works MUCH better)
  22942. * plugins/win/PluginStreamWin.cpp:
  22943. (WebCore::PluginStreamWin::startStream):
  22944. Encode javascript URLs before passing them to the plugin.
  22945. 2006-10-05 Darin Adler <darin@apple.com>
  22946. Reviewed by Adam.
  22947. * platform/win/NotImplemented.h: Changed implementation to use Assertions.h.
  22948. Also fixed both macros to be single-statement macros.
  22949. 2006-10-05 Darin Adler <darin@apple.com>
  22950. Reviewed by Adam.
  22951. - fix <rdar://problem/4764253>
  22952. frame targeting not implemented.
  22953. * bridge/win/FrameWin.h: Added new window boolean to openURL. Also changed
  22954. type from DeprecatedString to String.
  22955. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::urlSelected): Added logic
  22956. to do frame targeting.
  22957. * platform/win/BString.h: Added. Convenience for working with
  22958. BSTR and handling allocation/free.
  22959. * platform/win/BString.cpp: Added.
  22960. * WebCore.vcproj/WebCore.vcproj: Added new files.
  22961. 2006-10-03 Dave Hyatt <hyatt@apple.com>
  22962. Land the new ScrollView.
  22963. Reviewed by anders
  22964. * bridge/win/FrameViewWin.cpp:
  22965. (WebCore::FrameView::passMousePressEventToScrollbar):
  22966. * platform/win/PlatformScrollBar.h:
  22967. * platform/win/PlatformScrollBarWin.cpp:
  22968. (WebCore::PlatformScrollBar::thumbLength):
  22969. (WebCore::PlatformScrollBar::hitTest):
  22970. (WebCore::PlatformScrollBar::horizontalScrollBarHeight):
  22971. (WebCore::PlatformScrollBar::verticalScrollBarWidth):
  22972. * platform/win/ScrollViewWin.cpp:
  22973. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  22974. (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollBar):
  22975. (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollBar):
  22976. (WebCore::ScrollView::ScrollViewPrivate::valueChanged):
  22977. (WebCore::ScrollView::ScrollView):
  22978. (WebCore::ScrollView::updateContents):
  22979. (WebCore::ScrollView::visibleWidth):
  22980. (WebCore::ScrollView::visibleHeight):
  22981. (WebCore::ScrollView::visibleContentRect):
  22982. (WebCore::ScrollView::resizeContents):
  22983. (WebCore::ScrollView::contentsWidth):
  22984. (WebCore::ScrollView::contentsHeight):
  22985. (WebCore::ScrollView::windowToContents):
  22986. (WebCore::ScrollView::contentsToWindow):
  22987. (WebCore::ScrollView::convertChildToSelf):
  22988. (WebCore::ScrollView::convertSelfToChild):
  22989. (WebCore::ScrollView::scrollOffset):
  22990. (WebCore::ScrollView::maximumScroll):
  22991. (WebCore::ScrollView::scrollBy):
  22992. (WebCore::ScrollView::scrollPointRecursively):
  22993. (WebCore::ScrollView::hScrollBarMode):
  22994. (WebCore::ScrollView::vScrollBarMode):
  22995. (WebCore::ScrollView::suppressScrollBars):
  22996. (WebCore::ScrollView::setHScrollBarMode):
  22997. (WebCore::ScrollView::setVScrollBarMode):
  22998. (WebCore::ScrollView::setScrollBarsMode):
  22999. (WebCore::ScrollView::setStaticBackground):
  23000. (WebCore::ScrollView::updateScrollBars):
  23001. (WebCore::ScrollView::scrollbarUnderMouse):
  23002. (WebCore::ScrollView::addChild):
  23003. (WebCore::ScrollView::removeChild):
  23004. (WebCore::ScrollView::paint):
  23005. (WebCore::ScrollView::scrolled):
  23006. * platform/win/WidgetWin.cpp:
  23007. (WebCore::Widget::Widget):
  23008. (WebCore::Widget::convertToContainingWindow):
  23009. (WebCore::Widget::convertFromContainingWindow):
  23010. (WebCore::Widget::convertChildToSelf):
  23011. (WebCore::Widget::convertSelfToChild):
  23012. (WebCore::Widget::setSuppressInvalidation):
  23013. (WebCore::Widget::invalidateRect):
  23014. * plugins/win/PluginViewWin.cpp:
  23015. (WebCore::PluginViewWndProc):
  23016. (WebCore::PluginViewWin::setFrameGeometry):
  23017. (WebCore::PluginViewWin::scrolled):
  23018. * plugins/win/PluginViewWin.h:
  23019. 2006-10-03 Adam Roben <aroben@apple.com>
  23020. Reviewed by Steve.
  23021. Improvements to error handling in PluginStreamWin.
  23022. * plugins/win/PluginStreamWin.cpp:
  23023. (WebCore::PluginStreamWin::deliverData): Fail quietly if called after
  23024. termination (due to bad error handling in ResourceLoaderWin), ASSERT if
  23025. called before stream has been started.
  23026. (WebCore::PluginStreamWin::receivedData): Ditto.
  23027. (WebCore::PluginStreamWin::receivedAllData): Ditto.
  23028. 2006-10-03 Adam Roben <aroben@apple.com>
  23029. Reviewed by Anders.
  23030. Fixes <rdar://problem/4760963>
  23031. Failed ASSERT in PluginStreamWin::~PluginStreamWin at espn.com
  23032. We now store the state of a stream as a tri-state enum in
  23033. m_streamState. This allows us to differentiate between before and after the
  23034. stream has been started.
  23035. * plugins/win/PluginStreamWin.cpp:
  23036. (WebCore::PluginStreamWin::PluginStreamWin): Initialize members of
  23037. m_stream struct individually.
  23038. (WebCore::PluginStreamWin::~PluginStreamWin):
  23039. (WebCore::PluginStreamWin::startStream):
  23040. (WebCore::PluginStreamWin::destroyStream):
  23041. (WebCore::PluginStreamWin::deliverData): Return early if the stream
  23042. isn't started.
  23043. (WebCore::PluginStreamWin::receivedData): Ditto.
  23044. (WebCore::PluginStreamWin::receivedAllData): Ditto.
  23045. * plugins/win/PluginStreamWin.h:
  23046. (WebCore::): Add PluginStreamState enum.
  23047. 2006-10-03 Adam Roben <aroben@apple.com>
  23048. Reviewed by Darin.
  23049. Fixes <rdar://problem/4603342>
  23050. Keyboard navigability
  23051. Implement tabbing between form elements (in the single-frame case).
  23052. * bridge/win/FrameWin.cpp: Add methods to determine tabbing
  23053. preferences.
  23054. (WebCore::FrameWin::tabsToLinks):
  23055. (WebCore::FrameWin::tabsToAllControls):
  23056. * bridge/win/FrameWin.h: Add tabsToLinks() to FrameWinClient
  23057. * platform/win/ScrollViewWin.cpp:
  23058. (WebCore::ScrollView::scrollPointRecursively): Implemented for
  23059. single-frame case.
  23060. * platform/win/TemporaryLinkStubs.cpp: Remove stub for now-implemented
  23061. ScrollView::scrollPointsRecursively
  23062. 2006-10-02 Adam Roben <aroben@apple.com>
  23063. Reviewed by Maciej.
  23064. Fixes <rdar://problem/4743497>
  23065. Can't check checkboxes
  23066. Let Windows determine which mouse button is pressed.
  23067. * platform/win/PlatformMouseEventWin.cpp:
  23068. (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
  23069. parameter to determine which mouse button is pressed.
  23070. 2006-10-02 Steve Falkenburg <sfalken@apple.com>
  23071. Reviewed by Hyatt.
  23072. <rdar://4757387> (partial fix) Unable to sign on to my.yahoo.com
  23073. <rdar://4757405> (partial fix) Unable to log onto secure site (www.schwab.com)
  23074. <rdar://4757411> (partial fix) Unable to log onto any AppleConnect site (but using back and resubmiting works)
  23075. WinInet fixes.
  23076. Don't post data using HTTP when HTTPS should be used.
  23077. Fix redirect from POST to GET case.
  23078. There is a remaining bug with the way that we queue WinInet callbacks
  23079. still to be addressed.
  23080. * platform/win/ResourceLoaderWin.cpp:
  23081. (WebCore::addToOutstandingJobs): Skip dwContext of 0 (rollover case).
  23082. (WebCore::ResourceLoaderWndProc): Call default wndproc properly.
  23083. Pass INTERNET_FLAG_SECURE when necessary for HTTPS.
  23084. Fix redirect code.
  23085. Initialize buffers struct.
  23086. Pass proper context in InternetReadFileExA
  23087. (WebCore::initializeOffScreenResourceLoaderWindow): Init a struct to {0} instead of using memset.
  23088. (WebCore::transferJobStatusCallback): Prevent future bugs by making an else a bit more explicit.
  23089. (WebCore::ResourceLoader::start): Pass proper port for HTTP vs. HTTPS.
  23090. (WebCore::ResourceLoader::cancel): Zero out handle when closing.
  23091. 2006-10-01 Dave Hyatt <hyatt@apple.com>
  23092. Finish the scrollbar. Handle arrow and track scrolling. Everything is finished now except for implementing a Win2k look.
  23093. * platform/win/PlatformScrollBar.h:
  23094. * platform/win/PlatformScrollBarWin.cpp:
  23095. (WebCore::PlatformScrollBar::PlatformScrollBar):
  23096. (WebCore::PlatformScrollBar::~PlatformScrollBar):
  23097. (WebCore::PlatformScrollBar::thumbRect):
  23098. (WebCore::PlatformScrollBar::handleMouseMoveEvent):
  23099. (WebCore::PlatformScrollBar::handleMousePressEvent):
  23100. (WebCore::PlatformScrollBar::handleMouseReleaseEvent):
  23101. (WebCore::PlatformScrollBar::startTimerIfNeeded):
  23102. (WebCore::PlatformScrollBar::stopTimerIfNeeded):
  23103. (WebCore::PlatformScrollBar::autoscrollPressedPart):
  23104. (WebCore::PlatformScrollBar::autoscrollTimerFired):
  23105. (WebCore::PlatformScrollBar::pressedPartScrollDirection):
  23106. (WebCore::PlatformScrollBar::pressedPartScrollGranularity):
  23107. (WebCore::PlatformScrollBar::thumbUnderMouse):
  23108. 2006-10-01 Dave Hyatt <hyatt@apple.com>
  23109. Make thumb dragging work on the scrollbar.
  23110. Fix mouse and wheel events to use GET_X_LPARAM and GET_Y_LPARAM so that negative coordinates work.
  23111. (This comes up when a widget is capturing events and the mouse moves outside the HWND.)
  23112. * platform/win/PlatformMouseEventWin.cpp:
  23113. (WebCore::positionForEvent):
  23114. (WebCore::globalPositionForEvent):
  23115. * platform/win/PlatformScrollBar.h:
  23116. * platform/win/PlatformScrollBarWin.cpp:
  23117. (WebCore::PlatformScrollBar::PlatformScrollBar):
  23118. (WebCore::PlatformScrollBar::handleMouseMoveEvent):
  23119. (WebCore::PlatformScrollBar::handleMousePressEvent):
  23120. (WebCore::PlatformScrollBar::handleMouseReleaseEvent):
  23121. (WebCore::PlatformScrollBar::startTimerIfNeeded):
  23122. (WebCore::PlatformScrollBar::stopTimerIfNeeded):
  23123. * platform/win/WheelEventWin.cpp:
  23124. (WebCore::positionForEvent):
  23125. (WebCore::globalPositionForEvent):
  23126. 2006-10-01 Dave Hyatt <hyatt@apple.com>
  23127. Hook up the mouse capture architecture so that child widgets capture events while the mouse is pressed.
  23128. Hook up tracking the pressed object on a scrollbar and proper painting of the scrollbar's
  23129. pressed state.
  23130. * bridge/win/FrameViewWin.cpp:
  23131. (WebCore::FrameView::passMousePressEventToSubframe):
  23132. (WebCore::FrameView::passMousePressEventToScrollbar):
  23133. * platform/win/PlatformScrollBar.h:
  23134. * platform/win/PlatformScrollBarWin.cpp:
  23135. (WebCore::PlatformScrollBar::PlatformScrollBar):
  23136. (WebCore::PlatformScrollBar::paintButton):
  23137. (WebCore::PlatformScrollBar::paintTrack):
  23138. (WebCore::PlatformScrollBar::paintThumb):
  23139. (WebCore::PlatformScrollBar::paintGripper):
  23140. (WebCore::PlatformScrollBar::handleMouseMoveEvent):
  23141. (WebCore::PlatformScrollBar::handleMousePressEvent):
  23142. (WebCore::PlatformScrollBar::handleMouseReleaseEvent):
  23143. * platform/win/WidgetWin.cpp:
  23144. (WebCore::Widget::setCapturingChild):
  23145. 2006-09-30 Dave Hyatt <hyatt@apple.com>
  23146. This patch makes iframes and frames able to receive mouse events. Down, up, click, selection
  23147. all work. This patch also fixes bugs in scrolling and makes wheel events work on iframes.
  23148. A capturing system for routing events to the proper subwidget when the mouse has down
  23149. is also stubbed out (but not yet used).
  23150. Reviewed by andersca
  23151. * WebCore.vcproj/WebCore.vcproj:
  23152. * bridge/win/FrameViewWin.cpp: Added.
  23153. (WebCore::FrameView::passMousePressEventToSubframe):
  23154. (WebCore::FrameView::passMouseMoveEventToSubframe):
  23155. (WebCore::FrameView::passMouseReleaseEventToSubframe):
  23156. (WebCore::FrameView::passWheelEventToSubframe):
  23157. * bridge/win/FrameWin.cpp:
  23158. * bridge/win/FrameWin.h:
  23159. * platform/win/PlatformScrollBar.h:
  23160. * platform/win/PlatformScrollBarWin.cpp:
  23161. (WebCore::PlatformScrollBar::handleMouseMoveEvent):
  23162. (WebCore::PlatformScrollBar::handleMouseOutEvent):
  23163. (WebCore::PlatformScrollBar::handleMouseReleaseEvent):
  23164. * platform/win/ScrollViewWin.cpp:
  23165. (WebCore::ScrollView::visibleContentRect):
  23166. (WebCore::ScrollView::scrollBy):
  23167. (WebCore::ScrollView::removeChild):
  23168. * platform/win/TemporaryLinkStubs.cpp:
  23169. (FrameWin::print):
  23170. (FrameWin::lastEventIsMouseUp):
  23171. * platform/win/WidgetWin.cpp:
  23172. (WebCore::Widget::Widget):
  23173. (WebCore::Widget::capturingMouse):
  23174. (WebCore::Widget::setCapturingMouse):
  23175. (WebCore::Widget::capturingTarget):
  23176. (WebCore::Widget::capturingChild):
  23177. (WebCore::Widget::setCapturingChild):
  23178. 2006-09-29 Steve Falkenburg <sfalken@apple.com>
  23179. Fix the build.
  23180. * platform/win/PlatformScrollBarWin.cpp:
  23181. 2006-09-29 Adele Peterson <adele@apple.com>
  23182. Adding RenderListBox files.
  23183. * WebCore.vcproj/WebCore.vcproj:
  23184. 2006-09-29 Adele Peterson <adele@apple.com>
  23185. Reviewed by Adam.
  23186. Updated constructor for PlatformScrollBar to include controlSize argument.
  23187. * platform/win/PlatformScrollBar.h:
  23188. * platform/win/PlatformScrollBarWin.cpp:
  23189. (WebCore::PlatformScrollBar::PlatformScrollBar):
  23190. 2006-09-29 Adam Roben <aroben@apple.com>
  23191. Reviewed by hyatt.
  23192. Add error logging to plugin code.
  23193. * WebCore.vcproj/WebCore.vcproj: Added PluginDebug.h
  23194. * platform/win/NotImplemented.h: Add surrounding #ifndef/#endif
  23195. * plugins/win/PluginDebug.h: Added.
  23196. * plugins/win/PluginPackageWin.cpp: Add error logging
  23197. (WebCore::PluginPackageWin::load):
  23198. * plugins/win/PluginStreamWin.cpp: Ditto.
  23199. (WebCore::PluginStreamWin::startStream):
  23200. (WebCore::PluginStreamWin::destroyStream):
  23201. (WebCore::PluginStreamWin::deliverData):
  23202. (WebCore::PluginStreamWin::receivedAllData):
  23203. * plugins/win/PluginViewWin.cpp: Ditto.
  23204. (WebCore::PluginViewWin::start):
  23205. (WebCore::PluginViewWin::stop):
  23206. (WebCore::PluginViewWin::newStream):
  23207. (WebCore::PluginViewWin::write):
  23208. (WebCore::PluginViewWin::destroyStream):
  23209. 2006-09-29 Dave Hyatt <hyatt@apple.com>
  23210. Fork MouseEventWin.cpp into (the better-named) PlatformMouseEventWin.cpp.
  23211. * WebCore.vcproj/WebCore.vcproj:
  23212. * platform/win/PlatformMouseEventWin.cpp: Added.
  23213. 2006-09-28 Dave Hyatt <hyatt@apple.com>
  23214. Make scrollbars scroll correctly when setValue is called. Needed to do float math instead of integer
  23215. math (and also fix some buggy math when computing the thumb position).
  23216. * platform/win/PlatformScrollBarWin.cpp:
  23217. (WebCore::PlatformScrollBar::thumbPosition):
  23218. 2006-09-28 Dave Hyatt <hyatt@apple.com>
  23219. Make scrollbars on Win32 respond to hover events. The thumb and arrow buttons will now properly hover when
  23220. the mouse enters and exits them.
  23221. * platform/win/PlatformScrollBar.h:
  23222. * platform/win/PlatformScrollBarWin.cpp:
  23223. (WebCore::PlatformScrollBar::invalidatePart):
  23224. (WebCore::PlatformScrollBar::paintButton):
  23225. (WebCore::PlatformScrollBar::paintTrack):
  23226. (WebCore::PlatformScrollBar::paintThumb):
  23227. (WebCore::PlatformScrollBar::paintGripper):
  23228. (WebCore::PlatformScrollBar::hitTest):
  23229. (WebCore::PlatformScrollBar::mouseMoved):
  23230. (WebCore::PlatformScrollBar::mouseExited):
  23231. 2006-09-28 Steve Falkenburg <sfalken@apple.com>
  23232. Reviewed by Maciej.
  23233. Use $(ConfigSuffix) set via vsprops files to add _debug
  23234. to end of debug filenames.
  23235. Update B&I build script.
  23236. * WebCore.vcproj/WebCore.make:
  23237. * WebCore.vcproj/WebCore.vcproj:
  23238. * WebCore.vcproj/debug.vsprops: Added.
  23239. * WebCore.vcproj/release.vsprops: Added.
  23240. 2006-09-28 Adam Roben <aroben@apple.com>
  23241. Reviewed by Hyatt.
  23242. Avoid creating LOGFONTs for bitmap fonts under CG, since we don't
  23243. support them anyway.
  23244. * platform/win/FontCacheWin.cpp:
  23245. (WebCore::FontCache::createFontPlatformData): Set lfOutPrecision to
  23246. OUT_TT_ONLY_PRECIS to avoid bitmap fonts.
  23247. * platform/win/FontPlatformDataWin.cpp:
  23248. (WebCore::FontPlatformData::FontPlatformData): Change the LOG_ERROR
  23249. back to an ASSERT since we should never reach this condition now.
  23250. 2006-09-28 Dave Hyatt <hyatt@apple.com>
  23251. This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
  23252. ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
  23253. view.
  23254. Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
  23255. the patch after review, once I realized that these new functions essentially do the same thing.)
  23256. * platform/win/ScrollViewWin.cpp:
  23257. (WebCore::ScrollView::updateContents):
  23258. (WebCore::ScrollView::convertToContainingWindow):
  23259. (WebCore::ScrollView::convertFromContainingWindow):
  23260. (WebCore::ScrollView::scrollBy):
  23261. * platform/win/WidgetWin.cpp:
  23262. (WebCore::Widget::convertToContainingWindow):
  23263. (WebCore::Widget::convertFromContainingWindow):
  23264. 2006-09-28 Adam Roben <aroben@apple.com>
  23265. Reviewed by Anders.
  23266. Fail without crashing and log an error when CG encounters a bitmap
  23267. font.
  23268. * platform/win/FontPlatformDataWin.cpp:
  23269. (WebCore::FontPlatformData::FontPlatformData): Trade LOG_ERROR for
  23270. ASSERT_WITH_MESSAGE
  23271. 2006-09-27 Alice Liu <alice.liu@apple.com>
  23272. Reviewed by Steve & Adam.
  23273. * WebCore.vcproj/WebCore.vcproj:
  23274. Added files to the project file
  23275. * platform/win/TemporaryLinkStubs.cpp:
  23276. Removed stub for findWordBoundary
  23277. * platform/win/TextBoundariesWin.cpp: Added.
  23278. Implemented cross-platform findWordBoundary. We're still keeping the mac one intact for now.
  23279. (WebCore::findWordBoundary):
  23280. 2006-09-28 Adam Roben <aroben@apple.com>
  23281. Reviewed by Adele.
  23282. Remove never-to-be-used PopUpButton
  23283. * WebCore.vcproj/WebCore.vcproj: Remove PopUpButton.h
  23284. * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
  23285. 2006-09-28 Adam Roben <aroben@apple.com>
  23286. Reviewed by Alice.
  23287. Replace notImplemented() with LOG_NOIMPL() and STOP_NOIMPL() macros
  23288. which generate debug output. STOP_NOIMPL() also generates a debug
  23289. break. Replace calls to notImplemented() with
  23290. LOG_NOIMPL()/STOP_NOIMPL() as appropriate. This should stop some unnecessary
  23291. crashes where notImplemented() was called from a method that can fail
  23292. safely.
  23293. * WebCore.vcproj/WebCore.vcproj: Added NotImplemented.h
  23294. * platform/win/FontWin.cpp: Use LOG_NOIMPL() instead of notImplemented().
  23295. (WebCore::Font::selectionRectForComplexText):
  23296. (WebCore::Font::drawComplexText):
  23297. (WebCore::Font::floatWidthForComplexText):
  23298. (WebCore::Font::offsetForPositionForComplexText):
  23299. * platform/win/NotImplemented.h: Added. Contains new LOG_NOIMPL() and
  23300. STOP_NOIMPL() macros.
  23301. * platform/win/TemporaryLinkStubs.cpp: Use LOG_NOIMPL() and
  23302. STOP_NOIMPL() instead of notImplemented() or nothing.
  23303. (PopUpButton::focusPolicy):
  23304. (PopUpButton::populate):
  23305. (Widget::enableFlushDrawing):
  23306. (Widget::focusPolicy):
  23307. (Widget::disableFlushDrawing):
  23308. (Widget::lockDrawingFocus):
  23309. (Widget::unlockDrawingFocus):
  23310. (JavaAppletWidget::JavaAppletWidget):
  23311. (TextField::selectAll):
  23312. (TextField::addSearchResult):
  23313. (TextField::selectionStart):
  23314. (TextField::hasSelectedText):
  23315. (TextField::selectedText):
  23316. (TextField::setAutoSaveName):
  23317. (TextField::checksDescendantsForFocus):
  23318. (TextField::setSelection):
  23319. (TextField::setMaxResults):
  23320. (TextField::edited):
  23321. (Slider::Slider):
  23322. (Slider::sizeHint):
  23323. (Slider::setValue):
  23324. (Slider::setMaxValue):
  23325. (Slider::setMinValue):
  23326. (Slider::~Slider):
  23327. (Slider::setFont):
  23328. (Slider::value):
  23329. (ListBox::sizeForNumberOfLines):
  23330. (ListBox::isSelected):
  23331. (ListBox::checksDescendantsForFocus):
  23332. (Slider::focusPolicy):
  23333. (ListBox::focusPolicy):
  23334. (TextField::focusPolicy):
  23335. (Cursor::Cursor):
  23336. (PlatformMouseEvent::PlatformMouseEvent):
  23337. (WebCore::searchableIndexIntroduction):
  23338. (WebCore::findNextSentenceFromIndex):
  23339. (WebCore::findSentenceBoundary):
  23340. (WebCore::findNextWordFromIndex):
  23341. (WebCore::ServeSynchronousRequest):
  23342. (FrameWin::focusWindow):
  23343. (FrameWin::unfocusWindow):
  23344. (FrameWin::locationbarVisible):
  23345. (FrameWin::registerCommandForRedo):
  23346. (FrameWin::getObjectInstanceForWidget):
  23347. (FrameWin::getEmbedInstanceForWidget):
  23348. (FrameWin::getAppletInstanceForWidget):
  23349. (FrameWin::canRedo):
  23350. (FrameWin::canUndo):
  23351. (FrameWin::canPaste):
  23352. (FrameWin::canGoBackOrForward):
  23353. (FrameWin::shouldInterruptJavaScript):
  23354. (FrameWin::openURL):
  23355. (FrameWin::print):
  23356. (FrameWin::passMouseDownEventToWidget):
  23357. (FrameWin::issueCutCommand):
  23358. (FrameWin::issueCopyCommand):
  23359. (FrameWin::issuePasteCommand):
  23360. (FrameWin::issueUndoCommand):
  23361. (FrameWin::issueRedoCommand):
  23362. (FrameWin::issuePasteAndMatchStyleCommand):
  23363. (FrameWin::issueTransposeCommand):
  23364. (FrameWin::passWheelEventToChildWidget):
  23365. (FrameWin::mimeTypeForFileName):
  23366. (FrameWin::scheduleClose):
  23367. (FrameWin::markMisspellings):
  23368. (FrameWin::menubarVisible):
  23369. (FrameWin::personalbarVisible):
  23370. (FrameWin::statusbarVisible):
  23371. (FrameWin::toolbarVisible):
  23372. (FrameWin::originalRequestURL):
  23373. (FrameWin::isLoadTypeReload):
  23374. (BrowserExtensionWin::canRunModal):
  23375. (BrowserExtensionWin::createNewWindow):
  23376. (BrowserExtensionWin::canRunModalNow):
  23377. (BrowserExtensionWin::runModal):
  23378. (BrowserExtensionWin::goBackOrForward):
  23379. (BrowserExtensionWin::historyURL):
  23380. (GraphicsContext::addRoundedRectClip):
  23381. (GraphicsContext::addInnerRoundedRectClip):
  23382. (WebCore::screenDepthPerComponent):
  23383. (WebCore::screenIsMonochrome):
  23384. (WebCore::moveCursor):
  23385. (WebCore::inputElementAltText):
  23386. (WebCore::findWordBoundary):
  23387. (WebCore::ResourceLoader::assembleResponseHeaders):
  23388. (WebCore::ResourceLoader::retrieveCharset):
  23389. (FrameView::updateBorder):
  23390. (FrameWin::restoreDocumentState):
  23391. (FrameWin::partClearedInBegin):
  23392. (FrameWin::createEmptyDocument):
  23393. (FrameWin::overrideMediaType):
  23394. (FrameWin::markedTextRange):
  23395. (FrameWin::addMessageToConsole):
  23396. (FrameWin::shouldChangeSelection):
  23397. (FrameWin::respondToChangedSelection):
  23398. (FrameWin::saveDocumentState):
  23399. (FrameWin::registerCommandForUndo):
  23400. (FrameWin::clearUndoRedoOperations):
  23401. (FrameWin::incomingReferrer):
  23402. (FrameWin::markMisspellingsInAdjacentWords):
  23403. (FrameWin::respondToChangedContents):
  23404. (BrowserExtensionWin::BrowserExtensionWin):
  23405. (BrowserExtensionWin::setTypedIconURL):
  23406. (BrowserExtensionWin::setIconURL):
  23407. (BrowserExtensionWin::getHistoryLength):
  23408. (WebCore::CheckIfReloading):
  23409. (WebCore::CheckCacheObjectStatus):
  23410. (Widget::setIsSelected):
  23411. (ScrollView::inWindow):
  23412. (ScrollView::scrollPointRecursively):
  23413. (GraphicsContext::setShadow):
  23414. (GraphicsContext::clearShadow):
  23415. (GraphicsContext::beginTransparencyLayer):
  23416. (GraphicsContext::endTransparencyLayer):
  23417. (GraphicsContext::clearRect):
  23418. (GraphicsContext::strokeRect):
  23419. (GraphicsContext::setLineWidth):
  23420. (GraphicsContext::setLineCap):
  23421. (GraphicsContext::setLineJoin):
  23422. (GraphicsContext::setMiterLimit):
  23423. (GraphicsContext::setAlpha):
  23424. (GraphicsContext::clip):
  23425. (GraphicsContext::rotate):
  23426. (GraphicsContext::scale):
  23427. (Path::Path):
  23428. (Path::~Path):
  23429. (Path::contains):
  23430. (Path::translate):
  23431. (Path::boundingRect):
  23432. (Path::operator=):
  23433. (Path::clear):
  23434. (Path::moveTo):
  23435. (Path::addLineTo):
  23436. (Path::addQuadCurveTo):
  23437. (Path::addBezierCurveTo):
  23438. (Path::addArcTo):
  23439. (Path::closeSubpath):
  23440. (Path::addArc):
  23441. (Path::addRect):
  23442. (Path::addEllipse):
  23443. (GraphicsContext::drawFocusRing):
  23444. (GraphicsContext::drawLineForMisspelling):
  23445. (GraphicsContext::setCompositeOperation):
  23446. (TextField::TextField):
  23447. (TextField::~TextField):
  23448. (TextField::setFont):
  23449. (TextField::setAlignment):
  23450. (TextField::setWritingDirection):
  23451. (TextField::maxLength):
  23452. (TextField::setMaxLength):
  23453. (TextField::text):
  23454. (TextField::setText):
  23455. (TextField::cursorPosition):
  23456. (TextField::setCursorPosition):
  23457. (TextField::setEdited):
  23458. (TextField::setReadOnly):
  23459. (TextField::setPlaceholderString):
  23460. (TextField::setColors):
  23461. (TextField::sizeForCharacterWidth):
  23462. (TextField::baselinePosition):
  23463. (TextField::setLiveSearch):
  23464. (PopUpButton::PopUpButton):
  23465. (PopUpButton::~PopUpButton):
  23466. (PopUpButton::setFont):
  23467. (PopUpButton::baselinePosition):
  23468. (PopUpButton::setWritingDirection):
  23469. (PopUpButton::clear):
  23470. (PopUpButton::appendItem):
  23471. (PopUpButton::setCurrentItem):
  23472. (PopUpButton::sizeHint):
  23473. (PopUpButton::frameGeometry):
  23474. (PopUpButton::setFrameGeometry):
  23475. (ListBox::ListBox):
  23476. (ListBox::~ListBox):
  23477. (ListBox::setSelectionMode):
  23478. (ListBox::setFont):
  23479. (ListBox::setWritingDirection):
  23480. (ListBox::clear):
  23481. (ListBox::doneAppendingItems):
  23482. (ListBox::setEnabled):
  23483. (ListBox::appendItem):
  23484. (ListBox::setSelected):
  23485. (WebCore::focusRingColor):
  23486. (WebCore::setFocusRingColorChangeFunction):
  23487. (Frame::setNeedsReapplyStyles):
  23488. (Image::drawTiled):
  23489. (RenderPopupMenuWin::addSeparator):
  23490. (RenderPopupMenuWin::addGroupLabel):
  23491. (IconLoader::receivedResponse):
  23492. (IconLoader::notifyIconChanged):
  23493. * plugins/win/PluginViewWin.cpp:
  23494. (WebCore::PluginViewWin::setValue):
  23495. 2006-09-28 Adam Roben <aroben@apple.com>
  23496. Rubberstamped by sfalken.
  23497. Remove calls to DebugBreak() from plugin code.
  23498. * plugins/win/PluginViewWin.cpp:
  23499. (WebCore::PluginViewWin::getValue):
  23500. (WebCore::PluginViewWin::setValue):
  23501. 2006-09-28 Dave Hyatt <hyatt@apple.com>
  23502. Eliminate the use of MapWindowPoints on Win32. Just use the outermost HWND as the point of reference for events.
  23503. Stub out the mouse methods from the open source checkin and add a new member variable to track the current hovered scrollbar part.
  23504. * platform/win/PlatformScrollBar.h:
  23505. (WebCore::):
  23506. * platform/win/PlatformScrollBarWin.cpp:
  23507. (WebCore::PlatformScrollBar::PlatformScrollBar):
  23508. (WebCore::PlatformScrollBar::mouseMoved):
  23509. (WebCore::PlatformScrollBar::mouseExited):
  23510. * platform/win/ScrollViewWin.cpp:
  23511. (WebCore::ScrollView::viewportToContents):
  23512. (WebCore::ScrollView::contentsToViewport):
  23513. * platform/win/WheelEventWin.cpp:
  23514. (WebCore::positionForEvent):
  23515. 2006-09-27 Steve Falkenburg <sfalken@apple.com>
  23516. Reviewed by Maciej.
  23517. Prefer pulling project dependencies from WebKitOutputDir over
  23518. WebKitSDKDir. Don't copy build output back over to WebKitSDKDir.
  23519. * WebCore.vcproj/WebCore.vcproj:
  23520. * WebCore.vcproj/build-generated-files.sh:
  23521. * WebCore.vcproj/dstroot-to-sdk.cmd: Removed.
  23522. 2006-09-27 Steve Falkenburg <sfalken@apple.com>
  23523. B&I build fixes
  23524. * WebCore.vcproj/WebCore.make:
  23525. * WebCore.vcproj/WebCore.vcproj:
  23526. * WebCore.vcproj/build-generated-files.sh:
  23527. 2006-09-27 Adam Roben <aroben@apple.com>
  23528. Reviewed by sfalken.
  23529. Don't die when plugins try to open a new window.
  23530. * plugins/win/PluginViewWin.cpp:
  23531. (WebCore::PluginViewWin::performRequest): Remove call to DebugBreak()
  23532. 2006-09-27 Steve Falkenburg <sfalken@apple.com>
  23533. B&I build script tweaks.
  23534. * WebCore.vcproj/WebCore.make:
  23535. 2006-09-27 Steve Falkenburg <sfalken@apple.com>
  23536. Reviewed by Hyatt.
  23537. Turn on CG
  23538. * config.h:
  23539. 2006-09-27 Adam Roben <aroben@apple.com>
  23540. Reviewed by Lou.
  23541. Fix crash in plugins due to Flash on nytimes.com
  23542. * plugins/win/PluginStreamWin.cpp:
  23543. (WebCore::PluginStreamWin::PluginStreamWin): memset m_stream to 0
  23544. 2006-09-27 Adam Roben <aroben@apple.com>
  23545. Reviewed by sfalken.
  23546. Scroll plugins (at least in some cases).
  23547. * platform/win/ScrollViewWin.cpp:
  23548. (WebCore::ScrollView::scrollBy): Pass SW_SCROLLCHILDREN to ScrollWindowEx()
  23549. 2006-09-27 Steve Falkenburg <sfalken@apple.com>
  23550. Reviewed by Adam.
  23551. Remove unimplemented from a temporary link stub.
  23552. * platform/win/TemporaryLinkStubs.cpp:
  23553. (GraphicsContext::addInnerRoundedRectClip):
  23554. 2006-09-27 Sean Gies <seangies@apple.com>
  23555. Reviewed by Brady Eidson.
  23556. * WebCore.vcproj/WebCore.vcproj: Added platform/win/WebCoreSystemInterface.h/cpp
  23557. * platform/win/WebCoreSystemInterface.cpp: Added.
  23558. * platform/win/WebCoreSystemInterface.h: Added.
  23559. 2006-09-26 Adam Roben <aroben@apple.com>
  23560. Reviewed by sfalken.
  23561. Fixes <rdar://problem/4751600>
  23562. Hang on Amazon.com involving Flash
  23563. * plugins/win/PluginStreamWin.cpp: Rename m_streamStarted to
  23564. m_isTerminated to match Mac code (m_isTerminated is the negation of
  23565. m_streamStarted)
  23566. (WebCore::PluginStreamWin::PluginStreamWin): Initialize m_isTerminated
  23567. to false to match Mac code.
  23568. (WebCore::PluginStreamWin::~PluginStreamWin): Rename and negate.
  23569. (WebCore::PluginStreamWin::stop): Remove assignment of m_streamStarted
  23570. to match Mac code.
  23571. (WebCore::PluginStreamWin::startStream): Rename and negate. Remove
  23572. now-unnecessary assignment of m_streamStarted to true because we set
  23573. m_isTerminated to false in the constructor.
  23574. (WebCore::PluginStreamWin::destroyStream): Rename and negate.
  23575. * plugins/win/PluginStreamWin.h: Rename m_streamStarted to
  23576. m_isTerminated.
  23577. * plugins/win/PluginViewWin.cpp:
  23578. (WebCore::PluginViewWin::performRequest): Send the correct response URL
  23579. to the plugin.
  23580. 2006-09-26 Steve Falkenburg <sfalken@apple.com>
  23581. More temporary link stubs moved.
  23582. Build tweaks.
  23583. * ChangeLog:
  23584. * WebCore.vcproj/WebCore.make: Added.
  23585. * WebCore.vcproj/WebCore.vcproj:
  23586. * platform/win/TemporaryLinkStubs.cpp:
  23587. (ListBox::isSelected):
  23588. (ListBox::setWritingDirection):
  23589. (ListBox::clear):
  23590. (ListBox::doneAppendingItems):
  23591. (ListBox::setEnabled):
  23592. (ListBox::appendItem):
  23593. (ListBox::setSelected):
  23594. 2006-09-26 Sean Gies <seangies@apple.com>
  23595. Reviewed by Brady Eidson.
  23596. * platform/win/GraphicsContextWin.cpp:
  23597. (WebCore::CGContextWithHDC): Make a static function.
  23598. (WebCore::GraphicsContext::getWindowsContext): Assume flipped coordinates.
  23599. 2006-09-26 Brady Eidson <beidson@apple.com>
  23600. Nuked another notImplemented() that is getting hit
  23601. * platform/win/TemporaryLinkStubs.cpp:
  23602. (GraphicsContext::addRoundedRectClip):
  23603. 2006-09-26 Sean Gies <seangies@apple.com>
  23604. Reviewed by Adam Roben.
  23605. * WebCore.vcproj/WebCore.vcproj: Use Debug DLL C runtime for debug config.
  23606. 2006-09-26 Lou Amadio <lamadio@apple.com>
  23607. Reviewed by ggaren
  23608. Uninitialized variable caused a memory corruption on cnn.com
  23609. WARNING: NO TEST CASES ADDED OR CHANGED
  23610. * plugins/win/PlugInInfoStoreWin.cpp:
  23611. (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
  23612. 2006-09-26 Dave Hyatt <hyatt@apple.com>
  23613. Fix my buggy invalidateRect implementation for Win32 widgets.
  23614. Clean up my rect computation code in scrollbar to use x() and y() instead of
  23615. frameGeometry().x()/y().
  23616. Add a new invalidateTrack() method that invalidates the track (and handles
  23617. putting the rect into the right coordinate space for proper invalidation
  23618. now that I fixed invalidateRect).
  23619. * platform/win/PlatformScrollBar.h:
  23620. * platform/win/PlatformScrollBarWin.cpp:
  23621. (WebCore::PlatformScrollBar::updateThumbPosition):
  23622. (WebCore::PlatformScrollBar::updateThumbProportion):
  23623. (WebCore::PlatformScrollBar::invalidateTrack):
  23624. (WebCore::PlatformScrollBar::backButtonRect):
  23625. (WebCore::PlatformScrollBar::forwardButtonRect):
  23626. (WebCore::PlatformScrollBar::trackRect):
  23627. * platform/win/WidgetWin.cpp:
  23628. (WebCore::Widget::invalidate):
  23629. 2006-09-26 Dave Hyatt <hyatt@apple.com>
  23630. Teach all our Win32 theme code (RenderTheme and PlatformScrollBar) how to respond correctly to OS theme changes.
  23631. Implement painting of scrollbars using theme APIs. The arrow buttons, track, thumb and gripper all paint properly
  23632. now. Next up is hit testing and proper hover feedback.
  23633. Reviewed by andersca
  23634. * platform/win/PlatformScrollBar.h:
  23635. * platform/win/PlatformScrollBarWin.cpp:
  23636. (WebCore::PlatformScrollBar::PlatformScrollBar):
  23637. (WebCore::PlatformScrollBar::paint):
  23638. (WebCore::PlatformScrollBar::backButtonRect):
  23639. (WebCore::PlatformScrollBar::forwardButtonRect):
  23640. (WebCore::PlatformScrollBar::trackRect):
  23641. (WebCore::PlatformScrollBar::gripperRect):
  23642. (WebCore::PlatformScrollBar::splitTrack):
  23643. (WebCore::PlatformScrollBar::thumbPosition):
  23644. (WebCore::PlatformScrollBar::thumbLength):
  23645. (WebCore::PlatformScrollBar::paintButton):
  23646. (WebCore::PlatformScrollBar::paintTrack):
  23647. (WebCore::PlatformScrollBar::paintThumb):
  23648. (WebCore::PlatformScrollBar::paintGripper):
  23649. (WebCore::PlatformScrollBar::themeChanged):
  23650. * platform/win/ScrollViewWin.cpp:
  23651. (WebCore::ScrollView::themeChanged):
  23652. * platform/win/TemporaryLinkStubs.cpp:
  23653. (Widget::enableFlushDrawing):
  23654. * platform/win/WidgetWin.cpp:
  23655. (WebCore::Widget::isEnabled):
  23656. * rendering/RenderThemeWin.cpp:
  23657. (WebCore::RenderThemeWin::RenderThemeWin):
  23658. (WebCore::RenderThemeWin::openButtonTheme):
  23659. (WebCore::RenderThemeWin::openTextFieldTheme):
  23660. (WebCore::RenderThemeWin::openMenuListTheme):
  23661. (WebCore::RenderThemeWin::close):
  23662. (WebCore::RenderThemeWin::themeChanged):
  23663. * rendering/RenderThemeWin.h:
  23664. 2006-09-25 Adam Roben <aroben@apple.com>
  23665. Rubberstamped by sfalken.
  23666. Set svn:eol-style to native and cleanup line endings on plugins files.
  23667. * plugins/win/PluginStreamWin.cpp:
  23668. (WebCore::PluginStreamWin::PluginStreamWin):
  23669. (WebCore::PluginStreamWin::~PluginStreamWin):
  23670. (WebCore::PluginStreamWin::start):
  23671. (WebCore::PluginStreamWin::startStream):
  23672. (WebCore::PluginStreamWin::destroyStream):
  23673. (WebCore::PluginStreamWin::deliverData):
  23674. (WebCore::PluginStreamWin::receivedResponse):
  23675. (WebCore::PluginStreamWin::receivedData):
  23676. (WebCore::PluginStreamWin::receivedAllData):
  23677. 2006-09-25 Adam Roben <aroben@apple.com>
  23678. Reviewed by Brady.
  23679. Fixes <rdar://problem/4749494>
  23680. Crash/ASSERT in plugins at Fark.com
  23681. * platform/win/ResourceLoaderWin.cpp: Store whether a particular job
  23682. has received a response within the ResourceLoader object itself, since
  23683. it's possible that we will enter the InternetReadFileExA while loop
  23684. twice for the same job.
  23685. (WebCore::ResourceLoaderWndProc): Ask the job whether it has received a
  23686. response instead of assuming it hasn't.
  23687. (WebCore::ResourceLoader::setHasReceivedResponse): Added.
  23688. (WebCore::ResourceLoader::hasReceivedResponse): Added.
  23689. 2006-09-25 Adam Roben <aroben@apple.com>
  23690. Rubberstamped by sfalken.
  23691. Continuing the removal of unnecessary notImplemented() calls.
  23692. * platform/win/TemporaryLinkStubs.cpp:
  23693. (PlatformMouseEvent::PlatformMouseEvent):
  23694. (FrameWin::passWheelEventToChildWidget):
  23695. 2006-09-25 Adam Roben <aroben@apple.com>
  23696. Rubberstamped by sfalken.
  23697. More notImplemented()-ectomy.
  23698. * platform/win/TemporaryLinkStubs.cpp:
  23699. (RenderPopupMenuWin::addSeparator):
  23700. (RenderPopupMenuWin::addGroupLabel):
  23701. 2006-09-25 Adam Roben <aroben@apple.com>
  23702. Rubberstamped by sfalken.
  23703. Remove calls to notImplemented() from functions that can fail safely.
  23704. * platform/win/TemporaryLinkStubs.cpp:
  23705. (FrameWin::originalRequestURL):
  23706. (FrameWin::isLoadTypeReload):
  23707. (IconLoader::receivedResponse):
  23708. (IconLoader::notifyIconChanged):
  23709. 2006-09-25 Adam Roben <aroben@apple.com>
  23710. Rubberstamped by sfalken.
  23711. Make notImplemented() crash even when not linked against the debug CRT.
  23712. * platform/win/TemporaryLinkStubs.cpp:
  23713. (notImplemented): Change _CrtDbgBreak() to ASSERT(0)
  23714. 2006-09-24 Dave Hyatt <hyatt@apple.com>
  23715. Update the scrollbar API to match the changes in the public tree.
  23716. Start implementing the Win32 scrollbar. Add some scaffolding for grabbing uxtheme.dll info and also
  23717. add some utility functions for breaking the scrollbar into individual components.
  23718. * platform/win/PlatformScrollBar.h:
  23719. * platform/win/PlatformScrollBarWin.cpp:
  23720. (WebCore::PlatformScrollBar::PlatformScrollBar):
  23721. (WebCore::PlatformScrollBar::updateThumbPosition):
  23722. (WebCore::PlatformScrollBar::updateThumbProportion):
  23723. (WebCore::PlatformScrollBar::paint):
  23724. (WebCore::PlatformScrollBar::backButtonRect):
  23725. (WebCore::PlatformScrollBar::forwardButtonRect):
  23726. (WebCore::PlatformScrollBar::trackRect):
  23727. (WebCore::PlatformScrollBar::splitTrack):
  23728. 2006-09-22 Steve Falkenburg <sfalken@apple.com>
  23729. Fix release build some more.
  23730. * WebCore.vcproj/WebCore.vcproj:
  23731. 2006-09-22 Brady Eidson <beidson@apple.com>
  23732. Extremely urgent update to my last two patches (without it, many urls will fail to load)
  23733. * platform/win/ResourceLoaderWin.cpp:
  23734. (WebCore::ResourceLoader::onRequestComplete):
  23735. 2006-09-22 Brady Eidson <beidson@apple.com>
  23736. Forgot some lines we needed to keep for the internal build in my last checkin
  23737. * platform/win/ResourceLoaderWin.cpp:
  23738. 2006-09-22 Brady Eidson <beidson@apple.com>
  23739. Reviewed by Steve
  23740. Landed from OpenSource - that version now supports Redirect like we need, and is a little cleaner design
  23741. * platform/win/ResourceLoaderWin.cpp:
  23742. (WebCore::):
  23743. (WebCore::ResourceLoaderWndProc):
  23744. (WebCore::initializeOffScreenResourceLoaderWindow):
  23745. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
  23746. (WebCore::ResourceLoader::onHandleCreated):
  23747. (WebCore::ResourceLoader::onRequestRedirected):
  23748. (WebCore::ResourceLoader::onRequestComplete):
  23749. (WebCore::transferJobStatusCallback):
  23750. (WebCore::ResourceLoader::start):
  23751. (WebCore::ResourceLoader::fileLoadTimer):
  23752. (WebCore::ResourceLoader::cancel):
  23753. 2006-09-22 Dave Hyatt <hyatt@apple.com>
  23754. Implement support for CSS2 system fonts on Win32. Implement support for our special control font so that controls now
  23755. pick up the correct font from the system. This fixes the crazy form control font sizes on e.g., www.google.com.
  23756. * platform/win/TemporaryLinkStubs.cpp:
  23757. * rendering/RenderThemeWin.cpp:
  23758. (WebCore::fillFontDescription):
  23759. (WebCore::RenderThemeWin::systemFont):
  23760. 2006-09-22 Dave Hyatt <hyatt@apple.com>
  23761. Scrollbar preparation work.
  23762. (1) Add support for enabling/disabling widgets.
  23763. (2) Add support for invalidation of part or all of a widget.
  23764. (3) Clean up some of the Win32 scrollbar code. All that's left is painting
  23765. and event handling. (Oh, is that all...) :)
  23766. Reviewed by anders
  23767. * platform/win/PlatformScrollBarWin.cpp:
  23768. (WebCore::PlatformScrollBar::setScrollBarValue):
  23769. (WebCore::PlatformScrollBar::setKnobProportion):
  23770. (WebCore::PlatformScrollBar::setEnabled):
  23771. (WebCore::PlatformScrollBar::paint):
  23772. * platform/win/TemporaryLinkStubs.cpp:
  23773. * platform/win/WidgetWin.cpp:
  23774. (WebCore::Widget::Widget):
  23775. (WebCore::Widget::setEnabled):
  23776. (WebCore::Widget::invalidate):
  23777. (WebCore::Widget::invalidateRect):
  23778. 2006-09-21 Brady Eidson <beidson@apple.com>
  23779. Build was broken for at least some, and I think my checkin that messed with
  23780. #include orders was to blame (and it was messy, broken or not) - this cleans that up
  23781. * platform/win/ResourceLoaderWin.cpp:
  23782. 2006-09-21 Alice Liu <alice.liu@apple.com>
  23783. Reviewed by Hyatt.
  23784. windows build fix
  23785. * platform/win/GraphicsContextWin.cpp:
  23786. wrapped a CG #include in #if PLATFORM(CG)
  23787. 2006-09-21 Geoffrey Garen <ggaren@apple.com>
  23788. Reviewed by Maciej, Hyatt, Steve.
  23789. frames!
  23790. Prep work:
  23791. - moved ScrollViewWin into OpenSourceWin
  23792. - set eol-style:native on some files and corrected line endings
  23793. - updated the WebCore project so that you don't need cygwin in your Windows path
  23794. to build correctly.
  23795. Real work:
  23796. On Windows, Widgets are no longer interfaces to Windows UI tookit objects. They're
  23797. just positioned objects.
  23798. Widgets position themselves relative to their parents. The top-level widget technically
  23799. has a position relative to the WebView, but that's academic, since it's always (0, 0).
  23800. All widgets draw inside a common containing window (the WebView window). ScrollView
  23801. handles transformation, clipping, and dirty rect management.
  23802. I've filed a bunch of bugs on remaining frames work. Most notably, closing a page with
  23803. a frame in it causes a crash because WebCore depends on WebKit to manage frame lifetime.
  23804. I'm going to fix that by integrating frame ownership into the DOM.
  23805. 2006-09-21 Steve Falkenburg <sfalken@apple.com>
  23806. Reviewed by Anders.
  23807. <rdar://4516072>
  23808. <rdar://4601320>
  23809. Implemented JavaScript alert/confirm/prompt inside app.
  23810. This is done via IWebUIDelegate.
  23811. * bridge/win/FrameWin.cpp:
  23812. (WebCore::FrameWin::userAgent):
  23813. (WebCore::FrameWin::runJavaScriptAlert):
  23814. (WebCore::FrameWin::runJavaScriptConfirm):
  23815. (WebCore::FrameWin::runJavaScriptPrompt):
  23816. * bridge/win/FrameWin.h:
  23817. * platform/win/TemporaryLinkStubs.cpp:
  23818. (FrameWin::registerCommandForRedo):
  23819. 2006-09-21 Sean Gies <seangies@apple.com>
  23820. Reviewed by NOBODY.
  23821. Unfork GraphicsContextCG.cpp.
  23822. * WebCore.vcproj/WebCore.vcproj: Unfork GraphicsContextCG.cpp and add GraphicsContextWin.cpp
  23823. * platform/win/GraphicsContextWin.cpp: Added.
  23824. 2006-09-21 Luke Wallis <wallis@apple.com>
  23825. Rubber stamped by Steve.
  23826. Added (commented out for now) defines for building on PLATFORM(CG).
  23827. * config.h:
  23828. 2006-09-21 Luke Wallis <wallis@apple.com>
  23829. Reviewed by Adam Roben.
  23830. Fix build. Added #if PLATFORM(CG) around variable defined only for CG.
  23831. * platform/win/FontDataWin.cpp:
  23832. (WebCore::FontData::platformInit):
  23833. 2006-09-21 Sean Gies <seangies@apple.com>
  23834. Reviewed by Adam Roben.
  23835. Draw form controls when rendering with CG.
  23836. * platform/cg/GraphicsContextCG.cpp:
  23837. (WebCore::CGContextWithHDC): New function to create CGContext given an HDC.
  23838. (WebCore::GraphicsContext::GraphicsContext): New constructor that takes an HDC.
  23839. (WebCore::GraphicsContext::getWindowsContext): Return underlying HDC to client.
  23840. (WebCore::GraphicsContext::releaseWindowsContext): Restore underlying HDC after client mucked with it.
  23841. * platform/cg/GraphicsContextPlatformPrivate.h: Add field to hold HDC.
  23842. * rendering/RenderThemeWin.cpp: Implement prepareForDrawing and doneDrawing for CG.
  23843. 2006-09-21 Anders Carlsson <acarlsson@apple.com>
  23844. Reviewed by Tim O.
  23845. Support getting the plugin element as an NPObject.
  23846. * plugins/win/PluginViewWin.cpp:
  23847. (WebCore::PluginViewWin::getValue):
  23848. (WebCore::PluginViewWin::PluginViewWin):
  23849. * plugins/win/PluginViewWin.h:
  23850. 2006-09-21 Sean Gies <seangies@apple.com>
  23851. Reviewed by Adam Roben.
  23852. Forked GraphicsContextCG.cpp and GraphicsContextPlatformPrivate.h from open source #16504.
  23853. * platform/cg/GraphicsContextCG.cpp: Added.
  23854. * platform/cg/GraphicsContextPlatformPrivate.h: Added.
  23855. 2006-09-21 Sean Gies <seangies@apple.com>
  23856. Reviewed by Adam Roben.
  23857. Support synthetic bold and/or oblique with CG.
  23858. * platform/win/FontCacheWin.cpp: Pass new arguments to updated FontPlatformData constructor.
  23859. * platform/win/FontDataWin.cpp:
  23860. (WebCore::FontData::platformInit): Choose synthetic bold offset.
  23861. (WebCore::FontData::platformWidthForGlyph): Take synthetic bold offset into account.
  23862. * platform/win/FontPlatformData.h: Add fields for synthetic styles.
  23863. * platform/win/FontPlatformDataWin.cpp: Ask HFONT if it supports bold or italics.
  23864. * platform/win/FontWin.cpp:
  23865. (WebCore::Font::drawGlyphs): Restore code for implementing synthetic stlyes.
  23866. 2006-09-21 Brady Eidson <beidson@apple.com>
  23867. Reviewed by Anders
  23868. Fixed one definite bug and did alot of cleanup to make it resemble the unforked version of the file
  23869. in preparation for merging it back out
  23870. * platform/win/ResourceLoaderWin.cpp:
  23871. (WebCore::ResourceLoaderWndProc):
  23872. (WebCore::transferJobStatusCallback): Fixed a bug here! :)
  23873. (WebCore::ResourceLoader::start):
  23874. (WebCore::ResourceLoader::fileLoadTimer):
  23875. (WebCore::ResourceLoader::cancel):
  23876. 2006-09-21 2006-09-21 Dave Hyatt <hyatt@apple.com>
  23877. Implement mouse wheel scrolling on Win32. Also forked ScrollViewWin.cpp and fixed some bugs in it.
  23878. * WebCore.vcproj/WebCore.vcproj:
  23879. * platform/win/ScrollViewWin.cpp: Added.
  23880. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  23881. (WebCore::ScrollView::ScrollView):
  23882. (WebCore::ScrollView::~ScrollView):
  23883. (WebCore::ScrollView::updateContents):
  23884. (WebCore::ScrollView::visibleWidth):
  23885. (WebCore::ScrollView::visibleHeight):
  23886. (WebCore::ScrollView::visibleContentRect):
  23887. (WebCore::ScrollView::setContentsPos):
  23888. (WebCore::ScrollView::resizeContents):
  23889. (WebCore::ScrollView::contentsX):
  23890. (WebCore::ScrollView::contentsY):
  23891. (WebCore::ScrollView::contentsWidth):
  23892. (WebCore::ScrollView::contentsHeight):
  23893. (WebCore::ScrollView::viewportToContents):
  23894. (WebCore::ScrollView::contentsToViewport):
  23895. (WebCore::ScrollView::scrollOffset):
  23896. (WebCore::ScrollView::maximumScroll):
  23897. (WebCore::ScrollView::scrollBy):
  23898. (WebCore::ScrollView::hScrollBarMode):
  23899. (WebCore::ScrollView::vScrollBarMode):
  23900. (WebCore::ScrollView::suppressScrollBars):
  23901. (WebCore::ScrollView::setHScrollBarMode):
  23902. (WebCore::ScrollView::setVScrollBarMode):
  23903. (WebCore::ScrollView::setScrollBarsMode):
  23904. (WebCore::ScrollView::setStaticBackground):
  23905. (WebCore::ScrollView::updateScrollInfo):
  23906. (WebCore::ScrollView::updateScrollBars):
  23907. (WebCore::ScrollView::wheelEvent):
  23908. * platform/win/WheelEventWin.cpp: Added.
  23909. (WebCore::positionForEvent):
  23910. (WebCore::globalPositionForEvent):
  23911. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  23912. 2006-09-20 Sean Gies <seangies@apple.com>
  23913. Reviewed by Adam Roben.
  23914. Added platform/cg/ColorCG.cpp
  23915. * WebCore.vcproj/WebCore.vcproj: Add ColorCG.cpp
  23916. * platform/cg/ColorCG.cpp: Added.
  23917. 2006-09-20 Sean Gies <seangies@apple.com>
  23918. Reviewed by Adam Roben.
  23919. Fixed ugly text spacing issues with CG for Windows.
  23920. * platform/win/FontDataWin.cpp: Reimplement platformWidthForGlyph using CG APIs.
  23921. 2006-09-19 Anders Carlsson <acarlsson@apple.com>
  23922. Reviewed by Dave Hyatt.
  23923. <rdar://problem/4734743> Crash accessing YouTube.
  23924. * config.h:
  23925. Enable some more of the JSC bindings code on Windows.
  23926. 2006-09-18 Brady Eidson <beidson@apple.com>
  23927. YABF, and merged a change from open source ResourceLoaderWin.cpp
  23928. * bridge/win/FrameWin.h:
  23929. * platform/win/ResourceLoaderWin.cpp:
  23930. (WebCore::ResourceLoader::fileLoadTimer):
  23931. * platform/win/TemporaryLinkStubs.cpp:
  23932. (FrameWin::isLoadTypeReload):
  23933. 2006-09-18 Sean Gies <seangies@apple.com>
  23934. Reviewed by Adam Roben.
  23935. Support bold & italics.
  23936. * platform/win/FontPlatformDataWin.cpp: Use GetOutlineTextMetrics instead of GetTextFace to
  23937. query HFONT name.
  23938. 2006-09-18 Sean Gies <seangies@apple.com>
  23939. Reviewed by Adam Roben.
  23940. Changes to bring up CoreGraphics on Windows.
  23941. * WebCore.vcproj/WebCore.vcproj: Search platform/cg for headers. Compile platform/cg/*.cpp.
  23942. Add AffineTransform.cpp to build.
  23943. * platform/win/FontDataWin.cpp: Include CG before using it.
  23944. * platform/win/FontPlatformDataWin.cpp: Fixed typo.
  23945. * platform/win/ImageWin.cpp: Include CG and winsock2. Implement CG version of Image::getHBITMAP.
  23946. In Cairo version of Image::getHBITMAP, use correct bitmapInfo field and return true for success.
  23947. Fixed image loading bug.
  23948. 2006-09-18 Brady Eidson <beidson@apple.com>
  23949. Rubberstamp by Adam
  23950. Build fix
  23951. * bridge/win/FrameWin.h:
  23952. * platform/win/TemporaryLinkStubs.cpp:
  23953. (FrameWin::originalRequestURL):
  23954. 2006-09-18 Sean Gies <seangies@apple.com>
  23955. Reviewed by Adam Roben.
  23956. Forked FontCacheWin.cpp from OpenSource tree r16421.
  23957. * WebCore.vcproj/WebCore.vcproj: Point to Internal file.
  23958. * platform/win/FontCacheWin.cpp: Added.
  23959. 2006-09-15 Anders Carlsson <acarlsson@apple.com>
  23960. Reviewed by Steve.
  23961. * WebCore.vcproj/WebCore.vcproj:
  23962. Add JavaScriptCore/ to include path.
  23963. 2006-09-15 Adam Roben <aroben@apple.com>
  23964. Reviewed by sfalken.
  23965. Implement historyContains() on Windows (rdar://4733770)
  23966. * WebCore.vcproj/WebCore.vcproj: Add
  23967. platform\win\WebCoreHistory.{cpp,h} and bridge\win\HistoryWin.cpp to
  23968. project.
  23969. * bridge/win/HistoryWin.cpp: Added.
  23970. (WebCore::historyContains):
  23971. * platform/win/TemporaryLinkStubs.cpp: Remove stub for
  23972. WebCore::historyContains()
  23973. * platform/win/WebCoreHistory.cpp: Added.
  23974. (WebCore::WebCoreHistory::setHistoryProvider):
  23975. (WebCore::WebCoreHistory::historyProvider):
  23976. * platform/win/WebCoreHistory.h: Added.
  23977. 2006-09-14 Steve Falkenburg <sfalken@apple.com>
  23978. Reviewed by Lou Amadio.
  23979. iBench fix - fix WinInet form post code to not reference a stale pointer.
  23980. (found by Application Verifier)
  23981. * platform/win/ResourceLoaderWin.cpp:
  23982. (WebCore::ResourceLoaderWndProc):
  23983. 2006-09-14 Adam Roben <aroben@apple.com>
  23984. Reviewed by sfalken.
  23985. A little #include cleanup
  23986. * WebCore.vcproj/WebCore.vcproj: Add loader/icon to
  23987. AdditionalIncludeDirectories
  23988. * platform/win/TemporaryLinkStubs.cpp: Remove "loader/icon" from
  23989. #include of IconLoader.h
  23990. 2006-09-14 Brady Eidson <beidson@apple.com>
  23991. Build Fix
  23992. * WebCore.vcproj/WebCore.vcproj:
  23993. * platform/win/TemporaryLinkStubs.cpp:
  23994. (IconLoader::receivedResponse):
  23995. (IconLoader::notifyIconChanged):
  23996. 2006-09-13 Steve Falkenburg <sfalken@apple.com>
  23997. Fixes for submission of WebCore. Doesn't affect build.
  23998. * WebCore.vcproj/WebCore.vcproj:
  23999. * WebCore.vcproj/merge-opensource.sh:
  24000. 2006-09-12 Steve Falkenburg <sfalken@apple.com>
  24001. Rubber-stamped by Ada.
  24002. Get Boomer ready for B&I submission.
  24003. Projects can now all build independent of one another
  24004. without groping for headers or source across trees.
  24005. * WebCore.vcproj/WebCore.sln: Fix standalone sln for use by B&I.
  24006. * WebCore.vcproj/WebCore.vcproj: Update to new obj layout.
  24007. * WebCore.vcproj/build-generated-files.sh: Build derived sources into obj, update to new obj layout.
  24008. * WebCore.vcproj/dstroot-to-sdk.cmd: Copy built bits back to WebKitSDKDir for dependent builds.
  24009. 2006-09-13 Adam Roben <aroben@apple.com>
  24010. Build fix
  24011. * WebCore.vcproj/WebCore.vcproj: Rename KHTML_XSLT to XSLT_SUPPORT,
  24012. remove KHTML_NO_XBL
  24013. * config.h: Ditto.
  24014. 2006-09-13 Adam Roben <aroben@apple.com>
  24015. Reviewed by beidson.
  24016. Initial implementation of Icon, FileChooser on Windows.
  24017. * WebCore.vcproj/WebCore.vcproj: Added FileChooserWin.cpp, IconWin.cpp
  24018. * platform/win/FileChooserWin.cpp: Added.
  24019. (WebCore::FileChooser::FileChooser):
  24020. (WebCore::FileChooser::openFileChooser):
  24021. (WebCore::FileChooser::basenameForWidth):
  24022. (WebCore::FileChooser::uploadControlDetaching):
  24023. (WebCore::FileChooser::chooseFile):
  24024. * platform/win/IconWin.cpp: Added.
  24025. (WebCore::Icon::Icon):
  24026. (WebCore::Icon::~Icon):
  24027. (WebCore::Icon::newIconForFile):
  24028. (WebCore::Icon::paint):
  24029. * platform/win/TemporaryLinkStubs.cpp: Removed FileChooser, Icon stub
  24030. functions
  24031. 2006-09-13 Anders Carlsson <acarlsson@apple.com>
  24032. Reviewed by Tim O.
  24033. Implement postURL and postURLNotify.
  24034. * plugins/win/PluginStreamWin.cpp:
  24035. (WebCore::PluginStreamWin::~PluginStreamWin):
  24036. (WebCore::PluginStreamWin::start):
  24037. (WebCore::PluginStreamWin::startStream):
  24038. (WebCore::PluginStreamWin::cancelAndDestroyStream):
  24039. * plugins/win/PluginViewWin.cpp:
  24040. (WebCore::PluginViewWin::start):
  24041. (WebCore::PluginViewWin::loadURL):
  24042. (WebCore::PluginViewWin::getURLNotify):
  24043. (WebCore::PluginViewWin::getURL):
  24044. (WebCore::startsWithBlankLine):
  24045. (WebCore::locationAfterFirstBlankLine):
  24046. (WebCore::findEOL):
  24047. (WebCore::capitalizeRFC822HeaderFieldName):
  24048. (WebCore::parseRFC822HeaderFields):
  24049. (WebCore::PluginViewWin::handlePost):
  24050. (WebCore::PluginViewWin::postURLNotify):
  24051. (WebCore::PluginViewWin::postURL):
  24052. * plugins/win/PluginViewWin.h:
  24053. 2006-09-13 Lou Amadio <lamadio@apple.com>
  24054. Reviewed by sfalken
  24055. * WebCore.vcproj/WebCore.vcproj:
  24056. 2006-09-13 Adam Roben <aroben@apple.com>
  24057. Build fix
  24058. * WebCore.vcproj/build-generated-files.sh: Export SOURCE_ROOT which is
  24059. now used by CodeGenerator.pm
  24060. 2006-09-12 Anders Carlsson <acarlsson@apple.com>
  24061. Reviewed by Tim O.
  24062. Add scripting support for plugins.
  24063. * bridge/win/FrameWin.cpp:
  24064. (WebCore::FrameWin::FrameWin):
  24065. (WebCore::FrameWin::addPluginRootObject):
  24066. (WebCore::FrameWin::cleanupPluginObjects):
  24067. (WebCore::FrameWin::bindingRootObject):
  24068. (WebCore::FrameWin::windowScriptNPObject):
  24069. * bridge/win/FrameWin.h:
  24070. * plugins/win/PluginPackageWin.cpp:
  24071. (WebCore::PluginPackageWin::load):
  24072. * plugins/win/PluginViewWin.cpp:
  24073. (WebCore::PluginViewWin::getValue):
  24074. * plugins/win/npapi.cpp:
  24075. (NPN_RequestRead):
  24076. (NPN_InvalidateRect):
  24077. (NPN_InvalidateRegion):
  24078. (NPN_ForceRedraw):
  24079. 2006-09-12 Adam Roben <aroben@apple.com>
  24080. Reviewed many times by darin, hyatt.
  24081. Add stubs for new engine-based file upload control implementation and
  24082. Icon class.
  24083. * WebCore.vcproj/WebCore.vcproj: Add new engine-based files, remove old
  24084. widget-based files.
  24085. * platform/win/TemporaryLinkStubs.cpp: Add stubs for FileChooser and
  24086. Icon methods, and add two new LocalizedString methods.
  24087. (WebCore::fileButtonChooseFileLabel):
  24088. (WebCore::fileButtonNoFileSelectedLabel):
  24089. (FileChooser::FileChooser):
  24090. (FileChooser::~FileChooser):
  24091. (FileChooser::openFileChooser):
  24092. (FileChooser::basenameForWidth):
  24093. (FileChooser::uploadControlDetaching):
  24094. (Icon::~Icon):
  24095. (Icon::paint):
  24096. 2006-09-11 Anders Carlsson <acarlsson@apple.com>
  24097. Reviewed by Tim O.
  24098. Add stream and URL handling to PluginViewWin. Include PluginStreamWin.cpp in the build.
  24099. Also fix a number of bugs discovered when loading various plugins.
  24100. * WebCore.vcproj/WebCore.vcproj:
  24101. * plugins/win/PluginViewWin.cpp:
  24102. (WebCore::PluginRequestWin::PluginRequestWin):
  24103. (WebCore::PluginRequestWin::url):
  24104. (WebCore::PluginRequestWin::target):
  24105. (WebCore::PluginRequestWin::notifyData):
  24106. (WebCore::PluginRequestWin::sendNotification):
  24107. (WebCore::scriptStringIfJavaScriptURL):
  24108. (WebCore::registerPluginView):
  24109. (WebCore::PluginViewWndProc):
  24110. (WebCore::PluginViewWin::updateSize):
  24111. (WebCore::PluginViewWin::setFrameGeometry):
  24112. (WebCore::PluginViewWin::start):
  24113. (WebCore::PluginViewWin::stop):
  24114. (WebCore::createUTF8String):
  24115. (WebCore::PluginViewWin::performRequest):
  24116. (WebCore::PluginViewWin::requestTimerFired):
  24117. (WebCore::PluginViewWin::scheduleRequest):
  24118. (WebCore::PluginViewWin::loadURL):
  24119. (WebCore::makeURL):
  24120. (WebCore::PluginViewWin::getURLNotify):
  24121. (WebCore::PluginViewWin::getURL):
  24122. (WebCore::PluginViewWin::newStream):
  24123. (WebCore::PluginViewWin::write):
  24124. (WebCore::PluginViewWin::destroyStream):
  24125. (WebCore::PluginViewWin::userAgent):
  24126. (WebCore::PluginViewWin::~PluginViewWin):
  24127. (WebCore::PluginViewWin::PluginViewWin):
  24128. * plugins/win/PluginViewWin.h:
  24129. 2006-09-11 Anders Carlsson <acarlsson@apple.com>
  24130. * WebCore.vcproj/WebCore.vcproj:
  24131. Fix build.
  24132. 2006-09-11 Anders Carlsson <acarlsson@apple.com>
  24133. Reviewed by Tim O and Maciej.
  24134. Add plugin stream object.
  24135. * plugins/win/PluginStreamWin.cpp: Added.
  24136. (WebCore::PluginStreamWin::PluginStreamWin):
  24137. (WebCore::PluginStreamWin::~PluginStreamWin):
  24138. (WebCore::PluginStreamWin::setRequestHeaders):
  24139. (WebCore::PluginStreamWin::setPostData):
  24140. (WebCore::PluginStreamWin::start):
  24141. (WebCore::PluginStreamWin::stop):
  24142. (WebCore::PluginStreamWin::startStream):
  24143. (WebCore::PluginStreamWin::cancelAndDestroyStream):
  24144. (WebCore::PluginStreamWin::destroyStream):
  24145. (WebCore::PluginStreamWin::delayDeliveryTimerFired):
  24146. (WebCore::PluginStreamWin::deliverData):
  24147. (WebCore::PluginStreamWin::receivedResponse):
  24148. (WebCore::PluginStreamWin::receivedData):
  24149. (WebCore::PluginStreamWin::receivedAllData):
  24150. * plugins/win/PluginStreamWin.h: Added.
  24151. 2006-09-10 Brady Eidson <beidson@apple.com>
  24152. Reviewed by Steven Falkenburg
  24153. Added IconDatabase related code and forked ImageWin for its HBITMAP blit
  24154. * WebCore.vcproj/WebCore.vcproj: Added in all WebCore::IconDatabase stuffs
  24155. * platform/win/ImageWin.cpp: Added. (forked from OpenSource)
  24156. (WebCore::Image::initPlatformData):
  24157. (WebCore::Image::invalidatePlatformData):
  24158. (WebCore::Image::loadPlatformResource):
  24159. (WebCore::Image::supportsType):
  24160. (WebCore::Image::getHBITMAP): Added - blit the image to an HBITMAP
  24161. 2006-09-10 David Hyatt <hyatt@apple.com>
  24162. Remove the addIntrinsicMargins code from the theme. I did this
  24163. in the open source version but forgot to do it in the internal
  24164. version.
  24165. * rendering/RenderThemeWin.cpp:
  24166. (WebCore::RenderThemeWin::adjustButtonStyle):
  24167. (WebCore::RenderThemeWin::adjustTextFieldStyle):
  24168. (WebCore::RenderThemeWin::adjustTextAreaStyle):
  24169. (WebCore::RenderThemeWin::adjustMenuListStyle):
  24170. 2006-09-10 Brady Eidson <beidson@apple.com>
  24171. Reviewed by YABF, and Adam's suggestive rubberstamp before he hopped offline
  24172. Build fix + FIXME/Radar to reflect an OpenSource change to the Font.h header
  24173. * platform/win/FontWin.cpp:
  24174. (WebCore::Font::drawGlyphs): Added the parameter and a FIXME
  24175. 2006-09-10 Steve Falkenburg <sfalken@apple.com>
  24176. Rubber-stamp by aroben.
  24177. * WebCore.vcproj/WebCore.vcproj:
  24178. 2006-09-09 Steve Falkenburg <sfalken@apple.com>
  24179. Reviewed by aroben.
  24180. Added missing CF files to fix CFNetwork build variant
  24181. * WebCore.vcproj/WebCore.vcproj: Use include paths, libs, DLLs from %SystemDrive%\AppleInternal
  24182. * WebCore.vcproj/build-generated-files.sh: Don't copy open source DLLs from WebKitLibraries
  24183. 2006-09-09 Adam Roben <aroben@apple.com>
  24184. Reviewed by hyatt.
  24185. Remove unnecessary calls to setAffectedBy{Active,Hover}Rules
  24186. * rendering/RenderThemeWin.cpp:
  24187. (WebCore::RenderThemeWin::adjustMenuListStyle): Remove unnecessary calls
  24188. 2006-09-06 Brady Eidson <beidson@apple.com>
  24189. YABF (Yet another build fix)
  24190. * platform/win/FontDataWin.cpp: Added missing header
  24191. 2006-09-06 Brady Eidson <beidson@apple.com>
  24192. Reviewed by Steve's rubberstamp
  24193. Three stubs were added this morning, however the methods were already implemented in
  24194. Internal/OpenSourceWin/WebCoreWin/bridge/win/FrameWin.cpp
  24195. * platform/win/TemporaryLinkStubs.cpp: Nuked some repeat symbols
  24196. 2006-09-06 Adam Roben <aroben@apple.com>
  24197. Reviewed by Darin.
  24198. Fixed various Windows build issues caused by previous checkins.
  24199. * bridge/win/FrameWin.h: Added missing #include, updated Selection to SelectionController.
  24200. * platform/win/FontWin.cpp: Reorganized #includes.
  24201. (WebCore::Font::drawGlyphs): Used a const_cast hack to fix ultimately broken code.
  24202. * platform/win/ResourceLoaderWin.cpp: Added missing #include of CString.h and removed double #include of config.h.
  24203. (WebCore::ResourceLoaderWndProc): Removed use of String::ascii.
  24204. (WebCore::ResourceLoader::start): Ditto.
  24205. * platform/win/TemporaryLinkStubs.cpp: Added missing stubs.
  24206. (FrameWin::markMisspellings):
  24207. (FrameWin::shouldChangeSelection):
  24208. (FrameWin::respondToChangedSelection):
  24209. (FrameWin::respondToChangedContents):
  24210. (FrameWin::handledOnloadEvents):
  24211. (FrameWin::createPlugin):
  24212. (FrameWin::objectContentType):
  24213. * rendering/RenderPopupMenuWin.cpp: Added missing #include.
  24214. 2006-09-05 Darin Adler <darin@apple.com>
  24215. - build fix part of http://bugzilla.opendarwin.org/show_bug.cgi?id=10728
  24216. text encodings should work without a numeric ID
  24217. * WebCore.vcproj/WebCore.vcproj: Update for new headers.
  24218. 2006-09-01 Steve Falkenburg <sfalken@apple.com>
  24219. Reviewed by adachan.
  24220. Process redirects received in networking layer through to application.
  24221. With this change, the address bar url edit field shows the proper
  24222. redirected URL.
  24223. * platform/win/ResourceLoaderWin.cpp:
  24224. (WebCore::ResourceLoaderWndProc):
  24225. (WebCore::transferJobStatusCallback):
  24226. (WebCore::ResourceLoader::start):
  24227. 2006-09-01 Ada Chan <adachan@apple.com>
  24228. Reviewed by lamadio.
  24229. Fixed build break.
  24230. * bridge/win/FrameWin.h:
  24231. * platform/win/TemporaryLinkStubs.cpp:
  24232. (FrameWin::respondToChangedContents):
  24233. 2006-08-31 Anders Carlsson <acarlsson@apple.com>
  24234. Reviewed by Steve.
  24235. Add our own internal config.h so we can make changes to it.
  24236. * WebCore.vcproj/WebCore.vcproj:
  24237. Add config.h to the file list, move the KXMLCORE_PLATFORM_CF to the new config.h file
  24238. * config.h: Added.
  24239. * platform/win/ResourceLoaderWin.cpp:
  24240. Include config.h
  24241. 2006-08-31 Dave Hyatt <hyatt@apple.com>
  24242. Add a platform scrollbar class for Windows. It doesn't really work yet.
  24243. * WebCore.vcproj/WebCore.vcproj:
  24244. * platform/win/TemporaryLinkStubs.cpp:
  24245. * platform/win/PlatformScrollBarWin.cpp
  24246. 2006-08-31 Anders Carlsson <acarlsson@apple.com>
  24247. Fix the build.
  24248. * WebCore.vcproj/WebCore.vcproj:
  24249. 2006-08-30 Steve Falkenburg <sfalken@apple.com>
  24250. Reviewed by Ada Chan.
  24251. * bridge/win/FrameWin.cpp:
  24252. (WebCore::FrameWin::submitForm): Pass form values to submit form delegate
  24253. * bridge/win/FrameWin.h: Pass form values to submit form delegate
  24254. 2006-08-29 David Hyatt <hyatt@apple.com>
  24255. Make project changes so that the forked Font files (and Cairo/JPG/PNG) are all used.
  24256. * WebCore.vcproj/WebCore.vcproj:
  24257. 2006-08-29 David Hyatt <hyatt@apple.com>
  24258. This patch lands all the font changes. It does not patch the project file
  24259. yet, since this was done on Mac. Will switch to Win32 after landing this
  24260. and then fix any glitches.
  24261. * platform/cairo/cairo-all.c: Added.
  24262. * platform/cairo/pixman-all.c: Added.
  24263. * platform/image-decoders/jpeg/jpeg-part1.c: Added.
  24264. * platform/image-decoders/jpeg/jpeg-part2.c: Added.
  24265. * platform/image-decoders/jpeg/jpeg-part3.c: Added.
  24266. * platform/image-decoders/png/png-part1.c: Added.
  24267. * platform/image-decoders/png/png-part2.c: Added.
  24268. * platform/win/FontDataWin.cpp:
  24269. (WebCore::FontData::platformInit):
  24270. (WebCore::FontData::platformDestroy):
  24271. (WebCore::FontData::platformWidthForGlyph):
  24272. * platform/win/FontPlatformData.h:
  24273. (WebCore::FontPlatformData::FontPlatformData):
  24274. (WebCore::FontPlatformData::cgFont):
  24275. (WebCore::FontPlatformData::operator==):
  24276. * platform/win/FontPlatformDataWin.cpp:
  24277. (WebCore::m_size):
  24278. * platform/win/FontWin.cpp:
  24279. (WebCore::Font::drawGlyphs):
  24280. 2006-08-29 David Hyatt <hyatt@apple.com>
  24281. Forking the font files in preparation for dropping in CG code.
  24282. Reviewed by adam
  24283. * WebCore.vcproj/WebCore.vcproj:
  24284. * platform/win/FontDataWin.cpp: Added.
  24285. (WebCore::FontData::platformInit):
  24286. (WebCore::FontData::platformDestroy):
  24287. (WebCore::FontData::smallCapsFontData):
  24288. (WebCore::FontData::containsCharacters):
  24289. (WebCore::FontData::determinePitch):
  24290. (WebCore::FontData::platformWidthForGlyph):
  24291. * platform/win/FontPlatformData.h: Added.
  24292. (WebCore::FontPlatformData::FontPlatformData):
  24293. (WebCore::FontPlatformData::hfont):
  24294. (WebCore::FontPlatformData::fontFace):
  24295. (WebCore::FontPlatformData::scaledFont):
  24296. (WebCore::FontPlatformData::size):
  24297. (WebCore::FontPlatformData::hash):
  24298. (WebCore::FontPlatformData::operator==):
  24299. * platform/win/FontPlatformDataWin.cpp: Added.
  24300. (WebCore::m_size):
  24301. (WebCore::FontPlatformData::~FontPlatformData):
  24302. * platform/win/FontWin.cpp: Added.
  24303. (WebCore::notImplemented):
  24304. (WebCore::Font::drawGlyphs):
  24305. (WebCore::Font::selectionRectForComplexText):
  24306. (WebCore::Font::drawComplexText):
  24307. (WebCore::Font::floatWidthForComplexText):
  24308. (WebCore::Font::offsetForPositionForComplexText):
  24309. 2006-08-28 Geoffrey Garen <ggaren@apple.com>
  24310. Reviewed by Maciej.
  24311. Landed CFNetwork loader, off by default. To enable, define:
  24312. KXMLCORE_PLATFORM_CF
  24313. KXMLCORE_USE_CFNETWORK
  24314. CFNetwork uses winsock2. If you do this, you need to make sure that winsock2.h
  24315. is included before windows.h in any translation unit in which it's used.
  24316. A lot of the jiggering in this patch is devoted to that.
  24317. * WebCore.vcproj/WebCore.vcproj:
  24318. * platform/win/ResourceLoaderWin.cpp: Removed reliance on PlatformData
  24319. since it wasn't being used, and removing it made easy work of integrating
  24320. CFNetwork in a Windows-independent way.
  24321. (WebCore::ResourceLoaderWndProc):
  24322. (WebCore::ResourceLoader::fileLoadTimer):
  24323. (WebCore::ResourceLoader::cancel):
  24324. * platform/win/TemporaryLinkStubs.cpp:
  24325. (Path::contains):
  24326. * platform/win/WidgetWin.cpp:
  24327. * plugins/win/PluginDatabaseWin.cpp:
  24328. * plugins/win/PluginPackageWin.h:
  24329. * plugins/win/PluginViewWin.h:
  24330. * plugins/win/npapi.cpp:
  24331. * rendering/RenderPopupMenuWin.cpp:
  24332. * rendering/RenderPopupMenuWin.h:
  24333. * rendering/RenderThemeWin.cpp:
  24334. 2006-08-28 Ada Chan <adachan@apple.com>
  24335. Reviewed by ggaren.
  24336. Fixed build.
  24337. * platform/win/TemporaryLinkStubs.cpp:
  24338. (Path::contains):
  24339. 2006-08-25 David Hyatt <hyatt@apple.com>
  24340. Land CG/Cairo refactoring (and add some winsock2.h). (I do not really
  24341. understand why the winsock2.h stuff would suddenly be needed.)
  24342. * platform/win/ResourceLoaderWin.h:
  24343. * platform/win/TemporaryLinkStubs.cpp:
  24344. (GraphicsContext::setAlpha):
  24345. (GraphicsContext::drawFocusRing):
  24346. (GraphicsContext::drawLineForMisspelling):
  24347. (GraphicsContext::setCompositeOperation):
  24348. * plugins/win/PluginPackageWin.h:
  24349. * plugins/win/PluginViewWin.h:
  24350. * plugins/win/npapi.cpp:
  24351. * rendering/RenderThemeWin.cpp:
  24352. (WebCore::prepareForDrawing):
  24353. (WebCore::doneDrawing):
  24354. 2006-08-24 Geoffrey Garen <ggaren@apple.com>
  24355. Reviewed by Darin.
  24356. Frame refactoring: changed FrameView clients so they no longer assume that
  24357. FrameViews are Widgets that can tell you things about the platform, in
  24358. preparation for divorcing FrameViews from heavy-weight Widgets altogether.
  24359. This patch makes Page, rather than Widget, responsible for holding the
  24360. page's HWND. Refactoring aside, I think this makes more sense.
  24361. 2006-08-24 Geoffrey Garen <ggaren@apple.com>
  24362. Reviewed by Hyatt.
  24363. Branching PageWin.cpp from r15969.
  24364. * WebCore.vcproj/WebCore.vcproj:
  24365. * bridge/win/PageWin.cpp: Added.
  24366. (WebCore::Page::Page):
  24367. (WebCore::Page::windowRect):
  24368. (WebCore::Page::setWindowRect):
  24369. 2006-08-23 Adam Roben <aroben@apple.com>
  24370. Reviewed by Ada.
  24371. Fixed placement of popups when document is scrolled.
  24372. * rendering/RenderPopupMenuWin.cpp:
  24373. (WebCore::RenderPopupMenuWin::setPositionAndSize):
  24374. 2006-08-23 Steve Falkenburg <sfalken@apple.com>
  24375. Build fix (many of our include paths were wrong!)
  24376. * WebCore.vcproj/WebCore.vcproj:
  24377. 2006-08-23 Adam Roben <aroben@apple.com>
  24378. Reviewed by Darin, Lou, Adele.
  24379. Initial implementation of <select> elements on Windows.
  24380. * WebCore.vcproj/WebCore.vcproj:
  24381. Added RenderPopupMenuWin.cpp
  24382. * platform/win/TemporaryLinkStubs.cpp:
  24383. (RenderPopupMenuWin::addGroupLabel):
  24384. * rendering/RenderPopupMenuWin.cpp: Added.
  24385. (WebCore::RenderPopupMenuWin::RenderPopupMenuWin):
  24386. (WebCore::RenderPopupMenuWin::~RenderPopupMenuWin):
  24387. (WebCore::RenderPopupMenuWin::clear):
  24388. (WebCore::RenderPopupMenuWin::populate):
  24389. (WebCore::RenderPopupMenuWin::showPopup):
  24390. (WebCore::RenderPopupMenuWin::hidePopup):
  24391. (WebCore::RenderPopupMenuWin::setPositionAndSize):
  24392. (WebCore::RenderPopupMenuWin::addOption):
  24393. (WebCore::RenderPopupMenuWin::down):
  24394. (WebCore::RenderPopupMenuWin::up):
  24395. (WebCore::registerPopup):
  24396. (WebCore::PopupWndProc):
  24397. * rendering/RenderPopupMenuWin.h:
  24398. Added useful properties.
  24399. (WebCore::RenderPopupMenuWin::popupHandle):
  24400. (WebCore::RenderPopupMenuWin::containerHandle):
  24401. (WebCore::RenderPopupMenuWin::wasClicked):
  24402. (WebCore::RenderPopupMenuWin::setWasClicked):
  24403. * rendering/RenderThemeWin.cpp:
  24404. (WebCore::RenderThemeWin::RenderThemeWin):
  24405. (WebCore::RenderThemeWin::openButtonTheme):
  24406. (WebCore::RenderThemeWin::openTextFieldTheme):
  24407. (WebCore::RenderThemeWin::openMenuListTheme):
  24408. (WebCore::RenderThemeWin::close):
  24409. (WebCore::RenderThemeWin::supportsFocus):
  24410. (WebCore::RenderThemeWin::determineState):
  24411. (WebCore::RenderThemeWin::getThemeData):
  24412. (WebCore::RenderThemeWin::paintButton):
  24413. (WebCore::RenderThemeWin::paintTextField):
  24414. Refactored the above methods and added cases for
  24415. MenulistAppearance where appropriate.
  24416. (WebCore::RenderThemeWin::paintMenuList):
  24417. (WebCore::RenderThemeWin::adjustMenuListStyle):
  24418. Implemented the above methods.
  24419. * rendering/RenderThemeWin.h:
  24420. 2006-08-22 Geoffrey Garen <ggaren@apple.com>
  24421. My first Windows build fix.
  24422. * WebCore.vcproj/WebCore.vcproj:
  24423. - Link against version.lib, since the new plug-in stuff requires it
  24424. - Sync the release and debug header search paths, so release
  24425. finds the JS bindings.
  24426. 2006-08-18 Anders Carlsson <acarlsson@apple.com>
  24427. * plugins/win/PluginViewWin.cpp:
  24428. (WebCore::PluginViewWin::write):
  24429. (WebCore::PluginViewWin::destroyStream):
  24430. Another attempt at fixing the build. Make these two functions into instance methods of PluginViewWin.
  24431. 2006-08-18 Anders Carlsson <acarlsson@apple.com>
  24432. * plugins/win/PluginViewWin.cpp:
  24433. (WebCore::write):
  24434. (WebCore::destroyStream):
  24435. * plugins/win/PluginViewWin.h:
  24436. Fix build by removing unneeded parameters.
  24437. 2006-08-18 Anders Carlsson <acarlsson@apple.com>
  24438. Reviewed by Adele.
  24439. Have the NPN functions call into the plugin view. Implement some of the plugin view methods.
  24440. * plugins/win/PluginViewWin.cpp:
  24441. (WebCore::PluginViewWin::start):
  24442. (WebCore::PluginViewWin::setCurrentPluginView):
  24443. (WebCore::PluginViewWin::currentPluginView):
  24444. (WebCore::PluginViewWin::getURLNotify):
  24445. (WebCore::PluginViewWin::getURL):
  24446. (WebCore::PluginViewWin::postURLNotify):
  24447. (WebCore::PluginViewWin::postURL):
  24448. (WebCore::PluginViewWin::newStream):
  24449. (WebCore::write):
  24450. (WebCore::destroyStream):
  24451. (WebCore::PluginViewWin::userAgent):
  24452. (WebCore::PluginViewWin::status):
  24453. (WebCore::PluginViewWin::getValue):
  24454. (WebCore::PluginViewWin::setValue):
  24455. (WebCore::PluginViewWin::~PluginViewWin):
  24456. (WebCore::PluginViewWin::PluginViewWin):
  24457. * plugins/win/PluginViewWin.h:
  24458. * plugins/win/npapi.cpp:
  24459. (pluginViewForInstance):
  24460. (NPN_ReloadPlugins):
  24461. (NPN_GetURLNotify):
  24462. (NPN_GetURL):
  24463. (NPN_PostURLNotify):
  24464. (NPN_PostURL):
  24465. (NPN_NewStream):
  24466. (NPN_Write):
  24467. (NPN_DestroyStream):
  24468. (NPN_UserAgent):
  24469. (NPN_Status):
  24470. (NPN_GetValue):
  24471. (NPN_SetValue):
  24472. 2006-08-17 Anders Carlsson <acarlsson@apple.com>
  24473. Reviewed by Steve and Maciej.
  24474. Add initial implementation of plugin view.
  24475. * WebCore.vcproj/WebCore.vcproj:
  24476. Add files.
  24477. * bridge/win/FrameWin.cpp:
  24478. (WebCore::FrameWin::objectContentType):
  24479. (WebCore::FrameWin::createPlugin):
  24480. Implement these functions.
  24481. * platform/win/TemporaryLinkStubs.cpp:
  24482. Remove implemented functions.
  24483. * platform/win/WidgetWin.cpp: Add this file from the open source repo
  24484. (WebCore::Widget::~Widget):
  24485. Call DestroyWindow on the hWnd.
  24486. * plugins/win/PluginDatabaseWin.cpp:
  24487. (WebCore::PluginDatabaseWin::createPluginView):
  24488. New function which creates a plugin view.
  24489. * plugins/win/PluginDatabaseWin.h:
  24490. * plugins/win/PluginPackageWin.cpp:
  24491. (WebCore::PluginPackageWin::load):
  24492. Assign the browser functions. They are just stubs for now.
  24493. * plugins/win/PluginViewWin.cpp: Added.
  24494. (WebCore::registerPluginView):
  24495. (WebCore::PluginViewWndProc):
  24496. (WebCore::PluginViewWin::invokeSetWindow):
  24497. (WebCore::PluginViewWin::start):
  24498. (WebCore::PluginViewWin::stop):
  24499. (WebCore::createUTF8String):
  24500. (WebCore::createUTF8StringArray):
  24501. (WebCore::freeStringArray):
  24502. (WebCore::PluginViewWin::~PluginViewWin):
  24503. (WebCore::PluginViewWin::PluginViewWin):
  24504. * plugins/win/PluginViewWin.h: Added.
  24505. (WebCore::PluginViewWin::plugin):
  24506. (WebCore::PluginViewWin::instance):
  24507. * plugins/win/npapi.cpp: Added.
  24508. (NPN_MemAlloc):
  24509. (NPN_MemFree):
  24510. (NPN_MemFlush):
  24511. (NPN_ReloadPlugins):
  24512. (NPN_RequestRead):
  24513. (NPN_GetURLNotify):
  24514. (NPN_GetURL):
  24515. (NPN_PostURLNotify):
  24516. (NPN_PostURL):
  24517. (NPN_NewStream):
  24518. (NPN_Write):
  24519. (NPN_DestroyStream):
  24520. (NPN_UserAgent):
  24521. (NPN_Status):
  24522. (NPN_InvalidateRect):
  24523. (NPN_InvalidateRegion):
  24524. (NPN_ForceRedraw):
  24525. (NPN_GetValue):
  24526. (NPN_SetValue):
  24527. (NPN_GetJavaEnv):
  24528. (NPN_GetJavaPeer):
  24529. 2006-08-17 Anders Carlsson <acarlsson@apple.com>
  24530. Reviewed by Maciej.
  24531. Add initial implementation of plugin database.
  24532. * WebCore.vcproj/WebCore.vcproj:
  24533. Add new files.
  24534. * platform/win/TemporaryLinkStubs.cpp:
  24535. Get rid of the PlugInInfoStore stubs.
  24536. * plugins/win/PlugInInfoStoreWin.cpp: Added.
  24537. (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
  24538. (WebCore::PlugInInfoStore::pluginCount):
  24539. (WebCore::PlugInInfoStore::supportsMIMEType):
  24540. (WebCore::refreshPlugins):
  24541. * plugins/win/PluginDatabaseWin.cpp: Added.
  24542. (WebCore::PluginDatabaseWin::installedPlugins):
  24543. (WebCore::PluginDatabaseWin::refresh):
  24544. (WebCore::PluginDatabaseWin::plugins):
  24545. (WebCore::PluginDatabaseWin::getPluginsInPaths):
  24546. (WebCore::PluginDatabaseWin::defaultPluginPaths):
  24547. (WebCore::PluginDatabaseWin::isMIMETypeRegistered):
  24548. (WebCore::PluginDatabaseWin::pluginForMIMEType):
  24549. (WebCore::PluginDatabaseWin::pluginForExtension):
  24550. * plugins/win/PluginDatabaseWin.h: Added.
  24551. (WebCore::PluginDatabaseWin::setPluginPaths):
  24552. * plugins/win/PluginPackageWin.cpp: Added.
  24553. (WebCore::PluginPackageWin::~PluginPackageWin):
  24554. (WebCore::getVersionInfo):
  24555. (WebCore::splitString):
  24556. (WebCore::PluginPackageWin::PluginPackageWin):
  24557. (WebCore::PluginPackageWin::fetchInfo):
  24558. (WebCore::PluginPackageWin::load):
  24559. (WebCore::PluginPackageWin::unload):
  24560. (WebCore::PluginPackageWin::unloadWithoutShutdown):
  24561. (WebCore::PluginPackageWin::createPackage):
  24562. (WebCore::PluginPackageWin::hash):
  24563. (WebCore::PluginPackageWin::equal):
  24564. * plugins/win/PluginPackageWin.h: Added.
  24565. (WebCore::PluginPackageWin::name):
  24566. (WebCore::PluginPackageWin::description):
  24567. (WebCore::PluginPackageWin::fileName):
  24568. (WebCore::PluginPackageWin::mimeToDescriptions):
  24569. (WebCore::PluginPackageWin::mimeToExtensions):
  24570. (WebCore::PluginPackageWin::pluginFuncs):
  24571. (WebCore::PluginPackageWinHash::hash):
  24572. (WebCore::PluginPackageWinHash::equal):
  24573. (WTF::):
  24574. * plugins/win/npfunctions.h: Added.
  24575. 2006-08-17 Adam Roben <aroben@apple.com>
  24576. Removing this unintentionally added file.
  24577. * rendering/RenderPopupMenuWin.cpp: Removed.
  24578. 2006-08-17 Adam Roben <aroben@apple.com>
  24579. Reviewed by Steve.
  24580. Branching files from OpenSource tree r15924 to prepare for <select>
  24581. element implementation.
  24582. * WebCore.vcproj/WebCore.vcproj:
  24583. * rendering/RenderPopupMenuWin.h: Added.
  24584. (WebCore::RenderPopupMenuWin::RenderPopupMenuWin):
  24585. * rendering/RenderThemeWin.cpp: Added.
  24586. (WebCore::theme):
  24587. (WebCore::m_textFieldTheme):
  24588. (WebCore::RenderThemeWin::~RenderThemeWin):
  24589. (WebCore::RenderThemeWin::close):
  24590. (WebCore::RenderThemeWin::platformActiveSelectionBackgroundColor):
  24591. (WebCore::RenderThemeWin::platformInactiveSelectionBackgroundColor):
  24592. (WebCore::RenderThemeWin::platformActiveSelectionForegroundColor):
  24593. (WebCore::RenderThemeWin::platformInactiveSelectionForegroundColor):
  24594. (WebCore::RenderThemeWin::addIntrinsicMargins):
  24595. (WebCore::RenderThemeWin::supportsFocus):
  24596. (WebCore::RenderThemeWin::determineState):
  24597. (WebCore::RenderThemeWin::getThemeData):
  24598. (WebCore::RenderThemeWin::adjustButtonStyle):
  24599. (WebCore::prepareForDrawing):
  24600. (WebCore::doneDrawing):
  24601. (WebCore::RenderThemeWin::paintButton):
  24602. (WebCore::RenderThemeWin::setCheckboxSize):
  24603. (WebCore::RenderThemeWin::setRadioSize):
  24604. (WebCore::RenderThemeWin::adjustTextFieldStyle):
  24605. (WebCore::RenderThemeWin::paintTextField):
  24606. (WebCore::RenderThemeWin::adjustTextAreaStyle):
  24607. (WebCore::RenderThemeWin::paintTextArea):
  24608. (WebCore::RenderThemeWin::createPopupMenu):
  24609. * rendering/RenderThemeWin.h: Added.
  24610. (WebCore::ThemeData::m_state):
  24611. (WebCore::RenderThemeWin::supportsHover):
  24612. (WebCore::RenderThemeWin::paintCheckbox):
  24613. (WebCore::RenderThemeWin::paintRadio):
  24614. 2006-08-15 Steve Falkenburg <sfalken@apple.com>
  24615. Pull TemporaryLinkStubs.cpp into internal tree to fix the build.
  24616. * WebCore.vcproj/WebCore.vcproj:
  24617. * platform/win/TemporaryLinkStubs.cpp: Added.
  24618. (notImplemented):
  24619. (FrameView::updateBorder):
  24620. (FrameView::isFrameView):
  24621. (PopUpButton::focusPolicy):
  24622. (PopUpButton::populate):
  24623. (Widget::enableFlushDrawing):
  24624. (Widget::isEnabled):
  24625. (Widget::focusPolicy):
  24626. (Widget::disableFlushDrawing):
  24627. (Widget::lockDrawingFocus):
  24628. (Widget::unlockDrawingFocus):
  24629. (JavaAppletWidget::JavaAppletWidget):
  24630. (TextField::selectAll):
  24631. (TextField::addSearchResult):
  24632. (TextField::selectionStart):
  24633. (TextField::hasSelectedText):
  24634. (TextField::selectedText):
  24635. (TextField::setAutoSaveName):
  24636. (TextField::checksDescendantsForFocus):
  24637. (TextField::setSelection):
  24638. (TextField::setMaxResults):
  24639. (TextField::edited):
  24640. (Slider::Slider):
  24641. (Slider::sizeHint):
  24642. (Slider::setValue):
  24643. (Slider::setMaxValue):
  24644. (Slider::setMinValue):
  24645. (Slider::~Slider):
  24646. (Slider::setFont):
  24647. (Slider::value):
  24648. (ListBox::setSelected):
  24649. (ListBox::sizeForNumberOfLines):
  24650. (ListBox::isSelected):
  24651. (ListBox::appendItem):
  24652. (ListBox::doneAppendingItems):
  24653. (ListBox::setWritingDirection):
  24654. (ListBox::setEnabled):
  24655. (ListBox::clear):
  24656. (ListBox::checksDescendantsForFocus):
  24657. (FileButton::FileButton):
  24658. (FileButton::click):
  24659. (FileButton::sizeForCharacterWidth):
  24660. (FileButton::focusPolicy):
  24661. (FileButton::frameGeometry):
  24662. (FileButton::setFilename):
  24663. (FileButton::baselinePosition):
  24664. (FileButton::setFrameGeometry):
  24665. (FileButton::setDisabled):
  24666. (Slider::focusPolicy):
  24667. (ListBox::focusPolicy):
  24668. (TextField::focusPolicy):
  24669. (Cursor::Cursor):
  24670. (PlatformMouseEvent::PlatformMouseEvent):
  24671. (WebCore::searchableIndexIntroduction):
  24672. (WebCore::findNextSentenceFromIndex):
  24673. (WebCore::findSentenceBoundary):
  24674. (WebCore::findNextWordFromIndex):
  24675. (WebCore::ServeSynchronousRequest):
  24676. (FrameWin::focusWindow):
  24677. (FrameWin::unfocusWindow):
  24678. (FrameWin::locationbarVisible):
  24679. (FrameWin::issueRedoCommand):
  24680. (FrameWin::getObjectInstanceForWidget):
  24681. (FrameWin::getEmbedInstanceForWidget):
  24682. (FrameWin::canRedo):
  24683. (FrameWin::canUndo):
  24684. (FrameWin::registerCommandForRedo):
  24685. (FrameWin::runJavaScriptPrompt):
  24686. (FrameWin::shouldInterruptJavaScript):
  24687. (FrameWin::openURL):
  24688. (FrameWin::print):
  24689. (FrameWin::getAppletInstanceForWidget):
  24690. (FrameWin::passMouseDownEventToWidget):
  24691. (FrameWin::issueCutCommand):
  24692. (FrameWin::issueCopyCommand):
  24693. (FrameWin::passWheelEventToChildWidget):
  24694. (FrameWin::issueUndoCommand):
  24695. (FrameWin::mimeTypeForFileName):
  24696. (FrameWin::issuePasteCommand):
  24697. (FrameWin::scheduleClose):
  24698. (FrameWin::markMisspellings):
  24699. (FrameWin::menubarVisible):
  24700. (FrameWin::personalbarVisible):
  24701. (FrameWin::statusbarVisible):
  24702. (FrameWin::toolbarVisible):
  24703. (FrameWin::issueTransposeCommand):
  24704. (FrameWin::canPaste):
  24705. (FrameWin::objectContentType):
  24706. (FrameWin::canGoBackOrForward):
  24707. (FrameWin::issuePasteAndMatchStyleCommand):
  24708. (FrameWin::createPlugin):
  24709. (BrowserExtensionWin::canRunModal):
  24710. (BrowserExtensionWin::createNewWindow):
  24711. (BrowserExtensionWin::canRunModalNow):
  24712. (BrowserExtensionWin::runModal):
  24713. (BrowserExtensionWin::goBackOrForward):
  24714. (BrowserExtensionWin::historyURL):
  24715. (GraphicsContext::addRoundedRectClip):
  24716. (GraphicsContext::addInnerRoundedRectClip):
  24717. (WebCore::screenDepthPerComponent):
  24718. (WebCore::screenIsMonochrome):
  24719. (WebCore::moveCursor):
  24720. (WebCore::historyContains):
  24721. (WebCore::submitButtonDefaultLabel):
  24722. (WebCore::inputElementAltText):
  24723. (WebCore::resetButtonDefaultLabel):
  24724. (WebCore::defaultLanguage):
  24725. (WebCore::findWordBoundary):
  24726. (PlugInInfoStore::createPluginInfoForPluginAtIndex):
  24727. (PlugInInfoStore::pluginCount):
  24728. (WebCore::PlugInInfoStore::supportsMIMEType):
  24729. (WebCore::refreshPlugins):
  24730. (WebCore::ResourceLoader::assembleResponseHeaders):
  24731. (WebCore::ResourceLoader::retrieveCharset):
  24732. (FrameWin::restoreDocumentState):
  24733. (FrameWin::partClearedInBegin):
  24734. (FrameWin::createEmptyDocument):
  24735. (FrameWin::overrideMediaType):
  24736. (FrameWin::handledOnloadEvents):
  24737. (FrameWin::markedTextRange):
  24738. (FrameWin::passSubframeEventToSubframe):
  24739. (FrameWin::lastEventIsMouseUp):
  24740. (FrameWin::addMessageToConsole):
  24741. (FrameWin::shouldChangeSelection):
  24742. (FrameWin::respondToChangedSelection):
  24743. (FrameWin::createFrame):
  24744. (FrameWin::saveDocumentState):
  24745. (FrameWin::registerCommandForUndo):
  24746. (FrameWin::clearUndoRedoOperations):
  24747. (FrameWin::incomingReferrer):
  24748. (FrameWin::markMisspellingsInAdjacentWords):
  24749. (FrameWin::respondToChangedContents):
  24750. (BrowserExtensionWin::BrowserExtensionWin):
  24751. (BrowserExtensionWin::setTypedIconURL):
  24752. (BrowserExtensionWin::setIconURL):
  24753. (BrowserExtensionWin::getHistoryLength):
  24754. (WebCore::CheckIfReloading):
  24755. (WebCore::CheckCacheObjectStatus):
  24756. (Widget::setEnabled):
  24757. (Widget::paint):
  24758. (Widget::setIsSelected):
  24759. (ScrollView::addChild):
  24760. (ScrollView::removeChild):
  24761. (ScrollView::scrollPointRecursively):
  24762. (ScrollView::inWindow):
  24763. (GraphicsContext::setShadow):
  24764. (GraphicsContext::clearShadow):
  24765. (GraphicsContext::beginTransparencyLayer):
  24766. (GraphicsContext::endTransparencyLayer):
  24767. (GraphicsContext::clearRect):
  24768. (GraphicsContext::strokeRect):
  24769. (GraphicsContext::setLineWidth):
  24770. (GraphicsContext::setLineCap):
  24771. (GraphicsContext::setLineJoin):
  24772. (GraphicsContext::setMiterLimit):
  24773. (GraphicsContext::setAlpha):
  24774. (GraphicsContext::setCompositeOperation):
  24775. (GraphicsContext::clip):
  24776. (GraphicsContext::translate):
  24777. (GraphicsContext::rotate):
  24778. (GraphicsContext::scale):
  24779. (Path::Path):
  24780. (Path::~Path):
  24781. (Path::contains):
  24782. (Path::translate):
  24783. (Path::boundingRect):
  24784. (Path::operator=):
  24785. (Path::clear):
  24786. (Path::moveTo):
  24787. (Path::addLineTo):
  24788. (Path::addQuadCurveTo):
  24789. (Path::addBezierCurveTo):
  24790. (Path::addArcTo):
  24791. (Path::closeSubpath):
  24792. (Path::addArc):
  24793. (Path::addRect):
  24794. (Path::addEllipse):
  24795. (TextField::TextField):
  24796. (TextField::~TextField):
  24797. (TextField::setFont):
  24798. (TextField::setAlignment):
  24799. (TextField::setWritingDirection):
  24800. (TextField::maxLength):
  24801. (TextField::setMaxLength):
  24802. (TextField::text):
  24803. (TextField::setText):
  24804. (TextField::cursorPosition):
  24805. (TextField::setCursorPosition):
  24806. (TextField::setEdited):
  24807. (TextField::setReadOnly):
  24808. (TextField::setPlaceholderString):
  24809. (TextField::setColors):
  24810. (TextField::sizeForCharacterWidth):
  24811. (TextField::baselinePosition):
  24812. (TextField::setLiveSearch):
  24813. (PopUpButton::PopUpButton):
  24814. (PopUpButton::~PopUpButton):
  24815. (PopUpButton::setFont):
  24816. (PopUpButton::baselinePosition):
  24817. (PopUpButton::setWritingDirection):
  24818. (PopUpButton::clear):
  24819. (PopUpButton::appendItem):
  24820. (PopUpButton::setCurrentItem):
  24821. (PopUpButton::sizeHint):
  24822. (PopUpButton::frameGeometry):
  24823. (PopUpButton::setFrameGeometry):
  24824. (PlatformScrollBar::PlatformScrollBar):
  24825. (PlatformScrollBar::~PlatformScrollBar):
  24826. (PlatformScrollBar::width):
  24827. (PlatformScrollBar::height):
  24828. (PlatformScrollBar::setEnabled):
  24829. (PlatformScrollBar::paint):
  24830. (PlatformScrollBar::setScrollBarValue):
  24831. (PlatformScrollBar::setKnobProportion):
  24832. (PlatformScrollBar::setRect):
  24833. (ScrollBar::ScrollBar):
  24834. (ScrollBar::setSteps):
  24835. (ScrollBar::scroll):
  24836. (ScrollBar::setValue):
  24837. (ScrollBar::setKnobProportion):
  24838. (ListBox::ListBox):
  24839. (ListBox::~ListBox):
  24840. (ListBox::setSelectionMode):
  24841. (ListBox::setFont):
  24842. (WebCore::focusRingColor):
  24843. (WebCore::setFocusRingColorChangeFunction):
  24844. (Frame::setNeedsReapplyStyles):
  24845. (Image::drawTiled):
  24846. (RenderPopupMenuWin::~RenderPopupMenuWin):
  24847. (RenderPopupMenuWin::clear):
  24848. (RenderPopupMenuWin::populate):
  24849. (RenderPopupMenuWin::showPopup):
  24850. (RenderPopupMenuWin::addSeparator):
  24851. (RenderPopupMenuWin::addGroupLabel):
  24852. (RenderPopupMenuWin::addOption):
  24853. (RenderThemeWin::paintMenuList):
  24854. (RenderThemeWin::adjustMenuListStyle):
  24855. (RenderThemeWin::systemFont):
  24856. 2006-08-15 Steve Falkenburg <sfalken@apple.com>
  24857. Fix the build with TOT.
  24858. * WebCore.vcproj/WebCore.vcproj:
  24859. 2006-08-15 Steve Falkenburg <sfalken@apple.com>
  24860. Get this building.
  24861. * WebCore.vcproj/WebCore.sln:
  24862. * WebCore.vcproj/WebCore.vcproj:
  24863. * WebCore.vcproj/build-generated-files.sh:
  24864. 2006-08-15 Steve Falkenburg <sfalken@apple.com>
  24865. Initial check-in.
  24866. * ChangeLog: Added.
  24867. * WebCore.vcproj/WebCore.sln: Added.
  24868. * WebCore.vcproj/WebCore.vcproj: Added.
  24869. * WebCore.vcproj/build-generated-files.sh: Added.
  24870. * bridge/win/FrameWin.cpp: Added.
  24871. (WebCore::FrameWin::FrameWin):
  24872. (WebCore::FrameWin::~FrameWin):
  24873. (WebCore::FrameWin::urlSelected):
  24874. (WebCore::FrameWin::submitForm):
  24875. (WebCore::FrameWin::userAgent):
  24876. (WebCore::FrameWin::runJavaScriptAlert):
  24877. (WebCore::FrameWin::runJavaScriptConfirm):
  24878. (WebCore::FrameWin::keyPress):
  24879. (WebCore::FrameWin::setTitle):
  24880. (WebCore::FrameWin::setStatusBarText):
  24881. (WebCore::FrameWin::textFieldDidBeginEditing):
  24882. (WebCore::FrameWin::textFieldDidEndEditing):
  24883. (WebCore::FrameWin::textDidChangeInTextField):
  24884. (WebCore::FrameWin::doTextFieldCommandFromEvent):
  24885. (WebCore::FrameWin::textWillBeDeletedInTextField):
  24886. (WebCore::FrameWin::textDidChangeInTextArea):
  24887. * bridge/win/FrameWin.h: Added.
  24888. (WebCore::Win):
  24889. * platform/win/ResourceLoaderWin.cpp: Added.
  24890. (WebCore::addToOutstandingJobs):
  24891. (WebCore::removeFromOutstandingJobs):
  24892. (WebCore::lookupResourceLoader):
  24893. (WebCore::ResourceLoaderWndProc):
  24894. (WebCore::initializeOffScreenResourceLoaderWindow):
  24895. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
  24896. (WebCore::ResourceLoader::~ResourceLoader):
  24897. (WebCore::transferJobStatusCallback):
  24898. (WebCore::ResourceLoader::start):
  24899. (WebCore::ResourceLoader::fileLoadTimer):
  24900. (WebCore::ResourceLoader::cancel):
  24901. * platform/win/ResourceLoaderWin.h: Added.
  24902. === End of merged changes from branches/WindowsMerge ===
  24903. 2007-06-10 Holger Hans Peter Freyther <zecke@selfish.org>
  24904. Reviewed by Maciej.
  24905. Disable whole-view editing for the Gdk port in order to improve the browsing experience.
  24906. * platform/gdk/EditorClientGdk.cpp:
  24907. (WebCore::EditorClientGdk::isEditable): Return false to disable whole-view editing
  24908. 2007-06-08 Sam Weinig <sam@webkit.org>
  24909. Reviewed by Oliver.
  24910. Patch for http://bugs.webkit.org/show_bug.cgi?id=14044
  24911. Autogenerate the JS bindings for HTMLCollection
  24912. - also moves JSHTMLAllCollection into it's own file.
  24913. * DerivedSources.make:
  24914. * WebCore.pro:
  24915. * WebCore.xcodeproj/project.pbxproj:
  24916. * bindings/js/JSHTMLAllCollection.h: Added.
  24917. (WebCore::JSHTMLAllCollection::JSHTMLAllCollection):
  24918. (WebCore::JSHTMLAllCollection::toBoolean):
  24919. (WebCore::JSHTMLAllCollection::masqueradeAsUndefined):
  24920. * bindings/js/JSHTMLCollectionCustom.cpp: Added.
  24921. (WebCore::getNamedItems):
  24922. (WebCore::JSHTMLCollection::callAsFunction):
  24923. (WebCore::JSHTMLCollection::implementsCall):
  24924. (WebCore::JSHTMLCollection::canGetItemsForName):
  24925. (WebCore::JSHTMLCollection::nameGetter):
  24926. (WebCore::JSHTMLCollection::item):
  24927. (WebCore::JSHTMLCollection::namedItem):
  24928. (WebCore::toJS):
  24929. * bindings/js/JSHTMLDocumentCustom.cpp:
  24930. (WebCore::JSHTMLDocument::nameGetter):
  24931. (WebCore::JSHTMLDocument::all):
  24932. * bindings/js/JSXMLHttpRequest.cpp:
  24933. * bindings/js/kjs_html.cpp:
  24934. (WebCore::ImageConstructorImp::ImageConstructorImp):
  24935. (WebCore::ImageConstructorImp::construct):
  24936. * bindings/js/kjs_html.h:
  24937. (WebCore::ImageConstructorImp::implementsConstruct):
  24938. * bindings/js/kjs_window.cpp:
  24939. (KJS::Window::namedItemGetter):
  24940. * bindings/objc/DOMUtility.mm:
  24941. (KJS::createDOMWrapper):
  24942. * bindings/scripts/CodeGeneratorJS.pm:
  24943. * html/HTMLCollection.cpp:
  24944. (WebCore::HTMLCollection::tags):
  24945. * html/HTMLCollection.h:
  24946. (WebCore::HTMLCollection::collectionType):
  24947. * html/HTMLCollection.idl:
  24948. * html/HTMLOptionsCollection.idl:
  24949. 2007-06-08 Justin Garcia <justin.garcia@apple.com>
  24950. Reviewed by John.
  24951. <rdar://problem/5232159> REGRESSION: Cannot select text in RSS view
  24952. The selection is updated both on mouse movement and
  24953. when the autoscroll timer fires. The autoscroll
  24954. code wasn't converting mouse coordinates to layer
  24955. coordinates correctly, and was then using those
  24956. coordinates to create a bad selection.
  24957. * rendering/RenderLayer.cpp:
  24958. (WebCore::RenderLayer::autoscroll): Use convertToLayerCoordinates.
  24959. 2007-06-08 Anders Carlsson <andersca@apple.com>
  24960. Reviewed by Geoff.
  24961. Store the root object in a hash set, keyed by the plugin view. This is in preparation for
  24962. letting plugins invalidate the root object upon destruction
  24963. * page/Frame.cpp:
  24964. (WebCore::Frame::createRootObject):
  24965. (WebCore::Frame::cleanupScriptObjects):
  24966. * page/FramePrivate.h:
  24967. 2007-06-08 Lars Knoll <lars@trolltech.com>
  24968. Reviewed by Zack.
  24969. Add qwebobjectpluginconnector to the build.
  24970. * WebCore.pro:
  24971. 2007-06-07 Justin Garcia <justin.garcia@apple.com>
  24972. Reviewed by Tristan.
  24973. <rdar://problem/5250997> A crash occurs when selecting Undo Typing for a page that has been closed in tab
  24974. * WebCore.exp: Added clearUndoRedoOperations.
  24975. * page/Page.cpp:
  24976. (WebCore::Page::clearUndoRedoOperations): Added.
  24977. * page/Page.h:
  24978. 2007-06-07 David Hyatt <hyatt@apple.com>
  24979. Fix crash. Null check layer. Bug 13984.
  24980. Reviewed by andersca
  24981. * WebCore.xcodeproj/project.pbxproj:
  24982. * page/FrameView.cpp:
  24983. (WebCore::FrameView::windowClipRectForLayer):
  24984. 2007-06-07 Oliver Hunt <oliver@apple.com>
  24985. Reviewed by Justin.
  24986. Remove incorrect assertions.
  24987. These assertions were made on the assumption that
  24988. TSM would always call with a range that was contained
  24989. by an editable region.
  24990. TSM may call -[WebHTMLView characterIndexForPoint:] on a mouse
  24991. event that is otherwise unrelated to editing, which may
  24992. be outside the current editing region, triggering these
  24993. assertions.
  24994. * page/mac/WebCoreFrameBridge.mm:
  24995. (-[WebCoreFrameBridge convertToNSRange:]):
  24996. 2007-06-07 Justin Garcia <justin.garcia@apple.com>
  24997. Reviewed by John.
  24998. <rdar://problem/5237074> REGRESSION: editing/unsupported-content/table-delete-003 is failing (13931)
  24999. * editing/DeleteSelectionCommand.cpp:
  25000. (WebCore::DeleteSelectionCommand::initializeStartEnd):
  25001. We wouldn't expand the selection to include a special element
  25002. at the start of the selection unless the end of the selection
  25003. was at the end of a special element. Avoid a special
  25004. element at the start as long as it's fully selected. Ditto for
  25005. the end.
  25006. * editing/htmlediting.cpp:
  25007. (WebCore::positionBeforeContainingSpecialElement):
  25008. (WebCore::positionAfterContainingSpecialElement):
  25009. 2007-06-07 Sam Weinig <sam@webkit.org>
  25010. Reviewed by Anders.
  25011. Patch for http://bugs.webkit.org/show_bug.cgi?id=14028
  25012. Finish autogenerating the JS bindings for Node
  25013. * DerivedSources.make:
  25014. * WebCore.pro:
  25015. * WebCore.xcodeproj/project.pbxproj:
  25016. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  25017. (WebCore::createJSHTMLWrapper):
  25018. * bindings/js/JSHTMLElementWrapperFactory.h:
  25019. * bindings/js/JSHTMLOptionElementConstructor.cpp:
  25020. * bindings/js/JSNamedNodeMapCustom.cpp:
  25021. * bindings/js/JSNodeCustom.cpp:
  25022. (WebCore::JSNode::insertBefore):
  25023. (WebCore::JSNode::replaceChild):
  25024. (WebCore::JSNode::removeChild):
  25025. (WebCore::JSNode::appendChild):
  25026. (WebCore::JSNode::mark):
  25027. (WebCore::toJS):
  25028. * bindings/js/JSSVGElementWrapperFactory.cpp:
  25029. (WebCore::createJSSVGWrapper):
  25030. * bindings/js/JSSVGElementWrapperFactory.h:
  25031. * bindings/js/JSXSLTProcessor.cpp:
  25032. (KJS::XSLTProcessorPrototypeFunction::callAsFunction):
  25033. * bindings/js/kjs_binding.cpp:
  25034. (KJS::ScriptInterpreter::getDOMNodeForDocument):
  25035. (KJS::ScriptInterpreter::putDOMNodeForDocument):
  25036. (KJS::ScriptInterpreter::markDOMNodesForDocument):
  25037. (KJS::ScriptInterpreter::updateDOMNodeDocument):
  25038. * bindings/js/kjs_binding.h:
  25039. * bindings/js/kjs_dom.cpp:
  25040. (WebCore::toAttr):
  25041. * bindings/js/kjs_dom.h:
  25042. * bindings/js/kjs_domnode.h: Removed.
  25043. * bindings/objc/DOMUtility.mm:
  25044. (KJS::createDOMWrapper):
  25045. * bindings/scripts/CodeGeneratorJS.pm:
  25046. * dom/Node.h:
  25047. (WebCore::Node::parentElement):
  25048. * dom/Node.idl:
  25049. 2007-06-07 Sam Weinig <sam@webkit.org>
  25050. Another Gdk and Qt build fix.
  25051. * WebCore.pro:
  25052. 2007-06-07 Sam Weinig <sam@webkit.org>
  25053. Gdk and Qt build fix.
  25054. * WebCore.pro:
  25055. 2007-06-06 Sam Weinig <sam@webkit.org>
  25056. Reviewed by Hyatt.
  25057. Patch for http://bugs.webkit.org/show_bug.cgi?id=13973
  25058. Autogenerate most of the rest of kjs_dom.h/cpp
  25059. - Autogenerate JSNodeList and JSNamedNodeMap.
  25060. - Move JSEventTargetNode, JSNamedNodesCollection, and JSDOMExceptionConstructor
  25061. into their own files.
  25062. - Rename KJS::DOMEventTargeNode to WebCore::JSEventTargetNode to adhere
  25063. to convention and allow easier code generation.
  25064. - Add JS constructors for JSNodeList and JSNamedNodeMap.
  25065. - Moved more toJS methods into the correct (corresponding) header files.
  25066. - Cleaned up code in order for changes to work.
  25067. * DerivedSources.make:
  25068. * WebCore.xcodeproj/project.pbxproj:
  25069. * bindings/js/JSDOMExceptionConstructor.cpp: Added.
  25070. (WebCore::):
  25071. (WebCore::JSDOMExceptionConstructor::JSDOMExceptionConstructor):
  25072. (WebCore::JSDOMExceptionConstructor::getOwnPropertySlot):
  25073. (WebCore::JSDOMExceptionConstructor::getValueProperty):
  25074. (WebCore::getDOMExceptionConstructor):
  25075. * bindings/js/JSDOMExceptionConstructor.h: Added.
  25076. (WebCore::JSDOMExceptionConstructor::classInfo):
  25077. * bindings/js/JSDOMWindowCustom.cpp: Added.
  25078. (WebCore::JSDOMWindow::customGetOwnPropertySlot):
  25079. * bindings/js/JSDocumentCustom.cpp:
  25080. (WebCore::JSDocument::mark):
  25081. (WebCore::toJS):
  25082. * bindings/js/JSEventTargetNode.cpp: Added.
  25083. (WebCore::JSEventTargetNode::JSEventTargetNode):
  25084. (WebCore::JSEventTargetNode::getOwnPropertySlot):
  25085. (WebCore::JSEventTargetNode::getValueProperty):
  25086. (WebCore::JSEventTargetNode::put):
  25087. (WebCore::JSEventTargetNode::putValueProperty):
  25088. (WebCore::JSEventTargetNode::setListener):
  25089. (WebCore::JSEventTargetNode::getListener):
  25090. (WebCore::JSEventTargetNode::pushEventHandlerScope):
  25091. (WebCore::JSEventTargetNodePrototypeFunction::callAsFunction):
  25092. (WebCore::toEventTargetNode):
  25093. * bindings/js/JSEventTargetNode.h: Added.
  25094. (WebCore::JSEventTargetNode::):
  25095. * bindings/js/JSHTMLElementCustom.cpp:
  25096. * bindings/js/JSHTMLFormElementCustom.cpp:
  25097. (WebCore::JSHTMLFormElement::nameGetter):
  25098. * bindings/js/JSHTMLOptionElementConstructor.cpp:
  25099. * bindings/js/JSNamedNodeMapCustom.cpp: Added.
  25100. (WebCore::JSNamedNodeMap::canGetItemsForName):
  25101. (WebCore::JSNamedNodeMap::nameGetter):
  25102. * bindings/js/JSNamedNodesCollection.cpp: Added.
  25103. (WebCore::):
  25104. (WebCore::JSNamedNodesCollection::JSNamedNodesCollection):
  25105. (WebCore::JSNamedNodesCollection::lengthGetter):
  25106. (WebCore::JSNamedNodesCollection::indexGetter):
  25107. (WebCore::JSNamedNodesCollection::getOwnPropertySlot):
  25108. * bindings/js/JSNamedNodesCollection.h: Added.
  25109. (WebCore::JSNamedNodesCollection::classInfo):
  25110. * bindings/js/JSNodeCustom.cpp: Added.
  25111. (WebCore::toJS):
  25112. * bindings/js/JSNodeListCustom.cpp: Added.
  25113. (WebCore::JSNodeList::callAsFunction):
  25114. (WebCore::JSNodeList::implementsCall):
  25115. (WebCore::JSNodeList::canGetItemsForName):
  25116. (WebCore::JSNodeList::nameGetter):
  25117. * bindings/js/kjs_dom.cpp:
  25118. * bindings/js/kjs_dom.h:
  25119. * bindings/js/kjs_domnode.h:
  25120. * bindings/js/kjs_events.cpp:
  25121. (KJS::JSLazyEventListener::parseCode):
  25122. * bindings/js/kjs_html.cpp:
  25123. (KJS::JSHTMLCollection::getNamedItems):
  25124. * bindings/js/kjs_html.h:
  25125. * bindings/js/kjs_window.cpp:
  25126. (WebCore::toJS):
  25127. * bindings/js/kjs_window.h:
  25128. * bindings/objc/DOMInternal.mm:
  25129. (-[WebScriptObject _initializeScriptDOMNodeImp]):
  25130. * bindings/objc/DOMUtility.mm:
  25131. (KJS::createDOMWrapper):
  25132. * bindings/scripts/CodeGeneratorJS.pm:
  25133. * bridge/mac/WebCoreAXObject.mm:
  25134. * dom/Attr.idl:
  25135. * dom/CharacterData.idl:
  25136. * dom/Document.idl:
  25137. * dom/DocumentFragment.idl:
  25138. * dom/DocumentType.idl:
  25139. * dom/Element.idl:
  25140. * dom/NamedNodeMap.idl:
  25141. * dom/Node.idl:
  25142. * dom/NodeList.idl:
  25143. * page/DOMWindow.idl:
  25144. 2007-06-06 Justin Garcia <justin.garcia@apple.com>
  25145. Reviewed by Oliver.
  25146. <rdar://problem/5245519> CrashTracer: [USER] 457 crashes in Mail at WebCore::CSSComputedStyleDeclaration::copyInheritableProperties()
  25147. If the user pastes something into a region that ends up being
  25148. invisible, or if the pasted content contains style spans
  25149. that are render-less, we'll crash when we try to remove
  25150. redundant styles from style spans.
  25151. * css/CSSComputedStyleDeclaration.cpp:
  25152. (WebCore::CSSComputedStyleDeclaration::copyInheritableProperties):
  25153. Add null checks.
  25154. 2007-06-06 Justin Garcia <justin.garcia@apple.com>
  25155. Reviewed by Harrison.
  25156. <rdar://problem/4889598> Problems with moveDown: and moveUp: in Notes with ToDos
  25157. The caret would disappear when moving from content above or below
  25158. a ToDo if that ToDo doesn't have any content in it with the same
  25159. x position as the caret. That's because closestLeafChildForXPos
  25160. would return non-editable leaves, and which turn into non-editable
  25161. VisiblePositions, which are invisible.
  25162. * editing/visible_units.cpp:
  25163. (WebCore::previousLinePosition): Ask closestLeafForXPos to only
  25164. return editable leaves.
  25165. (WebCore::nextLinePosition): Ditto.
  25166. * rendering/RootInlineBox.cpp:
  25167. (WebCore::isEditableLeaf): Added.
  25168. (WebCore::RootInlineBox::closestLeafChildForXPos): If requested,
  25169. return the closest editable leaf. Removed an early return if the
  25170. position is before the first leaf, it's not really much of an
  25171. optimization.
  25172. * rendering/RootInlineBox.h:
  25173. 2007-06-06 Sam Weinig <sam@webkit.org>
  25174. Reviewed by Anders.
  25175. Fix release build.
  25176. * bindings/objc/DOM.mm:
  25177. (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]): Add missing null initialization.
  25178. (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]): Add missing null initialization.
  25179. 2007-06-06 Sam Weinig <sam@webkit.org>
  25180. Reviewed by Hyatt.
  25181. Patch for http://bugs.webkit.org/show_bug.cgi?id=13947
  25182. Finish autogenerating the JS DOM traversal code
  25183. - Completely generate JSNodeFilter.
  25184. - Move JSNodeFilterCondition into its own file
  25185. * DerivedSources.make:
  25186. * WebCore.pro:
  25187. * WebCore.xcodeproj/project.pbxproj:
  25188. * bindings/js/JSNodeFilterCondition.cpp: Copied from WebCore/bindings/js/kjs_traversal.cpp.
  25189. (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
  25190. (WebCore::JSNodeFilterCondition::mark):
  25191. (WebCore::JSNodeFilterCondition::acceptNode):
  25192. * bindings/js/JSNodeFilterCondition.h: Copied from WebCore/bindings/js/kjs_traversal.h.
  25193. * bindings/js/JSNodeFilterCustom.cpp: Added.
  25194. (WebCore::JSNodeFilter::mark):
  25195. (WebCore::toNodeFilter):
  25196. * bindings/js/kjs_dom.cpp:
  25197. * bindings/js/kjs_traversal.cpp: Removed.
  25198. * bindings/js/kjs_traversal.h: Removed.
  25199. * bindings/js/kjs_window.cpp:
  25200. * bindings/objc/DOM.mm:
  25201. (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
  25202. (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
  25203. * bindings/scripts/CodeGeneratorJS.pm:
  25204. * dom/Document.cpp:
  25205. (WebCore::Document::createNodeIterator):
  25206. (WebCore::Document::createTreeWalker):
  25207. * dom/Document.h:
  25208. * dom/NodeFilter.idl:
  25209. 2007-06-06 Alp Toker <alp.toker@collabora.co.uk>
  25210. Reviewed by Eric Seidel.
  25211. http://bugs.webkit.org/show_bug.cgi?id=14017
  25212. Cairo: Unwanted gradient effect for small stretched images
  25213. * platform/graphics/cairo/ImageCairo.cpp: Use CAIRO_FILTER_NEAREST to
  25214. work around the issue.
  25215. (WebCore::BitmapImage::draw):
  25216. (WebCore::Image::drawPattern):
  25217. 2007-06-06 Lars Knoll <lars@trolltech.com>
  25218. Reviewed by Zack
  25219. Add an API to create and load plugins.
  25220. Don't include moc files by hand anymore, rather let
  25221. qmake handle them.
  25222. * WebCore.pro:
  25223. * platform/qt/MimeTypeRegistryQt.cpp:
  25224. (WebCore::):
  25225. (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
  25226. * platform/qt/QWebPopup.cpp:
  25227. * platform/qt/SharedTimerQt.cpp:
  25228. 2007-06-06 Mark Rowe <mrowe@apple.com>
  25229. Qt build fix.
  25230. * rendering/RenderTextControl.cpp: Fix case of #include filename.
  25231. 2007-06-06 Lars Knoll <lars@trolltech.com>
  25232. Reviewed by Maciej.
  25233. Define WTF_USE_NPOBJECT for Qt. Fix includes
  25234. in HTMLPluginElement and add proper forwarding headers
  25235. from JavaScriptCore.
  25236. * ForwardingHeaders/bindings/npruntime.h: Added.
  25237. * ForwardingHeaders/bindings/runtime.h: Added.
  25238. * config.h:
  25239. * html/HTMLPlugInElement.cpp:
  25240. * html/HTMLPlugInElement.h:
  25241. 2007-06-06 David Hyatt <hyatt@apple.com>
  25242. Bulletproof windowClipRect, since it can be called at crazy times.
  25243. Part of fix for 13972.
  25244. Reviewed by olliej
  25245. * bindings/objc/DOM.mm:
  25246. (-[DOMElement _windowClipRect]):
  25247. 2007-06-05 Darin Fisher <darin@chromium.org>
  25248. Reviewed by Dave Hyatt.
  25249. Fixes http://bugs.webkit.org/show_bug.cgi?id=14008
  25250. * rendering/RenderTextControl.cpp:
  25251. (WebCore::RenderTextControl::calcHeight):
  25252. (WebCore::RenderTextControl::calcPrefWidths):
  25253. 2007-06-05 Kevin McCullough <kmccullough@apple.com>
  25254. - Respelling Oliver's name right.
  25255. 2007-06-05 Kevin McCullough <kmccullough@apple.com>
  25256. Reviewed by Mark and Oliver.
  25257. - http://bugs.webkit.org/show_bug.cgi?id=13352 REGRESSION: Gmail hangs on send message.
  25258. - Now we don't hang, but we do so by avoiding certain legitimate characters, the evangelism bug for this is: <rdar://problem/5252577> gmail does not accept legal characters in the form boundary
  25259. * html/HTMLFormElement.cpp:
  25260. (WebCore::getUniqueBoundaryString):
  25261. 2007-06-05 Anders Carlsson <andersca@apple.com>
  25262. Build fix.
  25263. * xml/xmlhttprequest.cpp:
  25264. (WebCore::isValidToken):
  25265. 2007-06-05 Anders Carlsson <andersca@apple.com>
  25266. Reviewed by Geoff.
  25267. <rdar://problem/5245555> REGRESSION: HTTP header injection in XMLHttpRequest.setRequestHeader
  25268. <rdar://problem/5246208> HTTP injection in XMLHttpRequest.open method parameter
  25269. <rdar://problem/5246242> HTTP header injection in HXMLHttpRequest.setRequestHeader header parameter
  25270. Check method names, header names and header values and throw exceptions if any of them are
  25271. invalid. This is what the new XMLHttpRequest spec states that we should do.
  25272. * xml/xmlhttprequest.cpp:
  25273. (WebCore::isValidToken):
  25274. (WebCore::isValidHeaderValue):
  25275. (WebCore::XMLHttpRequest::open):
  25276. (WebCore::XMLHttpRequest::setRequestHeader):
  25277. 2007-06-05 Sam Weinig <sam@webkit.org>
  25278. Reviewed by Geoff.
  25279. Optimize JSCSSStyleDeclaration after performance regression in r21854.
  25280. - Check static table before name getter in JSCSSStyleDeclaration::getOwnPropertySlot()
  25281. - Get rid of a string allocation by keeping string as KJS::Identifier for canGetItemsForName()
  25282. functions.
  25283. * WebCore.xcodeproj/project.pbxproj:
  25284. * bindings/js/JSCSSStyleDeclarationCustom.cpp:
  25285. (WebCore::JSCSSStyleDeclaration::canGetItemsForName):
  25286. * bindings/js/JSHTMLAppletElementCustom.cpp:
  25287. (WebCore::JSHTMLAppletElement::canGetItemsForName):
  25288. * bindings/js/JSHTMLDocumentCustom.cpp:
  25289. (WebCore::JSHTMLDocument::canGetItemsForName):
  25290. * bindings/js/JSHTMLEmbedElementCustom.cpp:
  25291. (WebCore::JSHTMLEmbedElement::canGetItemsForName):
  25292. * bindings/js/JSHTMLFormElementCustom.cpp:
  25293. (WebCore::JSHTMLFormElement::canGetItemsForName):
  25294. * bindings/js/JSHTMLFrameSetElementCustom.cpp:
  25295. (WebCore::JSHTMLFrameSetElement::canGetItemsForName):
  25296. * bindings/js/JSHTMLObjectElementCustom.cpp:
  25297. (WebCore::JSHTMLObjectElement::canGetItemsForName):
  25298. * bindings/scripts/CodeGeneratorJS.pm:
  25299. * css/CSSStyleDeclaration.idl:
  25300. 2007-06-04 Sam Weinig <sam@webkit.org>
  25301. Reviewed, tweaked and landed by Anders.
  25302. <rdar://problem/5247178> REGRESSION: With CSS Edit 2.5, a crash occurs at WebCore::DeprecatedString::DeprecatedString when page fails to be extracted
  25303. Null check the provisional document loader. If an application stops the load
  25304. inside of the didFailProvisionalLoad delegate method, the provisional document loader will be nulled out.
  25305. * loader/FrameLoader.cpp:
  25306. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  25307. 2007-06-04 Alp Toker <alp.toker@collabora.co.uk>
  25308. Reviewed by Anders.
  25309. http://bugs.webkit.org/show_bug.cgi?id=13986
  25310. Cairo graphics fixes and cleanups
  25311. * platform/graphics/ImageBuffer.h:
  25312. * platform/graphics/cairo/ImageBufferCairo.cpp:
  25313. (WebCore::ImageBuffer::surface): Provide surface() accessor.
  25314. * platform/graphics/cairo/AffineTransformCairo.cpp:
  25315. (WebCore::AffineTransform::rotate): Convert from degrees to radians to
  25316. fix rotation.
  25317. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  25318. (WebCore::GraphicsContext::drawRect): Add save/restore.
  25319. (WebCore::GraphicsContext::rotate): Rename parameter to "radians" to
  25320. avoid further confusion.
  25321. * platform/graphics/cairo/PathCairo.cpp:
  25322. (WebCore::Path::boundingRect): The cairo_fill_extents() parameters do
  25323. not describe a point/size but rather the two control points of the
  25324. rectangular region.
  25325. (WebCore::Path::contains): Remove needless casts.
  25326. 2007-06-04 Sam Weinig <sam@webkit.org>
  25327. Reviewed by Adam Roben.
  25328. Fix the buildbot.
  25329. * rendering/RenderSVGContainer.cpp:
  25330. (WebCore::RenderSVGContainer::layout):
  25331. 2007-06-04 Justin Garcia <justin.garcia@apple.com>
  25332. Reviewed by Kimon Tsinteris.
  25333. <rdar://problem/5241148> REGRESSION: ActivEdit can't perform operations on certain selections
  25334. Return valid equivalents from these methods (no [img, 1] for
  25335. example). ActivEdit was using positions returned from these
  25336. methods to create new DOM Ranges.
  25337. * editing/SelectionController.cpp:
  25338. (WebCore::SelectionController::baseNode):
  25339. (WebCore::SelectionController::baseOffset):
  25340. (WebCore::SelectionController::extentNode):
  25341. (WebCore::SelectionController::extentOffset):
  25342. (WebCore::SelectionController::anchorNode):
  25343. (WebCore::SelectionController::anchorOffset):
  25344. (WebCore::SelectionController::focusNode):
  25345. (WebCore::SelectionController::focusOffset):
  25346. * editing/SelectionController.h:
  25347. 2007-06-04 Rob Buis <buis@kde.org>
  25348. Fix the svg experimental build.
  25349. * ksvg2/svg/SVGFEFloodElement.cpp:
  25350. 2007-06-04 Rob Buis <buis@kde.org>
  25351. Reviewed by Hyatt.
  25352. http://bugs.webkit.org/show_bug.cgi?id=6170
  25353. CSS1: Properties for :first-letter aren't recalculated on color change
  25354. Mark styles with first-letter as unique.
  25355. * css/cssstyleselector.cpp:
  25356. (WebCore::CSSStyleSelector::styleForElement):
  25357. 2007-06-01 Anders Carlsson <acarlsson@apple.com>
  25358. Reviewed by David Harrison.
  25359. <rdar://problem/5236843>
  25360. CrashTracer: [USER] 3 crashes in Mail at WebCore::Loader::didReceiveResponse(WebCore::SubresourceLoader*, WebCore::ResourceResponse const&)
  25361. This is by no means the best solution for handling user style sheets. I've filed <rdar://problem/5244734>
  25362. for tracking that.
  25363. * loader/loader.cpp:
  25364. (WebCore::Loader::didReceiveResponse):
  25365. If a load starts while the frame is still in the provisional state
  25366. (this can be the case when loading the user style sheet), committing the load then causes all
  25367. requests to be removed from the m_requestsLoading map. This means that req might be null here.
  25368. In that case we just return early.
  25369. 2007-06-01 Mitz Pettel <mitz@webkit.org>
  25370. Reviewed by Adele.
  25371. - fix http://bugs.webkit.org/show_bug.cgi?id=13958
  25372. REGRESSION: Form select menu in iframe destroys form select menu on page
  25373. * page/mac/EventHandlerMac.mm:
  25374. (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking): Instead of calling
  25375. the event handler methods directly, post the fake event on the application event
  25376. queue. This ensures that the fake event is handled only after handling of the
  25377. initiating event has ended, and is seen by ancestor frames' event handlers.
  25378. 2007-06-01 George Staikos <staikos@kde.org>
  25379. Reviewed by bdash.
  25380. Redo the build fix again after it was backed out
  25381. * WebCore.pro: add an include guard around CSSGrammar.h
  25382. 2007-05-31 Geoffrey Garen <ggaren@apple.com>
  25383. Reviewed by Beth Dakin.
  25384. Fixed <rdar://problem/5238177> Continuing after hitting breakpoint doesn't
  25385. execute the next step.
  25386. No test because the only code affected is the debugger, and none of the
  25387. relevant API is exported.
  25388. Reverted an accidental change in 21324 that caused originRootObject for
  25389. the window object always to be 0. We could probably just remove the debugger's
  25390. dependency on originRootObject, but I wanted to be safe.
  25391. * page/mac/FrameMac.mm:
  25392. (WebCore::Frame::windowScriptObject):
  25393. 2007-05-31 David Hyatt <hyatt@apple.com>
  25394. Fix for 11768, Flash plugin does not respect clips set via CSS.
  25395. Reviewed by olliej
  25396. * bindings/objc/DOM.mm:
  25397. (-[DOMElement _windowClipRect]):
  25398. * bindings/objc/DOMPrivate.h:
  25399. * page/FrameView.cpp:
  25400. (WebCore::FrameView::windowClipRect):
  25401. (WebCore::FrameView::windowClipRectForLayer):
  25402. * platform/ScrollView.h:
  25403. (WebCore::ScrollView::contentsToWindow):
  25404. (WebCore::ScrollView::windowToContents):
  25405. * platform/mac/ScrollViewMac.mm:
  25406. (WebCore::ScrollView::contentsToWindow):
  25407. (WebCore::ScrollView::windowToContents):
  25408. 2007-05-31 Sam Weinig <sam@webkit.org>
  25409. Reviewed by Adam.
  25410. Fix build bot.
  25411. * ksvg2/svg/SVGSVGElement.cpp:
  25412. (WebCore::SVGSVGElement::setCurrentScale):
  25413. 2007-05-31 Sam Weinig <sam@webkit.org>
  25414. Fix Qt and Gdk builds.
  25415. * WebCore.pro: remove bindings/js/JSHTMLAnchorElementCustom.cpp
  25416. 2007-05-31 Sam Weinig <sam@webkit.org>
  25417. Reviewed by Geoff.
  25418. Patch for http://bugs.webkit.org/show_bug.cgi?id=10782
  25419. Classes should not override JSObject::toString(ExecState *)
  25420. Remove all overrides of JSObject::toString and JSObject::toPrimitive
  25421. which is a bad practice. Instead, if an object, like the
  25422. HTMLAnchorElement, needs to override to toString, it should add
  25423. a function to the JS object which will be called when needed. This
  25424. also allows developers to override toString and valueOf from within JS.
  25425. Test: fast/js/toString-and-valueOf-override.html
  25426. * WebCore.xcodeproj/project.pbxproj:
  25427. * bindings/js/JSHTMLAnchorElementCustom.cpp: Removed.
  25428. * bindings/js/kjs_binding.cpp:
  25429. * bindings/js/kjs_binding.h:
  25430. * bindings/js/kjs_dom.cpp:
  25431. * bindings/js/kjs_dom.h:
  25432. * bindings/js/kjs_domnode.h:
  25433. * bindings/js/kjs_window.cpp:
  25434. (KJS::History::):
  25435. (KJS::LocationFunc::callAsFunction):
  25436. (KJS::SelectionFunc::callAsFunction):
  25437. * bindings/js/kjs_window.h:
  25438. * bindings/scripts/CodeGeneratorJS.pm:
  25439. * html/HTMLAnchorElement.cpp:
  25440. (WebCore::HTMLAnchorElement::toString):
  25441. * html/HTMLAnchorElement.h:
  25442. * html/HTMLAnchorElement.idl:
  25443. 2007-05-31 Rob Buis <buis@kde.org>
  25444. Reviewed by Darin.
  25445. http://bugs.webkit.org/show_bug.cgi?id=11272
  25446. Implement currentScale(), setCurrentScale() and currentTranslate() in SVGSVGElement
  25447. Allow zooming and panning, thereby implementing the above methods.
  25448. * ksvg2/svg/SVGDocument.cpp:
  25449. (WebCore::SVGDocument::zoomEnabled):
  25450. (WebCore::SVGDocument::startPan):
  25451. (WebCore::SVGDocument::updatePan):
  25452. * ksvg2/svg/SVGDocument.h:
  25453. * ksvg2/svg/SVGSVGElement.cpp:
  25454. (WebCore::SVGSVGElement::currentScale):
  25455. (WebCore::SVGSVGElement::setCurrentScale):
  25456. (WebCore::SVGSVGElement::currentTranslate):
  25457. (WebCore::SVGSVGElement::setCurrentTranslate):
  25458. * ksvg2/svg/SVGSVGElement.h:
  25459. * page/EventHandler.cpp:
  25460. (WebCore::EventHandler::EventHandler):
  25461. (WebCore::EventHandler::handleMousePressEvent):
  25462. (WebCore::EventHandler::handleMouseMoveEvent):
  25463. (WebCore::EventHandler::handleMouseReleaseEvent):
  25464. * page/EventHandler.h:
  25465. * page/Frame.cpp:
  25466. (WebCore::Frame::setZoomFactor):
  25467. * rendering/RenderSVGContainer.cpp:
  25468. (WebCore::RenderSVGContainer::layout):
  25469. (WebCore::RenderSVGContainer::paint):
  25470. (WebCore::RenderSVGContainer::absoluteTransform):
  25471. * rendering/RenderSVGContainer.h:
  25472. 2007-05-31 Eric Seidel <eric@webkit.org>
  25473. Reviewed by Niko.
  25474. Links are activated based on mouse down events instead of click events
  25475. http://bugs.webkit.org/show_bug.cgi?id=12570
  25476. Test: svg/custom/prevent-default.svg
  25477. * html/HTMLAnchorElement.cpp: use MiddleButton and RightButton instead of 1 and 2
  25478. (WebCore::HTMLAnchorElement::defaultEventHandler):
  25479. * ksvg2/svg/SVGAElement.cpp:
  25480. (WebCore::SVGAElement::defaultEventHandler): make it function more like the HTML side
  25481. 2007-05-30 Maciej Stachowiak <mjs@apple.com>
  25482. Reviewed by Hyatt.
  25483. - fix layout test editing/style/table-selection.html
  25484. This was broken by the change to keep whitespace text nodes in tables. They safely didn't render,
  25485. but the font delta style change command would wrap them in spans, creating extra anonymous table
  25486. cells.
  25487. * editing/ApplyStyleCommand.cpp:
  25488. (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Don't wrap in a span if the text node
  25489. is not rendered.
  25490. 2007-05-31 Alp Toker <alp.toker@collabora.co.uk>
  25491. Reviewed by Eric Seidel.
  25492. http://bugs.webkit.org/show_bug.cgi?id=13941
  25493. Rename WebCore/platform/network/gdk to WebCore/platform/network/curl
  25494. * WebCore.pro:
  25495. 2007-05-31 Alp Toker <alp.toker@collabora.co.uk>
  25496. Reviewed by Niko.
  25497. Patch for http://bugs.webkit.org/show_bug.cgi?id=13945
  25498. GraphicsContextCairo enhancements necessary for SVG support
  25499. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  25500. (WebCore::GraphicsContext::concatCTM):
  25501. (WebCore::GraphicsContext::beginPath):
  25502. (WebCore::GraphicsContext::addPath):
  25503. 2007-05-31 Patti Hoa <patti@apple.com>
  25504. Reviewed by Darin.
  25505. <rdar://problem/5221920> AXLink is returning a CFString instead of a CFURL for AXURL
  25506. * bridge/mac/WebCoreAXObject.mm:
  25507. (-[WebCoreAXObject accessibilityAttributeValue:]):
  25508. Convert the url string to an NSURL before returning as the AXURLAttribute
  25509. 2007-05-30 Sam Weinig <sam@webkit.org>
  25510. Reviewed by Oliver.
  25511. Patch for http://bugs.webkit.org/show_bug.cgi?id=13943
  25512. Autogenerate the JS bindings for the CSSStyleSheet
  25513. * DerivedSources.make:
  25514. * WebCore.pro:
  25515. * WebCore.xcodeproj/project.pbxproj:
  25516. * bindings/js/JSStyleSheetCustom.cpp:
  25517. (WebCore::toJS):
  25518. * bindings/js/kjs_css.cpp:
  25519. * bindings/js/kjs_css.h:
  25520. * bindings/scripts/CodeGeneratorJS.pm:
  25521. * css/CSSStyleSheet.cpp:
  25522. (WebCore::CSSStyleSheet::addRule):
  25523. (WebCore::CSSStyleSheet::cssRules):
  25524. * css/CSSStyleSheet.h:
  25525. (WebCore::CSSStyleSheet::rules):
  25526. (WebCore::CSSStyleSheet::removeRule):
  25527. * css/CSSStyleSheet.idl:
  25528. * page/DOMWindow.idl:
  25529. 2007-05-30 Sam Weinig <sam@webkit.org>
  25530. Reviewed by Oliver.
  25531. Patch for http://bugs.webkit.org/show_bug.cgi?id=13937
  25532. Autogenerate the JS bindings for the CSSValue
  25533. * WebCore.pro:
  25534. * WebCore.xcodeproj/project.pbxproj:
  25535. * bindings/js/JSCSSValueCustom.cpp: Added.
  25536. (WebCore::toJS):
  25537. * bindings/js/kjs_css.cpp:
  25538. * bindings/js/kjs_css.h:
  25539. * bindings/objc/DOMUtility.mm:
  25540. (KJS::createDOMWrapper):
  25541. * bindings/scripts/CodeGeneratorJS.pm:
  25542. * css/CSSValue.h:
  25543. (WebCore::CSSValue::setCssText):
  25544. * css/CSSValue.idl:
  25545. 2007-05-30 Sam Weinig <sam@webkit.org>
  25546. Reviewed by Oliver the Hun.
  25547. Patch for http://bugs.webkit.org/show_bug.cgi?id=13944
  25548. Generate and add missing JS constructors
  25549. * css/CSSRuleList.idl:
  25550. * css/CSSValueList.idl:
  25551. * css/Counter.idl:
  25552. * page/DOMWindow.idl:
  25553. 2007-05-30 Justin Garcia <justin.garcia@apple.com>
  25554. Reviewed by Darin.
  25555. http://bugs.webkit.org/show_bug.cgi?id=13915
  25556. REGRESSION(r21687): editing/inserting/paragraph-separator-* failing pixel test (misspelling markers)
  25557. After r21687, SimplifiedBackwardsTextIterator was no longer
  25558. emitting a '\n' as it left the first block of a range ending
  25559. at [block, 0]. So, foo<div>^<br></div> looked like foo^ to
  25560. spell checking (foo wasn't marked as misspelled).
  25561. After r21687, SBTI stopped emitting '\n's in the above case
  25562. because 1) we stopped incorrectly emitting '\n's for nodes as
  25563. we entered them and 2) we were and still are incorrectly calling
  25564. code that should only be called when entering nodes as we leave
  25565. them and 3) we don't call exitNode(), which is responsible
  25566. for emitting the '\n' in the above testcase, when we should.
  25567. Before and after r21687, we'd call exitNode() for a node as
  25568. we traversed in reverse pre-order from its first descendant
  25569. out to its sibling or one of its ancestors' siblings. We
  25570. weren't calling it a) after we'd enter a node that could
  25571. have children but had none and b) when leaving a container
  25572. that contained the end of the range used to create the iterator.
  25573. * editing/TextIterator.cpp:
  25574. (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
  25575. (WebCore::SimplifiedBackwardsTextIterator::advance): Call exitNode() as we
  25576. leave a childless container node and a node where the range ended.
  25577. * editing/TextIterator.h: Track the end of the range used to create
  25578. the SimplifiedBackwardsTextIterator.
  25579. 2007-05-30 Alp Toker <alp.toker@collabora.co.uk>
  25580. Reviewed by Brady.
  25581. Enable logging in the Gdk port.
  25582. http://bugs.webkit.org/show_bug.cgi?id=13936
  25583. * WebCore.pro:
  25584. * platform/NotImplemented.h: Changed to use WTFLogVerbose.
  25585. * platform/gdk/LoggingGdk.cpp: Added.
  25586. (WebCore::InitializeLoggingChannelsIfNecessary):
  25587. 2007-05-30 Beth Dakin <bdakin@apple.com>
  25588. Reviewed by Hyatt.
  25589. Fix for <rdar://problem/5198882> CrashTracer: [USER] 7 crashes in
  25590. Safari at com.apple.WebCore: WebCore::RenderBlock::layoutBlock +
  25591. 2360
  25592. The problem is that we are re-entering layout when we should not.
  25593. http://trac.webkit.org/projects/webkit/changeset/21778 actually
  25594. fixed this crash, but we have been inspired to add the same guard
  25595. in two other possibly-dangerous places.
  25596. * page/FrameView.cpp:
  25597. (WebCore::FrameView::layout): Add the guard in two more places.
  25598. 2007-05-30 Justin Garcia <justin.garcia@apple.com>
  25599. Reviewed by Oliver.
  25600. <rdar://problem/5096134> VO gets stuck on Howto.apple.com
  25601. http://bugs.webkit.org/show_bug.cgi?id=8622
  25602. VisiblePositions aren't canonicalized in some cases
  25603. No new test cases added: can't write automated tests
  25604. for VO.
  25605. * editing/IndentOutdentCommand.cpp:
  25606. (WebCore::IndentOutdentCommand::outdentParagraph):
  25607. VisiblePositions must be recomputed after nodes that
  25608. may have effected their canonicalization are removed.
  25609. * editing/VisiblePosition.cpp:
  25610. (WebCore::canonicalizeCandidate): Added.
  25611. (WebCore::VisiblePosition::canonicalPosition): Canonicalize
  25612. the candidates returned by next/previousCandidate before
  25613. returning them.
  25614. * editing/VisiblePosition.h:
  25615. (WebCore::operator==): Remove the workaround for 8622.
  25616. * editing/visible_units.cpp:
  25617. (WebCore::startOfParagraph): Ditto.
  25618. 2007-05-30 Sam Weinig <sam@webkit.org>
  25619. Reviewed by Dr. Harrison.
  25620. Patch for http://bugs.webkit.org/show_bug.cgi?id=13868
  25621. REGRESSION: crash on accessing a new iframe's contentWindow property
  25622. Adds a null check in for the contentWindow property for HTMLIFrameElement
  25623. and HTMLFrameElement.
  25624. * bindings/scripts/CodeGeneratorJS.pm:
  25625. * html/HTMLFrameElement.idl:
  25626. * html/HTMLIFrameElement.idl:
  25627. 2007-05-30 Mitz Pettel <mitz@webkit.org>
  25628. Reviewed by Darin.
  25629. - fix http://bugs.webkit.org/show_bug.cgi?id=13775
  25630. REGRESSION: Popup button text should use "natural" directionality to match the items in the popup menu
  25631. Test: fast/forms/select-writing-direction-natural.html
  25632. * platform/PopupMenu.h: Added the static method itemWritingDirectionIsNatural
  25633. which says whether items in the popup ignore the CSS text-align and direction
  25634. properties and instead are left-aligned and use natural writing direction.
  25635. * platform/gdk/PopupMenuGdk.cpp:
  25636. (WebCore::PopupMenu::itemWritingDirectionIsNatural):
  25637. * platform/mac/PopupMenuMac.mm:
  25638. (WebCore::PopupMenu::itemWritingDirectionIsNatural):
  25639. * platform/qt/PopupMenuQt.cpp:
  25640. (WebCore::PopupMenu::itemWritingDirectionIsNatural):
  25641. * platform/win/TemporaryLinkStubs.cpp:
  25642. (WebCore::PopupMenu::itemWritingDirectionIsNatural):
  25643. * platform/wx/TemporaryLinkStubs.cpp:
  25644. (PopupMenu::itemWritingDirectionIsNatural):
  25645. * rendering/RenderMenuList.cpp:
  25646. (WebCore::textDirectionForParagraph): Added this helper function that uses
  25647. the Unicode Bidi Algorithm rules P2 and P3 to determine the writing direction
  25648. of text.
  25649. (WebCore::RenderMenuList::adjustInnerStyle): Made the alignment and direction
  25650. adjustment conditional on the popup implementation.
  25651. (WebCore::RenderMenuList::setText): Added call to adjustInnerStyle() since
  25652. the style depends on the text when natural writing direction is used.
  25653. 2007-05-30 Timothy Hatcher <timothy@apple.com>
  25654. Reviewed by Darin.
  25655. <rdar://problem/5200795> REGRESSION (r21057): lineBoxRects doesn't match actual text when wrapping occurs
  25656. Use box->end() instead of box->len().
  25657. * rendering/RenderText.cpp:
  25658. (WebCore::RenderText::addLineBoxRects):
  25659. 2007-05-30 Sam Weinig <sam@webkit.org>
  25660. Reviewed by Darin.
  25661. Patch for http://bugs.webkit.org/show_bug.cgi?id=13919
  25662. Autogenerate the JS bindings for the CSSRule and its subclasses
  25663. - subclasses generated are CSSCharsetRule, CSSFontFaceRule, CSSImportRule
  25664. CSSMediaRule, CSSPageRule and CSSStyleRule.
  25665. * DerivedSources.make:
  25666. * WebCore.pro:
  25667. * WebCore.xcodeproj/project.pbxproj:
  25668. * bindings/js/JSCSSRuleCustom.cpp: Added.
  25669. (WebCore::toJS):
  25670. * bindings/js/kjs_css.cpp:
  25671. * bindings/js/kjs_css.h:
  25672. * bindings/objc/DOMUtility.mm:
  25673. (KJS::createDOMWrapper):
  25674. * bindings/scripts/CodeGeneratorJS.pm:
  25675. * css/CSSCharsetRule.h:
  25676. (WebCore::CSSCharsetRule::setEncoding):
  25677. * css/CSSCharsetRule.idl:
  25678. * css/CSSFontFaceRule.idl:
  25679. * css/CSSImportRule.idl:
  25680. * css/CSSMediaRule.idl:
  25681. * css/CSSPageRule.cpp:
  25682. (WebCore::CSSPageRule::setSelectorText):
  25683. * css/CSSPageRule.h:
  25684. * css/CSSPageRule.idl:
  25685. * css/CSSRule.cpp:
  25686. (WebCore::CSSRule::setCssText):
  25687. * css/CSSRule.h:
  25688. * css/CSSRule.idl:
  25689. * css/CSSStyleRule.cpp:
  25690. (WebCore::CSSStyleRule::setSelectorText):
  25691. * css/CSSStyleRule.h:
  25692. * css/CSSStyleRule.idl:
  25693. * page/DOMWindow.idl: add new constructors.
  25694. 2007-05-30 Mark Rowe <mrowe@apple.com>
  25695. Build fixes after r21889. Add missing #includes.
  25696. * ForwardingHeaders/kjs/function.h: Added.
  25697. * bindings/js/kjs_binding.h:
  25698. * bindings/js/kjs_dom.h:
  25699. * bindings/js/kjs_window.h:
  25700. 2007-05-30 Mark Rowe <mrowe@apple.com>
  25701. Gdk build fix. Update WidgetGdk to use NotImplemented.h.
  25702. * platform/gdk/WidgetGdk.cpp:
  25703. (WebCore::Widget::setEnabled):
  25704. (WebCore::Widget::isEnabled):
  25705. (WebCore::Widget::removeFromParent):
  25706. (WebCore::Widget::paint):
  25707. (WebCore::Widget::setIsSelected):
  25708. 2007-05-29 Holger Freyther <zecke@selfish.org>
  25709. Reviewed by Anders.
  25710. Make ScrollView use a GtkLayout. This class matches QScrollView the most and promises
  25711. to ease the implementation of ScrollView::addChild. GtkLayout should be resource friendly
  25712. even with huge width and heights of frames.
  25713. Make Widget aware of GtkLayout to use the right GdkWindow as drawable. For GtkLayout one must
  25714. draw on the bin_window.
  25715. Remove the layer violation from FrameGdk.cpp and ScrollView. FrameGdk is no longer responsible to
  25716. implement scrolling on keyboard events. ScrollView is no longer required to know that it could be
  25717. a FrameView and handles scrolling of Frames magically.
  25718. * platform/ScrollView.h:
  25719. * platform/gdk/FrameGdk.cpp:
  25720. (WebCore::FrameGdk::keyPress):
  25721. (WebCore::FrameGdk::handleGdkEvent):
  25722. * platform/gdk/ScrollViewGdk.cpp:
  25723. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  25724. (WebCore::ScrollView::updateContents):
  25725. (WebCore::ScrollView::visibleWidth):
  25726. (WebCore::ScrollView::visibleHeight):
  25727. (WebCore::ScrollView::visibleContentRect):
  25728. (WebCore::ScrollView::resizeContents):
  25729. (WebCore::ScrollView::contentsX):
  25730. (WebCore::ScrollView::contentsY):
  25731. (WebCore::ScrollView::scrollOffset):
  25732. (WebCore::ScrollView::scrollBy):
  25733. (WebCore::ScrollView::setFrameGeometry):
  25734. (WebCore::ScrollView::updateGeometry):
  25735. (WebCore::ScrollView::setGtkWidget):
  25736. (WebCore::ScrollView::updateScrollbars):
  25737. (WebCore::ScrollView::windowToContents):
  25738. (WebCore::ScrollView::contentsToWindow):
  25739. (WebCore::ScrollView::scrollbarUnderMouse):
  25740. * platform/gdk/TemporaryLinkStubs.cpp: Move Widget methods to WidgetGdk.cpp
  25741. * platform/gdk/WidgetGdk.cpp:
  25742. (WebCore::Widget::setGtkWidget):
  25743. (WebCore::Widget::setFrameGeometry):
  25744. (WebCore::Widget::setEnabled):
  25745. (WebCore::Widget::isEnabled):
  25746. (WebCore::Widget::removeFromParent):
  25747. (WebCore::Widget::paint):
  25748. (WebCore::Widget::setIsSelected):
  25749. (WebCore::Widget::invalidate):
  25750. (WebCore::Widget::invalidateRect):
  25751. 2007-05-29 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  25752. Reviewed by Maciej.
  25753. Curl (linux/gdk) networking improvements:
  25754. a) POST support
  25755. b) don't use CURL in a re-entrant way.
  25756. c) turn on curl's internal debugging support in a debug build if the DEBUG_CURL environment variable is set.
  25757. * platform/network/ResourceHandleInternal.h:
  25758. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  25759. * platform/network/gdk/ResourceHandleCurl.cpp:
  25760. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  25761. * platform/network/gdk/ResourceHandleManager.cpp:
  25762. (WebCore::ResourceHandleManager::ResourceHandleManager):
  25763. (WebCore::writeCallback):
  25764. (WebCore::ResourceHandleManager::downloadTimerCallback):
  25765. (WebCore::ResourceHandleManager::setupPOST):
  25766. (WebCore::ResourceHandleManager::add):
  25767. (WebCore::ResourceHandleManager::removeScheduledJob):
  25768. (WebCore::ResourceHandleManager::startScheduledJobs):
  25769. (WebCore::ResourceHandleManager::startJob):
  25770. (WebCore::ResourceHandleManager::cancel):
  25771. * platform/network/gdk/ResourceHandleManager.h:
  25772. (WebCore::ResourceHandleList::ResourceHandleList):
  25773. (WebCore::ResourceHandleList::next):
  25774. (WebCore::ResourceHandleList::job):
  25775. (WebCore::ResourceHandleList::setRemoved):
  25776. (WebCore::ResourceHandleList::removed):
  25777. 2007-05-29 Sam Weinig <sam@webkit.org>
  25778. Fix the Qt and Gdk builds.
  25779. * WebCore.pro:
  25780. 2007-05-29 Adele Peterson <adele@apple.com>
  25781. Reviewed by Adam.
  25782. Fix for <rdar://problem/5109711> REGRESSION: Focus ring artifacts appear around a widget's search field at times (Address Book, Dictionary)
  25783. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintSearchField):
  25784. We only need this hack for drawing the search field focus ring on Tiger. On Leopard, drawWithFrame correctly draws the cell's focus ring.
  25785. 2007-05-29 Alp Toker <alp.toker@collabora.co.uk>
  25786. Reviewed by Mitz.
  25787. Patch for http://bugs.webkit.org/show_bug.cgi?id=13899
  25788. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  25789. (WebCore::GraphicsContext::strokeArc): Use cairo_arc_negative() to fix
  25790. CSS rounded borders.
  25791. (WebCore::GraphicsContext::beginTransparencyLayer):
  25792. (WebCore::GraphicsContext::endTransparencyLayer): save/restore is
  25793. redundant. push/pop group does this implicitly.
  25794. 2007-05-29 Sam Weinig <sam@webkit.org>
  25795. Reviewed by Oliver.
  25796. Patch for http://bugs.webkit.org/show_bug.cgi?id=13912
  25797. Autogenerate the JS bindings for the MediaList
  25798. * DerivedSources.make:
  25799. * WebCore.xcodeproj/project.pbxproj:
  25800. * bindings/js/kjs_css.cpp:
  25801. * bindings/js/kjs_css.h:
  25802. * bindings/objc/DOMUtility.mm:
  25803. (KJS::createDOMWrapper):
  25804. * bindings/scripts/CodeGeneratorJS.pm:
  25805. * css/MediaList.idl:
  25806. * page/DOMWindow.idl: Add constructor.
  25807. 2007-05-29 Matt Perry <mpComplete@gmail.com>
  25808. Reviewed by Maciej.
  25809. Fixed some rendering issues for <select>s on Windows.
  25810. * rendering/RenderThemeWin.cpp:
  25811. (WebCore::RenderThemeWin::adjustMenuListStyle):
  25812. (WebCore::RenderThemeWin::paintMenuList):
  25813. * rendering/RenderThemeWin.h:
  25814. 2007-05-29 David Hyatt <hyatt@apple.com>
  25815. Fold the invalidateVerticalPositions crawl into the bidi iteration.
  25816. This makes it more correct (since we won't drill into elements that
  25817. did not need to be reset) and cuts out an extra walk of all our children.
  25818. We're still O(n^2) as new content streams in, but this at least cuts
  25819. out one separate O(n^2) crawl.
  25820. Reviewed by olliej
  25821. * rendering/RenderObject.cpp:
  25822. * rendering/RenderObject.h:
  25823. (WebCore::RenderObject::invalidateVerticalPosition):
  25824. * rendering/bidi.cpp:
  25825. (WebCore::RenderBlock::layoutInlineChildren):
  25826. 2007-05-29 Sam Weinig <sam@webkit.org>
  25827. Reviewed by Oliver.
  25828. Patch for http://bugs.webkit.org/show_bug.cgi?id=13908
  25829. Autogenerate the JS bindings for the StyleSheet
  25830. * DerivedSources.make:
  25831. * WebCore.xcodeproj/project.pbxproj:
  25832. * bindings/js/JSStyleSheetCustom.cpp: Added.
  25833. (WebCore::toJS):
  25834. (WebCore::JSStyleSheet::toBoolean):
  25835. * bindings/js/kjs_css.cpp:
  25836. (KJS::):
  25837. (KJS::DOMCSSStyleSheet::DOMCSSStyleSheet):
  25838. (KJS::DOMCSSStyleSheet::getOwnPropertySlot):
  25839. * bindings/js/kjs_css.h:
  25840. * bindings/objc/DOMUtility.mm:
  25841. (KJS::createDOMWrapper):
  25842. * bindings/scripts/CodeGeneratorJS.pm:
  25843. * css/StyleSheet.idl:
  25844. * page/DOMWindow.idl: Add new constructor.
  25845. 2007-05-29 David Hyatt <hyatt@apple.com>
  25846. Make sure <embed> does not allow an end tag.
  25847. Reviewed by olliej
  25848. * html/HTMLEmbedElement.h:
  25849. (WebCore::HTMLEmbedElement::endTagRequirement):
  25850. 2007-05-29 Adele Peterson <adele@apple.com>
  25851. Reviewed by Brady.
  25852. Fix for <rdar://problem/5213039> REGRESSION: Wells Fargo registration page returns blank
  25853. Roll out updated fix for 11866 that tried to make reset work for hidden inputs. Since
  25854. all browsers update the value attribute when setting the value, it doesn't really make sense to reset.
  25855. Its true that IE does support resetting these controls, but in this case, it doesn't really make sense to have
  25856. another place to store an alternate version of the value.
  25857. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::reset):
  25858. * html/HTMLInputElement.h:
  25859. 2007-05-29 Darin Adler <darin@apple.com>
  25860. Reviewed by Anders.
  25861. - removed the general case optimization for innerHTML because some sites
  25862. rely on setting innerHTML to trigger loading plug-ins for example; we
  25863. could consider bringing it back some day, perhaps with a list of element
  25864. types to exclude
  25865. * dom/CharacterData.cpp: (WebCore::CharacterData::setData):
  25866. Do nothing if the old data is identical to the new data.
  25867. * html/HTMLElement.cpp:
  25868. (WebCore::replaceChildrenWithFragment): Remove childrenAreEqual optimization.
  25869. (WebCore::replaceChildrenWithText): Remove optimization for cases where the
  25870. text data is identical to the new data, since CharacterData handles that now.
  25871. (WebCore::HTMLElement::setOuterHTML): Remove childrenAreEqual optimization.
  25872. 2007-05-29 Mitz Pettel <mitz@webkit.org>
  25873. Reviewed by Maciej.
  25874. - fix http://bugs.webkit.org/show_bug.cgi?id=13904
  25875. REGRESSION: Search fields with a results popup do not always draw the popup arrow
  25876. Covered by fast/forms/box-shadow-override.html
  25877. The search button draws a popup arrow depending on whether the
  25878. search menu template is set, rather than on the maximum number of recent
  25879. search strings.
  25880. * rendering/RenderThemeMac.h:
  25881. * rendering/RenderThemeMac.mm:
  25882. (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration): Removed the
  25883. call to -setMaxmiumRecents:.
  25884. (WebCore::RenderThemeMac::paintSearchFieldResultsButton): Replaced calling
  25885. -setMaximumRecents: with setting the search menu template.
  25886. (WebCore::RenderThemeMac::search): Removed initialization of the menu.
  25887. (WebCore::RenderThemeMac::searchMenuTemplate): Added. Returns an empty
  25888. NSMenu to be used as the search menu template.
  25889. 2007-05-29 David Hyatt <hyatt@apple.com>
  25890. Fix for bug 13907, <noscript> should be allowed inside <head> when
  25891. scripting is enabled.
  25892. Reviewed by aroben
  25893. * html/HTMLHeadElement.cpp:
  25894. (WebCore::HTMLHeadElement::checkDTD):
  25895. * html/HTMLParser.cpp:
  25896. (WebCore::HTMLParser::handleError):
  25897. * html/HTMLParserErrorCodes.cpp:
  25898. (WebCore::htmlParserErrorMessageTemplate):
  25899. * html/HTMLParserErrorCodes.h:
  25900. 2007-05-29 Mitz Pettel <mitz@webkit.org>
  25901. Reviewed by Maciej.
  25902. - fix crash in http://bugs.webkit.org/show_bug.cgi?id=13792
  25903. REGRESSION: WebKit doesn't show this javascript screenshot page (and crashes after click on its "hidden link")
  25904. Test: fast/frames/removal-before-attach-crash.html
  25905. Delayed the queueing of the post-attach callback until attach().
  25906. * html/HTMLFrameElementBase.cpp:
  25907. (WebCore::HTMLFrameElementBase::HTMLFrameElementBase):
  25908. (WebCore::HTMLFrameElementBase::parseMappedAttribute): Replaced call to the
  25909. HTMLElement implementation with a call to the HTMLFrameOwnerElement
  25910. implementation, as the latter is the parent class.
  25911. (WebCore::HTMLFrameElementBase::insertedIntoDocument): Instead of queueing
  25912. the post-attach callback here, just set a flag telling us to do so
  25913. at the beginning of attach().
  25914. (WebCore::HTMLFrameElementBase::removedFromDocument): Reset the above flag.
  25915. (WebCore::HTMLFrameElementBase::attach): If this is the first attach() after
  25916. being inserted into the document, queue a post-attach callback to load the
  25917. frame.
  25918. (WebCore::HTMLFrameElementBase::willRemove): Changed to call up to the correct
  25919. parent class.
  25920. (WebCore::HTMLFrameElementBase::setFocus): Ditto.
  25921. * html/HTMLFrameElementBase.h:
  25922. * html/HTMLPlugInElement.cpp:
  25923. (WebCore::HTMLPlugInElement::mapToEntry): Replaced call to the HTMLElement
  25924. implementation with a call to the HTMLFrameOwnerElement implementation,
  25925. as the latter is the parent class.
  25926. (WebCore::HTMLPlugInElement::parseMappedAttribute): Ditto.
  25927. (WebCore::HTMLPlugInElement::checkDTD): Ditto.
  25928. (WebCore::HTMLPlugInElement::detach): Ditto.
  25929. 2007-05-29 Darin Adler <darin@apple.com>
  25930. Reviewed by Maciej.
  25931. - fix http://bugs.webkit.org/show_bug.cgi?id=13602
  25932. Amazon product pages keep repainting over and over again
  25933. - fix first-letter when the text of the affected text node is changed
  25934. Optimize setInnerHTML, setOuterHTML, and setInnerText so they don't change the DOM at all
  25935. if they don't need to.
  25936. Test: fast/dom/HTMLElement/set-inner-outer-optimization.html
  25937. Test: fast/css/first-letter-detach.html
  25938. * html/HTMLElement.cpp:
  25939. (WebCore::equal): Added. Helper function that compares two Text nodes or two NamedAttrMap
  25940. attribute maps.
  25941. (WebCore::shallowEqual): Added. Helper function that compares two Element nodes or two
  25942. arbitrary nodes.
  25943. (WebCore::childrenAreEqual): Added. Helper functions that compare children of nodes.
  25944. (WebCore::hasOneChild): Added. Helper function.
  25945. (WebCore::hasOneTextChild): Added. Helper function.
  25946. (WebCore::replaceChildrenWithFragment): Added. Helper function used by setInnerHTML and
  25947. setInnerText. Optimizes the cases where all the nodes are the same, where both the current
  25948. and the new content are single text nodes, and where the current content is a single node
  25949. that can be replaced with replaceChild.
  25950. (WebCore::replaceChildrenWithText): Added. Helper function used by setInnerText. Optimizes
  25951. the case where the current content is a single text node or a single node that can be
  25952. replaced with replaceChild.
  25953. (WebCore::HTMLElement::setInnerHTML): Changed to call replaceChildrenWithFragment.
  25954. (WebCore::HTMLElement::setOuterHTML): Added special case to optimize when the new content
  25955. exactly matches the current node.
  25956. (WebCore::HTMLElement::setInnerText): Changed to call replaceChildrenWithText in a few
  25957. cases instead of doing removeChildren/appendChild. Changed code that was using
  25958. DeprecatedString to instead use String. Changed general case to use a document fragment
  25959. and replaceChildrenWithFragment.
  25960. * dom/CharacterData.cpp: (WebCore::CharacterData::dispatchModifiedEvent):
  25961. Fixed bug where we would not dispatch the DOMSubtreeModified event unless someone
  25962. was registered for the DOMCharacterDataModified event. Caused trouble in the test.
  25963. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateFirstLetter): Set first-letter
  25964. after the setStyle call so calls to setTextInternal inside setStyle don't clear it.
  25965. * rendering/RenderText.h: Made setTextInternal virtual so that RenderTextFragment can do
  25966. appropriate work when the text changes.
  25967. * rendering/RenderTextFragment.h: Added an override of setTextInternal. Removed the
  25968. firstLetter parameter to the constructor and made it a separate setter. Also changed
  25969. m_generatedContentStr to m_contentString to match the getter function.
  25970. * rendering/RenderTextFragment.cpp:
  25971. (WebCore::RenderTextFragment::RenderTextFragment): Removed firstLetter parameter.
  25972. (WebCore::RenderTextFragment::setTextInternal): When the text changes, destroy the
  25973. first-letter node and reset the fragment values so that RenderBlock::updateFirstLetter,
  25974. which will run during layout, will create a new first-letter child. Otherwise we end up
  25975. with the first letter of the old text.
  25976. 2007-05-29 Sam Weinig <sam@webkit.org>
  25977. Fix Qt build.
  25978. * platform/NotImplemented.h:
  25979. 2007-05-29 Sam Weinig <sam@webkit.org>
  25980. Reviewed by Adam Roben.
  25981. Consolidate platform dependent notImplemented() macros
  25982. into one platform independent macro that uses WTFLog.
  25983. * platform/NotImplemented.h:
  25984. 2007-05-29 Darin Adler <darin@apple.com>
  25985. Reviewed by Sam.
  25986. - a clean-up pass on form-related aspects of the recent JSHTMLElement patch
  25987. * bindings/js/JSHTMLElementCustom.cpp: (WebCore::JSHTMLElement::pushEventHandlerScope):
  25988. Replace the call to formForEventHandlerScope() with a call to the new form() function.
  25989. And removed the now-uneeded code to search for a form ancestor.
  25990. * html/HTMLElement.h: Added a general-purpose form() function. The intent is to return
  25991. the form ancestor if any, but return the associated form for a form control, which isn't
  25992. always an ancestor of the control. To keep form() efficient for form controls, it's an
  25993. inline that calls a virtual, allowing a derived class to override it with an inline.
  25994. This replaces formForEventHandlerScope(). Also added findFormAncestor() to use here and
  25995. to replace the multiple loops found elsewhere to search for the nearest form ancestor.
  25996. * html/HTMLElement.cpp:
  25997. (WebCore::HTMLElement::findFormAncestor): Added.
  25998. (WebCore::HTMLElement::virtualForm): Added. Calls findFormAncestor().
  25999. * html/HTMLGenericFormElement.h: Suggested name change to HTMLFormControlElement.
  26000. Removed the confusing getForm() function, which is superceded by findFormAncestor.
  26001. Removed the unused onSelect() function. Removed the override of formForEventHandlerScope(),
  26002. replacing it with an override of virtualForm().
  26003. * html/HTMLGenericFormElement.cpp:
  26004. (WebCore::HTMLGenericFormElement::HTMLGenericFormElement): Use findFormAncestor
  26005. instead of getForm.
  26006. (WebCore::HTMLGenericFormElement::insertedIntoTree): Ditto.
  26007. (WebCore::HTMLGenericFormElement::virtualForm): Added.
  26008. * html/HTMLLabelElement.h: Removed now-unneeded form() and formForEventHandlerScope()
  26009. functions, since base class behavior is now good enough. Renamed formElement() to
  26010. correspondingControl(), since that's the terminology used elsewhere in the code,
  26011. and the old name was unnecessarily confusing.
  26012. * html/HTMLLabelElement.cpp:
  26013. (WebCore::HTMLLabelElement::correspondingControl): Renamed. Removed unnecessary
  26014. special case for empty ID, since getElementById already returns 0 for that case.
  26015. (WebCore::HTMLLabelElement::setActive): Updated for name change.
  26016. (WebCore::HTMLLabelElement::setHovered): Ditto.
  26017. (WebCore::HTMLLabelElement::defaultEventHandler): Ditto.
  26018. (WebCore::HTMLLabelElement::focus): Ditto.
  26019. (WebCore::HTMLLabelElement::accessKeyAction): Ditto.
  26020. * html/HTMLObjectElement.h: Removed now-unneeded form() and formForEventHandlerScope()
  26021. functions, since base class behavior is now good enough. Also removed forward
  26022. declaration of KJS::Bindings::Instance -- since the type is the return value of a
  26023. function from the base class, it's guaranteed to be declared in the base class header.
  26024. * html/HTMLObjectElement.cpp: Ditto.
  26025. * bridge/mac/WebCoreAXObject.mm: (labelForElement): Updated for name change.
  26026. 2007-05-29 Zack Rusin <zrusin@trolltech.com>
  26027. Reviewed by George and Niko
  26028. Making the convenience method notImplemented convenient
  26029. for the Qt port.
  26030. * platform/NotImplemented.h:
  26031. 2007-05-28 Sam Weinig <sam@webkit.org>
  26032. Reviewed by Geoff.
  26033. - Patch for http://bugs.webkit.org/show_bug.cgi?id=13902
  26034. Autogenerate the JS bindings for the CSSStyleDeclaration
  26035. * WebCore.pro:
  26036. * WebCore.xcodeproj/project.pbxproj:
  26037. * bindings/js/JSCSSStyleDeclarationCustom.cpp: Added.
  26038. (WebCore::cssPropertyName):
  26039. (WebCore::isCSSPropertyName):
  26040. (WebCore::JSCSSStyleDeclaration::canGetItemsForName):
  26041. (WebCore::JSCSSStyleDeclaration::nameGetter):
  26042. (WebCore::JSCSSStyleDeclaration::customPut):
  26043. * bindings/js/kjs_binding.h:
  26044. * bindings/js/kjs_css.cpp:
  26045. * bindings/js/kjs_css.h:
  26046. * bindings/objc/DOMUtility.mm:
  26047. (KJS::createDOMWrapper):
  26048. * bindings/scripts/CodeGeneratorJS.pm:
  26049. * css/CSSStyleDeclaration.idl:
  26050. 2007-05-28 Mitz Pettel <mitz@webkit.org>
  26051. Reviewed by Darin.
  26052. - fix http://bugs.webkit.org/show_bug.cgi?id=13896
  26053. REGRESSION (NativePopup): Reproductible crasher on Google Coop control panel
  26054. Test: fast/forms/select-display-none-style-resolve.html
  26055. * html/HTMLOptGroupElement.cpp:
  26056. (WebCore::HTMLOptGroupElement::attach): Do not compute style if the parent
  26057. does not have style.
  26058. * html/HTMLOptionElement.cpp:
  26059. (WebCore::HTMLOptionElement::attach): Ditto.
  26060. 2007-05-28 Sam Weinig <sam@webkit.org>
  26061. Fix Gdk and Qt builds.
  26062. * WebCore.pro:
  26063. 2007-05-28 Sam Weinig <sam@webkit.org>
  26064. Reviewed by Darin.
  26065. Patch for http://bugs.webkit.org/show_bug.cgi?id=13894
  26066. Remove the legacy class KJS::JSHTMLElement
  26067. - Now that all of the subclasses of JSHTMLElement are
  26068. autogenerated and no longer rely on the legacy parent,
  26069. we can remove it and update all the HTML idl files to
  26070. reflect so.
  26071. - Also adds JSHTMLBlockquoteElement's JS constructor which
  26072. was mistakingly missing.
  26073. * WebCore.xcodeproj/project.pbxproj:
  26074. * bindings/js/JSHTMLAnchorElementCustom.cpp:
  26075. (WebCore::JSHTMLAnchorElement::toString):
  26076. * bindings/js/JSHTMLElementCustom.cpp: Added.
  26077. (WebCore::JSHTMLElement::pushEventHandlerScope):
  26078. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  26079. (WebCore::createJSHTMLWrapper):
  26080. * bindings/js/JSHTMLInputElementBase.cpp:
  26081. (WebCore::):
  26082. (WebCore::JSHTMLInputElementBase::JSHTMLInputElementBase):
  26083. (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
  26084. (WebCore::JSHTMLInputElementBase::put):
  26085. * bindings/js/JSHTMLInputElementBase.h:
  26086. * bindings/js/JSHTMLSelectElementCustom.cpp:
  26087. * bindings/js/kjs_html.cpp:
  26088. (KJS::runtimeObjectCustomGetOwnPropertySlot):
  26089. * bindings/js/kjs_html.h:
  26090. * bindings/scripts/CodeGeneratorJS.pm:
  26091. * html/HTMLAnchorElement.idl:
  26092. * html/HTMLAppletElement.idl:
  26093. * html/HTMLAreaElement.idl:
  26094. * html/HTMLBRElement.idl:
  26095. * html/HTMLBaseElement.idl:
  26096. * html/HTMLBaseFontElement.idl:
  26097. * html/HTMLBlockquoteElement.idl:
  26098. * html/HTMLBodyElement.idl:
  26099. * html/HTMLButtonElement.idl:
  26100. * html/HTMLCanvasElement.idl:
  26101. * html/HTMLDListElement.idl:
  26102. * html/HTMLDirectoryElement.idl:
  26103. * html/HTMLDivElement.idl:
  26104. * html/HTMLElement.cpp:
  26105. (WebCore::HTMLElement::formForEventHandlerScope):
  26106. * html/HTMLElement.h:
  26107. * html/HTMLElement.idl:
  26108. * html/HTMLEmbedElement.idl:
  26109. * html/HTMLFieldSetElement.idl:
  26110. * html/HTMLFontElement.idl:
  26111. * html/HTMLFormElement.idl:
  26112. * html/HTMLFrameElement.idl:
  26113. * html/HTMLFrameSetElement.idl:
  26114. * html/HTMLGenericFormElement.cpp:
  26115. (WebCore::HTMLGenericFormElement::formForEventHandlerScope):
  26116. * html/HTMLGenericFormElement.h:
  26117. * html/HTMLHRElement.idl:
  26118. * html/HTMLHeadElement.idl:
  26119. * html/HTMLHeadingElement.idl:
  26120. * html/HTMLHtmlElement.idl:
  26121. * html/HTMLIFrameElement.idl:
  26122. * html/HTMLImageElement.idl:
  26123. * html/HTMLIsIndexElement.idl:
  26124. * html/HTMLLIElement.idl:
  26125. * html/HTMLLabelElement.cpp:
  26126. (WebCore::HTMLLabelElement::form):
  26127. (WebCore::HTMLLabelElement::formForEventHandlerScope):
  26128. * html/HTMLLabelElement.h:
  26129. * html/HTMLLabelElement.idl:
  26130. * html/HTMLLegendElement.idl:
  26131. * html/HTMLLinkElement.idl:
  26132. * html/HTMLMapElement.idl:
  26133. * html/HTMLMarqueeElement.idl:
  26134. * html/HTMLMenuElement.idl:
  26135. * html/HTMLMetaElement.idl:
  26136. * html/HTMLModElement.idl:
  26137. * html/HTMLOListElement.idl:
  26138. * html/HTMLObjectElement.cpp:
  26139. (WebCore::HTMLObjectElement::formForEventHandlerScope):
  26140. * html/HTMLObjectElement.h:
  26141. * html/HTMLObjectElement.idl:
  26142. * html/HTMLOptGroupElement.idl:
  26143. * html/HTMLOptionElement.idl:
  26144. * html/HTMLParagraphElement.idl:
  26145. * html/HTMLParamElement.idl:
  26146. * html/HTMLPreElement.idl:
  26147. * html/HTMLQuoteElement.idl:
  26148. * html/HTMLScriptElement.idl:
  26149. * html/HTMLSelectElement.idl:
  26150. * html/HTMLStyleElement.idl:
  26151. * html/HTMLTableCaptionElement.idl:
  26152. * html/HTMLTableCellElement.idl:
  26153. * html/HTMLTableColElement.idl:
  26154. * html/HTMLTableElement.idl:
  26155. * html/HTMLTableRowElement.idl:
  26156. * html/HTMLTableSectionElement.idl:
  26157. * html/HTMLTextAreaElement.idl:
  26158. * html/HTMLTitleElement.idl:
  26159. * html/HTMLUListElement.idl:
  26160. * page/DOMWindow.idl:
  26161. 2007-05-28 Zack Rusin <zrusin@trolltech.com>
  26162. Reviewed by andersca
  26163. Adding Qt related constructor/casting operators
  26164. to the AtomicString and updating the project
  26165. file for new Qt settings api using those.
  26166. * WebCore.pro:
  26167. * platform/AtomicString.h:
  26168. 2007-05-27 Sam Weinig <sam@webkit.org>
  26169. Qt and Gdk build fix.
  26170. * WebCore.pro:
  26171. 2007-05-27 Sam Weinig <sam@webkit.org>
  26172. Reviewed by Hyatt.
  26173. Patch for http://bugs.webkit.org/show_bug.cgi?id=13893
  26174. Autogenerate the JS bindings for the HTMLObjectElement,
  26175. HTMLEmbedElement and HTMLAppletElement
  26176. * DerivedSources.make:
  26177. * WebCore.xcodeproj/project.pbxproj:
  26178. * bindings/js/JSHTMLAppletElementCustom.cpp: Added.
  26179. (WebCore::JSHTMLAppletElement::customGetOwnPropertySlot):
  26180. (WebCore::JSHTMLAppletElement::customPut):
  26181. (WebCore::JSHTMLAppletElement::implementsCall):
  26182. (WebCore::JSHTMLAppletElement::callAsFunction):
  26183. (WebCore::JSHTMLAppletElement::canGetItemsForName):
  26184. (WebCore::JSHTMLAppletElement::nameGetter):
  26185. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  26186. * bindings/js/JSHTMLEmbedElementCustom.cpp: Added.
  26187. (WebCore::JSHTMLEmbedElement::customGetOwnPropertySlot):
  26188. (WebCore::JSHTMLEmbedElement::customPut):
  26189. (WebCore::JSHTMLEmbedElement::implementsCall):
  26190. (WebCore::JSHTMLEmbedElement::callAsFunction):
  26191. (WebCore::JSHTMLEmbedElement::canGetItemsForName):
  26192. (WebCore::JSHTMLEmbedElement::nameGetter):
  26193. * bindings/js/JSHTMLObjectElementCustom.cpp: Added.
  26194. (WebCore::JSHTMLObjectElement::customGetOwnPropertySlot):
  26195. (WebCore::JSHTMLObjectElement::customPut):
  26196. (WebCore::JSHTMLObjectElement::implementsCall):
  26197. (WebCore::JSHTMLObjectElement::callAsFunction):
  26198. (WebCore::JSHTMLObjectElement::canGetItemsForName):
  26199. (WebCore::JSHTMLObjectElement::nameGetter):
  26200. * bindings/js/kjs_html.cpp:
  26201. (KJS::):
  26202. (KJS::JSHTMLElement::toString):
  26203. (KJS::JSHTMLElement::pushEventHandlerScope):
  26204. (KJS::runtimeObjectGetter):
  26205. (KJS::runtimeObjectPropertyGetter):
  26206. (KJS::runtimeObjectCustomGetOwnPropertySlot):
  26207. (KJS::runtimeObjectCustomPut):
  26208. (KJS::runtimeObjectImplementsCall):
  26209. (KJS::runtimeObjectCallAsFunction):
  26210. * bindings/js/kjs_html.h:
  26211. (KJS::JSHTMLElement::classInfo):
  26212. * bindings/scripts/CodeGeneratorJS.pm: Add support for
  26213. CustomGetOwnPropertySlot, CustomPutFunction, CustomCall,
  26214. and SVGCheckSecurityDocument properties.
  26215. * html/HTMLAppletElement.idl:
  26216. * html/HTMLEmbedElement.idl:
  26217. * html/HTMLObjectElement.idl:
  26218. * page/DOMWindow.idl: Uncomment constructors.
  26219. 2007-05-27 Sam Weinig <sam@webkit.org>
  26220. Reviewed by Oliver.
  26221. Gdk build fix.
  26222. * platform/graphics/Path.h:
  26223. 2007-05-27 Sam Weinig <sam@webkit.org>
  26224. Gdk build fix. Forgot to update a few instances of notImplementedGdk() to notImplemented().
  26225. * page/gdk/EventHandlerGdk.cpp:
  26226. (WebCore::EventHandler::passMousePressEventToScrollbar):
  26227. * platform/gdk/EditorClientGdk.cpp:
  26228. (WebCore::EditorClientGdk::ignoreWordInSpellDocument):
  26229. (WebCore::EditorClientGdk::learnWord):
  26230. (WebCore::EditorClientGdk::checkSpellingOfString):
  26231. (WebCore::EditorClientGdk::checkGrammarOfString):
  26232. (WebCore::EditorClientGdk::updateSpellingUIWithGrammarString):
  26233. (WebCore::EditorClientGdk::updateSpellingUIWithMisspelledWord):
  26234. (WebCore::EditorClientGdk::showSpellingUI):
  26235. (WebCore::EditorClientGdk::spellingUIIsShowing):
  26236. (WebCore::EditorClientGdk::getGuessesForWord):
  26237. * platform/gdk/FrameGdk.cpp:
  26238. (WebCore::Frame::dashboardRegionsChanged):
  26239. * platform/gdk/PlatformScrollBarGdk.cpp:
  26240. (PlatformScrollbar::paint):
  26241. (PlatformScrollbar::updateThumbPosition):
  26242. (PlatformScrollbar::updateThumbProportion):
  26243. * platform/gdk/TemporaryLinkStubs.cpp:
  26244. (Widget::setEnabled):
  26245. (Widget::isEnabled):
  26246. (Widget::removeFromParent):
  26247. (Widget::paint):
  26248. (Widget::setIsSelected):
  26249. (Widget::invalidate):
  26250. (Widget::invalidateRect):
  26251. 2007-05-27 Alp Toker <alp.toker@collabora.co.uk>
  26252. Reviewed by Sam and Oliver.
  26253. Implement PathCairo. This patch is based on changes in Mike Emmel's
  26254. WebKit fork with some additional clean-ups and updates.
  26255. * platform/graphics/Path.h:
  26256. * platform/graphics/cairo/CairoPath.h: Added.
  26257. (CairoPath::CairoPath):
  26258. (CairoPath::~CairoPath):
  26259. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  26260. (WebCore::GraphicsContext::clip):
  26261. * platform/graphics/cairo/PathCairo.cpp:
  26262. (WebCore::Path::Path):
  26263. (WebCore::Path::~Path):
  26264. (WebCore::Path::operator=):
  26265. (WebCore::Path::clear):
  26266. (WebCore::Path::isEmpty):
  26267. (WebCore::Path::translate):
  26268. (WebCore::Path::moveTo):
  26269. (WebCore::Path::addLineTo):
  26270. (WebCore::Path::addRect):
  26271. (WebCore::Path::addQuadCurveTo):
  26272. (WebCore::Path::addBezierCurveTo):
  26273. (WebCore::Path::addArc):
  26274. (WebCore::Path::addArcTo):
  26275. (WebCore::Path::addEllipse):
  26276. (WebCore::Path::closeSubpath):
  26277. (WebCore::Path::boundingRect):
  26278. (WebCore::Path::contains):
  26279. (WebCore::Path::apply):
  26280. (WebCore::Path::transform):
  26281. (WebCore::Path::debugString):
  26282. 2007-05-27 Kevin Ollivier <kevino@theolliviers.com>
  26283. Reviewed by Sam Weinig.
  26284. Consolidate all notImplemented() macro definitions into
  26285. one header file for all platforms.
  26286. * loader/gdk/DocumentLoaderGdk.cpp:
  26287. (WebCore::DocumentLoader::getResponseModifiedHeader):
  26288. * loader/gdk/FrameLoaderClientGdk.cpp:
  26289. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveAuthenticationChallenge):
  26290. (WebCore::FrameLoaderClientGdk::dispatchDidCancelAuthenticationChallenge):
  26291. (WebCore::FrameLoaderClientGdk::dispatchWillSendRequest):
  26292. (WebCore::FrameLoaderClientGdk::assignIdentifierToInitialRequest):
  26293. (WebCore::FrameLoaderClientGdk::createPlugin):
  26294. (WebCore::FrameLoaderClientGdk::createFrame):
  26295. (WebCore::FrameLoaderClientGdk::redirectDataToPlugin):
  26296. (WebCore::FrameLoaderClientGdk::createJavaAppletWidget):
  26297. (WebCore::FrameLoaderClientGdk::objectContentType):
  26298. (WebCore::FrameLoaderClientGdk::overrideMediaType):
  26299. (WebCore::FrameLoaderClientGdk::windowObjectCleared):
  26300. (WebCore::FrameLoaderClientGdk::hasWebView):
  26301. (WebCore::FrameLoaderClientGdk::hasFrameView):
  26302. (WebCore::FrameLoaderClientGdk::frameLoadCompleted):
  26303. (WebCore::FrameLoaderClientGdk::saveViewStateToItem):
  26304. (WebCore::FrameLoaderClientGdk::restoreViewState):
  26305. (WebCore::FrameLoaderClientGdk::privateBrowsingEnabled):
  26306. (WebCore::FrameLoaderClientGdk::makeDocumentView):
  26307. (WebCore::FrameLoaderClientGdk::makeRepresentation):
  26308. (WebCore::FrameLoaderClientGdk::forceLayout):
  26309. (WebCore::FrameLoaderClientGdk::forceLayoutForNonHTML):
  26310. (WebCore::FrameLoaderClientGdk::setCopiesOnScroll):
  26311. (WebCore::FrameLoaderClientGdk::detachedFromParent1):
  26312. (WebCore::FrameLoaderClientGdk::detachedFromParent2):
  26313. (WebCore::FrameLoaderClientGdk::detachedFromParent3):
  26314. (WebCore::FrameLoaderClientGdk::detachedFromParent4):
  26315. (WebCore::FrameLoaderClientGdk::loadedFromCachedPage):
  26316. (WebCore::FrameLoaderClientGdk::dispatchDidHandleOnloadEvents):
  26317. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveServerRedirectForProvisionalLoad):
  26318. (WebCore::FrameLoaderClientGdk::dispatchDidCancelClientRedirect):
  26319. (WebCore::FrameLoaderClientGdk::dispatchWillPerformClientRedirect):
  26320. (WebCore::FrameLoaderClientGdk::dispatchDidChangeLocationWithinPage):
  26321. (WebCore::FrameLoaderClientGdk::dispatchWillClose):
  26322. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveIcon):
  26323. (WebCore::FrameLoaderClientGdk::dispatchDidStartProvisionalLoad):
  26324. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveTitle):
  26325. (WebCore::FrameLoaderClientGdk::dispatchDidCommitLoad):
  26326. (WebCore::FrameLoaderClientGdk::dispatchDidFinishDocumentLoad):
  26327. (WebCore::FrameLoaderClientGdk::dispatchDidFirstLayout):
  26328. (WebCore::FrameLoaderClientGdk::dispatchShow):
  26329. (WebCore::FrameLoaderClientGdk::cancelPolicyCheck):
  26330. (WebCore::FrameLoaderClientGdk::dispatchDidLoadMainResource):
  26331. (WebCore::FrameLoaderClientGdk::revertToProvisionalState):
  26332. (WebCore::FrameLoaderClientGdk::clearUnarchivingState):
  26333. (WebCore::FrameLoaderClientGdk::willChangeTitle):
  26334. (WebCore::FrameLoaderClientGdk::finishedLoading):
  26335. (WebCore::FrameLoaderClientGdk::finalSetupForReplace):
  26336. (WebCore::FrameLoaderClientGdk::setDefersLoading):
  26337. (WebCore::FrameLoaderClientGdk::isArchiveLoadPending):
  26338. (WebCore::FrameLoaderClientGdk::cancelPendingArchiveLoad):
  26339. (WebCore::FrameLoaderClientGdk::clearArchivedResources):
  26340. (WebCore::FrameLoaderClientGdk::canHandleRequest):
  26341. (WebCore::FrameLoaderClientGdk::canShowMIMEType):
  26342. (WebCore::FrameLoaderClientGdk::representationExistsForURLScheme):
  26343. (WebCore::FrameLoaderClientGdk::generatedMIMETypeForURLScheme):
  26344. (WebCore::FrameLoaderClientGdk::provisionalLoadStarted):
  26345. (WebCore::FrameLoaderClientGdk::didFinishLoad):
  26346. (WebCore::FrameLoaderClientGdk::prepareForDataSourceReplacement):
  26347. (WebCore::FrameLoaderClientGdk::setTitle):
  26348. (WebCore::FrameLoaderClientGdk::setDocumentViewFromCachedPage):
  26349. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveContentLength):
  26350. (WebCore::FrameLoaderClientGdk::dispatchDidFinishLoading):
  26351. (WebCore::FrameLoaderClientGdk::dispatchDidFailLoading):
  26352. (WebCore::FrameLoaderClientGdk::dispatchDidLoadResourceFromMemoryCache):
  26353. (WebCore::FrameLoaderClientGdk::dispatchDidFailProvisionalLoad):
  26354. (WebCore::FrameLoaderClientGdk::dispatchDidFailLoad):
  26355. (WebCore::FrameLoaderClientGdk::download):
  26356. (WebCore::FrameLoaderClientGdk::cancelledError):
  26357. (WebCore::FrameLoaderClientGdk::blockedError):
  26358. (WebCore::FrameLoaderClientGdk::cannotShowURLError):
  26359. (WebCore::FrameLoaderClientGdk::interruptForPolicyChangeError):
  26360. (WebCore::FrameLoaderClientGdk::cannotShowMIMETypeError):
  26361. (WebCore::FrameLoaderClientGdk::fileDoesNotExistError):
  26362. (WebCore::FrameLoaderClientGdk::shouldFallBack):
  26363. (WebCore::FrameLoaderClientGdk::willUseArchive):
  26364. (WebCore::FrameLoaderClientGdk::saveDocumentViewToCachedPage):
  26365. (WebCore::FrameLoaderClientGdk::canCachePage):
  26366. (WebCore::FrameLoaderClientGdk::dispatchCreatePage):
  26367. (WebCore::FrameLoaderClientGdk::dispatchUnableToImplementPolicy):
  26368. (WebCore::FrameLoaderClientGdk::setMainDocumentError):
  26369. (WebCore::FrameLoaderClientGdk::startDownload):
  26370. (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForStandardLoad):
  26371. (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForReload):
  26372. * loader/qt/DocumentLoaderQt.cpp:
  26373. * page/gdk/ContextMenuClientGdk.cpp:
  26374. (WebCore::ContextMenuClientGdk::contextMenuDestroyed):
  26375. (WebCore::ContextMenuClientGdk::getCustomMenuFromDefaultItems):
  26376. (WebCore::ContextMenuClientGdk::contextMenuItemSelected):
  26377. (WebCore::ContextMenuClientGdk::downloadURL):
  26378. (WebCore::ContextMenuClientGdk::copyImageToClipboard):
  26379. (WebCore::ContextMenuClientGdk::searchWithGoogle):
  26380. (WebCore::ContextMenuClientGdk::lookUpInDictionary):
  26381. (WebCore::ContextMenuClientGdk::speak):
  26382. (WebCore::ContextMenuClientGdk::stopSpeaking):
  26383. * page/gdk/EventHandlerGdk.cpp:
  26384. (WebCore::EventHandler::passMouseDownEventToWidget):
  26385. (WebCore::EventHandler::eventActivatedView):
  26386. (WebCore::EventHandler::passSubframeEventToSubframe):
  26387. (WebCore::EventHandler::passWheelEventToWidget):
  26388. (WebCore::EventHandler::createDraggingClipboard):
  26389. * page/qt/EventHandlerQt.cpp:
  26390. * page/qt/FrameQt.cpp:
  26391. * platform/NotImplemented.h: Added.
  26392. * platform/gdk/CursorGdk.cpp:
  26393. (WebCore::Cursor::Cursor):
  26394. * platform/gdk/EditorClientGdk.cpp:
  26395. (WebCore::EditorClientGdk::shouldDeleteRange):
  26396. (WebCore::EditorClientGdk::isContinuousSpellCheckingEnabled):
  26397. (WebCore::EditorClientGdk::isGrammarCheckingEnabled):
  26398. (WebCore::EditorClientGdk::spellCheckerDocumentTag):
  26399. (WebCore::EditorClientGdk::shouldBeginEditing):
  26400. (WebCore::EditorClientGdk::shouldEndEditing):
  26401. (WebCore::EditorClientGdk::shouldInsertText):
  26402. (WebCore::EditorClientGdk::shouldChangeSelectedRange):
  26403. (WebCore::EditorClientGdk::shouldApplyStyle):
  26404. (WebCore::EditorClientGdk::didBeginEditing):
  26405. (WebCore::EditorClientGdk::respondToChangedContents):
  26406. (WebCore::EditorClientGdk::respondToChangedSelection):
  26407. (WebCore::EditorClientGdk::didEndEditing):
  26408. (WebCore::EditorClientGdk::didWriteSelectionToPasteboard):
  26409. (WebCore::EditorClientGdk::didSetSelectionTypesForPasteboard):
  26410. (WebCore::EditorClientGdk::selectWordBeforeMenuEvent):
  26411. (WebCore::EditorClientGdk::isEditable):
  26412. (WebCore::EditorClientGdk::registerCommandForUndo):
  26413. (WebCore::EditorClientGdk::registerCommandForRedo):
  26414. (WebCore::EditorClientGdk::clearUndoRedoOperations):
  26415. (WebCore::EditorClientGdk::canUndo):
  26416. (WebCore::EditorClientGdk::canRedo):
  26417. (WebCore::EditorClientGdk::undo):
  26418. (WebCore::EditorClientGdk::redo):
  26419. (WebCore::EditorClientGdk::shouldInsertNode):
  26420. (WebCore::EditorClientGdk::pageDestroyed):
  26421. (WebCore::EditorClientGdk::smartInsertDeleteEnabled):
  26422. (WebCore::EditorClientGdk::toggleContinuousSpellChecking):
  26423. (WebCore::EditorClientGdk::handleInputMethodKeypress):
  26424. (WebCore::EditorClientGdk::textFieldDidBeginEditing):
  26425. (WebCore::EditorClientGdk::textFieldDidEndEditing):
  26426. (WebCore::EditorClientGdk::textDidChangeInTextField):
  26427. (WebCore::EditorClientGdk::doTextFieldCommandFromEvent):
  26428. (WebCore::EditorClientGdk::textWillBeDeletedInTextField):
  26429. (WebCore::EditorClientGdk::textDidChangeInTextArea):
  26430. * platform/gdk/FrameGdk.cpp:
  26431. (WebCore::Frame::print):
  26432. (WebCore::Frame::issueTransposeCommand):
  26433. (WebCore::Frame::cleanupPlatformScriptObjects):
  26434. (WebCore::Frame::dragImageForSelection):
  26435. * platform/gdk/NotImplementedGdk.h: Removed.
  26436. * platform/gdk/PopupMenuGdk.cpp:
  26437. (WebCore::PopupMenu::PopupMenu):
  26438. (WebCore::PopupMenu::~PopupMenu):
  26439. (WebCore::PopupMenu::show):
  26440. (WebCore::PopupMenu::hide):
  26441. (WebCore::PopupMenu::updateFromElement):
  26442. * platform/gdk/RenderThemeGdk.cpp:
  26443. (WebCore::RenderThemeGdk::setCheckboxSize):
  26444. (WebCore::RenderThemeGdk::setRadioSize):
  26445. (WebCore::RenderThemeGdk::adjustTextFieldStyle):
  26446. * platform/gdk/ScreenGdk.cpp:
  26447. (WebCore::screenDepthPerComponent):
  26448. (WebCore::screenIsMonochrome):
  26449. (WebCore::screenRect):
  26450. (WebCore::screenAvailableRect):
  26451. * platform/gdk/ScrollViewGdk.cpp:
  26452. (WebCore::ScrollView::update):
  26453. (WebCore::ScrollView::addChild):
  26454. (WebCore::ScrollView::removeChild):
  26455. (WebCore::ScrollView::scrollRectIntoViewRecursively):
  26456. (WebCore::ScrollView::inWindow):
  26457. (WebCore::ScrollView::wheelEvent):
  26458. (WebCore::ScrollView::updateScrollbars):
  26459. (WebCore::ScrollView::updateScrollInfo):
  26460. (WebCore::ScrollView::windowToContents):
  26461. (WebCore::ScrollView::contentsToWindow):
  26462. (WebCore::ScrollView::scrollbarUnderMouse):
  26463. * platform/gdk/TemporaryLinkStubs.cpp:
  26464. (FrameView::updateBorder):
  26465. (WebCore::findNextWordFromIndex):
  26466. (WebCore::currentTextBreakLocaleID):
  26467. (ChromeClientGdk::chromeDestroyed):
  26468. (ChromeClientGdk::windowRect):
  26469. (ChromeClientGdk::setWindowRect):
  26470. (ChromeClientGdk::pageRect):
  26471. (ChromeClientGdk::scaleFactor):
  26472. (ChromeClientGdk::focus):
  26473. (ChromeClientGdk::unfocus):
  26474. (ChromeClientGdk::createWindow):
  26475. (ChromeClientGdk::createModalDialog):
  26476. (ChromeClientGdk::show):
  26477. (ChromeClientGdk::canRunModal):
  26478. (ChromeClientGdk::runModal):
  26479. (ChromeClientGdk::setToolbarsVisible):
  26480. (ChromeClientGdk::toolbarsVisible):
  26481. (ChromeClientGdk::setStatusbarVisible):
  26482. (ChromeClientGdk::statusbarVisible):
  26483. (ChromeClientGdk::setScrollbarsVisible):
  26484. (ChromeClientGdk::scrollbarsVisible):
  26485. (ChromeClientGdk::setMenubarVisible):
  26486. (ChromeClientGdk::menubarVisible):
  26487. (ChromeClientGdk::setResizable):
  26488. (ChromeClientGdk::closeWindowSoon):
  26489. (ChromeClientGdk::canTakeFocus):
  26490. (ChromeClientGdk::takeFocus):
  26491. (ChromeClientGdk::canRunBeforeUnloadConfirmPanel):
  26492. (ChromeClientGdk::addMessageToConsole):
  26493. (ChromeClientGdk::runBeforeUnloadConfirmPanel):
  26494. (ChromeClientGdk::runJavaScriptAlert):
  26495. (ChromeClientGdk::runJavaScriptConfirm):
  26496. (ChromeClientGdk::runJavaScriptPrompt):
  26497. (ChromeClientGdk::setStatusbarText):
  26498. (ChromeClientGdk::shouldInterruptJavaScript):
  26499. (ChromeClientGdk::tabsToLinks):
  26500. (ChromeClientGdk::windowResizerRect):
  26501. (ChromeClientGdk::addToDirtyRegion):
  26502. (ChromeClientGdk::scrollBackingStore):
  26503. (ChromeClientGdk::updateBackingStore):
  26504. (PlugInInfoStore::createPluginInfoForPluginAtIndex):
  26505. (PlugInInfoStore::pluginCount):
  26506. (WebCore::PlugInInfoStore::supportsMIMEType):
  26507. (WebCore::refreshPlugins):
  26508. (SearchPopupMenu::saveRecentSearches):
  26509. (SearchPopupMenu::loadRecentSearches):
  26510. (SearchPopupMenu::SearchPopupMenu):
  26511. (SearchPopupMenu::enabled):
  26512. (FileChooser::FileChooser):
  26513. (FileChooser::~FileChooser):
  26514. (FileChooser::openFileChooser):
  26515. (FileChooser::basenameForWidth):
  26516. (ResourceHandle::willLoadFromCache):
  26517. (ResourceHandle::loadsBlocked):
  26518. (ResourceHandle::loadResourceSynchronously):
  26519. (Icon::Icon):
  26520. (Icon::~Icon):
  26521. (Icon::newIconForFile):
  26522. (Icon::paint):
  26523. (Font::selectionRectForComplexText):
  26524. (Font::drawComplexText):
  26525. (Font::floatWidthForComplexText):
  26526. (Font::offsetForPositionForComplexText):
  26527. (CachedPage::close):
  26528. (Editor::newGeneralClipboard):
  26529. (Pasteboard::generalPasteboard):
  26530. (Pasteboard::writeSelection):
  26531. (Pasteboard::writeURL):
  26532. (Pasteboard::writeImage):
  26533. (Pasteboard::clear):
  26534. (Pasteboard::canSmartReplace):
  26535. (Pasteboard::documentFragment):
  26536. (Pasteboard::plainText):
  26537. (Pasteboard::Pasteboard):
  26538. (Pasteboard::~Pasteboard):
  26539. (ContextMenu::ContextMenu):
  26540. (ContextMenu::~ContextMenu):
  26541. (ContextMenu::appendItem):
  26542. (ContextMenuItem::ContextMenuItem):
  26543. (ContextMenuItem::~ContextMenuItem):
  26544. (ContextMenuItem::releasePlatformDescription):
  26545. (ContextMenuItem::type):
  26546. (ContextMenuItem::setType):
  26547. (ContextMenuItem::action):
  26548. (ContextMenuItem::setAction):
  26549. (ContextMenuItem::title):
  26550. (ContextMenuItem::setTitle):
  26551. (ContextMenuItem::platformSubMenu):
  26552. (ContextMenuItem::setSubMenu):
  26553. (ContextMenuItem::setChecked):
  26554. (ContextMenuItem::setEnabled):
  26555. (WebCore::supportedKeySizes):
  26556. (WebCore::systemBeep):
  26557. (WebCore::userIdleTime):
  26558. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  26559. * platform/graphics/cairo/ImageBufferCairo.cpp:
  26560. * platform/graphics/cairo/PathCairo.cpp:
  26561. * platform/graphics/gdk/ImageGdk.cpp:
  26562. * platform/graphics/qt/GraphicsContextQt.cpp:
  26563. * platform/graphics/qt/IconQt.cpp:
  26564. * platform/graphics/qt/ImageQt.cpp:
  26565. * platform/network/gdk/ResourceHandleCurl.cpp:
  26566. (WebCore::ResourceHandle::setDefersLoading):
  26567. * platform/network/gdk/ResourceHandleManager.cpp:
  26568. (WebCore::ResourceHandleManager::setupPUT):
  26569. (WebCore::ResourceHandleManager::setupPOST):
  26570. * platform/network/qt/ResourceHandleQt.cpp:
  26571. * platform/qt/ClipboardQt.cpp:
  26572. * platform/qt/CursorQt.cpp:
  26573. * platform/qt/DragDataQt.cpp:
  26574. * platform/qt/FileChooserQt.cpp:
  26575. * platform/qt/MimeTypeRegistryQt.cpp:
  26576. * platform/qt/PasteboardQt.cpp:
  26577. * platform/qt/PlatformScrollBarQt.cpp:
  26578. * platform/qt/PopupMenuQt.cpp:
  26579. * platform/qt/ScrollViewQt.cpp:
  26580. * platform/qt/TemporaryLinkStubs.cpp:
  26581. * platform/qt/TextBoundaries.cpp:
  26582. * platform/qt/WidgetQt.cpp:
  26583. * platform/win/FontWin.cpp:
  26584. * platform/win/TemporaryLinkStubs.cpp:
  26585. * platform/wx/ClipboardWx.cpp:
  26586. * platform/wx/FontWx.cpp:
  26587. * platform/wx/ScrollViewWx.cpp:
  26588. * platform/wx/SharedTimerWx.cpp:
  26589. * platform/wx/TemporaryLinkStubs.cpp:
  26590. 2007-05-27 Rob Buis <buis@kde.org>
  26591. Reviewed by Oliver.
  26592. http://bugs.webkit.org/show_bug.cgi?id=13828
  26593. x/y values on rootmost <svg> elements should be ignored
  26594. Make sure that root-most <svg> elements do not take into account x/y.
  26595. * ksvg2/svg/SVGSVGElement.cpp:
  26596. (WebCore::SVGSVGElement::viewport):
  26597. (WebCore::SVGSVGElement::getCTM):
  26598. (WebCore::SVGSVGElement::getScreenCTM):
  26599. * rendering/RenderSVGContainer.cpp:
  26600. (WebCore::RenderSVGContainer::calcViewport):
  26601. 2007-05-26 David Hyatt <hyatt@apple.com>
  26602. Fix for radar bug 5219562, PNG isn't displayed on SVG test suite.
  26603. Improve <object> error handling so that it recovers properly when
  26604. <td> is used inside it.
  26605. Reviewed by olliej
  26606. Added fast/invalid/td-inside-object.html
  26607. * html/HTMLObjectElement.h:
  26608. (WebCore::HTMLObjectElement::tagPriority):
  26609. * html/HTMLParser.cpp:
  26610. (WebCore::HTMLParser::handleError):
  26611. * html/HTMLParserErrorCodes.cpp:
  26612. (WebCore::htmlParserErrorMessageTemplate):
  26613. * html/HTMLParserErrorCodes.h:
  26614. 2007-05-26 David Hyatt <hyatt@apple.com>
  26615. Don't compare the "isset" variables in background layers, since they
  26616. lead us to turn off the Aqua look incorrectly, even when the background
  26617. matches the default.
  26618. Reviewed by olliej
  26619. * rendering/RenderStyle.cpp:
  26620. (WebCore::BackgroundLayer::operator==):
  26621. 2007-05-26 David Hyatt <hyatt@apple.com>
  26622. Improve the </p> -> <p></p> error message to not spew two errors.
  26623. Fix a bug where errors reported inside document.write didn't get
  26624. reported as such because of a mistake in the notation of SegmentedString.
  26625. Reviewed by aroben
  26626. * html/HTMLParser.cpp:
  26627. (WebCore::HTMLParser::processCloseTag):
  26628. * platform/SegmentedString.h:
  26629. (WebCore::SegmentedSubstring::clear):
  26630. 2007-05-26 David Hyatt <hyatt@apple.com>
  26631. Fix for bug 13887, percentage height block not sized correctly inside
  26632. positioned percentage height containing block.
  26633. Reviewed by mitz
  26634. fast/block/positioning/complex-percentage-height.html
  26635. * rendering/RenderBox.cpp:
  26636. (WebCore::RenderBox::calcPercentageHeight):
  26637. 2007-05-26 Mitz Pettel <mitz@webkit.org>
  26638. Reviewed by Oliver Hunt.
  26639. - finish fixing http://bugs.webkit.org/show_bug.cgi?id=13871
  26640. Box shadow should not apply to Aqua-themed controls
  26641. Covered by fast/forms/box-shadow-override.html
  26642. I forgot to include adjustSliderThumbStyle in the previous patch and the
  26643. test didn't detect it because of a bug introduced in r21739.
  26644. * rendering/RenderThemeMac.h:
  26645. * rendering/RenderThemeMac.mm:
  26646. (WebCore::RenderThemeMac::adjustSliderThumbStyle):
  26647. 2007-05-26 Mitz Pettel <mitz@webkit.org>
  26648. Reviewed by Hyatt.
  26649. - fix http://bugs.webkit.org/show_bug.cgi?id=13876
  26650. Box-Shadow disappears if shadow doesn't fit in the window size
  26651. Tests: fast/repaint/box-shadow-h.html
  26652. fast/repaint/box-shadow-v.html
  26653. * rendering/RenderTable.cpp:
  26654. (WebCore::RenderTable::layout):
  26655. 2007-05-26 Alexey Proskuryakov <ap@webkit.org>
  26656. Reviewed by Darin.
  26657. http://bugs.webkit.org/show_bug.cgi?id=13605
  26658. REGRESSION: Browser crashes when switching Kotoeri input modes
  26659. The problem could no longer be reproduced with Kotoeri thanks to
  26660. a fix in <http://trac.webkit.org/projects/webkit/changeset/21728>,
  26661. but we still need to protect from invalid ranges passed from
  26662. input methods.
  26663. Test: editing/input/replace-invalid-range.html
  26664. * page/mac/WebCoreFrameBridge.mm:
  26665. (-[WebCoreFrameBridge selectNSRange:]): Added a null check.
  26666. 2007-05-26 Darin Adler <darin@apple.com>
  26667. * platform/network/mac/ResourceResponseMac.mm:
  26668. (WebCore::ResourceResponse::doUpdateResourceResponse):
  26669. Alexey pointed out that I was wrong about object lifetime, so
  26670. rolling this change out.
  26671. 2007-05-26 Darin Adler <darin@apple.com>
  26672. Reviewed by Anders.
  26673. * platform/network/mac/ResourceResponseMac.mm:
  26674. (WebCore::ResourceResponse::doUpdateResourceResponse):
  26675. Fixed code where a temporary String is used after destroyed.
  26676. 2007-05-26 Mitz Pettel <mitz@webkit.org>
  26677. Reviewed by Darin.
  26678. - http://bugs.webkit.org/show_bug.cgi?id=13842
  26679. Simplify Color::light() and Color::dark()
  26680. Not testable.
  26681. * platform/graphics/Color.cpp:
  26682. (WebCore::Color::light):
  26683. (WebCore::Color::dark):
  26684. 2007-05-26 Mitz Pettel <mitz@webkit.org>
  26685. Reviewed by Darin.
  26686. - fix http://bugs.webkit.org/show_bug.cgi?id=13870
  26687. RenderFrameSet should only allow frame and frameset children
  26688. Covered by fast/frames/inline-object-inside-frameset.html
  26689. * rendering/RenderFrame.h:
  26690. (WebCore::RenderFrame::isFrame): Added.
  26691. * rendering/RenderFrameSet.cpp:
  26692. (WebCore::RenderFrameSet::paint): Removed check for inline objects that is
  26693. no longer needed.
  26694. (WebCore::RenderFrameSet::isChildAllowed): Added. Allows the child only
  26695. if it is a frame or another frameset.
  26696. * rendering/RenderFrameSet.h:
  26697. * rendering/RenderObject.h:
  26698. (WebCore::RenderObject::isFrame): Added.
  26699. 2007-05-26 Mitz Pettel <mitz@webkit.org>
  26700. Reviewed by Darin.
  26701. - http://bugs.webkit.org/show_bug.cgi?id=13871
  26702. Box shadow should not apply to Aqua-themed controls
  26703. Test: fast/forms/box-shadow-override.html
  26704. * rendering/RenderTheme.cpp:
  26705. (WebCore::RenderTheme::adjustCheckboxStyle):
  26706. (WebCore::RenderTheme::adjustRadioStyle):
  26707. * rendering/RenderThemeMac.h:
  26708. * rendering/RenderThemeMac.mm:
  26709. (WebCore::RenderThemeMac::adjustButtonStyle):
  26710. (WebCore::RenderThemeMac::adjustMenuListStyle):
  26711. (WebCore::RenderThemeMac::adjustSliderTrackStyle):
  26712. (WebCore::RenderThemeMac::adjustSearchFieldStyle):
  26713. (WebCore::RenderThemeMac::adjustSearchFieldCancelButtonStyle):
  26714. (WebCore::RenderThemeMac::adjustSearchFieldDecorationStyle):
  26715. (WebCore::RenderThemeMac::adjustSearchFieldResultsDecorationStyle):
  26716. (WebCore::RenderThemeMac::adjustSearchFieldResultsButtonStyle):
  26717. 2007-05-26 Holger Freyther <zecke@selfish.org>
  26718. Reviewed by Anders.
  26719. * platform/gdk/FrameGdk.cpp: Catch up to make it compile
  26720. (WebCore::FrameGdk::FrameGdk): The Settings is now owned by the Page
  26721. 2007-05-25 Sam Weinig <sam@webkit.org>
  26722. Reviewed by Oliver of the Hunt.
  26723. Fixed <rdar://problem/5230247> at least 43 xhtml tests fail in
  26724. Leopard because they are being interpreted as html
  26725. Adds a work around for <rdar://problem/5230154> which explicitly
  26726. sets local .xhtml files to have the MIME type application/xhtml+xml.
  26727. * platform/network/mac/ResourceResponseMac.mm:
  26728. (WebCore::ResourceResponse::doUpdateResourceResponse):
  26729. 2007-05-25 Geoffrey Garen <ggaren@apple.com>
  26730. Reviewed by Darin Adler.
  26731. Fixed <rdar://problem/5055182> The page cache has no global cap.
  26732. Beefed up the PageCache class to track which HistoryItems are
  26733. cached, and decide how to evict old HistoryItems as new ones are
  26734. added.
  26735. * history/BackForwardList.cpp: Removed support for managing the page cache
  26736. through the BackForwardList since this is deprecated in Mac's
  26737. WebBackForwardList, and doesn't exist on other platforms.
  26738. Added a Page* back pointer so that Mac WebBackForwardList can still support
  26739. its deprecated API, using the new hotness. This isn't a big burden, since
  26740. Page is responsible for calling BackForwardList::close upon destruction,
  26741. anyway.
  26742. * history/HistoryItem.cpp: Replaced CachedPage* with boolean that tells
  26743. you whether you're in the page cache. This prevents us from having more
  26744. than one persistent repository for cached pages.
  26745. * history/PageCache.cpp: If you're playing along at home, this code is
  26746. the reason for the patch.
  26747. * loader/FrameLoader.cpp: If you're playing along at home, the minuses in
  26748. this file are the reason for the patch.
  26749. Replaced call to FrameLoaderClient::loadedFromCachedPage with its one-line
  26750. implementation because WebCore calling itself through WebKit is uncivilized.
  26751. * page/Settings.cpp: Added support for removing a Page's HistoryItems from
  26752. the page cache.
  26753. 2007-05-25 Mitz Pettel <mitz@webkit.org>
  26754. Reviewed by Darin.
  26755. - fix http://bugs.webkit.org/show_bug.cgi?id=13869
  26756. Many leaks seen on buildbot after r21735
  26757. - fix another regression from r21739: ::-webkit-slider-thumb style not
  26758. applied.
  26759. Test: fast/forms/slider-thumb-stylability.html
  26760. * rendering/RenderSlider.cpp:
  26761. (WebCore::RenderSlider::setStyle):
  26762. (WebCore::RenderSlider::createThumbStyle):
  26763. 2007-05-25 Justin Garcia <justin.garcia@apple.com>
  26764. Reviewed by Harrison.
  26765. <rdar://problem/5228141>
  26766. REGRESSION: Can't apply style to selection that ends after an image
  26767. * editing/ApplyStyleCommand.cpp:
  26768. (WebCore::ApplyStyleCommand::applyInlineStyle):
  26769. Use range compliant equivalents when creating the Range
  26770. used to compute pastEndNode(), otherwise Range's constructor
  26771. ASSERTs and pastEndNode() returns null. Added a testcase.
  26772. If the incoming Range is collapsed at [br, 0], callers want
  26773. the style to be applied to the br, so expand the Range to include
  26774. it. We got away without expanding before because pastEndNode
  26775. of a Range from [br, 0] to [br, 0] is the node after the br.
  26776. Using range compliant equivalents changed that. There's already
  26777. test coverage for this change.
  26778. Changed while loop termination for finding the end of a run
  26779. so that we don't process pastEnd. end.node() may now be
  26780. non-atomic and we'd blow past it. There's already test
  26781. coverage for this change.
  26782. 2007-05-25 Beth Dakin <bdakin@apple.com>
  26783. Rubber stamped by Hyatt
  26784. Adding an ASSERT for good measure.
  26785. * page/FrameView.cpp:
  26786. (WebCore::FrameView::layout):
  26787. 2007-05-25 Kevin McCullough <kmccullough@apple.com>
  26788. Reviewed by Geoff.
  26789. - <rdar://problem/5183523> REGRESSION: Excel: Worksheet tabs in spreadsheet saved as web page don't work
  26790. - Change load to check the URL as well as the referrer since it is possilbe to have a referrer which limits a load even thought the URL would allow it. There is a bug about how we need to re-evaluate the whole load architecture: <rdar://problem/5227992> Rethink canLoad() to have a consistent and comprehensive architecture.
  26791. * loader/FrameLoader.cpp:
  26792. (WebCore::FrameLoader::loadSubframe):
  26793. (WebCore::FrameLoader::load):
  26794. (WebCore::FrameLoader::canLoad):
  26795. * loader/FrameLoader.h:
  26796. 2007-05-25 Anders Carlsson <andersca@apple.com>
  26797. Reviewed by Brady.
  26798. <rdar://problem/5209536>
  26799. http://bugs.webkit.org/show_bug.cgi?id=13757
  26800. REGRESSION: Leaks seen on buildbot after r21497.
  26801. Fix multipart data loading so it works like Tiger Safari. When one part of a multipart connection has been loaded,
  26802. move the subresource loader from the subresource loaders set and into a special multipart subresource loader set. This set
  26803. is not considered when asking a document loader if it's currently loading.
  26804. * loader/DocumentLoader.cpp:
  26805. (WebCore::DocumentLoader::stopLoading):
  26806. Always stop the multipart subresource loaders here.
  26807. (WebCore::DocumentLoader::subresourceLoaderFinishedLoadingOnePart):
  26808. New function that moves the loader from m_subresourceLoaders to m_multipartSubresourceLoaders and updates the document loader's state.
  26809. * loader/ProgressTracker.cpp:
  26810. (WebCore::ProgressTracker::incrementProgress):
  26811. If a progress item already exists, reuse it. This can happen in some rare circumstances when dealing with multipart data.
  26812. * loader/SubresourceLoader.cpp:
  26813. (WebCore::SubresourceLoader::didReceiveResponse):
  26814. Call subresourceLoaderFinishedLoadingOnePart if the response is multipart.
  26815. 2007-05-25 Patti Hoa <patti@apple.com>
  26816. Reviewed by Tim Hatcher.
  26817. <rdar://problem/4918397> Exception raise inspecting note contents in the background
  26818. * bridge/mac/WebCoreAXObject.mm:
  26819. (-[WebCoreAXObject accessibilityDescription]):
  26820. Only allow asking the attachmentView for description if attachmentView supports this description attribute
  26821. 2007-05-25 Beth Dakin <bdakin@apple.com>
  26822. Reviewed by Oliver and Hyatt.
  26823. Fix for <rdar://problem/5228363> REGRESSION: In Mail, attempting to
  26824. create a To Do results in a crash
  26825. This regressed with r21635. Now that -boundingBox updates layout if
  26826. it is needed, we infinitely recurse when Mail draws a custom
  26827. highlight. The fix is to put a guard around laying out the render
  26828. tree.
  26829. * page/FrameView.cpp:
  26830. (WebCore::FrameViewPrivate::reset):
  26831. (WebCore::FrameView::layout):
  26832. 2007-05-25 Patti Hoa <patti@apple.com>
  26833. Reviewed by John Sullivan.
  26834. <rdar://problem/5221986> selection in web areas doesn't seem to be working for text navigation
  26835. * bridge/mac/WebCoreAXObject.mm:
  26836. (-[WebCoreAXObject accessibilityIsAttributeSettable:]):
  26837. Fixed up incorrect string comparison for AXSelectedTextMarkerRange ax attribute so
  26838. this attribute can actually announce its settability.
  26839. 2007-05-25 Darin Adler <darin@apple.com>
  26840. Reviewed by Alice.
  26841. - fix <rdar://problem/5228048> REGRESSION: In a new Mail message, the caret isn't
  26842. immediately inserted when tabbing into or clicking in the message body
  26843. This latent problem was uncovered by <http://trac.webkit.org/projects/webkit/changeset/21476>,
  26844. which removed some code that did extra work whenever setCaretVisible made the caret visible.
  26845. * page/Frame.cpp: (WebCore::Frame::selectionLayoutChanged): Call invalidateCaretRect
  26846. when turning the caret on. All other call sites that touched m_caretPaint were doing
  26847. this, but this was not.
  26848. 2007-05-25 Darin Adler <darin@apple.com>
  26849. Reviewed by Harrison.
  26850. * DerivedSources.make: Tweaked spelling.
  26851. 2007-05-25 Mitz Pettel <mitz@webkit.org>
  26852. Reviewed by Darin.
  26853. - fix http://bugs.webkit.org/show_bug.cgi?id=13872
  26854. REGRESSION: An empty search field can have a cancel button
  26855. Test: fast/forms/search-cancel-button-style-sharing.html
  26856. * rendering/RenderTextControl.cpp:
  26857. (WebCore::RenderTextControl::createCancelButtonStyle): Prevented sharing of
  26858. the cancel button style between search fields that share style, because
  26859. each search field mutates the style to show and hide the cancel button.
  26860. 2007-05-25 David Harrison <harrison@apple.com>
  26861. Reviewed by Kevin and Geoff.
  26862. * DerivedSources.make:
  26863. Add an inclusion guard for CSSGrammar.h and XPathGrammar.h, because older versions of bison do not
  26864. * css/maketokenizer:
  26865. Unconditionally define the flex basic types that are not part of newer versions of flex. Was
  26866. only needed on Linux. Now needed on Mac OS 10.5, and is OK to do on 10.4.9.
  26867. 2007-05-25 Geoffrey Garen <ggaren@apple.com>
  26868. Reviewed by Darin Adler.
  26869. Moved JavaScriptCore-related pending public API to public API.
  26870. Moved -JSObject
  26871. * bindings/objc/WebScriptObjectPendingPublic.h: from here
  26872. * bindings/objc/WebScriptObject.h: to here
  26873. * bindings/objc/WebScriptObject.mm: and out of its temporary category
  26874. 2007-05-25 Mitz Pettel <mitz@webkit.org>
  26875. Reviewed by Darin.
  26876. - fix http://bugs.webkit.org/show_bug.cgi?id=13767
  26877. REGRESSION: Multipart image documents are garbled
  26878. Test: http/tests/multipart/invalid-image-data-standalone.html
  26879. * loader/DocumentLoader.cpp:
  26880. (WebCore::DocumentLoader::isLoadingMultipartContent): Added.
  26881. * loader/DocumentLoader.h:
  26882. * loader/ImageDocument.cpp:
  26883. (WebCore::ImageTokenizer::finish): If the image is multipart, make a copy
  26884. of the current part instead of using the resource data, which is going to be
  26885. overwritten by the next part.
  26886. * loader/MainResourceLoader.h:
  26887. (WebCore::MainResourceLoader::isLoadingMultipartContent): Added.
  26888. 2007-05-25 Anders Carlsson <andersca@apple.com>
  26889. Fix no-svg build.
  26890. * bindings/js/kjs_html.cpp:
  26891. (KJS::HTMLElementFunction::callAsFunction):
  26892. 2007-05-25 Anders Carlsson <andersca@apple.com>
  26893. Reviewed by Mitz.
  26894. <rdar://problem/5226788> After resizing the window larger than the image, hovering over the image still shows magnify glass
  26895. One part of the bug was already fixed by my previous commit. This fixes the case where the window is sized so the image fit
  26896. after it has been zoomed in.
  26897. * loader/ImageDocument.cpp:
  26898. (WebCore::ImageDocument::windowSizeChanged):
  26899. 2007-05-25 John Sullivan <sullivan@apple.com>
  26900. Reviewed by Anders and Tim
  26901. - WebCore change for:
  26902. <rdar://problem/5226000> REGRESSION: In Gmail and Mail, a hang occurs when attempting to grammar/spellcheck a word in a reply
  26903. * editing/Editor.cpp:
  26904. (WebCore::findFirstBadGrammarInRange):
  26905. Use the more obvious way to check whether a range is empty. In this case the more obvious way
  26906. would also have caused no problem to occur. Also added an assertion. Though this change is
  26907. enough to fix the symptom of the bug, the real fix is in WebKit.
  26908. 2007-05-25 Anders Carlsson <andersca@apple.com>
  26909. Reviewed by Darin (Sorta).
  26910. * loader/ImageDocument.cpp:
  26911. (WebCore::ImageDocument::restoreImageSize):
  26912. Use removeProperty here.
  26913. 2007-05-25 Geoffrey Garen <ggaren@apple.com>
  26914. Reviewed by Darin Adler.
  26915. Some cleanup to Cache while Fixing <rdar://problem/5055182> The page cache
  26916. has no global cap.
  26917. * loader/Cache.cpp: Removed destructor to help identify this class as a
  26918. singleton.
  26919. * loader/Cache.h: Made constructor and destructor private to match the
  26920. singleton model of PageCache.
  26921. Put structs related to Cache inside its declaration to fix some namespace
  26922. conflicts I had while writing my patch. (They don't exist anymore, but
  26923. I figured this might help future development.)
  26924. 2007-05-24 Geoffrey Garen <ggaren@apple.com>
  26925. Reviewed by Darin Adler.
  26926. Fixed a bug with Settings where a number of different objects held bare
  26927. Settings* data members, even though the Page owns the Settings object and
  26928. deletes it upon destruction.
  26929. Added NULL checks since the Page can be deleted before the frame/document.
  26930. * page/Settings.cpp: Removed reliance on setNeedsReapplyStylesForSettingsChange.
  26931. * css/cssstyleselector.cpp: CSSStyleSelector was the worst offender. It
  26932. held a number of back pointers that were not guaranteed. I removed the
  26933. Settings*, Frame*, and FrameView* back pointers, but others could probably
  26934. go, too. I replaced them with a single Document* pointer, which is guaranteed
  26935. because the Document owns the CSSStyleSelector.
  26936. * page/Page.cpp: Removed setNeedsReapplyStylesForSettingsChange -- the
  26937. Settings object is now a proper subcontroller of Page, so it doesn't need
  26938. to use a global table to find its page anymore. Also, this function
  26939. confusingly implied that the Frames in a page can have heterogeneous settings,
  26940. which is not true.
  26941. 2007-05-25 David Hyatt <hyatt@apple.com>
  26942. Make sure -webkit-border-fit accounts for padding as well as border.
  26943. Reviewed by aroben
  26944. * rendering/RenderBlock.cpp:
  26945. (WebCore::RenderBlock::borderFitAdjust):
  26946. 2007-05-25 David Hyatt <hyatt@apple.com>
  26947. Rework line numbering (again). This time I finally think I have
  26948. it right for all the document.write insanity that can occur.
  26949. Reviewed by aroben
  26950. * html/HTMLParser.cpp:
  26951. (WebCore::HTMLParser::reportErrorToConsole):
  26952. * html/HTMLParserErrorCodes.cpp:
  26953. (WebCore::htmlParserDocumentWriteMessage):
  26954. * html/HTMLParserErrorCodes.h:
  26955. * html/HTMLTokenizer.cpp:
  26956. (WebCore::HTMLTokenizer::write):
  26957. * html/HTMLTokenizer.h:
  26958. (WebCore::HTMLTokenizer::lineNumberPtr):
  26959. (WebCore::HTMLTokenizer::processingContentWrittenByScript):
  26960. * platform/SegementedSring.cpp
  26961. (WebCore::SegmentedString::setExcludeLineNumbers):
  26962. * platform/SegmentedString.h:
  26963. (WebCore::SegmentedSubstring::SegmentedSubstring):
  26964. (WebCore::SegmentedSubstring::clear):
  26965. (WebCore::SegmentedSubstring::excludeLineNumbers):
  26966. (WebCore::SegmentedSubstring::setExcludeLineNumbers):
  26967. (WebCore::SegmentedString::excludeLineNumbers):
  26968. (WebCore::SegmentedString::advance):
  26969. 2007-05-24 Geoffrey Garen <ggaren@apple.com>
  26970. Reviewed by Adam Roben.
  26971. Added a debug-only CachedPage counter. This helped me track down an SVG
  26972. timer bug in my recent page cache work.
  26973. * history/CachedPage.cpp:
  26974. 2007-05-24 David Hyatt <hyatt@apple.com>
  26975. Improve <form> error reporting to catch <form>s inside table parts.
  26976. Tweak the wording of some of the error messages to be a bit better.
  26977. Reviewed by olliej
  26978. * html/HTMLParser.cpp:
  26979. (WebCore::HTMLParser::insertNode):
  26980. (WebCore::HTMLParser::processCloseTag):
  26981. (WebCore::HTMLParser::popBlock):
  26982. * html/HTMLParserErrorCodes.cpp:
  26983. (WebCore::htmlParserErrorMessageTemplate):
  26984. * html/HTMLParserErrorCodes.h:
  26985. 2007-05-24 Rob Buis <buis@kde.org>
  26986. Reviewed by Hyatt.
  26987. http://bugs.webkit.org/show_bug.cgi?id=4104
  26988. first-letter not updating style with hover
  26989. http://bugs.webkit.org/show_bug.cgi?id=13169
  26990. css-formatted first letter won't hide dynamically
  26991. Update first letter when RenderBlock::setStyle is called.
  26992. * css/cssstyleselector.cpp:
  26993. (WebCore::CSSStyleSelector::checkOneSelector):
  26994. * dom/Document.cpp:
  26995. (WebCore::Document::Document):
  26996. (WebCore::Document::createElement):
  26997. * dom/Document.h:
  26998. (WebCore::Document::usesFirstLetterRules):
  26999. (WebCore::Document::setUsesFirstLetterRules):
  27000. * rendering/RenderBlock.cpp:
  27001. (WebCore::RenderBlock::setStyle):
  27002. (WebCore::RenderBlock::updateFirstLetter):
  27003. 2007-05-24 Mitz Pettel <mitz@webkit.org>
  27004. Reviewed by Darin.
  27005. - fix http://bugs.webkit.org/show_bug.cgi?id=13800
  27006. REGRESSION: Moving a slider moves another unrelated slider
  27007. Test: fast/forms/slider-thumb-shared-style.html
  27008. RenderSlider mutates the thumb's style, therefore it must not be shared
  27009. with another slider's thumb, a situation that could occur if the sliders
  27010. themselves shared style.
  27011. * rendering/RenderSlider.cpp:
  27012. (WebCore::RenderSlider::createThumbStyle): Always use a private copy for
  27013. the thumb style.
  27014. 2007-05-24 Adele Peterson <adele@apple.com>
  27015. Reviewed by Darin.
  27016. Fix for <rdar://problem/5211921> Form values sometimes get transposed (iGoogle)
  27017. Test: fast/history/redirect-load-no-form-restoration.html
  27018. * history/HistoryItem.cpp:
  27019. (WebCore::HistoryItem::setURL): Clear the document state when the url changes for a HistoryItem.
  27020. (WebCore::HistoryItem::isCurrentDocument): Added. Compares the HistoryItem url to the document's url. This might not be the best way to do this, but it works for now.
  27021. * history/HistoryItem.h:
  27022. * loader/FrameLoader.cpp: (WebCore::FrameLoader::saveDocumentState): Only set the document (and form) state if the document is current for the history item.
  27023. 2007-05-24 Mitz Pettel <mitz@webkit.org>
  27024. Reviewed by Adele.
  27025. - fix http://bugs.webkit.org/show_bug.cgi?id=13857
  27026. REGRESSION: onChange function applied to select element executes twice when focus is set
  27027. Test: fast/forms/select-double-onchange.html
  27028. * html/HTMLSelectElement.cpp:
  27029. (WebCore::HTMLSelectElement::menuListOnChange): Changed to update m_lastOnChangeIndex
  27030. before dispatching the change event to avoid reentrancy.
  27031. 2007-05-24 Darin Adler <darin@apple.com>
  27032. Reviewed by Hyatt.
  27033. - fix <rdar://problem/5226451> REGRESSION (21618): Mail block quotes
  27034. are missing the lines on the side
  27035. This patch fixes three problems:
  27036. 1) makes the "skip canLoad check" boolean also skip the check
  27037. that prevents any loads while the document is in provisional
  27038. state; this is the proximate cause of the bug
  27039. * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::create):
  27040. Don't check the frame's state if skipCanLoadCheck is true.
  27041. 2) moves the "skip canLoad check" boolean to the Request object;
  27042. the old implementation would cause that flag to affect the
  27043. new request we served, which might not be the resource with
  27044. that flag set
  27045. 3) fixes error-handling code path that would leak requests
  27046. * html/HTMLImageLoader.cpp: (WebCore::HTMLImageLoader::updateFromElement):
  27047. Pass false to the CachedImage constructor to indicate we are not making
  27048. this object for the cache.
  27049. * loader/Cache.cpp:
  27050. (WebCore::createResource): Pass true to the CachedImage constructor to
  27051. indicate we are making this object for the cache.
  27052. (WebCore::Cache::requestResource): Add new code that assumes the object
  27053. will already have the inCache bit set, and that will delete the object
  27054. and return 0 if the cache is disabled and the load failed.
  27055. * loader/CachedImage.h:
  27056. * loader/CachedImage.cpp: (WebCore::CachedImage::CachedImage):
  27057. Added a forCache boolean parameter. Always false for the constructor
  27058. that's only used outside the cache code, and passed in as a boolean
  27059. for the constructor that's used both in cache and outside cache.
  27060. * loader/CachedResource.h:
  27061. * loader/CachedResource.cpp:
  27062. (WebCore::CachedResource::CachedResource): Added a forCache boolean
  27063. parameter that determines the initial state of the m_inCache flag.
  27064. This is needed to prevent a resource from being destroyed if an
  27065. error occurs during the initial load.
  27066. * loader/DocLoader.cpp:
  27067. (WebCore::DocLoader::requestCSSStyleSheet): Added FIXME.
  27068. (WebCore::DocLoader::setLoadInProgress): Added null check.
  27069. * loader/Request.h:
  27070. * loader/Request.cpp: (WebCore::Request::Request):
  27071. Added a shouldSkipCanLoadCheck boolean here, since we need to track
  27072. this for each request.
  27073. * loader/loader.h:
  27074. * loader/loader.cpp:
  27075. (WebCore::Loader::load): Pass the skipCanLoadCheck boolean to the
  27076. Request constructor rather than to the servePendingRequests function.
  27077. (WebCore::Loader::servePendingRequests): Add a loop so we can handle
  27078. cases where the request fails immediately without leaking the request
  27079. and thinking that we're loading forever.
  27080. 2007-05-24 David Hyatt <hyatt@apple.com>
  27081. Add error reporting for residual style.
  27082. Reviewed by aroben
  27083. * html/HTMLParser.cpp:
  27084. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  27085. (WebCore::HTMLParser::reopenResidualStyleTags):
  27086. * html/HTMLParserErrorCodes.cpp:
  27087. (WebCore::htmlParserErrorMessageTemplate):
  27088. * html/HTMLParserErrorCodes.h:
  27089. 2007-05-24 David Hyatt <hyatt@apple.com>
  27090. Report <script/> as a warning instead of an error for now, since we
  27091. actually do close it. (Sigh.)
  27092. Reviewed by beth
  27093. * html/HTMLParser.cpp:
  27094. (WebCore::HTMLParser::parseToken):
  27095. (WebCore::HTMLParser::reportErrorToConsole):
  27096. * html/HTMLParserErrorCodes.cpp:
  27097. (WebCore::htmlParserErrorMessageTemplate):
  27098. (WebCore::isWarning):
  27099. * html/HTMLParserErrorCodes.h:
  27100. 2007-05-24 David Hyatt <hyatt@apple.com>
  27101. Add error reporting for the </p> -> <p></p> quirk.
  27102. Add error reporting when a stray close tag is encountered with no
  27103. corresponding open tag.
  27104. Reviewed by adele
  27105. * html/HTMLParser.cpp:
  27106. (WebCore::HTMLParser::HTMLParser):
  27107. (WebCore::HTMLParser::processCloseTag):
  27108. (WebCore::HTMLParser::popBlock):
  27109. * html/HTMLParser.h:
  27110. (WebCore::HTMLParser::popBlock):
  27111. * html/HTMLParserErrorCodes.cpp:
  27112. (WebCore::htmlParserErrorMessageTemplate):
  27113. * html/HTMLParserErrorCodes.h:
  27114. 2007-05-24 Kevin McCullough <kmccullough@apple.com>
  27115. Reviewed by.
  27116. - Rolling back change to fix the build until I have a good fix for data: urls.
  27117. * ChangeLog:
  27118. * loader/FrameLoader.cpp:
  27119. (WebCore::FrameLoader::load):
  27120. (WebCore::FrameLoader::open):
  27121. * platform/String.cpp:
  27122. 2007-05-24 David Hyatt <hyatt@apple.com>
  27123. Add two more error messages to the HTMLParser.
  27124. Report when the </br> -> <br> quirk is triggered.
  27125. Also report whenever the broken XML self-closing tag syntax is used on
  27126. tags that can actually have an end tag (either optional or required).
  27127. Reviewed by aroben
  27128. * html/HTMLParser.cpp:
  27129. (WebCore::HTMLParser::parseToken):
  27130. * html/HTMLParserErrorCodes.cpp:
  27131. (WebCore::htmlParserErrorMessageTemplate):
  27132. * html/HTMLParserErrorCodes.h:
  27133. (WebCore::):
  27134. * html/HTMLTokenizer.cpp:
  27135. (WebCore::HTMLTokenizer::parseTag):
  27136. * html/HTMLTokenizer.h:
  27137. (WebCore::Token::reset):
  27138. 2007-05-24 Sam Weinig <sam@webkit.org>
  27139. Reviewed by Anders.
  27140. Rename JSHTMLFrameSetCustom.cpp to JSHTMLFrameSetElementCustom.cpp
  27141. for consistency.
  27142. * WebCore.xcodeproj/project.pbxproj:
  27143. * bindings/js/JSHTMLFrameSetCustom.cpp: Removed.
  27144. * bindings/js/JSHTMLFrameSetElementCustom.cpp: Added.
  27145. 2007-05-24 David Hyatt <hyatt@apple.com>
  27146. Fix for <rdar://problem/5208440> (13753)
  27147. REGRESSION: Raw text needs to be pulled outside of tables
  27148. Reviewed by aroben
  27149. * html/HTMLParser.cpp:
  27150. (WebCore::HTMLParser::handleError):
  27151. * html/HTMLTableColElement.cpp:
  27152. (WebCore::HTMLTableColElement::checkDTD):
  27153. * html/HTMLTableElement.cpp:
  27154. (WebCore::HTMLTableElement::checkDTD):
  27155. * html/HTMLTableRowElement.cpp:
  27156. (WebCore::HTMLTableRowElement::checkDTD):
  27157. * html/HTMLTableSectionElement.cpp:
  27158. (WebCore::HTMLTableSectionElement::checkDTD):
  27159. 2007-05-24 Mitz Pettel <mitz@webkit.org>
  27160. Reviewed by Darin.
  27161. - fix http://bugs.webkit.org/show_bug.cgi?id=13837
  27162. Separator in new <select> widget disappears when block element with border is in document.
  27163. Test: fast/forms/menulist-separator-painting.html
  27164. * platform/graphics/cg/GraphicsContextCG.cpp:
  27165. (WebCore::GraphicsContext::drawConvexPolygon): Changed this function to
  27166. actually do both filling and stroking when needed, even though all existing
  27167. callers set the stroke to none.
  27168. * rendering/RenderThemeMac.mm:
  27169. (WebCore::RenderThemeMac::paintMenuListButton): Added calls to set the stroke
  27170. style and thickness when painting the arrows and the separator.
  27171. 2007-05-24 Timothy Hatcher <timothy@apple.com>
  27172. Reviewed by Sam Weinig.
  27173. Remove the OBJC_NEW_PROPERTIES #ifdef and only export the new @property syntax.
  27174. * bindings/objc/DOMObject.h:
  27175. * bindings/scripts/CodeGeneratorObjC.pm:
  27176. 2007-05-24 Sam Weinig <sam@webkit.org>
  27177. Reviewed by Anders.
  27178. Uncomment HTMLFramesSetElement constructor now that it exists.
  27179. * page/DOMWindow.idl:
  27180. 2007-05-24 Anders Carlsson <andersca@apple.com>
  27181. Try fixing the buildbot build.
  27182. * loader/ImageDocument.cpp:
  27183. (WebCore::ImageDocument::resizeImageToFit):
  27184. (WebCore::ImageDocument::imageClicked):
  27185. 2007-05-24 Sam Weinig <sam@webkit.org>
  27186. Reviewed by Darin.
  27187. Patch for http://bugs.webkit.org/show_bug.cgi?id=13853
  27188. Autogenerate the JS bindings for the HTMLFrameSetElement
  27189. * DerivedSources.make:
  27190. * WebCore.pro:
  27191. * WebCore.xcodeproj/project.pbxproj:
  27192. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  27193. * bindings/js/JSHTMLFrameSetCustom.cpp: Added.
  27194. (WebCore::JSHTMLFrameSetElement::canGetItemsForName):
  27195. (WebCore::JSHTMLFrameSetElement::nameGetter):
  27196. * bindings/js/kjs_html.cpp:
  27197. (KJS::):
  27198. (KJS::JSHTMLElement::classInfo):
  27199. (KJS::JSHTMLElement::accessors):
  27200. (KJS::JSHTMLElement::getOwnPropertySlot):
  27201. * bindings/js/kjs_html.h:
  27202. (KJS::JSHTMLElement::):
  27203. * html/HTMLFrameSetElement.idl:
  27204. 2007-05-24 Zack Rusin <zrusin@trolltech.com>
  27205. Reviewed by andersca
  27206. Fixing check for incorrent font size - it should
  27207. check fixed not normal.
  27208. * page/Settings.cpp:
  27209. (WebCore::Settings::setDefaultFixedFontSize):
  27210. 2007-05-24 Mitz Pettel <mitz@webkit.org>
  27211. Speculative buildbot build fix.
  27212. * css/cssstyleselector.cpp:
  27213. (WebCore::CSSStyleSelector::applyProperty):
  27214. 2007-05-24 Adam Roben <aroben@apple.com>
  27215. Made Chrome::addMessageToConsole more flexible
  27216. addMessageToConsole now takes two additional parameters to specify the
  27217. message source (HTML, JS, CSS, XML) and level (error, warning, log). To
  27218. maintain our old behavior, all current messages were given
  27219. JSMessageSource and ErrorMessageLevel parameters. Messages matching
  27220. these characteristics are passed up to the ChromeClient.
  27221. Reviewed by Hyatt.
  27222. * bindings/js/JSCustomXPathNSResolver.cpp:
  27223. (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
  27224. * bindings/js/kjs_events.cpp:
  27225. (KJS::JSAbstractEventListener::handleEvent):
  27226. * bindings/js/kjs_proxy.cpp:
  27227. (WebCore::KJSProxy::evaluate):
  27228. * bindings/js/kjs_window.cpp:
  27229. (KJS::Window::isSafeScript):
  27230. (KJS::ScheduledAction::execute):
  27231. * html/HTMLParser.cpp:
  27232. (WebCore::HTMLParser::reportErrorToConsole):
  27233. * ksvg2/misc/SVGDocumentExtensions.cpp:
  27234. (WebCore::SVGDocumentExtensions::reportWarning):
  27235. (WebCore::SVGDocumentExtensions::reportError):
  27236. * loader/FrameLoader.cpp:
  27237. (WebCore::FrameLoader::reportLocalLoadFailed):
  27238. * page/Chrome.cpp:
  27239. (WebCore::Chrome::addMessageToConsole):
  27240. * page/Chrome.h:
  27241. (WebCore::):
  27242. * xml/xmlhttprequest.cpp:
  27243. (WebCore::XMLHttpRequest::setRequestHeader):
  27244. 2007-05-24 David Hyatt <hyatt@apple.com>
  27245. Rework how HTML handles line numbering so that it is not fooled by
  27246. \r without a following \n and so that document.write doesn't lead
  27247. to line numbering confusion.
  27248. Reviewed by aroben
  27249. * html/HTMLParser.cpp:
  27250. (WebCore::HTMLParser::reportErrorToConsole):
  27251. * html/HTMLTokenizer.cpp:
  27252. (WebCore::HTMLTokenizer::processListing):
  27253. (WebCore::HTMLTokenizer::parseSpecial):
  27254. (WebCore::HTMLTokenizer::parseComment):
  27255. (WebCore::HTMLTokenizer::parseServer):
  27256. (WebCore::HTMLTokenizer::parseProcessingInstruction):
  27257. (WebCore::HTMLTokenizer::parseText):
  27258. (WebCore::HTMLTokenizer::parseEntity):
  27259. (WebCore::HTMLTokenizer::parseTag):
  27260. (WebCore::HTMLTokenizer::write):
  27261. (WebCore::HTMLTokenizer::processToken):
  27262. (WebCore::HTMLTokenizer::setSrc):
  27263. * html/HTMLTokenizer.h:
  27264. (WebCore::HTMLTokenizer::lineNumberPtr):
  27265. * html/HTMLViewSourceDocument.cpp:
  27266. (WebCore::HTMLViewSourceDocument::addLine):
  27267. * loader/TextDocument.cpp:
  27268. (WebCore::TextTokenizer::write):
  27269. * platform/SegmentedString.cpp:
  27270. (WebCore::SegmentedString::SegmentedString):
  27271. (WebCore::SegmentedString::operator=):
  27272. (WebCore::SegmentedString::clear):
  27273. * platform/SegmentedString.h:
  27274. (WebCore::SegmentedString::SegmentedString):
  27275. (WebCore::SegmentedString::advance):
  27276. (WebCore::SegmentedString::escaped):
  27277. 2007-05-23 David Hyatt <hyatt@apple.com>
  27278. Make the delete/InsertRows/Cells methods as well as the rowIndex method
  27279. able to work properly even when whitespace or comment nodes are present.
  27280. Reviewed by aroben
  27281. fast/table/rowindex-comment-nodes.html
  27282. * html/HTMLTableRowElement.cpp:
  27283. (WebCore::HTMLTableRowElement::rowIndex):
  27284. (WebCore::HTMLTableRowElement::insertCell):
  27285. (WebCore::HTMLTableRowElement::deleteCell):
  27286. * html/HTMLTableSectionElement.cpp:
  27287. (WebCore::HTMLTableSectionElement::insertRow):
  27288. (WebCore::HTMLTableSectionElement::deleteRow):
  27289. 2007-05-23 David Hyatt <hyatt@apple.com>
  27290. <optgroup> should allow <script> and text nodes inside it, just like
  27291. <select> does.
  27292. Reviewed by aroben
  27293. fast/forms/stuff-on-my-optgroup.html
  27294. * html/HTMLOptGroupElement.cpp:
  27295. (WebCore::HTMLOptGroupElement::checkDTD):
  27296. * html/HTMLSelectElement.cpp:
  27297. (WebCore::HTMLSelectElement::checkDTD):
  27298. 2007-05-23 David Hyatt <hyatt@apple.com>
  27299. Framesets should allow whitespace text nodes as children.
  27300. Reviewed by aroben
  27301. * html/HTMLFrameSetElement.cpp:
  27302. (WebCore::HTMLFrameSetElement::checkDTD):
  27303. 2007-05-24 Mark Rowe <mrowe@apple.com>
  27304. Fix the Qt build after r21685.
  27305. * platform/qt/CursorQt.cpp:
  27306. (WebCore::notAllowedCursor):
  27307. (WebCore::zoomInCursor):
  27308. (WebCore::zoomOutCursor):
  27309. 2007-05-23 Alp Toker <alp.toker@collabora.co.uk>
  27310. Reviewed by Adam.
  27311. Fix the gdk build following changes in r21685.
  27312. * platform/gdk/CursorGdk.cpp:
  27313. (WebCore::zoomInCursor):
  27314. (WebCore::zoomOutCursor):
  27315. 2007-05-23 David Hyatt <hyatt@apple.com>
  27316. Fix for <rdar://problem/5222611> REGRESSION: Paint ordering problems at
  27317. http://buymeasoda.com/dev/issues/image_onload/image_onload.html
  27318. Clamp z-index so that values that exceed maxint (or that are below minint)
  27319. are clamped to those values.
  27320. Reviewed by darin
  27321. * css/cssstyleselector.cpp:
  27322. (WebCore::CSSStyleSelector::applyProperty):
  27323. 2007-05-23 Mitz Pettel <mitz@webkit.org>
  27324. Reviewed by David Hyatt.
  27325. - fix http://bugs.webkit.org/show_bug.cgi?id=13563
  27326. REGRESSION: Crash loading message in Yahoo! Mail
  27327. Tests: fast/css/stale-style-selector-crash-1.html
  27328. fast/css/stale-style-selector-crash-2.html
  27329. * dom/Document.cpp:
  27330. (WebCore::Document::Document): Initialize the m_didCalculateStyleSelector
  27331. flag to 'false'.
  27332. (WebCore::Document::updateStyleSelector): Do not bail out if we have ever
  27333. calculated a non-trivial style selector, even if at the moment we are
  27334. pending style sheets. We could have calculated a non-trivial selector
  27335. already either because at some point there were no pending style sheets
  27336. (so the currently pending ones were added dynamically) or because we were
  27337. forced to do a layout ignoring pending style sheets. Either way, once
  27338. there is a style selector, we need to keep it up to date, otherwise we can
  27339. crash under recalcStyle() during updateRendering() or simply not recalculate
  27340. style correctly for dynamic changes.
  27341. (WebCore::Document::recalcStyleSelector): Set m_didCalculateStyleSelector
  27342. to 'true' when creating a new style selector.
  27343. * dom/Document.h:
  27344. 2007-05-23 Anders Carlsson <andersca@apple.com>
  27345. Reviewed by Adam.
  27346. <rdar://problem/5224749> Show a zoom/unzoom cursor for resizable image documents
  27347. * WebCore.xcodeproj/project.pbxproj:
  27348. Install the zoom cursors.
  27349. * loader/ImageDocument.cpp:
  27350. (WebCore::ImageDocument::resizeImageToFit):
  27351. Set the cursor to the zoom in cursor.
  27352. (WebCore::ImageDocument::restoreImageSize):
  27353. If the image fits, reset the cursor. Otherwise, set it to the zoom in cursor.
  27354. 2007-05-23 Darin Adler <darin@apple.com>
  27355. Reviewed by Hyatt.
  27356. - fix problems where unrendered nodes were affecting on plain text serialization
  27357. * editing/TextIterator.cpp:
  27358. (WebCore::TextIterator::advance): Don't call handleXXX functions or exitNode for
  27359. nodes without renderers.
  27360. (WebCore::shouldEmitNewlineAfterNode): Only consider rendered nodes when deciding
  27361. if this is the last node in the document.
  27362. 2007-05-23 Anders Carlsson <andersca@apple.com>
  27363. Reviewed by Geoff.
  27364. <rdar://problem/3663808> Resize large images to fit in the browser window
  27365. * WebCore.exp:
  27366. Add new settings method.
  27367. * loader/ImageDocument.cpp:
  27368. (WebCore::ImageEventListener::ImageEventListener):
  27369. New class that handles resize events and click events and forwards them to the image document.
  27370. (WebCore::ImageTokenizer::ImageTokenizer):
  27371. (WebCore::ImageTokenizer::writeRawData):
  27372. (WebCore::ImageTokenizer::finish):
  27373. (WebCore::ImageDocument::ImageDocument):
  27374. (WebCore::ImageDocument::createDocumentStructure):
  27375. (WebCore::ImageDocument::cachedImage):
  27376. Let the ImageDocument class keep track of its document structure.
  27377. (WebCore::ImageDocument::scale):
  27378. Returns the scale that should be used when resizing the image.
  27379. (WebCore::ImageDocument::resizeImage):
  27380. Update the image size.
  27381. (WebCore::ImageDocument::imageClicked):
  27382. Toggle between resized and not resized. When restoring the size, scroll the image so that the area under
  27383. the mouse stays the same.
  27384. (WebCore::ImageDocument::imageChanged):
  27385. When the image size is known, resize the image if needed.
  27386. (WebCore::ImageDocument::restoreImageSize):
  27387. Restore the image size.
  27388. (WebCore::ImageDocument::imageNeedsResizing):
  27389. Return whether the image is too big for its window or not.
  27390. (WebCore::ImageDocument::windowSizeChanged):
  27391. Called when the window's size changes. Determine if the window fits or not and resize it if it doesn't fit.
  27392. (WebCore::ImageEventListener::handleEvent):
  27393. Forward events to the image document.
  27394. * page/Settings.cpp:
  27395. (WebCore::Settings::Settings):
  27396. (WebCore::Settings::setEnableAutomaticImageResizing):
  27397. * page/Settings.h:
  27398. (WebCore::Settings::enableAutomaticImageResizing):
  27399. Add new setting.
  27400. 2007-05-23 Anders Carlsson <andersca@apple.com>
  27401. Reviewed by Darin.
  27402. Add -webkit-zoom-in and -webkit-zoom-out cursors.
  27403. * Resources/zoomInCursor.png: Added.
  27404. * Resources/zoomOutCursor.png: Added.
  27405. * css/CSSComputedStyleDeclaration.cpp:
  27406. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  27407. * css/CSSValueKeywords.in:
  27408. * page/EventHandler.cpp:
  27409. (WebCore::selectCursor):
  27410. * platform/Cursor.h:
  27411. * platform/mac/CursorMac.mm:
  27412. (WebCore::zoomInCursor):
  27413. (WebCore::zoomOutCursor):
  27414. * rendering/RenderStyle.h:
  27415. (WebCore::):
  27416. 2007-05-23 Sam Weinig <sam@webkit.org>
  27417. Reviewed by Darin.
  27418. Part one of patch for http://bugs.webkit.org/show_bug.cgi?id=13830
  27419. Auto-generate JS DOM bindings for HTMLDocument and most of the rest
  27420. of HTMLElement
  27421. - Just the HTMLElement part.
  27422. * bindings/js/kjs_html.cpp:
  27423. (KJS::JSHTMLElement::getValueProperty):
  27424. (KJS::JSHTMLElement::putValueProperty):
  27425. * bindings/js/kjs_html.h:
  27426. (KJS::JSHTMLElement::):
  27427. * html/HTMLElement.idl:
  27428. 2007-05-22 Kevin McCullough <kmccullough@apple.com>
  27429. Reviewed by Darin.
  27430. - rdar://problem/5183523
  27431. - We now check the document's URL to see if it can load a resource in the case of a URL click, instead of checking the referrer, which is blank for local files.
  27432. * loader/FrameLoader.cpp:
  27433. (WebCore::FrameLoader::load):
  27434. (WebCore::FrameLoader::open):
  27435. * platform/PlatformString.h:
  27436. (WebCore::debugPrintString):
  27437. 2007-05-23 Sam Weinig <sam@webkit.org>
  27438. Reviewed by Darin.
  27439. Part two of patch for http://bugs.webkit.org/show_bug.cgi?id=13830
  27440. Auto-generate JS DOM bindings for HTMLDocument and most of the rest
  27441. of HTMLElement
  27442. - Just the HTMLDocument part.
  27443. * WebCore.pro:
  27444. * WebCore.xcodeproj/project.pbxproj:
  27445. * bindings/js/JSHTMLDocumentCustom.cpp: Added.
  27446. (WebCore::JSHTMLDocument::canGetItemsForName):
  27447. (WebCore::JSHTMLDocument::nameGetter):
  27448. (WebCore::JSHTMLDocument::all):
  27449. (WebCore::JSHTMLDocument::setAll):
  27450. (WebCore::JSHTMLDocument::location):
  27451. (WebCore::JSHTMLDocument::setLocation):
  27452. (WebCore::JSHTMLDocument::open):
  27453. (WebCore::writeHelper):
  27454. (WebCore::JSHTMLDocument::write):
  27455. (WebCore::JSHTMLDocument::writeln):
  27456. (WebCore::JSHTMLDocument::clear):
  27457. * bindings/js/kjs_dom.cpp:
  27458. (KJS::toJS):
  27459. * bindings/js/kjs_dom.h:
  27460. * bindings/js/kjs_html.cpp:
  27461. * bindings/js/kjs_html.h:
  27462. * bindings/objc/DOMPrivate.h:
  27463. * bindings/scripts/CodeGeneratorJS.pm: Add [Deletable] property
  27464. for Document.all and fix HasOverridingNameGetter to allow correct
  27465. prototype chain
  27466. * dom/Document.cpp:
  27467. (WebCore::Document::plugins): adds alias to embeds() for bindings
  27468. * dom/Document.h:
  27469. * html/HTMLDocument.cpp:
  27470. (WebCore::HTMLDocument::width):
  27471. (WebCore::HTMLDocument::height):
  27472. (WebCore::HTMLDocument::dir):
  27473. (WebCore::HTMLDocument::setDir):
  27474. (WebCore::HTMLDocument::designMode):
  27475. (WebCore::HTMLDocument::setDesignMode):
  27476. (WebCore::HTMLDocument::bgColor):
  27477. (WebCore::HTMLDocument::setBgColor):
  27478. (WebCore::HTMLDocument::fgColor):
  27479. (WebCore::HTMLDocument::setFgColor):
  27480. (WebCore::HTMLDocument::alinkColor):
  27481. (WebCore::HTMLDocument::setAlinkColor):
  27482. (WebCore::HTMLDocument::linkColor):
  27483. (WebCore::HTMLDocument::setLinkColor):
  27484. (WebCore::HTMLDocument::vlinkColor):
  27485. (WebCore::HTMLDocument::setVlinkColor):
  27486. (WebCore::HTMLDocument::captureEvents):
  27487. (WebCore::HTMLDocument::releaseEvents):
  27488. * html/HTMLDocument.h:
  27489. * html/HTMLDocument.idl:
  27490. 2007-05-23 David Hyatt <hyatt@apple.com>
  27491. Fix for <rdar://problem/5221838> REGRESSION (r21581): no content in idisk
  27492. window at mac.com.
  27493. Back out the change to make self-closed <script/> into a Dashboard quirk
  27494. only.
  27495. Reviewed by aroben
  27496. * html/HTMLTokenizer.cpp:
  27497. (WebCore::HTMLTokenizer::parseTag):
  27498. 2007-05-23 Patti <patti@apple.com>
  27499. Reviewed by David Harrison.
  27500. <rdar://problem/5078453> AXNext/PrevLineEndTextMarkerForTextMarker returns kAXErrorNoValue for attachment range
  27501. Floating objects, such as aligned images, are not included as part of any line. So when the given
  27502. text marker is on the floating object, the returned line edge cannot be found and asserts are fired.
  27503. In addition, this paints an inconsistent text layout (in the accessibility sense) of where the floating
  27504. object resides. Character/word methods report floating object at the beginning of the text line(s). Yet
  27505. line methods never present floating objects anywhere.
  27506. To fix this, the ax line methods will now do more checking to ensure floating object nodes are included
  27507. when determining the line range/position. That way, assistive apps won't get stuck using the line methods
  27508. to read line-by-line
  27509. * bridge/mac/WebCoreAXObject.mm:
  27510. (updateAXLineStartForVisiblePosition):
  27511. Added a helper method to adjust line start position to account for floating objects
  27512. (-[WebCoreAXObject doAXLeftLineTextMarkerRangeForTextMarker:]):
  27513. (-[WebCoreAXObject doAXRightLineTextMarkerRangeForTextMarker:]):
  27514. (-[WebCoreAXObject doAXNextLineEndTextMarkerForTextMarker:]):
  27515. (-[WebCoreAXObject doAXPreviousLineStartTextMarkerForTextMarker:]):
  27516. Fixed up line routines to include floating object nodes in line position calculation.
  27517. startOfLine/endOLine may return null for position next to a floating position. So now there's extra checks to prevent
  27518. returning null line position/ranges back to AX.
  27519. 2007-05-23 Simon Hausmann <hausmann@kde.org>
  27520. Reviewed by Zack, discussed also with Lars.
  27521. Make it possible to have per-QWebPage network interface
  27522. implementations.
  27523. * platform/network/qt/ResourceHandleQt.cpp:
  27524. (WebCore::ResourceHandle::start): Pass the page's network interface to
  27525. the network manager.
  27526. 2007-05-23 Rob Buis <buis@kde.org>
  27527. Reviewed by Dave Hyatt.
  27528. http://bugs.webkit.org/show_bug.cgi?id=13174
  27529. line-height in font shorthand does not override a previously stated line-height property
  27530. Make sure line-height is calculated against definite font-size and
  27531. uses the last set line-height, ie. directly or through font shorthand.
  27532. * css/cssstyleselector.cpp:
  27533. (WebCore::CSSStyleSelector::styleForElement):
  27534. (WebCore::CSSStyleSelector::pseudoStyleForElement):
  27535. (WebCore::CSSStyleSelector::applyDeclarations):
  27536. (WebCore::CSSStyleSelector::applyProperty):
  27537. * css/cssstyleselector.h:
  27538. 2007-05-23 Lars Knoll <lars@trolltech.com>
  27539. Reviewed by Zack and Valgrind
  27540. Initialize variable.
  27541. * platform/qt/PlatformMouseEventQt.cpp:
  27542. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  27543. 2007-05-23 Rob Buis <buis@kde.org>
  27544. Reviewed by Darin.
  27545. http://bugs.webkit.org/show_bug.cgi?id=13784
  27546. REGRESSION (r13744-13750): Crash with empty gradient when drawing to canvas
  27547. Fix crash by testing for zero stops, and returning transparent black
  27548. in this case.
  27549. * html/CanvasGradient.cpp:
  27550. (WebCore::CanvasGradient::getColor):
  27551. 2007-05-23 Rob Buis <buis@kde.org>
  27552. Reviewed by Darin.
  27553. http://bugs.webkit.org/show_bug.cgi?id=13801
  27554. Crash when loading nonexisting symbol
  27555. Check for referenced element and when not found just return.
  27556. * ksvg2/svg/SVGUseElement.cpp:
  27557. (WebCore::SVGUseElement::buildPendingResource):
  27558. 2007-05-22 Sam Weinig <sam@webkit.org>
  27559. Rubber stamped by Adam.
  27560. Fix license.
  27561. * bindings/js/JSHTMLAnchorElementCustom.cpp:
  27562. 2007-05-22 Sam Weinig <sam@webkit.org>
  27563. Reviewed by Adam.
  27564. Patch for http://bugs.webkit.org/show_bug.cgi?id=13833
  27565. Add ObjC DOM binding for HTMLMarqeeElement
  27566. - Also adds missing DOMHTMLFramePrivate.
  27567. * DerivedSources.make:
  27568. * WebCore.xcodeproj/project.pbxproj:
  27569. * bindings/objc/DOM.mm:
  27570. (WebCore::createElementClassMap):
  27571. * bindings/objc/DOMHTML.h:
  27572. * bindings/objc/DOMInternal.h:
  27573. * bindings/objc/DOMPrivate.h:
  27574. * bindings/objc/PublicDOMInterfaces.h:
  27575. 2007-05-22 Justin Garcia <justin.garcia@apple.com>
  27576. Reviewed by darin, who found the fix independently.
  27577. http://bugs.webkit.org/show_bug.cgi?id=13804
  27578. REGRESSION(r21611): Several new layout test pixel failures (misspelling markers)
  27579. r21611 exposed a bug in the way removeMarkers computes
  27580. the end of the range to remove markers from. It also
  27581. introduced a bug: removeMarkers expects a startOffset
  27582. and a length, not a startOffset and an endOffset (added
  27583. a layout test).
  27584. * dom/Document.cpp:
  27585. (WebCore::Document::removeMarkers): The other removeMarkers
  27586. expects a startOffset and a length, not a startOffset and
  27587. an endOffset.
  27588. (WebCore::Document::removeMarkers): Fixed the endOffset
  27589. from length and startOffset calculation.
  27590. 2007-05-22 David Hyatt <hyatt@apple.com>
  27591. Fix for bug 13802, background colors can't be reset to default
  27592. color. Fix the value cssText method to do the right thing for background
  27593. and background-position values.
  27594. Reviewed by beth
  27595. fast/dom/background-shorthand-csstext.html
  27596. * css/CSSInitialValue.h:
  27597. (WebCore::CSSInitialValue:::m_implicit):
  27598. (WebCore::CSSInitialValue::isImplicitInitialValue):
  27599. * css/CSSMutableStyleDeclaration.cpp:
  27600. (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
  27601. (WebCore::CSSMutableStyleDeclaration::getLayeredShorthandValue):
  27602. * css/CSSMutableStyleDeclaration.h:
  27603. * css/CSSValue.h:
  27604. (WebCore::CSSValue::isImplicitInitialValue):
  27605. * css/cssparser.cpp:
  27606. (WebCore::CSSParser::parseValue):
  27607. (WebCore::CSSParser::parseBackgroundShorthand):
  27608. (WebCore::CSSParser::parseShorthand):
  27609. 2007-05-22 Darin Adler <darin@apple.com>
  27610. Reviewed by Geoff.
  27611. - fix <rdar://problem/5215830> REGRESSION: ebay.com layout is wrong
  27612. The code on ebay was looking for the "document" property on a iframe.
  27613. We changed that to be the ownerDocument rather than the contentDocument,
  27614. which was not what ebay was expecting. The best fix seems to be removing
  27615. the document property altogether.
  27616. Test: fast/dom/iframe-document.html
  27617. * bindings/js/kjs_html.h: Remove ElementDocument.
  27618. * bindings/js/kjs_html.cpp: (KJS::JSHTMLElement::getValueProperty): Ditto.
  27619. 2007-05-22 Adele Peterson <adele@apple.com>
  27620. Reviewed by Darin.
  27621. A little cleanup from my last checkin.
  27622. * page/Chrome.h: Formatting change.
  27623. * page/mac/ChromeMac.mm: Fixed copyright.
  27624. 2007-05-22 Adele Peterson <adele@apple.com>
  27625. Reviewed by Darin.
  27626. Fix for http://bugs.webkit.org/show_bug.cgi?id=13796
  27627. Crash in [NSInputContext currentInputContext] when you click on this map
  27628. This is another case of <rdar://problem/5171145> Safari crashed closing tab in NSInputContext updateInputContexts
  27629. Test: fast/frames/frame-display-none-focus.html
  27630. * WebCore.xcodeproj/project.pbxproj: Added ChromeMac.mm
  27631. * page/Chrome.h:
  27632. * page/mac/ChromeMac.mm: Added.
  27633. (WebCore::Chrome::focusNSView): Moved code from Widget::setFocus so it can be used whenever we need to make a view the first responder.
  27634. * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::focusDocumentView): Calls focusNSView.
  27635. * platform/mac/WidgetMac.mm: (WebCore::Widget::setFocus): Calls focusNSView.
  27636. 2007-05-22 Justin Garcia <justin.garcia@apple.com>
  27637. Reviewed by darin
  27638. <rdar://problem/4875189>
  27639. List is deleted when replacing contents with Chinese/Japanese characters
  27640. * editing/htmlediting.cpp:
  27641. (WebCore::isSpecialElement): Lists are no longer special.
  27642. They can be removed by removing their content and then
  27643. then hitting delete inside of the empty list item that's
  27644. left over. Even when that list item is the first thing
  27645. in the editable region.
  27646. 2007-05-22 Darin Adler <darin@apple.com>
  27647. Reviewed by Tim Hatcher.
  27648. - fix <rdar://problem/5206089> REGRESSION: hovering over amazon.com "product categories"
  27649. tab makes page content disappear
  27650. The contentWindow property was doing a cross-frame security check, but it shouldn't.
  27651. Window objects are responsible for protecting themselves from cross-frame activity.
  27652. Because contentWindow returned undefined, we then ended up setting visibility on the
  27653. body of the main frame to "hidden".
  27654. No layout test yet. When we make cross-domain tests, we should include this one.
  27655. * html/HTMLFrameElement.idl: Removed CheckFrameSecurity attribute from contentWindow.
  27656. * html/HTMLIFrameElement.idl: Ditto.
  27657. 2007-05-22 Justin Garcia <justin.garcia@apple.com>
  27658. Reviewed by oliver
  27659. <rdar://problem/5213963>
  27660. REGRESSION(r21467): Active selection remains in text field after clicking on a button
  27661. * page/EventHandler.cpp:
  27662. (WebCore::EventHandler::dispatchMouseEvent): Call
  27663. FocusController::setFocusedNode, because Document::setFocusedNode
  27664. no longer clears the selection.
  27665. Begin passing the new focused frame to
  27666. FocusController::setFocusedNode, because when the
  27667. new focus node is null, the selection should only be
  27668. cleared if the focused frame isn't changing.
  27669. (WebCore::Element::focus): Begin passing the new focused
  27670. frame.
  27671. (WebCore::Element::blur): Ditto.
  27672. * html/HTMLInputElement.cpp:
  27673. (WebCore::HTMLInputElement::focus): Ditto.
  27674. * html/HTMLTextAreaElement.cpp:
  27675. (WebCore::HTMLTextAreaElement::focus): Ditto.
  27676. * page/Frame.cpp:
  27677. (WebCore::Frame::setFocusedNodeIfNeeded): Ditto.
  27678. * page/FocusController.cpp:
  27679. (WebCore::clearSelectionIfNeeded): Take in the new
  27680. focused frame. If it's not changing, don't clear the
  27681. selection.
  27682. (WebCore::FocusController::setFocusedNode): Take
  27683. in the new focused frame.
  27684. * page/FocusController.h:
  27685. 2007-05-22 Marius Bugge Monsen <mbm@trolltech.com>
  27686. Reviewed by Zack.
  27687. Implement some more functions in ClipboardQt.
  27688. * platform/qt/ClipboardQt.cpp:
  27689. (WebCore::ClipboardQt::ClipboardQt):
  27690. (WebCore::ClipboardQt::getData):
  27691. (WebCore::ClipboardQt::setData):
  27692. (WebCore::ClipboardQt::types):
  27693. 2007-05-21 Oliver Hunt <oliver@apple.com>
  27694. Reviewed by Sam.
  27695. Fix for http://bugs.webkit.org/show_bug.cgi?id=13789
  27696. -- SVGLocatable::getScreenCTM() faulty
  27697. Needed to update SVGLength to handle the case where the SVGElement is
  27698. not the root document element -- we do this by falling back on the
  27699. renderer for the context.
  27700. For <svg> elements embedded as mixed content in xhtml we consider the
  27701. absolutePosition of the parent to be the origin for the <svg> element.
  27702. * ksvg2/svg/SVGLength.cpp:
  27703. (WebCore::SVGLength::PercentageOfViewport):
  27704. * ksvg2/svg/SVGSVGElement.cpp:
  27705. (WebCore::SVGSVGElement::getScreenCTM):
  27706. 2007-05-21 Timothy Hatcher <timothy@apple.com>
  27707. Reviewed by Adam.
  27708. <rdar://problem/5084400> -[DOMRange lineBoxRects] returns an empty array when the DOM nodes have just been created
  27709. Do a updateLayoutIgnorePendingStylesheets before asking the Node or Range for it's box rects.
  27710. * bindings/objc/DOM.mm:
  27711. (-[DOMNode boundingBox]):
  27712. (-[DOMNode lineBoxRects]):
  27713. (-[DOMRange boundingBox]):
  27714. (-[DOMRange lineBoxRects]):
  27715. 2007-05-21 Sam Weinig <sam@webkit.org>
  27716. Reviewed by George Staikos.
  27717. Fix Qt build.
  27718. * WebCore.pro: add missing IDL files.
  27719. 2007-05-21 Sam Weinig <sam@webkit.org>
  27720. Reviewed by Darin.
  27721. Patch for http://bugs.webkit.org/show_bug.cgi?id=13803
  27722. Autogenerate the JS bindings for the HTMLMarqueeElement.
  27723. * DerivedSources.make:
  27724. * WebCore.xcodeproj/project.pbxproj:
  27725. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  27726. * bindings/js/kjs_css.cpp:
  27727. (KJS::DOMCSSRule::getOwnPropertySlot): Fix possible null pointer issue.
  27728. (KJS::DOMCSSRule::put): Fix possible null pointer issue.
  27729. * bindings/js/kjs_html.cpp:
  27730. (KJS::):
  27731. (KJS::JSHTMLElement::classInfo):
  27732. (KJS::JSHTMLElement::accessors):
  27733. (KJS::JSHTMLElement::getOwnPropertySlot): Fix null pointer issue.
  27734. (KJS::HTMLElementFunction::callAsFunction):
  27735. (KJS::JSHTMLElement::put):
  27736. * bindings/js/kjs_html.h:
  27737. (KJS::JSHTMLElement::):
  27738. * html/HTMLMarqueeElement.cpp:
  27739. (WebCore::HTMLMarqueeElement::start):
  27740. (WebCore::HTMLMarqueeElement::stop):
  27741. * html/HTMLMarqueeElement.h: Add start() and stop() functions.
  27742. * html/HTMLMarqueeElement.idl: Added.
  27743. * page/DOMWindow.idl: Add marquee constructor.
  27744. 2007-05-21 Adele Peterson <adele@apple.com>
  27745. Fix by Darin, reviewed by me.
  27746. Fix for <rdar://problem/5171145> Safari crashed closing tab in NSInputContext updateInputContexts
  27747. * platform/mac/WidgetMac.mm:
  27748. (WebCore::safeRemoveFromSuperview): Added. If the view is the window's first responder, then
  27749. set the window's first responder to nil so we don't leave the window pointing to a view that's no longer in it.
  27750. (WebCore::Widget::setFocus): Don't attempt to focus the view if it has no window.
  27751. (WebCore::Widget::removeFromSuperview): Call safeRemoveFromSuperview.
  27752. (WebCore::Widget::afterMouseDown): ditto.
  27753. 2007-05-21 David Hyatt <hyatt@apple.com>
  27754. Make a line gutter backdrop so that tiny view source docs don't look
  27755. bad.
  27756. Reviewed by aroben
  27757. * css/view-source.css:
  27758. * html/HTMLViewSourceDocument.cpp:
  27759. (WebCore::HTMLViewSourceDocument::createContainingTable):
  27760. 2007-05-21 David Hyatt <hyatt@apple.com>
  27761. Make sure to distinguish between links to internal resources and
  27762. real links (anchors) in view source mode.
  27763. Reviewed by aroben
  27764. * css/view-source.css:
  27765. * html/HTMLViewSourceDocument.cpp:
  27766. (WebCore::HTMLViewSourceDocument::addViewSourceToken):
  27767. (WebCore::HTMLViewSourceDocument::addLink):
  27768. * html/HTMLViewSourceDocument.h:
  27769. 2007-05-21 Sam Weinig <sam@webkit.org>
  27770. Reviewed by Adam and Darin.
  27771. Patch for http://bugs.webkit.org/show_bug.cgi?id=13791
  27772. Autogenerate the JS bindings for the HTMLIFrameElement and HTMLFrameElement.
  27773. * DerivedSources.make:
  27774. * WebCore.xcodeproj/project.pbxproj:
  27775. * bindings/js/JSHTMLAnchorElementCustom.cpp:
  27776. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  27777. * bindings/js/kjs_html.cpp:
  27778. (KJS::):
  27779. (KJS::JSHTMLElement::classInfo):
  27780. (KJS::JSHTMLElement::accessors):
  27781. (KJS::HTMLElementFunction::callAsFunction):
  27782. * bindings/js/kjs_html.h:
  27783. (KJS::JSHTMLElement::):
  27784. * bindings/scripts/CodeGeneratorJS.pm:
  27785. * html/HTMLFrameElement.idl:
  27786. * html/HTMLFrameElementBase.cpp:
  27787. (WebCore::HTMLFrameElementBase::location):
  27788. * html/HTMLFrameElementBase.h:
  27789. * html/HTMLFrameOwnerElement.h:
  27790. (WebCore::HTMLFrameOwnerElement::contentWindow):
  27791. * html/HTMLIFrameElement.idl:
  27792. * page/DOMWindow.idl:
  27793. 2007-05-21 Lars Knoll <lars@trolltech.com>
  27794. Reviewed by Zack.
  27795. Remove the ResourceHandleManager class, it is now part of
  27796. QWebNetworkInterface. Adapt ResourceHandle to the new way
  27797. of things.
  27798. * WebCore.pro:
  27799. * platform/network/ResourceHandleInternal.h:
  27800. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  27801. * platform/network/qt/ResourceHandleManagerKDE.cpp: Removed.
  27802. * platform/network/qt/ResourceHandleManagerKDE.h: Removed.
  27803. * platform/network/qt/ResourceHandleManagerQt.cpp: Removed.
  27804. * platform/network/qt/ResourceHandleManagerQt.h: Removed.
  27805. * platform/network/qt/ResourceHandleQt.cpp:
  27806. (WebCore::ResourceHandle::~ResourceHandle):
  27807. (WebCore::ResourceHandle::start):
  27808. (WebCore::ResourceHandle::cancel):
  27809. 2007-05-21 David Hyatt <hyatt@apple.com>
  27810. Second half of fix for 13793, make sure rules=groups works properly with
  27811. spanning colgroups.
  27812. Also make sure colgroups get an actual span of 1 (instead of incorrectly
  27813. giving them a span of 0).
  27814. Reviewed by mitz
  27815. fast/table/colgroup-spanning-groups-rules.html
  27816. * html/HTMLTableColElement.cpp:
  27817. (WebCore::HTMLTableColElement::HTMLTableColElement):
  27818. * rendering/RenderTable.cpp:
  27819. (WebCore::RenderTable::colElement):
  27820. * rendering/RenderTable.h:
  27821. * rendering/RenderTableCell.cpp:
  27822. (WebCore::RenderTableCell::collapsedLeftBorder):
  27823. (WebCore::RenderTableCell::collapsedRightBorder):
  27824. 2007-05-20 David Hyatt <hyatt@apple.com>
  27825. Half of a fix for 13793, make sure rules=groups and border behave properly
  27826. together.
  27827. Reviewed by mitz
  27828. No tests added, two Mozilla table tests now pass that failed before.
  27829. * html/HTMLTableElement.cpp:
  27830. (WebCore::HTMLTableElement::getSharedCellDecl):
  27831. 2007-05-20 Brady Eidson <beidson@apple.com>
  27832. Reviewed by Geoose Garen
  27833. <rdar://problem/4758919> - Incorrect favicon shown for URL after going back
  27834. When restoring a cached page, we'd try to kick off the icon load for it, which ended up causing
  27835. shenanigans with the icon url -> page url mapping.
  27836. * loader/FrameLoader.cpp:
  27837. (WebCore::FrameLoader::endIfNotLoading): Only try an icon load if we're not restoring from the page cache
  27838. (WebCore::FrameLoader::startIconLoader): Added helpful logging that helped me track this down
  27839. (WebCore::FrameLoader::commitIconURLToIconDatabase): Ditto (and fixed a comment typo)
  27840. * loader/icon/IconLoader.cpp:
  27841. (WebCore::IconLoader::stopLoading): Don't null out the ResourceLoader here, as clearLoadingState() does that
  27842. (WebCore::IconLoader::finishLoading): Added helpful logging that helped me track this down
  27843. 2007-05-20 Darin Adler <darin@apple.com>
  27844. Reviewed by Oliver Hunt.
  27845. - fix <rdar://problem/5193416> REGRESSION: Selection on large pages extremely slow
  27846. * dom/Document.cpp: (WebCore::Document::removeMarkers): Added an early exit for the common
  27847. case where there are no markers. Changed code to iterate over all the nodes in the range
  27848. instead of using TextIterator, which is more efficient.
  27849. * page/Frame.cpp: (WebCore::Frame::respondToChangedSelection): Added checks for editable,
  27850. so we don't bother doing work related to spell checking and grammar checking when changing
  27851. the selection in non-editable text. Also rearranged the code so we only compute the old
  27852. word boundaries and sentence boundaries when actually needed, and don't do the sentence
  27853. range checks unless grammar checking is enabled.
  27854. * platform/TextBreakIteratorICU.cpp:
  27855. (WebCore::setUpIterator): Don't take a locale parameter. Always pass in currentTextBreakLocaleID.
  27856. (WebCore::characterBreakIterator): Removed local parameter.
  27857. (WebCore::wordBreakIterator): Ditto.
  27858. (WebCore::lineBreakIterator): Ditto.
  27859. (WebCore::sentenceBreakIterator): Ditto.
  27860. * platform/mac/TextBreakIteratorInternalICUMac.mm:
  27861. (WebCore::getTextBreakLocale): Broke out the code to actually get the locale.
  27862. (WebCore::currentTextBreakLocaleID): This function now handles only the caching and calls
  27863. getTextBreakLocale to actually figure it out.
  27864. * editing/visible_units.cpp: Added lots of FIXME comments, but no code change.
  27865. 2007-05-20 Adam Treat <adam@staikos.net>
  27866. Add -f to cp to deal with some obscure build environments.
  27867. Reviewed by George Staikos.
  27868. * move-js-headers.sh:
  27869. 2007-05-20 Adam Treat <adam@staikos.net>
  27870. Add missing include for auto_ptr
  27871. Reviewed by George Staikos.
  27872. * platform/graphics/ImageBuffer.h:
  27873. 2007-05-19 David Hyatt <hyatt@apple.com>
  27874. Fix for bug 13785, O(n^2) counter creation.
  27875. Reviewed by darin
  27876. * rendering/RenderCounter.cpp:
  27877. (WebCore::findPlaceForCounter):
  27878. (WebCore::RenderCounter::originalText):
  27879. 2007-05-19 Mitz Pettel <mitz@webkit.org>
  27880. Reviewed by Dave Hyatt.
  27881. - fix http://bugs.webkit.org/show_bug.cgi?id=12729
  27882. box-shadow disappears when scrolling a div that it falls on/under
  27883. Tests: fast/repaint/box-shadow-dynamic.html
  27884. fast/repaint/box-shadow-h.html
  27885. fast/repaint/box-shadow-v.html
  27886. * rendering/InlineFlowBox.cpp:
  27887. (WebCore::InlineFlowBox::placeBoxesHorizontally): Factor in box shadow.
  27888. (WebCore::InlineFlowBox::placeBoxesVertically): Ditto.
  27889. (WebCore::InlineFlowBox::paint): Account for box shadow when checking if
  27890. the damage rect intersects.
  27891. * rendering/RenderBlock.cpp:
  27892. (WebCore::RenderBlock::overflowHeight): For overflow areas, when asked
  27893. for the "exterior" overflow, add box shadow overflow.
  27894. (WebCore::RenderBlock::overflowWidth): Ditto.
  27895. (WebCore::RenderBlock::overflowLeft): Ditto.
  27896. (WebCore::RenderBlock::overflowTop): Ditto.
  27897. (WebCore::RenderBlock::overflowRect): Ditto.
  27898. (WebCore::RenderBlock::layoutBlock): Factor box shadow into visual overflow.
  27899. * rendering/RenderFlexibleBox.cpp:
  27900. (WebCore::RenderFlexibleBox::layoutBlock): Ditto.
  27901. * rendering/RenderFlow.cpp:
  27902. (WebCore::RenderFlow::lowestPosition): For overflow areas, when asked for
  27903. the "exterior" extreme position, add box shadow.
  27904. (WebCore::RenderFlow::rightmostPosition): Ditto.
  27905. (WebCore::RenderFlow::leftmostPosition): Ditto.
  27906. * rendering/RenderLayer.cpp:
  27907. (WebCore::RenderLayer::calculateRects): Avoid clipping out box shadow.
  27908. * rendering/RenderObject.cpp:
  27909. (WebCore::RenderObject::repaintAfterLayoutIfNeeded): Make sure to paint
  27910. the box shadow when an edge with a shadow moves.
  27911. (WebCore::RenderObject::adjustRectForOutlineAndShadow): Helper function
  27912. that expands a given rectangle to encompass outline and box shadow.
  27913. (WebCore::RenderObject::absoluteOutlineBox): Changed to include box shadow.
  27914. * rendering/RenderObject.h:
  27915. 2007-05-19 Mitz Pettel <mitz@webkit.org>
  27916. Reviewed by Dave Hyatt.
  27917. - fix http://bugs.webkit.org/show_bug.cgi?id=13783
  27918. REGRESSION (r21120): Frame resizers not repainted properly when dragged
  27919. * rendering/RenderFrameSet.cpp:
  27920. (WebCore::RenderFrameSet::layout):
  27921. 2007-05-19 Mitz Pettel <mitz@webkit.org>
  27922. Reviewed by Darin.
  27923. - fix http://bugs.webkit.org/show_bug.cgi?id=13774
  27924. REGRESSION: Crash emailing blog entry using Google Reader
  27925. Test: fast/table/stale-grid-crash.html
  27926. * rendering/RenderTable.cpp:
  27927. (WebCore::RenderTable::recalcSections): Made const and replaced
  27928. setNeedsLayout(true) with an assertion that the table is already
  27929. marked for layout.
  27930. (WebCore::RenderTable::sectionAbove): Added call to recalcSectionsIfNeeded().
  27931. (WebCore::RenderTable::sectionBelow): Ditto.
  27932. (WebCore::RenderTable::cellAbove): Ditto.
  27933. (WebCore::RenderTable::cellBelow): Ditto.
  27934. (WebCore::RenderTable::cellBefore): Ditto.
  27935. (WebCore::RenderTable::cellAfter): Ditto.
  27936. * rendering/RenderTable.h:
  27937. Made some private member variables which are used in section recalc mutable.
  27938. (WebCore::RenderTable::setNeedsSectionRecalc): Moved the call to
  27939. setNeedsLayout() from recalcSections() into here, because I made
  27940. recalcSections() const.
  27941. (WebCore::RenderTable::recalcSectionsIfNeeded): Made const.
  27942. 2007-05-19 Mitz Pettel <mitz@webkit.org>
  27943. Reviewed by Darin.
  27944. - http://bugs.webkit.org/show_bug.cgi?id=13320
  27945. rounded corners with drop shadows are really slow
  27946. Test for a rendering bug fixed by this patch:
  27947. fast/box-shadow/border-radius-big.html
  27948. No test for the performance ingredient.
  27949. * platform/graphics/GraphicsContext.cpp:
  27950. (WebCore::GraphicsContext::addRoundedRectClip): Made cross-platform.
  27951. Changed to use a single clipping path. If all the radii cannot be
  27952. accommodated, clips to a rect.
  27953. (WebCore::GraphicsContext::clipOutRoundedRect): Changed to use a single
  27954. clipping path. If all the radii cannot be accommodated, clips out a rect.
  27955. * platform/graphics/GraphicsContext.h: Added clipOut(const Path&).
  27956. * platform/graphics/Path.cpp:
  27957. (WebCore::Path::createRoundedRectangle): Added. Returns a rounded rectangle
  27958. with the specified radii. If all the radii cannot be accommodated, returns
  27959. a rectangular path.
  27960. * platform/graphics/Path.h:
  27961. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  27962. (WebCore::GraphicsContext::clipOut): Added.
  27963. * platform/graphics/cg/GraphicsContextCG.cpp:
  27964. (WebCore::GraphicsContext::fillRoundedRect): Changed to use a single path.
  27965. (WebCore::GraphicsContext::clipOut): Added.
  27966. * platform/graphics/qt/GraphicsContextQt.cpp:
  27967. (WebCore::GraphicsContext::clipOut): Added.
  27968. 2007-05-19 Anders Carlsson <andersca@apple.com>
  27969. Reviewed by Mitz.
  27970. Test: fast/frames/inline-object-inside-frameset.html
  27971. http://bugs.webkit.org/show_bug.cgi?id=13771
  27972. Assertion failure ASSERT(m_layer) when running Hamachi fuzz tester
  27973. Don't paint inline objects.
  27974. * rendering/RenderFrameSet.cpp:
  27975. (WebCore::RenderFrameSet::paint):
  27976. 2007-05-19 David Hyatt <hyatt@apple.com>
  27977. Add support for plain text MIME types (CSS/JS/TXT) to view source mode.
  27978. CSS/JS will eventually tokenize via their own special tokenizers so that
  27979. they can also be syntax-highlighted, but for now just treat them as
  27980. plain text.
  27981. Reviewed by aroben
  27982. * dom/DOMImplementation.cpp:
  27983. (WebCore::DOMImplementation::createDocument):
  27984. * html/HTMLViewSourceDocument.cpp:
  27985. (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
  27986. (WebCore::HTMLViewSourceDocument::createTokenizer):
  27987. (WebCore::HTMLViewSourceDocument::createContainingTable):
  27988. (WebCore::HTMLViewSourceDocument::addViewSourceText):
  27989. (WebCore::HTMLViewSourceDocument::addViewSourceToken):
  27990. * html/HTMLViewSourceDocument.h:
  27991. * loader/TextDocument.cpp:
  27992. (WebCore::TextTokenizer::TextTokenizer):
  27993. (WebCore::TextTokenizer::write):
  27994. * loader/TextDocument.h:
  27995. (WebCore::TextTokenizer::checkBuffer):
  27996. 2007-05-18 David Hyatt <hyatt@apple.com>
  27997. Fix a glitch in view source mode attribute names.
  27998. * html/HTMLViewSourceDocument.cpp:
  27999. (WebCore::HTMLViewSourceDocument::addViewSourceToken):
  28000. 2007-05-18 David Hyatt <hyatt@apple.com>
  28001. "Linkify" view source mode links.
  28002. Reviewed by andersca
  28003. * css/view-source.css:
  28004. * html/HTMLViewSourceDocument.cpp:
  28005. (WebCore::HTMLViewSourceDocument::addViewSourceToken):
  28006. (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
  28007. (WebCore::HTMLViewSourceDocument::addLink):
  28008. * html/HTMLViewSourceDocument.h:
  28009. 2007-05-18 Oliver Hunt <oliver@apple.com>
  28010. Reviewed by Sam
  28011. No longer need to pass HTMLImageElement and HTMLImageLoader on to WebKit
  28012. Need to expose CachedResourceClient constructor
  28013. * WebCore.exp:
  28014. * WebCore.xcodeproj/project.pbxproj:
  28015. 2007-05-18 David Hyatt <hyatt@apple.com>
  28016. Fix for <rdar://problem/5214338> REGRESSION: / mishandled in
  28017. HTML tokenization (13780).
  28018. Reviewed by ggaren
  28019. * html/HTMLTokenizer.cpp:
  28020. (WebCore::Token::addAttribute):
  28021. (WebCore::HTMLTokenizer::parseTag):
  28022. 2007-05-18 Brady Eidson <beidson@apple.com>
  28023. Reviewed by Maciej
  28024. http://bugs.webkit.org/show_bug.cgi?id=12681 and
  28025. <rdar://problem/5166149> - window.open() causes server to be hit twice
  28026. This regressed in http://trac.webkit.org/projects/webkit/changeset/14637
  28027. That patch was to fix broken behavior when opening an already existant window.
  28028. The unfortunate side effect was to cause the server to be hit twice.
  28029. Once during the call to frame->loader()->createWindow(), and again via a
  28030. scheduled redirection.
  28031. I decided to restore the original de-facto behavior by making the new window
  28032. open via a scheduled redirection - there is a FIXME that was already here that
  28033. explains the reason why we have to do it this way for now.
  28034. Additionally, there were two distinct places that had their own logic to open
  28035. a new window - the logic for window.open() and the logic for
  28036. window.showModalDialog(). The logic was almost identical so I condensed them
  28037. into one utility function that takes a flag to handle the slight difference.
  28038. A layout test is not possible at this time since it would involve capturing
  28039. server logs (the 1st connection does not exist long enough to result in any
  28040. delegate callbacks). That task is documented in
  28041. http://bugs.webkit.org/show_bug.cgi?id=13769
  28042. * bindings/js/kjs_window.cpp:
  28043. (KJS::createWindow): Merged the two slightly different versions of "creating a window"
  28044. logic here. For the modal dialog case the load is an immediate call to changeLocation(),
  28045. which is triggered by the "immediate" flag, and the other cases load via scheduleLocationChange()
  28046. (KJS::showModalDialog): Call createWindow()
  28047. (KJS::WindowFunc::callAsFunction): Handle frame targets of _top or _parent immediately and call
  28048. createWindow() for all others
  28049. 2007-05-18 Sam Weinig <sam@webkit.org>
  28050. Reviewed by Geoff.
  28051. Autogenerate the JS bindings for the HTMLTableElement, HTMLTableCaptionElement,
  28052. HTMLTableCellElement, HTMLTableColElement, HTMLTableRowElement, HTMLTableSectionElement.
  28053. * DerivedSources.make:
  28054. * WebCore.pro:
  28055. * WebCore.xcodeproj/project.pbxproj:
  28056. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  28057. (WebCore::createJSHTMLWrapper):
  28058. * bindings/js/kjs_html.cpp:
  28059. (KJS::):
  28060. (KJS::JSHTMLElement::classInfo):
  28061. (KJS::JSHTMLElement::accessors):
  28062. (KJS::HTMLElementFunction::callAsFunction):
  28063. * bindings/js/kjs_html.h:
  28064. (KJS::JSHTMLElement::):
  28065. * html/HTMLTableCaptionElement.idl:
  28066. * html/HTMLTableCellElement.idl:
  28067. * html/HTMLTableColElement.idl:
  28068. * html/HTMLTableElement.idl:
  28069. * html/HTMLTableRowElement.idl:
  28070. * html/HTMLTableSectionElement.idl:
  28071. * page/DOMWindow.idl:
  28072. 2007-05-18 Oliver Hunt <oliver@apple.com>
  28073. Reviewed by Sam.
  28074. Fix for <rdar://problem/5211122> DRT crash below
  28075. SVGTimer::applyAnimations when page cache is enabled
  28076. (SVG animation timers do not properly cancel themselves)
  28077. There were still a few paths in the SVG Animation code
  28078. that could cause timers to be created and used. This
  28079. patch inserts addition SVG_EXPERIMENTAL blocks to prevent
  28080. these timers from being used.
  28081. * ksvg2/misc/SVGDocumentExtensions.cpp:
  28082. (WebCore::SVGDocumentExtensions::startAnimations):
  28083. * ksvg2/misc/SVGTimer.cpp:
  28084. (WebCore::SVGTimer::animationsByElement):
  28085. (WebCore::SVGTimer::applyAnimations):
  28086. (WebCore::SVGTimer::notifyAll):
  28087. (WebCore::SVGTimer::addNotify):
  28088. (WebCore::SVGTimer::removeNotify):
  28089. * ksvg2/misc/TimeScheduler.cpp:
  28090. (WebCore::TimeScheduler::addTimer):
  28091. (WebCore::TimeScheduler::connectIntervalTimer):
  28092. (WebCore::TimeScheduler::disconnectIntervalTimer):
  28093. (WebCore::TimeScheduler::startAnimations):
  28094. (WebCore::TimeScheduler::toggleAnimations):
  28095. (WebCore::TimeScheduler::timerFired):
  28096. * ksvg2/svg/SVGAnimationElement.h:
  28097. 2007-05-18 Marius Bugge Monsen <mbm@trolltech.com>
  28098. Reviewed by Zack Rusin.
  28099. Return a valid pointer to a Clipboard object
  28100. from newGeneralClipboard.
  28101. * editing/qt/EditorQt.cpp:
  28102. (WebCore::Editor::newGeneralClipboard):
  28103. 2007-05-18 Mark Rowe <mrowe@apple.com>
  28104. Attempt to fix the Gdk build after r21562.
  28105. * platform/gdk/TemporaryLinkStubs.cpp:
  28106. (Widget::isEnabled):
  28107. * platform/gdk/WidgetGdk.cpp:
  28108. 2007-05-18 Adam Treat <treat@kde.org>
  28109. Reviewed by Lars
  28110. Remove dead code.
  28111. * platform/Widget.h:
  28112. * platform/mac/WidgetMac.mm:
  28113. * platform/qt/WidgetQt.cpp:
  28114. 2007-05-18 Holger Freyther <zecke@selfish.org>
  28115. Reviewed by Maciej.
  28116. Return true to make loading of pages working again
  28117. * loader/gdk/FrameLoaderClientGdk.cpp:
  28118. (WebCore::FrameLoaderClientGdk::canHandleRequest):
  28119. 2007-05-18 Holger Freyther <zecke@selfish.org>
  28120. Reviewed by Maciej.
  28121. Make WebCore::Widget use GtkWidget to fix focus handling.
  28122. * WebCore.pro: Add PlatformScrollBar
  28123. * platform/ScrollView.h: Gtk stuff
  28124. * platform/Widget.h: Take a GtkWidget
  28125. * platform/gdk/PlatformScrollBarGdk.cpp: Added.
  28126. (PlatformScrollbar::PlatformScrollbar):
  28127. (PlatformScrollbar::~PlatformScrollbar):
  28128. (PlatformScrollbar::width):
  28129. (PlatformScrollbar::height):
  28130. (PlatformScrollbar::setEnabled):
  28131. (PlatformScrollbar::paint):
  28132. (PlatformScrollbar::updateThumbPosition):
  28133. (PlatformScrollbar::updateThumbProportion):
  28134. (PlatformScrollbar::setRect):
  28135. * platform/gdk/ScreenGdk.cpp: Implement depth handling
  28136. (WebCore::screenDepth):
  28137. * platform/gdk/ScrollViewGdk.cpp: use setGtkWidget, not setDrawable
  28138. (WebCore::ScrollView::setGtkWidget):
  28139. * platform/gdk/TemporaryLinkStubs.cpp:
  28140. * platform/gdk/WidgetGdk.cpp:
  28141. (WebCore::Widget::Widget):
  28142. (WebCore::Widget::gtkWidget):
  28143. (WebCore::Widget::setGtkWidget):
  28144. (WebCore::Widget::hasFocus):
  28145. (WebCore::Widget::setFocus):
  28146. 2007-05-18 Lars Knoll <lars@trolltech.com>
  28147. Reviewed by Zack
  28148. Correctly implement initialiseSupportedImageMIMETypes.
  28149. * platform/MimeTypeRegistry.cpp:
  28150. (WebCore::initialiseSupportedImageMIMETypes):
  28151. * platform/qt/MimeTypeRegistryQt.cpp:
  28152. (WebCore::):
  28153. 2007-05-18 Holger Hans Peter Freyther <zecke@selfish.org>
  28154. Reviewed by Maciej.
  28155. Build fix for non-Qt and non-Mac ports.
  28156. * html/HTMLCanvasElement.h:
  28157. 2007-05-18 Holger Hans Peter Freyther <zecke@selfish.org>
  28158. Reviewed by Mark Rowe.
  28159. No test added as this is hard to time.
  28160. * platform/gdk/FrameGdk.cpp: Use needsLayout() to decide if layout()
  28161. is needed.
  28162. (WebCore::FrameGdk::dumpRenderTree):
  28163. (WebCore::FrameGdk::handleGdkEvent):
  28164. 2007-05-18 Simon Hausmann <hausmann@kde.org>
  28165. Reviewed by Lars.
  28166. * WebCore.pro: Create a pkg-config file to make it easier to locate
  28167. and use WebKitQt.
  28168. 2007-05-18 Lars Knoll <lars@trolltech.com>
  28169. Reviewed by Hyatt.
  28170. Remove unused handleMouseEvent methods in the Widget
  28171. and derived classes.
  28172. * page/EventHandler.cpp:
  28173. (WebCore::EventHandler::handleMouseMoveEvent):
  28174. * page/FrameView.cpp:
  28175. * page/FrameView.h:
  28176. * page/mac/EventHandlerMac.mm:
  28177. (WebCore::EventHandler::mouseDragged):
  28178. (WebCore::EventHandler::mouseMoved):
  28179. * platform/ScrollBar.h:
  28180. * platform/Widget.h:
  28181. * platform/win/PlatformScrollBar.h:
  28182. * platform/win/TemporaryLinkStubs.cpp:
  28183. (WebCore::PlatformScrollbar::setRect):
  28184. * platform/wx/PlatformScrollBar.h:
  28185. 2007-05-18 George Staikos <staikos@kde.org>
  28186. Reviewed by Lars.
  28187. Use the proper clipping algorithm. Might be a bit slow but we
  28188. can optimize it later.
  28189. * platform/graphics/qt/GraphicsContextQt.cpp:
  28190. (WebCore::GraphicsContext::clip):
  28191. 2007-05-17 Sam Weinig <sam@webkit.org>
  28192. Reviewed by George Staikos.
  28193. Fix Qt build after adding JSHTMLAnchorElementCustom.cpp.
  28194. * WebCore.pro:
  28195. 2007-05-17 George Staikos <staikos@kde.org>
  28196. Reviewed by hyatt.
  28197. Fix preprocessor logic for CG/QT
  28198. * html/HTMLCanvasElement.cpp:
  28199. (WebCore::HTMLCanvasElement::reset):
  28200. 2007-05-17 David Hyatt <hyatt@apple.com>
  28201. Add a line gutter to view source mode. The gutter uses counters, and this exposed the fact
  28202. that pseudoStyleForElement was not walking all UA rules properly.
  28203. Reviewed by aroben
  28204. * css/cssstyleselector.cpp:
  28205. (WebCore::CSSStyleSelector::pseudoStyleForElement):
  28206. * css/view-source.css:
  28207. * html/HTMLViewSourceDocument.cpp:
  28208. (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
  28209. (WebCore::HTMLViewSourceDocument::addViewSourceToken):
  28210. (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
  28211. (WebCore::HTMLViewSourceDocument::addLine):
  28212. (WebCore::HTMLViewSourceDocument::addText):
  28213. * html/HTMLViewSourceDocument.h:
  28214. 2007-05-17 Justin Garcia <justin.garcia@apple.com>
  28215. Reviewed by ggaren
  28216. <rdar://problem/5209984> REGRESSION: Crash on click after clearing Facebook status
  28217. comparePositions() expects non-null positions. It's
  28218. given a null position by contains() if the current
  28219. selection is a range selection but contains only invisible
  28220. content *and* visible positions cannot be created from its
  28221. end points. This can happen when there is a range selection
  28222. inside shadow content (like that inside text fields) that
  28223. is made invisible.
  28224. * editing/SelectionController.cpp:
  28225. (WebCore::SelectionController::contains): Check for
  28226. invisible end points.
  28227. 2007-05-17 Sam Weinig <sam@webkit.org>
  28228. Reviewed by Adam.
  28229. Fix for <rdar://problem/5201423> REGRESSION: Links in
  28230. sidebar don't work on Honda website
  28231. Anchor elements need to have the same behavior for implicit and
  28232. explicit toString() calls.
  28233. Test: fast/dom/anchor-toString.html
  28234. * WebCore.xcodeproj/project.pbxproj:
  28235. * bindings/js/JSHTMLAnchorElementCustom.cpp: Added.
  28236. (WebCore::JSHTMLAnchorElement::toString):
  28237. * html/HTMLAnchorElement.idl:
  28238. 2007-05-17 Geoffrey Garen <ggaren@apple.com>
  28239. Build fix.
  28240. 2007-05-17 Adele Peterson <adele@apple.com>
  28241. Reviewed by Hyatt.
  28242. Update RenderMenuList PopupClient methods to consider style of inner block.
  28243. * rendering/RenderMenuList.cpp:
  28244. (WebCore::RenderMenuList::itemStyle):
  28245. (WebCore::RenderMenuList::clientStyle):
  28246. 2007-05-17 Maciej Stachowiak <mjs@apple.com>
  28247. Not reviewed, emergency test fix.
  28248. - avoid crash on layout tests.
  28249. Patched up my last change so that widgets don't crash.
  28250. * loader/FrameLoader.cpp:
  28251. (WebCore::FrameLoader::mainReceivedCompleteError):
  28252. 2007-05-17 Antti Koivisto <antti@apple.com>
  28253. Reviewed by Darin.
  28254. Fix for http://bugs.webkit.org/show_bug.cgi?id=13727
  28255. REGRESSION: Reproducible hang setting the selection's extent offset to -1
  28256. <rdar://problem/5206890>
  28257. Rise INDEX_SIZE_ERR if used selection index is negative. This matches HTML5 for
  28258. getRangeAt() and collapse() which are part of the spec (FF throws NS_ERROR_FAILURE).
  28259. Not throwing exceptions yet for too high offsets (except getRangeAt()) as it is
  28260. unclear if WebCore's definition of offsets is the same as other browsers.
  28261. * bindings/js/kjs_window.cpp:
  28262. * WebCore/editing/SelectionController.cpp:
  28263. * WebCore/editing/SelectionController.h:
  28264. * WebCore/editing/VisiblePosition.cpp:
  28265. 2007-05-17 Adele Peterson <adele@apple.com>
  28266. Reviewed by Mitz.
  28267. Fix for <rdar://problem/5096035> REGRESSION: rtl text should be left-aligned in <select>s
  28268. Test: fast/text/international/bidi-menulist.html
  28269. * rendering/RenderMenuList.cpp:
  28270. (WebCore::RenderMenuList::adjustInnerStyle): Set the inner block style to direction: ltr, and text-align: left. This means that
  28271. we will ignore those settings in the button to match the way the text is displayed in the popup menu.
  28272. (WebCore::RenderMenuList::createInnerBlock): Call adjustInnerStyle.
  28273. (WebCore::RenderMenuList::setStyle): ditto.
  28274. * rendering/RenderMenuList.h: Added adjustInnerStyle.
  28275. 2007-05-17 Justin Garcia <justin.garcia@apple.com>
  28276. Reviewed by harrison
  28277. <rdar://problem/4924441> List becomes nested when changing its type
  28278. <rdar://problem/5210032> Content before a list is placed at the end of the list when its made into a list item
  28279. <rdar://problem/5207369> Crash when removing ordering from a nested list
  28280. * editing/InsertListCommand.cpp:
  28281. (WebCore::InsertListCommand::doApply):
  28282. The outermostEnclosingList of the position before the start isn't
  28283. the previousList if it contains the start.
  28284. Ditto for the position after the end and the nextList.
  28285. If we're putting the newly created list item into the next list,
  28286. insert it at the start of that list, not the end (don't append).
  28287. Avoid nesting newly created lists inside list items.
  28288. 2007-05-17 Patti Hoa <patti@apple.com>
  28289. Reviewed by Darin.
  28290. <rdar://problem/4775672> AXTextMarkerRangeForUnorderedTextMarkers returns incorrect order
  28291. * bridge/mac/WebCoreAXObject.mm:
  28292. (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
  28293. A selection's m_start is not guranteed to equal m_base since m_start can actually be m_base's downstream().
  28294. A more accurate way to determine the order from selection is to ask directly for isBaseFirst().
  28295. In addition, if the two visible positions given are the same position but different affinity, we need to
  28296. handle it here rather than depend on the selection. This is because selection does not retain the
  28297. affinity of both selection start/end visible positions as part of the selection validation.
  28298. 2007-05-17 Mitz Pettel <mitz@webkit.org>
  28299. Reviewed by Brady
  28300. - fix http://bugs.webkit.org/show_bug.cgi?id=13759
  28301. REGRESSION (r20182-r20184): Incorrect rendering of multipart images
  28302. Test: http/tests/multipart/invalid-image-data.html
  28303. * loader/loader.cpp:
  28304. (WebCore::Loader::didReceiveData): Make a copy of the current part's data
  28305. instead of using the resource data, because the latter is going to be
  28306. overwritten by the new part being received.
  28307. 2007-05-17 Oliver Hunt <oliver@apple.com>
  28308. Reviewed by Justin.
  28309. Fix for <rdar://problem/4244861> Safari fails to create image file
  28310. after releasing dragged image that has changed on source page
  28311. Tell xcode to copy HTMLImageElement.h and HTMLImageLoader.h headers
  28312. across to WebKit as private headers.
  28313. * WebCore.xcodeproj/project.pbxproj:
  28314. 2007-05-17 Justin Garcia <justin.garcia@apple.com>
  28315. Reviewed by harrison
  28316. <rdar://problem/5190926>
  28317. Gmail Editor: Crash when removing list style from underlined, multi-item list
  28318. The user underlined some text, then created a list.
  28319. The list was placed inside the inline element carrying
  28320. the underline style, so, that element surrounded the
  28321. list instead of being at the lowest level (just above
  28322. text nodes). This kind of markup is more difficult to
  28323. edit. Filed 5192089 and added a workaround so that we
  28324. don't produce this kind of markup.
  28325. * editing/InsertListCommand.cpp:
  28326. (WebCore::InsertListCommand::doApply): Avoid inline
  28327. elements when inserting the new list.
  28328. 2007-05-17 David Hyatt <hyatt@apple.com>
  28329. Allow redundant attributes with the same name in view source mode.
  28330. Reviewed by aroben
  28331. * dom/NamedAttrMap.h:
  28332. (WebCore::NamedAttrMap::insertAttribute):
  28333. * html/HTMLTokenizer.cpp:
  28334. (WebCore::Token::addAttribute):
  28335. 2007-05-17 George Staikos <staikos@kde.org>
  28336. - Back out last patch based on discussion with Zack.
  28337. * platform/qt/WidgetQt.cpp:
  28338. (WebCore::Widget::paint):
  28339. 2007-05-16 Anders Carlsson <andersca@apple.com>
  28340. Reviewed by Darin.
  28341. <rdar://problem/5207156> Hamachi test tool causes assertion in FormCompletionController in Safari
  28342. This happens because the form delegate gets passed the wrong source frame during the second submit().
  28343. If a frame with the given name is found, FrameLoader::load is called with the same parameters on the found frame.
  28344. This causes the found frame to be used as the source frame, which is wrong.
  28345. The fix is to create the form state object before checking what frame to load the new request in.
  28346. * WebCore.exp:
  28347. * loader/FrameLoader.cpp:
  28348. (WebCore::FrameLoader::load):
  28349. (WebCore::FrameLoader::checkNavigationPolicy):
  28350. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  28351. * loader/FrameLoader.h:
  28352. * manual-tests/submit-form-with-target-twice.html: Added.
  28353. 2007-05-16 Maciej Stachowiak <mjs@apple.com>
  28354. Reviewed by Oliver.
  28355. <rdar://problem/5205914> REGRESSION: PLT stops after loading first page due to r21479
  28356. * loader/FrameLoader.cpp:
  28357. (WebCore::FrameLoader::frameHasLoaded):
  28358. 2007-05-16 David Hyatt <hyatt@apple.com>
  28359. Improve the syntax-highlighted view source mode. It now preserves all whitespace properly
  28360. and highlights doctypes and comments (in addition to all the stuff it could highlight before).
  28361. Reviewed by aroben
  28362. * html/HTMLTokenizer.cpp:
  28363. (WebCore::Token::addAttribute):
  28364. (WebCore::HTMLTokenizer::parseTag):
  28365. * html/HTMLTokenizer.h:
  28366. (WebCore::Token::Token):
  28367. (WebCore::Token::~Token):
  28368. (WebCore::Token::reset):
  28369. (WebCore::Token::addViewSourceChar):
  28370. * html/HTMLViewSourceDocument.cpp:
  28371. (WebCore::HTMLViewSourceDocument::addViewSourceToken):
  28372. * html/HTMLViewSourceDocument.h:
  28373. 2007-05-16 Maciej Stachowiak <mjs@apple.com>
  28374. Reviewed by Adam.
  28375. <rdar://problem/5191024> Page never loads completely (emonome.vodpod.com)
  28376. <rdar://problem/5205162> REGRESSION (r21367): In the Address URL field, typing a site name doesn't redirect to site after pressing return
  28377. http://bugs.webkit.org/show_bug.cgi?id=13683
  28378. <rdar://problem/5208951> REGRESSION: Progress bar never completes on link click that downloads (13694)
  28379. http://bugs.webkit.org/show_bug.cgi?id=13694
  28380. <rdar://problem/5201598> REGRESSION: After uploading file to iDisk at mac.com, "loading" status remains and file does not appear in the list
  28381. * loader/FrameLoader.cpp:
  28382. (WebCore::FrameLoader::mainReceivedCompleteError): Make sure to always check whether the overall
  28383. load completed, even if we think the current frame load is already complete.
  28384. 2007-05-16 Beth Dakin <bdakin@apple.com>
  28385. Reviewed by Hyatt.
  28386. Fix for <rdar://problem/5204107> REGRESSION: CSS web forum site
  28387. layout not displaying properly in latest WebKit
  28388. Hyatt's http://trac.webkit.org/projects/webkit/changeset/21428
  28389. exposed this bug. We were not handling error cases with <caption>
  28390. correctly. This patch makes them do the same thing as colgroup.
  28391. * html/HTMLParser.cpp:
  28392. (WebCore::HTMLParser::handleError):
  28393. * html/HTMLParserErrorCodes.cpp: No need any more for caption-
  28394. specific errors.
  28395. (WebCore::htmlParserErrorMessageTemplate):
  28396. * html/HTMLParserErrorCodes.h:
  28397. (WebCore::):
  28398. 2007-05-16 Kevin McCullough <kmccullough@apple.com>
  28399. Reviewed by Darin and Geoff.
  28400. - rdar://problem/4981886
  28401. - Now windows opened by the DOM can be closed by JS.
  28402. * bindings/js/kjs_window.cpp:
  28403. (KJS::createNewWindow):
  28404. (KJS::WindowFunc::callAsFunction):
  28405. * loader/FrameLoader.cpp:
  28406. (WebCore::FrameLoader::FrameLoader):
  28407. (WebCore::FrameLoader::openedByDOM):
  28408. (WebCore::FrameLoader::setOpenedByDOM):
  28409. (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
  28410. * loader/FrameLoader.h:
  28411. 2007-05-16 Darin Adler <darin@apple.com>
  28412. Reviewed by Hyatt.
  28413. - fix <rdar://problem/4928671> Crash due to runaway recursion when fieldset has display: table-row (12066)
  28414. Test: fast/css/fieldset-display-row.html
  28415. * rendering/RenderContainer.cpp: (WebCore::RenderContainer::addChild):
  28416. Change all decision making about special handling for new children to use
  28417. the class of the render object instead of the style, except for the cases
  28418. where the style is the only way to tell (TABLE_COLUMN_GROUP and TABLE_CAPTION).
  28419. Thus a RenderFieldset with table-row style won't get handled as if it was
  28420. a table row.
  28421. * rendering/RenderTable.cpp: (WebCore::RenderTable::addChild): Same thing.
  28422. Except that here the styles that we ahave to look at are TABLE_CAPTION,
  28423. TABLE_HEADER_GROUP, TABLE_FOOTER_GROUP, and TABLE_ROW_GROUP.
  28424. 2007-05-16 Zack Rusin <zrusin@trolltech.com>
  28425. Reviewed by Lars.
  28426. Implement bigger parts of the Canvas element in the
  28427. Qt port. Gradients and patterns are missing.
  28428. * WebCore/html/CanvasRenderingContext2D.cpp:
  28429. * WebCore/html/CanvasStyle.cpp:
  28430. * WebCore/html/HTMLCanvasElement.cpp:
  28431. * WebCore/html/HTMLCanvasElement:
  28432. 2007-05-16 Zack Rusin <zrusin@trolltech.com>
  28433. Reviewed by Lars
  28434. Fix shared timers, make them use miliseconds. Based
  28435. on a patch from George.
  28436. * WebCore/platform/qt/SharedTimerQt.cpp:
  28437. (WebCore::setSharedTimerFireTime):
  28438. 2007-05-16 David Hyatt <hyatt@apple.com>
  28439. Add rudimentary error reporting to the HTML parser. This is disabled
  28440. for now until it gets beefed up a bit more (and until we work out how
  28441. best to pass the messages up without hurting perf).
  28442. Clean up and remove dead error handling code and incorrect error handling
  28443. code as well.
  28444. Reviewed by mjs
  28445. * WebCore.xcodeproj/project.pbxproj:
  28446. * html/HTMLParser.cpp:
  28447. (WebCore::HTMLParser::HTMLParser):
  28448. (WebCore::HTMLParser::handleError):
  28449. (WebCore::HTMLParser::headCreateErrorCheck):
  28450. (WebCore::HTMLParser::reportErrorToConsole):
  28451. * html/HTMLParser.h:
  28452. (WebCore::HTMLParser::reportError):
  28453. * html/HTMLParserErrorCodes.cpp: Added.
  28454. (WebCore::htmlParserErrorMessageTemplate):
  28455. * html/HTMLParserErrorCodes.h: Added.
  28456. (WebCore::):
  28457. * html/HTMLTokenizer.h:
  28458. (WebCore::HTMLTokenizer::tagStartLineNumber):
  28459. 2007-05-15 David Hyatt <hyatt@apple.com>
  28460. Make FrameLoader write "<html><body>" instead of just "<body>".
  28461. Reviewed by aroben
  28462. * loader/FrameLoader.cpp:
  28463. (WebCore::FrameLoader::init):
  28464. 2007-05-15 George Staikos <staikos@kde.org>
  28465. Reviewed by Adam Roben.
  28466. - Pass cookies through from the loader.
  28467. * platform/network/qt/ResourceHandleManagerQt.cpp:
  28468. (WebCore::ResourceHandleManager::receivedResponse):
  28469. 2007-05-15 Adam Treat <adam@staikos.net>
  28470. Reviewed by George Staikos.
  28471. - Implement drawArc with proper units.
  28472. * platform/graphics/qt/GraphicsContextQt.cpp:
  28473. (WebCore::GraphicsContext::strokeArc):
  28474. 2007-05-15 Adam Treat <adam@staikos.net>
  28475. Reviewed by George Staikos.
  28476. - Add missing paint for nested subframes.
  28477. * platform/qt/WidgetQt.cpp:
  28478. (WebCore::Widget::paint):
  28479. 2007-05-15 Sam Weinig <sam@webkit.org>
  28480. Reviewed by Oliver.
  28481. - Patch for http://bugs.webkit.org/show_bug.cgi?id=13722
  28482. Finish testing and fixing the setting of DOM attributes to JS null
  28483. Convert JS null to null string for SVG attributes.
  28484. Test: fast/dom/svg-element-attribute-js-null.xhtml
  28485. * ksvg2/svg/SVGAngle.idl:
  28486. * ksvg2/svg/SVGElement.idl:
  28487. * ksvg2/svg/SVGLength.idl:
  28488. * ksvg2/svg/SVGScriptElement.idl:
  28489. 2007-05-15 Sam Weinig <sam@webkit.org>
  28490. Reviewed by Oliver.
  28491. - Patch for http://bugs.webkit.org/show_bug.cgi?id=13722
  28492. Finish testing and fixing the setting of DOM attributes to JS null
  28493. Convert JS null to null string for CanvasRenderingContext2D attributes.
  28494. Test: fast/dom/canvasContext2d-element-attribute-js-null.html
  28495. * html/CanvasRenderingContext2D.idl:
  28496. 2007-05-15 Oliver Hunt <oliver@apple.com>
  28497. Reviewed by Sam and Geoff.
  28498. Removing dead code left behind from drag and drop refactoring.
  28499. * page/mac/WebCoreFrameBridge.h:
  28500. 2007-05-15 Sam Weinig <sam@webkit.org>
  28501. Reviewed by Oliver.
  28502. - Second Patch for http://bugs.webkit.org/show_bug.cgi?id=13722
  28503. Finish testing and fixing the setting of DOM attributes to JS null
  28504. Convert JS null to null string for remaining CSSOM attributes.
  28505. Test: fast/dom/css-element-attribute-js-null.html
  28506. * bindings/js/kjs_css.cpp:
  28507. (KJS::DOMCSSStyleDeclaration::put):
  28508. (KJS::DOMMediaList::put):
  28509. (KJS::DOMCSSRule::putValueProperty):
  28510. (KJS::DOMCSSValue::put):
  28511. * css/CSSPageRule.idl:
  28512. * css/CSSRule.idl:
  28513. * css/CSSStyleDeclaration.idl:
  28514. * css/CSSStyleRule.idl:
  28515. * css/CSSValue.idl:
  28516. * css/MediaList.idl:
  28517. 2007-05-15 Darin Adler <darin@apple.com>
  28518. Reviewed by Hyatt.
  28519. * css/html4.css: Remove wbr style rule -- not needed any more.
  28520. 2007-05-15 Mitz Pettel <mitz@webkit.org>
  28521. Reviewed by Brady
  28522. - fix http://bugs.webkit.org/show_bug.cgi?id=13360
  28523. REGRESSION: Crash closing live web cam viewer page
  28524. Test: http/tests/misc/multipart.html
  28525. * loader/ResourceLoader.cpp:
  28526. (WebCore::ResourceLoader::didFail): Avoid calling didFailToLoad() if
  28527. didFinishLoad() has already been called (when the first part of a
  28528. multipart resource arrived).
  28529. (WebCore::ResourceLoader::didCancel): Ditto.
  28530. 2007-05-15 Sam Weinig <sam@webkit.org>
  28531. Reviewed by Darin.
  28532. - Patch for http://bugs.webkit.org/show_bug.cgi?id=13722
  28533. Finish testing and fixing the setting of DOM attributes to JS null
  28534. Convert JS null to null string for remaining Core DOM attributes.
  28535. Test: fast/dom/coreDOM-element-attribute-js-null.xhtml
  28536. * dom/Attr.cpp:
  28537. (WebCore::Attr::setValue): Don't throw an expection for null values as this
  28538. is not in the spec and Firefox does not do it either.
  28539. * dom/Attr.idl:
  28540. * dom/CharacterData.idl:
  28541. * dom/ProcessingInstruction.idl:
  28542. 2007-05-15 Mitz Pettel <mitz@webkit.org>
  28543. Reviewed by Hyatt.
  28544. - fix http://bugs.webkit.org/show_bug.cgi?id=13718
  28545. REGRESSION (r21093): editing/execCommand/5136770.html failing pixel test
  28546. * rendering/RenderContainer.cpp:
  28547. (WebCore::RenderContainer::removeChildNode): Moved the code that clears the
  28548. selection when moving a selection border into the fast path.
  28549. 2007-05-15 Rob Buis <buis@kde.org>
  28550. Reviewed by Hyatt.
  28551. http://bugs.webkit.org/show_bug.cgi?id=6487
  28552. "Make Text Bigger/Smaller" affects SVGs when it probably shouldn't
  28553. Ignore Make Text Bigger/Smaller for SVG text.
  28554. * css/svg.css:
  28555. 2007-05-15 Anders Carlsson <andersca@apple.com>
  28556. Reviewed by Maciej.
  28557. <rdar://problem/5183685>
  28558. http://bugs.webkit.org/show_bug.cgi?id=13301
  28559. ASSERT or null value when trying to use a getter defined on a window object
  28560. Handle the case where the value returned is a getter/setter object.
  28561. * bindings/js/kjs_window.cpp:
  28562. (KJS::Window::getOverridePropertySlot):
  28563. 2007-05-14 Anders Carlsson <andersca@apple.com>
  28564. Reviewed by Geoff.
  28565. <rdar://problem/5200816>
  28566. REGRESSION: With Shiira 1.2.2 , I can't open embedded link in flash object by clicking (http:/www.adobe.com )
  28567. Shiira under some circumstances passes nil as the request to -[WebFrame loadRequest:]. ToT WebKit doesn't call any policy
  28568. delegate methods in this case, which means that the page is actually being loaded.
  28569. This patch makes ToT WebKit behave in the same way as Tiger WebKit when the request is nil.
  28570. * loader/FrameLoader.cpp:
  28571. (WebCore::FrameLoader::checkNavigationPolicy):
  28572. Don't continue without calling the navigation policy method if the request is null.
  28573. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  28574. If the request can't be handled, don't continue the load.
  28575. * platform/network/mac/ResourceRequestMac.mm:
  28576. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  28577. Don't create an NSURLRequest object if the request is null.
  28578. 2007-05-15 Maciej Stachowiak <mjs@apple.com>
  28579. Reviewed by Hyatt and Lars.
  28580. - fixed <rdar://problem/5201758> REGRESSION: Stop button enabled and other problems caused by [WebView currentURL] returning non-nil for empty window
  28581. * WebCore.exp: export new symbol
  28582. * loader/FrameLoader.cpp:
  28583. (WebCore::FrameLoader::begin): move marker that we committed a real doc load from here...
  28584. (WebCore::FrameLoader::transitionToCommitted): ...to here
  28585. (WebCore::FrameLoader::frameHasLoaded): check that we have at least started loading something
  28586. besides the initial empty doc.
  28587. * loader/FrameLoader.h:
  28588. 2007-05-14 Justin Garcia <justin.garcia@apple.com>
  28589. Reviewed by ggaren
  28590. <http://bugs.webkit.org/show_bug.cgi?id=13716>
  28591. REGRESSION: Three new layout test failures
  28592. Two failures are correct. Updated their expected results.
  28593. In fast/events/frame-tab-focus.html, as we advance
  28594. through focusable nodes, we descend into a subframe
  28595. to focus a node and then ascend out of it into the
  28596. main frame to focus the next. When we focus the main
  28597. frame, the node in that frame that was previously
  28598. focused and contains an inactive selection is focused
  28599. momentarily because setCaretVisible tries to focus the
  28600. node containing the caret.
  28601. * page/Frame.cpp:
  28602. (WebCore::Frame::setCaretVisible): Don't focus the
  28603. node containing the caret. FocusController will focus
  28604. the previously focused node (which will contain the
  28605. caret) if necessary when the frame gains focus.
  28606. 2007-05-14 Maciej Stachowiak <mjs@apple.com>
  28607. Reviewed by Brady.
  28608. - fixed <rdar://problem/5203036> REGRESSION: Assertion failure in WebCore::FrameLoader::restoreScrollPositionAndViewState() going back from fark.com Photoshop contest (13684)
  28609. Test: http/tests/navigation/back-to-slow-frame.html
  28610. * loader/FrameLoader.cpp:
  28611. (WebCore::FrameLoader::restoreScrollPositionAndViewState): Add needed early return.
  28612. 2007-05-14 Mitz Pettel <mitz@webkit.org>
  28613. Reviewed by Dave Hyatt.
  28614. - fix http://bugs.webkit.org/show_bug.cgi?id=13603
  28615. style leaks in washingtonpost.com
  28616. also known as http://bugs.webkit.org/show_bug.cgi?id=8750
  28617. w3c.org: incorrect recovery from unclosed <a> elements
  28618. also known as http://bugs.webkit.org/show_bug.cgi?id=12808
  28619. Handling of misnested tags results in entire page appearing as link
  28620. also known as http://bugs.webkit.org/show_bug.cgi?id=12861
  28621. Post text renders as link
  28622. Test: fast/parser/residual-style-close-across-n-blocks.html
  28623. * html/HTMLParser.cpp:
  28624. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): Changed to
  28625. deal with multiple block crossings instead of bailing out, by doing multiple
  28626. reparenting passes, starting from the outermost block.
  28627. 2007-05-14 Mitz Pettel <mitz@webkit.org>
  28628. Reviewed by Darin.
  28629. - fix http://bugs.webkit.org/show_bug.cgi?id=13711
  28630. REGRESSION - Bookmark Bar text rendering changed
  28631. No test possible since this patch affects only Safari chrome.
  28632. * platform/Font.cpp:
  28633. (WebCore::Font::Font): Initialize m_isPlatformFont according to whether
  28634. the Font object is derived from a FontPlatformData or not.
  28635. * platform/Font.h:
  28636. (WebCore::Font::isPlatformFont): Added. Returns whether this Font was
  28637. derived from a platform font.
  28638. * platform/mac/FontCacheMac.mm:
  28639. (WebCore::FontCache::getFontDataForCharacters): Changed to not enable
  28640. synthetic bold and italic in the fallback fonts if the original font
  28641. was derived from a platform font.
  28642. 2007-05-14 Sam Weinig <sam@webkit.org>
  28643. Reviewed by Alice!
  28644. - Patch for http://bugs.webkit.org/show_bug.cgi?id=13541
  28645. REGRESSION: Setting a DOMString attribute to JS null in the
  28646. JS bindings should default to converting to the empty string
  28647. Convert JS null to the empty string when passing it to an attribute that takes
  28648. a DOMString.
  28649. Test: fast/dom/document-attribute-js-null.html
  28650. Test: fast/dom/element-attribute-js-null.html
  28651. * bindings/js/kjs_dom.cpp:
  28652. (KJS::DOMNode::putValueProperty):
  28653. * bindings/js/kjs_html.cpp:
  28654. (KJS::JSHTMLDocument::putValueProperty):
  28655. (KJS::JSHTMLElement::objectSetter):
  28656. (KJS::JSHTMLElement::embedSetter):
  28657. (KJS::JSHTMLElement::tableSetter):
  28658. (KJS::JSHTMLElement::tableCaptionSetter):
  28659. (KJS::JSHTMLElement::tableColSetter):
  28660. (KJS::JSHTMLElement::tableSectionSetter):
  28661. (KJS::JSHTMLElement::tableRowSetter):
  28662. (KJS::JSHTMLElement::tableCellSetter):
  28663. (KJS::JSHTMLElement::frameSetSetter):
  28664. (KJS::JSHTMLElement::frameSetter):
  28665. (KJS::JSHTMLElement::iFrameSetter):
  28666. (KJS::JSHTMLElement::marqueeSetter):
  28667. (KJS::JSHTMLElement::putValueProperty):
  28668. * bindings/js/kjs_html.h:
  28669. * dom/Document.idl:
  28670. * dom/Node.idl:
  28671. * html/HTMLAnchorElement.idl:
  28672. * html/HTMLAppletElement.idl:
  28673. * html/HTMLAreaElement.idl:
  28674. * html/HTMLBRElement.idl:
  28675. * html/HTMLBaseElement.idl:
  28676. * html/HTMLBaseFontElement.idl:
  28677. * html/HTMLBlockquoteElement.idl:
  28678. * html/HTMLBodyElement.idl:
  28679. * html/HTMLButtonElement.idl:
  28680. * html/HTMLDivElement.idl:
  28681. * html/HTMLDocument.idl:
  28682. * html/HTMLElement.idl:
  28683. * html/HTMLEmbedElement.idl:
  28684. * html/HTMLFontElement.idl:
  28685. * html/HTMLFormElement.idl:
  28686. * html/HTMLFrameElement.idl:
  28687. * html/HTMLFrameSetElement.idl:
  28688. * html/HTMLHRElement.idl:
  28689. * html/HTMLHeadElement.idl:
  28690. * html/HTMLHeadingElement.idl:
  28691. * html/HTMLHtmlElement.idl:
  28692. * html/HTMLIFrameElement.idl:
  28693. * html/HTMLImageElement.idl:
  28694. * html/HTMLInputElement.idl:
  28695. * html/HTMLIsIndexElement.idl:
  28696. * html/HTMLLIElement.idl:
  28697. * html/HTMLLabelElement.idl:
  28698. * html/HTMLLegendElement.idl:
  28699. * html/HTMLLinkElement.idl:
  28700. * html/HTMLMapElement.idl:
  28701. * html/HTMLMetaElement.idl:
  28702. * html/HTMLModElement.idl:
  28703. * html/HTMLOListElement.idl:
  28704. * html/HTMLObjectElement.idl:
  28705. * html/HTMLOptGroupElement.idl:
  28706. * html/HTMLOptionElement.idl:
  28707. * html/HTMLParagraphElement.idl:
  28708. * html/HTMLParamElement.idl:
  28709. * html/HTMLQuoteElement.idl:
  28710. * html/HTMLScriptElement.idl:
  28711. * html/HTMLSelectElement.idl:
  28712. * html/HTMLStyleElement.idl:
  28713. * html/HTMLTableCaptionElement.idl:
  28714. * html/HTMLTableCellElement.idl:
  28715. * html/HTMLTableColElement.idl:
  28716. * html/HTMLTableElement.idl:
  28717. * html/HTMLTableRowElement.idl:
  28718. * html/HTMLTableSectionElement.idl:
  28719. * html/HTMLTextAreaElement.idl:
  28720. * html/HTMLTitleElement.idl:
  28721. * html/HTMLUListElement.idl:
  28722. 2007-05-14 Geoffrey Garen <ggaren@apple.com>
  28723. Trying to fix the Qt build.
  28724. * WebCore.pro:
  28725. 2007-05-14 Geoffrey Garen <ggaren@apple.com>
  28726. Reviewed by Oliver Hunt.
  28727. Some improvements on my last patch, suggested by Darin.
  28728. * history/PageCache.cpp:
  28729. (WebCore::PageCache::autoreleaseNow): Swap with an empty set instead of
  28730. building up an array and then calling clear(). This is slightly more
  28731. efficient and the code is cleaner.
  28732. 2007-05-14 Justin Garcia <justin.garcia@apple.com>
  28733. Reviewed by darin
  28734. <rdar://problem/5136696> Selection is removed when focusing a node in another frame
  28735. <rdar://problem/5192388> WordPress: Can't insert links/images
  28736. Don't clear a selection when changing focus if the new
  28737. focus node is in a different frame than the old selection.
  28738. * dom/Document.cpp:
  28739. (WebCore::Document::setFocusedNode): Moved code to clear
  28740. selections to the FocusController, since it is Page level
  28741. and will know about the frame/document that contained the
  28742. old selection. Moved code to call shouldEndEditing to the
  28743. FocusController because selections are now cleared before
  28744. calling Document::setFocusedNode and shouldEndEditing must
  28745. be called before selections are cleared.
  28746. * dom/Element.cpp:
  28747. (WebCore::Element::blur): Call FocusController::setFocusNode
  28748. instead of Document::setFocusNode, if possible.
  28749. * page/EventHandler.cpp:
  28750. (WebCore::EventHandler::dispatchMouseEvent): Ditto.
  28751. * page/FocusController.cpp:
  28752. (WebCore::relinquishesEditingFocus): Moved from Document.cpp.
  28753. (WebCore::clearSelectionIfNeeded): Ditto. Don't clear if
  28754. the old selection is in a frame that's different than the
  28755. one that contains the new focus node.
  28756. (WebCore::FocusController::setFocusedNode): Moved code
  28757. here from Document::setFocusedNode.
  28758. * page/Frame.cpp:
  28759. (WebCore::Frame::setFocusedNodeIfNeeded): Call
  28760. FocusController::setFocusNode.
  28761. 2007-05-14 Geoffrey Garen <ggaren@apple.com>
  28762. Reviewed by Darin Adler.
  28763. Next step toward fixing <rdar://problem/5055182> The back cache has no
  28764. global cap.
  28765. Created a PageCache singleton. Right now, it only handles the timer-based
  28766. deallocation of cached pages. I plan to add HistoryItem->CachedPage tracking
  28767. and eviction logic in later patches.
  28768. Updated for renames and file changes:
  28769. * WebCore.exp:
  28770. * WebCore.xcodeproj/project.pbxproj:
  28771. * history/BackForwardList.cpp:
  28772. (WebCore::BackForwardList::setPageCacheSize):
  28773. (WebCore::BackForwardList::clearPageCache):
  28774. Removed global timed release code, moved into new PageCache class, since
  28775. it's eventually going to be in charge of deciding when things are released:
  28776. * history/HistoryItem.cpp:
  28777. (WebCore::HistoryItem::setCachedPage):
  28778. * history/HistoryItem.h:
  28779. Folded into PageCache:
  28780. * history/HistoryItemTimer.cpp: Removed.
  28781. * history/HistoryItemTimer.h: Removed.
  28782. New singleton. Right now, it just handles timed release of cached pages:
  28783. * history/PageCache.cpp: Added.
  28784. (WebCore::pageCache):
  28785. (WebCore::PageCache::PageCache):
  28786. (WebCore::PageCache::autoreleaseNowOrReschedule):
  28787. (WebCore::PageCache::autoreleaseNow):
  28788. (WebCore::PageCache::autorelease):
  28789. * history/PageCache.h: Added.
  28790. 2007-05-14 Adele Peterson <adele@apple.com>
  28791. Reviewed by Darin.
  28792. Fix for <rdar://problem/5200081> Repro crash in PopupMenu::show clicking popup menu button after reload
  28793. * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Added call to dismissPopup so the cell gets unattached properly.
  28794. 2007-05-14 Adele Peterson <adele@apple.com>
  28795. Reviewed by Darin.
  28796. Remove incorrect assertion.
  28797. * page/FrameView.cpp: (WebCore::FrameView::setContentsPos):
  28798. 2007-05-14 Anders Carlsson <andersca@apple.com>
  28799. Reviewed by Geoff.
  28800. <rdar://problem/5172056> Regression: cannot open txt file, get broken image
  28801. Never let plug-ins override text/plain.
  28802. * dom/DOMImplementation.cpp:
  28803. (WebCore::DOMImplementation::createDocument):
  28804. 2007-05-14 Zack Rusin <zrusin@trolltech.com>
  28805. Reviewed by Simon.
  28806. Do some magic to get better dependency tracking for header
  28807. files in the qmake project files.
  28808. * ChangeLog:
  28809. 2007-05-14 Lars Knoll <lars@trolltech.com>
  28810. Reviewed by Zack
  28811. Required updates after Maciej's frame change.
  28812. * loader/FrameLoader.cpp:
  28813. (WebCore::FrameLoader::mainReceivedCompleteError):
  28814. Call checkLoadCompleted() at the end of the method. Without it
  28815. we never get the loadDone() signal on the Qt port.
  28816. * platform/network/qt/ResourceHandleManagerQt.cpp:
  28817. (WebCore::ResourceHandleManager::receivedFinished):
  28818. Don't pass a null error to didFail().
  28819. 2007-05-14 Darin Adler <darin@apple.com>
  28820. Reviewed by Antti.
  28821. - fix <rdar://problem/3109180> VIP: after go back, page jumps after loading even if I scrolled while loading
  28822. * history/CachedPage.cpp: (WebCore::CachedPage::clear): Call clearFrame rather than
  28823. clearPart -- the "part" term was leftover prehistoric terminology.
  28824. * loader/FrameLoader.cpp:
  28825. (WebCore::FrameLoader::open): Call setWasScrolledByUser(false) on the page, so that we
  28826. can detect any user scrolling that happens during the "go back" process.
  28827. (WebCore::FrameLoader::restoreScrollPositionAndViewState): Don't scroll if the view's
  28828. wasScrolledByUser flag is set.
  28829. (WebCore::FrameLoader::loadItem): Call setWasScrolledByUser(false) false when we do
  28830. a new "load" (actually just a scroll) using the same frame. Also moved the line of code that
  28831. sets m_currentHistoryItem to make this code path mroe similar to recursiveGoToItem.
  28832. (WebCore::FrameLoader::recursiveGoToItem): Ditto.
  28833. * page/Frame.cpp:
  28834. (WebCore::Frame::~Frame): Call clearFrame rather than stting m_frame directly.
  28835. (WebCore::Frame::sendScrollEvent): Call setWasScrolledByUser(true) on FrameView. The FrameView
  28836. itself knows to ignore this if the scrolling is being done programmatically instead of by the user.
  28837. * page/FrameView.h: Added wasScrolledByUser and setWasScrolledByUser. Also removed unneeded
  28838. include and class forward declarations, renamed clearPart to clearFrame, removed uneeded function
  28839. haveDelayedLayoutScheduled, and removed unneeded friend declarations.
  28840. * page/FrameView.cpp:
  28841. (WebCore::FrameViewPrivate::FrameViewPrivate): Added m_inProgrammaticScroll and m_wasScrolledByUser.
  28842. (WebCore::FrameViewPrivate::reset): Set m_wasScrolledByUser to false.
  28843. (WebCore::FrameView::clearFrame): Renamed from clearPart.
  28844. (WebCore::FrameView::scrollRectIntoViewRecursively): Added code to set the m_inProgrammaticScroll flag.
  28845. (WebCore::FrameView::setContentsPos): Ditto.
  28846. (WebCore::FrameView::wasScrolledByUser): Added.
  28847. (WebCore::FrameView::setWasScrolledByUser): Added. Does nothing if called when m_inProgrammaticScroll
  28848. is true.
  28849. 2007-05-14 Darin Adler <darin@apple.com>
  28850. Reviewed by Antti.
  28851. - <rdar://problem/4865655> REGRESSION: find function does not work for the character ß
  28852. The trick was to fold case consistently in the CircularSearchBuffer class.
  28853. The problem was that we were folding the search target string with full case folding and
  28854. the characters of the text we were searching with simple case folding. We now use full
  28855. case folding in both cases.
  28856. * editing/TextIterator.cpp:
  28857. (WebCore::CircularSearchBuffer::CircularSearchBuffer): Changed the buffer to be a
  28858. Vector<UChar>. Added a Vector<bool> to record which characters were starts of characters
  28859. in the text we are searching. Changed the cursor to be an int rather than a pointer.
  28860. (WebCore::CircularSearchBuffer::append): New function that knows how to append multiple
  28861. characters when folding case turns one character into many -- uses the full foldCase
  28862. rather than the simplified single-character foldCase. Also removed the append function
  28863. that did multiple characters at once; that was part of an optimization we don't need.
  28864. (WebCore::CircularSearchBuffer::isMatch): Instead of asserting that the buffer is full,
  28865. changed this to return false if it's not full, which lets us fill up the buffer with
  28866. the normal loop. Also return false if the start of the buffer is half-way through a
  28867. case-folded character and updated this since m_cursor is now an integer.
  28868. (WebCore::CircularSearchBuffer::length): This returns the length in non-case-folded
  28869. characters of the characters that were appended, which may not be the same as the length
  28870. of the original target string. To do that we have to total up the character start
  28871. booleans for the current state of the circular buffer.
  28872. (WebCore::findPlainText): Streamlined the logic in a few ways: 1) Moved more of the
  28873. return value setup to the top of the function so it could be shared with the early
  28874. error exit. 2) Removed the separate "fill the buffer" logic, which allowed me to
  28875. remove some of the functions from CircularSearchBuffer and eliminated the need for
  28876. two nested loops. 3) Replaced the CharacterIterator and bool that were used to record
  28877. the location we found with integers matchStart and matchLength. 4) Got rid of the use
  28878. of goto since we don't have two nested loops any more.
  28879. 2007-05-14 Andrew Wellington <proton@wiretapped.net>
  28880. Reviewed by Darin.
  28881. Fix http://bugs.webkit.org/show_bug.cgi?id=13275
  28882. Safari crashed when trying to login using the windows live contact control
  28883. Check for cleared windowObj in JSAbstractEventListener::handleEvent
  28884. * bindings/js/kjs_events.cpp:
  28885. (KJS::JSAbstractEventListener::handleEvent):
  28886. 2007-05-13 Alexey Proskuryakov <ap@webkit.org>
  28887. Reviewed by Darin.
  28888. http://bugs.webkit.org/show_bug.cgi?id=13690
  28889. JavaScript Form Validation issue on Banco do Brasil site
  28890. Test: fast/forms/input-setvalue-selection.html
  28891. * html/HTMLInputElement.cpp:
  28892. (WebCore::HTMLInputElement::setValue): In other browsers, changing textInput.value
  28893. always moves the insertion point past the text. In 10.4.9 WebKit, this only worked
  28894. for inactive controls, and it never worked in ToT.
  28895. 2007-05-13 Brady Eidson <beidson@apple.com>
  28896. Reviewed by Mitz
  28897. http://bugs.webkit.org/show_bug.cgi?id=13701
  28898. Since HTMLInputElements register themselves with their Document for special handling, if their document
  28899. ever changes then bad things can happen.
  28900. Unfortunately, with adoptNode, the document can change. This has been a long standing crasher with all
  28901. input fields but was given recent high visibility by r21430
  28902. The solution is to add functionality for a Node to react to its owner document changing via a pair of
  28903. virtual callbacks. Then we can tap into those callbacks in HTMLInputElement.
  28904. No layout test possible until http://bugs.webkit.org/show_bug.cgi?id=13672 is resolved
  28905. * dom/Node.cpp:
  28906. (WebCore::Node::setDocument): Call willMoveToNewOwnerDocument and didMoveToNewOwnerDocument
  28907. * dom/Node.h:
  28908. (WebCore::Node::willMoveToNewOwnerDocument): Virtual callback to a node for before an owner document change
  28909. (WebCore::Node::didMoveToNewOwnerDocument): Virtual callback to a node for after an owner document change
  28910. * html/HTMLInputElement.cpp:
  28911. (WebCore::HTMLInputElement::~HTMLInputElement): Unconditionally unregister both for both form state
  28912. and the cache restoration callback
  28913. (WebCore::HTMLInputElement::setInputType): Change registration with the document only if we're in one
  28914. (WebCore::HTMLInputElement::attach): Don't bother registering for the callback here - that will be
  28915. handled by setInputType() or by a change in owner document
  28916. (WebCore::HTMLInputElement::willMoveToNewOwnerDocument): Unregister with the old owner document
  28917. (WebCore::HTMLInputElement::didMoveToNewOwnerDocument): Register with the new owner document
  28918. * html/HTMLInputElement.h:
  28919. 2007-05-13 Darin Adler <darin@apple.com>
  28920. * platform/mac/TextBreakIteratorInternalICUMac.mm: Fix comment typo.
  28921. 2007-05-13 Rob Buis <buis@kde.org>
  28922. Reviewed by Darin.
  28923. http://bugs.webkit.org/show_bug.cgi?id=13529
  28924. DOM3 keyIdentifier text is incorrect
  28925. Use 4 digits for the Unicode based key identifiers.
  28926. * html/HTMLButtonElement.cpp:
  28927. (WebCore::HTMLButtonElement::defaultEventHandler):
  28928. * html/HTMLInputElement.cpp:
  28929. (WebCore::HTMLInputElement::defaultEventHandler):
  28930. * html/HTMLSelectElement.cpp:
  28931. (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
  28932. * page/EventHandler.cpp:
  28933. (WebCore::EventHandler::defaultKeyboardEventHandler):
  28934. * page/gdk/EventHandlerGdk.cpp:
  28935. (WebCore::isKeyboardOptionTab):
  28936. * page/mac/EventHandlerMac.mm:
  28937. (WebCore::isKeyboardOptionTab):
  28938. * page/qt/EventHandlerQt.cpp:
  28939. (WebCore::isKeyboardOptionTab):
  28940. * platform/gdk/KeyEventGdk.cpp:
  28941. (WebCore::keyIdentifierForGdkKeyCode):
  28942. * platform/mac/KeyEventMac.mm:
  28943. (WebCore::keyIdentifierForKeyEvent):
  28944. * platform/qt/PlatformKeyboardEventQt.cpp:
  28945. (WebCore::keyIdentifierForQtKeyCode):
  28946. * platform/win/KeyEventWin.cpp:
  28947. (WebCore::keyIdentifierForWindowsKeyCode):
  28948. * platform/wx/KeyEventWin.cpp:
  28949. (WebCore::keyIdentifierForWindowsKeyCode):
  28950. * platform/wx/KeyboardEventWx.cpp:
  28951. (WebCore::keyIdentifierForWxKeyCode):
  28952. 2007-05-12 Darin Adler <darin@apple.com>
  28953. Reviewed by Antti.
  28954. - fix <rdar://problem/5174903> Safari crashes opening the attached webarchive (made by OmniWeb)
  28955. * loader/icon/IconLoader.cpp:
  28956. (WebCore::IconLoader::didReceiveResponse): Check ResourceHandle for nil before calling url() on it.
  28957. (WebCore::IconLoader::didFail): Ditto.
  28958. (WebCore::IconLoader::didFinishLoading): Ditto.
  28959. 2007-05-12 Rob Buis <buis@kde.org>
  28960. Reviewed by Oliver.
  28961. Cleanup, get rid of the SVGStyledElement::view() call.
  28962. * ksvg2/svg/SVGClipPathElement.cpp:
  28963. (WebCore::SVGClipPathElement::canvasResource):
  28964. * ksvg2/svg/SVGFEFloodElement.cpp:
  28965. (WebCore::SVGFEFloodElement::filterEffect):
  28966. * ksvg2/svg/SVGGradientElement.cpp:
  28967. (WebCore::SVGGradientElement::buildStops):
  28968. * ksvg2/svg/SVGStyledElement.cpp:
  28969. * ksvg2/svg/SVGStyledElement.h:
  28970. 2007-05-12 Mitz Pettel <mitz@webkit.org>
  28971. Reviewed by Hyatt.
  28972. - fix http://bugs.webkit.org/show_bug.cgi?id=13680
  28973. Incomplete repaint of focus ring around continuation
  28974. Test: fast/repaint/continuation-after-outline.html
  28975. * rendering/RenderFlow.cpp:
  28976. (WebCore::RenderFlow::absoluteClippedOverflowRect):
  28977. 2007-05-12 Oliver Hunt <oliver@apple.com>
  28978. Reviewed by Hyatt.
  28979. <rdar://problem/4728842> Can't drag-and-drop files onto <input type="file">
  28980. This patch allows a file to be dropped on to a file input field. There
  28981. are a few changes for data handling and a few to allow the data to be
  28982. threaded to the appropriate places.
  28983. * page/DragController.cpp:
  28984. (WebCore::asFileInput):
  28985. When dropping a file onto a file input we may mouse over either
  28986. the element itself, or the contained button element. This method
  28987. returns the base element for the file input in either of these
  28988. cases.
  28989. (WebCore::DragController::tryDocumentDrag):
  28990. Don't try to set the drag caret to a file input.
  28991. (WebCore::DragController::concludeDrag):
  28992. Handle dropping onto a file input element.
  28993. (WebCore::DragController::canProcessDrag):
  28994. We can now process a file being dragged onto a file input element.
  28995. * platform/DragData.h:
  28996. New accessors
  28997. * platform/gdk/DragDataGdk.cpp:
  28998. (WebCore::DragData::containsFiles):
  28999. (WebCore::DragData::asFilenames):
  29000. Link stubs.
  29001. * platform/mac/DragDataMac.mm:
  29002. (WebCore::DragData::containsFiles):
  29003. (WebCore::DragData::asFilenames):
  29004. Implement new accessors
  29005. (WebCore::DragData::containsCompatibleContent):
  29006. Update containsCompatibleContent to allow standalone files.
  29007. * platform/qt/DragDataQt.cpp:
  29008. (WebCore::DragData::containsFiles):
  29009. (WebCore::DragData::asFilenames):
  29010. Link stubs
  29011. * rendering/RenderFileUploadControl.cpp:
  29012. (WebCore::RenderFileUploadControl::receiveDroppedFile):
  29013. * rendering/RenderFileUploadControl.h:
  29014. For security reasons we don't have an api to allow us to set
  29015. a value directly on a file input -- attempts to do so are
  29016. blocked. By adding a method to set the target through the
  29017. render we bypass such restrictions, and ensure the renderer
  29018. is updated correctly.
  29019. 2007-05-12 Mitz Pettel <mitz@webkit.org>
  29020. Reviewed by Hyatt.
  29021. - fix http://bugs.webkit.org/show_bug.cgi?id=13695
  29022. REGRESSION (r21387): Replaced elements' highlight rects are wrongly positioned
  29023. Test: fast/replaced/selection-rect.html
  29024. Also fixes the same problem with list markers, covered by existing test
  29025. fast/lists/markers-in-selection.html.
  29026. * rendering/RenderListMarker.cpp:
  29027. (WebCore::RenderListMarker::selectionRect):
  29028. * rendering/RenderReplaced.cpp:
  29029. (WebCore::RenderReplaced::selectionRect):
  29030. 2007-05-12 Mitz Pettel <mitz@webkit.org>
  29031. Reviewed by Darin.
  29032. - fix http://bugs.webkit.org/show_bug.cgi?id=13685
  29033. REGRESSION (r21368-r21388): Highlighting text in scrolled textareas behaves oddly
  29034. Test: fast/repaint/text-selection-rect-in-overflow.html
  29035. * rendering/RenderText.cpp:
  29036. (WebCore::RenderText::selectionRect):
  29037. 2007-05-12 Brady Eidson <beidson@apple.com>
  29038. Rubber stamped by Mitz
  29039. * html/HTMLInputElement.cpp:
  29040. (WebCore::HTMLInputElement::attach): unregister->register - I screwed this one up in last minute renaming
  29041. before committing :(
  29042. 2007-05-11 Brady Eidson <beidson@apple.com>
  29043. Reviewed by Darin and Geoff
  29044. Fix for http://bugs.webkit.org/show_bug.cgi?id=13630
  29045. and
  29046. <rdar://problem/4873628>
  29047. Back/Forward cache should work with pages with login fields.
  29048. First change is to relocate the "useSecureKeyboardEntry" flag to the document. This lets
  29049. it persist through page cache transitions and it is truly a per-document concept more than
  29050. per-frame anyways since its the document that has a password field, not the frame.
  29051. Second change is to introduce the concept of an Element getting a "didRestoreFromCache()" callback.
  29052. The idea is for elements to register with the document if they need work to be done when the
  29053. page comes out of the back/forward cache. Currently the only client of this service is
  29054. HTMLInputElements that are input type == PASSWORD. Such an element's implementation for this
  29055. method is to call reset()
  29056. Finally, after a page is restored from the cache we have the document send the didRestoreFromCache()
  29057. callback to its registered Elements. The whole design is to clear the password fields after
  29058. restoring the page instead of when caching the page because we want to defer work for the common
  29059. case - there shouldn't be extra work here just to navigate away from a page when the common case
  29060. is that you'll never go back!
  29061. No layout tests possible until http://bugs.webkit.org/show_bug.cgi?id=13672 is resolved
  29062. * dom/Document.cpp:
  29063. (WebCore::Document::Document):
  29064. (WebCore::Document::registerForDidRestoreFromCacheCallback): Add an Element to the special page-restoration callback list
  29065. (WebCore::Document::unregisterForDidRestoreFromCacheCallback): Remove such an element
  29066. (WebCore::Document::didRestoreFromCache): Called by FrameLoader - dispatch to all the registered elements
  29067. (WebCore::Document::setUseSecureKeyboardEntryWhenActive): Set the local flag and call updateSecureKeyboardEntryIfActive
  29068. on the Frame
  29069. (WebCore::Document::useSecureKeyboardEntryWhenActive): Return the flag
  29070. * dom/Document.h:
  29071. (WebCore::Document::unregisterFormElementWithState): Renamed
  29072. * dom/Element.h:
  29073. (WebCore::Element::didRestoreFromCache): Added virtual base method
  29074. * html/HTMLInputElement.cpp:
  29075. (WebCore::HTMLInputElement::~HTMLInputElement): Deregister from the document if inputType == PASSWORD
  29076. (WebCore::HTMLInputElement::dispatchFocusEvent): Set the flag on the document, not the frame
  29077. (WebCore::HTMLInputElement::dispatchBlurEvent): Ditto
  29078. (WebCore::HTMLInputElement::setInputType): If changing to/from PASSWORD, register/deregister in the document accordingly
  29079. (WebCore::HTMLInputElement::attach): Call registerForDidRestoreFromCacheCallback(this) instead of passwordFieldAdded()
  29080. (WebCore::HTMLInputElement::didRestoreFromCache): Call reset();
  29081. * html/HTMLInputElement.h:
  29082. * html/HTMLSelectElement.cpp:
  29083. (WebCore::HTMLSelectElement::~HTMLSelectElement): Renamed deregisterFormElementWithState to unregisterFormElementWithState
  29084. * html/HTMLTextAreaElement.cpp:
  29085. (WebCore::HTMLTextAreaElement::~HTMLTextAreaElement): Ditto
  29086. * loader/FrameLoader.cpp:
  29087. (WebCore::FrameLoader::canCachePage): Remove the check for password fields - they're allowed now!
  29088. (WebCore::FrameLoader::opened): Tell the document to dispatch to the registered elements
  29089. (WebCore::FrameLoader::saveDocumentState): Remove the check for password fields. Turns out that when we grab a copy a the
  29090. form state we're only copying the state of form elements that are registered with the Document - and that set
  29091. explicitly excludes Password elements
  29092. * page/Frame.cpp:
  29093. (WebCore::Frame::setDocument): If the frame is active, set the setUseSecureKeyboardEntry based on the setting contained
  29094. in the new document
  29095. (WebCore::Frame::updateSecureKeyboardEntryIfActive): Notification for the secure entry flag changing - if the Frame is
  29096. active, then update to the new setting from the document
  29097. (WebCore::Frame::setIsActive): Grab the useSecureKeyboardEntry flag from the document instead of FramePrivate
  29098. (WebCore::FramePrivate::FramePrivate):
  29099. * page/Frame.h:
  29100. * page/FramePrivate.h:
  29101. 2007-05-12 David Hyatt <hyatt@apple.com>
  29102. FIx for 13696. Rework residual style to be much more aggressive about reopening. Added
  29103. a comprehensive test case of HTML tags to guarantee we match Firefox. We now have an exclusion
  29104. set rather than an inclusion set, so unknown future tags will also participate in residual style.
  29105. Reviewed by olliej
  29106. fast/invalid/residual-style.html
  29107. 2007-05-12 David Hyatt <hyatt@apple.com>
  29108. Fix for bug 12740, bmw.com doesn't work. We were missing a rule that is covered by the HTML5
  29109. parsing spec. A <table> encountered while inside stray table content should close up the
  29110. table responsible for the stray content and start the new table as a sibling of the first.
  29111. Reviewed by mjs
  29112. fast/invalid/table-inside-stray-table-content.html
  29113. 2007-05-12 Eric Seidel <eric@webkit.org>
  29114. Reviewed by mjs.
  29115. Crash starting Safari with JavaScript disabled.
  29116. http://bugs.webkit.org/show_bug.cgi?id=13691
  29117. Test: none possible.
  29118. * page/mac/FrameMac.mm:
  29119. (WebCore::Frame::cleanupPlatformScriptObjects): NULL check d->m_script
  29120. 2007-05-11 David Hyatt <hyatt@apple.com>
  29121. Fix for http://bugs.webkit.org/show_bug.cgi?id=13688, Colloquy is broken!
  29122. Make sure to adjust the baseline of a percentage height table cell's row if the
  29123. cell flexes (and lowers the baseline).
  29124. Reviewed by olliej
  29125. fast/tables/vertical-align-baseline-readjust.html
  29126. (WebCore::RenderTableSection::calcRowHeight):
  29127. (WebCore::RenderTableSection::layoutRows):
  29128. * rendering/RenderTableSection.h:
  29129. (WebCore::RenderTableSection::getBaseline):
  29130. 2007-05-11 David Hyatt <hyatt@apple.com>
  29131. Make sure focus rings are always using the exterior style, regardless
  29132. of what the OS default is.
  29133. Reviewed by beth
  29134. * rendering/RenderThemeMac.mm:
  29135. (WebCore::RenderThemeMac::checkbox):
  29136. (WebCore::RenderThemeMac::radio):
  29137. (WebCore::RenderThemeMac::popupButton):
  29138. (WebCore::RenderThemeMac::search):
  29139. (WebCore::RenderThemeMac::sliderThumbHorizontal):
  29140. (WebCore::RenderThemeMac::sliderThumbVertical):
  29141. 2007-05-11 Oliver Hunt <oliver@apple.com>
  29142. Reviewed by Hyatt.
  29143. <rdar://problem/5195473> REGRESSION: "Curly quote" fails to
  29144. be displayed correctly even when META tag specifies charset=x-mac-roman
  29145. * platform/TextCodecICU.cpp:
  29146. (WebCore::TextCodecICU::registerExtendedEncodingNames):
  29147. Register the xmacroman encoding
  29148. 2007-05-11 Maciej Stachowiak <mjs@apple.com>
  29149. Reviewed by Hyatt.
  29150. REGRESSION (r21367): Crash due to null document deref when closing bookmarks
  29151. http://bugs.webkit.org/show_bug.cgi?id=13662
  29152. * loader/FrameLoader.cpp:
  29153. (WebCore::FrameLoader::provisionalLoadStarted): Remove some useless and now harmful
  29154. code - there's no need to clear in this case.
  29155. 2007-05-11 Oliver Hunt <oliver@apple.com>
  29156. GDK Build fix
  29157. * ChangeLog:
  29158. * dom/Document.cpp:
  29159. (WebCore::Document::importNode):
  29160. 2007-05-11 Maciej Stachowiak <mjs@apple.com>
  29161. Reviewed by Geoff.
  29162. - fixed <rdar://problem/5197621> closing second window crashed webkit (13660)
  29163. http://bugs.webkit.org/show_bug.cgi?id=13660
  29164. No test case; not testable.
  29165. * page/mac/FrameMac.mm:
  29166. (WebCore::Frame::cleanupPlatformScriptObjects): Check if the interpreter is null;
  29167. if so, we don't want to do work that may lazily create it while the Frame is being
  29168. destroyed.
  29169. 2007-05-11 Oliver Hunt <oliver@apple.com>
  29170. Reviewed by Brady.
  29171. <rdar://problem/5017375> WebKit should disable SVG in Dashboard
  29172. Prevents an SVG document or element from being created when in
  29173. dashboard compatibility mode.
  29174. Manually parsing, or using XHR to created a document removes our
  29175. ability to detect Dashboard compatibility mode, so we also perform
  29176. the check when importing nodes from one document into another.
  29177. * dom/DOMImplementation.cpp:
  29178. (WebCore::DOMImplementation::createDocument):
  29179. Don't create an SVGDocument if we're in dashboard compatibility mode
  29180. * dom/Document.cpp:
  29181. (WebCore::Document::importNode):
  29182. Don't import SVG nodes if we're in dashboard compatibility mode
  29183. * ksvg2/scripts/make_names.pl:
  29184. Don't create SVG elements for documents that are in dashboard
  29185. compatibility mode
  29186. 2007-05-11 Holger Hans Peter Freyther <zecke@selfish.org>
  29187. Reviewed by Maciej.
  29188. Bug 13676: [cairo/gdk] Provide implementation for ImageBufferCairo
  29189. http://bugs.webkit.org/show_bug.cgi?id=13676
  29190. There are no test cases that explicitly cover platform/graphics at present.
  29191. * platform/graphics/ImageBuffer.h: Add cairo bits
  29192. * platform/graphics/cairo/ImageBufferCairo.cpp: Untested implementation of the ImagerBuffer using the image_surface
  29193. (WebCore::ImageBuffer::create): Create a reasonable sized surface
  29194. (WebCore::ImageBuffer::ImageBuffer): Use a cairo_surface and create a GraphicsContext. GraphicsContext takes the cairo_t ownership
  29195. (WebCore::ImageBuffer::~ImageBuffer): Unref the surface
  29196. (WebCore::ImageBuffer::context): simply return the GraphicsContext, it should be possible to directly draw on it.
  29197. 2007-05-11 Mitz Pettel <mitz@webkit.org>
  29198. Release build fix.
  29199. * platform/mac/ShapeArabic.c:
  29200. (shapeArabic):
  29201. 2007-05-11 Geoffrey Garen <ggaren@apple.com>
  29202. Reviewed by Darin Adler.
  29203. Removed +[WebScriptObject scriptObjectForJSObject:frame:] because the
  29204. WebScriptObject API has some serious limitations that make it not ready
  29205. to be used everywhere the C API is used. Hopefully we can add a good
  29206. ObjC API in the future that doesn't suffer from this problem.
  29207. Preliminary notes about these limitations are in <rdar://problem/4876466>.
  29208. * bindings/objc/WebScriptObject.mm:
  29209. * bindings/objc/WebScriptObjectPendingPublic.h:
  29210. 2007-05-11 Mitz Pettel <mitz@webkit.org>
  29211. Reviewed by Darin.
  29212. - fix http://bugs.webkit.org/show_bug.cgi?id=13635
  29213. REGRESSION: Cannot log in to webmail.co.za account
  29214. Test: fast/dom/HTMLOptionElement/option-text.html
  29215. Despite the specification that the 'text' attribute of HTMLOptionElement
  29216. is "the text contained within the option element", other browsers return
  29217. the text as displayed in the list box or popup, which is without leading,
  29218. trailing and collapsible whitespace.
  29219. * html/HTMLOptionElement.cpp:
  29220. (WebCore::HTMLOptionElement::text): Moved the code to trim and collapse
  29221. whitespace and replace backslashes with the currency symbol into this
  29222. function.
  29223. (WebCore::HTMLOptionElement::optionText): Left only the code that adds
  29224. the leading spaces for grouped options. Removed code that, in quirks mode,
  29225. displayed the label if the option element contained no text. That behavior
  29226. did not match WinIE and the description of the expected behavior in
  29227. fast/forms/HTMLOptionElement_label06.html.
  29228. 2007-05-11 Mitz Pettel <mitz@webkit.org>
  29229. Reviewed by Darin.
  29230. - fix http://bugs.webkit.org/show_bug.cgi?id=13572
  29231. Arabic characters are not correctly joined when using Arial
  29232. No tests added because standard fonts do not use the character-based shaping
  29233. code path.
  29234. Added shapeArabic(), a private version of u_shapeArabic() from ICU,
  29235. patched to shape Arabic characters used in Persian, Urdu, Sindhi, etc.
  29236. (whose contextual forms belong to the Arabic Presentation Forms-A block).
  29237. * WebCore.xcodeproj/project.pbxproj: Added ShapeArabic.{c,h}.
  29238. * platform/mac/FontMac.mm:
  29239. (WebCore::shapeArabic): Changed to call shapeArabic() instead of u_shapeArabic().
  29240. * platform/mac/ShapeArabic.c: Added. Based on ushape.c from ICU, with
  29241. additional shaping data and logic for Arabic Presentation Forms-A. Removed
  29242. many options that are not used in WebKit and code that malloc()ed a temporary
  29243. buffer and reversed the string.
  29244. (changeLamAlef):
  29245. (specialChar):
  29246. (getLink):
  29247. (isTashkeelChar):
  29248. (shapeUnicode):
  29249. (shapeArabic):
  29250. * platform/mac/ShapeArabic.h: Added.
  29251. 2007-05-11 Darin Adler <darin@apple.com>
  29252. Reviewed by Mitz.
  29253. - fix http://bugs.webkit.org/show_bug.cgi?id=7452
  29254. <rdar://problem/3211749> line breaks ignored after <wbr> in <pre> block (affects livejournal.com)
  29255. - fix http://bugs.webkit.org/show_bug.cgi?id=10657
  29256. <rdar://problem/4274588> <wbr> tags are ignored
  29257. - fix http://bugs.webkit.org/show_bug.cgi?id=12689
  29258. <wbr> :before/:after content causes line break
  29259. - fix <rdar://problem/5127366> DOM tree isn't correct when parsing with <wbr>
  29260. Test: fast/text/wbr-pre.html
  29261. Test: fast/text/wbr.html
  29262. Test: fast/css-generated-content/wbr-with-before-content.html
  29263. Test: fast/parser/parse-wbr.html
  29264. * html/HTMLElement.h:
  29265. * html/HTMLElement.cpp:
  29266. (WebCore::HTMLElement::endTagRequirement): Use the same end tag requirement for a <wbr>
  29267. element as for a <br> element, TagStatusForbidden.
  29268. (WebCore::HTMLElement::tagPriority): Use the same priority for a <wbr> element as for a
  29269. <br> element, 0.
  29270. (WebCore::HTMLElement::createRenderer): Added. Create a RenderWordBreak to trigger the
  29271. new rendering code paths.
  29272. * rendering/RenderFlow.h: Add a virtual isWordBreak so we can detect RenderWordBreak.
  29273. * rendering/RenderWordBreak.h: Added.
  29274. * rendering/RenderWordBreak.cpp: Added.
  29275. * WebCore.pro: Added new files.
  29276. * WebCore.xcodeproj/project.pbxproj: Added new files.
  29277. * WebCoreSources.bkl: Added new files.
  29278. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::calcInlinePrefWidths): Reset the
  29279. line when we hit a <wbr>.
  29280. * rendering/bidi.cpp: (WebCore::RenderBlock::findNextLineBreak): Add a line break when
  29281. we hit a <wbr>.
  29282. * dom/Node.cpp: (Node::createRendererIfNeeded): Fix a null check for the case where
  29283. createRenderer returns 0 even though rendererIsNeeded returned true. I can't reproduce
  29284. it on demand, but while running layout tests I hit this once. Since there was already
  29285. a null check here, I rearranged it so it guards all the code that uses the renderer.
  29286. Later we might want to figure out under exactly what circumstances rendererIsNeeded
  29287. will return true but createRenderer return 0 and consider eliminating them.
  29288. 2007-05-11 David Hyatt <hyatt@apple.com>
  29289. Fix for bug 13675, focus rings don't repaint properly on editable
  29290. continuations.
  29291. Reviewed by olliej
  29292. (WebCore::InlineFlowBox::paint):
  29293. * rendering/RenderBlock.cpp:
  29294. (WebCore::RenderBlock::paintObject):
  29295. (WebCore::continuationOutlineTable):
  29296. (WebCore::RenderBlock::addContinuationWithOutline):
  29297. (WebCore::RenderBlock::paintContinuationOutlines):
  29298. * rendering/RenderBlock.h:
  29299. * rendering/RenderBox.cpp:
  29300. (WebCore::RenderBox::absoluteClippedOverflowRect):
  29301. * rendering/RenderObject.cpp:
  29302. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  29303. (WebCore::RenderObject::absoluteOutlineBox):
  29304. 2007-05-11 Rob Buis <buis@kde.org>
  29305. Reviewed by Oliver.
  29306. Cleanups mostly inspired by Coverage results.
  29307. * ksvg2/css/SVGCSSParser.cpp:
  29308. (WebCore::CSSParser::parseSVGValue):
  29309. (WebCore::CSSParser::parseSVGStrokeDasharray):
  29310. * ksvg2/css/SVGRenderStyleDefs.cpp:
  29311. (StyleFillData::operator==):
  29312. * ksvg2/svg/SVGColor.cpp:
  29313. (WebCore::SVGColor::colorFromRGBColorString):
  29314. 2007-05-11 Holger Freyther <freyther@kde.org>
  29315. Reviewed by Mark Rowe.
  29316. Move libcurl configuration into WebKit.pri so it will be used by GdkLauncher.
  29317. * WebCore.pro:
  29318. 2007-05-10 David Hyatt <hyatt@apple.com>
  29319. <rdar://problem/5015522> Bounds rectangle of unloaded images is
  29320. drawn briefly while loading
  29321. When the image is null and has no size, don't draw the grey
  29322. rectangles or alt text any more. Wait for an actual error to
  29323. occur with the image before we start showing alt text and borders.
  29324. (Images with no source set at all will continue to show alt text and
  29325. borders immediately.)
  29326. Reviewed by bradee-oh
  29327. * rendering/RenderImage.cpp:
  29328. (WebCore::RenderImage::paint):
  29329. 2007-05-10 Mitz Pettel <mitz@webkit.org>
  29330. Reviewed by Darin.
  29331. - fix http://bugs.webkit.org/show_bug.cgi?id=13655
  29332. Incomplete repaint when text-shadow is used in a render layer with explicit height
  29333. Test: fast/repaint/layer-full-repaint.html
  29334. Removed custom repaint logic from RenderLayer. repaintAfterLayoutIfNeeded()
  29335. knows how to do everything we need now. The only catch is that we cannot
  29336. rely on its "do a full repaint if the object needs layout" behavior, since
  29337. by the time we call it, the needs layout flag has been reset. The solution
  29338. is to cache the need for a full repaint in the layer.
  29339. * page/FrameView.cpp:
  29340. (WebCore::FrameView::layout): Removed call to checkForRepaintOnResize().
  29341. * rendering/RenderLayer.cpp:
  29342. (WebCore::RenderLayer::checkForRepaintOnResize): Removed.
  29343. (WebCore::RenderLayer::RenderLayer): Replaced the m_repaintOverflowOnResize
  29344. flag with a m_needsFullRepaint flag, which indicates that the layer needs
  29345. to do a full repaint in the next call to updateLayerPositions().
  29346. (WebCore::RenderLayer::updateLayerPositions): Simplified the repaint logic.
  29347. Either call repaintAfterLayoutIfNeeded() or do a full repaint, depending on
  29348. m_needsFullRepaint.
  29349. * rendering/RenderLayer.h:
  29350. (WebCore::RenderLayer::setNeedsFullRepaint):
  29351. * rendering/RenderObject.cpp:
  29352. (WebCore::RenderObject::setNeedsLayout): Mark the layer for full repaint.
  29353. 2007-05-10 Justin Garcia <justin.garcia@apple.com>
  29354. Reviewed by ggaren
  29355. <rdar://problem/5195166> Incorrect proposedRange DOMRange passed to WebViewEditing delegate
  29356. In setModifyBias, we must cache the start and the end
  29357. because the calls to setBase and setExtent can modify
  29358. them (added a testcase).
  29359. The temporary SelectionController that we use in modify() to
  29360. produce the proposed range that will be passed to
  29361. shouldChangeSelectedDOMRange must have the same m_modifyBias
  29362. as the original SelectionController, or else when the
  29363. modification is performed, setModifyBias can swap the base
  29364. and the extent incorrectly (added a testcase).
  29365. Renamed m_modifyBias to m_lastChangeWasHorizontalExtension.
  29366. Renamed setModifyBias to willBeModified.
  29367. * editing/SelectionController.cpp:
  29368. (WebCore::SelectionController::SelectionController):
  29369. (WebCore::SelectionController::setSelection):
  29370. (WebCore::SelectionController::willBeModified):
  29371. (WebCore::SelectionController::modify):
  29372. * editing/SelectionController.h:
  29373. (WebCore::SelectionController::setLastChangeWasHorizontalExtension):
  29374. * page/EventHandler.cpp:
  29375. (WebCore::EventHandler::handleMousePressEventSingleClick):
  29376. (WebCore::EventHandler::updateSelectionForMouseDragOverPosition):
  29377. 2007-05-10 Geoffrey Garen <ggaren@apple.com>
  29378. Reviewed by Darin Adler.
  29379. "IconDatabase::sharedIconDatabase()" => "iconDatabase()" for terseness,
  29380. in the style of WebCore::cache().
  29381. * WebCore.exp:
  29382. * history/HistoryItem.cpp: Removed retainIconInDatabase because calling
  29383. "retain" in order to release something is really confusing and, now that
  29384. iconDatabase() is more terse, we don't need this helper to shorten the
  29385. syntax. (The isEmpty() check is also done by the database, so we don't
  29386. need it either.)
  29387. (WebCore::IconDatabase::~IconDatabase): ASSERT that our destructor isn't
  29388. called. We're a singleton, so it's confusing to have tear-down code.
  29389. 2007-05-10 Adele Peterson <adele@apple.com>
  29390. Reviewed by Hyatt.
  29391. WebCore part of fix for <rdar://problem/4100616> Doing a "find" in RSS doesn't scroll to result
  29392. Test: fast/overflow/scroll-nested-positioned-layer-in-overflow.html
  29393. Merged visibleSelectionRect into selectionRect. selectionRect() now takes an argument to determine
  29394. whether or not to return a rect that clips to the visible content. This change makes all of the implementations of selectionRect
  29395. consistent by having them all consider the repaint rect when clipping to visible content.
  29396. * page/Frame.cpp:
  29397. (WebCore::Frame::revealSelection): Call selectionRect with clipToVisibleContent = false, so we can get a rect that's not visible to reveal.
  29398. (WebCore::Frame::selectionRect): Added clipToVisibleContent argument, and merged visibleSelectionRect into this method.
  29399. (WebCore::Frame::setIsActive): Use selectionRect instead of visibleSelectionRect.
  29400. * page/Frame.h:
  29401. * page/mac/FrameMac.mm: (WebCore::Frame::selectionImage): Update layout before creating the image. Use selectionRect instead of visibleSelectionRect.
  29402. * page/DragController.cpp: (WebCore::dragLocForSelectionDrag): Use selectionRect instead of visibleSelectionRect.
  29403. * rendering/RenderBR.h: (WebCore::RenderBR::selectionRect): Updated argument.
  29404. * rendering/RenderBlock.h: (WebCore::RenderBlock::selectionRect): ditto.
  29405. * rendering/RenderSVGInlineText.cpp: (WebCore::RenderSVGInlineText::selectionRect): ditto.
  29406. * rendering/RenderSVGInlineText.h: ditto.
  29407. * rendering/RenderObject.h:
  29408. (WebCore::RenderObject::selectionRect): ditto.
  29409. (WebCore::RenderObject::SelectionInfo::SelectionInfo): ditto.
  29410. * rendering/RenderView.cpp:
  29411. (WebCore::RenderView::selectionRect): ditto.
  29412. (WebCore::RenderView::setSelection): ditto.
  29413. * rendering/RenderView.h:
  29414. * rendering/RenderText.h:
  29415. * rendering/RenderText.cpp: (WebCore::RenderText::selectionRect): Only call computeAbsoluteRepaintRect when clipping to visible content.
  29416. Otherwise, just adjust the rect to the correct position.
  29417. * rendering/RenderListMarker.h:
  29418. * rendering/RenderListMarker.cpp: (WebCore::RenderListMarker::selectionRect):
  29419. To match what we do in RenderText, if we're trying to clip to visible content, just call computeAbsoluteRepaintRect.
  29420. * rendering/RenderReplaced.h:
  29421. * rendering/RenderReplaced.cpp: (WebCore::RenderReplaced::selectionRect): ditto.
  29422. * rendering/RenderLayer.cpp: (WebCore::RenderLayer::scrollRectToVisible): Check for a parent layer at the beginning, so we can try to scroll all of our parent layers
  29423. first, before trying to scroll the top level view. Also, don't try to scroll overflow layers that have -webkit-line-clamp restricting the height.
  29424. This will prevent us from revealing text hidden by the slider in Safari RSS.
  29425. * WebCore.exp: Update symbols for WebKit.
  29426. 2007-05-10 David Hyatt <hyatt@apple.com>
  29427. Fix for:
  29428. <rdar://problem/5195272> REGRESSION: broke outline rings for continuations
  29429. with empty inline containers
  29430. http://bugs.webkit.org/show_bug.cgi?id=13667
  29431. Make sure to only include collapsed top/bottom margins of the block portion
  29432. of the continuation if we know for sure that we have inline line boxes before
  29433. and after that would prevent the collapse from going further.
  29434. In plain English: the focus rings were too tall. :)
  29435. Reviewed by beth
  29436. * rendering/RenderFlow.cpp:
  29437. (WebCore::RenderFlow::addFocusRingRects):
  29438. 2007-05-10 David Hyatt <hyatt@apple.com>
  29439. Fix for:
  29440. <rdar://problem/5067235> REGRESSION: Excessively wide table, impossible to resize
  29441. The table used white-space: pre-wrap, which is supported only by WebKit. There
  29442. was a bug with the computation of min pref width for pre-wrap text.
  29443. Reviewed by mitzpettel
  29444. fast/text/white-space/pre-wrap-line-test.html
  29445. * rendering/RenderText.cpp:
  29446. (WebCore::RenderText::calcPrefWidths):
  29447. 2007-05-10 Brady Eidson <beidson@apple.com>
  29448. Reviewed by Oliver
  29449. Cleanup from my earlier Java Applet patch. We should keep a central location to query if
  29450. a mime type counts as a Java Applet
  29451. * html/HTMLObjectElement.cpp:
  29452. (WebCore::HTMLObjectElement::containsJavaApplet): Query MimeTypeRegistry on the type
  29453. * platform/MimeTypeRegistry.cpp:
  29454. (WebCore::MimeTypeRegistry::isSupportedImageMIMEType): Update style
  29455. (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType): Ditto
  29456. (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType): Ditto
  29457. (WebCore::MimeTypeRegistry::isJavaAppletMIMEType): Perform the Java Applet check
  29458. * platform/MimeTypeRegistry.h:
  29459. * rendering/RenderPartObject.cpp:
  29460. (WebCore::RenderPartObject::updateWidget): Query MimeTypeRegistry on the type
  29461. 2007-05-10 Patti Hoa <patti@apple.com>
  29462. Reviewed by Darin.
  29463. <rdar://problem/4720109> Sentence textMarker methods do not work well with empty lines
  29464. * bridge/mac/WebCoreAXObject.mm:
  29465. (-[WebCoreAXObject doAXNextSentenceEndTextMarkerForTextMarker:]):
  29466. (-[WebCoreAXObject doAXPreviousSentenceStartTextMarkerForTextMarker:]):
  29467. When a marker position is given, the sentence ax methods automatically shift position by one to make sure
  29468. not to ask for the current sentence again. This is generally fine except when the position
  29469. shift over an empty line break, which is should be considered a separate sentence. In this case,
  29470. if we used the shifted position to ask for sentence boundary, ICU parser is not given the text data
  29471. containing the newline to correctly determine the sentence boundary. Since the ax sentence method is
  29472. explicitly shifting the position to ask for sentence boundary, it should make sure not to skip over important
  29473. character that can be a standalone sentence.
  29474. * editing/visible_units.cpp:
  29475. (WebCore::nextBoundary):
  29476. When determining boundary, don't stop on a collapsed range, such as newline.
  29477. Just pick the next valid position to use as boundary.
  29478. 2007-05-10 Maciej Stachowiak <mjs@apple.com>
  29479. Reviewed by Oliver.
  29480. - WebCore part of fix for:
  29481. <rdar://problem/5063277> blank screen after login to Citibank Online (accessing document before frame starts loading cancels load)
  29482. <rdar://problem/5159541> REGRESSION (r20972): Wall Street Journal pages replaced by advertisements (13465)
  29483. The basic approach is to have Frames start out containing an empty document instead of absolutely nothing,
  29484. so there is no need to initialize them on demand. Various side effects of that cause both of these bugs.
  29485. However, this caused many regressions so I had to fix the fallout.
  29486. * WebCore.exp: fix symbol exports
  29487. * bindings/js/kjs_window.cpp:
  29488. (KJS::createNewWindow): useless "created" bool (we don't need it here)
  29489. (KJS::WindowFunc::callAsFunction): detect if we created a new frame, because if so,
  29490. we need to initialize the domain (can't count on it not having a document), also
  29491. don't try to make a new document for it.
  29492. Also, stop properly.
  29493. * css/cssstyleselector.cpp:
  29494. (WebCore::CSSStyleSelector::CSSStyleSelector): don't count on document having a view here
  29495. * html/HTMLObjectElement.cpp:
  29496. (WebCore::HTMLObjectElement::isImageType): Ask client, to match how other <object> renderer
  29497. decisions are made.
  29498. * loader/FrameLoader.cpp:
  29499. (WebCore::FrameLoader::FrameLoader): Initialize new data members
  29500. (WebCore::FrameLoader::init): Do the slightly tricky sequence of steps to properly make
  29501. an empty document with everything hooked up.
  29502. (WebCore::FrameLoader::createWindow): Added "created" bool.
  29503. (WebCore::FrameLoader::stopLoading): (whitespace change)
  29504. (WebCore::FrameLoader::begin): Don't try to create an empty document.
  29505. (WebCore::FrameLoader::finishedParsing): If creating an initial empty document, don't
  29506. do any of this work.
  29507. (WebCore::FrameLoader::checkCompleted): Do checkLoadComplete() as well.
  29508. (WebCore::FrameLoader::baseURL): don't check for null document
  29509. (WebCore::FrameLoader::baseTarget): ditto
  29510. (WebCore::FrameLoader::completeURL): ditto
  29511. (WebCore::FrameLoader::didTellBridgeAboutLoad): ditto
  29512. (WebCore::FrameLoader::scheduleLocationChange): determine duringLoad differently; doc won't
  29513. be null.
  29514. (WebCore::FrameLoader::gotoAnchor): don't check for null document
  29515. (WebCore::FrameLoader::canTarget): don't check for null document
  29516. (WebCore::FrameLoader::stopForUserCancel): new method for explicit stops like window.stop().
  29517. (WebCore::FrameLoader::transitionToCommitted): check for pre-loaded state properly
  29518. (WebCore::FrameLoader::createEmptyDocument): removed
  29519. (WebCore::FrameLoader::checkLoadCompleteForThisFrame): don't send delegate callbacks when making initial
  29520. doc.
  29521. (WebCore::FrameLoader::tokenizerProcessedData): Assume document; just checkCompleted now that it
  29522. does checkLoadComplete.
  29523. (WebCore::FrameLoader::receivedMainResourceError): assume document
  29524. (WebCore::FrameLoader::saveDocumentState): Assume there's a document except during initial load
  29525. (WebCore::FrameLoader::mainReceivedCompleteError): do checkCompleted, not checkLoadComplete
  29526. (WebCore::FrameLoader::continueLoadWithData): assume document
  29527. * loader/FrameLoader.h:
  29528. * loader/MainResourceLoader.cpp:
  29529. (WebCore::MainResourceLoader::receivedError): Add more ref protection and do things in a slightly
  29530. different order.
  29531. * page/DOMWindow.cpp:
  29532. (WebCore::DOMWindow::document): don't force document creation, just assert there is one.
  29533. * page/Frame.cpp:
  29534. (WebCore::Frame::init): Added init method.
  29535. (WebCore::Frame::pageDestroyed): when a frame is removed, make sure to check if the parent is
  29536. done loading.
  29537. * page/Frame.h:
  29538. * page/mac/WebCoreFrameBridge.mm:
  29539. (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]): No need to force
  29540. document.
  29541. (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]): ditto
  29542. * platform/graphics/svg/SVGImage.cpp:
  29543. (WebCore::SVGImage::dataChanged): init the frame
  29544. * rendering/RenderPart.cpp:
  29545. (WebCore::RenderPart::updateWidgetPosition): If a subframe needs layout, then lay it out even
  29546. if the bounds did not change; the content size might be wrong.
  29547. * rendering/RenderTreeAsText.cpp:
  29548. (WebCore::externalRepresentation): Don't crash if the frame lacks a view.
  29549. 2007-05-10 David Hyatt <hyatt@apple.com>
  29550. Fix for:
  29551. <rdar://problem/5146757> REGRESSION: div that wrapped to screen width in
  29552. tiger no longer wraps
  29553. http://bugs.webkit.org/show_bug.cgi?id=13654
  29554. Reviewed by mitz
  29555. fast/text/whitespace/normal-after-nowrap-breaking.html
  29556. * rendering/RenderBlock.cpp:
  29557. (WebCore::RenderBlock::calcInlinePrefWidths):
  29558. 2007-05-10 David Hyatt <hyatt@apple.com>
  29559. Fix for:
  29560. <rdar://problem/4778099> Links with nested continuations fail to
  29561. paint their outlines (11255)
  29562. http://bugs.webkit.org/show_bug.cgi?id=11255
  29563. Fix multiple bugs with outline painting of continuations to ensure that
  29564. all combos work (empty/full inline - block with/without margins -
  29565. empty/full inline).
  29566. Reviewed by mitz
  29567. fast/inline/continuation-outlines.html
  29568. * rendering/RenderBlock.cpp:
  29569. (WebCore::RenderBlock::paintObject):
  29570. * rendering/RenderFlow.cpp:
  29571. (WebCore::RenderFlow::addFocusRingRects):
  29572. 2007-05-10 David Hyatt <hyatt@apple.com>
  29573. Fix for:
  29574. <rdar://problem/5193529> REGRESSION: RTL Overflows scrollbar not showing
  29575. when they should be
  29576. Fallout from fix for bug 11926. Make sure to restrict the fix to the
  29577. RenderView for now, since the full-blown overflow case is pretty involved.
  29578. Reviewed by mitzpettel
  29579. fast/overflow/unreachable-content-bug-rtl.html
  29580. * rendering/RenderBlock.cpp:
  29581. (WebCore::RenderBlock::lowestPosition):
  29582. (WebCore::RenderBlock::rightmostPosition):
  29583. (WebCore::RenderBlock::leftmostPosition):
  29584. 2007-05-10 Brady Eidson <beidson@apple.com>
  29585. Reviewed by Oliver
  29586. Fix for http://bugs.webkit.org/show_bug.cgi?id=13636 and <rdar://problem/5190816>
  29587. When creating the applets collection, be sure to only count Objects if they contain
  29588. a java applet
  29589. * html/HTMLCollection.cpp:
  29590. (WebCore::HTMLCollection::traverseNextItem): Add the qualifier for Objects that
  29591. containsJavaApplet() must be true
  29592. * html/HTMLObjectElement.cpp:
  29593. (WebCore::HTMLObjectElement::containsJavaApplet): Check this Object element and inner
  29594. nodes for any Java applets
  29595. * html/HTMLObjectElement.h:
  29596. 2007-05-10 David Hyatt <hyatt@apple.com>
  29597. Fix for:
  29598. <rdar://problem/4694859> SAP: HTML tags with overflow:hidden consume
  29599. space on page, do not consume space in Firefox (11926)
  29600. http://bugs.webkit.org/show_bug.cgi?id=11926
  29601. Make sure that unreachable objects along one axis (e.g., top/left) do not
  29602. contribute to the scrollable area in the opposite axis (e.g., right/bottom).
  29603. Reviewed by olliej
  29604. fast/overflow/unreachable-content-test.html
  29605. * rendering/RenderBlock.cpp:
  29606. (WebCore::RenderBlock::lowestPosition):
  29607. (WebCore::RenderBlock::rightmostPosition):
  29608. (WebCore::RenderBlock::leftmostPosition):
  29609. 2007-05-10 David Hyatt <hyatt@apple.com>
  29610. Fix for:
  29611. <rdar://problem/4656825> REGRESSION: Japanese TV time table widget:
  29612. part of the number in background has been cut off.
  29613. Now that opacity uses a tight bounding box to clip, we need to make sure
  29614. to factor spillout caused by negative letter spacing into our right
  29615. overflow. Latch on to the code that does this already for text-stroke
  29616. and text-shadow.
  29617. Reviewed by olliej
  29618. fast/text/letter-spacing-negative-opacity.html
  29619. * rendering/InlineFlowBox.cpp:
  29620. (WebCore::InlineFlowBox::placeBoxesHorizontally):
  29621. 2007-05-10 Geoffrey Garen <ggaren@apple.com>
  29622. Reviewed by Maciej Stachowiak.
  29623. More fix-ups to the WebScriptObject/WebScripting APIs, related to
  29624. <rdar://problem/5140447> API for fetching JSGlobalContextRef from WebView
  29625. or WebFrame
  29626. * bindings/objc/WebScriptObject.h: Fully specified the surprising rules for
  29627. type conversion between JavaScript and ObjC.
  29628. * bindings/objc/WebScriptObject.mm: Added up-call accessor to WebFrame.
  29629. This is kind of stinky, but I'm OK with it because eventually all of this
  29630. code should move up into WebKit.
  29631. (+[WebScriptObject scriptObjectForJSObject:frame:]):
  29632. (-[WebScriptObject valueForKey:]):
  29633. (-[WebScriptObject JSObject]):
  29634. - Added _rootObject check because if _rootObject returns NULL it means
  29635. that _imp is no longer GC protected, so it's not safe to use.
  29636. - Added _isSafeScript check because that's what WebScriptObject methods
  29637. typically do, even though the value of doing so isn't clear to me.
  29638. * bindings/objc/WebScriptObjectPendingPublic.h: Added WebFrame* parameter
  29639. to -scriptObjectForJSObject:. This is required to wrap JS objects that
  29640. are not already in the wrapper cache. It would be nice to remove this
  29641. limitation of WebScriptObject some day.
  29642. * page/mac/FrameMac.mm:
  29643. (WebCore::Frame::cleanupPlatformScriptObjects): Force removal of m_windowScriptObject
  29644. from the cache, to avoid retrieving the m_windowScriptObject from the previous
  29645. page on a new page load. (It would be non-functional in that case.)
  29646. 2007-05-10 David Hyatt <hyatt@apple.com>
  29647. Fix for <rdar://problem/5183697>.
  29648. http://bugs.webkit.org/show_bug.cgi?id=13576
  29649. Make sure verticalPositionHint is not called on an inline-block from
  29650. content inside the inline-block (like text).
  29651. Reviewed by olliej
  29652. fast/inline-block/inline-block-vertical-align.html
  29653. * rendering/RenderObject.cpp:
  29654. (WebCore::RenderObject::verticalPositionHint):
  29655. * rendering/RenderText.cpp:
  29656. (WebCore::RenderText::verticalPositionHint):
  29657. * rendering/RenderThemeMac.mm:
  29658. (WebCore::RenderThemeMac::setFontFromControlSize):
  29659. 2007-05-09 Holger Freyther <zecke@selfish.org>
  29660. Reviewed by Mark Rowe.
  29661. Gdk build fix with SVG enabled. Stub out ImageBufferCairo.
  29662. * WebCore.pro: Build ImageBufferCairo.cpp
  29663. * platform/graphics/cairo/ImageBufferCairo.cpp: Added.
  29664. (WebCore::ImageBuffer::create):
  29665. (WebCore::ImageBuffer::~ImageBuffer):
  29666. (WebCore::ImageBuffer::context):
  29667. 2007-05-08 Justin Garcia <justin.garcia@apple.com>
  29668. Reviewed by darin
  29669. <rdar://problem/5017613> Style changes don't effect fully selected ToDo content
  29670. * editing/ApplyStyleCommand.cpp:
  29671. (WebCore::ApplyStyleCommand::applyInlineStyle):
  29672. Use a for loop instead of while(1).
  29673. Simplify loop termination using Range::pastEndNode.
  29674. Don't handle the start.node() == end.node() case
  29675. specially, it's unnecessary.
  29676. Apply the style change to fully selected plaintext-only
  29677. regions, not with wrapper spans inside the region, but
  29678. by changing the element's inline style declaration.
  29679. Don't descend into nodes whose children we should ignore.
  29680. 2007-05-09 Adele Peterson <adele@apple.com>
  29681. Reviewed by Hyatt.
  29682. Fix for <rdar://problem/5113578> REGRESSION: textfields that set the height but not the font
  29683. look different from IE & FF because the font is small
  29684. For plain text fields, don't stretch the inner text box. Center it vertically in the field.
  29685. * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::layout):
  29686. 2007-05-09 Atul Mehrotra <atul.mehrotra@celunite.com>
  29687. Gdk build fix.
  29688. * platform/gdk/TemporaryLinkStubs.cpp:
  29689. (Editor::newGeneralClipboard):
  29690. 2007-05-09 Mitz Pettel <mitz@webkit.org>
  29691. Reviewed by Dave Hyatt.
  29692. - fix http://bugs.webkit.org/show_bug.cgi?id=13037
  29693. REGRESSION: Copy-on-scroll not reset properly after back/forward navigation
  29694. * page/FrameView.cpp:
  29695. (WebCore::FrameViewPrivate::FrameViewPrivate): Moved initialization of
  29696. m_slowRepaintObjectCount here.
  29697. (WebCore::FrameViewPrivate::reset): Do not reset the slow repaint object
  29698. count here.
  29699. (WebCore::FrameView::useSlowRepaints):
  29700. (WebCore::FrameView::addSlowRepaintObject):
  29701. (WebCore::FrameView::removeSlowRepaintObject): Added an assertion that the
  29702. object count is positive.
  29703. * rendering/RenderObject.cpp:
  29704. (WebCore::RenderObject::setStyle): Corrected a mix up between old and new
  29705. style, which caused the object count to be decremented when it was supposed
  29706. to be incremented and vice versa.
  29707. 2007-05-09 Peter Müller <pm@one.com>
  29708. Reviewed by Dave Hyatt.
  29709. Changed the hardcoded colors that are used for CSS 2.1 system colors.
  29710. Previous colors had numerous conflicts in semantic pairs, which
  29711. made text invisible in highlight, info and menu colored areas.
  29712. The new hardcoded colors are inspired by Aqua.
  29713. Ideally these colors should be fetched through AppKit instead,
  29714. though I am not sure if it is possible to make a 1:1 mapping
  29715. between CSS2.1 system colors and Mac OS X.
  29716. * css/cssstyleselector.cpp:
  29717. (WebCore::):
  29718. 2007-05-09 Lars Knoll <lars@trolltech.com>
  29719. Fix the Qt build.
  29720. * editing/qt/EditorQt.cpp:
  29721. 2007-05-08 Geoffrey Garen <ggaren@apple.com>
  29722. Reviewed by Darin Adler.
  29723. More fix-ups to the WebScriptObject/WebScripting APIs, related to
  29724. <rdar://problem/5140447> API for fetching JSGlobalContextRef from WebView
  29725. or WebFrame
  29726. 1. Added -scriptObjectForJSObject: SPI so you can bridge back from JavaScriptCore
  29727. to WebScriptObject.
  29728. 2. Fixed WebScriptObject bridging so that you always get the same WebScriptObject
  29729. for a JSObject (like in the DOM). This makes -scriptObjectForJSObject: a
  29730. lot more coherent as an API.
  29731. * bindings/objc/DOMInternal.mm: Renamed wrapperCache to DOMWrapperCache
  29732. to distinguish from the JSWrapperCache. Added typedef for readability.
  29733. (WebCore::getDOMWrapper):
  29734. (WebCore::addDOMWrapper):
  29735. (WebCore::removeDOMWrapper):
  29736. * bindings/objc/WebScriptObject.mm: Added JSWrapperCache, which works just
  29737. like the DOMWrapperCache.
  29738. (WebCore::getJSWrapper):
  29739. (WebCore::addJSWrapper):
  29740. (WebCore::removeJSWrapper):
  29741. (WebCore::createJSWrapper):
  29742. (+[WebScriptObject scriptObjectForJSObject:]): This is the new API. It attempts
  29743. to return a specific DOM wrapper object, or, barring that, it returns a
  29744. generic WebScriptObject.
  29745. (+[WebScriptObject scriptObjectForJSObject:originRootObject:rootObject:]):
  29746. Added this method to support our old WebScriptObject security and leak
  29747. checking model, even though it doesn't work very well.
  29748. (-[WebScriptObject _setImp:originRootObject:rootObject:]):
  29749. (-[WebScriptObject dealloc]):
  29750. (-[WebScriptObject finalize]):
  29751. (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
  29752. * bindings/objc/WebScriptObjectPendingPublic.h:
  29753. * bindings/objc/WebScriptObjectPrivate.h:
  29754. * page/mac/FrameMac.mm:
  29755. (WebCore::Frame::windowScriptObject): Changed to use the new API. This
  29756. fixes a bug where the object sent to -windowScriptObjectAvailable: and returned
  29757. from -windowScriptObject could not be round-tripped.
  29758. 2007-05-09 Mark Rowe <mrowe@apple.com>
  29759. Build fix.
  29760. * editing/Editor.cpp:
  29761. (WebCore::findFirstGrammarDetailInRange): Use unsigned rather than int.
  29762. (WebCore::findFirstBadGrammarInRange): Cast to unsigned in assertion.
  29763. (WebCore::isRangeUngrammatical): Remove unused variables.
  29764. 2007-05-08 Oliver Hunt <oliver@apple.com>
  29765. Reviewed by Darin.
  29766. Fix <rdar://problem/5188938> arc method on Canvas causes hang or crash
  29767. Workaround bad behaviour of CGPathAddArc when passed inf as start or
  29768. end angles.
  29769. * platform/graphics/cg/PathCG.cpp:
  29770. (WebCore::Path::addArc):
  29771. 2007-05-08 Darin Adler <darin@apple.com>
  29772. Reviewed by Hyatt and Hatcher.
  29773. - fix auto-activation code path so Tiger and Leopard aren't different
  29774. * platform/mac/WebFontCache.mm: (+[WebFontCache fontWithFamily:traits:size:]):
  29775. Do the auto-activation dance first before doing anything else, and ignore the
  29776. font that it returns.
  29777. 2007-05-08 Steve Falkenburg <sfalken@apple.com>
  29778. Reviewed by Darin.
  29779. Moved most spelling/grammar logic to C++. Now calls through to
  29780. WebKit to actually invoke NSSpellChecker.
  29781. * editing/Editor.cpp:
  29782. (WebCore::Editor::ignoreSpelling): Added (ported from EditorMac).
  29783. (WebCore::Editor::learnSpelling): Added (ported from EditorMac).
  29784. (WebCore::findFirstMisspellingInRange): Added (ported from EditorMac).
  29785. (WebCore::paragraphAlignedRangeForRange): Added (ported from EditorMac).
  29786. (WebCore::findFirstGrammarDetailInRange): Added (ported from EditorMac).
  29787. (WebCore::findFirstBadGrammarInRange): Added (ported from EditorMac).
  29788. (WebCore::Editor::advanceToNextMisspelling): Added (ported from EditorMac).
  29789. (WebCore::Editor::isSelectionMisspelled): Added (ported from EditorMac).
  29790. (WebCore::isRangeUngrammatical): Added (ported from EditorMac).
  29791. (WebCore::Editor::isSelectionUngrammatical): Added (ported from EditorMac).
  29792. (WebCore::Editor::guessesForUngrammaticalSelection): Added (ported from EditorMac).
  29793. (WebCore::Editor::guessesForMisspelledSelection): Added (ported from EditorMac).
  29794. (WebCore::Editor::showSpellingGuessPanel): Added (ported from EditorMac).
  29795. (WebCore::Editor::spellingPanelIsShowing): Added (ported from EditorMac).
  29796. (WebCore::Editor::markMisspellingsAfterTypingToPosition): Added (ported from EditorMac).
  29797. (WebCore::markAllMisspellingsInRange): Added (ported from EditorMac).
  29798. (WebCore::markAllBadGrammarInRange): Added (ported from EditorMac).
  29799. (WebCore::markMisspellingsOrBadGrammar): Added (ported from EditorMac).
  29800. (WebCore::Editor::markMisspellings): Added (ported from EditorMac).
  29801. (WebCore::Editor::markBadGrammar): Added (ported from EditorMac).
  29802. * editing/mac/EditorMac.mm: Removed Objective C version of spelling/grammar calls.
  29803. 2007-05-08 Steve Falkenburg <sfalken@apple.com>
  29804. Reviewed by Ada.
  29805. Slight modification to last editor method fix.
  29806. * bridge/EditorClient.h:
  29807. * platform/gdk/EditorClientGdk.cpp:
  29808. (WebCore::EditorClientGdk::updateSpellingUIWithGrammarString):
  29809. * platform/gdk/EditorClientGdk.h:
  29810. * platform/graphics/svg/SVGImageEmptyClients.h:
  29811. (WebCore::SVGEmptyEditorClient::updateSpellingUIWithGrammarString):
  29812. 2007-05-08 Alexey Proskuryakov <ap@webkit.org>
  29813. Reviewed by Hyatt.
  29814. http://bugs.webkit.org/show_bug.cgi?id=13480
  29815. window.Attr is undefined
  29816. Test: fast/dom/Window/attr-constructor.html
  29817. * dom/Attr.idl:
  29818. * dom/CDATASection.idl:
  29819. * dom/CharacterData.idl:
  29820. * dom/Comment.idl:
  29821. * dom/DOMImplementation.idl:
  29822. * dom/DocumentType.idl:
  29823. * dom/Entity.idl:
  29824. * dom/EntityReference.idl:
  29825. * dom/Notation.idl:
  29826. * dom/ProcessingInstruction.idl:
  29827. * dom/Text.idl:
  29828. Added GenerateConstructor.
  29829. * page/DOMWindow.idl: Added constructor properties for DOM interfaces.
  29830. 2007-05-07 Geoffrey Garen <ggaren@apple.com>
  29831. Reviewed by Maciej Stachowiak.
  29832. Fixed <rdar://problem/5140447> API for fetching JSGlobalContextRef from
  29833. WebView or WebFrame
  29834. Added support for new -[WebScriptObject JSObject] and -[WebFrame globalContext]
  29835. APIs.
  29836. Also fixed some more cases of <rdar://problem/4395622> API:
  29837. WebScriptObject.h incorrectly reports that -isSelectorExcludedFromWebScript
  29838. returns NO by default, and generally cleaned up that documentation.
  29839. * WebCore.exp: A lot of the diff here is from sorting.
  29840. * WebCore.xcodeproj/project.pbxproj:
  29841. * bindings/objc/WebScriptObject.h:
  29842. * bindings/objc/WebScriptObject.mm:
  29843. (-[WebScriptObject JSObject]):
  29844. * bindings/objc/WebScriptObjectPendingPublic.h: Added.
  29845. 2007-05-08 Lars Knoll <lars@trolltech.com>
  29846. Reviewed by Hyatt.
  29847. Fix valgrind reported uninitialized memory read.
  29848. * rendering/RenderText.cpp:
  29849. (WebCore::RenderText::RenderText):
  29850. 2007-05-07 Justin Garcia <justin.garcia@apple.com>
  29851. Reviewed by oliver
  29852. <rdar://problem/4895428> Can't drag selected ToDo
  29853. The user tries to drag a selection by mousing down
  29854. on the editable part of a ToDo, which is focusable,
  29855. since it is an editable node within non-editable
  29856. content. But we focus focusable elements on mouse
  29857. down, and focusing the editable piece blows away
  29858. the selection and prevents the drag. This is how
  29859. IE behaves, but content seems generally difficult
  29860. to drag in IE, so this doesn't make it any worse.
  29861. Since focus doesn't appear to be cancelable, either
  29862. with a DOM event or an editing delegate, I fixed this
  29863. by delaying the focus of focusable nodes that are
  29864. selected and inside an already focused node. The
  29865. node will be focused if the user mouses up without
  29866. doing any dragging because the mouse up sets a
  29867. selection, which calls setFocusNodeIfNeeded.
  29868. * page/EventHandler.cpp:
  29869. (WebCore::EventHandler::dispatchMouseEvent):
  29870. 2007-05-07 Atul Mehrotra <atul.mehrotra@celunite.com>
  29871. Reviewed by Maciej.
  29872. GDK Build fix
  29873. * platform/gdk/TemporaryLinkStubs.cpp:
  29874. 2007-05-07 Oliver Hunt <oliver@apple.com>
  29875. Reviewed by Maciej.
  29876. Correcting comparisons to handle NaN in the same manner
  29877. as other Canvas methods.
  29878. * html/CanvasRenderingContext2D.cpp:
  29879. (WebCore::CanvasRenderingContext2D::arcTo):
  29880. (WebCore::CanvasRenderingContext2D::arc):
  29881. Correcting arc/arcTo to match the WHAT WG draft.
  29882. (WebCore::CanvasRenderingContext2D::rect):
  29883. (WebCore::CanvasRenderingContext2D::clearRect):
  29884. (WebCore::CanvasRenderingContext2D::fillRect):
  29885. (WebCore::CanvasRenderingContext2D::strokeRect):
  29886. 2007-05-07 David Hyatt <hyatt@apple.com>
  29887. Add some comments to the glyph/font code (patch from Brett Wilson, tweaked by
  29888. me to correct a few bits and to make it forward-compatible with the work
  29889. going on in 3315.
  29890. Reviewed by me
  29891. * ChangeLog:
  29892. * platform/Font.cpp:
  29893. (WebCore::Font::glyphDataForCharacter):
  29894. * platform/GlyphPageTreeNode.cpp:
  29895. (WebCore::GlyphPageTreeNode::initializePage):
  29896. * platform/GlyphPageTreeNode.h:
  29897. 2007-05-07 Justin Garcia <justin.garcia@apple.com>
  29898. Fix layout test failures.
  29899. * editing/SelectionController.cpp:
  29900. (WebCore::SelectionController::contains): Use comparePositions
  29901. instead of Range::comparePoint, because comparePositions can
  29902. handle positions inside shadow trees.
  29903. 2007-05-07 Justin Garcia <justin.garcia@apple.com>
  29904. Reviewed by darin
  29905. <rdar://problem/4895428> Can't drag selected To Do if it is not showing a due date
  29906. The code in SelectionController::contains returned false
  29907. incorrectly if the selection end just after a table
  29908. and the position was inside that table.
  29909. * editing/SelectionController.cpp:
  29910. (WebCore::SelectionController::contains): Compare the position with the
  29911. ends of the selection and then use Range::comparePoint.
  29912. 2007-05-07 Darin Adler <darin@apple.com>
  29913. - rolling out setInnerHTML optimization until I can figure out why tests are failing
  29914. 2007-05-07 Darin Adler <darin@apple.com>
  29915. Reviewed by Hyatt.
  29916. - fix http://bugs.webkit.org/show_bug.cgi?id=13602
  29917. Amazon product pages keep repainting over and over again
  29918. Optimize setInnerHTML, setOuterHTML, and setInnerText so they don't change the DOM at all
  29919. if they don't need to.
  29920. Test: fast/dom/HTMLElement/set-inner-outer-optimization.html
  29921. * html/HTMLElement.cpp:
  29922. (WebCore::equal): Added. Helper function that compares two Text nodes or two NamedAttrMap
  29923. attribute maps.
  29924. (WebCore::shallowEqual): Added. Helper function that compares two Element nodes or two
  29925. arbitrary nodes.
  29926. (WebCore::replaceChildrenWithFragment): Added. Helper function used by setInnerHTML and
  29927. setInnerText. Optimizes the cases where all the nodes are the same, where both the current
  29928. and the new content are single text nodes, and where the current content is a single node
  29929. that can be replaced with replaceChild.
  29930. (WebCore::replaceChildrenWithText): Added. Helper function used by setInnerText. Optimizes
  29931. the case where the current content is a single text node or a single node that can be
  29932. replaced with replaceChild.
  29933. (WebCore::HTMLElement::setInnerHTML): Changed to call replaceChildrenWithFragment.
  29934. (WebCore::HTMLElement::setOuterHTML): Added special case to optimize when the new content
  29935. exactly matches the current node.
  29936. (WebCore::HTMLElement::setInnerText): Changed to call replaceChildrenWithText in a few
  29937. cases instead of doing removeChildren/appendChild. Changed code that was using
  29938. DeprecatedString to instead use String. Changed general case to use a document fragment
  29939. and replaceChildrenWithFragment.
  29940. * dom/CharacterData.cpp: (WebCore::CharacterData::dispatchModifiedEvent):
  29941. Fixed bug where we would not dispatch the DOMSubtreeModified event unless someone
  29942. was registered for the DOMCharacterDataModified event. Caused trouble in the test.
  29943. 2007-05-06 Darin Adler <darin@apple.com>
  29944. - blind try at fixing the Qt build
  29945. * platform/qt/TextBreakIteratorQt.cpp: (WebCore::sentenceBreakIterator):
  29946. Added a placeholder.
  29947. 2007-05-06 Darin Adler <darin@apple.com>
  29948. Reviewed by Hyatt.
  29949. - fix http://bugs.webkit.org/show_bug.cgi?id=13537
  29950. Canvex example starts rendering strangely after a while
  29951. * html/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::drawImage):
  29952. Don't raise an exception if the source or destination rectangle is empty.
  29953. 2007-05-06 Darin Adler <darin@apple.com>
  29954. Reviewed by Hyatt.
  29955. - fix <rdar://problem/4585593> REGRESSION: Some 2-byte characters in printed page
  29956. header are drawn with too-large font and clipped
  29957. Doesn't affect text within web pages, so no layout test.
  29958. * platform/mac/FontCacheMac.mm: (WebCore::FontCache::getFontDataForCharacters):
  29959. Base the substitute font on the FontPlatformData rather than the FontDescription.
  29960. Before, it was a mix of both. This works properly for fonts where we have no
  29961. FontDescription and is also more internally consistent.
  29962. 2007-05-06 Darin Adler <darin@apple.com>
  29963. Reviewed by Hyatt.
  29964. - http://bugs.webkit.org/show_bug.cgi?id=13606
  29965. some functions are virtual that don't need to be
  29966. * dom/Node.h: Made first/lastChild be inline functions that call virtual functions.
  29967. This lets us hide the functions with another inline function in a derived class,
  29968. yet still override the behavior here in the base class by overriding the virtual
  29969. functions too.
  29970. * dom/Node.cpp:
  29971. (WebCore::Node::virtualFirstChild): Renamed virtual functions. There are now
  29972. non-virtual inline functions that call these virtual functions.
  29973. (WebCore::Node::virtualLastChild): Ditto.
  29974. * dom/ContainerNode.h: Added non-virtual first/lastChild functions that hide the ones
  29975. inherited from the Node class; these also replace the fastFirst/LastChild functions,
  29976. and transparently give callers the faster form if they have a pointer of the right
  29977. type. But still override the virtual functions named virtualFirst/LastChild, because
  29978. those can still be called through a Node*. Removed the "fast" from the names of
  29979. fastSetFirst/LastChild.
  29980. * dom/ContainerNode.cpp:
  29981. (WebCore::ContainerNode::virtualFirstChild): Renamed virtual functions. There are now
  29982. also non-virtual inline versions.
  29983. (WebCore::ContainerNode::virtualLastChild): Ditto.
  29984. * dom/CharacterData.cpp: Removed implementations of data and length functons.
  29985. * dom/CharacterData.h: Made data, setData, length, substringData, appendData,
  29986. insertData, deleteData, and replaceData all non-virtual, and made data and length
  29987. both be inline.
  29988. * dom/NamedAttrMap.h: (WebCore::NamedAttrMap::attributeItem): Removed a null check
  29989. from this function. If the length of the map is known to be greater than 0, then
  29990. the null check isn't needed. But if the length of the map hasn't been checked at all,
  29991. then it's unsafe to call this function since it doesn't range check the array
  29992. index. Thus the null check is never needed. I also looked at all callers.
  29993. * dom/Attr.cpp: (WebCore::Attr::createTextChild):
  29994. * dom/Document.cpp: (WebCore::Document::recalcStyle):
  29995. * dom/Element.cpp: (WebCore::Element::recalcStyle):
  29996. * ksvg2/svg/SVGElement.cpp:
  29997. (WebCore::SVGElement::haveLoadedRequiredResources):
  29998. Removed "fast" prefix from calls to fastFirst/LastChild and fastSetFirst/LastChlld.
  29999. It's not needed any more -- you still get fast behavior if the pointer has a type
  30000. that's ContainerNode or derived from it.
  30001. 2007-05-06 Mitz Pettel <mitz@webkit.org>
  30002. Reviewed by Hyatt.
  30003. - fix http://bugs.webkit.org/show_bug.cgi?id=13557
  30004. Crash when dragging selection over absolutely positioned generated content on block element
  30005. Test: fast/css-generated-content/positioned-background-hit-test-crash.html
  30006. * rendering/RenderLayer.cpp:
  30007. (WebCore::RenderLayer::enclosingElement): Added. Factored out of hitTestLayer().
  30008. (WebCore::RenderLayer::hitTestLayer): Implemented the fix for <rdar://problem/3552346>
  30009. from r6106 to the self hit test as well, namely: return the enclosing element
  30010. for generated positioned content.
  30011. * rendering/RenderLayer.h:
  30012. 2007-05-06 Alexey Proskuryakov <ap@webkit.org>
  30013. Reviewed by Darin.
  30014. http://bugs.webkit.org/show_bug.cgi?id=13584
  30015. <script> code wrongly assumes requests can't fail
  30016. Test: fast/loader/unloadable-script.html
  30017. * html/HTMLScriptElement.cpp:
  30018. (WebCore::HTMLScriptElement::parseMappedAttribute):
  30019. (WebCore::HTMLScriptElement::insertedIntoDocument):
  30020. Check the return value of requestScript().
  30021. 2007-05-06 Alexey Proskuryakov <ap@webkit.org>
  30022. Reviewed by Darin.
  30023. http://bugs.webkit.org/show_bug.cgi?id=13304
  30024. REGRESSION(14784): WebKit doesn't dynamically reflect changes to the highlight color in System Preferences
  30025. Implemented a notification observer that invalidates cached system colors.
  30026. No automated test possible.
  30027. * rendering/RenderTheme.cpp:
  30028. (WebCore::RenderTheme::activeSelectionBackgroundColor):
  30029. (WebCore::RenderTheme::inactiveSelectionBackgroundColor):
  30030. (WebCore::RenderTheme::platformColorsDidChange):
  30031. * rendering/RenderTheme.h:
  30032. * rendering/RenderThemeMac.h:
  30033. * rendering/RenderThemeMac.mm:
  30034. (-[WebCoreRenderThemeNotificationObserver initWithTheme:WebCore::]):
  30035. (-[WebCoreRenderThemeNotificationObserver systemColorsDidChange:]):
  30036. (WebCore::theme):
  30037. (WebCore::RenderThemeMac::RenderThemeMac):
  30038. (WebCore::RenderThemeMac::~RenderThemeMac):
  30039. (WebCore::RenderThemeMac::checkbox):
  30040. (WebCore::RenderThemeMac::radio):
  30041. (WebCore::RenderThemeMac::button):
  30042. (WebCore::RenderThemeMac::popupButton):
  30043. (WebCore::RenderThemeMac::search):
  30044. (WebCore::RenderThemeMac::sliderThumbHorizontal):
  30045. (WebCore::RenderThemeMac::sliderThumbVertical):
  30046. 2007-05-05 Rob Buis <buis@kde.org>
  30047. Reviewed by Oliver.
  30048. http://bugs.webkit.org/show_bug.cgi?id=13592
  30049. parseMappedAttribute inconsistency
  30050. Do not use local vars in parseMappedAttribute for attr name and value.
  30051. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  30052. (WebCore::SVGAnimateMotionElement::parseMappedAttribute):
  30053. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  30054. (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
  30055. * ksvg2/svg/SVGAnimationElement.cpp:
  30056. (WebCore::SVGAnimationElement::parseMappedAttribute):
  30057. * ksvg2/svg/SVGCircleElement.cpp:
  30058. (WebCore::SVGCircleElement::parseMappedAttribute):
  30059. * ksvg2/svg/SVGClipPathElement.cpp:
  30060. (WebCore::SVGClipPathElement::parseMappedAttribute):
  30061. * ksvg2/svg/SVGCursorElement.cpp:
  30062. (WebCore::SVGCursorElement::parseMappedAttribute):
  30063. * ksvg2/svg/SVGEllipseElement.cpp:
  30064. (WebCore::SVGEllipseElement::parseMappedAttribute):
  30065. * ksvg2/svg/SVGExternalResourcesRequired.cpp:
  30066. (WebCore::SVGExternalResourcesRequired::parseMappedAttribute):
  30067. * ksvg2/svg/SVGGradientElement.cpp:
  30068. (WebCore::SVGGradientElement::parseMappedAttribute):
  30069. * ksvg2/svg/SVGImageElement.cpp:
  30070. (WebCore::SVGImageElement::parseMappedAttribute):
  30071. * ksvg2/svg/SVGLineElement.cpp:
  30072. (WebCore::SVGLineElement::parseMappedAttribute):
  30073. * ksvg2/svg/SVGLinearGradientElement.cpp:
  30074. (WebCore::SVGLinearGradientElement::parseMappedAttribute):
  30075. * ksvg2/svg/SVGMarkerElement.cpp:
  30076. (WebCore::SVGMarkerElement::parseMappedAttribute):
  30077. * ksvg2/svg/SVGMaskElement.cpp:
  30078. (WebCore::SVGMaskElement::parseMappedAttribute):
  30079. * ksvg2/svg/SVGPathElement.cpp:
  30080. (WebCore::SVGPathElement::parseMappedAttribute):
  30081. * ksvg2/svg/SVGPatternElement.cpp:
  30082. (WebCore::SVGPatternElement::parseMappedAttribute):
  30083. * ksvg2/svg/SVGRadialGradientElement.cpp:
  30084. (WebCore::SVGRadialGradientElement::parseMappedAttribute):
  30085. * ksvg2/svg/SVGRectElement.cpp:
  30086. (WebCore::SVGRectElement::parseMappedAttribute):
  30087. * ksvg2/svg/SVGSVGElement.cpp:
  30088. (WebCore::SVGSVGElement::parseMappedAttribute):
  30089. * ksvg2/svg/SVGScriptElement.cpp:
  30090. (WebCore::SVGScriptElement::parseMappedAttribute):
  30091. * ksvg2/svg/SVGStopElement.cpp:
  30092. (WebCore::SVGStopElement::parseMappedAttribute):
  30093. * ksvg2/svg/SVGTests.cpp:
  30094. (WebCore::SVGTests::parseMappedAttribute):
  30095. * ksvg2/svg/SVGTextContentElement.cpp:
  30096. (WebCore::SVGTextContentElement::parseMappedAttribute):
  30097. * ksvg2/svg/SVGTextPositioningElement.cpp:
  30098. (WebCore::SVGTextPositioningElement::parseMappedAttribute):
  30099. * ksvg2/svg/SVGUseElement.cpp:
  30100. (WebCore::SVGUseElement::parseMappedAttribute):
  30101. * ksvg2/svg/SVGViewElement.cpp:
  30102. (WebCore::SVGViewElement::parseMappedAttribute):
  30103. * ksvg2/svg/SVGZoomAndPan.cpp:
  30104. (WebCore::SVGZoomAndPan::parseMappedAttribute):
  30105. 2007-05-05 Oliver Hunt <oliver@apple.com>
  30106. Reviewed by Hyatt.
  30107. Initialise default fill with Color::black rather than parsing
  30108. the string "black"
  30109. * ksvg2/svg/SVGPaint.cpp:
  30110. (WebCore::SVGPaint::defaultFill):
  30111. 2007-05-04 Steve Falkenburg <sfalken@apple.com>
  30112. Reviewed by Oliver.
  30113. Use TextBreakIterator for sentence breaking instead of TextBoundaries.
  30114. * WebCore.xcodeproj/project.pbxproj: Added TextBreakIeratorInternalICUMac.mm
  30115. * editing/visible_units.cpp:
  30116. (WebCore::startSentenceBoundary): Call TextBreakIterator instead of TextBoundaries.
  30117. (WebCore::endSentenceBoundary): Call TextBreakIterator instead of TextBoundaries.
  30118. (WebCore::previousSentencePositionBoundary): Call TextBreakIterator instead of TextBoundaries.
  30119. (WebCore::nextSentencePositionBoundary): Call TextBreakIterator instead of TextBoundaries.
  30120. * platform/TextBoundaries.h: Removed findSentenceBoundary, findNextSentenceFromIndex.
  30121. * platform/TextBreakIterator.h: Added sentenceBreakIterator.
  30122. * platform/TextBreakIteratorICU.cpp:
  30123. (WebCore::setUpIterator): Add locale parameter (needed to maintain functionality that TextBoundaries code had).
  30124. (WebCore::characterBreakIterator): Pass en_us for locale (same as old code).
  30125. (WebCore::wordBreakIterator): Pass en_us for locale (same as old code).
  30126. (WebCore::lineBreakIterator): Pass en_us for locale (same as old code).
  30127. (WebCore::sentenceBreakIterator): Added.
  30128. * platform/TextBreakIteratorInternalICU.h: Added.
  30129. * platform/gdk/TemporaryLinkStubs.cpp: Removed findNextSentenceFromIndex, findSentenceBoundary.
  30130. (WebCore::currentTextBreakLocaleID): Added stub.
  30131. * platform/mac/TextBoundaries.mm: Removed currentTextBreakLocaleID, findSentenceBoundary, findNextSentenceFromIndex.
  30132. * platform/mac/TextBreakIteratorInternalICUMac.mm: Added.
  30133. (WebCore::currentTextBreakLocaleID): Moved from TextBoundaries.mm
  30134. * platform/qt/TextBoundaries.cpp: Removed findNextSentenceFromIndex, findSentenceBoundary.
  30135. 2007-05-04 Adele Peterson <adele@apple.com>
  30136. Reviewed by Hyatt.
  30137. Fix for <rdar://problem/5116871> REGRESSION: Can't select options in widget's listbox
  30138. Don't use user-select to determine whether or not options can be selected in listboxes.
  30139. This will match Firefox behavior for -moz-user-select.
  30140. * html/HTMLSelectElement.cpp:
  30141. (WebCore::HTMLSelectElement::canSelectAll):
  30142. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
  30143. 2007-05-04 Geoffrey Garen <ggaren@apple.com>
  30144. Reviewed by Tim Hatcher.
  30145. First step in fixing <rdar://problem/5055182> The back cache has no global cap
  30146. Stop giving SnapBack infinite cache-ability. Instead, make SnapBack rely
  30147. on the underlying back cache.
  30148. * WebCore.exp:
  30149. * history/HistoryItem.cpp:
  30150. (WebCore::HistoryItem::HistoryItem):
  30151. * history/HistoryItem.h:
  30152. * loader/FrameLoader.cpp:
  30153. (WebCore::FrameLoader::purgePageCache):
  30154. 2007-05-04 Geoffrey Garen <ggaren@apple.com>
  30155. Reviewed by Brady Eidson.
  30156. Removed export of clearPageCache(), since it was unused externally. I plan
  30157. to remove its use from WebCore eventually, too.
  30158. Removed usesPageCache(), since it was unused and it duplicated pageCacheSize().
  30159. * WebCore.exp:
  30160. * history/BackForwardList.cpp:
  30161. * history/BackForwardList.h: Moved statics to the top of the class definition.
  30162. * loader/FrameLoader.cpp:
  30163. (WebCore::FrameLoader::canCachePage):
  30164. 2007-05-04 Anders Carlsson <andersca@apple.com>
  30165. Reviewed by Antti.
  30166. <rdar://problem/5179977> Use the correct URLs when dispatching delegate methods for data loads.
  30167. Restore behavior to matching release WebKit by adding a response URL to SubstituteData. If a nil base URL is
  30168. passed, set the _request_ URL to "about:blank", but the response URL to a generated "applewebdata" URL.
  30169. * loader/FrameLoader.cpp:
  30170. (WebCore::FrameLoader::commitProvisionalLoad):
  30171. First, check for the SubstituteData's response URL.
  30172. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  30173. No need to special case applewebdata URLs here, they're only used in the response.
  30174. * loader/MainResourceLoader.cpp:
  30175. (WebCore::MainResourceLoader::handleDataLoadNow):
  30176. If the substitute data has a response URL, use it.
  30177. (WebCore::MainResourceLoader::loadNow):
  30178. Only load "about:blank" as an empty document if there's no substitute data.
  30179. * loader/SubstituteData.h:
  30180. (WebCore::SubstituteData::SubstituteData):
  30181. (WebCore::SubstituteData::responseURL):
  30182. Add responseURL member to SubstituteData.
  30183. 2007-05-03 Steve Falkenburg <sfalken@apple.com>
  30184. Reviewed by Oliver.
  30185. Add missing user description parameter to spelling-related editor client method.
  30186. * bridge/EditorClient.h:
  30187. * platform/gdk/EditorClientGdk.cpp:
  30188. (WebCore::EditorClientGdk::updateSpellingUIWithGrammarString):
  30189. * platform/gdk/EditorClientGdk.h:
  30190. * platform/graphics/svg/SVGImageEmptyClients.h:
  30191. (WebCore::SVGEmptyEditorClient::updateSpellingUIWithGrammarString):
  30192. 2007-05-03 Brady Eidson <beidson@apple.com>
  30193. Reviewed by Oliver
  30194. Resolve an outstanding FIXME in Loader::numRequests()
  30195. Before, numRequests() would iterate through the list of requests pending load and the list of currently
  30196. loading requests and tally up a count matching the current DocLoader.
  30197. I noticed while studying and cleaning up the loader code that numRequests() is potentially very hot!
  30198. Indeed load a complex site with many resources and multiple frames, and this method gets called very often,
  30199. tallying up this number every time.
  30200. The FIXME was to keep a collection of Requests mapped to each DocLoader. In reality, since this map would
  30201. simply be used for retrieving a count, that was overkill. Keeping a request count in the DocLoader itself
  30202. along with maintaining that count in Loader as requests come and go is a much better way to do this.
  30203. * loader/DocLoader.cpp:
  30204. (WebCore::DocLoader::DocLoader):
  30205. (WebCore::DocLoader::incrementRequestCount):
  30206. (WebCore::DocLoader::decrementRequestCount):
  30207. (WebCore::DocLoader::requestCount): Emulate the defunct Loader::numRequests()
  30208. * loader/DocLoader.h:
  30209. * loader/FrameLoader.cpp:
  30210. (WebCore::numRequests): Call DocLoader::requestCount() directly
  30211. (WebCore::FrameLoader::checkCompleted): Use numRequests()
  30212. * loader/loader.cpp:
  30213. (WebCore::Loader::load): Increment the DocLoader's request count
  30214. (WebCore::Loader::servePendingRequests): If the SubresourceLoader failed to create, decrement the count
  30215. (WebCore::Loader::didFinishLoading): If the Request is not Multipart, decrement the count
  30216. (WebCore::Loader::didFail): If the Request is not Multipart, decrement the count
  30217. (WebCore::Loader::didReceiveResponse): If the Request becomes Multipart, decrement the count
  30218. (WebCore::Loader::cancelRequests): Decrement the count for the pending requests being tossed, and ASSERT the
  30219. count is zero after all requests have been cancelled
  30220. * loader/loader.h:
  30221. 2007-05-03 Geoffrey Garen <ggaren@apple.com>
  30222. Reviewed by Brady Eidson.
  30223. Some cleanup in preparation for fixing <rdar://problem/5055182> The
  30224. back/forward cache has no global cap
  30225. * loader/FrameLoader.cpp:
  30226. (WebCore::FrameLoader::provisionalLoadStarted): Moved "Can I cache this
  30227. page?" logic to canCachePage(). Moved "I am caching this page" logic to
  30228. cachePageToHistoryItem().
  30229. (WebCore::FrameLoader::canCachePage): Moved above logic here.
  30230. (WebCore::FrameLoader::cachePageToHistoryItem): Removed bogus NULL check
  30231. and failure return value. Moved above logic here. Don't call setCachedPage()
  30232. until the CachedPage is fully constructed.
  30233. (WebCore::FrameLoader::purgePageCache): Removed comment that duplicated
  30234. the function name.
  30235. * loader/FrameLoader.h:
  30236. 2007-05-03 Justin Garcia <justin.garcia@apple.com>
  30237. Reviewed by harrison.
  30238. <rdar://problem/5120281> CrashTracer: [USER] 1 crash in Mail at WebCore::CSSComputedStyleDeclaration::copyInheritableProperties() const
  30239. Problem is that checkAncestor and lastClosed can be nil when createMarkup is called unrendered nodes, and that was not checked for.
  30240. * editing/markup.cpp:
  30241. (WebCore::createMarkup):
  30242. Nil-check checkAncestor and lastClosed.
  30243. 2007-05-03 Timothy Hatcher <timothy@apple.com>
  30244. Reviewed by Kevin.
  30245. <rdar://problem/5016318> Contextual menu item for opening links is missing in compose windows but present in viewer
  30246. Add the Open Link, Open Link in New Window, Download Linked File and Copy Link menu
  30247. items to the content editable context menu.
  30248. * platform/ContextMenu.cpp:
  30249. (WebCore::ContextMenu::populate):
  30250. 2007-05-03 Holger Freyther <freyther@kde.org>
  30251. Reviewed by Zack, landed by Simon.
  30252. This is bugzilla bug 13499.
  30253. * WebCore.pro: Place the Qt port into the qt-port scope, add the Gdk port
  30254. 2007-05-03 Adele Peterson <adele@apple.com>
  30255. Use BUILDING_ON_TIGER.
  30256. * page/mac/FrameMac.mm: (WebCore::Frame::setUseSecureKeyboardEntry):
  30257. 2007-05-03 Brady Eidson <beidson@apple.com>
  30258. Reviewed by Darin
  30259. Some more minor cleanup that resolves a FIXME and ditches another pointless method
  30260. No change in functionality == no layout test
  30261. * loader/FrameLoader.cpp:
  30262. (WebCore::FrameLoader::commitProvisionalLoad): Updated a comment
  30263. (WebCore::FrameLoader::continueLoadAfterWillSubmitForm): Folded startLoading() into this method
  30264. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): continueAfterWillSubmitForm becomes continueLoadAfterWillSubmitForm
  30265. * loader/FrameLoader.h: Removed startLoading()
  30266. 2007-05-03 Adele Peterson <adele@apple.com>
  30267. Reviewed by Tim Hatcher.
  30268. Fix for <rdar://problem/4727607> REGRESSION: KeyScript is deprecated, need a new solution for forcing Roman input for password fields on Leopard
  30269. * page/mac/FrameMac.mm: (WebCore::Frame::setUseSecureKeyboardEntry):
  30270. Use TSMSetDocumentProperty and TSMRemoveDocumentProperty on Leopard disable and enable non-ascii input sources.
  30271. 2007-05-03 Brady Eidson <beidson@apple.com>
  30272. Reviewed by Anders
  30273. commitProvisionalLoad() was the name of two methods.
  30274. One of them was private and only called from one other private place.
  30275. This was driving me crazy. I had to change that.
  30276. No change in functionality == no layout test
  30277. * loader/FrameLoader.cpp:
  30278. (WebCore::FrameLoader::transitionToCommitted): roll commitProvisionalLoad() into this method
  30279. * loader/FrameLoader.h: Removed commitProvisionalLoad()
  30280. 2007-05-03 Darin Adler <darin@apple.com>
  30281. Reviewed by Anders.
  30282. - make ICU initialization lazy to speed up application start-up time
  30283. (when it includes an initial webpage load)
  30284. * platform/TextCodecICU.h: Replaced registerEncodingNames and
  30285. registerCodecs with registerBaseEncodingNames, registerBaseCodecs,
  30286. registerExtendedEncodingNames, and registerExtendedCodecs.
  30287. * platform/TextCodecICU.cpp:
  30288. (WebCore::newTextCodecICU): Moved up to the top of the file.
  30289. (WebCore::TextCodecICU::registerBaseEncodingNames): Added. Registers
  30290. just UTF-8.
  30291. (WebCore::TextCodecICU::registerBaseCodecs): Ditto.
  30292. (WebCore::TextCodecICU::registerExtendedEncodingNames): Renamed.
  30293. (WebCore::TextCodecICU::registerExtendedCodecs): Ditto.
  30294. (WebCore::TextCodecICU::createICUConverter): Compare with the name
  30295. "GBK" in a way that does not require extending the maps.
  30296. * platform/TextEncoding.cpp:
  30297. (WebCore::TextEncoding::usesVisualOrdering): Added code so this will
  30298. just return false if we haven't used any extended encoding names yet.
  30299. The result will be correct, and we won't ask for an encoding name that
  30300. will require registering the extended encoding names.
  30301. (WebCore::TextEncoding::isJapanese): Ditto.
  30302. (WebCore::TextEncoding::backslashAsCurrencySymbol): Ditto, but return
  30303. a backslash instead of false.
  30304. * platform/TextEncodingRegistry.h: Added a new function named
  30305. noExtendedTextEncodingNameUsed.
  30306. * platform/TextEncodingRegistry.cpp:
  30307. (WebCore::buildBaseTextCodecMaps): Added. Registers the base encodings,
  30308. including Latin-1 because it's the default, and the UTF encodings.
  30309. (WebCore::extendTextCodecMaps): Added. Registers all the other encodings.
  30310. (WebCore::newTextCodec): Removed the all to buildTextCodecMap because
  30311. we always build the map when making the canonical encoding name.
  30312. (WebCore::atomicCanonicalTextEncodingName): Changed code to build only
  30313. the base maps at first, then extend the maps the first time we run into
  30314. a name we don't know.
  30315. (WebCore::noExtendedTextEncodingNameUsed): Added.
  30316. 2007-05-03 Mark Rowe <mrowe@apple.com>
  30317. Qt build fix. In r21185 the Qt version of WebCore::scaleDragImage was
  30318. updated to have the incorrect signature.
  30319. * platform/qt/DragImageQt.cpp:
  30320. (WebCore::scaleDragImage):
  30321. 2007-05-02 Beth Dakin <bdakin@apple.com>
  30322. * dom/Node.h: Just fixing a variable name because it's driving me
  30323. mad.
  30324. 2007-05-02 Beth Dakin <bdakin@apple.com>
  30325. Reviewed by Hyatt.
  30326. Fix for <rdar://problem/4513966> Never-ending identical repaint @
  30327. orbitz.com (Safari eating 85% CPU)
  30328. We need to be a little bit more savvy about when we do a FULL style
  30329. recalc since it can be unnecessary and expensive.
  30330. * css/CSSMutableStyleDeclaration.cpp:
  30331. (WebCore::CSSMutableStyleDeclaration::setChanged): Now takes a
  30332. StyleChangeType as a parameter.
  30333. (WebCore::CSSMutableStyleDeclaration::setProperty): Send
  30334. InlineStyleChange as the paramter. This is the optimization!
  30335. * css/CSSMutableStyleDeclaration.h: setChanged takes a
  30336. StyleChangeType as a parameter.
  30337. * dom/Document.cpp: setChanged now takes a StyleChangeType instead
  30338. of a bool.
  30339. (WebCore::Document::recalcStyle): Same.
  30340. * dom/Element.cpp:
  30341. (WebCore::Element::recalcStyle): This is the fix!! Only set change
  30342. to Force is we use descendant rules AND it's a FullStyleChange.
  30343. * dom/Node.cpp: m_hasStyle was an unused bit on Node, so this patch
  30344. gets rid of it and uses that extra bit for m_changed to be a
  30345. StyleChangeType instead of a bool.
  30346. (WebCore::Node::Node):
  30347. (WebCore::Node::setChanged):
  30348. (WebCore::Node::dump):
  30349. * dom/Node.h: Same.
  30350. (WebCore::): Define the StyleChangeType enum.
  30351. (WebCore::Node::hasClass):
  30352. (WebCore::Node::changed):
  30353. (WebCore::Node::styleChangeType):
  30354. (WebCore::Node::setHasClass):
  30355. * dom/StyledElement.cpp:
  30356. (WebCore::StyledElement::parseMappedAttribute): Don't bother
  30357. calling setHasStyle() since m_hasStyle is gone now. It was never
  30358. used, and this was the only place it was set.
  30359. * dom/Text.cpp:
  30360. (WebCore::Text::recalcStyle): setChanged now takes a
  30361. StyleChangeType instead of a bool.
  30362. * html/HTMLFrameSetElement.cpp:
  30363. (WebCore::HTMLFrameSetElement::recalcStyle): Same.
  30364. * html/HTMLSelectElement.cpp:
  30365. (WebCore::HTMLSelectElement::restoreState): Same.
  30366. (WebCore::HTMLSelectElement::reset): Same.
  30367. * html/HTMLTextAreaElement.cpp:
  30368. (WebCore::HTMLTextAreaElement::setValue): Same.
  30369. * ksvg2/misc/SVGTimer.cpp:
  30370. (WebCore::SVGTimer::applyAnimations): Same.
  30371. * ksvg2/svg/SVGUseElement.cpp:
  30372. (WebCore::SVGUseElement::recalcStyle): Same.
  30373. * platform/graphics/svg/SVGResource.cpp:
  30374. (WebCore::SVGResource::repaintClients): Same.
  30375. 2007-05-02 David Harrison <harrison@apple.com>
  30376. Reviewed by Antti.
  30377. <rdar://problem/4859132> Grammar must always be checked in entire-sentence chunks, and shouldn't show markers for current sentence
  30378. Restore the remainder of the original fix now that blocking bug rdar://5174862 is addressed.
  30379. John made the original patch on 2007-04-10, but this fell prey to rdar://5157329.
  30380. Justin backed out the whole patch on 2007-04-30 to avoid the crash.
  30381. Justin then restored most of the original patch, but used word granularity instead, to keep the build working.
  30382. I just addressed the root cause of rdar://5157329 in rdar://5174862.
  30383. This patch switches the temp uses of word granularity back to sentence granularity.
  30384. * editing/mac/EditorMac.mm:
  30385. (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  30386. * page/Frame.cpp:
  30387. (WebCore::Frame::respondToChangedSelection):
  30388. 2007-05-02 David Harrison <harrison@apple.com>
  30389. Reviewed by Antti.
  30390. <rdar://problem/5174862> Crash resulting from DeprecatedString::insert()
  30391. Test added: editing/selection/move-by-sentence-001.html
  30392. * editing/visible_units.cpp:
  30393. (WebCore::previousBoundary):
  30394. (WebCore::nextBoundary):
  30395. Use a UChar Vector instead of DeprecatedString.
  30396. Avoid creating an extra string for secure bullet replacement unless it is actually needed.
  30397. * platform/DeprecatedString.cpp:
  30398. (WebCore::DeprecatedString::insert):
  30399. Call forceUnicode() before setLength(), so that only the unicode buffer is resized.
  30400. (WebCore::DeprecatedString::setLength):
  30401. Adjust the unicode buffer even if the ascii buffer is valid.
  30402. 2007-05-02 Mitz Pettel <mitz@webkit.org>
  30403. Reviewed by Brady.
  30404. - http://bugs.webkit.org/show_bug.cgi?id=13564
  30405. Remove friend class FrameLoader from Frame
  30406. No test added since there is no change in functionality.
  30407. * loader/FrameLoader.cpp:
  30408. (WebCore::FrameLoader::didOpenURL):
  30409. (WebCore::FrameLoader::begin):
  30410. (WebCore::FrameLoader::open):
  30411. * loader/FrameLoader.h: Made clear() private.
  30412. * page/Frame.cpp:
  30413. (WebCore::Frame::setDocument): Changed the argument into a PassRefPtr.
  30414. * page/Frame.h:
  30415. * xml/XSLTProcessor.cpp:
  30416. (WebCore::XSLTProcessor::createDocumentFromSource):
  30417. 2007-05-02 Mitz Pettel <mitz@webkit.org>
  30418. Reviewed by Dave Hyatt.
  30419. - fix http://bugs.webkit.org/show_bug.cgi?id=9276
  30420. Quirksmode: Image swap resize bug
  30421. Test: fast/replaced/image-resize-width.html
  30422. * rendering/RenderImage.cpp:
  30423. (WebCore::RenderImage::imageChanged): Moved the call to dirtyPrefWidths()
  30424. before the call to calcWidth().
  30425. 2007-05-02 David Hyatt <hyatt@apple.com>
  30426. Fix for bug 13566, broken Dashboard widgets. setPrefWidthsDirty did
  30427. the wrong thing for text children of a positioned element.
  30428. Reviewed by mitz
  30429. fast/block/positioning/pref-width-change.html
  30430. * rendering/RenderObject.cpp:
  30431. (WebCore::RenderObject::setPrefWidthsDirty):
  30432. 2007-05-01 Darin Adler <darin@apple.com>
  30433. * rendering/RenderReplaced.cpp: Fix typo in a comment.
  30434. 2007-05-01 David Hyatt <hyatt@apple.com>
  30435. Fix for 13558, crash when using absolutely positioned generated content
  30436. inside an inline.
  30437. Reviewed by darin
  30438. fast/css-generated-content/absolute-position-inside-inline.html
  30439. * rendering/RenderContainer.cpp:
  30440. (WebCore::RenderContainer::updateBeforeAfterContentForContainer):
  30441. 2007-05-01 Justin Garcia <justin.garcia@apple.com>
  30442. Reviewed by darin
  30443. <rdar://problem/5002441>
  30444. Pressing space key does nothing above quoted content or a signature
  30445. Inserting a space under these circumstances inserts a single
  30446. text node containing a regular space and then does a layout.
  30447. That space isn't rendered (which is correct). Whitespace
  30448. rebalancing is supposed to correct it but failed. It replaces
  30449. the space with a non-breaking space, but that change doesn't
  30450. dirty line boxes (9441) and so the space isn't rendered.
  30451. This workaround turns all incoming spaces into non-breaking
  30452. spaces before they're inserted (they're rebalanced after
  30453. insertion and turned back into regular spaces if possible).
  30454. * editing/InsertTextCommand.cpp:
  30455. (WebCore::InsertTextCommand::prepareForTextInsertion): Removed
  30456. an old irrelevant FIXME.
  30457. (WebCore::InsertTextCommand::input): Turn incoming spaces into
  30458. non breaking spaces before inserting them.
  30459. 2007-05-01 Darin Adler <darin@apple.com>
  30460. Reviewed by Hyatt.
  30461. - fix http://bugs.webkit.org/show_bug.cgi?id=13559
  30462. REGRESSION: Canvas aspect ratio is incorrect
  30463. - remove intrinsicWidth/Height functions from RenderObject
  30464. Test: fast/canvas/canvas-size-change-after-layout.html
  30465. * html/HTMLCanvasElement.cpp:
  30466. (WebCore::HTMLCanvasElement::createRenderer): Removed code to set
  30467. the intrinsic size, because the renderer now takes care of this
  30468. in its constructor.
  30469. (WebCore::HTMLCanvasElement::reset): Instead of calling the
  30470. setIntrinsicWidth/Height functions, call canvasSizeChanged, which
  30471. takes care of layout, but only if the size actually changed. Also
  30472. call repaint if the contents of the canvas changed.
  30473. * rendering/RenderApplet.h:
  30474. * rendering/RenderApplet.cpp: (WebCore::RenderApplet::intrinsicSize):
  30475. Override the new intrinsicSize function. This override still doesn't
  30476. make sense, so left a FIXME in here.
  30477. * rendering/RenderBox.h: Added an intrinsicSize function here to replace
  30478. the intrinsicWidth/Height functions removed from RenderObject.
  30479. * rendering/RenderBox.cpp:
  30480. (WebCore::RenderBox::calcReplacedWidthUsing): Use intrinsicSize instead
  30481. of intrinsicWidth.
  30482. (WebCore::RenderBox::calcReplacedHeightUsing): Ditto, but for height.
  30483. * rendering/RenderHTMLCanvas.h: Changed the constructor parameter to be
  30484. an HTMLCanvasElement* instead of Node*. Also added a canvasSizeChanged
  30485. function.
  30486. * rendering/RenderHTMLCanvas.cpp:
  30487. (WebCore::RenderHTMLCanvas::RenderHTMLCanvas): Pass an initial intrinsic
  30488. size based on the current size of the canvas element. This is now the
  30489. responsibility of the renderer and the DOM element calls the canvasSizeChanged
  30490. function when the size changes.
  30491. (WebCore::RenderHTMLCanvas::paint): Removed checks of the type of the element,
  30492. and used the node() function because we don't have to worry about the anonymous
  30493. case in this class.
  30494. (WebCore::RenderHTMLCanvas::canvasSizeChanged): Added. Changes the size and
  30495. then calls setNeedsLayout and setPrefWidthsDirty as needed. I based the logic
  30496. here on careful reading of RenderImage::imageChanged.
  30497. * rendering/RenderImage.cpp:
  30498. (WebCore::RenderImage::RenderImage): Pass a default intrinsic size of 0,0
  30499. instead of calling setIntrinsicWidth/Height.
  30500. (WebCore::RenderImage::setImageSizeForAltText): Call the new intrinsic size
  30501. functions instead of the width/height ones. Simplifies the logic since we
  30502. handle both dimensions at once.
  30503. (WebCore::RenderImage::imageChanged): Ditto.
  30504. (WebCore::RenderImage::layout): Ditto.
  30505. (WebCore::RenderImage::calcAspectRatioWidth): Ditto.
  30506. (WebCore::RenderImage::calcAspectRatioHeight): Ditto.
  30507. * rendering/RenderObject.h: Removed intrinsicWidth/Height virtual functions.
  30508. * rendering/RenderReplaced.h: Replaced intrinsicWidth, intrinsicHeight,
  30509. setIntrinsicWidth, setIntrinsicHeight, m_intrinsicWidth, and m_intrinsicHeight
  30510. with intrinsicSize, setIntrinsicSize, and m_intrinsicSize.
  30511. * rendering/RenderReplaced.cpp:
  30512. (WebCore::RenderReplaced::RenderReplaced): Added a second contructor that takes
  30513. an intrinsic size parameter. Also updated constructor since the intrinsic size
  30514. is now an IntSize instead of two integers.
  30515. (WebCore::RenderReplaced::intrinsicSize): Added. No point in making this inline
  30516. because it's a virtual function.
  30517. (WebCore::RenderReplaced::setIntrinsicSize): Added. Didn't make this inline,
  30518. partly because in the future we might want this to be more than just a simple
  30519. setter function, factoring in common code used in both RenderImage and
  30520. RenderHTMLCanvas.
  30521. * rendering/RenderWidget.h: Removed a stray using declaration that wasn't needed.
  30522. 2007-05-01 David Hyatt <hyatt@apple.com>
  30523. Fix for hang when incorrectly trying to add before/after content to
  30524. a <select>. Disallow generated content in all selects and also turn it
  30525. off for <input> buttons.
  30526. Reviewed by aroben
  30527. * rendering/RenderBlock.cpp:
  30528. (WebCore::RenderBlock::setStyle):
  30529. * rendering/RenderButton.cpp:
  30530. (WebCore::RenderButton::canHaveChildren):
  30531. * rendering/RenderButton.h:
  30532. 2007-05-01 Darin Adler <darin@apple.com>
  30533. Reviewed by Hyatt.
  30534. - removed the m_implicit bit from Node, freeing up a bit
  30535. - fixed <rdar://problem/5172607> XML parser is creating implicit tbody elements
  30536. - fixed <rdar://problem/5172596> HTML-parser-created tbody elements are being
  30537. ignored when processing CSS child rules
  30538. Test: fast/css/child-selector-implicit-tbody.html
  30539. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkSelector):
  30540. Removed code that used to look at implicitNode(), which no longer exists.
  30541. * css/html4.css: Added a style rule to handle cases where we have a tr
  30542. inside a table with no intervening table section.
  30543. * dom/Node.h: Removed the bit.
  30544. * dom/Node.cpp:
  30545. (WebCore::Node::Node): Don't initialize the bit.
  30546. (WebCore::Node::dump): Don't dump the bit.
  30547. * dom/XMLTokenizer.cpp:
  30548. (WebCore::XMLTokenizer::startElementNs): Remove the code that made a
  30549. table body element. This is handled in the render tree, the DOM tree
  30550. should not be mangled.
  30551. (WebCore::XMLTokenizer::endElementNs): Removed code that used to look at
  30552. implicitNode(), which no longer exists.
  30553. * html/HTMLElementFactory.cpp: (WebCore::tableSectionConstructor):
  30554. Removed boolean parameter that was passed to the HTMLTableSectionElement
  30555. constructor.
  30556. * html/HTMLParser.cpp: (WebCore::HTMLParser::handleError): Ditto.
  30557. * html/HTMLTableElement.cpp:
  30558. (WebCore::HTMLTableElement::createTHead): Ditto.
  30559. (WebCore::HTMLTableElement::createTFoot): Ditto.
  30560. (WebCore::HTMLTableElement::insertRow): Changed to return a PassRefPtr,
  30561. because it's possible the row could be removed from the table by JavaScript
  30562. code responding to DOM mutation events before the function returns. Just
  30563. something I noticed by code inspection.
  30564. * html/HTMLTableSectionElement.cpp:
  30565. (WebCore::HTMLTableSectionElement::HTMLTableSectionElement): Removed
  30566. boolean "implicit" parameter to the constructor.
  30567. (WebCore::HTMLTableSectionElement::insertRow): Changed to return a
  30568. PassRefPtr for the same reason cited above.
  30569. * html/HTMLTableElement.h: Changed the return value of insertRow to be
  30570. a PassRefPtr.
  30571. * html/HTMLTableSectionElement.h: Ditto.
  30572. 2007-04-30 David Hyatt <hyatt@apple.com>
  30573. Fix for bug 12691, generated content and display: table-cell duplicates
  30574. content on a size change. Make sure that the code to update before/after
  30575. content is smart enough to drill into anonymous containers to find the
  30576. old child.
  30577. Reviewed by olliej
  30578. Added fast/css-generated-content/table-cell-before-content.html
  30579. * rendering/RenderBlock.cpp:
  30580. (WebCore::RenderBlock::setStyle):
  30581. * rendering/RenderButton.cpp:
  30582. (WebCore::RenderButton::updateBeforeAfterContent):
  30583. * rendering/RenderButton.h:
  30584. * rendering/RenderContainer.cpp:
  30585. (WebCore::RenderContainer::beforeAfterContainer):
  30586. (WebCore::RenderContainer::updateBeforeAfterContent):
  30587. (WebCore::RenderContainer::updateBeforeAfterContentForObject):
  30588. * rendering/RenderContainer.h:
  30589. * rendering/RenderInline.cpp:
  30590. (WebCore::RenderInline::setStyle):
  30591. (WebCore::RenderInline::addChildToFlow):
  30592. (WebCore::RenderInline::splitInlines):
  30593. 2007-04-30 Jungshik Shin <jungshik.shin@gmail.com>
  30594. Reviewed by justin
  30595. <http://bugs.webkit.org/show_bug.cgi?id=13552>
  30596. comment to Range::comparePoint in dom/Range.cpp has
  30597. '0xD0' in place of '-': leading to a compiler warning
  30598. * dom/Range.cpp:
  30599. (WebCore::Range::comparePoint):
  30600. 2007-04-30 Justin Garcia <justin.garcia@apple.com>
  30601. Reviewed by darin
  30602. <rdar://problem/4875189> List gets deleted when replacing contents
  30603. * editing/ReplaceSelectionCommand.cpp:
  30604. (WebCore::ReplaceSelectionCommand::doApply): Don't expand
  30605. to include elements, like lists, when deleting a selection
  30606. to replace it.
  30607. 2007-04-30 Justin Garcia <justin.garcia@apple.com>
  30608. Reviewed by ggaren
  30609. Buildfix. Leave in grammar checking machinery to
  30610. keep WebKit building on other platforms but don't
  30611. operate on sentence sized chunks so that we don't
  30612. re-introduce 5157329.
  30613. * editing/Editor.h:
  30614. * editing/mac/EditorMac.mm:
  30615. (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  30616. (WebCore::markMisspellingsOrBadGrammar):
  30617. (WebCore::Editor::markMisspellings):
  30618. (WebCore::Editor::markBadGrammar):
  30619. * page/Frame.cpp:
  30620. (WebCore::Frame::respondToChangedSelection):
  30621. 2007-04-30 Justin Garcia <justin.garcia@apple.com>
  30622. Reviewed by darin
  30623. <rdar://problem/5168598>
  30624. Crash when deleting a link inside an input field
  30625. Deletion code tries to update one of its positions to keep
  30626. it valid and nullifies it. Later in mergeParagraphs we try
  30627. to find out if it's valid by checking to see if it's still in
  30628. the document and crash.
  30629. The fix is just to not bother keeping the position,
  30630. m_upstreamStart, valid, since after the point in the code
  30631. under examination, it doesn't need to be valid anymore.
  30632. Besides, code to update DeleteSelectionCommand's positions
  30633. should go in the functions that handle the content removal
  30634. that might invalid them (there are already FIXMEs about this).
  30635. Also, users shouldn't be able to insert links (or any rich content)
  30636. into plaintext-only regions like text fields, even if those
  30637. text fields are inside richly editable regions. This is a
  30638. separate bug and is filed as 5171552.
  30639. * editing/DeleteSelectionCommand.cpp:
  30640. (WebCore::DeleteSelectionCommand::handleGeneralDelete): Don't
  30641. bother updating m_upstreamStart.
  30642. 2007-04-30 Patti Hoa <patti@apple.com>
  30643. Reviewed by Dave Hyatt.
  30644. <rdar://problem/5108546> REGRESSION: Zoom follows keyboard focus does not work
  30645. * WebCore.xcodeproj/project.pbxproj:
  30646. Add new file SelectionControllerMac.mm
  30647. * dom/Document.cpp:
  30648. (WebCore::Document::updateSelection):
  30649. Move the code to fire off AXSelectedTextChanged notification to a new method notifyAccessibilityForSelectionChange in SelectionControllerMac.mm
  30650. * editing/SelectionController.cpp:
  30651. (WebCore::SelectionController::setSelection):
  30652. call notifyAccessibilityForSelectionChange to handle firing of accessibility notification and zoomFocusChange
  30653. * editing/SelectionController.h:
  30654. Add notifyAccessibilityForSelectionChange method for Mac platform
  30655. * platform/Widget.h:
  30656. * platform/mac/WidgetMac.mm:
  30657. (WebCore::Widget::convertToScreenCoordinate):
  30658. Add a helper routine that takes IntPoint in local coordinate and convert that to screen coordinate
  30659. 2007-04-30 Justin Garcia <justin.garcia@apple.com>
  30660. Reviewed by harrison
  30661. <rdar://problem/5157329>
  30662. REGRESSION: Crash at WTF::fastFree() when arrowing or deleting backward through editable text (13493)
  30663. Backing out the changes for 4859132.
  30664. * editing/Editor.h:
  30665. * editing/mac/EditorMac.mm:
  30666. (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  30667. (WebCore::Editor::markMisspellings):
  30668. * page/Frame.cpp:
  30669. (WebCore::Frame::respondToChangedSelection):
  30670. 2007-04-29 Antti Koivisto <antti@apple.com>
  30671. Reviewed by Oliver.
  30672. Fix <rdar://problem/5169261>
  30673. REGRESSION: Google Maps zooming too sensitive when using two fingers on trackpad
  30674. Use line based delta values when generating DOM wheel events, use pixel deltas
  30675. for scrolling only.
  30676. No test case, requires user interaction and specific hardware.
  30677. * page/EventHandler.cpp:
  30678. (WebCore::EventHandler::handleWheelEvent):
  30679. * platform/PlatformWheelEvent.h:
  30680. (WebCore::PlatformWheelEvent::continuousDeltaX):
  30681. (WebCore::PlatformWheelEvent::continuousDeltaY):
  30682. * platform/mac/WheelEventMac.mm:
  30683. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  30684. 2007-04-29 Oliver Hunt <oliver@apple.com>
  30685. Reviewed by Brady.
  30686. Build fix for experimental features build
  30687. * rendering/RenderForeignObject.cpp:
  30688. 2007-04-29 Mitz Pettel <mitz@webkit.org>
  30689. Reviewed by Dave Hyatt.
  30690. - fix http://bugs.webkit.org/show_bug.cgi?id=13544
  30691. REGRESSION (r21120): Member profile frame not erased at Yahoo! Answers
  30692. Test: fast/repaint/layer-hide-when-needs-layout.html
  30693. * rendering/RenderObject.cpp:
  30694. (WebCore::RenderObject::setStyle): If we get a layout hint, we count on
  30695. layout() or updateLayerPositions() to repaint. In the case of a layer
  30696. going invisible, however, we need to repaint here since neither of the
  30697. above will do it.
  30698. 2007-04-29 Oliver Hunt <oliver@apple.com>
  30699. Reviewed by Steve.
  30700. Fix for <rdar://problem/5126393> REGRESSION (r19672-19697): Safari drag image drags at original size (13261)
  30701. Added logic to ensure that when we create the drag image
  30702. we're looking at the rendered image size.
  30703. * page/DragController.cpp:
  30704. (WebCore::DragController::doImageDrag):
  30705. Pass the rendered image size to fitDragImageToMaxSize
  30706. * platform/DragImage.cpp:
  30707. (WebCore::fitDragImageToMaxSize):
  30708. Need to do scaling relative to rendered image size
  30709. * platform/DragImage.h:
  30710. scaleDragImage needs x and y scales to allow for them to be
  30711. scaled seperately on a page
  30712. * platform/gdk/DragImageGdk.cpp:
  30713. (WebCore::scaleDragImage):
  30714. Prevent build bustage
  30715. * platform/mac/DragImageMac.mm:
  30716. (WebCore::scaleDragImage):
  30717. scale width and height independently
  30718. * platform/qt/DragImageQt.cpp:
  30719. (WebCore::scaleDragImage):
  30720. Prevent build bustage
  30721. 2007-04-29 Darin Adler <darin@apple.com>
  30722. Reviewed by Adele.
  30723. - fix the Gmail part of http://bugs.webkit.org/show_bug.cgi?id=12798
  30724. and <rdar://problem/4118559>
  30725. This patch changes things so that resizing can make things larger than their
  30726. initial size, but not smaller. I believe this resolves the problem for Gmail,
  30727. but you can still get strange behavior if you have a small right-aligned <textarea>.
  30728. * rendering/RenderLayer.cpp:
  30729. (WebCore::RenderLayer::resize): Rewrote to use more IntPoint and IntSize and add
  30730. in a new minimum-size algorithm. This function now has the side effect of storing
  30731. a new minimumSizeForResizing in the element being resized, and respects any existing
  30732. minimum as well.
  30733. (WebCore::RenderLayer::offsetFromResizeCorner): Reversed this so it converts the
  30734. point into coordinates relative to the resize corner, hence negative numbers mean
  30735. the point is above and to the left. This is used only in the algorithm above.
  30736. * dom/Element.h: Removed unneeded include of Attr.h, and added forward declarations
  30737. as needed. Removed all friend declarations; there was no need for any of them.
  30738. Tweaked formatting of various declarations and removed unneeded parameter names.
  30739. Made as much as possible private, and a couple things public to avoid the need for
  30740. friend classes. Added minimumSizeForResizing, setMinimumSizeForResizing, rareData,
  30741. and createRareData functions.
  30742. * dom/Element.cpp:
  30743. (WebCore::rareDataMap): Added. Function to return the single global map.
  30744. (WebCore::rareDataFromMap): Added. For use by inlined functions to get the
  30745. data from the map in the case where it's present.
  30746. (WebCore::ElementRareData::ElementRareData): Added.
  30747. (WebCore::Element::~Element): Added code to delete the element from the rare
  30748. data map when appropriate.
  30749. (WebCore::Element::rareData): Added.
  30750. (WebCore::Element::createRareData): Added.
  30751. (WebCore::Element::setAttributeNodeNS): Got rid of the old inline version of this,
  30752. since it was the sole reason we had to include Attr.h in Element.h.
  30753. (WebCore::Element::minimumSizeForResizing): Added. Accesses rare data.
  30754. (WebCore::Element::setMinimumSizeForResizing): Ditto.
  30755. * dom/Node.h: Renamed the m_specified bit since it's now used for two purposes.
  30756. Its new long name is m_attrWasSpecifiedOrElementHasRareData.
  30757. * dom/Attr.cpp: (WebCore::Attr::Attr): Updated for bit name change.
  30758. * dom/Attr.h:
  30759. (WebCore::Attr::specified): Ditto.
  30760. (WebCore::Attr::setSpecified): Added, since setting the bit directly is pretty ugly now.
  30761. * dom/Document.cpp: (WebCore::Document::adoptNode): Updated for bit name change.
  30762. * dom/Node.cpp:
  30763. (WebCore::Node::Node): Ditto.
  30764. (WebCore::Node::dump): Ditto.
  30765. * dom/NamedAttrMap.cpp: (WebCore::NamedAttrMap::isReadOnlyNode): Moved out of line,
  30766. since this was the sole reason we had to include Element.h in NamedAttrMap.h.
  30767. * html/HTMLElement.cpp:
  30768. (WebCore::HTMLElement::nodeName): Changed to use tagQName() since that's a public
  30769. way to do something that's now private.
  30770. (WebCore::HTMLElement::cloneNode): Ditto.
  30771. * dom/Attribute.cpp:
  30772. * dom/NamedAttrMap.h:
  30773. * dom/NamedMappedAttrMap.cpp:
  30774. * dom/StyledElement.h:
  30775. * html/HTMLTokenizer.h:
  30776. * xml/XPathFunctions.cpp:
  30777. * xml/XPathStep.cpp:
  30778. Updated includes, and other administrivia.
  30779. 2007-04-29 Mitz Pettel <mitz@webkit.org>
  30780. Reviewed by Darin and Hyatt.
  30781. - http://bugs.webkit.org/show_bug.cgi?id=13487
  30782. Implement O(1) absoluteClippedOverflowRect and absoluteOutlineBox during layout for a possible speed gain
  30783. Test for a bug fixed by this patch: fast/repaint/intermediate-layout-position-clip.html
  30784. By keeping track of the total translation and clip during layout, absolutePosition and
  30785. computeAbsoluteRepaintRect become O(1).
  30786. * WebCore.pro: Added LayoutState.cpp
  30787. * WebCore.vcproj/WebCore/WebCore.vcproj: Added LayoutState.{cpp,h}
  30788. * WebCore.xcodeproj/project.pbxproj: Added LayoutState.{cpp,h}
  30789. * WebCoreSources.bkl: Added LayoutState.cpp
  30790. * page/FrameView.cpp:
  30791. (WebCore::FrameView::layout): When doing subtree layout, push an initial layout state for the
  30792. layout root.
  30793. * rendering/LayoutState.cpp: Added. A LayoutState corresponding to a box consists of the origin of
  30794. its coordinate system in view coordinates and possibly the clip rect, in view coordinates, which
  30795. applies to its children.
  30796. (WebCore::LayoutState::LayoutState):
  30797. (WebCore::LayoutState::destroy):
  30798. (WebCore::throw):
  30799. (WebCore::LayoutState::operator delete):
  30800. * rendering/LayoutState.h: Added.
  30801. (WebCore::LayoutState::LayoutState):
  30802. * rendering/RenderBlock.cpp:
  30803. (WebCore::RenderBlock::layoutBlock): Factored out the "only positioned objects" case into
  30804. layoutOnlyPositionedObjects(). Added code to push/pop LayoutState, unless we have columns, in
  30805. which case we disable/enable LayoutState. Removed the translation by the layout delta
  30806. of the old absolute rects, since that is now integral to absoluteClippedOverflowRect() and
  30807. absoluteOutlineBox().
  30808. (WebCore::RenderBlock::layoutOnlyPositionedObjects): Added this helper function that checks for
  30809. and handles the case where only positioned objects need layout. Returns true in that case.
  30810. (WebCore::RenderBlock::repaintOverhangingFloats): Disabled LayoutState when repainting floats, since
  30811. they may belong to other containers.
  30812. (WebCore::RenderBlock::updateFirstLetter): Disabled LayoutState when adding and removing from the
  30813. first letter container, since it may be different than ourselves.
  30814. * rendering/RenderBlock.h:
  30815. * rendering/RenderBox.cpp:
  30816. (WebCore::RenderBox::setStyle): Minor cleanup: changed element()->document() to the equivalent document().
  30817. (WebCore::RenderBox::offsetForPositionedInContainer): Added. Factored out common code from
  30818. absolutePosition, computeAbsoluteRepaintRect and RenderLayer::updateLayerPosition into this function.
  30819. (WebCore::RenderBox::absolutePosition): Added an O(1) code path when this function is called during
  30820. layout (and LayoutState has not been disabled). Factored out some code into
  30821. offsetForPositionedInContainer.
  30822. (WebCore::RenderBox::absoluteClippedOverflowRect): Added the layout delta here, so callers don't need
  30823. to.
  30824. (WebCore::RenderBox::computeAbsoluteRepaintRect): Added an O(1) code path when this function is called
  30825. during layout (and LayoutState has not been disabled). Factored out some code into
  30826. offsetForPositionedInContainer.
  30827. * rendering/RenderContainer.cpp:
  30828. (WebCore::RenderContainer::layout): Added LayoutState push/pop.
  30829. * rendering/RenderFlexibleBox.cpp:
  30830. (WebCore::RenderFlexibleBox::layoutBlock): Factored out the "only positioned objects" case into
  30831. layoutOnlyPositionedObjects(). Added LayoutState push/pop. Removed the translation by the layout delta
  30832. of the old absolute rects, since that is now integral to absoluteClippedOverflowRect() and
  30833. absoluteOutlineBox().
  30834. * rendering/RenderFlow.cpp:
  30835. (WebCore::RenderFlow::absoluteClippedOverflowRect): Added an ASSERT.
  30836. * rendering/RenderForeignObject.cpp:
  30837. (WebCore::RenderForeignObject::layout): Disabled LayoutState because it is incompatible with arbitrary
  30838. affine transforms.
  30839. * rendering/RenderHTMLCanvas.cpp:
  30840. (WebCore::RenderHTMLCanvas::layout): Removed the translation by the layout delta of the old absolute
  30841. rects, since that is now integral to absoluteClippedOverflowRect() and absoluteOutlineBox().
  30842. * rendering/RenderImage.cpp:
  30843. (WebCore::RenderImage::layout): Ditto.
  30844. * rendering/RenderLayer.cpp:
  30845. (WebCore::RenderLayer::updateLayerPositions): Added ASSERTs. Factored out some code into
  30846. RenderBox::offsetForPositionedInContainer.
  30847. (WebCore::RenderLayer::updateScrollInfoAfterLayout): Disabled LayoutState around the call to
  30848. scrollToOffset.
  30849. * rendering/RenderListItem.cpp:
  30850. (WebCore::RenderListItem::updateMarkerLocation): Disabled LayoutState when moving the list marker, since
  30851. it can trigger repainting in other containers.
  30852. * rendering/RenderObject.cpp:
  30853. (WebCore::RenderObject::isRoot): Minor cleanup: changed element()->document() to the equivalent
  30854. document().
  30855. (WebCore::RenderObject::computeAbsoluteRepaintRect): Removed 'return' at the end of the function.
  30856. (WebCore::RenderObject::container): Reordered to avoid calling isText() twice.
  30857. (WebCore::RenderObject::absoluteOutlineBox): Added the layout delta here, so callers don't need to.
  30858. * rendering/RenderSVGContainer.cpp:
  30859. (WebCore::RenderSVGContainer::layout): Disabled LayoutState because it is incompatible with arbitrary
  30860. affine transforms.
  30861. * rendering/RenderTable.cpp:
  30862. (WebCore::RenderTable::layout): Factored out the "only positioned objects" case into
  30863. layoutOnlyPositionedObjects(). Added LayoutState push/pop. Removed the translation by the layout delta
  30864. of the old absolute rects, since that is now integral to absoluteClippedOverflowRect() and
  30865. absoluteOutlineBox().
  30866. * rendering/RenderTableCell.cpp:
  30867. (WebCore::RenderTableCell::absoluteClippedOverflowRect): Added the layout delta here, so callers
  30868. don't need to.
  30869. (WebCore::RenderTableCell::computeAbsoluteRepaintRect): For the O(1) code path, skipped the correction
  30870. for the parent row, because RenderTableRow doesn't push a translation into LayoutState.
  30871. (WebCore::RenderTableCell::absolutePosition): Ditto.
  30872. * rendering/RenderTableRow.cpp:
  30873. (WebCore::RenderTableRow::layout): Added LayoutState push/pop.
  30874. * rendering/RenderTableSection.cpp:
  30875. (WebCore::RenderTableSection::setCellWidths): Added LayoutState push/pop if cells are repainted or
  30876. receive layout.
  30877. (WebCore::RenderTableSection::calcRowHeight): Ditto.
  30878. (WebCore::RenderTableSection::layoutRows): Added LayoutState push/pop.
  30879. * rendering/RenderView.cpp:
  30880. (WebCore::RenderView::RenderView):
  30881. (WebCore::RenderView::layout): Added initial LayoutState setup for the layout.
  30882. (WebCore::RenderView::paintBoxDecorations): Minor cleanup: changed element()->document() to the
  30883. equivalent document().
  30884. (WebCore::RenderView::repaintViewRectangle): Ditto.
  30885. (WebCore::RenderView::pushLayoutState): Added. Pushes initial layout state for subtree layout.
  30886. * rendering/RenderView.h:
  30887. (WebCore::RenderView::pushLayoutState):
  30888. (WebCore::RenderView::popLayoutState):
  30889. (WebCore::RenderView::layoutState):
  30890. (WebCore::RenderView::disableLayoutState):
  30891. (WebCore::RenderView::enableLayoutState):
  30892. 2007-04-29 David Hyatt <hyatt@apple.com>
  30893. Fix for bugzilla 13535, regression from positioning cleanup a while
  30894. back. Some code got added to compute available width for a relpositioned
  30895. inline, only the code meant to be used for inline flows and not inline blocks.
  30896. Reviewed by mjs
  30897. fast/block/positioning/inline-block-relposition.html
  30898. * rendering/RenderBox.cpp:
  30899. (WebCore::RenderBox::containingBlockWidthForPositioned):
  30900. 2007-04-29 Oliver Hunt <oliver@apple.com>
  30901. Reviewed by Zack.
  30902. Implement basic drag and drop support for qt
  30903. this allows content and link dragging but does not
  30904. provide the DOM data access methods.
  30905. * platform/DragData.h:
  30906. * platform/qt/ClipboardQt.cpp:
  30907. (WebCore::ClipboardQt::ClipboardQt):
  30908. (WebCore::ClipboardQt::~ClipboardQt):
  30909. (WebCore::ClipboardQt::clearData):
  30910. (WebCore::ClipboardQt::clearAllData):
  30911. (WebCore::ClipboardQt::setData):
  30912. (WebCore::ClipboardQt::declareAndWriteDragImage):
  30913. (WebCore::ClipboardQt::writeURL):
  30914. (WebCore::ClipboardQt::writeRange):
  30915. (WebCore::ClipboardQt::hasData):
  30916. * platform/qt/ClipboardQt.h:
  30917. (WebCore::ClipboardQt::clipboardData):
  30918. (WebCore::ClipboardQt::invalidateWritableData):
  30919. * platform/qt/DragDataQt.cpp:
  30920. (WebCore::DragData::canSmartReplace):
  30921. (WebCore::DragData::containsPlainText):
  30922. (WebCore::DragData::asPlainText):
  30923. (WebCore::DragData::createClipboard):
  30924. (WebCore::DragData::containsCompatibleContent):
  30925. (WebCore::DragData::containsURL):
  30926. (WebCore::DragData::asURL):
  30927. (WebCore::DragData::asFragment):
  30928. 2007-04-28 Maciej Stachowiak <mjs@apple.com>
  30929. Reviewed by Darin and Oliver.
  30930. - change Document to hold onto Frame* instead of FrameView*
  30931. This is an architectural cleanup and a prerequisite to fixing citibank login
  30932. in an architecturally sound way.
  30933. Some fixups for the page cache:
  30934. * history/CachedPage.cpp:
  30935. (WebCore::CachedPage::restore): Add an assert that the document's view
  30936. matches the cached page's view - this needs to be true by the time this
  30937. function is called.
  30938. (WebCore::CachedPage::clear): Change assert to require frame matching, not
  30939. view matching.
  30940. * history/CachedPage.h:
  30941. (WebCore::CachedPage::view): Add a way to get the view out.
  30942. * loader/FrameLoader.cpp:
  30943. (WebCore::FrameLoader::begin): pass Frame, not FrameView, when creating document
  30944. (WebCore::FrameLoader::open): restore view based on CachedPage, not Document.
  30945. Remaining changes are just straightforward updates based on which
  30946. pointer is held or passed:
  30947. * dom/DOMImplementation.cpp:
  30948. (WebCore::DOMImplementation::createDocument):
  30949. (WebCore::DOMImplementation::createHTMLDocument):
  30950. * dom/DOMImplementation.h:
  30951. * dom/Document.cpp:
  30952. (WebCore::Document::Document):
  30953. (WebCore::Document::view):
  30954. (WebCore::Document::frame):
  30955. (WebCore::Document::recalcStyle):
  30956. (WebCore::Document::updateLayout):
  30957. (WebCore::Document::attach):
  30958. (WebCore::Document::detach):
  30959. (WebCore::Document::createTokenizer):
  30960. (WebCore::Document::recalcStyleSelector):
  30961. (WebCore::Document::setInPageCache):
  30962. (WebCore::Document::applyXSLTransform):
  30963. * dom/Document.h:
  30964. * html/HTMLDocument.cpp:
  30965. (WebCore::HTMLDocument::HTMLDocument):
  30966. * html/HTMLDocument.h:
  30967. * html/HTMLViewSourceDocument.cpp:
  30968. (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
  30969. * html/HTMLViewSourceDocument.h:
  30970. * ksvg2/svg/SVGDocument.cpp:
  30971. (WebCore::SVGDocument::SVGDocument):
  30972. * ksvg2/svg/SVGDocument.h:
  30973. * loader/ImageDocument.cpp:
  30974. (WebCore::ImageDocument::ImageDocument):
  30975. * loader/ImageDocument.h:
  30976. * loader/PluginDocument.cpp:
  30977. (WebCore::PluginDocument::PluginDocument):
  30978. * loader/PluginDocument.h:
  30979. * loader/TextDocument.cpp:
  30980. (WebCore::TextDocument::TextDocument):
  30981. * loader/TextDocument.h:
  30982. * xml/XSLTProcessor.cpp:
  30983. (WebCore::XSLTProcessor::createDocumentFromSource):
  30984. (WebCore::XSLTProcessor::transformToDocument):
  30985. * xml/XSLTProcessor.h:
  30986. 2007-04-28 Adele Peterson <adele@apple.com>
  30987. RS by Darin.
  30988. Update to fix for <rdar://problem/5152299>
  30989. Test: fast/events/no-blur-on-enter-button.html
  30990. * html/HTMLButtonElement.cpp: (WebCore::HTMLButtonElement::defaultEventHandler):
  30991. Don't blur the button when handling the enter key. This matches our new behavior for input elements.
  30992. 2007-04-28 Adele Peterson <adele@apple.com>
  30993. Fix by Darin, reviewed by me.
  30994. Fix for <rdar://problem/5152299> REGRESSION: <button> elements do not respond to space and return key as similar <input> elements do
  30995. Tests:
  30996. fast/forms/button-spacebar-click.html
  30997. fast/forms/button-enter-click.html
  30998. * html/HTMLButtonElement.h: (WebCore::HTMLButtonElement::): Made type enum private.
  30999. Removed unnecessary m_value and m_currValue, and unused m_dirty.
  31000. * html/HTMLButtonElement.cpp:
  31001. (WebCore::HTMLButtonElement::HTMLButtonElement): Removed initialization of m_dirty.
  31002. (WebCore::HTMLButtonElement::parseMappedAttribute): Removed case to parse value and accesskey attributes, which don't do anything.
  31003. (WebCore::HTMLButtonElement::defaultEventHandler): Removed unnecessary check for button type.
  31004. Added cases to handle spacebar and enter keys in the same way that they're handled for <input type=button/reset/submit> buttons.
  31005. (WebCore::HTMLButtonElement::isSuccessfulSubmitButton): Shortened comment.
  31006. (WebCore::HTMLButtonElement::appendFormData): Use value() instead of m_currValue. Renamed encoding argument to formData.
  31007. 2007-04-28 Mitz Pettel <mitz@webkit.org>
  31008. Reviewed by Darin.
  31009. - fix http://bugs.webkit.org/show_bug.cgi?id=13501
  31010. REGRESSION (r21093): Pasting into text field fails and makes the caret disappear
  31011. Test: fast/dynamic/anonymous-block-layer-lost.html
  31012. * rendering/RenderBlock.cpp:
  31013. (WebCore::RenderBlock::removeChild): Avoid cutting off layers when removing
  31014. the anonymous block.
  31015. 2007-04-28 Mitz Pettel <mitz@webkit.org>
  31016. Reviewed by Darin.
  31017. - fix http://bugs.webkit.org/show_bug.cgi?id=13471
  31018. REGRESSION (r21045): Secure keyboard entry mode remains in effect after leaving a password field by submitting
  31019. * loader/FrameLoader.cpp:
  31020. (WebCore::FrameLoader::clear): Replaced direct access to Frame's d->m_doc
  31021. with a call to Frame::setDocument.
  31022. (WebCore::FrameLoader::begin): Ditto.
  31023. (WebCore::FrameLoader::open): Ditto.
  31024. (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady): Ditto.
  31025. (WebCore::FrameLoader::canCachePage): Added a comment.
  31026. * manual-tests/secure-keyboard-enabled-after-submit.html: Added.
  31027. * page/Frame.cpp:
  31028. (WebCore::Frame::setDocument): Reset secure keyboard entry, in case the
  31029. old document's focused node has set it.
  31030. 2007-04-28 Mitz Pettel <mitz@webkit.org>
  31031. Reviewed by Adele.
  31032. - fix http://bugs.webkit.org/show_bug.cgi?id=13379
  31033. REGRESSION: Cannot add an option to a selected popup
  31034. * manual-tests/update-empty-popup.html: Added.
  31035. * platform/mac/PopupMenuMac.mm:
  31036. (WebCore::PopupMenu::show): Added a call to the client's hidePopup()
  31037. callback before returning in the case that the menu is empty. Otherwise
  31038. the client thinks that the menu stayed open.
  31039. 2007-04-28 Adele Peterson <adele@apple.com>
  31040. Reviewed by Darin.
  31041. Fix for <rdar://problem/4806988> REGRESSION: history.go(0) doesn't reload page (affects buttons at facebook.com)
  31042. Test: fast/history/history_reload.html
  31043. * loader/FrameLoader.cpp: (WebCore::FrameLoader::scheduleHistoryNavigation):
  31044. We avoid doing a redirection when going to the same url in a history navigation, but we have to still
  31045. schedule a redirection when the number of steps is zero so we can force a reload.
  31046. 2007-04-28 Alexey Proskuryakov <ap@webkit.org>
  31047. Reviewed by Darin.
  31048. http://bugs.webkit.org/show_bug.cgi?id=13514
  31049. REGRESSION (r20997-21003): Crash in WebCore::Node::document
  31050. Test: fast/dom/NodeList/childNodes-reset-cache.html
  31051. * dom/Node.cpp:
  31052. (WebCore::Node::notifyLocalNodeListsChildrenChanged): Reset the common caches for child node
  31053. lists. We cannot rely on notifications, since there may be no list objects left around.
  31054. * dom/ChildNodeList.cpp:
  31055. (WebCore::ChildNodeList::rootNodeChildrenChanged):
  31056. * dom/ChildNodeList.h:
  31057. Override rootNodeChildrenChanged() with an empty implementation, now that caches are reset
  31058. in Node::notifyLocalNodeListsChildrenChanged().
  31059. 2007-04-28 Mark Rowe <mrowe@apple.com>
  31060. Build fix. Change use of nil to 0 in C++ source file.
  31061. * editing/Editor.cpp:
  31062. (WebCore::Editor::increaseSelectionListLevel):
  31063. (WebCore::Editor::increaseSelectionListLevelOrdered):
  31064. (WebCore::Editor::increaseSelectionListLevelUnordered):
  31065. 2007-04-28 Darin Adler <darin@apple.com>
  31066. Reviewed by Adele.
  31067. - fix http://bugs.webkit.org/show_bug.cgi?id=6216
  31068. REGRESSION: getElementsByTagNameNS with empty namespace doesn't work
  31069. * dom/Node.cpp:
  31070. (WebCore::TagNodeList::TagNodeList): Changed parameter to PassRefPtr, tweaked formatting.
  31071. (WebCore::TagNodeList::item): Tweaked formatting.
  31072. (WebCore::TagNodeList::nodeMatches): Tweaked formatting.
  31073. (WebCore::Node::setPrefix): Tweaked formatting.
  31074. (WebCore::Node::getElementsByTagNameNS): Added special case to turn empty namespaces into
  31075. null namespaces.
  31076. 2007-04-28 Darin Adler <darin@apple.com>
  31077. Reviewed by Kevin Decker.
  31078. - fix <rdar://problem/5148271> Chinese numbers are incorrect in numbered lists
  31079. (including pasting from TextEdit to Mail)
  31080. Covered by an existing regression test, which had wrong results checked in.
  31081. Hyatt told me not to use the algorithm in the CSS 3 specification, but I didn't listen!
  31082. This corrects mistakes there and makes our results match current Firefox.
  31083. * rendering/RenderListMarker.cpp:
  31084. (WebCore::toCJKIdeographic): Added code to strip off trailing zero digits.
  31085. Added special case for zero, since that's the one case where we don't want
  31086. to strip off trailing zero digits. Fixed mixed-up logic that would put the
  31087. digits in each group backwards.
  31088. (WebCore::listMarkerText): Corrected character values for the CJK_IDEOGRAPHIC case.
  31089. 2007-04-28 Darin Adler <darin@apple.com>
  31090. Reviewed by Oliver.
  31091. - fix <rdar://problem/5138250> REGRESSION (r18245): Changing any one aspect
  31092. of a font applies all the aspects to selected text
  31093. Since this bug is only visible with the font panel, I don't
  31094. think there's any way to make a DumpRenderTree-driven test.
  31095. * editing/Editor.cpp: (WebCore::Editor::fontForSelection):
  31096. Set hasMultipleFonts properly. The old code had an early exit
  31097. that was left over from when hasMultipleFonts was a pointer.
  31098. 2007-04-27 Mitz Pettel <mitz@webkit.org>
  31099. Reviewed by Dave Hyatt.
  31100. - fix http://bugs.webkit.org/show_bug.cgi?id=13525
  31101. Repainting a listbox schedules a relayout
  31102. No test possible as there is no change to functionality.
  31103. - fix the root cause of http://bugs.webkit.org/show_bug.cgi?id=10862
  31104. REGRESSION: Collapsing form input on www.myspace.com
  31105. No test possible since text fields are no longer implemented as flexboxes.
  31106. * rendering/RenderObject.cpp:
  31107. (WebCore::RenderObject::scheduleRelayout): Added a check that the subtree
  31108. root is in the tree and not free-floating.
  31109. * rendering/bidi.cpp:
  31110. (WebCore::RenderBlock::bidiReorderCharacters): Changed addChild and removeChild
  31111. to appendChildNode and removeChildNode to save some unnecessary overhead.
  31112. These calls still mark the tree for relayout, but the change in scheduleRelayout
  31113. ensures that a layout won't be scheduled.
  31114. 2007-04-27 Patti Hoa <patti@apple.com>
  31115. Reviewed by Darin.
  31116. <rdar://problem/5153017> REPRODUCIBLE ASSERT: range != nil in WebViewFactory.mm:415 -[WebViewFactory startOfTextMarkerRange:] (13354)
  31117. * bridge/mac/WebCoreAXObject.mm:
  31118. (-[WebCoreAXObject textMarkerRangeForRange:]):
  31119. Fix the range length check. It was incorrectly assuming that the max range requested cannot be equal
  31120. to the length of the string. Since NSRange location is index based, it's perfectly valid to have the max
  31121. range equal to the the text length.
  31122. 2007-04-27 David Harrison <harrison@apple.com>
  31123. Reviewed by Darin.
  31124. <rdar://problem/5160627> Export JS list creation support as ObjC SPI for Mail
  31125. * WebCore.exp:
  31126. * editing/Editor.h:
  31127. * editing/Editor.cpp:
  31128. (WebCore::Editor::insertOrderedList):
  31129. (WebCore::Editor::insertUnorderedList):
  31130. (WebCore::Editor::canIncreaseSelectionListLevel):
  31131. (WebCore::Editor::canDecreaseSelectionListLevel):
  31132. (WebCore::Editor::increaseSelectionListLevel):
  31133. (WebCore::Editor::increaseSelectionListLevelOrdered):
  31134. (WebCore::Editor::increaseSelectionListLevelUnordered):
  31135. (WebCore::Editor::decreaseSelectionListLevel):
  31136. Add insertOrderedList() and insertUnorderedList().
  31137. Move existing list management functions from WebCoreFrameBridge.
  31138. The level increasing functions now return a PassRefPtr<Node> instead of Node.
  31139. Add check for canEditRichly.
  31140. - in many other functions, condense the check for nil client().
  31141. * editing/InsertListCommand.h:
  31142. * editing/InsertListCommand.cpp:
  31143. (WebCore::InsertListCommand::insertList):
  31144. (WebCore::InsertListCommand::fixOrphanedListChild):
  31145. (WebCore::InsertListCommand::doApply):
  31146. Add insertList(), which returns the new list element.
  31147. Don't set the list element's ID if the specified ID was an empty string.
  31148. * editing/ModifySelectionListLevel.h:
  31149. * editing/ModifySelectionListLevel.cpp:
  31150. (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelWithType):
  31151. (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevel):
  31152. (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelOrdered):
  31153. (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelUnordered):
  31154. Return PassRefPtr<Node> instead of Node.
  31155. * page/mac/WebCoreFrameBridge.h:
  31156. * page/mac/WebCoreFrameBridge.mm:
  31157. Move list management functions to Editor.h and Editor.cpp.
  31158. 2007-04-27 David Hyatt <hyatt@apple.com>
  31159. Fix for <rdar://problem/5134254>, toolbar buttons don't work in gmail after double-click. Make sure
  31160. to clear out the capturing frame, since you don't get a second up when a double-click happens.
  31161. Reviewed by mjs
  31162. * page/EventHandler.cpp:
  31163. (WebCore::EventHandler::handleMouseDoubleClickEvent):
  31164. 2007-04-27 Justin Garcia <justin.garcia@apple.com>
  31165. Reviewed by oliver
  31166. <rdar://problem/5164796>
  31167. Enable execCommand("CreateLink", ...) for caret selections
  31168. * editing/CreateLinkCommand.cpp:
  31169. (WebCore::CreateLinkCommand::doApply): For a caret
  31170. selection, insert a link at the caret position
  31171. with the url as the link text.
  31172. * editing/JSEditor.cpp: Enable CreateLink for caret
  31173. selections.
  31174. 2007-04-27 Antti Koivisto <antti@apple.com>
  31175. Reviewed by Darin, Hyatt.
  31176. Fix http://bugs.webkit.org/show_bug.cgi?id=13081
  31177. Empty table cells not handled correctly
  31178. <rdar://problem/5067926>
  31179. To match Firefox and IE, empty table cells with variable width need to be
  31180. treated as special case. They generally get zero width.
  31181. * rendering/AutoTableLayout.cpp:
  31182. (WebCore::AutoTableLayout::recalcColumn):
  31183. (WebCore::AutoTableLayout::calcEffectiveWidth):
  31184. (WebCore::AutoTableLayout::layout):
  31185. * rendering/AutoTableLayout.h:
  31186. (WebCore::AutoTableLayout::Layout::Layout):
  31187. * rendering/RenderStyle.h:
  31188. (WebCore::RenderStyle::hasPadding):
  31189. 2007-04-27 Rob Buis <buis@kde.org>
  31190. Reviewed by Oliver.
  31191. http://bugs.webkit.org/show_bug.cgi?id=13052
  31192. Text not rendered in a second inline SVG element
  31193. Correct the rendering of svg text when embedded in non-svg container.
  31194. * rendering/RenderSVGText.cpp:
  31195. (WebCore::RenderSVGText::paint):
  31196. 2007-04-27 Mark Rowe <mrowe@apple.com>
  31197. Reviewed by Maciej.
  31198. * WebCore.pro: Remove non-existent paths from qmake files.
  31199. 2007-04-25 Lars Naesbye Christensen <lars@naesbye.dk>
  31200. Reviewed by Timothy Hatcher.
  31201. http://bugs.webkit.org/show_bug.cgi?id=13477
  31202. Bug 13477: Help and context menu cursors need dropshadows.
  31203. * Resources/cellCursor.png:
  31204. * Resources/contextMenuCursor.png:
  31205. * Resources/helpCursor.png:
  31206. * platform/mac/CursorMac.mm:
  31207. (WebCore::contextMenuCursor):
  31208. (WebCore::copyCursor):
  31209. (WebCore::progressCursor):
  31210. (WebCore::noDropCursor):
  31211. 2007-04-27 Holger Freyther <freyther@kde.org>
  31212. Reviewed by Maciej.
  31213. Remove unmaintained CMake build system.
  31214. * CMakeLists.txt: Removed.
  31215. 2007-04-26 Matt Perry <mpComplete@gmail.com>
  31216. Reviewed by Maciej.
  31217. Added a version check to hackAroundLibXMLEntityBug, since that bug has
  31218. been fixed in recent versions of libxml2.
  31219. * dom/XMLTokenizer.cpp:
  31220. (WebCore::hackAroundLibXMLEntityBug):
  31221. 2007-04-26 Christopher Brichford <chrisb@adobe.com>
  31222. Reviewed by Timothy Hatcher.
  31223. - Fix for Bug 13204: Submit initial version of mac project files for apollo
  31224. port of WebCore
  31225. http://bugs.webkit.org/show_bug.cgi?id=13204
  31226. * WebCore.apolloproj/mac/WebCore.Debug.xcconfig: Added.
  31227. * WebCore.apolloproj/mac/WebCore.Release.xcconfig: Added.
  31228. * WebCore.apolloproj/mac/WebCore.xcconfig: Added.
  31229. * WebCore.apolloproj/mac/WebCore.xcodeproj/project.pbxproj: Added.
  31230. 2007-04-26 Alp Toker <alp@atoker.com>
  31231. Reviewed by Maciej.
  31232. http://bugs.webkit.org/show_bug.cgi?id=13505
  31233. Cast loses precision on x86_64
  31234. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  31235. (WebCore::GraphicsContext::beginTransparencyLayer):
  31236. (WebCore::GraphicsContext::endTransparencyLayer):
  31237. Use a stack of opacity values instead of Cairo user data.
  31238. 2007-04-26 Mitz Pettel <mitz@webkit.org>
  31239. Reviewed by Darin.
  31240. - fix http://bugs.webkit.org/show_bug.cgi?id=13500
  31241. REGRESSION: Listbox scrollbar does not reflect actual scrolled position when selected option is added after layout
  31242. Test: fast/forms/listbox-scrollbar-incremental-load.html
  31243. The scroller position was not updated correctly during insertion, since
  31244. scrollbar proportions are updated only during layout
  31245. * rendering/RenderListBox.cpp:
  31246. (WebCore::RenderListBox::selectionChanged): Delay scrolling to reveal the
  31247. selection until after layout if m_optionsChanged is set. Layout is
  31248. guaranteed to happen soon when the flag is set.
  31249. 2007-04-26 David Hyatt <hyatt@apple.com>
  31250. Fix for 13511, crash on a counters page. Make sure that RenderTexts
  31251. never get a null StringImpl. I would have added an assert that the length
  31252. had to be nonzero also, but unfortunately editing creates empty RenderTexts
  31253. because of its EditingText DOM subclass that always forces renderers to be
  31254. made. I suppose there is a good reason for this...
  31255. Reviewed by aroben
  31256. * dom/CharacterData.cpp:
  31257. (WebCore::CharacterData::setData):
  31258. (WebCore::CharacterData::appendData):
  31259. (WebCore::CharacterData::insertData):
  31260. (WebCore::CharacterData::deleteData):
  31261. (WebCore::CharacterData::replaceData):
  31262. * rendering/RenderCounter.cpp:
  31263. (WebCore::RenderCounter::RenderCounter):
  31264. * rendering/RenderText.cpp:
  31265. (WebCore::RenderText::RenderText):
  31266. (WebCore::RenderText::trimmedPrefWidths):
  31267. (WebCore::RenderText::setTextWithOffset):
  31268. (WebCore::RenderText::setTextInternal):
  31269. (WebCore::RenderText::setText):
  31270. 2007-04-26 Alice Liu <alice.liu@apple.com>
  31271. Reviewed by Oliver.
  31272. * editing/SelectionController.cpp:
  31273. (WebCore::SelectionController::selectAll):
  31274. adding null check
  31275. 2007-04-26 Justin Garcia <justin.garcia@apple.com>
  31276. Reviewed by oliver
  31277. <rdar://problem/5120591>
  31278. Crash when creating a link in Leopard wiki server
  31279. * editing/CreateLinkCommand.cpp:
  31280. (WebCore::CreateLinkCommand::doApply): Use a RefPtr,
  31281. setting the anchor's href can destroy it if there is
  31282. an ancestor with a subtree modified event listener.
  31283. 2007-04-26 Mitz Pettel <mitz@webkit.org>
  31284. Reviewed by hyatt
  31285. - http://bugs.webkit.org/show_bug.cgi?id=13496
  31286. Eliminate repaintObjectsBeforeLayout
  31287. No tests added since there is no change to functionality. Several
  31288. tests in fast/repaint test repainting of objects that move during layout.
  31289. * page/FrameView.cpp:
  31290. (WebCore::FrameView::layout):
  31291. * rendering/RenderBlock.cpp:
  31292. (WebCore::RenderBlock::layoutBlockChildren): Removed an early
  31293. setNeedsLayout(false). Resetting the bit here prevents the full repaint
  31294. that we rely on when we decide not to repaint children that move.
  31295. * rendering/RenderBlock.h:
  31296. * rendering/RenderObject.cpp:
  31297. * rendering/RenderObject.h:
  31298. * rendering/RenderTableSection.cpp:
  31299. (WebCore::RenderTableSection::setCellWidths): Replaced the call to
  31300. repaintObjectsBeforeLayout() if the cell didn't need layout with
  31301. an unconditional repaint(). We don't bother with repainting only the
  31302. delta between the old and new widths, since by marking the cell for
  31303. layout results in a full repaint with the new width anyway.
  31304. 2007-04-26 David Hyatt <hyatt@apple.com>
  31305. Fix for 13509. Don't recur to parent inline flows if they have been
  31306. marked as needing layout themselves.
  31307. Reviewed by adele
  31308. * rendering/RenderFlow.cpp:
  31309. (WebCore::RenderFlow::dirtyLinesFromChangedChild):
  31310. 2007-04-26 Matt Perry <mpComplete@gmail.com>
  31311. Reviewed and landed by Alexey.
  31312. http://bugs.webkit.org/show_bug.cgi?id=13495
  31313. Crash when referencing an undefined entity in an XHTML document
  31314. Test: fast/parser/badentity.xhtml
  31315. * dom/XMLTokenizer.cpp:
  31316. (WebCore::getEntityHandler): Check for a NULL returned from getXHTMLEntity
  31317. 2007-04-26 Anders Carlsson <andersca@apple.com>
  31318. Reviewed by Hyatt.
  31319. <rdar://problem/4851944>
  31320. REGRESSION: With TOT, BMP images can no longer be opened in the browser window
  31321. On Tiger, the MIME type for the com.microsoft.bmp UTI isn't in the registry, so add it manually.
  31322. * platform/MimeTypeRegistry.cpp:
  31323. (WebCore::initialiseSupportedImageMIMETypes):
  31324. 2007-04-26 David Hyatt <hyatt@apple.com>
  31325. Fix for bug 13503, invalidateContainingBlockPrefWidths is 15% of the
  31326. nesting PLT. Avoid O(n^2) behavior by including inlines in the minmax
  31327. dirty chain.
  31328. Reviewed by kevin
  31329. * rendering/RenderBlock.cpp:
  31330. (WebCore::RenderBlock::calcInlinePrefWidths):
  31331. * rendering/RenderObject.cpp:
  31332. (WebCore::RenderObject::setPrefWidthsDirty):
  31333. (WebCore::RenderObject::invalidateContainerPrefWidths):
  31334. * rendering/RenderObject.h:
  31335. 2007-04-26 Anders Carlsson <andersca@apple.com>
  31336. Reviewed by Darin.
  31337. <rdar://problem/5067925>
  31338. Reproducible crash (infinite recursion) with a layout test that submits on unload (13078)
  31339. Ask the document loader whether it's loading the main resource, since there are cases where the frame
  31340. loader's variable isn't updated correctly.
  31341. In the distant future, the frame loader shouldn't have an instance variable but this is the least intrusive fix for now.
  31342. I couldn't come up with a good test case for this since it requires running three tests in a row and scheduleLoad didn't work. Also,
  31343. calling submit in the onunload prevents any new tests from loading!
  31344. * loader/FrameLoader.cpp:
  31345. (WebCore::FrameLoader::isLoading):
  31346. 2007-04-26 Anders Carlsson <andersca@apple.com>
  31347. ... and fix the build.
  31348. * loader/FrameLoader.cpp:
  31349. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  31350. 2007-04-26 Anders Carlsson <andersca@apple.com>
  31351. Revert the previous change - activeDocumentLoader never returns the policy document loader.
  31352. Instead, add a null check for the policy document loader.
  31353. * loader/FrameLoader.cpp:
  31354. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  31355. 2007-04-26 Anders Carlsson <andersca@apple.com>
  31356. Use the active document loader instead of the policy document loader.
  31357. * loader/FrameLoader.cpp:
  31358. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  31359. 2007-04-26 Anders Carlsson <andersca@apple.com>
  31360. Reviewed by Maciej.
  31361. <rdar://problem/5049099> documents no longer have a default base URL
  31362. Don't call canHandleRequest if we have valid substitute data and the protocol is "applewebdata".
  31363. * loader/FrameLoader.cpp:
  31364. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  31365. 2007-04-25 Stephanie Lewis <slewis@apple.com>
  31366. Reviewed by Darin.
  31367. Fix the build for platforms that overload the abs function.
  31368. * dom/ChildNodeList.cpp:
  31369. (WebCore::ChildNodeList::item):
  31370. 2007-04-25 David Hyatt <hyatt@apple.com>
  31371. Fix for bug 13373, make sure to invalidate the pref widths for objects
  31372. with percentage padding.
  31373. Reviewed by beth
  31374. * rendering/RenderBlock.cpp:
  31375. (WebCore::RenderBlock::layoutBlockChildren):
  31376. (WebCore::RenderBlock::layoutPositionedObjects):
  31377. * rendering/bidi.cpp:
  31378. (WebCore::RenderBlock::layoutInlineChildren):
  31379. 2007-04-25 David Harrison <harrison@apple.com>
  31380. Comment change. Correct the header name in the endif comment.
  31381. * editing/FormatBlockCommand.h:
  31382. Change InsertListCommand_h to FormatBlockCommand_h.
  31383. 2007-04-25 Darin Adler <darin@apple.com>
  31384. Reviewed by Hyatt.
  31385. * platform/AtomicString.cpp: (WebCore::AtomicString::add):
  31386. Removed unnecessary use of strlen to check if a string is empty.
  31387. 2007-04-25 Mitz Pettel <mitz@webkit.org>
  31388. Build fix.
  31389. * rendering/RenderListMarker.h: Undeleted the m_text member.
  31390. 2007-04-25 David Hyatt <hyatt@apple.com>
  31391. Rearchitect calcPrefWidths. The calculation is now done lazily only when minPrefWidth
  31392. or maxPrefWidth are asked for. The result of the calculation is cached.
  31393. The new invalidation scheme for pref width invalidation follows the
  31394. containing block hierarchy and knows to halt at positioned objects, since
  31395. they cannot influence the size of their containers.
  31396. Reviewed by darin
  31397. * css/cssstyleselector.cpp:
  31398. (WebCore::CSSStyleSelector::init):
  31399. (WebCore::CSSStyleSelector::initForStyleResolve):
  31400. * page/FrameView.cpp:
  31401. (WebCore::FrameView::layout):
  31402. * rendering/RenderApplet.cpp:
  31403. (WebCore::RenderApplet::layout):
  31404. * rendering/RenderBlock.cpp:
  31405. (WebCore::RenderBlock::makeChildrenNonInline):
  31406. (WebCore::RenderBlock::removeChild):
  31407. (WebCore::RenderBlock::layout):
  31408. (WebCore::RenderBlock::layoutBlock):
  31409. (WebCore::RenderBlock::calcPrefWidths):
  31410. (WebCore::InlineMinMaxIterator::endOfInline):
  31411. (WebCore::shouldGrowTableCellForImage):
  31412. (WebCore::RenderBlock::calcInlinePrefWidths):
  31413. (WebCore::RenderBlock::calcBlockPrefWidths):
  31414. * rendering/RenderBlock.h:
  31415. * rendering/RenderBox.cpp:
  31416. (WebCore::RenderBox::setStyle):
  31417. (WebCore::RenderBox::minPrefWidth):
  31418. (WebCore::RenderBox::maxPrefWidth):
  31419. (WebCore::RenderBox::calcWidth):
  31420. (WebCore::RenderBox::calcWidthUsing):
  31421. (WebCore::RenderBox::calcAbsoluteHorizontal):
  31422. (WebCore::RenderBox::calcAbsoluteHorizontalValues):
  31423. * rendering/RenderBox.h:
  31424. * rendering/RenderContainer.cpp:
  31425. (WebCore::RenderContainer::removeChildNode):
  31426. (WebCore::RenderContainer::appendChildNode):
  31427. (WebCore::RenderContainer::insertChildNode):
  31428. (WebCore::RenderContainer::layout):
  31429. * rendering/RenderContainer.h:
  31430. (WebCore::RenderContainer::moveChildNode):
  31431. * rendering/RenderCounter.cpp:
  31432. (WebCore::RenderCounter::dirtyLineBoxes):
  31433. (WebCore::RenderCounter::calcPrefWidths):
  31434. * rendering/RenderCounter.h:
  31435. * rendering/RenderFileUploadControl.cpp:
  31436. (WebCore::RenderFileUploadControl::calcPrefWidths):
  31437. * rendering/RenderFlexibleBox.cpp:
  31438. (WebCore::RenderFlexibleBox::calcHorizontalPrefWidths):
  31439. (WebCore::RenderFlexibleBox::calcVerticalPrefWidths):
  31440. (WebCore::RenderFlexibleBox::calcPrefWidths):
  31441. (WebCore::RenderFlexibleBox::layoutBlock):
  31442. * rendering/RenderForeignObject.cpp:
  31443. (WebCore::RenderForeignObject::layout):
  31444. * rendering/RenderFrameSet.cpp:
  31445. (WebCore::RenderFrameSet::layout):
  31446. * rendering/RenderHTMLCanvas.cpp:
  31447. (WebCore::RenderHTMLCanvas::layout):
  31448. * rendering/RenderImage.cpp:
  31449. (WebCore::RenderImage::layout):
  31450. * rendering/RenderInline.cpp:
  31451. * rendering/RenderInline.h:
  31452. * rendering/RenderListBox.cpp:
  31453. (WebCore::RenderListBox::updateFromElement):
  31454. (WebCore::RenderListBox::calcPrefWidths):
  31455. * rendering/RenderListItem.cpp:
  31456. (WebCore::firstNonMarkerChild):
  31457. (WebCore::RenderListItem::updateMarkerLocation):
  31458. (WebCore::RenderListItem::calcPrefWidths):
  31459. (WebCore::RenderListItem::layout):
  31460. * rendering/RenderListMarker.cpp:
  31461. (WebCore::RenderListMarker::layout):
  31462. (WebCore::RenderListMarker::calcPrefWidths):
  31463. (WebCore::RenderListMarker::updateMargins):
  31464. * rendering/RenderListMarker.h:
  31465. * rendering/RenderObject.cpp:
  31466. (WebCore::RenderObject::RenderObject):
  31467. (WebCore::RenderObject::removeChildNode):
  31468. (WebCore::RenderObject::moveChildNode):
  31469. (WebCore::RenderObject::appendChildNode):
  31470. (WebCore::RenderObject::insertChildNode):
  31471. (WebCore::RenderObject::setPrefWidthsDirty):
  31472. (WebCore::RenderObject::invalidateContainingBlockPrefWidths):
  31473. (WebCore::RenderObject::information):
  31474. (WebCore::RenderObject::setStyle):
  31475. * rendering/RenderObject.h:
  31476. (WebCore::RenderObject::layer):
  31477. (WebCore::RenderObject::hasLayer):
  31478. (WebCore::RenderObject::prefWidthsDirty):
  31479. (WebCore::RenderObject::setNeedsLayoutAndPrefWidthsRecalc):
  31480. (WebCore::RenderObject::setHasLayer):
  31481. * rendering/RenderPartObject.cpp:
  31482. (WebCore::RenderPartObject::layout):
  31483. * rendering/RenderSVGContainer.cpp:
  31484. (WebCore::RenderSVGContainer::layout):
  31485. * rendering/RenderSVGContainer.h:
  31486. * rendering/RenderSVGHiddenContainer.cpp:
  31487. * rendering/RenderSVGHiddenContainer.h:
  31488. * rendering/RenderSVGText.cpp:
  31489. (WebCore::RenderSVGText::layout):
  31490. * rendering/RenderTable.cpp:
  31491. (WebCore::RenderTable::calcWidth):
  31492. (WebCore::RenderTable::layout):
  31493. (WebCore::RenderTable::removeChildNode):
  31494. * rendering/RenderTable.h:
  31495. * rendering/RenderTableRow.cpp:
  31496. (WebCore::RenderTableRow::layout):
  31497. * rendering/RenderTableSection.cpp:
  31498. (WebCore::RenderTableSection::removeChildNode):
  31499. * rendering/RenderTableSection.h:
  31500. * rendering/RenderText.cpp:
  31501. (WebCore::RenderText::trimmedPrefWidths):
  31502. (WebCore::isSpaceAccordingToStyle):
  31503. (WebCore::RenderText::minPrefWidth):
  31504. (WebCore::RenderText::maxPrefWidth):
  31505. (WebCore::RenderText::calcPrefWidths):
  31506. (WebCore::RenderText::width):
  31507. * rendering/RenderText.h:
  31508. * rendering/RenderView.cpp:
  31509. (WebCore::RenderView::RenderView):
  31510. (WebCore::RenderView::calcPrefWidths):
  31511. (WebCore::RenderView::layout):
  31512. * rendering/RenderWidget.cpp:
  31513. (WebCore::RenderWidget::layout):
  31514. 2007-04-25 Steve Falkenburg <sfalken@apple.com>
  31515. Reviewed by Adam.
  31516. Fix spelling error in spelling method name.
  31517. Expose new spelling callback methods to all platforms.
  31518. * bridge/EditorClient.h:
  31519. * platform/gdk/EditorClientGdk.cpp:
  31520. (WebCore::EditorClientGdk::updateSpellingUIWithGrammarString):
  31521. * platform/gdk/EditorClientGdk.h:
  31522. * platform/graphics/svg/SVGImageEmptyClients.h:
  31523. (WebCore::SVGEmptyEditorClient::updateSpellingUIWithGrammarString):
  31524. (WebCore::SVGEmptyEditorClient::getGuessesForWord):
  31525. 2007-04-24 Geoffrey Garen <ggaren@apple.com>
  31526. Reviewed by Darin Adler, Tim Hatcher.
  31527. Fixed a few NSAutoreleasePool issues I noticed while reviewing Brady's patch.
  31528. * platform/graphics/mac/GraphicsContextMac.mm:
  31529. (WebCore::GraphicsContext::setCompositeOperation): Call -drain instead of
  31530. -release, since -release is a no-op in a GC world.
  31531. 2007-04-25 Alexey Proskuryakov <ap@webkit.org>
  31532. Reviewed by Darin.
  31533. http://bugs.webkit.org/show_bug.cgi?id=13445
  31534. NodeList access by index is slow
  31535. * dom/ChildNodeList.cpp:
  31536. (WebCore::ChildNodeList::item): Support iterating backwards from the last accessed node
  31537. or from the last child.
  31538. * dom/NodeList.h: Make cachedLength unsigned.
  31539. 2007-04-26 Mark Rowe <mrowe@apple.com>
  31540. Gdk build fix. Add missing stub.
  31541. * platform/gdk/TemporaryLinkStubs.cpp:
  31542. (Editor::advanceToNextMisspelling):
  31543. 2007-04-25 Rob Buis <buis@kde.org>
  31544. Reviewed by Darin.
  31545. http://bugs.webkit.org/show_bug.cgi?id=12163
  31546. SVG text does not appear in a scrolling <div>
  31547. Make sure SVG text is painted when scrolling by taking into account the relative offset of the non-SVG parent in the paintInfo rect.
  31548. * rendering/RenderSVGContainer.cpp:
  31549. (WebCore::RenderSVGContainer::paint):
  31550. 2007-04-26 Mark Rowe <mrowe@apple.com>
  31551. Fix non-Mac builds after r21081.
  31552. Stub out new Editor methods for Qt and Gdk, and new SVGEmptyEditorClient methods
  31553. for all non-Mac builds.
  31554. * editing/qt/EditorQt.cpp:
  31555. (WebCore::Editor::showSpellingGuessPanel):
  31556. (WebCore::Editor::spellingPanelIsShowing):
  31557. * page/qt/EventHandlerQt.cpp:
  31558. (WebCore::EventHandler::passWheelEventToWidget):
  31559. (WebCore::EventHandler::passMousePressEventToScrollbar):
  31560. * platform/gdk/TemporaryLinkStubs.cpp:
  31561. (Editor::showSpellingGuessPanel):
  31562. (Editor::spellingPanelIsShowing):
  31563. * platform/graphics/svg/SVGImageEmptyClients.h:
  31564. (WebCore::SVGEmptyEditorClient::ignoreWordInSpellDocument):
  31565. (WebCore::SVGEmptyEditorClient::learnWord):
  31566. (WebCore::SVGEmptyEditorClient::checkSpellingOfString):
  31567. (WebCore::SVGEmptyEditorClient::checkGrammarOfString):
  31568. (WebCore::SVGEmptyEditorClient::udpateSpellingUIWithGrammarString):
  31569. (WebCore::SVGEmptyEditorClient::updateSpellingUIWithMisspelledWord):
  31570. (WebCore::SVGEmptyEditorClient::showSpellingUI):
  31571. (WebCore::SVGEmptyEditorClient::spellingUIIsShowing):
  31572. (WebCore::SVGEmptyEditorClient::getGuessesForWord):
  31573. 2007-04-25 Anders Carlsson <andersca@apple.com>
  31574. Reviewed by Ada.
  31575. <rdar://problem/5122153>
  31576. Crash occurs at WebCore::Frame::loader() when switching to Bookmarks view while loading standalone image
  31577. Don't call writeRawData if the data length is 0. (This is checked by the decoder for the non-raw case).
  31578. * loader/FrameLoader.cpp:
  31579. (WebCore::FrameLoader::write):
  31580. 2007-04-26 Mark Rowe <mrowe@apple.com>
  31581. Gdk build fix courtesy of Alp Toker.
  31582. * make-generated-sources.sh: Remove conditional logic to ensure the
  31583. script exits with the correct exit code.
  31584. 2007-04-24 Anders Carlsson <andersca@apple.com>
  31585. Reviewed by Mitz.
  31586. <rdar://problem/4869095>
  31587. default content type for XMLHttpRequest POSTs changed (breaks Flickrator 0.1 widget)
  31588. Use the right MIME type.
  31589. * xml/xmlhttprequest.cpp:
  31590. (WebCore::XMLHttpRequest::send):
  31591. 2007-04-24 Darin Adler <darin@apple.com>
  31592. Reviewed by Maciej.
  31593. - second round of preparation for Hyatt's "lazy minMaxWidth" change
  31594. http://bugs.webkit.org/show_bug.cgi?id=13431
  31595. These are small changes that are either safe to do first, or unrelated to the main
  31596. change in Hyatt's patch.
  31597. - Preallocate 4 entries each in m_layoutStruct and m_spanCells to save allocation
  31598. in AutoTableLayout.
  31599. - Add an early exit to RenderFlow::dirtyLinesFromChangedChild.
  31600. - Change InlineBox::hasTextChildren() to use a bit directly and never a virtual function.
  31601. - Save a virtual function call by using a local bool variable for isTableCell().
  31602. - Fix containingBlock() so it returns 0 for table cells with no parent.
  31603. - Change all callers who are getting at layer() as a boolean to use hasLayer().
  31604. - Change if statements to max() function calls (only the ones Hyatt had in his patch).
  31605. - Remove some old kdDebug calls.
  31606. - Tweak formatting of some code.
  31607. - Add const in one place.
  31608. * bindings/js/kjs_html.cpp:
  31609. (KJS::HTMLElementFunction::callAsFunction):
  31610. * page/EventHandler.cpp:
  31611. (WebCore::EventHandler::eventMayStartDrag):
  31612. * page/Frame.cpp:
  31613. (WebCore::Frame::clearTimers):
  31614. * rendering/AutoTableLayout.cpp:
  31615. (WebCore::AutoTableLayout::recalcColumn):
  31616. * rendering/AutoTableLayout.h:
  31617. * rendering/InlineBox.h:
  31618. (WebCore::InlineBox::InlineBox):
  31619. (WebCore::InlineBox::hasTextChildren):
  31620. * rendering/InlineFlowBox.cpp:
  31621. (WebCore::InlineFlowBox::nodeAtPoint):
  31622. * rendering/InlineFlowBox.h:
  31623. (WebCore::InlineFlowBox::InlineFlowBox):
  31624. * rendering/RenderBlock.cpp:
  31625. (WebCore::RenderBlock::layoutBlock):
  31626. (WebCore::RenderBlock::repaintOverhangingFloats):
  31627. (WebCore::RenderBlock::paintChildren):
  31628. (WebCore::RenderBlock::paintFloats):
  31629. (WebCore::RenderBlock::fillBlockSelectionGaps):
  31630. (WebCore::RenderBlock::insertFloatingObject):
  31631. (WebCore::RenderBlock::floatRect):
  31632. (WebCore::RenderBlock::lowestPosition):
  31633. (WebCore::RenderBlock::rightmostPosition):
  31634. (WebCore::RenderBlock::leftmostPosition):
  31635. (WebCore::RenderBlock::addOverhangingFloats):
  31636. (WebCore::RenderBlock::nodeAtPoint):
  31637. (WebCore::RenderBlock::hitTestContents):
  31638. (WebCore::RenderBlock::calcPrefWidths):
  31639. (WebCore::InlineMinMaxIterator::next):
  31640. (WebCore::getBorderPaddingMargin):
  31641. (WebCore::RenderBlock::calcInlinePrefWidths):
  31642. (WebCore::RenderBlock::calcBlockPrefWidths):
  31643. * rendering/RenderContainer.cpp:
  31644. (WebCore::RenderContainer::appendChildNode):
  31645. (WebCore::RenderContainer::insertChildNode):
  31646. * rendering/RenderFlexibleBox.cpp:
  31647. (WebCore::RenderFlexibleBox::calcHorizontalPrefWidths):
  31648. (WebCore::RenderFlexibleBox::calcVerticalPrefWidths):
  31649. * rendering/RenderFlow.cpp:
  31650. (WebCore::RenderFlow::dirtyLinesFromChangedChild):
  31651. * rendering/RenderLayer.cpp:
  31652. (WebCore::RenderLayer::updateVisibilityStatus):
  31653. (WebCore::RenderLayer::updateLayerPosition):
  31654. * rendering/RenderObject.cpp:
  31655. (WebCore::RenderObject::containingBlock):
  31656. * rendering/RenderTable.cpp:
  31657. (WebCore::RenderTable::paint):
  31658. * rendering/RenderTableCell.cpp:
  31659. (WebCore::RenderTableCell::paintBackgroundsBehindCell):
  31660. * rendering/RenderTableRow.cpp:
  31661. (WebCore::RenderTableRow::nodeAtPoint):
  31662. (WebCore::RenderTableRow::paint):
  31663. * rendering/RenderTableSection.cpp:
  31664. (WebCore::RenderTableSection::nodeAtPoint):
  31665. * rendering/RenderTreeAsText.cpp:
  31666. (WebCore::write):
  31667. 2007-04-24 Steve Falkenburg <sfalken@apple.com>
  31668. Reviewed by Darin, Oliver.
  31669. Refactor spelling codepaths
  31670. * bridge/EditorClient.h:
  31671. * page/ContextMenuController.cpp:
  31672. (WebCore::ContextMenuController::contextMenuItemSelected):
  31673. * platform/ContextMenu.cpp:
  31674. (WebCore::ContextMenu::populate):
  31675. (WebCore::ContextMenu::checkOrEnableIfNeeded):
  31676. * platform/gdk/EditorClientGdk.cpp:
  31677. (WebCore::EditorClientGdk::ignoreWordInSpellDocument):
  31678. (WebCore::EditorClientGdk::learnWord):
  31679. (WebCore::EditorClientGdk::checkSpellingOfString):
  31680. (WebCore::EditorClientGdk::checkGrammarOfString):
  31681. (WebCore::EditorClientGdk::udpateSpellingUIWithGrammarString):
  31682. (WebCore::EditorClientGdk::updateSpellingUIWithMisspelledWord):
  31683. (WebCore::EditorClientGdk::showSpellingUI):
  31684. (WebCore::EditorClientGdk::spellingUIIsShowing):
  31685. (WebCore::EditorClientGdk::getGuessesForWord):
  31686. * platform/gdk/EditorClientGdk.h:
  31687. 2007-04-24 Darin Adler <darin@apple.com>
  31688. Reviewed by Adele.
  31689. - first round of preparation for Hyatt's "lazy minMaxWidth" change
  31690. http://bugs.webkit.org/show_bug.cgi?id=13431
  31691. This patch limits itself to renaming and making other super-simple
  31692. changes so that the above change will be smaller and easier to review
  31693. and understand.
  31694. Rename:
  31695. calcHorizontalMinMaxWidth -> calcHorizontalPrefWidths
  31696. calcMinMaxWidth -> calcPrefWidths
  31697. calcMinMaxWidthInternal -> calcPrefWidthsInternal
  31698. calcVerticalMinMaxWidth -> calcVerticalPrefWidths
  31699. setNeedsLayoutAndMinMaxRecalc -> setNeedsLayoutAndPrefWidthsRecalc
  31700. trimmedMinMaxWidth -> trimmedPrefWidths
  31701. RenderObject::m_maxWidth -> RenderObject::m_maxPrefWidth
  31702. RenderObject::m_minWidth -> RenderObject::m_minPrefWidth
  31703. RenderObject::maxWidth() -> RenderObject::maxPrefWidth()
  31704. RenderObject::minWidth() -> RenderObject::minPrefWidth()
  31705. Replace m_minMaxKnown, minMaxKnown(), and setMinMaxKnown() with
  31706. m_prefWidthsDirty, prefWidthsDirty(), and setPrefWidthsDirty(),
  31707. a boolean with the opposite sense.
  31708. Convert some uses of if statements into "max".
  31709. Change many uses of layer() to hasLayer(). For now it's just a boolean
  31710. version of layer(), but Hyatt's patch makes it faster by using a bit.
  31711. Added a guard to use of axObjectCache() to make RenderObject destruction
  31712. a little faster for the normal case.
  31713. Removed some assertions that will be removed in Hyatt's patch.
  31714. Made some functions const that will be const in Hyatt's patch.
  31715. Put in some revised comments from Hyatt's patch.
  31716. Removed an unneeded nil check from RenderListMarker::setStyle.
  31717. Moved RootInlineBox::setHorizontalOverflowPositions and
  31718. RootInlineBox::setVerticalSelectionPositions to the RootInlineBox.h
  31719. header and marked them inline.
  31720. * dom/Document.cpp:
  31721. (WebCore::Document::updateStyleSelector):
  31722. * html/HTMLTextAreaElement.cpp:
  31723. (WebCore::HTMLTextAreaElement::parseMappedAttribute):
  31724. * page/Frame.cpp:
  31725. (WebCore::Frame::forceLayoutWithPageWidthRange):
  31726. * rendering/AutoTableLayout.cpp:
  31727. (WebCore::AutoTableLayout::recalcColumn):
  31728. (WebCore::AutoTableLayout::calcPrefWidths):
  31729. (WebCore::AutoTableLayout::calcEffectiveWidth):
  31730. * rendering/AutoTableLayout.h:
  31731. * rendering/CounterNode.cpp:
  31732. (WebCore::CounterNode::recount):
  31733. * rendering/FixedTableLayout.cpp:
  31734. (WebCore::FixedTableLayout::calcPrefWidths):
  31735. * rendering/FixedTableLayout.h:
  31736. * rendering/InlineFlowBox.cpp:
  31737. (WebCore::InlineFlowBox::paint):
  31738. * rendering/RenderApplet.cpp:
  31739. (WebCore::RenderApplet::layout):
  31740. * rendering/RenderBlock.cpp:
  31741. (WebCore::RenderBlock::removeChild):
  31742. (WebCore::RenderBlock::layoutBlock):
  31743. (WebCore::RenderBlock::handleCompactChild):
  31744. (WebCore::RenderBlock::getClearDelta):
  31745. (WebCore::RenderBlock::calcPrefWidths):
  31746. (WebCore::RenderBlock::calcInlinePrefWidths):
  31747. (WebCore::RenderBlock::calcBlockPrefWidths):
  31748. * rendering/RenderBlock.h:
  31749. * rendering/RenderBox.cpp:
  31750. (WebCore::RenderBox::RenderBox):
  31751. (WebCore::RenderBox::nodeAtPoint):
  31752. (WebCore::RenderBox::calcWidth):
  31753. (WebCore::RenderBox::calcWidthUsing):
  31754. (WebCore::RenderBox::calcAbsoluteHorizontal):
  31755. (WebCore::RenderBox::calcAbsoluteHorizontalValues):
  31756. * rendering/RenderBox.h:
  31757. (WebCore::RenderBox::minPrefWidth):
  31758. (WebCore::RenderBox::maxPrefWidth):
  31759. * rendering/RenderContainer.cpp:
  31760. (WebCore::RenderContainer::removeChildNode):
  31761. (WebCore::RenderContainer::appendChildNode):
  31762. (WebCore::RenderContainer::insertChildNode):
  31763. (WebCore::RenderContainer::layout):
  31764. * rendering/RenderContainer.h:
  31765. (WebCore::RenderContainer::calcPrefWidths):
  31766. * rendering/RenderCounter.cpp:
  31767. (WebCore::RenderCounter::calcPrefWidths):
  31768. * rendering/RenderCounter.h:
  31769. * rendering/RenderFieldset.cpp:
  31770. (WebCore::RenderFieldset::calcPrefWidths):
  31771. * rendering/RenderFieldset.h:
  31772. * rendering/RenderFileUploadControl.cpp:
  31773. (WebCore::RenderFileUploadControl::calcPrefWidths):
  31774. * rendering/RenderFileUploadControl.h:
  31775. * rendering/RenderFlexibleBox.cpp:
  31776. (WebCore::RenderFlexibleBox::calcHorizontalPrefWidths):
  31777. (WebCore::RenderFlexibleBox::calcVerticalPrefWidths):
  31778. (WebCore::RenderFlexibleBox::calcPrefWidths):
  31779. (WebCore::RenderFlexibleBox::layoutBlock):
  31780. (WebCore::RenderFlexibleBox::allowedChildFlex):
  31781. * rendering/RenderFlexibleBox.h:
  31782. (WebCore::RenderFlexibleBox::hasMultipleLines):
  31783. (WebCore::RenderFlexibleBox::isVertical):
  31784. (WebCore::RenderFlexibleBox::isHorizontal):
  31785. * rendering/RenderFlow.cpp:
  31786. (WebCore::RenderFlow::absoluteClippedOverflowRect):
  31787. * rendering/RenderForeignObject.cpp:
  31788. (WebCore::RenderForeignObject::layout):
  31789. * rendering/RenderFrameSet.cpp:
  31790. (WebCore::RenderFrameSet::layout):
  31791. * rendering/RenderHTMLCanvas.cpp:
  31792. (WebCore::RenderHTMLCanvas::layout):
  31793. * rendering/RenderImage.cpp:
  31794. (WebCore::RenderImage::imageChanged):
  31795. (WebCore::RenderImage::layout):
  31796. (WebCore::RenderImage::calcPrefWidths):
  31797. * rendering/RenderImage.h:
  31798. * rendering/RenderInline.cpp:
  31799. (WebCore::RenderInline::addChildToFlow):
  31800. (WebCore::RenderInline::splitInlines):
  31801. (WebCore::RenderInline::splitFlow):
  31802. (WebCore::RenderInline::calcPrefWidths):
  31803. * rendering/RenderInline.h:
  31804. * rendering/RenderListBox.cpp:
  31805. (WebCore::RenderListBox::updateFromElement):
  31806. (WebCore::RenderListBox::calcPrefWidths):
  31807. * rendering/RenderListBox.h:
  31808. * rendering/RenderListItem.cpp:
  31809. (WebCore::RenderListItem::updateValue):
  31810. (WebCore::RenderListItem::updateMarkerLocation):
  31811. (WebCore::RenderListItem::calcPrefWidths):
  31812. (WebCore::RenderListItem::layout):
  31813. (WebCore::RenderListItem::explicitValueChanged):
  31814. * rendering/RenderListItem.h:
  31815. * rendering/RenderListMarker.cpp:
  31816. (WebCore::RenderListMarker::setStyle):
  31817. (WebCore::RenderListMarker::layout):
  31818. (WebCore::RenderListMarker::imageChanged):
  31819. (WebCore::RenderListMarker::calcPrefWidths):
  31820. (WebCore::RenderListMarker::calcWidth):
  31821. * rendering/RenderListMarker.h:
  31822. * rendering/RenderMenuList.cpp:
  31823. (WebCore::RenderMenuList::updateOptionsWidth):
  31824. (WebCore::RenderMenuList::calcPrefWidths):
  31825. * rendering/RenderMenuList.h:
  31826. * rendering/RenderObject.cpp:
  31827. (WebCore::RenderObject::RenderObject):
  31828. (WebCore::addLayers):
  31829. (WebCore::RenderObject::removeLayers):
  31830. (WebCore::RenderObject::moveLayers):
  31831. (WebCore::RenderObject::addAbsoluteRectForLayer):
  31832. (WebCore::RenderObject::checkForRepaintDuringLayout):
  31833. (WebCore::RenderObject::dump):
  31834. (WebCore::RenderObject::setStyle):
  31835. (WebCore::RenderObject::destroy):
  31836. (WebCore::RenderObject::recalcMinMaxWidths):
  31837. * rendering/RenderObject.h:
  31838. (WebCore::RenderObject::hasLayer):
  31839. (WebCore::RenderObject::prefWidthsDirty):
  31840. (WebCore::RenderObject::setPrefWidthsDirty):
  31841. (WebCore::RenderObject::setNeedsLayoutAndPrefWidthsRecalc):
  31842. (WebCore::RenderObject::calcPrefWidths):
  31843. (WebCore::RenderObject::minPrefWidth):
  31844. (WebCore::RenderObject::maxPrefWidth):
  31845. * rendering/RenderPart.cpp:
  31846. (WebCore::RenderPart::setWidget):
  31847. * rendering/RenderPartObject.cpp:
  31848. (WebCore::RenderPartObject::updateWidget):
  31849. (WebCore::RenderPartObject::layout):
  31850. * rendering/RenderReplaced.cpp:
  31851. (WebCore::RenderReplaced::calcPrefWidths):
  31852. * rendering/RenderReplaced.h:
  31853. * rendering/RenderSVGContainer.cpp:
  31854. (WebCore::RenderSVGContainer::calcPrefWidths):
  31855. (WebCore::RenderSVGContainer::layout):
  31856. * rendering/RenderSVGContainer.h:
  31857. * rendering/RenderSVGHiddenContainer.cpp:
  31858. (WebCore::RenderSVGHiddenContainer::calcPrefWidths):
  31859. * rendering/RenderSVGHiddenContainer.h:
  31860. * rendering/RenderSVGText.cpp:
  31861. (WebCore::RenderSVGText::layout):
  31862. * rendering/RenderSlider.cpp:
  31863. (WebCore::RenderSlider::calcPrefWidths):
  31864. * rendering/RenderSlider.h:
  31865. * rendering/RenderTable.cpp:
  31866. (WebCore::RenderTable::calcWidth):
  31867. (WebCore::RenderTable::layout):
  31868. (WebCore::RenderTable::calcPrefWidths):
  31869. (WebCore::RenderTable::splitColumn):
  31870. (WebCore::RenderTable::appendColumn):
  31871. * rendering/RenderTable.h:
  31872. * rendering/RenderTableCell.cpp:
  31873. (WebCore::RenderTableCell::updateFromElement):
  31874. (WebCore::RenderTableCell::styleOrColWidth):
  31875. (WebCore::RenderTableCell::calcPrefWidths):
  31876. * rendering/RenderTableCell.h:
  31877. * rendering/RenderTableCol.cpp:
  31878. (WebCore::RenderTableCol::updateFromElement):
  31879. * rendering/RenderTableRow.cpp:
  31880. (WebCore::RenderTableRow::layout):
  31881. * rendering/RenderTableSection.cpp:
  31882. (WebCore::RenderTableSection::paint):
  31883. * rendering/RenderText.cpp:
  31884. (WebCore::RenderText::trimmedPrefWidths):
  31885. (WebCore::RenderText::calcPrefWidths):
  31886. (WebCore::RenderText::calcPrefWidthsInternal):
  31887. (WebCore::RenderText::setText):
  31888. * rendering/RenderText.h:
  31889. (WebCore::RenderText::minPrefWidth):
  31890. (WebCore::RenderText::maxPrefWidth):
  31891. * rendering/RenderTextControl.cpp:
  31892. (WebCore::RenderTextControl::calcPrefWidths):
  31893. * rendering/RenderTextControl.h:
  31894. * rendering/RenderView.cpp:
  31895. (WebCore::RenderView::RenderView):
  31896. (WebCore::RenderView::calcPrefWidths):
  31897. (WebCore::RenderView::layout):
  31898. * rendering/RenderView.h:
  31899. * rendering/RenderWidget.cpp:
  31900. (WebCore::RenderWidget::layout):
  31901. * rendering/RootInlineBox.cpp:
  31902. * rendering/RootInlineBox.h:
  31903. (WebCore::RootInlineBox::setHorizontalOverflowPositions):
  31904. (WebCore::RootInlineBox::setVerticalSelectionPositions):
  31905. * rendering/TableLayout.h:
  31906. 2007-04-24 Justin Garcia <justin.garcia@apple.com>
  31907. Reviewed by oliver
  31908. <rdar://problem/5156401>
  31909. Crash when dragging text into a link inside a table cell
  31910. * editing/CompositeEditCommand.cpp:
  31911. (WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary):
  31912. Don't avoid the anchor if doing so would skip over a line break, that
  31913. would put content in the wrong paragraph, which can throw ReplaceSelectionCommand,
  31914. which relies on moveParagraphs into infinite recursion.
  31915. Renamed the input position.
  31916. Don't need to re-fetch the enclosing anchor when preparing to push it down,
  31917. since it hasn't changed since the top of the function.
  31918. 2007-04-24 Timothy Hatcher <timothy@apple.com>
  31919. Reviewed by Adam.
  31920. <rdar://problem/5133011> 64-bit: Attempting to paste copied text in a input field results in a crash at WebCore::Range::startPosition()
  31921. Change a couple incorrect uses of LONG_MAX to INT_MAX to match the variable type they are used in.
  31922. The LONG_MAX on 64-bit was overflowing the int variables, causing this crash on paste.
  31923. * bridge/mac/WebCoreAXObject.mm:
  31924. (-[WebCoreAXObject value]):
  31925. * editing/TextIterator.cpp:
  31926. (WebCore::TextIterator::handleTextNode):
  31927. (WebCore::TextIterator::handleTextBox):
  31928. 2007-04-24 Timothy Hatcher <timothy@apple.com>
  31929. Reviewed by Adam.
  31930. <rdar://problem/4966982> 64-bit: In a unordered list, TYPE=DISC and TYPE=CIRCLE attribute values are ignored
  31931. We need to draw our full-circle arcs counter-clockwise, since a clockwise arc from 0 to 2π is no arc at all!
  31932. This only worked on 32-bit due to a rounding error in CoreGraphics, causing it to draw a full circle anyway.
  31933. * platform/graphics/cg/GraphicsContextCG.cpp:
  31934. (WebCore::GraphicsContext::drawEllipse):
  31935. 2007-04-24 Brady Eidson <beidson@apple.com>
  31936. Reviewed by Beth, Hyatt, Ada, and Darin
  31937. <rdar://problem/5011477> and <rdar://problem/5011514>
  31938. Provide support for the icon.db to be moved to a different directory from the old WebKit-style
  31939. icons, and remove the old directory if that is the case
  31940. Support for this starts in WebCore, where we can use the metadata table in the icon.db to track
  31941. whether or not we've ever done the import
  31942. * WebCore.exp:
  31943. * loader/icon/IconDatabase.cpp:
  31944. (WebCore::IconDatabase::defaultDatabaseFilename): Changed to "Icons.db"
  31945. (WebCore::IconDatabase::IconDatabase):
  31946. (WebCore::IconDatabase::deleteAllPreparedStatements): Delete the new statements added
  31947. (WebCore::IconDatabase::imported): Grab this flag from the DB or return the cached flag
  31948. (WebCore::IconDatabase::setImported): Store this flag into the DB
  31949. (WebCore::IconDatabase::importedQuery): Actually do the DB query for this save
  31950. (WebCore::IconDatabase::setImportedQuery): Actually do the DB query for this retrieval
  31951. * loader/icon/IconDatabase.h:
  31952. 2007-04-24 Darin Adler <darin@apple.com>
  31953. Reviewed by Justin.
  31954. - fix <rdar://problem/4356361> Selection after multiple delete
  31955. keypresses and undo selects only the last deleted character
  31956. Test: editing/undo/undo-combined-delete-boundary.html
  31957. Test: editing/undo/undo-combined-delete.html
  31958. Test: editing/undo/undo-delete-boundary.html
  31959. Test: editing/undo/undo-delete.html
  31960. Test: editing/undo/undo-forward-delete-boundary.html
  31961. Test: editing/undo/undo-forward-delete.html
  31962. * editing/TypingCommand.cpp:
  31963. (WebCore::TypingCommand::insertText): Fix obviously-wrong code where there were missing
  31964. braces. I couldn't find any real symptom of this, but I think the fix should go in anyway.
  31965. All layout tests still pass.
  31966. (WebCore::TypingCommand::deleteKeyPressed): Added code to compute a selection that goes
  31967. back to the beginning of the composite editing operation.
  31968. (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
  31969. * editing/Selection.h:
  31970. * editing/Selection.cpp: (WebCore::Selection::setWithoutValidation):
  31971. Added. Back door to allow setting the ends of a selection without revalidating,
  31972. because we need to use it on a selection where the endpoints may no longer be
  31973. valid due to mutations done by earlier pieces of the editing operation.
  31974. * editing/EditCommand.h:
  31975. (WebCore::EditCommand::startingSelection): Return a const& for speed.
  31976. (WebCore::EditCommand::endingSelection): Ditto.
  31977. 2007-04-24 Sam Weinig <sam@webkit.org>
  31978. Reviewed by Mitz.
  31979. - fix for http://bugs.webkit.org/show_bug.cgi?id=13448
  31980. REGRESSION: setting an input element's value to JavaScript null gives "null"
  31981. Test: fast/forms/input-null.html
  31982. * html/HTMLInputElement.idl: Convert JS null to the empty string on setting
  31983. DOMString attributes.
  31984. 2007-04-24 Mitz Pettel <mitz@webkit.org>
  31985. Reviewed by Dave Hyatt.
  31986. - fix http://bugs.webkit.org/show_bug.cgi?id=13453
  31987. Control clip isn't applied to children's backgrounds, outlines and floats
  31988. Test: fast/forms/control-clip.html
  31989. * rendering/RenderBlock.cpp:
  31990. (WebCore::RenderBlock::paint): Apply the clip in all phases that paint
  31991. children. Split PaintPhaseOutline and PaintPhaseChildBlockBackground into
  31992. two phases each, applying the clip only to the children.
  31993. * rendering/RenderListBox.cpp:
  31994. (WebCore::RenderListBox::paintObject): Treat the scrollbar as part of the
  31995. background rather than as a child's background, now that children are
  31996. clipped out.
  31997. 2007-04-24 Benjamin Otte <otte@gnome.org>
  31998. Reviewed by Mark Rowe.
  31999. Gdk build system improvements.
  32000. * make-generated-sources.sh: Exit with failure status if make fails.
  32001. 2007-04-24 Benjamin Otte <otte@gnome.org>
  32002. Reviewed by Mark Rowe.
  32003. Gdk build system improvements.
  32004. * Projects/gdk/webcore-gdk.bkl:
  32005. fail if running any of the commands failed. In particular
  32006. make-generated-sources.sh
  32007. 2007-04-23 Beth Dakin <bdakin@apple.com>
  32008. Reviewed by Adam.
  32009. Fix for <rdar://problem/5155507> REGRESSION: Crash in
  32010. RenderLayer::setHasVisibleContent()
  32011. * rendering/RenderContainer.cpp:
  32012. (WebCore::RenderContainer::appendChildNode): Must null-check
  32013. enclosingLayer()
  32014. (WebCore::RenderContainer::insertChildNode): Same.
  32015. 2007-04-23 David Hyatt <hyatt@apple.com>
  32016. Fix for bug 13337, deep tag nesting is slow. This patch fixes a number of O(n^2) issues as well as making
  32017. a few performance optimizations based off profiling. Details next to each change below.
  32018. Note that calcMinMaxWidth being slow is a critical separate piece of this puzzle. Until bug 13430 is fixed,
  32019. render tree construction will be O(n^2) (because of the minmaxrecalc bit setting being stupid enough to
  32020. always crawl to the root of the tree) and calcMinMaxWidth will waste tons of unnecessary time.
  32021. When these fixes are combined with the calcMinMaxWidth fix in 13430, the penguin page specified in 13337
  32022. loads in < 2 seconds (down from an infinite hang before).
  32023. Reviewed by aroben, ollie
  32024. * css/cssstyleselector.cpp:
  32025. (WebCore::CSSStyleSelector::locateCousinList):
  32026. (WebCore::CSSStyleSelector::locateSharedStyle):
  32027. * css/csstyleselector.h
  32028. Cap the depth of cousin searching on the shared style optimization. We will be willing to (at most) crawl
  32029. up the tree the same distance that we were willing to crawl backwards through sibling lists. Leaving it
  32030. uncapped resulted in pathological style resolution for the case of an infinitely nested chain of singletons.
  32031. * html/HTMLParser.cpp:
  32032. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  32033. (WebCore::HTMLParser::popBlock):
  32034. Cap the number of residual style tags that we are willing to reopen. We will reopen at most 200
  32035. residual style tags, since the assumption is that once that many tags are on the stack, you're probably already
  32036. every kind of bold, italic, and color of the rainbow.
  32037. * rendering/RenderFlow.cpp:
  32038. (WebCore::RenderFlow::absoluteClippedOverflowRect):
  32039. absoluteClippedOverflowRect can just return the empty rect when the inline flow has no line boxes instead of
  32040. doing a bunch of work (and calling containingBlock()) for no reason.
  32041. * rendering/RenderInline.cpp:
  32042. (WebCore::RenderInline::addChildToFlow):
  32043. Remove the useless containingBlock() check from addChildToFlow. Obviously every inline's containing block
  32044. is a block flow.
  32045. * rendering/bidi.cpp:
  32046. (WebCore::inlineWidth):
  32047. (WebCore::RenderBlock::createLineBoxes):
  32048. Cap the depth of individual line trees to 200. Again the assumption is that once that many open inlines exist
  32049. all on one line that there's no way this would be intentional.
  32050. 2007-04-23 David Hyatt <hyatt@apple.com>
  32051. Fix for bug 13430, cap inline splitting for continuations to a maximum depth of 200.
  32052. Reviewed by olliej, antti
  32053. * rendering/RenderInline.cpp:
  32054. (WebCore::RenderInline::splitInlines):
  32055. 2007-04-23 Alp Toker <alp@atoker.com>
  32056. Gdk build fix. Track EventHandler change made in r21042.
  32057. * page/gdk/EventHandlerGdk.cpp:
  32058. (WebCore::EventHandler::passWheelEventToWidget):
  32059. (WebCore::EventHandler::passMousePressEventToScrollbar):
  32060. 2007-04-23 Timothy Hatcher <timothy@apple.com>
  32061. Reviewed by Darin.
  32062. <rdar://problem/5024945> -[DOMRange lineBoxRects] doesn't include start and end nodes that have offsets
  32063. * rendering/RenderText.cpp:
  32064. (WebCore::RenderText::addLineBoxRects): Use min(box->len(), end) instead of special-casing UINT_MAX.
  32065. 2007-04-23 Adele Peterson <adele@apple.com>
  32066. Fix by Darin, reviewed by me.
  32067. Fix for REGRESSION: Can't upload attachments to bugzilla since the file upload control is reset immediately
  32068. http://bugs.webkit.org/show_bug.cgi?id=13461
  32069. * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::updateFromElement):
  32070. Only clear the FileChooser if the value is empty *and* (not or) the filename is empty.
  32071. 2007-04-23 Adele Peterson <adele@apple.com>
  32072. Reviewed by Adam.
  32073. Updated fix for <rdar://problem/4887426> Set a reasonable maximum number of recent searches for search menu
  32074. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::parseMappedAttribute): Use a const int maxSavedResults instead of magic number 256.
  32075. 2007-04-23 Timothy Hatcher <timothy@apple.com>
  32076. Reviewed by Hyatt.
  32077. <rdar://problem/5024945> -[DOMRange lineBoxRects] doesn't include start and end nodes that have offsets
  32078. Don't call selectionRect with a -1 end position, instead use the text length.
  32079. * rendering/RenderText.cpp:
  32080. (WebCore::RenderText::addLineBoxRects):
  32081. 2007-04-23 Adele Peterson <adele@apple.com>
  32082. Fixed and reviewed by Darin, Adele, and Oliver.
  32083. WebCore part of fix for <rdar://problem/5107538> REGRESSION: Page scroll when selecting characters from inline input candidate window by arrow buttons
  32084. http://bugs.webkit.org/show_bug.cgi?id=13263
  32085. * dom/KeyboardEvent.h: (WebCore::KeypressCommand::isEmpty): Added helper method.
  32086. 2007-04-23 Patti Hoa <patti@apple.com>
  32087. <rdar://problem/4938364> Attachment button has different string length between attributeStringForRange and stringForRange
  32088. <rdar://problem/4939536> AXLengthForTextMarkerRange returns zero length for the range of an attachment
  32089. Reviewed by Darin.
  32090. * bridge/mac/WebCoreAXObject.mm:
  32091. (nsStringForReplacedNode):
  32092. Added helper routine to check if the replaced node should be exposed as an attachment character in string representation.
  32093. Added an additional check to make sure that text node is not considered a replaced node.
  32094. Removed helper routine AXAttributedStringAppendReplaced since half of the functions are now taken care by nsStringForReplacedNode.
  32095. The other half is directly used in the doAXAttributedStringForTextMarkerRange method.
  32096. (-[WebCoreAXObject doAXStringForTextMarkerRange:]):
  32097. (-[WebCoreAXObject doAXAttributedStringForTextMarkerRange:]):
  32098. Both string and AttrbributedString methods will now utilize the helper routine nsStringForReplacedNode to return replacement
  32099. characters for range occupied by attachment.
  32100. 2007-04-23 Adele Peterson <adele@apple.com>
  32101. Reviewed by Oliver.
  32102. Fix for <rdar://problem/4887426> Set a reasonable maximum number of recent searches for search menu
  32103. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::parseMappedAttribute):
  32104. Enforce a maximum of 256 saved results for the search field.
  32105. 2007-04-23 Adele Peterson <adele@apple.com>
  32106. Reviewed by Hyatt & Adam.
  32107. Fix for <rdar://problem/4807799> REGRESSION: calling select() in onSearch handler doesn't work if you hit enter to trigger the event
  32108. Fix for <rdar://problem/5153970> onChange doesn't fire when focusing a popup, using type-ahead to select, and leaving
  32109. This previous behavior to blur controls when hitting enter was added to achieve the result of firing the change event. Firefox does not
  32110. fire blur- just the change event, so this fix will match Firefox behavior.
  32111. This also fixes a bug where we didn't fire the change event when using type-ahead selection with the popup menu.
  32112. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler): Fire change event instead of blur event when hitting enter.
  32113. * html/HTMLSelectElement.cpp:
  32114. (WebCore::HTMLSelectElement::dispatchFocusEvent): Now that we have type-ahead selection for popups that can be opened with the arrow keys,
  32115. we should always save the last selection when a popup gets focus, so it can be compared to the current selection when it loses focus.
  32116. (WebCore::HTMLSelectElement::dispatchBlurEvent): For the same reasons as above, we should fire onChange for all popups on blur.
  32117. (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Fire change event instead of blur event when hitting enter. Removed an unnecessary
  32118. check for form() before calling menuListOnChange(). Removed an unnecessary check for renderer() and usesMenuList().
  32119. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Remove call to blur. Since list boxes fire the change event immediately after an
  32120. action is taken, we don't need to fire anything after hitting enter.
  32121. (WebCore::HTMLSelectElement::menuListOnChange): Reset m_lastOnChangeIndex after firing the change event.
  32122. 2007-04-23 Anders Carlsson <andersca@apple.com>
  32123. Reviewed by Ada.
  32124. <rdar://problem/5061022>
  32125. REGRESSION: Acrobat 8 plug-in fails to scroll with trackpad two-finger scroll or mouse wheel (12995)
  32126. Pass wheel events to all widgets.
  32127. * page/EventHandler.cpp:
  32128. (WebCore::EventHandler::handleWheelEvent):
  32129. * page/EventHandler.h:
  32130. * page/mac/EventHandlerMac.mm:
  32131. (WebCore::EventHandler::passWheelEventToWidget):
  32132. 2007-04-23 Alp Toker <alp@atoker.com>
  32133. Reviewed by Mark.
  32134. Save and restore the context state when beginning and ending a transparency layer.
  32135. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  32136. (WebCore::GraphicsContext::beginTransparencyLayer):
  32137. (WebCore::GraphicsContext::endTransparencyLayer):
  32138. 2007-04-23 Alp Toker <alp@atoker.com>
  32139. Reviewed by Mark.
  32140. Further implementation and checks. The opacity layer code is not so beautiful
  32141. but gets the job done with fewer complications than maintaining our own stack.
  32142. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  32143. (WebCore::GraphicsContext::translate):
  32144. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  32145. (WebCore::GraphicsContext::beginTransparencyLayer):
  32146. (WebCore::GraphicsContext::endTransparencyLayer):
  32147. (WebCore::GraphicsContext::setCompositeOperation):
  32148. (WebCore::GraphicsContext::rotate):
  32149. (WebCore::GraphicsContext::scale):
  32150. 2007-04-23 Darin Adler <darin@apple.com>
  32151. Reviewed by Hyatt.
  32152. - rename box-sizing to -webkit-box-sizing
  32153. because of <rdar://problem/4667227> REGRESSION: Shifted table on page at
  32154. https://us.etrade.com/e/t/home (due to box-sizing)
  32155. * css/CSSComputedStyleDeclaration.cpp:
  32156. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Rename.
  32157. * css/CSSPropertyNames.in: Ditto.
  32158. * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Rename and take out comment
  32159. explaining why we aren't prefacing with -webkit.
  32160. * css/cssstyleselector.cpp:
  32161. (WebCore::CSSStyleSelector::applyProperty): Rename.
  32162. * css/html4.css: Rename.
  32163. * css/quirks.css: Rename.
  32164. 2007-04-23 Alp Toker <alp@atoker.com>
  32165. Reviewed by Hyatt.
  32166. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  32167. (WebCore::GraphicsContext::drawEllipse):
  32168. (WebCore::GraphicsContext::drawConvexPolygon):
  32169. Fix stroking and filling of ellipses and polygons.
  32170. * platform/graphics/cairo/ImageCairo.cpp:
  32171. (WebCore::BitmapImage::draw): Make use of a new GraphicsContext
  32172. function to simplify the code.
  32173. (WebCore::Image::drawPattern): Now implemented. This makes content
  32174. with tiled patterns (eg. CSS repeat) render correctly.
  32175. * platform/graphics/gdk/ImageGdk.cpp:
  32176. (WebCore::Image::drawPattern): Remove old stub.
  32177. 2007-04-22 Lars Naesbye Christensen <lars@naesbye.dk>
  32178. Reviewed by Tim Hatcher.
  32179. Prettier, more modern 'cell' cursor
  32180. http://bugs.webkit.org/show_bug.cgi?id=13441
  32181. Also updates past ChangeLog entries to new email address
  32182. * ChangeLog:
  32183. * ChangeLog-2006-12-31:
  32184. * Resources/cellCursor.png:
  32185. 2007-04-23 Mark Rowe <mrowe@apple.com>
  32186. Rubber-stamped by Hyatt.
  32187. Rename cMaxPenderingSourceLengthInLowBandwidthDisplay to cMaxPendingSourceLengthInLowBandwidthDisplay.
  32188. * loader/FrameLoader.cpp:
  32189. (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
  32190. 2007-04-22 Maciej Stachowiak <mjs@apple.com>
  32191. Reviewed by Darin and Geoff.
  32192. - move most of Window's data members into a separate private object, to avoid needing
  32193. to use the oversize allocator for it
  32194. http://bugs.webkit.org/show_bug.cgi?id=13381
  32195. It was the only remaining JSObject subclass to use the oversize
  32196. allocator on 32-bit platforms, and having oversize objects around
  32197. makes garbage collection slower so this would hurt performance
  32198. with many tabs/windows open.
  32199. No significant effect on JS iBench.
  32200. * bindings/js/kjs_events.cpp:
  32201. (KJS::JSUnprotectedEventListener::JSUnprotectedEventListener):
  32202. (KJS::JSUnprotectedEventListener::~JSUnprotectedEventListener):
  32203. (KJS::JSEventListener::JSEventListener):
  32204. (KJS::JSEventListener::~JSEventListener):
  32205. (KJS::JSLazyEventListener::parseCode):
  32206. * bindings/js/kjs_window.cpp:
  32207. (KJS::WindowPrivate::WindowPrivate):
  32208. (KJS::Window::Window):
  32209. (KJS::Window::~Window):
  32210. (KJS::Window::location):
  32211. (KJS::Window::selection):
  32212. (KJS::Window::locationbar):
  32213. (KJS::Window::menubar):
  32214. (KJS::Window::personalbar):
  32215. (KJS::Window::statusbar):
  32216. (KJS::Window::toolbar):
  32217. (KJS::Window::scrollbars):
  32218. (KJS::Window::mark):
  32219. (KJS::Window::getValueProperty):
  32220. (KJS::Window::findJSEventListener):
  32221. (KJS::Window::findJSUnprotectedEventListener):
  32222. (KJS::Window::clearHelperObjectProperties):
  32223. (KJS::Window::clear):
  32224. (KJS::Window::setCurrentEvent):
  32225. (KJS::Window::setReturnValueSlot):
  32226. (KJS::Window::clearAllTimeouts):
  32227. (KJS::Window::installTimeout):
  32228. (KJS::Window::pauseTimeouts):
  32229. (KJS::Window::resumeTimeouts):
  32230. (KJS::Window::clearTimeout):
  32231. (KJS::Window::timerFired):
  32232. (KJS::Window::disconnectFrame):
  32233. (KJS::Window::jsEventListeners):
  32234. (KJS::Window::jsHTMLEventListeners):
  32235. (KJS::Window::jsUnprotectedEventListeners):
  32236. (KJS::Window::jsUnprotectedHTMLEventListeners):
  32237. * bindings/js/kjs_window.h:
  32238. 2007-04-22 David Hyatt <hyatt@apple.com>
  32239. Fix 1% regression on the PLT. Make sure roundToDevicePixels does no
  32240. work when no scale is in effect.
  32241. Reviewed by mjs
  32242. 2007-04-22 Darin Adler <darin@apple.com>
  32243. Reviewed by Oliver.
  32244. - fix small things noticed while looking into a font subsitution bug
  32245. * platform/Font.h: (WebCore::Font::operator==): Corrected a misleading comment.
  32246. * platform/Font.cpp:
  32247. (WebCore::Font::Font): Initialize m_pageZero to 0 in the empty constructor instead
  32248. of leaving it uninitialized. Initialize m_fontList for tighter code. Remove unneeded
  32249. initialization of RefPtr members to 0. Changed the copy constructor to use initialization
  32250. for tighter code.
  32251. (WebCore::Font::operator=): Sorted to match the order from the header and the copy
  32252. constructor, and removed the uneeded self-assignment check.
  32253. 2007-04-22 Darin Adler <darin@apple.com>
  32254. Reviewed by Maciej.
  32255. - fix http://bugs.webkit.org/show_bug.cgi?id=5196
  32256. <rdar://problem/4537384> input type=file fields with style=display:none do not post
  32257. their values (5196)
  32258. - fix http://bugs.webkit.org/show_bug.cgi?id=8248
  32259. Can not clear file input field
  32260. * manual-tests/clear-input-file.html: Added.
  32261. * html/HTMLInputElement.cpp:
  32262. (WebCore::HTMLInputElement::appendFormData): Remove check that prevents submission of
  32263. form data when there is no renderer or the renderer is invisible. While well-intentioned,
  32264. the rule does not match the behavior of other web browsers.
  32265. (WebCore::HTMLInputElement::setValue): Instead of disallowing all value changes for file
  32266. type, allow changes to the empty string.
  32267. (WebCore::HTMLInputElement::storesValueSeparateFromAttribute): Made file type return true
  32268. for this. 1) The file type does store its value separate from the value attribute.
  32269. 2) The code in setInputType() should do the right thing given this new value, according to
  32270. my inspection of the code. 3) The code in both reset() and setValue() will work properly
  32271. if this is true, which was the motivation for changing it.
  32272. * platform/FileChooser.h: Added a clear function.
  32273. * platform/FileChooser.cpp: (WebCore::FileChooser::clear): Clear the filename and the icon.
  32274. * rendering/RenderFileUploadControl.cpp:
  32275. (WebCore::RenderFileUploadControl::valueChanged): Used a local variable to make the code
  32276. a little bit more readable (and match the change below).
  32277. (WebCore::RenderFileUploadControl::updateFromElement): Used local variables a bit more in
  32278. the old code. Added code that will call clear on the FileChooser and repaint if the DOM
  32279. element has an empty value and the FileChooser does not.
  32280. 2007-04-22 Grace Kloba <klobag@gmail.com>
  32281. Reviewed by Hyatt.
  32282. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12279
  32283. Implemented two pass loading. Enabled by WTF_USE_LOW_BANDWIDTH_DISPLAY flag.
  32284. * dom/Document.cpp:
  32285. (WebCore::Document::Document): initialize member variable m_inLowBandwidthDisplay
  32286. * dom/Document.h:
  32287. (WebCore::Document::haveStylesheetsLoaded): while in low bandwidth display mode, ignore pending style sheets
  32288. (WebCore::Document::setDocLoader):
  32289. (WebCore::Document::inLowBandwidthDisplay):
  32290. (WebCore::Document::setLowBandwidthDisplay):
  32291. * html/HTMLTokenizer.cpp:
  32292. (WebCore::HTMLTokenizer::scriptHandler): while in low bandwidth display mode, don't execute JavaScript
  32293. * loader/Cache.cpp:
  32294. (WebCore::Cache::requestResource): while in low bandwidth display mode, don't let style sheet and JavaScript block
  32295. * loader/CachedCSSStyleSheet.cpp:
  32296. (WebCore::CachedCSSStyleSheet::checkNotify): add notifyFinished() as client may need "this" pointer
  32297. * loader/DocLoader.h:
  32298. (WebCore::DocLoader::replaceDocument):
  32299. * loader/FrameLoader.cpp:
  32300. (WebCore::FrameLoader::FrameLoader):
  32301. (WebCore::FrameLoader::requestFrame): while in low bandwidth display mode, don't load sub-frame
  32302. (WebCore::FrameLoader::stopLoading):
  32303. (WebCore::FrameLoader::begin): set to low bandwidth display mode if the top frame is HTML document
  32304. (WebCore::FrameLoader::write):
  32305. (WebCore::FrameLoader::endIfNotLoading):
  32306. (WebCore::FrameLoader::checkCompleted): while in low bandwidth display mode, don't set complete
  32307. (WebCore::FrameLoader::requestObject): while in low bandwidth display mode, don't care Object
  32308. (WebCore::FrameLoader::addLowBandwidthDisplayRequest):
  32309. (WebCore::FrameLoader::removeAllLowbandwidthDisplayRequests):
  32310. (WebCore::FrameLoader::notifyFinished):
  32311. (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
  32312. * loader/FrameLoader.h:
  32313. (WebCore::FrameLoader::FrameLoader::needToSwitchOutLowBandwidthDisplay):
  32314. (WebCore::FrameLoader::FrameLoader::setUseLowBandwidthDisplay):
  32315. (WebCore::FrameLoader::FrameLoader::useLowBandwidthDisplay):
  32316. 2007-04-22 Darin Adler <darin@apple.com>
  32317. Reviewed by Tim Hatcher.
  32318. - fix http://bugs.webkit.org/show_bug.cgi?id=13439
  32319. 4 problems found in dashboard-region parser and serializer
  32320. Test: fast/css/dashboard-region-parser.html
  32321. * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::cssText):
  32322. Fix code that overwrote each additional region with the previous one to
  32323. instead build a space-separated list. Check for the case of an identifier
  32324. that's invalid, since that's (accidentally) how we represent a region
  32325. value that doesn't have explicit top/right/bottom/left values. The old code
  32326. would end up writing out four spaces after the region type.
  32327. * css/cssparser.cpp: (WebCore::CSSParser::parseDashboardRegions):
  32328. Fail to parse if there is something after the "none" identifier or after
  32329. the arguments inside the dashboard-region "function". Also replaced code
  32330. that produced a identifier with CSS_VAL_INVALID in a roundabout way with
  32331. code that does it explicitly.
  32332. 2007-04-22 Darin Adler <darin@apple.com>
  32333. Reviewed by Adele.
  32334. - support for fix for <rdar://problem/5100240> REGRESSION: Control-O broken
  32335. * dom/KeyboardEvent.h: Include a vector of command names in the KeypressCommand object
  32336. instead of a single command name.
  32337. 2007-04-22 Alexey Proskuryakov <ap@webkit.org>
  32338. Reviewed by Darin.
  32339. http://bugs.webkit.org/show_bug.cgi?id=13115
  32340. REGRESSION: 1000% performance regression in DOM access by index, which was already slow
  32341. * dom/NodeList.h: Move cached data into a separate class, so it can be shared.
  32342. * dom/Node.h: Replace the set of registered NodeLists with a struct that also
  32343. contains a shared NodeList::Caches (so the size of Node doesn't change).
  32344. * dom/NodeList.cpp:
  32345. (WebCore::NodeList::NodeList):
  32346. (WebCore::NodeList::~NodeList):
  32347. (WebCore::NodeList::recursiveLength):
  32348. (WebCore::NodeList::itemForwardsFromCurrent):
  32349. (WebCore::NodeList::itemBackwardsFromCurrent):
  32350. (WebCore::NodeList::recursiveItem):
  32351. (WebCore::NodeList::itemWithName):
  32352. (WebCore::NodeList::rootNodeChildrenChanged):
  32353. (WebCore::NodeList::NodeListInfo::NodeListInfo):
  32354. (WebCore::NodeList::NodeListInfo::reset):
  32355. * dom/ChildNodeList.cpp:
  32356. (WebCore::ChildNodeList::ChildNodeList):
  32357. (WebCore::ChildNodeList::length):
  32358. (WebCore::ChildNodeList::item):
  32359. (WebCore::ChildNodeList::nodeMatches):
  32360. * dom/ChildNodeList.h:
  32361. * dom/Node.cpp:
  32362. (WebCore::Node::childNodes):
  32363. (WebCore::Node::registerNodeList):
  32364. (WebCore::Node::unregisterNodeList):
  32365. (WebCore::Node::notifyLocalNodeListsAttributeChanged):
  32366. (WebCore::Node::notifyLocalNodeListsChildrenChanged):
  32367. Adjust for the above changes.
  32368. 2007-04-21 Mitz Pettel <mitz@webkit.org>
  32369. Reviewed by Darin.
  32370. - fix http://bugs.webkit.org/show_bug.cgi?id=13391
  32371. REGRESSION (r18819): Incomplete repaint of button text
  32372. Test: fast/repaint/control-clip.html
  32373. Ignore controls' lightweight clip in repaint rect computation for now.
  32374. * rendering/RenderBox.cpp:
  32375. (WebCore::RenderBox::computeAbsoluteRepaintRect):
  32376. 2007-04-21 Darin Adler <darin@apple.com>
  32377. Reviewed by Adam.
  32378. - fix <rdar://problem/4816343> :-khtml-drag CSS pseudo-class changed to :-webkit-drag, need alias
  32379. * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType):
  32380. Since Apple documentation claims "-khtml-drag" works, we need to keep it working,
  32381. so add it back as an alias.
  32382. 2007-04-21 Darin Adler <darin@apple.com>
  32383. Reviewed by Oliver.
  32384. - fix <rdar://problem/4782422> REGRESSION: -[stringByEvaluatingJavaScriptFromString]
  32385. returns an empty string instead of nil for non-string results
  32386. * page/mac/WebCoreFrameBridge.mm:
  32387. (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  32388. Added a call to nsStringNilIfEmpty to restore the old behavior. It might be nice to
  32389. distinguish the empty string from a non-string result, but there's no obvious way
  32390. to do that, and for compatibility it's probably best to just restore the old
  32391. behavior instead.
  32392. 2007-04-21 David Hyatt <hyatt@apple.com>
  32393. Fix for bug 13432, determineFlowSpacing is O(n^2).
  32394. Reviewed by aroben
  32395. * rendering/InlineBox.cpp:
  32396. (WebCore::InlineBox::nextOnLineExists):
  32397. (WebCore::InlineBox::prevOnLineExists):
  32398. * rendering/InlineBox.h:
  32399. (WebCore::InlineBox::InlineBox):
  32400. 2007-04-21 Lamar Goddard <lamargoddard@gmail.com>
  32401. Reviewed by Darin.
  32402. Fix for http://bugs.webkit.org/show_bug.cgi?id=5262
  32403. <rdar://problem/5018778>
  32404. XMLSerializer drops Namespace information
  32405. Updated WebCore::markup to output namespace information for elements/attributes whose namespace information
  32406. doesn't appear in its scope in the output.
  32407. Added test case: fast/dom/serialize-nodes.xhtml
  32408. * WebCore/editing/markup.cpp:
  32409. (WebCore::createMarkup(const Node*, ...)): Changed call to WebCore::markup to match parameters
  32410. (WebCore::markup): Changed recursive call to match tree structure, removed ASSERT and no longer needed includeSiblings parameter.
  32411. (WebCore::startMarkup): Added optional parameter to track namespaces in the current scope.
  32412. (WebCore::addNamespace): Function to add namespace information to markup.
  32413. (WebCore::shouldAddNamespaceAttr):
  32414. (WebCore::shouldAddNamespaceElem): Functions that test whether namespace information should be added for a given node.
  32415. * WebCore/dom/Document.idl:
  32416. (createElementNS):
  32417. (createAttributeNS):
  32418. (getElementsByTagNameNS): Added [ConvertNullToNullString] to namespaceURI parameter.
  32419. * WebCore/dom/Node.cpp:
  32420. (Node::getElementsByTagNameNS): removed test for namespaceURI being null as null can be a valid namespace.
  32421. 2007-04-21 Alexey Proskuryakov <ap@webkit.org>
  32422. Reviewed by Darin.
  32423. http://bugs.webkit.org/show_bug.cgi?id=13300
  32424. Reproducible crash opening anekdot.ru
  32425. * html/HTMLParser.cpp:
  32426. (WebCore::HTMLParser::HTMLParser):
  32427. (WebCore::HTMLParser::getNode):
  32428. (WebCore::HTMLParser::handleIsindex):
  32429. * html/HTMLParser.h:
  32430. Made HTMLParser::form a RefPtr, and renamed it to m_currentFormElement.
  32431. Made m_currentMapElement a RefPtr.
  32432. 2007-04-21 Mitz Pettel <mitz@webkit.org>
  32433. Reviewed by Darin.
  32434. - fix http://bugs.webkit.org/show_bug.cgi?id=13353
  32435. REGRESSION (r20754-20766): Textarea does not resize when scrollbar is present
  32436. Test: fast/overflow/hit-test-overflow-controls.html
  32437. * page/EventHandler.cpp:
  32438. (WebCore::EventHandler::handleMouseMoveEvent): Avoid activating scrollbars
  32439. during layer resize.
  32440. * rendering/RenderBlock.cpp:
  32441. (WebCore::RenderBlock::isPointInOverflowControl): Renamed isPointInScrollbar
  32442. to this, to reflect that it returns true for points in the resize corner
  32443. as well. Changed it to call the layer to do the actual work.
  32444. (WebCore::RenderBlock::nodeAtPoint): Updated for the above rename.
  32445. * rendering/RenderBlock.h:
  32446. * rendering/RenderLayer.cpp:
  32447. (WebCore::RenderLayer::horizontalScrollbarWidget): Fixed typo in this function's
  32448. name (it was horizontaScrollbarWidget).
  32449. (WebCore::RenderLayer::hitTestOverflowControls): Added. Returns whether the
  32450. hit point is in one of the scrollbars or the resize corner, and updates the
  32451. platform scrollbar in the hit test result if a scrollbar was hit.
  32452. * rendering/RenderLayer.h:
  32453. * rendering/RenderListBox.cpp:
  32454. (WebCore::RenderListBox::isPointInOverflowControl): Rename.
  32455. * rendering/RenderListBox.h:
  32456. 2007-04-21 Mitz Pettel <mitz@webkit.org>
  32457. Reviewed by Darin.
  32458. - fix http://bugs.webkit.org/show_bug.cgi?id=13417
  32459. Repro crash when the first argument to getMatchedCSSRules is not an element
  32460. Test: fast/dom/Window/getMatchedCSSRules-null-crash.html
  32461. * css/cssstyleselector.cpp:
  32462. (WebCore::CSSStyleSelector::styleRulesForElement): Added null check.
  32463. 2007-04-21 Mitz Pettel <mitz@webkit.org>
  32464. Reviewed by Darin.
  32465. - fix http://bugs.webkit.org/show_bug.cgi?id=13416
  32466. Repro crash after referencing the user stylesheet from JavaScript
  32467. No test included because DumpRenderTree does not support setting the user stylesheet.
  32468. * css/cssstyleselector.cpp:
  32469. (WebCore::CSSStyleSelector::CSSStyleSelector):
  32470. (WebCore::CSSStyleSelector::~CSSStyleSelector):
  32471. * css/cssstyleselector.h: Made m_userSheet a RefPtr.
  32472. 2007-04-21 Darin Fisher <darin@chromium.org>
  32473. Reviewed by Adam.
  32474. NPObject should be forward declared using 'struct' instead of 'class'
  32475. * page/Frame.h:
  32476. 2007-04-21 Alp Toker <alp@atoker.com>
  32477. Gdk build fix.
  32478. * platform/gdk/FontPlatformDataGdk.cpp:
  32479. (WebCore::FontPlatformData::FontPlatformData): Use the correct casts.
  32480. 2007-04-20 Brady Eidson <beidson@apple.com>
  32481. Reviewed by Oliver (Black Sheep)
  32482. <rdar://problem/3559794>
  32483. [WebView setMaintainsBackForwardList:] doesn't actually flush out the current page caches
  32484. * WebCore.exp:
  32485. * history/BackForwardList.cpp:
  32486. (WebCore::BackForwardList::BackForwardList): Set the flag to true by default
  32487. (WebCore::BackForwardList::addItem): Check the flag and bail if its false
  32488. (WebCore::BackForwardList::setCapacity): More correct if it set the m_current to
  32489. NoCurrentItemIndex if we're setting capacity to 0
  32490. (WebCore::BackForwardList::enabled):
  32491. (WebCore::BackForwardList::setEnabled): If we're disabling, cycle capacity to 0 and
  32492. back to flush things out
  32493. * history/BackForwardList.h: Add enabled(), setEnabled(bool), and m_enabled
  32494. 2007-04-20 David Hyatt <hyatt@apple.com>
  32495. Bug 13424, firstLineStyle and verticalPositionHint together take
  32496. 33% of the time on the new tag nesting PLT. Don't waste time even
  32497. looking for first-line styles if no stylesheet used them.
  32498. Reviewed by beth
  32499. * css/CSSGrammar.y:
  32500. * dom/Document.cpp:
  32501. (WebCore::Document::Document):
  32502. * dom/Document.h:
  32503. (WebCore::Document::usesFirstLineRules):
  32504. (WebCore::Document::setUsesFirstLineRules):
  32505. * rendering/RenderObject.cpp:
  32506. (WebCore::RenderObject::verticalPositionHint):
  32507. (WebCore::RenderObject::firstLineStyle):
  32508. 2007-04-20 Peter Kasting <pkasting@google.com>
  32509. Reviewed by Oliver.
  32510. - fix http://bugs.webkit.org/show_bug.cgi?id=13420
  32511. * platform/TextEncodingRegistry.cpp:
  32512. (WebCore::addToTextEncodingNameMap): Change a pointer comparison to a
  32513. strcmp(), since the strings here are not necessarily
  32514. pointer-equivalent.
  32515. 2007-04-20 Darin Adler <darin@apple.com>
  32516. Reviewed by Geoff Garen and John Sullivan.
  32517. - fix <rdar://problem/4671964> document property on <iframe> elements causes problems for SAP application
  32518. Test: fast/dom/iframe-document.html
  32519. * bindings/js/kjs_html.h: Removed IFrameDocument.
  32520. * bindings/js/kjs_html.cpp: (KJS::JSHTMLElement::iFrameGetter): Ditto.
  32521. 2007-04-19 Alp Toker <alp@atoker.com>
  32522. Reviewed by Mark.
  32523. * platform/gdk/FontGdk.cpp:
  32524. (WebCore::Font::drawGlyphs):
  32525. * platform/gdk/FontPlatformDataGdk.cpp:
  32526. (WebCore::FontPlatformData::FontPlatformData): Fix font support in Gdk port.
  32527. 2007-04-19 David Hyatt <hyatt@apple.com>
  32528. Fix for bug 13208, implement word-break. This patch produces a partial
  32529. implementation of word-break. word-break: break-all is implemented. In
  32530. addition, a custom value, word-break: break-word is added that is a hybrid
  32531. of word-wrap: break-word and word-break: break-all (and more useful than
  32532. either).
  32533. Reviewed by beth
  32534. Added fast/text/word-break.html
  32535. * css/CSSComputedStyleDeclaration.cpp:
  32536. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  32537. * css/CSSPropertyNames.in:
  32538. * css/CSSValueKeywords.in:
  32539. * css/cssparser.cpp:
  32540. (WebCore::CSSParser::parseValue):
  32541. * css/cssstyleselector.cpp:
  32542. (WebCore::CSSStyleSelector::applyProperty):
  32543. * rendering/RenderStyle.cpp:
  32544. (WebCore::StyleRareInheritedData::StyleRareInheritedData):
  32545. (WebCore::StyleRareInheritedData::operator==):
  32546. (WebCore::RenderStyle::diff):
  32547. * rendering/RenderStyle.h:
  32548. (WebCore::):
  32549. (WebCore::RenderStyle::breakWords):
  32550. (WebCore::RenderStyle::wordBreak):
  32551. (WebCore::RenderStyle::setWordBreak):
  32552. (WebCore::RenderStyle::initialWordBreak):
  32553. (WebCore::RenderStyle::initialWordWrap):
  32554. * rendering/RenderText.cpp:
  32555. (WebCore::RenderText::calcMinMaxWidthInternal):
  32556. * rendering/RenderTextControl.cpp:
  32557. (WebCore::RenderTextControl::createInnerTextStyle):
  32558. (WebCore::RenderTextControl::calcHeight):
  32559. * rendering/bidi.cpp:
  32560. (WebCore::RenderBlock::findNextLineBreak):
  32561. 2007-04-20 Mark Rowe <mrowe@apple.com>
  32562. Qt build fix for FreeBSD.
  32563. * WebCore.pro: FreeBSD needs HAVE_PTHREAD_NP_H defined.
  32564. 2007-04-19 Mitz Pettel <mitz@webkit.org>
  32565. Reviewed by Darin.
  32566. - fix http://bugs.webkit.org/show_bug.cgi?id=13403
  32567. REGRESSION (r18875-r18899): Can no longer type into search form field after searching and then clicking "back"
  32568. The problem was that the page was loaded from the page cache with a subtree
  32569. marked for layout and the layout timer stopped (having been stopped when the
  32570. page entered the page cache). FrameView::needsLayout() was returning false
  32571. which prevented the pending layout from completing.
  32572. * page/FrameView.cpp:
  32573. (WebCore::FrameView::clear): Removed the call to stop the layout timer, since
  32574. reset() does that already.
  32575. (WebCore::FrameView::needsLayout): Changed to return true if there's a subtree
  32576. pending relayout.
  32577. 2007-04-19 Justin Garcia <justin.garcia@apple.com>
  32578. Reviewed by harrison
  32579. <rdar://problem/5144139>
  32580. On delete, <BR> inserted into non-editable ToDo <TABLE> element
  32581. The fact that the br was being inserted at a bad position
  32582. (a non-editable position and one inside a table instead of
  32583. before it) was fixed in the previous checkin. This change
  32584. stops us from inserting a br at all, to fix the bug.
  32585. After a delete, we need a placeholder if the selection
  32586. started at the start of a paragraph and ended at the end
  32587. of a paragraph. But not if it starts just before a table
  32588. and ends inside that table. We need placeholders to hold
  32589. open emptied out table cells, but that is handled separately.
  32590. Also, moved lineBreakExistsAtPosition to htmlediting.cpp
  32591. so that it can be used in more places.
  32592. * editing/CompositeEditCommand.cpp:
  32593. (WebCore::CompositeEditCommand::removePlaceholderAt):
  32594. (WebCore::CompositeEditCommand::moveParagraphs):
  32595. * editing/DeleteSelectionCommand.cpp:
  32596. (WebCore::DeleteSelectionCommand::doApply):
  32597. * editing/InsertLineBreakCommand.cpp:
  32598. * editing/InsertParagraphSeparatorCommand.cpp:
  32599. (WebCore::InsertParagraphSeparatorCommand::doApply):
  32600. * editing/htmlediting.cpp:
  32601. (WebCore::lineBreakExistsAtPosition):
  32602. * editing/htmlediting.h:
  32603. 2007-04-19 Justin Garcia <justin.garcia@apple.com>
  32604. Reviewed by harrison
  32605. Fixes some issues found while investigating:
  32606. <rdar://problem/5144139> On delete, <BR> inserted into non-editable ToDo <TABLE> element
  32607. Move the code to handle inserting content before/after
  32608. tables for [table, 0/max] to insertNodeAt, so that
  32609. all insertions get it, not just some.
  32610. Changed insertNodeAt to take in a position instead of a
  32611. node and an offset.
  32612. * editing/CompositeEditCommand.cpp:
  32613. (WebCore::CompositeEditCommand::insertNodeAt):
  32614. (WebCore::CompositeEditCommand::insertNodeAtTabSpanPosition):
  32615. (WebCore::CompositeEditCommand::insertBlockPlaceholder):
  32616. (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
  32617. If paragrahStart.node() is an atomic node, insertNodeAt can handle
  32618. insertion, we don't need to special case it.
  32619. (WebCore::CompositeEditCommand::moveParagraphs):
  32620. (WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary):
  32621. * editing/CompositeEditCommand.h:
  32622. * editing/DeleteSelectionCommand.cpp:
  32623. (WebCore::DeleteSelectionCommand::mergeParagraphs):
  32624. (WebCore::DeleteSelectionCommand::doApply):
  32625. * editing/FormatBlockCommand.cpp:
  32626. (WebCore::FormatBlockCommand::doApply):
  32627. * editing/IndentOutdentCommand.cpp:
  32628. (WebCore::IndentOutdentCommand::indentRegion):
  32629. (WebCore::IndentOutdentCommand::outdentParagraph):
  32630. * editing/InsertLineBreakCommand.cpp:
  32631. (WebCore::InsertLineBreakCommand::doApply):
  32632. * editing/InsertListCommand.cpp:
  32633. (WebCore::InsertListCommand::doApply):
  32634. * editing/InsertParagraphSeparatorCommand.cpp:
  32635. (WebCore::InsertParagraphSeparatorCommand::doApply):
  32636. * editing/InsertTextCommand.cpp:
  32637. (WebCore::InsertTextCommand::prepareForTextInsertion): Removed some
  32638. dead code that handled insertion at non-editable positions.
  32639. (WebCore::InsertTextCommand::insertTab):
  32640. * editing/ReplaceSelectionCommand.cpp:
  32641. (WebCore::ReplaceSelectionCommand::doApply):
  32642. (WebCore::ReplaceSelectionCommand::insertNodeAtAndUpdateNodesInserted):
  32643. * editing/ReplaceSelectionCommand.h:
  32644. 2007-04-19 Mitz Pettel <mitz@webkit.org>
  32645. Reviewed by Darin.
  32646. - fix http://bugs.webkit.org/show_bug.cgi?id=13336
  32647. REGRESSION (r20646): editing/execCommand/hilitecolor.html crashes under guardMalloc
  32648. Avoid calling selectionRect() and selectionGapRects() on a renderer that needs
  32649. layout.
  32650. * rendering/RenderBlock.cpp:
  32651. (WebCore::RenderBlock::selectionGapRects):
  32652. * rendering/RenderBlock.h:
  32653. (WebCore::RenderBlock::BlockSelectionInfo::BlockSelectionInfo):
  32654. * rendering/RenderListMarker.cpp:
  32655. (WebCore::RenderListMarker::selectionRect):
  32656. * rendering/RenderObject.h:
  32657. (WebCore::RenderObject::SelectionInfo::SelectionInfo):
  32658. * rendering/RenderReplaced.cpp:
  32659. (WebCore::RenderReplaced::selectionRect):
  32660. * rendering/RenderText.cpp:
  32661. (WebCore::RenderText::selectionRect):
  32662. 2007-04-19 Justin Garcia <justin.garcia@apple.com>
  32663. Reviewed by darin
  32664. <rdar://problem/5142012>
  32665. GoogleDocs: Crash at WebCore::Range::startPosition() when creating a list from a link
  32666. List creation uses moveParagraphs to push content into list items.
  32667. Its fragment creation (using createMarkup) incorrectly uses regular
  32668. spaces instead of nbsps for spaces that were rendered (11475), which
  32669. causes spaces to be collapsed during the move operation. This results
  32670. in a call to rangeFromLocationAndLength with a location past the end
  32671. of the document. We use the result from rangeFromLocationAndLength
  32672. (null) and crash.
  32673. Also when moveParagraphs tries to push content into a list item surrounded
  32674. by an anchor, it fails because positionAvoidingSpecialElementBoundary avoids
  32675. the anchor, which also avoids the list item. This was fixed by pushing
  32676. down anchors before avoiding them.
  32677. * editing/CompositeEditCommand.cpp:
  32678. (WebCore::CompositeEditCommand::pushAnchorElementDown): Remove the
  32679. old anchor after we push down clones of it, this is what callers
  32680. expect.
  32681. (WebCore::CompositeEditCommand::pushPartiallySelectedAnchorElementsDown):
  32682. Call the new enclosingAnchorElement, that takes in a position instead
  32683. of a node.
  32684. (WebCore::CompositeEditCommand::moveParagraphs): If spaces collapsed
  32685. as a result of the move, rangeFromLocationAndLength can return null,
  32686. bail and don't try to preserve the selection in that case.
  32687. (WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary):
  32688. Moved from htmlediting.cpp.
  32689. Make sure anchors are pushed down before avoiding them so that we don't
  32690. also avoid structural elements like lists and blocks.
  32691. * editing/CompositeEditCommand.h:
  32692. * editing/TypingCommand.cpp: Moved isFirst/LastPositionBefore/AfterTable
  32693. to htmlediting.cpp.
  32694. * editing/htmlediting.cpp:
  32695. Moved positionAvoidingSpecialElementBoundary so that it could call
  32696. pushAnchorElementDown.
  32697. (WebCore::isFirstPositionAfterTable): Moved here.
  32698. (WebCore::isLastPositionBeforeTable): Moved here.
  32699. (WebCore::enclosingAnchorElement): Moved here.
  32700. (WebCore::enclosingListChild): Removed an extraneous space.
  32701. * editing/htmlediting.h:
  32702. 2007-04-19 Beth Dakin <bdakin@apple.com>
  32703. Reviewed by Hyatt.
  32704. Fix for <rdar://problem/5120889> Sized table cells w/borders not
  32705. drawn to correct size
  32706. When table cells have children with %-height, the cells were
  32707. incorrectly shrinking down to be the size of the child. This
  32708. exposed another problem with replaced children and sizing.
  32709. * rendering/RenderBox.cpp:
  32710. (WebCore::RenderBox::calcReplacedHeightUsing): The exposed problem.
  32711. Subtract our borders and padding in the auto or percent table cell
  32712. containing block case.
  32713. * rendering/RenderTableSection.cpp:
  32714. (WebCore::RenderTableSection::layoutRows): When our children can
  32715. flex, do not always set the cellTopExtra and cellBottomExtra to 0!
  32716. That is bad! We should do the same as the non-flex case.
  32717. 2007-04-19 Anders Carlsson <andersca@apple.com>
  32718. Reviewed by Geoff.
  32719. http://bugs.webkit.org/show_bug.cgi?id=13333
  32720. Support naturalWidth/naturalHeight on image elements
  32721. * html/HTMLImageElement.cpp:
  32722. (WebCore::HTMLImageElement::naturalWidth):
  32723. (WebCore::HTMLImageElement::naturalHeight):
  32724. * html/HTMLImageElement.h:
  32725. * html/HTMLImageElement.idl:
  32726. 2007-04-19 Patti Hoa <patti@apple.com>
  32727. Reviewed by Darin.
  32728. - review suggestion for rdar://5145011 code change
  32729. * bridge/mac/WebCoreAXObject.mm:
  32730. (-[WebCoreAXObject value]):
  32731. return early if value attribute is not supported by the attachment view.
  32732. 2007-04-19 Patti Hoa <patti@apple.com>
  32733. Reviewed by Darin.
  32734. <rdar://problem/5145011> Allow attachment view of web object to handle accessibility actions
  32735. * bridge/mac/WebCoreAXObject.mm:
  32736. (-[WebCoreAXObject value]):
  32737. Only allow asking the attachmentView for value if attachmentView supports this value attribute
  32738. (-[WebCoreAXObject title]):
  32739. (-[WebCoreAXObject accessibilityAttributeNames]):
  32740. Should not return that long list of unrelated attributes for attachmentView.
  32741. (-[WebCoreAXObject accessibilityActionNames]):
  32742. (-[WebCoreAXObject accessibilityPerformAction:]):
  32743. Allow attachmentView a chance to handle actions.
  32744. (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
  32745. Should not return that long list of unrelated attributes for attachmentView.
  32746. 2007-04-19 Mitz Pettel <mitz@webkit.org>
  32747. Reviewed by Hyatt.
  32748. - fix http://bugs.webkit.org/show_bug.cgi?id=13291
  32749. REGRESSION (r19595): WebViewDidBeginEditingNotification not posted when focusing with the mouse
  32750. Covered by editing tests.
  32751. * dom/Document.cpp:
  32752. (WebCore::Document::setFocusedNode): Moved the call to Editor::didBeginEditing()
  32753. back into here.
  32754. * dom/Element.cpp:
  32755. (WebCore::Element::updateFocusAppearance): Removed the call to didBeginEditing().
  32756. * html/HTMLInputElement.cpp:
  32757. (WebCore::HTMLInputElement::updateFocusAppearance): Ditto.
  32758. 2007-04-19 Sam Weinig <sam@webkit.org>
  32759. Reviewed by Darin.
  32760. - Patch for http://bugs.webkit.org/show_bug.cgi?id=12249
  32761. FCKeditor: <hr>, <ul> and <ol> have id="undefined"
  32762. Convert undefined and null to a null string for third argument of
  32763. execCommand();
  32764. Test: editing/execCommand/arguments-combinations.html
  32765. * WebCore.xcodeproj/project.pbxproj:
  32766. * bindings/js/kjs_binding.cpp:
  32767. (KJS::valueToStringWithUndefinedOrNullCheck):
  32768. * bindings/js/kjs_binding.h:
  32769. * bindings/scripts/CodeGeneratorJS.pm:
  32770. * dom/Document.idl:
  32771. 2007-04-19 Alp Toker <alp@atoker.com>
  32772. Reviewed by hyatt.
  32773. * WebCoreSources.bkl: Remove obsolete source file from build.
  32774. 2007-04-18 Alp Toker <alp@atoker.com>
  32775. Gdk build fix. Reviewed by Sam Weinig.
  32776. Track changes to make GdkLauncher work again.
  32777. * WebCoreSources.bkl:
  32778. * platform/gdk/ChromeClientGdk.h:
  32779. * platform/gdk/TemporaryLinkStubs.cpp:
  32780. (ChromeClientGdk::createWindow):
  32781. (ChromeClientGdk::createModalDialog):
  32782. (Editor::markBadGrammar):
  32783. 2007-04-17 Brady Eidson <beidson@apple.com>
  32784. Reviewed by Tim
  32785. <rdar://problem/5008925>
  32786. Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate
  32787. * WebCore.xcodeproj/project.pbxproj: Added ResourceLoaderMac.mm
  32788. * loader/FrameLoaderClient.h: Add the willCacheResponse SPI for WebKit to implement
  32789. * loader/ResourceLoader.h:
  32790. * loader/mac/ResourceLoaderMac.mm: Added.
  32791. (WebCore::ResourceLoader::willCacheResponse): Return the new cachedResponse from the client
  32792. * platform/graphics/svg/SVGImageEmptyClients.h:
  32793. (WebCore::SVGEmptyFrameLoaderClient::willCacheResponse): Stub
  32794. * platform/network/ResourceHandleClient.h:
  32795. (WebCore::ResourceHandleClient::willCacheResponse): Return the new cachedResponse from the client
  32796. * platform/network/mac/ResourceHandleMac.mm:
  32797. (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]): Call to get the new
  32798. cachedURLResponse before calling for the cache policy
  32799. 2007-04-18 Darin Adler <darin@apple.com>
  32800. Reviewed by Hyatt.
  32801. - fix http://bugs.webkit.org/show_bug.cgi?id=13375
  32802. REGRESSION (r20901): failing fast/overflow/scrollRevealButton.html
  32803. * dom/Document.cpp: (WebCore::Document::updateLayout):
  32804. If we have a parent frame, update its layout too.
  32805. 2007-04-18 Alp Toker <alp@atoker.com>
  32806. Gdk build fix. Reviewed by Mark.
  32807. * loader/gdk/FrameLoaderClientGdk.cpp:
  32808. (WebCore::FrameLoaderClientGdk::loadedFromCachedPage):
  32809. (WebCore::FrameLoaderClientGdk::setDocumentViewFromCachedPage):
  32810. (WebCore::FrameLoaderClientGdk::saveDocumentViewToCachedPage):
  32811. * loader/gdk/FrameLoaderClientGdk.h:
  32812. * platform/gdk/TemporaryLinkStubs.cpp:
  32813. (CachedPage::close): Track PageCache to CachedPage refactoring.
  32814. 2007-04-17 Mitz Pettel <mitz@webkit.org>
  32815. Reviewed by Darin.
  32816. - fix http://bugs.webkit.org/show_bug.cgi?id=13369
  32817. REGRESSION (r13366): Invisible table cell background is painted
  32818. Test: fast/table/invisible-cell-background.html
  32819. * rendering/RenderTableCell.cpp:
  32820. (WebCore::RenderTableCell::paintBackgroundsBehindCell): Don't paint any
  32821. background if the cell is not visible. This behavior matches WinIE and Opera.
  32822. 2007-04-17 Justin Garcia <justin.garcia@apple.com>
  32823. Reviewed by harrison
  32824. <rdar://problem/5119244>
  32825. Crash when indenting a selected ToDo
  32826. indentRegion() was using the old (incorrect) editable root
  32827. getter, which returned null for a valid, editable position,
  32828. causing the crash.
  32829. * editing/IndentOutdentCommand.cpp:
  32830. (WebCore::IndentOutdentCommand::indentRegion):
  32831. The editable root for a position is editableRootForPosition(p),
  32832. not p.node()->rootEditableElement(), because of VisiblePositions
  32833. before/after tables, replaced elements and others.
  32834. 2007-04-17 Justin Garcia <justin.garcia@apple.com>
  32835. Reviewed by hyatt
  32836. <rdar://problem/5138441>
  32837. GoogleDocs: Indented text looks like text that's been Quoted
  32838. GoogleDocs uses FormatBlock, blockquotes and a style rule
  32839. for blockquotes to implement a "Quote Text" feature. Styles
  32840. intended only for those blockquotes were added to the
  32841. blockquotes that we use for indenting.
  32842. * css/html4.css: Removed the webkit-indent-blockquote class rule.
  32843. * editing/IndentOutdentCommand.cpp:
  32844. (WebCore::createIndentBlockquoteElement): Use custom margins
  32845. and turn off border and padding to override author rules for
  32846. blockquotes.
  32847. 2007-04-17 Justin Garcia <justin.garcia@apple.com>
  32848. Reviewed by darin
  32849. <rdar://problem/5136770>
  32850. Gmail Editor: Hang when turning a particular multi-line selection into a list
  32851. When InsertListCommand pushes content into list items,
  32852. it creates an empty list item and then calls moveParagraphs.
  32853. But moveParagraphs' selection preservation code fails when
  32854. it encounters empty list items (list items w/o placeholders).
  32855. This causes InsertListCommand to lose track of where it has
  32856. already been performed, which causes the hang.
  32857. * editing/InsertListCommand.cpp:
  32858. (WebCore::InsertListCommand::doApply): Use brs to hold open
  32859. empty list items.
  32860. 2007-04-17 Darin Adler <darin@apple.com>
  32861. Oops, rolled that last change out. I'll redo it again later after making
  32862. som additional refinments.
  32863. 2007-04-17 Darin Adler <darin@apple.com>
  32864. Reviewed by Brady.
  32865. - a few baby steps to try to make lockHistory and userGesture less confusing
  32866. * page/FrameLoadRequest.h:
  32867. (WebCore::FrameLoadRequest::FrameLoadRequest): Add initialization of m_isUserGesture
  32868. to true.
  32869. (WebCore::FrameLoadRequest::shouldLockHistory): Renamed from lockHistory to avoid having
  32870. a getter that sounds like a verb phrase.
  32871. (WebCore::FrameLoadRequest::setShouldLockHistory): Ditto.
  32872. (WebCore::FrameLoadRequest::isUserGesture): Added.
  32873. (WebCore::FrameLoadRequest::setIsUserGesture): Ditto.
  32874. * loader/FrameLoader.h: Remove userGesture parameter from load that takes
  32875. FrameLoadRequest. Remove default values for lockHistory and userGesture parameters,
  32876. since that just makes it more likely we'll forget to pass them in. Remove one of
  32877. the overloads of urlSelected, since it's only called one place.
  32878. * loader/FrameLoader.cpp:
  32879. (WebCore::FrameLoader::createWindow): Remove userGesture parameter, relying on
  32880. the true default in FrameLoadRequest.
  32881. (WebCore::FrameLoader::urlSelected): Call setShouldLockHistory and setIsUserGesture
  32882. on the FrameLoadRequest, and call load directly; also eliminate the other urlSelected
  32883. overload since this was the only place it was called.
  32884. (WebCore::FrameLoader::load): Remove userGesture parameter, relying on the true
  32885. default in FrameLoadRequest. In the other overload, clean up logic to eliminate the
  32886. argsReferrer variable and get rid of the userGesture parameter, using the value from
  32887. FrameLoadRequest.
  32888. (WebCore::FrameLoader::submitForm): Remove userGesture parameter, relying on the value
  32889. in the FrameLoadRequest. This actually changes behavior.
  32890. * bindings/js/kjs_html.cpp: (KJS::JSHTMLDocument::putValueProperty): Pass
  32891. false for userGesture explicitly instead of relying on default argument.
  32892. * page/ContextMenuController.cpp: (WebCore::ContextMenuController::contextMenuItemSelected):
  32893. Remove userGesture parameter, relying on the true default in FrameLoadRequest.
  32894. 2007-04-16 David Kilzer <ddkilzer@webkit.org>
  32895. Reviewed by NOBODY (fixed misspelling).
  32896. * manual-tests/containing-block-position-chage.html: Removed.
  32897. * manual-tests/containing-block-position-change.html: Added.
  32898. 2007-04-16 Justin Garcia <justin.garcia@apple.com>
  32899. Reviewed by darin
  32900. <rdar://problem/5134759>
  32901. GMail Editor: Hang after pasting underlined text multiple times
  32902. The moveParagraphs call that ReplaceSelectionCommand
  32903. performs must receive only inline content from createMarkup,
  32904. or else it will result in another call to moveParagraphs
  32905. when it performs the move, resulting in infinite recursion.
  32906. * editing/markup.cpp:
  32907. (WebCore::startMarkup): We were only converting a block to
  32908. an inline if it had an inline style declaration or styles
  32909. coming from matched rules. Cleaned up this code a bit by
  32910. handling an element's style separately from its other
  32911. attributes.
  32912. 2007-04-16 Darin Adler <darin@apple.com>
  32913. - get layout tests going again
  32914. * page/mac/FrameMac.mm: (WebCore::Frame::setUseSecureKeyboardEntry):
  32915. Replace assertion with a runtime check. We can consider changing it back to
  32916. an assertion some day, but it's not important.
  32917. 2007-04-16 Darin Adler <darin@apple.com>
  32918. Reviewed by John Sullivan.
  32919. - fix http://bugs.webkit.org/show_bug.cgi?id=13303
  32920. <rdar://problem/5126341> REGRESSION: controls in a background Safari window
  32921. maintain active appearance if the address bar has focus (13303)
  32922. - fix a related problem where elements could look focused in non-active windows
  32923. - simplify secure keyboard entry logic in Frame::setIsActive
  32924. * WebCore.exp: Add two new symbols for use by WebKit.
  32925. * html/HTMLInputElement.cpp:
  32926. (WebCore::HTMLInputElement::dispatchFocusEvent): Call setUseSecureKeyboardEntryWhenActive
  32927. rather than calling setSecureKeyboardEntry directly -- does nothing if the frame is not active.
  32928. (WebCore::HTMLInputElement::dispatchBlurEvent): Ditto.
  32929. * page/Frame.cpp:
  32930. (WebCore::Frame::setUseSecureKeyboardEntryWhenActive): Added. Calls
  32931. setUseSecureKeyboardEntry only if the frame is active, but also stores away the state,
  32932. so that the setIsActive function doesn't have to recompute it.
  32933. (WebCore::Frame::setIsActive): Rewrote all the comments in the function. Removed the code
  32934. to manage control tints, which are not based on the whether the frame is active but rather
  32935. on AppKit's concept of whether the window should have "key appearance". Simplified the
  32936. logic about when to call setUseSecureKeyboardEntry by using the value of
  32937. m_useSecureKeyboardEntryWhenActive.
  32938. (WebCore::FramePrivate::FramePrivate): Initialize m_useSecureKeyboardEntryWhenActive.
  32939. * page/Frame.h: Made setSecureKeyboardEntry private and renamed it to
  32940. setUseSecureKeyboardEntry, removed isSecureKeyboardEntry, and
  32941. added a public setUseSecureKeyboardEntryWhenActive.
  32942. * page/FramePrivate.h: Added m_useSecureKeyboardEntryWhenActive.
  32943. * page/mac/FrameMac.mm: (WebCore::Frame::setUseSecureKeyboardEntry): Added an assertion,
  32944. and removed isSecureKeyboardEntry().
  32945. * page/FrameView.h: Added updateControlTints.
  32946. * page/FrameView.cpp: (WebCore::FrameView::updateControlTints): Added. Code was moved
  32947. here from setIsActive for two reasons: (1) it makes more sense in the view class, and
  32948. (2) it needs to be called at the appropriate time for AppKit, not when active changes.
  32949. * rendering/RenderTheme.cpp: (WebCore::RenderTheme::isFocused): Added an isActive
  32950. check here to match the logic in the implementation of the CSS pseudo-state.
  32951. * rendering/RenderThemeMac.mm:
  32952. (WebCore::RenderThemeMac::updateFocusedState): Use the isFocused function instead of
  32953. repeating the logic here. Removed the "need to add a key window test here" comment.
  32954. (WebCore::RenderThemeMac::controlSupportsTints): Added a comment about the NSCell
  32955. SPI that's related to the _windowChangedKeyState method we now use in WebHTMLView.
  32956. 2007-04-16 Darin Adler <darin@apple.com>
  32957. Reviewed by John Sullivan.
  32958. - fix http://bugs.webkit.org/show_bug.cgi?id=13227
  32959. StringImpl::isLower incorrectly assumes islower returns 1 (it can return any non-0)
  32960. * platform/StringImpl.cpp:
  32961. (WebCore::StringImpl::isLower): Based on test application results, changed to use &&
  32962. instead of trying to use & to avoid branches. Use U16_NEXT so we can handle characters
  32963. outside the BMP. Improved comments.
  32964. (WebCore::StringImpl::lower): Improved comments.
  32965. (WebCore::equalIgnoringCase): Changed to use && instead of trying to use & to avoid
  32966. branches. Improved comments. Added an assertion about the assumption we're
  32967. making that characters in the char* are all ASCII.
  32968. 2007-04-13 David Kilzer <ddkilzer@webkit.org>
  32969. Patch and review by hyatt. Testing and landing by ddkilzer.
  32970. <rdar://problem/5078866>
  32971. tables don't inherit text-align (in strict mode; they're not supposed to in quirks mode)
  32972. Test: fast/css/table-text-align-quirk.html
  32973. fast/css/table-text-align-strict.html
  32974. Previous commit (r20731) removed the wrong property from WebCore/css/html4.css. However,
  32975. when the correct property was removed, it caused tables to inherit alignment properties
  32976. from tags like <center> and <div align="center">. This is fixed in
  32977. WebCore::CSSStyleSelector::adjustRenderStyle() by special-casing tables to reset the
  32978. text-align property.
  32979. * css/CSSComputedStyleDeclaration.cpp:
  32980. (WebCore::valueForTextAlign): Renamed KHTML_CENTER, KHTML_LEFT and KHTML_RIGHT to
  32981. WEBKIT_CENTER, WEBKIT_LEFT and WEBKIT_RIGHT.
  32982. * css/cssparser.cpp:
  32983. (WebCore::CSSParser::parseValue): Ditto.
  32984. * css/cssstyleselector.cpp:
  32985. (WebCore::CSSStyleSelector::adjustRenderStyle): Tables should not support -webkit-center,
  32986. -webkit-left or -webkit-right values for text-align, so reset them back to auto.
  32987. * css/html4.css: Removed "text-align: -webkit-auto;" property from tables selector. It
  32988. was previously added to css/quirks.css in r20731.
  32989. * rendering/RenderBlock.cpp:
  32990. (WebCore::RenderBlock::determineHorizontalPosition): Renamed KHTML_* to WEBKIT_*.
  32991. * rendering/RenderBox.cpp:
  32992. (WebCore::RenderBox::calcHorizontalMargins): Ditto.
  32993. * rendering/RenderFlow.cpp:
  32994. (WebCore::RenderFlow::caretRect): Ditto.
  32995. * rendering/RenderStyle.h: Ditto.
  32996. (WebCore::):
  32997. * rendering/bidi.cpp:
  32998. (WebCore::RenderBlock::computeHorizontalPositionsForLine): Ditto.
  32999. 2007-04-12 Brady Eidson <beidson@apple.com>
  33000. Reviewed by Black Sheep
  33001. <rdar://problem/4664154> and http://bugs.webkit.org/show_bug.cgi?id=3546
  33002. When you click on a link that opens in a new window from within gmail, they first create a new window
  33003. with an empty URL, then immediately document.write() into the window to schedule a redirect.
  33004. Since the initial page doesn't have a URL associated with it, a history item never gets created. The
  33005. reasonable solution? To actually create the history item after the redirect (in updateHistoryForInternalLoad)
  33006. * loader/FrameLoader.cpp:
  33007. (WebCore::FrameLoader::addHistoryForCurrentLocation): Updates global and B/F history with a new history item
  33008. (WebCore::FrameLoader::updateHistoryForStandardLoad): Call addHistoryForCurrentLocation
  33009. (WebCore::FrameLoader::updateHistoryForInternalLoad): Call addHistoryForCurrentLocation if there is not already
  33010. a current history item
  33011. * loader/FrameLoader.h:
  33012. 2007-04-12 Oliver Hunt <oliver@apple.com>
  33013. Reviewed by Adam.
  33014. This fixes <rdar://problem/5060766> -- Frameset with
  33015. an empty frame crashes due to null document. Debug
  33016. builds hit the frame->document() assertion in
  33017. EventHandler::prepareMouseEvent
  33018. This null check seems necessary now, having run through
  33019. all the logic on the path to this crash it appears that
  33020. we can't avoid this null check.
  33021. * page/EventHandler.cpp:
  33022. (WebCore::EventHandler::updateDragAndDrop):
  33023. 2007-04-12 Justin Garcia <justin.garcia@apple.com>
  33024. Reviewed by darin
  33025. <rdar://problem/5131716>
  33026. Clicking just before a ToDo doesn't put the caret before the ToDo
  33027. * rendering/RenderBlock.cpp:
  33028. (WebCore::RenderBlock::positionForCoordinates):
  33029. Consider clicks inside the blocks padding, instead of
  33030. incorrectly sending them to the position before the block.
  33031. 2007-04-12 John Sullivan <sullivan@apple.com>
  33032. Reviewed by Anders
  33033. - WebCore part of fix for:
  33034. <rdar://problem/5128697> REGRESSION: At least one PDF context menu item isn't appearing on Leopard
  33035. * platform/ContextMenuItem.h:
  33036. (WebCore::):
  33037. add two PDF-related context menu items to enum to keep it in sync with WebKit
  33038. * platform/ContextMenu.cpp:
  33039. (WebCore::ContextMenu::checkOrEnableIfNeeded):
  33040. add the new context menu items to the do-nothing case of a big switch statement
  33041. 2007-04-12 Simon Hausmann <hausmann@kde.org>
  33042. Reviewed by Zack.
  33043. Fixed drawing of justified text in the Qt port.
  33044. * platform/qt/FontQt.cpp:
  33045. (Font::drawGlyphs):
  33046. 2007-04-11 Oliver Hunt <oliver@apple.com>
  33047. Reviewed by Maciej.
  33048. Adding RetainPtr to the many global obj-c pointers we use in
  33049. C/C++ methods. This is necessary to prevent GC from collecting
  33050. globals we want to keep around.
  33051. We use RetainPtr in obj-c++ and c++ files, and CFRetain/Release in pure
  33052. obj-c.
  33053. Also made the Pasteboard::m_pasteboard a RetainPtr although it
  33054. shouldn't be necessary as the only NSPasteboard instances that
  33055. should ever be inserted are the system clipboard and dragging
  33056. pasteboard. Neither of which should ever be collected.
  33057. * page/mac/WebCoreFrameBridge.mm:
  33058. (_getPreSmartSet):
  33059. (_getPostSmartSet):
  33060. * platform/Pasteboard.h:
  33061. * platform/graphics/mac/ColorMac.mm:
  33062. (WebCore::nsColor):
  33063. * platform/graphics/mac/GraphicsContextMac.mm:
  33064. (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
  33065. * platform/mac/FontDataMac.mm:
  33066. (WebCore::webFallbackFontFamily):
  33067. * platform/mac/PasteboardMac.mm:
  33068. (WebCore::writableTypesForURL):
  33069. (WebCore::writableTypesForImage):
  33070. (WebCore::Pasteboard::clear):
  33071. (WebCore::Pasteboard::writeSelection):
  33072. (WebCore::Pasteboard::writeURL):
  33073. (WebCore::Pasteboard::writeFileWrapperAsRTFDAttachment):
  33074. (WebCore::Pasteboard::writeImage):
  33075. (WebCore::Pasteboard::canSmartReplace):
  33076. (WebCore::Pasteboard::plainText):
  33077. (WebCore::Pasteboard::documentFragment):
  33078. 2007-04-11 Mitz Pettel <mitz@webkit.org>
  33079. Reviewed by Dave Hyatt.
  33080. - fix http://bugs.webkit.org/show_bug.cgi?id=11362
  33081. Native popup with size="1" wraps options
  33082. Test: fast/forms/menulist-option-wrap.html
  33083. * css/html4.css: Added white-space declaration for select[size="0"] and
  33084. select[size="1"]. Added border-radius declaration for select.
  33085. 2007-04-11 Darin Fisher <darin@chromium.org>
  33086. Reviewed by Maciej.
  33087. Add a Frame pointer to ChromeClient methods:
  33088. http://bugs.webkit.org/show_bug.cgi?id=13127
  33089. * loader/FrameLoader.cpp:
  33090. (WebCore::FrameLoader::createWindow):
  33091. * page/Chrome.cpp:
  33092. (WebCore::Chrome::createWindow):
  33093. (WebCore::Chrome::createModalDialog):
  33094. * page/Chrome.h:
  33095. * page/ChromeClient.h:
  33096. * page/ContextMenuController.cpp:
  33097. (WebCore::openNewWindow):
  33098. * platform/graphics/svg/SVGImageEmptyClients.h:
  33099. (WebCore::SVGEmptyChromeClient::createWindow):
  33100. (WebCore::SVGEmptyChromeClient::createModalDialog):
  33101. 2007-04-11 Brady Eidson <beidson@apple.com>
  33102. Reviewed by Ada
  33103. <rdar://problem/5080987> - Crash in DocumentLoader::frameLoader() const
  33104. This was free nil checking lost during the ObjC -> C++ conversion
  33105. * loader/FrameLoader.cpp:
  33106. (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Null check the DocumentLoader
  33107. 2007-04-11 Justin Garcia <justin.garcia@apple.com>
  33108. Reviewed by harrison
  33109. <rdar://problem/5126166>
  33110. Deleting selection starting at before ToDo checkbox to end of line, inserts a BR in the subsequent ToDo
  33111. If a selection ends in a table cell, we shouldn't perform
  33112. a merge after deleting that selection. We have code in
  33113. place to prevent those merges, but it failed here.
  33114. It fails because the end of the selection was [tableCell, 0],
  33115. (normally not a valid VisiblePosition, but valid here
  33116. because the table cell is empty). We prevent the merge
  33117. if the node of the position at the end of the selection
  33118. has an enclosingTableCell. Even though [tableCell, 0] has
  33119. an enclosing table cell, the node tableCell doesn't, so
  33120. the check fails.
  33121. Fixed this by changing enclosingTableCell to take in
  33122. a position, instead of a node. The other enclosing element
  33123. getters should be changed in this way as well.
  33124. * editing/DeleteSelectionCommand.cpp:
  33125. (WebCore::DeleteSelectionCommand::initializePositionData):
  33126. Call the new enclosingTableCell.
  33127. * editing/ReplaceSelectionCommand.cpp:
  33128. (WebCore::ReplaceSelectionCommand::shouldMerge): Ditto.
  33129. * editing/htmlediting.cpp:
  33130. (WebCore::enclosingTableCell): Take in a position instead
  33131. of a node.
  33132. * editing/htmlediting.h:
  33133. 2007-04-12 Mark Rowe <mrowe@apple.com>
  33134. Qt build fix.
  33135. * WebCore.pro:
  33136. * editing/qt/EditorQt.cpp:
  33137. (WebCore::Editor::markBadGrammar):
  33138. * history/qt/CachedPageQt.cpp: Added.
  33139. (WebCore::CachedPage::close):
  33140. * history/qt/PageCacheQt.cpp: Removed.
  33141. 2007-04-11 Brady Eidson <beidson@apple.com>
  33142. Reviewed by Antti
  33143. <rdar://problem/5125648> and http://bugs.webkit.org/show_bug.cgi?id=13326
  33144. Crash opening a link in a new window from Gmail
  33145. Problem here is that the currentHistoryItem in the new window is null. This *shouldn't* be the case,
  33146. and is the cause of a very long standing bug -
  33147. http://bugs.webkit.org/show_bug.cgi?id=3546 - Can't go back to first page in new window opened from gmail
  33148. For now, adding a null check prevents this crash and restores the original, long standing regression
  33149. * loader/FrameLoader.cpp:
  33150. (WebCore::FrameLoader::updateHistoryForInternalLoad): NULL check
  33151. 2007-04-11 Adam Roben <aroben@apple.com>
  33152. Reviewed by Anders.
  33153. Made image document copying more cross-platform.
  33154. All layout tests pass.
  33155. * editing/Editor.cpp:
  33156. (WebCore::imageNodeFromImageDocument): Added.
  33157. (WebCore::Editor::canCopy): Called imageNodeFromImageDocument.
  33158. (WebCore::Editor::copy): Ditto.
  33159. (WebCore::Editor::copyImage): Updated for changes to Pasteboard.
  33160. * platform/Pasteboard.h: Made writeImage more general, which allowed
  33161. getting rid of its second incarnation.
  33162. * platform/gdk/TemporaryLinkStubs.cpp:
  33163. * platform/mac/PasteboardMac.mm:
  33164. (WebCore::Pasteboard::writeImage): Collapsed logic from the two
  33165. writeImage methods into one.
  33166. (Pasteboard::writeImage): Updated for Pasteboard changes.
  33167. * platform/qt/PasteboardQt.cpp:
  33168. (WebCore::Pasteboard::writeImage): Ditto.
  33169. 2007-04-11 Darin Adler <darin@apple.com>
  33170. * css/CSSValueKeywords.in: Fix a comment.
  33171. 2007-04-09 Justin Garcia <justin.garcia@apple.com>
  33172. Reviewed by harrison
  33173. <rdar://problem/4932260>
  33174. Invalid attributed string for attachment range obtained via AXPreviousWordStartTextMarkerForTextMarker
  33175. By default, text iterators don't emit anything for replaced
  33176. elements. Boundary finding code works around this but has
  33177. bugs: replaced elements act as sentence boundaries and the
  33178. above bug, where previousBoundary moves past the start of a
  33179. word if there is a replaced element just before it. This
  33180. patch fixes these issues by treating replaced elements as
  33181. punctuation for boundary finding.
  33182. * editing/TextIterator.cpp:
  33183. (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
  33184. Set m_pastStartNode, the node after (in a reverse pre-order traversal) the
  33185. last one that should be processed.
  33186. (WebCore::SimplifiedBackwardsTextIterator::advance):
  33187. Stop at m_pastStartNode.
  33188. Iterate over nodes in reverse pre-order (TextIterator traverses in
  33189. pre-orer). This makes knowing when to emit characters after nodes vs. when
  33190. to emit characters before nodes easier.
  33191. Remove the special case for entering a new block, emitting characters
  33192. after nodes can now be handled generally, in handleNonTextNode(), because
  33193. of the way we traverse.
  33194. Set m_handledChildren to false every iteration since we now do traverse in
  33195. reverse pre-order.
  33196. (WebCore::SimplifiedBackwardsTextIterator::handleReplacedElement):
  33197. Emit a comma for replaced elements. We only use this kind of iterator
  33198. for finding boundaries, so we can do this unconditionally.
  33199. (WebCore::SimplifiedBackwardsTextIterator::handleNonTextNode):
  33200. Don't use emitNewline, instead specify where the newline should be positioned.
  33201. A node is handled before its children, so characters emitted here should
  33202. be positioned after the node, not before it.
  33203. (WebCore::SimplifiedBackwardsTextIterator::exitNode):
  33204. Don't use emitNewline, instead specify where the newline should be positioned.
  33205. (WebCore::CharacterIterator::CharacterIterator):
  33206. Create a TextIterator that emits content for replaced elements, if requested.
  33207. * editing/TextIterator.h:
  33208. * editing/visible_units.cpp:
  33209. (WebCore::previousBoundary):
  33210. Removed replaced element handling code.
  33211. If the start of the chunk that contained the boundary was in a non-text
  33212. node, then the boundary is not necessarily in that node. Particularly
  33213. because it is only the end of the chunk that is guaranteed to be a valid
  33214. position in those cases. We must iterate backwards by character from
  33215. the end of the chunk to find the boundary.
  33216. (WebCore::nextBoundary): Removed replaced element handling code.
  33217. 2007-04-10 Brady Eidson <beidson@apple.com>
  33218. Reviewed by Darin
  33219. <rdar://problem/4887095> - PageCache and PageState should be combined
  33220. These two objects are a relic of when the PageCache was split between WebCore and WebKit
  33221. It just makes good sense to combine them now, and the new object is more appropriately
  33222. called "CachedPage"
  33223. This patch is vast in scope, but simple in depth - anywhere a PageCache or PageState object
  33224. was used has been adjusted to use a CachedPage object instead. The most notable change is
  33225. that HistoryItem - which always used to have a PageCache object which may or may not have
  33226. had a PageState - now may or may not have a CachedPage. This actually simplifies the
  33227. HistoryItem code a bit while making the role of CachedPage much more clear.
  33228. * WebCore.exp:
  33229. * WebCore.xcodeproj/project.pbxproj:
  33230. * history/BackForwardList.cpp:
  33231. (WebCore::BackForwardList::addItem):
  33232. (WebCore::BackForwardList::setCapacity):
  33233. (WebCore::BackForwardList::setPageCacheSize):
  33234. (WebCore::BackForwardList::clearPageCache):
  33235. (WebCore::BackForwardList::close):
  33236. * history/PageCache.cpp: Removed.
  33237. * history/PageCache.h: Removed.
  33238. * page/PageState.cpp: Removed.
  33239. * page/PageState.h: Removed.
  33240. * history/CachedPage.cpp: Added.
  33241. (WebCore::CachedPage::create):
  33242. (WebCore::CachedPage::CachedPage):
  33243. (WebCore::CachedPage::~CachedPage):
  33244. (WebCore::CachedPage::restore):
  33245. (WebCore::CachedPage::clear):
  33246. (WebCore::CachedPage::setDocumentLoader):
  33247. (WebCore::CachedPage::documentLoader):
  33248. (WebCore::CachedPage::setTimeStamp):
  33249. (WebCore::CachedPage::setTimeStampToNow):
  33250. (WebCore::CachedPage::timeStamp):
  33251. * history/CachedPage.h: Added.
  33252. (WebCore::CachedPage::document):
  33253. (WebCore::CachedPage::mousePressNode):
  33254. (WebCore::CachedPage::URL):
  33255. * history/HistoryItem.cpp:
  33256. (WebCore::HistoryItem::HistoryItem):
  33257. (WebCore::HistoryItem::setCachedPage):
  33258. (WebCore::HistoryItem::setURL):
  33259. (WebCore::HistoryItem::alwaysAttemptToUseCachedPage):
  33260. (WebCore::HistoryItem::setAlwaysAttemptToUseCachedPage):
  33261. (WebCore::HistoryItem::cachedPage):
  33262. (WebCore::cachedPagesPendingRelease):
  33263. (WebCore::HistoryItem::releaseCachedPagesOrReschedule):
  33264. (WebCore::HistoryItem::releaseAllPendingCachedPages):
  33265. (WebCore::HistoryItem::scheduleCachedPageForRelease):
  33266. * history/HistoryItem.h:
  33267. * history/mac/HistoryItemMac.mm:
  33268. * history/HistoryItemTimer.cpp:
  33269. (WebCore::HistoryItemTimer::HistoryItemTimer):
  33270. (WebCore::HistoryItemTimer::callReleaseCachedPagesOrReschedule):
  33271. * history/HistoryItemTimer.h:
  33272. * history/mac/PageCacheMac.mm: Removed.
  33273. * history/mac/CachedPageMac.mm: Added.
  33274. (WebCore::CachedPage::close):
  33275. (WebCore::CachedPage::setDocumentView):
  33276. (WebCore::CachedPage::documentView):
  33277. * loader/DocumentLoader.cpp:
  33278. (WebCore::DocumentLoader::DocumentLoader):
  33279. (WebCore::DocumentLoader::loadFromCachedPage):
  33280. (WebCore::DocumentLoader::setLoadingFromCachedPage):
  33281. (WebCore::DocumentLoader::isLoadingFromCachedPage):
  33282. * loader/DocumentLoader.h:
  33283. * loader/FrameLoader.cpp:
  33284. (WebCore::FrameLoader::provisionalLoadStarted):
  33285. (WebCore::FrameLoader::commitProvisionalLoad):
  33286. (WebCore::FrameLoader::transitionToCommitted):
  33287. (WebCore::FrameLoader::open):
  33288. (WebCore::FrameLoader::startLoading):
  33289. (WebCore::FrameLoader::receivedMainResourceError):
  33290. (WebCore::FrameLoader::opened):
  33291. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  33292. (WebCore::FrameLoader::loadProvisionalItemFromCachedPage):
  33293. (WebCore::FrameLoader::cachePageToHistoryItem):
  33294. (WebCore::FrameLoader::createHistoryItem):
  33295. (WebCore::FrameLoader::purgePageCache):
  33296. (WebCore::FrameLoader::invalidateCurrentItemCachedPage):
  33297. (WebCore::FrameLoader::loadItem):
  33298. (WebCore::FrameLoader::updateHistoryForStandardLoad):
  33299. (WebCore::FrameLoader::updateHistoryForClientRedirect):
  33300. (WebCore::FrameLoader::updateHistoryForBackForwardNavigation):
  33301. (WebCore::FrameLoader::updateHistoryForReload):
  33302. (WebCore::FrameLoader::updateHistoryForInternalLoad):
  33303. (WebCore::FrameLoader::updateHistoryForCommit):
  33304. * loader/FrameLoader.h:
  33305. * loader/FrameLoaderClient.h:
  33306. * page/mac/WebCoreFrameBridge.h: Got rid of unused WebCorePageCacheStateKey
  33307. * page/mac/WebCoreFrameBridge.mm: Ditto
  33308. * platform/graphics/svg/SVGImage.cpp:
  33309. * platform/graphics/svg/SVGImageEmptyClients.h: Update to reflect the new names
  33310. (WebCore::SVGEmptyFrameLoaderClient::loadProvisionalItemFromCachedPage):
  33311. (WebCore::SVGEmptyFrameLoaderClient::invalidateCurrentItemCachedPage):
  33312. (WebCore::SVGEmptyFrameLoaderClient::loadedFromCachedPage):
  33313. (WebCore::SVGEmptyFrameLoaderClient::clearLoadingFromCachedPage):
  33314. (WebCore::SVGEmptyFrameLoaderClient::isLoadingFromCachedPage):
  33315. (WebCore::SVGEmptyFrameLoaderClient::setDocumentViewFromCachedPage):
  33316. (WebCore::SVGEmptyFrameLoaderClient::saveDocumentViewToCachedPage):
  33317. 2007-04-10 Antti Koivisto <antti@apple.com>
  33318. Reviewed by Hyatt.
  33319. Fix <rdar://5057686>
  33320. Flex box layout example hangs in WebCore::RenderFlexibleBox::allowedChildFlex
  33321. Forcibly distribute remaining pixels if the algorithm is not advancing.
  33322. * rendering/RenderFlexibleBox.cpp:
  33323. (WebCore::RenderFlexibleBox::layoutHorizontalBox):
  33324. (WebCore::RenderFlexibleBox::layoutVerticalBox):
  33325. 2007-04-11 Mark Rowe <mrowe@apple.com>
  33326. Build fix.
  33327. * bridge/mac/WebCoreAXObject.mm:
  33328. (-[WebCoreAXObject accessibilityDescription]):
  33329. 2007-04-10 Patti Hoa <patti@apple.com>
  33330. Reviewed by Justin Garcia.
  33331. <rdar://problem/5122276> Allow focused frame to fire off notification
  33332. Improve accessibility support for Mail WebView embedded Notes.
  33333. * bridge/mac/AXObjectCacheMac.mm:
  33334. (WebCore::AXObjectCache::postNotification):
  33335. The focused document with the selection change should fire the selection changed notification, not the top level document
  33336. * bridge/mac/WebCoreAXObject.mm:
  33337. (-[WebCoreAXObject accessibilityDescription]):
  33338. Allow the name attribute of the html body to be used as the accessibility description
  33339. 2007-04-09 Geoffrey Garen <ggaren@apple.com>
  33340. Reviewed by Maciej Stachowiak.
  33341. Support for fixing fast/forms/textarea-paste-newline.html.
  33342. Changed clients to use new preference specifying whether a Page should
  33343. allow pasting through the DOM API, instead of a global flag.
  33344. Removed old behavior of always allowing DOM paste in debug builds. In
  33345. light of the new preference-based API, that behavior makes no sense anymore.
  33346. Instead, developers who want to test paste inside Safari can set the
  33347. preference for themselves.
  33348. * WebCore.exp:
  33349. * editing/CommandByName.cpp: Removed crazy hack to keep an identically
  33350. named but invalid copy of the global "pate allowed" flag in this file.
  33351. (WebCore::Frame::enabledPaste):
  33352. * editing/JSEditor.cpp: Removed "always allow" behavior for debug builds.
  33353. (WebCore::JSEditor::queryCommandSupported):
  33354. * editing/JSEditor.h:
  33355. * page/Settings.cpp:
  33356. (WebCore::Settings::setDOMPasteAllowed):
  33357. * page/Settings.h:
  33358. (WebCore::Settings::isDOMPasteAllowed):
  33359. * rendering/RenderTreeAsText.cpp:
  33360. (WebCore::externalRepresentation): Removed crazy hack to allow DOM paste
  33361. after this function has been called.
  33362. 2007-04-10 John Sullivan <sullivan@apple.com>
  33363. Reviewed by Tim Hatcher
  33364. - fixed <rdar://problem/4859132> Grammar must always be checked in entire-sentence chunks,
  33365. and shouldn't show markers for current sentence
  33366. * editing/Editor.h:
  33367. add markBadGrammar, now distinct from markMisspellings
  33368. * editing/mac/EditorMac.mm:
  33369. (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  33370. call markMisspellings on one word, and markBadGrammar on entire sentence
  33371. (WebCore::markMisspellingsOrBadGrammar):
  33372. new static function, extracted from markMisspellings
  33373. (WebCore::Editor::markMisspellings):
  33374. now calls extracted function
  33375. (WebCore::Editor::markBadGrammar):
  33376. new method, calls extracted function
  33377. * page/Frame.cpp:
  33378. (WebCore::Frame::respondToChangedSelection):
  33379. update grammar markers for entire new and old sentences
  33380. 2007-04-09 Anders Carlsson <andersca@apple.com>
  33381. Reviewed by John.
  33382. * WebCore.exp:
  33383. Add __ZNK7WebCore11FrameLoader10isCompleteEv.
  33384. 2007-04-09 Brady Eidson <beidson@apple.com>
  33385. Reviewed by Darin
  33386. Fixes <rdar://4921797> and http://bugs.webkit.org/show_bug.cgi?id=12005
  33387. The original regression was to claim that more loads were the result of a "user gesture" than really
  33388. were. A lot of the ways a frame load could be kicked off didn't properly set up this flag, and it
  33389. wasn't properly propagated and respected where it should've been.
  33390. This patch cleans much of that up. One loose end is the "treatAsUserGesture" flag which is a stop
  33391. gap measure to keep "slow redirects" working to create a new history item. In the future, we need
  33392. to cleanup the meaning and use of "userGesture" and "lockHistory." This includes integrating them
  33393. in to FrameLoadRequest and being very clear of what their meaning actually is at different stages of
  33394. the Frame load process.
  33395. * dom/Document.cpp:
  33396. (WebCore::Document::processHttpEquiv): Pass only the delay for the redirect
  33397. * html/HTMLAnchorElement.cpp:
  33398. (WebCore::HTMLAnchorElement::defaultEventHandler): Pass "lockHistory" false, "userGesture" true
  33399. * ksvg2/svg/SVGAElement.cpp:
  33400. (WebCore::SVGAElement::defaultEventHandler): Pass "lockHistory" false, "userGesture" true
  33401. * loader/FrameLoader.cpp:
  33402. (WebCore::ScheduledRedirection::ScheduledRedirection): Figure "lockHistory" and "userGesture" from the
  33403. delay here, instead of at 3 other different sites that call this method
  33404. (WebCore::FrameLoader::changeLocation): Set userGesture correctly
  33405. (WebCore::FrameLoader::urlSelected): Propagate userGesture down
  33406. (WebCore::FrameLoader::requestFrame):
  33407. (WebCore::FrameLoader::receivedFirstData):
  33408. (WebCore::FrameLoader::scheduleRedirection): Pass only the delay here
  33409. (WebCore::FrameLoader::redirectionTimerFired): Set userGesture correctly
  33410. (WebCore::FrameLoader::load):
  33411. (WebCore::FrameLoader::updateHistoryForInternalLoad): Insteading of asserting we aren't a redirect,
  33412. handle the case where we *are* a redirect by updating the previous history item
  33413. * loader/FrameLoader.h:
  33414. 2007-04-09 Anders Carlsson <andersca@apple.com>
  33415. Reviewed by Darin.
  33416. <rdar://problem/5120801>
  33417. http://bugs.webkit.org/show_bug.cgi?id=13247
  33418. Closing a page during slow cloning causes crash in setJSStatusBarText (13247)
  33419. * bindings/js/kjs_window.cpp:
  33420. (KJS::Window::put):
  33421. Return early if m_frame is null. A closed window only has one property, "closed"
  33422. so no properties should be settable in that case.
  33423. 2007-04-09 Andrew Wellington <proton@wiretapped.net>
  33424. Reviewed by Justin Garcia.
  33425. Fix for http://bugs.webkit.org/show_bug.cgi?id=12959
  33426. "REGRESSION: Edit -> Copy not enabled on standalone images"
  33427. * dom/Document.h: Add support for determining if a document is an image
  33428. (WebCore::Document::isImageDocument):
  33429. * editing/Editor.cpp:
  33430. (WebCore::Editor::canCopy): Image documents are copyable
  33431. (WebCore::Editor::copy): If copying an image document, call appropriate pasteboard methods
  33432. * loader/ImageDocument.h:
  33433. (WebCore::ImageDocument::isImageDocument): Override to return true for image documents
  33434. * platform/Pasteboard.h: Add new writeImage function to pasteboard
  33435. * platform/mac/PasteboardMac.mm:
  33436. (WebCore::Pasteboard::writeImage): Add writeImage implementation that takes Node and URL
  33437. * platform/qt/PasteboardQt.cpp:
  33438. (WebCore::Pasteboard::writeImage): Stub for Qt implementation of pasteboard
  33439. 2007-04-08 Oliver Hunt <oliver@apple.com>
  33440. rs=Adam.
  33441. Add ASSERT(selectedRange) to previous change
  33442. * platform/mac/PasteboardMac.mm:
  33443. (WebCore::Pasteboard::writeSelection):
  33444. 2007-04-08 Oliver Hunt <oliver@apple.com>
  33445. rs=Adam.
  33446. Fix minor error when writing selection to pasteboard.
  33447. This shouldn't have an effect as selectedRange should be the
  33448. selected range from source frame, however this is safer.
  33449. * platform/mac/PasteboardMac.mm:
  33450. (WebCore::Pasteboard::writeSelection):
  33451. 2007-04-08 David Hyatt <hyatt@apple.com>
  33452. Fix mouseover/out failing layout tests.
  33453. Reviewed by aroben
  33454. * page/EventHandler.cpp:
  33455. (WebCore::EventHandler::handleMouseMoveEvent):
  33456. (WebCore::EventHandler::updateMouseEventTargetNode):
  33457. (WebCore::EventHandler::dispatchMouseEvent):
  33458. * page/EventHandler.h:
  33459. 2007-04-08 Oliver Hunt <oliver@apple.com>
  33460. Reviewed by Adam.
  33461. Fix for <rdar://problem/5113621> REGRESSION: Dragging PDF as image does not give any feedback
  33462. If we fail when attempting to create a drag image for a dragged
  33463. image, we fall back to the appropriate icon.
  33464. * page/DragController.cpp:
  33465. (WebCore::DragController::doImageDrag):
  33466. 2007-04-08 Adam Roben <aroben@apple.com>
  33467. Reviewed by Oliver.
  33468. Bestowed the gift of -webkit-dashboard-region upon all platforms, since
  33469. there's nothing Mac-specific about it other than the name. This also
  33470. allowed me to get rid of FrameViewMac.mm.
  33471. Removed a lot of #if PLATFORM(MAC):
  33472. * css/CSSComputedStyleDeclaration.cpp:
  33473. (WebCore::):
  33474. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  33475. * css/CSSPrimitiveValue.cpp:
  33476. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  33477. (WebCore::CSSPrimitiveValue::cleanup):
  33478. (WebCore::CSSPrimitiveValue::cssText):
  33479. * css/CSSPrimitiveValue.h:
  33480. (WebCore::CSSPrimitiveValue::getDashboardRegionValue):
  33481. (WebCore::CSSPrimitiveValue::):
  33482. * css/cssparser.cpp:
  33483. (WebCore::CSSParser::parseValue):
  33484. (WebCore::CSSParser::parseDashboardRegions):
  33485. * css/cssparser.h:
  33486. * css/cssstyleselector.cpp:
  33487. (WebCore::CSSStyleSelector::applyProperty):
  33488. * dom/Document.cpp:
  33489. (WebCore::Document::Document):
  33490. * dom/Document.h:
  33491. * page/Frame.cpp:
  33492. (WebCore::Frame::paint):
  33493. * page/Frame.h:
  33494. * page/FrameView.cpp:
  33495. (WebCore::FrameView::layout):
  33496. (WebCore::FrameView::updateDashboardRegions): Moved from FrameViewMac.mm.
  33497. * page/FrameView.h:
  33498. * page/qt/FrameQt.cpp:
  33499. (WebCore::Frame::dashboardRegionsChanged): Stubbed out.
  33500. * platform/gdk/FrameGdk.cpp:
  33501. (WebCore::Frame::dashboardRegionsChanged): Ditto.
  33502. * rendering/RenderLayer.cpp:
  33503. (WebCore::RenderLayer::scrollToOffset):
  33504. (WebCore::RenderLayer::setHasHorizontalScrollbar):
  33505. (WebCore::RenderLayer::setHasVerticalScrollbar):
  33506. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  33507. * rendering/RenderObject.cpp:
  33508. (WebCore::RenderObject::setStyle):
  33509. * WebCore.xcodeproj/project.pbxproj: Removed FrameViewMac.mm.
  33510. * bridge/mac/FrameViewMac.mm: Removed.
  33511. 2007-04-08 Mark Rowe <mrowe@apple.com>
  33512. Qt build fix.
  33513. * platform/qt/TemporaryLinkStubs.cpp:
  33514. 2007-04-06 Geoffrey Garen <ggaren@apple.com>
  33515. Reviewed by Beth Dakin.
  33516. Fixed one more case of <rdar://problem/5112273> REGRESSION(TOT):
  33517. Reproducible crash loading an old version of amazon.com as a web archive
  33518. * bindings/js/JSXMLHttpRequest.cpp:
  33519. (KJS::JSXMLHttpRequestPrototypeFunction::callAsFunction):
  33520. 2007-04-06 Oliver Hunt <oliver@apple.com>
  33521. Reviewed by Adam.
  33522. Fix MouseEvent so it's possible to distinguish between
  33523. a MouseMouseEvent with NoButton down, and a move with
  33524. LeftButton down. It would be nice if the DOM allowed
  33525. for NoButton to exist, but it doesn't so this is necessary.
  33526. * dom/EventTargetNode.cpp:
  33527. (WebCore::EventTargetNode::dispatchMouseEvent):
  33528. * dom/MouseEvent.cpp:
  33529. (WebCore::MouseEvent::MouseEvent):
  33530. (WebCore::MouseEvent::initMouseEvent):
  33531. * dom/MouseEvent.h:
  33532. (WebCore::MouseEvent::noButton):
  33533. 2007-04-06 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  33534. Not reviewed - gdk build fix.
  33535. * platform/gdk/MouseEventGdk.cpp:
  33536. 2007-04-06 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  33537. Reviewed by darin.
  33538. Coverity fix. Coverity says:
  33539. "Event var_deref_op: Variable "info_ptr" tracked as NULL was dereferenced."
  33540. * platform/image-decoders/png/pngrutil.c:
  33541. (png_handle_gAMA):
  33542. 2007-04-06 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  33543. Reviewed by darin.
  33544. Coverity fix. Coverity says:
  33545. "Event var_deref_model: Variable "(this)->clientptr" tracked as NULL was passed to a function that dereferences it."
  33546. * platform/image-decoders/gif/GIFImageReader.cpp:
  33547. (GIFImageReader::read):
  33548. 2007-04-06 David Hyatt <hyatt@apple.com>
  33549. Fix more of the layout test failures caused by fixing the slider layout test failure (sigh). clear()
  33550. needs to null out the capturingMouseEventsNode in the case where a mousedown or move while captured
  33551. causes a navigation to another page.
  33552. * page/EventHandler.cpp:
  33553. (WebCore::EventHandler::clear):
  33554. (WebCore::EventHandler::handleMouseReleaseEvent):
  33555. 2007-04-06 David Hyatt <hyatt@apple.com>
  33556. Fix failing slider layout test. Don't clear the subframe capture unless we really were capturing on a
  33557. subframe.
  33558. Reviewed by adele, darin
  33559. * page/EventHandler.cpp:
  33560. (WebCore::EventHandler::handleMouseReleaseEvent):
  33561. 2007-04-06 Beth Dakin <bdakin@apple.com>
  33562. Reviewed by Geoff and Darin.
  33563. Fix for <rdar://problem/4875433> WebView underlines are too thick
  33564. when scaled small
  33565. When we have a small scale factor, we should follow the line-
  33566. drawing code as if we were printing. Meaning, specifically, that we
  33567. should not round to device pixels and we should antialias.
  33568. * platform/graphics/cg/GraphicsContextCG.cpp:
  33569. (WebCore::GraphicsContext::drawLineForText):
  33570. 2007-04-06 Geoffrey Garen <ggaren@apple.com>
  33571. Reviewed by Beth Dakin.
  33572. Fixed <rdar://problem/5112273> REGRESSION(TOT): Reproducible crash loading
  33573. an old version of amazon.com as a web archive
  33574. The problem was JavaScript executing inside a frame with a NULL document.
  33575. It's probably a bug that the document was NULL, but we don't want a minor
  33576. bug to be a crasher, and we don't want the DOM to depend on the implementation
  33577. details of the JS bindings, so I added NULL checks.
  33578. * bindings/js/kjs_window.cpp: Call FrameLoader::completeURL instead of
  33579. Document::completeURL, since FrameLoader::completeURL is safe against a
  33580. NULL document.
  33581. (KJS::Window::put):
  33582. (KJS::WindowFunc::callAsFunction):
  33583. (KJS::Location::put):
  33584. (KJS::LocationFunc::callAsFunction):
  33585. 2007-04-06 David Hyatt <hyatt@apple.com>
  33586. Fix for bug 13274. Rework mouse events so that subframe capturing works again. Make sure
  33587. everything just comes down through the top FrameView even when capturing is in effect. Update
  33588. scrollbar handling logic so that scrollbars receive events correctly while capturing is in
  33589. effect. Eliminate the notion of widget capture. Fix mouse moves so that they only fire
  33590. on the innermost hit frame.
  33591. Reviewed by olliej
  33592. * page/EventHandler.cpp:
  33593. (WebCore::EventHandler::handleMouseDraggedEvent):
  33594. (WebCore::subframeForTargetNode):
  33595. (WebCore::EventHandler::handleMousePressEvent):
  33596. (WebCore::EventHandler::handleMouseMoveEvent):
  33597. (WebCore::EventHandler::handleMouseReleaseEvent):
  33598. * page/EventHandler.h:
  33599. * platform/PopupMenu.h:
  33600. (WebCore::PopupMenu::scrollbarCapturingMouse):
  33601. (WebCore::PopupMenu::setScrollbarCapturingMouse):
  33602. * platform/ScrollBar.h:
  33603. (WebCore::Scrollbar::handleMouseReleaseEvent):
  33604. * platform/Widget.h:
  33605. (WebCore::Widget::geometryChanged):
  33606. 2007-04-06 Justin Garcia <justin.garcia@apple.com>
  33607. Reviewed by john
  33608. <rdar://problem/5115601>
  33609. REGRESSION: Crash deleting a selection that starts in an editable table cell
  33610. The selection starts at the start of an editable
  33611. root that's embedded in a non-editable ToDo (table).
  33612. Removing the selection removes all editable
  33613. VisiblePositions from the root. Then, the creation
  33614. of mergeDestination fails, and using it causes a crash.
  33615. * editing/DeleteSelectionCommand.cpp:
  33616. (WebCore::DeleteSelectionCommand::mergeParagraphs):
  33617. Nil-check mergeDestination to avoid crashing and
  33618. also insert a break in that case at m_upstreamStart,
  33619. so that we can create a valid mergeDestination and
  33620. perform the merge.
  33621. 2007-04-06 Mitz Pettel <mitz@webkit.org>
  33622. Reviewed by Oliver.
  33623. Eliminate PlatformMouseEvent::currentEvent.
  33624. No test possible (no change to functionality).
  33625. * page/EventHandler.cpp:
  33626. (WebCore::EventHandler::handleDrag):
  33627. * platform/PlatformMouseEvent.h:
  33628. * platform/gdk/TemporaryLinkStubs.cpp:
  33629. * platform/mac/PlatformMouseEventMac.mm:
  33630. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  33631. * platform/qt/PlatformMouseEventQt.cpp:
  33632. * platform/win/TemporaryLinkStubs.cpp:
  33633. 2007-04-05 Oliver Hunt <oliver@apple.com>
  33634. Reviewed by Maciej.
  33635. Fix for rdar://problem/4849948 -- JSCanvasRenderingContext2D::drawImage
  33636. crashes when given invalid arguments.
  33637. JSCanvasRenderingContext2D frequently casts from JSValue* to JSObject*
  33638. and then checks isObject *after* the cast. JSObject::isObject is unsafe
  33639. if applied to a JSImmediate value (null, undefined, etc). This patch
  33640. corrects the logic in a number of places by performing the isObject check
  33641. before casting to JSObject.
  33642. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  33643. (WebCore::JSCanvasRenderingContext2D::drawImage):
  33644. (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
  33645. (WebCore::JSCanvasRenderingContext2D::createPattern):
  33646. 2007-04-05 Adele Peterson <adele@apple.com>
  33647. Reviewed by Oliver.
  33648. Fix for <rdar://problem/4965597> REGRESSION: mouseup doesn't fire for slider (causes it to always default to max)
  33649. Test: fast/forms/slider-mouse-events.html
  33650. * page/EventHandler.cpp: (WebCore::EventHandler::dispatchMouseEvent):
  33651. Since the actual target node of the event can't be a shadow node, set the target node to the capturing node before adjusting it.
  33652. 2007-04-05 Kevin McCullough <kmccullough@apple.com>
  33653. Reviewed by Darin.
  33654. - Added reportLocalLoadFailed to FrameLoader to send an error to the console when
  33655. calls to canLoad fail.
  33656. * loader/Cache.cpp:
  33657. (WebCore::Cache::requestResource):
  33658. * loader/FrameLoader.cpp:
  33659. (WebCore::FrameLoader::loadSubframe):
  33660. (WebCore::FrameLoader::loadPlugin):
  33661. (WebCore::FrameLoader::load):
  33662. (WebCore::FrameLoader::reportLocalLoadFailed):
  33663. * loader/FrameLoader.h:
  33664. * loader/SubresourceLoader.cpp:
  33665. (WebCore::SubresourceLoader::create):
  33666. 2007-04-05 Adele Peterson <adele@apple.com>
  33667. Reviewed by Maciej.
  33668. Add text-align: -webkit-auto for form controls. Buttons already override this property to center their text.
  33669. * css/html4.css:
  33670. 2007-04-05 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  33671. Reviewed by rwlbuis.
  33672. Coverity fix. Coverity says:
  33673. "Event var_deref_model: Variable "page" tracked as NULL was passed to a function that dereferences it."
  33674. * platform/Font.cpp:
  33675. (WebCore::Font::glyphDataForCharacter):
  33676. 2007-04-05 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  33677. Reviewed by darin.
  33678. Coverity fix. Coverity says:
  33679. "Event var_deref_model: Variable "unicode" tracked as NULL was passed to a
  33680. function that dereferences it."
  33681. * platform/DeprecatedString.cpp:
  33682. (WebCore::DeprecatedString::DeprecatedString):
  33683. 2007-04-05 Adele Peterson <adele@apple.com>
  33684. Reviewed by Hyatt.
  33685. Fix for <rdar://problem/5113593> REGRESSION: Search fields in RSS pages don't show ibeam cursor
  33686. * css/html4.css: Set the cursor values explicitly for input, textarea (to auto), & select (to default).
  33687. 2007-04-05 David Hyatt <hyatt@apple.com>
  33688. Fix for <rdar://problem/5078866> tables should only reset text-align
  33689. in quirks mode.
  33690. Reviewed by beth
  33691. * css/html4.css:
  33692. * css/quirks.css:
  33693. 2007-04-05 Adele Peterson <adele@apple.com>
  33694. Fixing typo that's crashing.
  33695. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler):
  33696. Use evt instead of null variable k.
  33697. 2007-04-05 Adele Peterson <adele@apple.com>
  33698. Reviewed by Hyatt.
  33699. Fix for <rdar://problem/5021500> Cursor should stay as pointer when slider is being dragged
  33700. Don't set the selection ibeam cursor when there's a node that's capturing mouse events.
  33701. * page/EventHandler.cpp:
  33702. (WebCore::selectCursor):
  33703. (WebCore::EventHandler::handleMouseMoveEvent):
  33704. 2007-04-05 Geoffrey Garen <ggaren@apple.com>
  33705. Reviewed by Beth Dakin.
  33706. More clean-up while fixing <rdar://problem/5112273> REGRESSION(TOT):
  33707. Reproducible crash loading an old version of amazon.com as a web archive
  33708. Layout tests pass.
  33709. Removed more superfluous document NULL checks. (Node::document() never
  33710. returns NULL, and it asserts as much.)
  33711. Merged some duplicate editing code into a static inline function.
  33712. * page/mac/WebCoreFrameBridge.mm:
  33713. (updateRenderingForBindings): Removed superfluous static_cast.
  33714. 2007-04-05 Adele Peterson <adele@apple.com>
  33715. Reviewed by Darin.
  33716. A little cleanup from my last checkin. Always check if an Event is really a MouseEvent or a KeyboardEvent
  33717. before casting it.
  33718. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler):
  33719. * html/HTMLSelectElement.cpp:
  33720. (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
  33721. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
  33722. * html/HTMLTextFieldInnerElement.cpp:
  33723. (WebCore::HTMLSearchFieldResultsButtonElement::defaultEventHandler):
  33724. (WebCore::HTMLSearchFieldCancelButtonElement::defaultEventHandler):
  33725. * ksvg2/svg/SVGAElement.cpp: (WebCore::SVGAElement::defaultEventHandler):
  33726. * page/ContextMenuController.cpp: (WebCore::ContextMenuController::handleContextMenuEvent):
  33727. * rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::userResize):
  33728. * rendering/RenderSlider.cpp: (WebCore::HTMLSliderThumbElement::defaultEventHandler):
  33729. 2007-04-05 Geoffrey Garen <ggaren@apple.com>
  33730. Reviewed by Beth Dakin.
  33731. Some clean-up while fixing <rdar://problem/5112273> REGRESSION(TOT):
  33732. Reproducible crash loading an old version of amazon.com as a web archive
  33733. Removed superfluous document NULL checks. (Node::document() never returns
  33734. NULL, and it asserts as much.)
  33735. Removed duplicate implementation of displayString.
  33736. Layout tests pass.
  33737. * bindings/objc/DOMInternal.h:
  33738. * bindings/objc/DOMInternal.mm:
  33739. * html/HTMLGenericFormElement.cpp:
  33740. (WebCore::HTMLGenericFormElement::supportsFocus):
  33741. * html/HTMLPlugInElement.cpp:
  33742. (WebCore::HTMLPlugInElement::createNPObject):
  33743. * platform/ContextMenu.cpp:
  33744. (WebCore::ContextMenu::checkOrEnableIfNeeded):
  33745. * rendering/HitTestResult.cpp:
  33746. (WebCore::displayString):
  33747. * rendering/HitTestResult.h:
  33748. * rendering/RenderLayer.cpp:
  33749. (WebCore::RenderLayer::updateHoverActiveState):
  33750. === Safari-5522.6 ===
  33751. 2007-04-05 Oliver Hunt <oliver@apple.com>
  33752. Reviewed by Adam.
  33753. Fix rdar://problem/5030934 -- landscape PDFs embedded as an image are cut off
  33754. also fixes scaling of pdf images
  33755. PDFDocumentImage was not accounting for page rotation in a number of places
  33756. * platform/graphics/cg/PDFDocumentImage.cpp:
  33757. (WebCore::PDFDocumentImage::size):
  33758. we need to account for rotation of the pdf image effecting our bounds
  33759. (WebCore::PDFDocumentImage::draw):
  33760. When compensating for flipped coords we need to use the correct rect for the
  33761. coordinate space. We can't pass size() to CGContextDrawPDFDocument as it
  33762. returns the rotated bounds now -- this is also save the old
  33763. FloatSize -> IntSize -> FloatSize conversions.
  33764. 2007-04-04 Alexey Proskuryakov <ap@webkit.org>
  33765. Reviewed by Darin.
  33766. http://bugs.webkit.org/show_bug.cgi?id=13278
  33767. REGRESSION: cannot change SELECT option
  33768. Test: fast/forms/option-change-single-selected.html
  33769. * html/HTMLSelectElement.cpp:
  33770. (WebCore::HTMLSelectElement::setSelectedIndex): If multiple selection is not allowed,
  33771. be sure to deselect the previous option.
  33772. 2007-04-04 Adele Peterson <adele@apple.com>
  33773. Reviewed by Oliver.
  33774. Fix for <rdar://5105009> Prepare for fix to send mousedown and mouseup (but not click) events when right-clicking
  33775. * page/EventHandler.cpp: Don't ever send click events for right-clicks.
  33776. (WebCore::EventHandler::handleMouseDoubleClickEvent):
  33777. (WebCore::EventHandler::handleMouseReleaseEvent):
  33778. Check that the mousedown and mouseup are not with the right button before performing default behavior.
  33779. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler):
  33780. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
  33781. * html/HTMLSelectElement.cpp:
  33782. (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
  33783. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
  33784. * html/HTMLTextFieldInnerElement.cpp:
  33785. (WebCore::HTMLSearchFieldResultsButtonElement::defaultEventHandler):
  33786. (WebCore::HTMLSearchFieldCancelButtonElement::defaultEventHandler):
  33787. * ksvg2/svg/SVGAElement.cpp:(WebCore::SVGAElement::defaultEventHandler):
  33788. * rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::userResize):
  33789. * rendering/RenderSlider.cpp: (WebCore::HTMLSliderThumbElement::defaultEventHandler):
  33790. 2007-04-03 Justin Garcia <justin.garcia@apple.com>
  33791. Reviewed by darin
  33792. <rdar://problem/5026848> Can cut/delete ToDo subunits
  33793. We were removing non-editable content during a delete.
  33794. * editing/DeleteSelectionCommand.cpp:
  33795. (WebCore::DeleteSelectionCommand::initializePositionData):
  33796. Set m_startRoot and m_endRoot.
  33797. (WebCore::DeleteSelectionCommand::removeNode): If a node
  33798. is not inside both the start and end roots, remove it only
  33799. if it is in editable content.
  33800. * editing/DeleteSelectionCommand.h: Added m_startRoot and
  33801. m_endRoot, the editable roots that contain the start and end
  33802. of the selection, respectively. We consult these every
  33803. time we remove a node, and don't want to recompute them
  33804. on every call to removeNode().
  33805. 2007-04-03 David Hyatt <hyatt@apple.com>
  33806. Fix for <rdar://problem/5108896>, make sure the assert for setEncodedSize
  33807. deals with the error case.
  33808. Reviewed by andersca
  33809. * loader/CachedResource.cpp:
  33810. (WebCore::CachedResource::setEncodedSize):
  33811. 2007-04-03 Anders Carlsson <andersca@apple.com>
  33812. Reviewed by Dave Hyatt.
  33813. * loader/ImageDocument.cpp:
  33814. Don't call error() in stopParsing.
  33815. 2007-04-03 Justin Garcia <justin.garcia@apple.com>
  33816. Reviewed by darin
  33817. <rdar://problem/5107422>
  33818. TOT REGRESSION: Delete key fails to delete text, and cursor disappears in Mail.app
  33819. <rdar://problem/5107413>
  33820. TOT REGRESSION: Crash deleting text in email (infinite recursion in shouldInsertNode)
  33821. * editing/CompositeEditCommand.cpp:
  33822. (WebCore::CompositeEditCommand::moveParagraphs):
  33823. Back out the call to shouldInsert until we
  33824. add WebViewInsertActionMoved, because Mail returns
  33825. NO from shouldInsert for WebViewInsertActionPasted
  33826. to override our Paste operation.
  33827. 2007-04-03 Anders Carlsson <andersca@apple.com>
  33828. Reviewed by Mitz.
  33829. Make window.innerWidth/innerHeight include the size of any present scrollbar to match Firefox.
  33830. Make document.body.clientWidth/clientHeight return the width/height of the visible content when in
  33831. quirks mode to match WinIE.
  33832. * bindings/js/kjs_window.cpp:
  33833. (KJS::Window::getValueProperty):
  33834. Return the width and height of the scroll view, not the visible width and height.
  33835. * dom/Element.cpp:
  33836. (WebCore::Element::clientWidth):
  33837. (WebCore::Element::clientHeight):
  33838. Return the visible size if the element is the body element and we're in quirks mode.
  33839. 2007-04-03 Adele Peterson <adele@apple.com>
  33840. Reviewed by Darin.
  33841. Updated fix for <rdar://problem/5107095> REGRESSION: disabled text color calculations are slowing down launchtime measurements
  33842. * platform/graphics/Color.cpp: Moved optimization for lightening black and darkening white into the Color class.
  33843. (WebCore::Color::light):
  33844. (WebCore::Color::dark):
  33845. * rendering/RenderTextControl.cpp: (WebCore::disabledTextColor): Skip the difference calculation for black text, which will always be lightened.
  33846. 2007-04-03 Anders Carlsson <andersca@apple.com>
  33847. Reviewed by Tim.
  33848. <rdar://problem/4649516>
  33849. Turn off slow script dialog or crank up time that makes it come up
  33850. * bindings/js/kjs_binding.cpp:
  33851. (KJS::ScriptInterpreter::ScriptInterpreter):
  33852. Increase the timeout to 10 seconds to match Firefox.
  33853. 2007-04-03 Mitz Pettel <mitz@webkit.org>
  33854. Reviewed by Darin.
  33855. - fix http://bugs.webkit.org/show_bug.cgi?id=13251
  33856. editing/style/fontsize-1.html fails intermittently when run multiple times on Intel, generates incorrect DOM
  33857. Covered by existing editing tests.
  33858. * css/CSSPrimitiveValue.cpp:
  33859. (WebCore::CSSPrimitiveValue::getFloatValue): Added ASSERTs that the requested conversion
  33860. is from a scalar type to a scalar type. The intermittent failures in the test were
  33861. the result of trying to convert an identifier type to a scalar type.
  33862. * editing/ApplyStyleCommand.cpp:
  33863. (WebCore::StyleChange::checkForLegacyHTMLStyleChange): Added a check that the
  33864. font-size property value is an absolute length. If it is not (such as in the case
  33865. of relative units or keywords like "x-large"), then no corresponding 'size' attribute
  33866. will be generated for legacy HTML.
  33867. 2007-04-03 Mitz Pettel <mitz@webkit.org>
  33868. Reviewed by Darin.
  33869. - fix http://bugs.webkit.org/show_bug.cgi?id=13218
  33870. <rdar://problem/5095977>
  33871. Reproducible crash after call to window.close()
  33872. * manual-tests/stale-currentEvent.html: Added.
  33873. * page/EventHandler.cpp:
  33874. (WebCore::EventHandler::hoverTimerFired): Instead of faking a mouse event,
  33875. just hit-test the last mouse event coordinates and update for hover state
  33876. changes. This eliminates the use of currentEvent, which can be a non-mouse
  33877. event or even a stale event.
  33878. 2007-04-02 Adele Peterson <adele@apple.com>
  33879. Reviewed by Maciej.
  33880. Fix for <rdar://problem/5107095> REGRESSION: disabled text color calculations are slowing down launchtime measurements
  33881. Hardcode disabled text colors for the most common cases- black and white.
  33882. * rendering/RenderTextControl.cpp: (WebCore::disabledTextColor):
  33883. 2007-04-02 David Hyatt <hyatt@apple.com>
  33884. Fix for <rdar://problem/5105784>, assertion failure in cache. Encoded sizes were being set to
  33885. garbage by accident because of a mismatch between derived class and base class constructors. This
  33886. patch cleans all of this up and gets rid of expiration date as a concept separate from the response.
  33887. Reviewed by anders
  33888. * dom/Document.cpp:
  33889. (WebCore::Document::processHttpEquiv):
  33890. * html/HTMLImageLoader.cpp:
  33891. (WebCore::HTMLImageLoader::updateFromElement):
  33892. * loader/Cache.cpp:
  33893. (WebCore::createResource):
  33894. (WebCore::Cache::requestResource):
  33895. * loader/Cache.h:
  33896. * loader/CachedCSSStyleSheet.cpp:
  33897. (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
  33898. * loader/CachedCSSStyleSheet.h:
  33899. * loader/CachedImage.cpp:
  33900. (WebCore::CachedImage::CachedImage):
  33901. * loader/CachedImage.h:
  33902. * loader/CachedResource.cpp:
  33903. (WebCore::CachedResource::CachedResource):
  33904. (WebCore::CachedResource::finish):
  33905. * loader/CachedResource.h:
  33906. * loader/CachedScript.cpp:
  33907. (WebCore::CachedScript::CachedScript):
  33908. * loader/CachedScript.h:
  33909. * loader/CachedXBLDocument.cpp:
  33910. (WebCore::CachedXBLDocument::CachedXBLDocument):
  33911. * loader/CachedXBLDocument.h:
  33912. * loader/CachedXSLStyleSheet.cpp:
  33913. (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
  33914. * loader/CachedXSLStyleSheet.h:
  33915. * loader/DocLoader.cpp:
  33916. (WebCore::DocLoader::DocLoader):
  33917. (WebCore::DocLoader::requestResource):
  33918. * loader/DocLoader.h:
  33919. 2007-04-03 Antti Koivisto <antti@apple.com>
  33920. Reviewed by Hyatt.
  33921. Render tree memory savings, part 3
  33922. These changes shrink all RenderBlocks by additional 28 bytes. Together with parts 1 and 2
  33923. RenderBlock goes from 172 bytes to 128 bytes, a saving of 26%.
  33924. - Pack bitfields together in RenderFlow
  33925. - Move top/bottom min/max margin values to a struct that is only allocated in case these
  33926. variables have non default values. Usually this is <5% of all blocks.
  33927. - Move rarely used column variables to hash
  33928. * rendering/RenderBlock.cpp:
  33929. (WebCore::ColumnInfo::ColumnInfo):
  33930. (WebCore::RenderBlock::RenderBlock):
  33931. (WebCore::RenderBlock::~RenderBlock):
  33932. (WebCore::RenderBlock::layoutBlock):
  33933. (WebCore::RenderBlock::collapseMargins):
  33934. (WebCore::RenderBlock::clearFloatsIfNeeded):
  33935. (WebCore::RenderBlock::setCollapsedBottomMargin):
  33936. (WebCore::RenderBlock::layoutBlockChildren):
  33937. (WebCore::RenderBlock::paintColumns):
  33938. (WebCore::RenderBlock::paintObject):
  33939. (WebCore::RenderBlock::fillSelectionGaps):
  33940. (WebCore::RenderBlock::lowestPosition):
  33941. (WebCore::RenderBlock::rightmostPosition):
  33942. (WebCore::RenderBlock::leftmostPosition):
  33943. (WebCore::RenderBlock::nodeAtPoint):
  33944. (WebCore::RenderBlock::hitTestColumns):
  33945. (WebCore::RenderBlock::positionForCoordinates):
  33946. (WebCore::RenderBlock::availableWidth):
  33947. (WebCore::RenderBlock::calcColumnWidth):
  33948. (WebCore::RenderBlock::setDesiredColumnCountAndWidth):
  33949. (WebCore::RenderBlock::desiredColumnWidth):
  33950. (WebCore::RenderBlock::desiredColumnCount):
  33951. (WebCore::RenderBlock::columnRects):
  33952. (WebCore::RenderBlock::layoutColumns):
  33953. (WebCore::RenderBlock::adjustPointToColumnContents):
  33954. (WebCore::RenderBlock::adjustRectForColumns):
  33955. (WebCore::RenderBlock::setMaxTopMargins):
  33956. (WebCore::RenderBlock::setMaxBottomMargins):
  33957. * rendering/RenderBlock.h:
  33958. (WebCore::RenderBlock::maxTopMargin):
  33959. (WebCore::RenderBlock::maxBottomMargin):
  33960. (WebCore::RenderBlock::maxTopPosMargin):
  33961. (WebCore::RenderBlock::maxTopNegMargin):
  33962. (WebCore::RenderBlock::maxBottomPosMargin):
  33963. (WebCore::RenderBlock::maxBottomNegMargin):
  33964. (WebCore::RenderBlock::initMaxMarginValues):
  33965. (WebCore::RenderBlock::MaxMargin::MaxMargin):
  33966. (WebCore::RenderBlock::MaxMargin::topPosDefault):
  33967. (WebCore::RenderBlock::MaxMargin::topNegDefault):
  33968. (WebCore::RenderBlock::MaxMargin::bottomPosDefault):
  33969. (WebCore::RenderBlock::MaxMargin::bottomNegDefault):
  33970. * rendering/RenderFlexibleBox.cpp:
  33971. (WebCore::RenderFlexibleBox::layoutBlock):
  33972. * rendering/RenderFlow.h:
  33973. (WebCore::RenderFlow::RenderFlow):
  33974. (WebCore::RenderFlow::hasColumns):
  33975. * rendering/RenderInline.cpp:
  33976. (WebCore::RenderInline::RenderInline):
  33977. * rendering/RenderInline.h:
  33978. 2007-04-03 Antti Koivisto <antti@apple.com>
  33979. Reviewed by Hyatt.
  33980. Fix asserts, these may also be called for rel positioned elements
  33981. * rendering/RenderBox.cpp:
  33982. (WebCore::RenderBox::setStaticX):
  33983. (WebCore::RenderBox::setStaticY):
  33984. 2007-04-02 David Hyatt <hyatt@apple.com>
  33985. Throw in an assert to try to track down a problem where an image is being set to a smaller encoded
  33986. size.
  33987. * loader/CachedResource.cpp:
  33988. (WebCore::CachedResource::setEncodedSize):
  33989. 2007-04-02 Ada Chan <adachan@apple.com>
  33990. Reviewed by Adele.
  33991. <rdar://5105331> Missing null check in Editor::execCommand
  33992. Added null check.
  33993. * editing/Editor.cpp:
  33994. (WebCore::Editor::execCommand):
  33995. 2007-04-02 Justin Garcia <justin.garcia@apple.com>
  33996. Reviewed by darin
  33997. <rdar://problem/5058163>
  33998. Hitting return inserts a new line between two To Dos, but caret is position after second ToDo
  33999. * editing/InsertParagraphSeparatorCommand.cpp:
  34000. (WebCore::InsertParagraphSeparatorCommand::doApply):
  34001. Removed refPos, it was unused.
  34002. Don't assume that upstream() moves to a different
  34003. node. This assumption caused the line break to
  34004. be inserted *after* the caret and a bad position
  34005. to be set (added a testcase).
  34006. Use isStartOfParagraph instead of checking
  34007. for the existence of a br because the line might
  34008. be broken by a newline character in text that
  34009. preserves newlines. Paragraphs that are created
  34010. in other ways, like with blocks, are handled
  34011. above (added a testcase).
  34012. 2007-04-02 David Harrison <harrison@apple.com>
  34013. Reviewed by Darin.
  34014. <rdar://problem/4906488> text attributes are not working for frame based web page
  34015. Attribute handling now treats each WebArea as its own world, rather than sometimes
  34016. referring back up to the top WebArea. e.g. getting/setting the selection now
  34017. operates on the WebArea containing the WebCoreAXObject that is being messaged (self).
  34018. The methods that sit above this and are able to go into arbitrary WebAreas
  34019. are accessibilityFocusedUIElement and doAXTextMarkerForPosition, allowing VoiceOver
  34020. to navigate between frames.
  34021. * bridge/mac/WebCoreAXObject.mm:
  34022. (-[WebCoreAXObject topRenderer]):
  34023. (-[WebCoreAXObject frameView]):
  34024. (-[WebCoreAXObject topFrameView]):
  34025. Removed topDocument, renamed topView to topFrameView, added frameView.
  34026. (-[WebCoreAXObject accessibilityAttributeValue:]):
  34027. AXSelectedTextMarkerRange, AXStartTextMarker, and AXEndTextMarker now use
  34028. self's WebArea, rather than the top WebArea.
  34029. (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
  34030. Use self's WebArea, rather than the top WebArea.
  34031. (-[WebCoreAXObject doAXTextMarkerForPosition:]):
  34032. Use renamed methods for accessing top WebArea.
  34033. (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
  34034. Use renamed methods for accessing self's WebArea.
  34035. (AXAttributeStringSetColor):
  34036. (AXAttributeStringSetNumber):
  34037. (AXAttributeStringSetFont):
  34038. (AXAttributeStringSetStyle):
  34039. (AXAttributeStringSetElement):
  34040. (-[WebCoreAXObject rendererForView:]):
  34041. Clean up uses of nil and NULL.
  34042. (-[WebCoreAXObject accessibilityFocusedUIElement]):
  34043. Find the focused node on the whole page. If there is no focused node,
  34044. return the WebArea for the focused document.
  34045. (-[WebCoreAXObject doSetAXSelectedTextMarkerRange:]):
  34046. Use self's WebArea, rather than the top WebArea.
  34047. 2007-04-02 Antti Koivisto <antti@apple.com>
  34048. Fix build. This one was not supposed to be checked in.
  34049. * rendering/RenderFlexibleBox.cpp:
  34050. (WebCore::RenderFlexibleBox::layoutBlock):
  34051. 2007-03-30 Antti Koivisto <antti@apple.com>
  34052. Reviewed by Hyatt.
  34053. Render tree memory savings, part 2
  34054. - Move staticX and staticY variables to RenderLayer since they are only
  34055. applicable to positioned objects
  34056. - Move very rarely used overrideSize variable to hash
  34057. These changes shrink all box types by 12 bytes
  34058. * rendering/RenderBox.cpp:
  34059. (WebCore::RenderBox::RenderBox):
  34060. (WebCore::RenderBox::destroy):
  34061. (WebCore::RenderBox::overrideSize):
  34062. (WebCore::RenderBox::setOverrideSize):
  34063. (WebCore::RenderBox::overrideWidth):
  34064. (WebCore::RenderBox::overrideHeight):
  34065. (WebCore::RenderBox::position):
  34066. (WebCore::RenderBox::calcWidth):
  34067. (WebCore::RenderBox::calcHeight):
  34068. (WebCore::RenderBox::staticX):
  34069. (WebCore::RenderBox::staticY):
  34070. (WebCore::RenderBox::setStaticX):
  34071. (WebCore::RenderBox::setStaticY):
  34072. (WebCore::RenderBox::calcAbsoluteHorizontal):
  34073. (WebCore::RenderBox::calcAbsoluteVertical):
  34074. (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
  34075. (WebCore::RenderBox::calcAbsoluteVerticalReplaced):
  34076. * rendering/RenderBox.h:
  34077. * rendering/RenderLayer.cpp:
  34078. (WebCore::RenderLayer::RenderLayer):
  34079. * rendering/RenderLayer.h:
  34080. (WebCore::RenderLayer::staticX):
  34081. (WebCore::RenderLayer::staticY):
  34082. (WebCore::RenderLayer::setStaticX):
  34083. (WebCore::RenderLayer::setStaticY):
  34084. * rendering/RenderObject.cpp:
  34085. (WebCore::RenderObject::RenderObject):
  34086. * rendering/RenderObject.h:
  34087. (WebCore::):
  34088. (WebCore::RenderObject::hasOverrideSize):
  34089. (WebCore::RenderObject::setHasOverrideSize):
  34090. * rendering/RenderWidget.cpp:
  34091. (WebCore::RenderWidget::destroy):
  34092. 2007-03-31 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  34093. Not reviewed - gdk build fix.
  34094. * platform/gdk/TemporaryLinkStubs.cpp:
  34095. (Font::selectionRectForComplexText):
  34096. (Font::drawComplexText):
  34097. 2007-03-31 Alexey Proskuryakov <ap@webkit.org>
  34098. Reviewed by Darin.
  34099. http://bugs.webkit.org/show_bug.cgi?id=12778
  34100. REGRESSION: Nightly won't load Curl plugin for full page use
  34101. * dom/DOMImplementation.cpp:
  34102. (WebCore::DOMImplementation::createDocument): Re-order cases to give more priority to plugins.
  34103. This also fixes Adobe SVG Viewer and any plugins that register XML MIME types.
  34104. Added a case for XHTML to avoid enumerating plugins.
  34105. 2007-03-31 David Hyatt <hyatt@apple.com>
  34106. Fix for bug 13234, layout of selected justified text is broken. Rework TextRuns to avoid having
  34107. from/to members. Let those be passed in only by the functions that need them (drawing and selection rect).
  34108. Reviewed by mitz
  34109. fast/text/justified-selection-at-edge.html
  34110. * platform/Font.cpp:
  34111. (WebCore::WidthIterator::WidthIterator):
  34112. (WebCore::WidthIterator::advance):
  34113. (WebCore::Font::canUseGlyphCache):
  34114. (WebCore::Font::drawSimpleText):
  34115. (WebCore::Font::drawText):
  34116. (WebCore::Font::floatWidth):
  34117. (WebCore::Font::floatWidthForSimpleText):
  34118. (WebCore::Font::selectionRectForText):
  34119. (WebCore::Font::selectionRectForSimpleText):
  34120. (WebCore::Font::offsetForPositionForSimpleText):
  34121. * platform/Font.h:
  34122. (WebCore::TextRun::m_len):
  34123. * platform/graphics/GraphicsContext.cpp:
  34124. (WebCore::GraphicsContext::drawText):
  34125. (WebCore::GraphicsContext::drawHighlightForText):
  34126. * platform/graphics/GraphicsContext.h:
  34127. * platform/mac/FontMac.mm:
  34128. (WebCore::addDirectionalOverride):
  34129. (WebCore::overrideLayoutOperation):
  34130. (WebCore::ATSULayoutParameters::initialize):
  34131. (WebCore::Font::selectionRectForComplexText):
  34132. (WebCore::Font::drawComplexText):
  34133. (WebCore::Font::floatWidthForComplexText):
  34134. (WebCore::Font::offsetForPositionForComplexText):
  34135. * platform/qt/FontQt.cpp:
  34136. (WebCore::Font::drawComplexText):
  34137. (WebCore::Font::floatWidthForComplexText):
  34138. * platform/qt/TemporaryLinkStubs.cpp:
  34139. (Font::selectionRectForComplexText):
  34140. * rendering/EllipsisBox.cpp:
  34141. (WebCore::EllipsisBox::paint):
  34142. * rendering/InlineTextBox.cpp:
  34143. (WebCore::InlineTextBox::selectionRect):
  34144. (WebCore::InlineTextBox::paint):
  34145. (WebCore::InlineTextBox::paintSelection):
  34146. (WebCore::InlineTextBox::paintMarkedTextBackground):
  34147. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
  34148. (WebCore::InlineTextBox::paintTextMatchMarker):
  34149. (WebCore::InlineTextBox::offsetForPosition):
  34150. (WebCore::InlineTextBox::positionForOffset):
  34151. * rendering/RenderListMarker.cpp:
  34152. (WebCore::RenderListMarker::paint):
  34153. (WebCore::RenderListMarker::calcMinMaxWidth):
  34154. (WebCore::RenderListMarker::getRelativeMarkerRect):
  34155. * rendering/RenderMenuList.cpp:
  34156. (WebCore::RenderMenuList::updateOptionsWidth):
  34157. * rendering/RenderText.cpp:
  34158. (WebCore::RenderText::widthFromCache):
  34159. (WebCore::RenderText::width):
  34160. 2007-03-31 Mitz Pettel <mitz@webkit.org>
  34161. Reviewed by Darin.
  34162. - fix http://bugs.webkit.org/show_bug.cgi?id=13243
  34163. <rdar://problem/5103226>
  34164. REGRESSION (r20506): Repro crash/assert when using scroll wheel on a list box taller than its contents
  34165. * platform/ScrollBar.cpp:
  34166. (WebCore::Scrollbar::setValue): Cleaned up a little.
  34167. (WebCore::Scrollbar::scroll): Changed to apply the minimum and maximum constraints
  34168. in the right order, and cleaned up a little.
  34169. 2007-03-31 Mitz Pettel <mitz@webkit.org>
  34170. Reviewed by Darin.
  34171. - fix http://bugs.webkit.org/show_bug.cgi?id=13242
  34172. REGRESSION: Repro crash when specifying the content property for an image
  34173. Test: fast/images/text-content-crash.html
  34174. * html/HTMLImageElement.cpp:
  34175. (WebCore::HTMLImageElement::parseMappedAttribute): Added a check that the
  34176. renderer is an image.
  34177. (WebCore::HTMLImageElement::attach): Ditto.
  34178. 2007-03-31 Mark Rowe <mrowe@apple.com>
  34179. Reviewed by Darin.
  34180. A more correct fix for http://bugs.webkit.org/show_bug.cgi?id=13129
  34181. Bug 13129: Democracy Player dies in NSException from WebScriptObject on startup
  34182. The previous attempt at a fix in r20343 attempted to conditionally expose the 'count'
  34183. method. It did not work which resulted in 'count' always being hidden. This change
  34184. disables -[WebScriptObject count] completely until it can be determined whether it is
  34185. needed and how to support it without breaking third-party applications.
  34186. * bindings/objc/WebScriptObject.mm:
  34187. (-[WebScriptObject count]):
  34188. * bindings/objc/WebScriptObjectPrivate.h:
  34189. 2007-03-31 Nicholas Shanks <webkit@nickshanks.com>
  34190. Reviewed by Adele.
  34191. http://bugs.webkit.org/show_bug.cgi?id=13184
  34192. HTMLImageElement longdesc should be complete resolved URL
  34193. Test: fast/dom/HTMLImageElement/image-longdesc-absolute-url.html
  34194. * html/HTMLImageElement.cpp:
  34195. (WebCore::HTMLImageElement::longDesc): Return absolute URL.
  34196. Behaviour now matches Firefox and Opera.
  34197. 2007-03-31 Mitz Pettel <mitz@webkit.org>
  34198. Reviewed by Hyatt.
  34199. - fix http://bugs.webkit.org/show_bug.cgi?id=13209
  34200. REGRESSION (r18756-18765): Incomplete list marker repaint when resizing list item
  34201. Test: fast/repaint/list-marker-2.html
  34202. A list marker can increase the horizontal overflow after layoutInlineChildren(),
  34203. so made that function return only the vertical bounds of the repaint rect. As the
  34204. horizontal bounds, made layoutBlock() just use the overflow bounds after layout.
  34205. * rendering/RenderBlock.cpp:
  34206. (WebCore::RenderBlock::layoutBlock):
  34207. * rendering/RenderBlock.h:
  34208. * rendering/bidi.cpp:
  34209. (WebCore::RenderBlock::layoutInlineChildren):
  34210. 2007-03-31 Mitz Pettel <mitz@webkit.org>
  34211. Reviewed by Hyatt.
  34212. - http://bugs.webkit.org/show_bug.cgi?id=13178
  34213. Helvetica zero-width space has non-zero width
  34214. Test: fast/text/wide-zero-width-space.html
  34215. * platform/FontData.cpp:
  34216. (WebCore::FontData::FontData): Force the ZERO WIDTH SPACE glyph to have width
  34217. 0, unless the SPACE character maps to the same glyph.
  34218. 2007-03-31 Mitz Pettel <mitz@webkit.org>
  34219. Reviewed by Darin.
  34220. - fix http://bugs.webkit.org/show_bug.cgi?id=8016
  34221. REPRO: Safari hangs loading 18 MB page (deeply nested DOM tree)
  34222. Test: fast/tokenizer/lessthan-terminates-tags-and-attrs.html
  34223. * html/HTMLTokenizer.cpp:
  34224. (WebCore::HTMLTokenizer::parseTag): Made "<" terminate tag and attribute
  34225. names. This matches Firefox.
  34226. 2007-03-31 Alexey Proskuryakov <ap@webkit.org>
  34227. Debug build fix.
  34228. * xml/XPathValue.cpp:
  34229. (WebCore::XPath::): Define Value::adopt.
  34230. 2007-03-30 Alexey Proskuryakov <ap@webkit.org>
  34231. Reviewed by Darin.
  34232. http://bugs.webkit.org/show_bug.cgi?id=13021
  34233. XPath can be very slow
  34234. This patch finally makes us faster than Firefox 2.0 on this test case.
  34235. * xml/XPathFunctions.cpp:
  34236. (WebCore::XPath::FunConcat::evaluate): Use a Vector buffer for faster appending.
  34237. (WebCore::XPath::FunId::evaluate): Move the result NodeSet into Value instead of copying it.
  34238. (WebCore::XPath::FunLocalName::evaluate): Cosmetic changes.
  34239. (WebCore::XPath::FunNamespaceURI::evaluate): Ditto.
  34240. (WebCore::XPath::FunName::evaluate): Ditto.
  34241. (WebCore::XPath::FunNormalizeSpace::evaluate): Ditto.
  34242. * xml/XPathValue.cpp:
  34243. (WebCore::XPath::Value::toNodeSet):
  34244. (WebCore::XPath::Value::modifiableNodeSet):
  34245. (WebCore::XPath::Value::toBoolean):
  34246. (WebCore::XPath::Value::toNumber):
  34247. (WebCore::XPath::Value::toString):
  34248. * xml/XPathValue.h:
  34249. (WebCore::XPath::ValueData::ValueData):
  34250. (WebCore::XPath::Value::Value):
  34251. Made Value copying faster by putting large data members into a separate refcounted ValueData class.
  34252. Added provisions for moving a NodeSet in and out of Value without copying.
  34253. Made construction safer by moving bool version to a template constructor.
  34254. Removed an (almost) unused default constructor.
  34255. * xml/XPathPredicate.h: Store a Value for literal string and number expressions to avoid
  34256. constructing one each time.
  34257. * xml/XPathPath.cpp:
  34258. (WebCore::XPath::Filter::evaluate):
  34259. (WebCore::XPath::LocationPath::evaluate):
  34260. (WebCore::XPath::Path::evaluate):
  34261. * xml/XPathPath.h:
  34262. * xml/XPathPredicate.cpp:
  34263. (WebCore::XPath::NumericOp::evaluate):
  34264. (WebCore::XPath::Union::evaluate):
  34265. * xml/XPathResult.cpp:
  34266. (WebCore::XPathResult::snapshotItem):
  34267. * xml/XPathStep.cpp:
  34268. (WebCore::XPath::Step::evaluate):
  34269. (WebCore::XPath::Step::nodesInAxis):
  34270. * xml/XPathStep.h:
  34271. Got rid of unnecessary NodeSet copying in many cases.
  34272. 2007-03-30 Justin Garcia <justin.garcia@apple.com>
  34273. Reviewed by john
  34274. <rdar://problem/5076323> Only one To Do can be created by a selection in a message
  34275. When Mail's ToDoify operation called moveToEndOfDocument:
  34276. with a selection that started just before a ToDo, we'd
  34277. move them to the end of the document, not to the end
  34278. of the editable root, because we incorrectly checked
  34279. for the editability of positions before ToDos. Then Mail
  34280. would refuse to create a ToDo because the selection was
  34281. outside of the region where they allowed editing.
  34282. * editing/SelectionController.cpp:
  34283. (WebCore::SelectionController::modifyExtendingRightForward):
  34284. Check the position for editability, not the position's node,
  34285. since there are editable positions of the form [node, offset]
  34286. where node is contenteditable=false.
  34287. Re-use pos. Nothing that happens after it's created can invalidate
  34288. it or the position and affinity used to create it.
  34289. (WebCore::SelectionController::modifyMovingRightForward): Ditto.
  34290. (WebCore::SelectionController::modifyExtendingLeftBackward): Ditto.
  34291. (WebCore::SelectionController::modifyMovingLeftBackward): Ditto.
  34292. * rendering/RenderBlock.cpp:
  34293. (WebCore::RenderBlock::paintCaret): Ditto.
  34294. 2007-03-30 Adele Peterson <adele@apple.com>
  34295. Reviewed by Darin.
  34296. Added DeleteWordBackward and DeleteWordForward to execCommand.
  34297. * editing/Editor.cpp:
  34298. (WebCore::execDeleteWordBackward):
  34299. (WebCore::execDeleteWordForward):
  34300. (WebCore::CommandEntry::):
  34301. 2007-03-30 Simon Hausmann <hausmann@kde.org>
  34302. Reviewed by Zack
  34303. * WebCore.pro: Fix release Qt builds.
  34304. 2007-03-30 Antti Koivisto <antti@apple.com>
  34305. Reviewed by bdash.
  34306. Spotted an int that should be float in previous patch.
  34307. * platform/Font.cpp:
  34308. (WebCore::WidthIterator::advance):
  34309. 2007-03-30 Antti Koivisto <antti@apple.com>
  34310. Reviewed by Hyatt.
  34311. Render tree memory savings, part 1
  34312. - Eliminate caching of monospace char width from RenderText. This optimization is not needed
  34313. anymore since Font already caches space width (RenderText -4 bytes)
  34314. - Eliminate caching of tab width from RenderBlock. Similary this optimization has become
  34315. obsolete (RenderBlock -4 bytes)
  34316. * platform/Font.cpp:
  34317. (WebCore::WidthIterator::advance):
  34318. (WebCore::Font::spaceWidth):
  34319. * platform/Font.h:
  34320. (WebCore::Font::tabWidth):
  34321. * platform/TextStyle.h:
  34322. (WebCore::TextStyle::TextStyle):
  34323. (WebCore::TextStyle::allowTabs):
  34324. * rendering/InlineTextBox.cpp:
  34325. (WebCore::InlineTextBox::selectionRect):
  34326. (WebCore::InlineTextBox::paint):
  34327. (WebCore::InlineTextBox::paintSelection):
  34328. (WebCore::InlineTextBox::paintMarkedTextBackground):
  34329. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
  34330. (WebCore::InlineTextBox::paintTextMatchMarker):
  34331. (WebCore::InlineTextBox::offsetForPosition):
  34332. (WebCore::InlineTextBox::positionForOffset):
  34333. * rendering/RenderBlock.cpp:
  34334. (WebCore:::RenderFlow):
  34335. (WebCore::RenderBlock::setStyle):
  34336. * rendering/RenderBlock.h:
  34337. * rendering/RenderObject.cpp:
  34338. * rendering/RenderObject.h:
  34339. * rendering/RenderText.cpp:
  34340. (WebCore::RenderText::RenderText):
  34341. (WebCore::RenderText::setStyle):
  34342. (WebCore::RenderText::widthFromCache):
  34343. (WebCore::RenderText::trimmedMinMaxWidth):
  34344. (WebCore::RenderText::calcMinMaxWidthInternal):
  34345. (WebCore::RenderText::setTextInternal):
  34346. (WebCore::RenderText::width):
  34347. * rendering/RenderText.h:
  34348. (WebCore::RenderText::allowTabs):
  34349. * rendering/bidi.cpp:
  34350. 2007-03-30 David Hyatt <hyatt@apple.com>
  34351. Fix (take 2) for bug 4334, flickering when floating elements gain/lose transparency.
  34352. Reviewed by mitz
  34353. * rendering/RenderBlock.cpp:
  34354. * rendering/RenderBlock.h:
  34355. * rendering/RenderBox.cpp:
  34356. (WebCore::RenderBox::setStyle):
  34357. 2007-03-29 Mitz Pettel <mitz@webkit.org>
  34358. Reviewed by Darin.
  34359. - fix http://bugs.webkit.org/show_bug.cgi?id=13166
  34360. REGRESSION (2005-10-16 - 2005-10-19): Ampersands showing up in the last column of the Gmail contacts table
  34361. Test: fast/tokenizer/write-partial-entity.html
  34362. * html/HTMLTokenizer.cpp:
  34363. (WebCore::HTMLTokenizer::parseTag): Reordered to avoid resetting the buffer position
  34364. after script execution which can write to the buffer.
  34365. 2007-03-29 Justin Garcia <justin.garcia@apple.com>
  34366. Reviewed by john
  34367. <rdar://problem/5099303> Deleting after a ToDo puts the caret in the wrong position
  34368. We were failing to create the correct selection
  34369. for DeleteSelectionCommand because the selection extension
  34370. operations don't skip over non-editable content for editable
  34371. selections.
  34372. * editing/SelectionController.cpp:
  34373. (WebCore::SelectionController::modifyExtendingRightForward):
  34374. When extending an editable selection, don't extend into
  34375. non-editable content.
  34376. (WebCore::SelectionController::modifyExtendingLeftBackward):
  34377. Ditto.
  34378. 2007-03-29 Patti Hoa <patti@apple.com>
  34379. Reviewed by harrison.
  34380. <rdar://problem/4918397> Exception raise inspecting note contents in the background
  34381. * WebCore.xcodeproj/project.pbxproj:
  34382. * bridge/mac/WebCoreAXObject.mm:
  34383. (-[WebCoreAXObject subrole]):
  34384. (-[WebCoreAXObject title]):
  34385. Check that attachment supports the attribute before requesting it.
  34386. 2007-03-29 Justin Garcia <justin.garcia@apple.com>
  34387. Reviewed by john
  34388. <rdar://problem/5032066> Delete should work between ToDos
  34389. Stop selecting the table when the user attempts to delete
  34390. the line break just after it, instead, extend the selection
  34391. into the last table cell.
  34392. Let deletion merge content into table cells (as long as
  34393. its not from another table cell).
  34394. Start calling shouldInsertNode:replacingDOMRange:givenAction:
  34395. when moving content with moveParagraphs, so that Mail can
  34396. modify content before it is moved into a ToDo during a delete.
  34397. * editing/CompositeEditCommand.cpp:
  34398. (WebCore::CompositeEditCommand::moveParagraphs): Ask the
  34399. delegate before performing the move. This will let Mail
  34400. prevent styles from entering a ToDo.
  34401. Added a FIXME about adding a new WebViewInsertAction
  34402. * editing/DeleteSelectionCommand.cpp:
  34403. (WebCore::DeleteSelectionCommand::initializePositionData):
  34404. Allow merging into table cells from content not in a table.
  34405. * editing/SelectionController.cpp:
  34406. (WebCore::SelectionController::modifyExtendingRightForward):
  34407. Don't select the table when extending by character/word from
  34408. just before it. This code was here to make it easier to select
  34409. tables in order to delete them, but the deletion UI makes it
  34410. largely unnecessary.
  34411. (WebCore::SelectionController::modifyExtendingLeftBackward):
  34412. Ditto.
  34413. * editing/TypingCommand.cpp:
  34414. (WebCore::isFirstPositionAfterTable): Added.
  34415. (WebCore::isLastPositionBeforeTable): Ditto.
  34416. (WebCore::TypingCommand::deleteKeyPressed): When pressing
  34417. the delete key with a caret at the beginning of a paragraph
  34418. just after a table, move the paragraph into the last table
  34419. cell.
  34420. Do not do this if it would mean moving a block table.
  34421. Removed some old irrelevant comments.
  34422. * editing/htmlediting.cpp: Removed unused functions.
  34423. * editing/htmlediting.h:
  34424. 2007-03-29 Adam Treat <adam@staikos.net>
  34425. Reviewed and committed by George Staikos.
  34426. Remove redundant line.
  34427. * platform/qt/FontDataQt.cpp:
  34428. (WebCore::FontData::platformInit):
  34429. 2007-03-29 Adam Treat <adam@staikos.net>
  34430. Reviewed by David Hyatt, committed by George Staikos.
  34431. Test: fast/text/justified-selection.html
  34432. Take into account the entire run length to get a proper selection.
  34433. * platform/Font.cpp:
  34434. (WebCore::WidthIterator::WidthIterator):
  34435. 2007-03-29 David Hyatt <hyatt@apple.com>
  34436. Fix for <rdar://problem/4545060>, technorati and arstechnica fail because of getComputedStyle not
  34437. reporting display:none properly when it is set. This is bugzilla bug 13103.
  34438. Reviewed by mitz
  34439. * css/CSSComputedStyleDeclaration.cpp:
  34440. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  34441. 2007-03-28 Oliver Hunt <oliver@apple.com>
  34442. Reviewed by Hyatt.
  34443. Rename DocLoader::setPasteInProgress, etc to more generic
  34444. setAllowStaleResources, etc
  34445. * editing/Editor.cpp:
  34446. (WebCore::Editor::paste):
  34447. * loader/DocLoader.cpp:
  34448. (WebCore::DocLoader::DocLoader):
  34449. (WebCore::DocLoader::checkForReload):
  34450. * loader/DocLoader.h:
  34451. (WebCore::DocLoader::setAllowStaleResources):
  34452. * page/DragController.cpp:
  34453. (WebCore::DragController::concludeDrag):
  34454. 2007-03-28 Oliver Hunt <oliver@apple.com>
  34455. Reviewed by Anders and Steve.
  34456. Add a flag to DocLoader to prevent it from reloading
  34457. when performing a paste or drop operation.
  34458. Remove m_cachePolicy from CachedResource as it is never used
  34459. Fixes rdar://problem/5044366 : REGRESSION: Repro ASSERT failures
  34460. dragging image into GMail message in _web_writeImage and
  34461. documentFragmentFromDragData
  34462. * editing/Editor.cpp:
  34463. (WebCore::Editor::paste):
  34464. prevent the docloader from reloading resources on paste
  34465. * html/HTMLImageLoader.cpp:
  34466. (WebCore::HTMLImageLoader::updateFromElement):
  34467. * loader/Cache.cpp:
  34468. (WebCore::createResource):
  34469. * loader/CachedCSSStyleSheet.cpp:
  34470. (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
  34471. * loader/CachedCSSStyleSheet.h:
  34472. * loader/CachedImage.cpp:
  34473. (WebCore::CachedImage::CachedImage):
  34474. * loader/CachedImage.h:
  34475. * loader/CachedResource.cpp:
  34476. (WebCore::CachedResource::CachedResource):
  34477. * loader/CachedResource.h:
  34478. * loader/CachedScript.cpp:
  34479. (WebCore::CachedScript::CachedScript):
  34480. * loader/CachedScript.h:
  34481. * loader/CachedXBLDocument.cpp:
  34482. (WebCore::CachedXBLDocument::CachedXBLDocument):
  34483. * loader/CachedXBLDocument.h:
  34484. * loader/CachedXSLStyleSheet.cpp:
  34485. (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
  34486. * loader/CachedXSLStyleSheet.h:
  34487. * loader/DocLoader.cpp:
  34488. (WebCore::DocLoader::DocLoader):
  34489. Tidy up constructor initialise new field
  34490. (WebCore::DocLoader::checkForReload):
  34491. Prevent reload when pasting
  34492. * loader/DocLoader.h:
  34493. (WebCore::DocLoader::setPasteInProgress):
  34494. new field and setter
  34495. * page/DragController.cpp:
  34496. (WebCore::DragController::concludeDrag):
  34497. prevent the docloader from reloading resources on drop
  34498. 2007-03-27 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  34499. Not reviewed - fix typo in gdk build.
  34500. * platform/gdk/ScrollViewGdk.cpp:
  34501. (WebCore::ScrollView::contentsToWindow):
  34502. 2007-03-28 Maciej Stachowiak <mjs@apple.com>
  34503. Reviewed by Darin.
  34504. - fixed <rdar://problem/4820817> Autoscroll is broken in Mail.app (message jumps around when trying to select text)
  34505. Handle scrolling external scrollviews around the webview during
  34506. autoscroll or when scrolling into view.
  34507. This should also restore performance on BenchJS test 6 lost due to Tim's partial fix.
  34508. * page/FrameView.cpp:
  34509. (WebCore::FrameView::scrollRectIntoViewRecursively):
  34510. * page/FrameView.h:
  34511. * platform/ScrollView.h:
  34512. * platform/gdk/ScrollViewGdk.cpp:
  34513. (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers):
  34514. (WebCore::ScrollView::scrollRectIntoViewRecursively):
  34515. * platform/mac/ScrollViewMac.mm:
  34516. (WebCore::ScrollView::visibleContentRect):
  34517. (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers):
  34518. (WebCore::ScrollView::scrollRectIntoViewRecursively):
  34519. (WebCore::ScrollView::updateContents):
  34520. * platform/qt/ScrollViewQt.cpp:
  34521. (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers):
  34522. (WebCore::ScrollView::scrollRectIntoViewRecursively):
  34523. * platform/win/ScrollViewWin.cpp:
  34524. (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers):
  34525. * platform/win/TemporaryLinkStubs.cpp:
  34526. (WebCore::ScrollView::scrollRectIntoViewRecursively):
  34527. * rendering/RenderLayer.cpp:
  34528. (WebCore::RenderLayer::scrollRectToVisible):
  34529. 2007-03-28 Jungshik Shin <jungshik.shin@gmail.com>
  34530. Reviewed and landed by Darin
  34531. Get rid of some misuses of |islower| and |tolower| for non-ASCII characters.
  34532. http://bugs.webkit.org/show_bug.cgi?id=13138
  34533. * platform/StringImpl.cpp:
  34534. (WebCore::StringImpl::isLower):
  34535. (WebCore::StringImpl::lower):
  34536. (WebCore::StringImpl::equalIgnoringCase):
  34537. 2007-03-28 Antti Koivisto <antti@apple.com>
  34538. Reviewed by Hyatt.
  34539. Fix <rdar://problem/5092653>
  34540. REGRESSION: Image decoding making scrolling slow
  34541. If decoder gave back a null frame (which I think happens regularly if you don't have full frame
  34542. data yet for image that does not decode incrementally) m_decodedSize was incremented anyway. This
  34543. led to massive growth in calculated image size and eventually made cache prune constantly.
  34544. No test, I don't know how to make one for this.
  34545. * platform/graphics/BitmapImage.cpp:
  34546. (WebCore::BitmapImage::cacheFrame):
  34547. 2007-03-28 Adele Peterson <adele@apple.com>
  34548. Reviewed by Kevin M.
  34549. WebCore part of fix for <rdar://problem/5095515> VitalSource Bookshelf should not pass return statements into stringByEvaluatingJavaScriptFromString
  34550. * page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  34551. Convert return value to a string. This matches the behavior in Safari 2.0.
  34552. 2007-03-28 Alexey Proskuryakov <ap@webkit.org>
  34553. Reviewed by Darin.
  34554. http://bugs.webkit.org/show_bug.cgi?id=13190
  34555. XPath incorrectly handles namespaces on attributes
  34556. * xml/XPathStep.cpp:
  34557. (WebCore::XPath::Step::nodesInAxis): Added a special case for faster attribute lookup; gives a slight but
  34558. measurable performance improvement for bug 13021.
  34559. (WebCore::XPath::Step::nodeMatches): Fixed NameTest for attribute nodes.
  34560. * xml/XPathStep.h:
  34561. (WebCore::XPath::Step::NodeTest::NodeTest):
  34562. (WebCore::XPath::Step::NodeTest::namespaceURI):
  34563. (WebCore::XPath::Step::nodeTest):
  34564. (WebCore::XPath::Step::setNodeTest):
  34565. Move m_namespaceURI to NodeTest, where it belongs. Removed unused m_nodeTestData (oops!).
  34566. * xml/XPathGrammar.y:
  34567. * xml/XPathPath.cpp:
  34568. (WebCore::XPath::LocationPath::optimizeStepPair):
  34569. Accounted for the above change.
  34570. 2007-03-28 Oliver Hunt <oliver@apple.com>
  34571. rs=Hyatt.
  34572. Rollout local changes :-/
  34573. * loader/Cache.cpp:
  34574. (WebCore::Cache::pruneAllResources):
  34575. (WebCore::Cache::remove):
  34576. 2007-03-28 Oliver Hunt <oliver@apple.com>
  34577. Reviewed by Hyatt.
  34578. Roll out r20511 due to incredible badness
  34579. * loader/Cache.cpp:
  34580. (WebCore::Cache::pruneAllResources):
  34581. (WebCore::Cache::remove):
  34582. 2007-03-27 Oliver Hunt <oliver@apple.com>
  34583. Reviewed by Adam.
  34584. Don't enforce text-selection drag delay when we are
  34585. going to drag an image anyway.
  34586. Fixes rdar://problem/4668935
  34587. * page/EventHandler.cpp:
  34588. (WebCore::EventHandler::handleDrag):
  34589. 2007-03-27 Justin Garcia <justin.garcia@apple.com>
  34590. Build fix
  34591. * editing/markup.cpp:
  34592. (WebCore::startMarkup):
  34593. 2007-03-27 Justin Garcia <justin.garcia@apple.com>
  34594. Reviewed by darin
  34595. <rdar://problem/5091898> REGRESSION: GMail Editor: A line of underlined text copied with Select All pastes with wrong font family
  34596. createMarkup skipped elements if they were blocks
  34597. when called from moveParagraphs (because that function
  34598. must receive only inline content). This patch adds
  34599. code to inline these blocks instead of skipping them
  34600. so that we don't lose any of the style that they
  34601. contribute to the copied markup.
  34602. * editing/markup.cpp:
  34603. (WebCore::startMarkup): Add an inlineBlocks option.
  34604. Make sure to overwrite display:block coming from
  34605. a style sheet or the inline style declaration.
  34606. (WebCore::createMarkup): Don't refuse to include a
  34607. specialCommonAncestor that's a block if we were asked
  34608. to include only inline content, since we can now inline
  34609. block elements in startMarkup.
  34610. 2007-03-27 Adele Peterson <adele@apple.com>
  34611. Reviewed by Hyatt.
  34612. Fix for <rdar://problem/5026141> REGRESSION: Aperture Viewer Flashes when switching from Index Page to Detail page in Web Gallery
  34613. This disables the paint that occurs after WebCore finishes loading the document. We should reenable this when we
  34614. move the dispatchDidFinishLoad delegate callback to happen around the same time as the JS onload call. See <rdar://problem/5092361>.
  34615. * dom/Document.cpp: (WebCore::Document::implicitClose):
  34616. 2007-03-26 Justin Garcia <justin.garcia@apple.com>
  34617. Reviewed by darin
  34618. <rdar://problem/5065910> REGRESSION: In Mail and GMail, Can't apply color to pasted line of text
  34619. <rdar://problem/5084241> After deleting a paragraph of colored text, can't change text color
  34620. <rdar://problem/5065605> REGRESSION: Text copied with Select All + Copy loses color on Paste
  34621. <rdar://problem/4916887> GMAIL: Can't apply color to text once it becomes indented
  34622. * css/CSSComputedStyleDeclaration.cpp:
  34623. (WebCore::CSSComputedStyleDeclaration::copyInheritableProperties):
  34624. If a node's text fill color is invalid, then its children use
  34625. their font-color as their text fill color (they don't inherit
  34626. it). Likewise for stroke color.
  34627. 2007-03-27 Anders Carlsson <acarlsson@apple.com>
  34628. * platform/ScrollBar.h:
  34629. Use wtf/MathExtras.h instead of math.h
  34630. 2007-03-27 Zack Rusin <zrusin@trolltech.com>
  34631. Fix the compile - when using math.h functions
  34632. actually include the header with them.
  34633. * platform/ScrollBar.h:
  34634. 2007-03-27 Oliver Hunt <oliver@apple.com>
  34635. Reviewed by Maciej.
  34636. The WebArchiver needs all the subresources of a document to be accessible
  34637. through the DocLoader, so we can't remove a CachedResource simultaneously
  34638. from the global Cache and all DocLoaders, just because it needs to be
  34639. reloaded in one.
  34640. Fixes rdar://problem/5044366
  34641. * loader/Cache.cpp:
  34642. (WebCore::Cache::remove):
  34643. Don't evict the resource from all DocLoaders
  34644. * manual-tests/test-iframes-loading-the-same-resource.html: Added.
  34645. Alas it wasn't possible to make a nice layout test, even this manual test
  34646. is not entirely deterministic
  34647. 2007-03-27 Mark Rowe <mrowe@apple.com>
  34648. Build fix.
  34649. * platform/GlyphBuffer.h:
  34650. (WebCore::GlyphBuffer::clear):
  34651. 2007-03-27 Dave Hyatt <hyatt@apple.com>
  34652. Add support for glyph offsets to the GlyphBuffer.
  34653. Reviewed by olliej
  34654. * platform/Font.cpp:
  34655. (WebCore::Font::drawGlyphBuffer):
  34656. * platform/GlyphBuffer.h:
  34657. (WebCore::GlyphBuffer::clear):
  34658. (WebCore::GlyphBuffer::swap):
  34659. (WebCore::GlyphBuffer::offsetAt):
  34660. (WebCore::GlyphBuffer::add):
  34661. 2007-03-27 Antti Koivisto <antti@apple.com>
  34662. Keep buildbot happy.
  34663. * platform/mac/PlatformScrollBarMac.mm:
  34664. (WebCore::PlatformScrollbar::scrollbarHit):
  34665. 2007-03-26 Antti Koivisto <antti@apple.com>
  34666. Reviewed by Darin.
  34667. On Mac, support fine grained wheel events generated by trackpad and Mighty Mouse.
  34668. http://bugs.webkit.org/show_bug.cgi?id=13134
  34669. <rdar://problem/5076249?
  34670. * WebCore.exp:
  34671. Export _wkGetWheelEventDeltas
  34672. * page/EventHandler.cpp:
  34673. (WebCore::EventHandler::handleWheelEvent):
  34674. Remove (0, 0) scroll event hack, it is not needed anymore.
  34675. Do per-pixel scrolling for fine grained events.
  34676. * platform/PlatformWheelEvent.h:
  34677. (WebCore::PlatformWheelEvent::isContinuous):
  34678. Add new m_isContinuous boolean to indicate fine grained wheel events.
  34679. * platform/ScrollBar.cpp:
  34680. (WebCore::Scrollbar::Scrollbar):
  34681. (WebCore::Scrollbar::setValue):
  34682. (WebCore::Scrollbar::setSteps):
  34683. (WebCore::Scrollbar::scroll):
  34684. * platform/ScrollBar.h:
  34685. (WebCore::Scrollbar::value):
  34686. Use float to represent current position to support finer grained scrolling.
  34687. Add ScrollByPixel, remove ScrollByWheel (which was same as ScrollByLine anyway)
  34688. * platform/ScrollTypes.h:
  34689. (WebCore::):
  34690. * platform/gdk/WheelEventGdk.cpp:
  34691. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  34692. Initalize m_isContinuous
  34693. * platform/mac/WebCoreSystemInterface.h:
  34694. * platform/mac/WebCoreSystemInterface.mm:
  34695. Add wkGetWheelEventDeltas for getting fine grained wheel events
  34696. * platform/mac/WheelEventMac.mm:
  34697. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  34698. Get the wheel deltas using new wkGetWheelEventDeltas interface
  34699. * platform/qt/WheelEventQt.cpp:
  34700. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  34701. Initalize m_isContinuous
  34702. * rendering/RenderListBox.cpp:
  34703. (WebCore::RenderListBox::calcHeight):
  34704. Pass item height to scrollbar
  34705. 2007-03-26 Geoffrey Garen <ggaren@apple.com>
  34706. Reviewed by Darin Adler.
  34707. Fixed <rdar://problem/5088234> REGRESSION: Crash occurs at WebCore::Node::
  34708. createRendererIfNeeded() when changing map views with MS Virtual Earth
  34709. (http://www.ziprealty.com/)
  34710. The cause of the crash was the insertion of a <script> element whose
  34711. script removed it from the document. The <script> element would then be
  34712. garbage when the insertion routine went on to attach() it.
  34713. The solution here is to check that an element is still your child before
  34714. trying to attach() it. This matches the style of checks we do elsewhere
  34715. in the node insertion and removal code.
  34716. * dom/ContainerNode.cpp:
  34717. (WebCore::ContainerNode::insertBefore):
  34718. (WebCore::ContainerNode::replaceChild):
  34719. (WebCore::ContainerNode::appendChild):
  34720. 2007-03-26 David Carson <dacarson@gmail.com>
  34721. Reviewed by Darin, landed by Anders.
  34722. Manual test case for: REGRESSION (r19559): Java applet crash
  34723. http://bugs.webkit.org/show_bug.cgi?id=13142
  34724. <rdar://problem/5080340>
  34725. * manual-tests/liveconnect-applet-get-boolean.html: Added.
  34726. * manual-tests/resources/CheckerApplet.class: Added.
  34727. * manual-tests/resources/CheckerApplet.java: Added.
  34728. 2007-03-26 Mitz Pettel <mitz@webkit.org>
  34729. Reviewed and landed by Darin.
  34730. - fix http://bugs.webkit.org/show_bug.cgi?id=13194
  34731. <rdar://problem/5087738>
  34732. REGRESSION: Selection rects are wrong for images in search results from images.google.com
  34733. Test: fast/replaced/selection-rect-in-table-cell.html
  34734. * rendering/RenderReplaced.cpp:
  34735. (WebCore::RenderReplaced::selectionRect):
  34736. 2007-03-26 Geoffrey Garen <ggaren@apple.com>
  34737. Removed now-stale #includes of <assert.h>.
  34738. * WebCorePrefix.h:
  34739. * config.h:
  34740. * css/CSSGrammar.y:
  34741. * platform/Arena.cpp:
  34742. * platform/KURL.cpp:
  34743. * platform/SegmentedString.h:
  34744. * rendering/DataRef.h:
  34745. * rendering/RenderArena.cpp:
  34746. 2007-03-26 Geoffrey Garen <ggaren@apple.com>
  34747. Reviewed by Kevin McCulough.
  34748. Global replace of "assert(" with "ASSERT(" to assist debugging. Removed
  34749. one instance of commented-out code containing "assert(" instead of replacing it.
  34750. 2007-03-25 Antti Koivisto <antti@apple.com>
  34751. Reviewed by Adam.
  34752. Fix <rdar://problem/5049842>
  34753. Gmail Editor: Dragging message text in the message body results in a crash at WebCore::Frame::eventHandler()
  34754. Null check frame in m_dragTarget, it might be gone already.
  34755. * page/EventHandler.cpp:
  34756. (WebCore::EventHandler::updateDragAndDrop):
  34757. (WebCore::EventHandler::cancelDragAndDrop):
  34758. (WebCore::EventHandler::performDragAndDrop):
  34759. 2007-03-25 Alexey Proskuryakov <ap@webkit.org>
  34760. Reviewed by Darin.
  34761. A partial fix for http://bugs.webkit.org/show_bug.cgi?id=13021
  34762. XPath can be very slow
  34763. * xml/XPathExpression.cpp:
  34764. (WebCore::XPathExpression::evaluate): Reset a reference to the context node, as this may prevent the whole document
  34765. from being destroyed in time.
  34766. * dom/Attr.cpp:
  34767. (WebCore::Attr::createTextChild): Instead of calling appendChild(), just do the few operations it really needs to perform.
  34768. * dom/ContainerNode.h:
  34769. (WebCore::ContainerNode::fastSetFirstChild):
  34770. (WebCore::ContainerNode::fastSetLastChild):
  34771. Added operations that let Attr hack internal ContainerNode data (evil, but fast!).
  34772. * xml/XPathStep.cpp:
  34773. (WebCore::XPath::Step::evaluate):
  34774. (WebCore::XPath::Step::nodesInAxis):
  34775. (WebCore::XPath::Step::nodeMatches):
  34776. * xml/XPathStep.h:
  34777. Merged node testing into axis enumeration. This saves a lot of Vector resizing and passing, and is necessary for future
  34778. optimizations (sometimes, we can just pick the single result node instead of enumerating and filtering the whole axis).
  34779. 2007-03-24 Mitz Pettel <mitz@webkit.org>
  34780. Reviewed by Darin.
  34781. - fix http://bugs.webkit.org/show_bug.cgi?id=13156
  34782. REGRESSION (r19621): Pasting breakable content where wrapped line is too long to fit in a textarea fails to draw a horizontal scrollbar
  34783. Test: fast/text/midword-break-after-breakable-char.html
  34784. Breaking in the middle of the word
  34785. is allowed only if no breaking opportunity between words has occurred yet. The
  34786. first position on the line should not be considered "between words" even if
  34787. it is a breaking opportunity.
  34788. * rendering/bidi.cpp:
  34789. (WebCore::RenderBlock::findNextLineBreak): Changed according to the above. Also
  34790. cleaned up a couple of lines.
  34791. 2007-03-24 David Hyatt <hyatt@apple.com>
  34792. Fix for bugzilla bug 13187, place a hard limit on the amount of decoded data that WebCore will keep
  34793. around even on live pages (pages being displayed in tabs/windows or in the back/forward cache).
  34794. Images will decode to paint and once the decoded data exceeds the cache size, the decoded data will be
  34795. tossed.
  34796. Refine the flushing algorithm to apply the two-pass decode/evict model to each LRU-SP queue individually, rather
  34797. than to all the lists at once. This allows the cache to evict large encoded resources before flushing small
  34798. or frequently accessed decoded onces.
  34799. Added information on live/decoded data to the cache statistics.
  34800. Reviewed by darin
  34801. * loader/Cache.cpp:
  34802. (WebCore::Cache::Cache):
  34803. (WebCore::Cache::pruneLiveResources):
  34804. (WebCore::Cache::pruneAllResources):
  34805. (WebCore::Cache::setMaximumSize):
  34806. (WebCore::Cache::remove):
  34807. (WebCore::Cache::lruListFor):
  34808. (WebCore::Cache::removeFromLRUList):
  34809. (WebCore::Cache::insertInLRUList):
  34810. (WebCore::Cache::liveLRUListFor):
  34811. (WebCore::Cache::removeFromLiveResourcesList):
  34812. (WebCore::Cache::insertInLiveResourcesList):
  34813. (WebCore::Cache::addToLiveResourcesSize):
  34814. (WebCore::Cache::removeFromLiveResourcesSize):
  34815. (WebCore::Cache::adjustSize):
  34816. (WebCore::Cache::getStatistics):
  34817. * loader/Cache.h:
  34818. (WebCore::Cache::TypeStatistic::TypeStatistic):
  34819. * loader/CachedImage.cpp:
  34820. (WebCore::CachedImage::decodedSizeWillChange):
  34821. (WebCore::CachedImage::decodedSizeChanged):
  34822. * loader/CachedImage.h:
  34823. * loader/CachedResource.cpp:
  34824. (WebCore::CachedResource::CachedResource):
  34825. (WebCore::CachedResource::ref):
  34826. (WebCore::CachedResource::deref):
  34827. (WebCore::CachedResource::setEncodedSize):
  34828. (WebCore::CachedResource::liveResourceAccessed):
  34829. * loader/CachedResource.h:
  34830. (WebCore::CachedResource::liveAccessCount):
  34831. (WebCore::CachedResource::resetLiveAccessCount):
  34832. (WebCore::CachedResource::increaseLiveAccessCount):
  34833. * platform/graphics/BitmapImage.cpp:
  34834. (WebCore::BitmapImage::destroyDecodedData):
  34835. (WebCore::BitmapImage::cacheFrame):
  34836. * platform/graphics/ImageObserver.h:
  34837. * rendering/RenderBox.cpp:
  34838. (WebCore::RenderBox::paintBackgroundExtended):
  34839. * rendering/RenderImage.cpp:
  34840. (WebCore::RenderImage::paint):
  34841. * rendering/RenderListMarker.cpp:
  34842. (WebCore::RenderListMarker::paint):
  34843. * rendering/RenderObject.cpp:
  34844. (WebCore::RenderObject::paintBorderImage):
  34845. 2007-03-24 Darin Adler <darin@apple.com>
  34846. Reviewed by Mitz.
  34847. - fix http://bugs.webkit.org/show_bug.cgi?id=13123
  34848. CSS selectors that use :lang, :not, and namespaces do not serialize correctly
  34849. Test: fast/css/css-selector-text.html
  34850. * css/CSSSelector.cpp: (WebCore::CSSSelector::selectorText): Add the namespace
  34851. prefix for tag or attribute names, the sub-selector for :not, and the argument
  34852. for :lang.
  34853. 2007-03-24 Brady Eidson <beidson@apple.com>
  34854. Reviewed by Adam
  34855. <rdar://problem/5086210> - Move RetainPtr to WTF
  34856. * ForwardingHeaders/wtf/RetainPtr.h: Added.
  34857. * WebCore.xcodeproj/project.pbxproj: Removed WebCore/RetainPtr.h
  34858. * history/HistoryItem.h: Changed #include to <wtf/RetainPtr.h>
  34859. * history/PageCache.h: Ditto
  34860. * page/mac/WebCoreFrameBridge.mm: Ditto
  34861. * platform/ContextMenu.h: Ditto
  34862. * platform/ContextMenuItem.h: Ditto
  34863. * platform/DragImage.h: Ditto
  34864. * platform/FileChooser.h: Ditto
  34865. * platform/PlatformKeyboardEvent.h: Ditto
  34866. * platform/PopupMenu.h: Ditto
  34867. * platform/SharedBuffer.h: Ditto
  34868. * platform/cf/RetainPtr.h: Removed.
  34869. * platform/graphics/Icon.h: Changed #include
  34870. * platform/mac/ClipboardMac.h: Ditto
  34871. * platform/mac/PasteboardMac.mm: Ditto
  34872. * platform/mac/WidgetMac.mm: Ditto
  34873. * platform/network/AuthenticationChallenge.h: Ditto
  34874. * platform/network/ResourceError.h: Ditto
  34875. * platform/network/ResourceHandle.h: Ditto
  34876. * platform/network/ResourceRequest.h: Ditto
  34877. * platform/network/ResourceResponse.h: Ditto
  34878. * rendering/RenderThemeMac.mm: Ditto
  34879. 2007-03-24 Mitz Pettel <mitz@webkit.org>
  34880. Fix for <rdar://problem/5086797>, layoutPending is now reporting incorrect results, which will lead
  34881. to all sorts of layout issues. This is in bugzilla as 13179.
  34882. Reviewed by hyatt
  34883. - fix http://bugs.webkit.org/show_bug.cgi?id=13179
  34884. REGRESSION (r20410): In debug builds, loading a certain page is suspended until redisplay is forced
  34885. Moved the root->needsLayout() check from layoutPending() to needsLayout()
  34886. to restore the behavior before r20324.
  34887. * page/FrameView.cpp:
  34888. (WebCore::FrameView::layoutPending):
  34889. (WebCore::FrameView::needsLayout):
  34890. 2007-03-24 Mitz Pettel <mitz@webkit.org>
  34891. Reviewed by Adele.
  34892. - fix http://bugs.webkit.org/show_bug.cgi?id=13180
  34893. <rdar://problem/5084478>
  34894. Another debug build crash from ASSERTION FAILED: !needsLayout()
  34895. No test possible because updateRendering() is always called after script
  34896. execution.
  34897. * page/FrameView.cpp:
  34898. (WebCore::FrameView::layout): Get the layout root after calling recalcStyle()
  34899. since a style recalc may result in needing to do start layout at the root.
  34900. 2007-03-24 Nikolas Zimmermann <zimmermann@kde.org>
  34901. Not reviewed. Build fix.
  34902. Fix FloatRect vs. IntRect confusion.
  34903. * rendering/RenderSVGImage.cpp:
  34904. (WebCore::RenderSVGImage::nodeAtPoint):
  34905. 2007-03-25 Mark Rowe <mrowe@apple.com>
  34906. Fix incorrect radar number.
  34907. * platform/network/mac/ResourceHandleMac.mm:
  34908. (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
  34909. 2007-03-23 Nikolas Zimmermann <zimmermann@kde.org>
  34910. Reviewed by Oliver.
  34911. Fix all known RenderSVGImage problems.
  34912. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12126 (RenderSVGImage seems to suffer from integer overflow)
  34913. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12442 (raster images disappearing during script execution (SVG))
  34914. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12572 (WebKit does not properly invalidate image region after image load)
  34915. Added test: svg/custom/scrolling-embedded-svg-file-image-repaint-problem.html
  34916. In RenderSVGImage::paint, do not call shouldPaint() as this will never work properly for SVG renderers, as shouldPaint
  34917. doesn't take into account any special SVG transformation (localTransform/absoluteTransform). Just remove the call.
  34918. Fix hit detection on RenderSVGImage - it didn't work properly at all. No idea why I didn't notice before.
  34919. Thanks Andreas Neumann once again for writing excellent bug reports and pointing me to them :-)
  34920. The carto.net navigation tools work as expected now, and also the "dock like" image effect example.
  34921. * rendering/RenderSVGImage.cpp:
  34922. (WebCore::RenderSVGImage::paint):
  34923. (WebCore::RenderSVGImage::nodeAtPoint):
  34924. 2007-03-24 Mitz Pettel <mitz@webkit.org>
  34925. Reviewed by Dave Hyatt.
  34926. - http://bugs.webkit.org/show_bug.cgi?id=13177
  34927. Suppress control characters in the ATSUI code path
  34928. * platform/mac/FontMac.mm:
  34929. (WebCore::overrideLayoutOperation):
  34930. (WebCore::ATSULayoutParameters::initialize):
  34931. 2007-03-24 David Hyatt <hyatt@apple.com>
  34932. Fix for <rdar://problem/5086400>, images scrolled offscreen continue to animate. Safari 2 would
  34933. halt animations when images were no longer visible.
  34934. Reviewed by mjs, olliej
  34935. * platform/graphics/BitmapImage.cpp:
  34936. (WebCore::BitmapImage::advanceAnimation):
  34937. 2007-03-24 David Hyatt <hyatt@apple.com>
  34938. Fix for <rdar://problem/508328>, sluggish text entry in search field. Make sure
  34939. our size actually changed before we decide to do a full repaint because of background/border
  34940. complexities.
  34941. Reviewed by aroben
  34942. * rendering/RenderObject.cpp:
  34943. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  34944. 2007-03-23 Dave Hyatt <hyatt@apple.com>
  34945. Fix for <rdar://problem/5048219>, spurious glyphs in gmail. This is bugzilla bug 13136, which
  34946. will remain open to cover patching the complex text path.
  34947. Reviewed by aroben
  34948. * platform/Font.cpp:
  34949. (WebCore::Font::glyphDataForCharacter):
  34950. * platform/Font.h:
  34951. (WebCore::Font::treatAsZeroWidthSpace):
  34952. * platform/GlyphPageTreeNode.cpp:
  34953. (WebCore::GlyphPageTreeNode::initializePage):
  34954. 2007-03-23 Mitz Pettel <mitz@webkit.org>
  34955. Reviewed by Adele.
  34956. - fix http://bugs.webkit.org/show_bug.cgi?id=13153
  34957. REGRESSION: Visual highlighting of pre-populated blank line in textarea is broken
  34958. - fix a bug where selecting across a soft line break did not highlight to
  34959. the end of the first line if it contained skipped whitespace
  34960. Test: fast/text/selection-hard-linebreak.html
  34961. * rendering/InlineTextBox.cpp:
  34962. (WebCore::InlineTextBox::selectionState): Changed to treat a selection that ends on the
  34963. end of a hard line break as if it ends after the line break. Fixed the case of a selection
  34964. that starts and ends in the same text object as the box but does not intersect it
  34965. to return SelectionNone instead of selectionBoth.
  34966. 2007-03-23 Mitz Pettel <mitz@webkit.org>
  34967. Reviewed by Adele.
  34968. - fix http://bugs.webkit.org/show_bug.cgi?id=13124
  34969. REGRESSION: Reproducible crash in Widget::getView
  34970. Test: fast/frames/hover-timer-crash.html
  34971. * page/Frame.cpp:
  34972. (WebCore::Frame::setView): Added a call to EventHandler::clear().
  34973. 2007-03-23 Justin Garcia <justin.garcia@apple.com>
  34974. Reviewed by adele
  34975. <rdar://problem/5078739>
  34976. Crash in in ReplaceSelectionCommand if the fragment contains only a style span
  34977. * editing/ReplaceSelectionCommand.cpp:
  34978. (WebCore::ReplaceSelectionCommand::doApply): Check
  34979. for an empty fragment after removing a redundant
  34980. style span instead of before.
  34981. 2007-03-23 David Hyatt <hyatt@apple.com>
  34982. <rdar://problem/5085063>
  34983. Fix non-looping animation on cuteoverload.com. Just always flush
  34984. decoded data for large animated images to avoid our cache getting
  34985. out of sync with the image source.
  34986. Reviewed by ggaren
  34987. * platform/graphics/BitmapImage.cpp:
  34988. (WebCore::BitmapImage::advanceAnimation):
  34989. 2007-03-23 Adele Peterson <adele@apple.com>
  34990. Reviewed by Darin.
  34991. Fix for <rdar://problem/5061024> REGRESSION: Returning false from onkeypress event on Input is ignored when key is Tab
  34992. http://bugs.webkit.org/show_bug.cgi?id= 13020
  34993. No known way to add a layout test for this. We would need a way to know exactly how the event was consumed.
  34994. * page/EventHandler.cpp: (WebCore::EventHandler::defaultKeyboardEventHandler):
  34995. If the keypress event has its default behavior prevented, then we should consider the keydown event handled.
  34996. 2007-03-23 Justin Garcia <justin.garcia@apple.com>
  34997. Reviewed by darin
  34998. <rdar://problem/5080333>
  34999. REGRESSION: Selection changes when changing the alignment of an image
  35000. Regression occurred when we started using moveParagraphs
  35001. to move content in applyBlockStyle. moveParagraphs
  35002. moves by copying, deleting and reinserting content, and
  35003. so must be accompanied by selection preservation code.
  35004. That code uses rangeFromLocationAndLength and rangeLength,
  35005. which use TextIterators, which don't emit anything for images
  35006. and other replaced elements, causing this bug.
  35007. * editing/ApplyStyleCommand.cpp:
  35008. (WebCore::ApplyStyleCommand::applyBlockStyle): Ask rangeLength
  35009. and rangeFromLocationAndLength to request that their
  35010. TextIterators emit spaces for replaced elements.
  35011. Use rangeCompliantEquivalent()s when creating a Range from
  35012. VisiblePositions, since some VisiblePositions have illegal
  35013. deepEquivalent()s.
  35014. * editing/CompositeEditCommand.cpp:
  35015. (WebCore::CompositeEditCommand::moveParagraphs): Ditto.
  35016. * editing/TextIterator.cpp:
  35017. (WebCore::TextIterator::TextIterator):
  35018. (WebCore::TextIterator::handleReplacedElement): Emit
  35019. a space if requested.
  35020. (WebCore::TextIterator::representNodeOffsetZero): Emit
  35021. ranges before m_node, not around m_lastTextNode. These
  35022. ranges should represent the part of the document associated
  35023. with the emitted character.
  35024. (WebCore::TextIterator::rangeLength): Take in the new bool.
  35025. (WebCore::TextIterator::rangeFromLocationAndLength): Ditto.
  35026. Also, don't loop an extra time after finding the end of the
  35027. range when we're looking for zero length ranges. This appeared
  35028. to be a workaround for the bugs fixed in representNodeOffsetZero
  35029. in this patch.
  35030. * editing/TextIterator.h:
  35031. 2007-03-24 Mark Rowe <mrowe@apple.com>
  35032. Rubber-stamped by Darin.
  35033. * Configurations/WebCore.xcconfig: Remove unnecessary INFOPLIST_PREPROCESS.
  35034. 2007-03-23 Darin Adler <darin@apple.com>
  35035. * html/HTMLBodyElement.cpp: Fix comment typo.
  35036. 2007-03-23 Adam Treat <adam@staikos.net>
  35037. Reviewed and committed by George.
  35038. Patch from Adam Treat to make the Qt build work without SVG and XSLT.
  35039. XMLNames is required in any case.
  35040. * WebCore.pro:
  35041. 2007-03-23 Darin Adler <darin@apple.com>
  35042. Reviewed by Hyatt.
  35043. - <rdar://problem/5074439> handle margins on frame and iframe elements
  35044. without involving FrameView, FrameLoader, etc.
  35045. * html/HTMLBodyElement.cpp: (WebCore::HTMLBodyElement::insertedIntoDocument):
  35046. Grab the margin from the frame directly here. There was no real benefit
  35047. to doing this via FrameView. Later we can delete quite a bit of unneeded code
  35048. here and in WebKit that exists only to set up the margin values in FrameView,
  35049. which are now unused.
  35050. 2007-03-23 Adele Peterson <adele@apple.com>
  35051. Reviewed by Darin.
  35052. Fix for <rdar://problem/5080428> REGRESSION: getting value for hidden input element fails after the fix for Bug 11866
  35053. http://bugs.webkit.org/show_bug.cgi?id=13121
  35054. Rolled out the change for 11866 that made hidden input elements store the value separately from the value attribute.
  35055. Added an m_originalValue field that gets set when the element is done being parsed (in closeRenderer). In reset,
  35056. use the m_originalValue for hidden input elements.
  35057. * html/HTMLInputElement.cpp:
  35058. (WebCore::HTMLInputElement::closeRenderer):
  35059. (WebCore::HTMLInputElement::reset):
  35060. (WebCore::HTMLInputElement::setValue):
  35061. (WebCore::HTMLInputElement::storesValueSeparateFromAttribute):
  35062. * html/HTMLInputElement.h:
  35063. 2007-03-23 Mitz Pettel <mitz@webkit.org>
  35064. Reviewed by Dave Hyatt.
  35065. - fix http://bugs.webkit.org/show_bug.cgi?id=13157
  35066. <rdar://problem/5083995>
  35067. List markers positioned incorrectly and don't repaint properly on Oxford homepage
  35068. Test: fast/lists/marker-image-error.html
  35069. * rendering/RenderListMarker.cpp:
  35070. (WebCore::RenderListMarker::imageChanged): Mark ourselves for relayout if
  35071. the image failed to load, since that means we will use a bullet instead.
  35072. 2007-03-23 Zack Rusin <zrusin@trolltech.com>
  35073. Fix the compile.
  35074. * platform/graphics/qt/ImageSourceQt.cpp:
  35075. 2007-03-22 Dave Hyatt <hyatt@apple.com>
  35076. Fix for <rdar://problem/5083072>.
  35077. * page/Frame.cpp:
  35078. (WebCore::Frame::setPrinting):
  35079. (WebCore::Frame::forceLayoutWithPageWidthRange):
  35080. * page/Frame.h:
  35081. * page/mac/WebCoreFrameBridge.mm:
  35082. (-[WebCoreFrameBridge forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
  35083. 2007-03-22 Anders Carlsson <acarlsson@apple.com>
  35084. Reviewed by Ada.
  35085. <rdar://problem/5074974>
  35086. CrashTracer: [USER] repro crash in Safari at com.apple.WebCore: WebCore::FrameLoader::activeDocumentLoader const + 6
  35087. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  35088. (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
  35089. Don't use ResourceResponse:isHTTP here since that only looks at the protocol instead of if the response came from a
  35090. HTTP server (and not a web archive).
  35091. 2007-03-22 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  35092. Not reviewed - gdk build fix.
  35093. * platform/graphics/cairo/ImageSourceCairo.cpp:
  35094. 2007-03-22 Dave Hyatt <hyatt@apple.com>
  35095. Fix for <rdar://problem/5083473>. Make sure wheeling still forwards to the frame view even
  35096. when no node is hit. Technically not ever hitting a node is a regression from the RenderView
  35097. size changes (making it be the size of the initial containing block according to CSS2.1), but
  35098. we should still handle this case gracefully in case it comes up again.
  35099. Reviewed by olliej
  35100. * page/EventHandler.cpp:
  35101. (WebCore::EventHandler::handleWheelEvent):
  35102. 2007-03-22 Justin Garcia <justin.garcia@apple.com>
  35103. Reviewed by kevin
  35104. <rdar://problem/5081257>
  35105. REGRESSION: New Mail signatures start out empty
  35106. * editing/VisiblePosition.cpp:
  35107. (WebCore::VisiblePosition::canonicalPosition): Allow
  35108. descent from positions inside the document into an
  35109. editable body.
  35110. 2007-03-22 Brady Eidson <beidson@apple.com>
  35111. Reviewed by Adele and John
  35112. <rdar://5043528> - Prepare for new API
  35113. * platform/network/ResourceHandle.cpp:
  35114. (WebCore::ResourceHandle::clearAuthentication): Clear CF type
  35115. 2007-03-22 Beth Dakin <bdakin@apple.com>
  35116. Patch by Hyatt, reviewed and committed by me.
  35117. Does not reproduce consistently, so a layout test does not seem
  35118. possible.
  35119. Fix for <rdar://problem/5082421> Constantly hitting ASSERT(!
  35120. needsLayout()) in RenderView::paint()
  35121. * page/FrameView.cpp:
  35122. (WebCore::FrameView::layoutPending): It is not enough to ask if the
  35123. layout timer is active. There may be times that we don't have a
  35124. body yet so we cannot schedule layout yet, but the root still needs
  35125. layout.
  35126. 2007-03-22 John Sullivan <sullivan@apple.com>
  35127. Reviewed by Darin
  35128. Followup for recent fix to 5079700, found by assertion added to Safari.
  35129. * page/mac/FrameMac.mm:
  35130. (WebCore::Frame::searchForLabelsBeforeElement):
  35131. Fixed another place in this method where an empty NSString was being returned instead of nil.
  35132. Cleaned up the style a little too.
  35133. 2007-03-22 David Hyatt <hyatt@apple.com>
  35134. Remove unnecessary destroyFrameAtIndex call. Now that we throw away
  35135. the image source, it is no longer needed.
  35136. Reviewed by beth
  35137. * platform/graphics/BitmapImage.cpp:
  35138. (WebCore::BitmapImage::destroyDecodedData):
  35139. 2007-03-22 David Harrison <harrison@apple.com>
  35140. Reviewed by Geoff, Darin.
  35141. <rdar://problem/5077892> In RapidWeaver 3.5.1, a crash occurs when attempting to load Safari Bookmarks in iMedia Browser
  35142. * platform/mac/ThreadCheck.mm:
  35143. (WebCore::_WebCoreThreadViolationCheck):
  35144. Change default on Tiger to NSLog rather than raise an exception.
  35145. 2007-03-22 Darin Adler <darin@apple.com>
  35146. Reviewed by Brady.
  35147. - use binary_search instead of hash table; slightly better performance and
  35148. less memory use
  35149. * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::portAllowed):
  35150. Use binary_search.
  35151. 2007-03-22 Darin Adler <darin@apple.com>
  35152. Reviewed by Adele.
  35153. - fix <rdar://problem/5074630> detachChildren call should move from WebKit to WebCore
  35154. * loader/FrameLoader.cpp: (WebCore::FrameLoader::setDocumentLoader):
  35155. Add a call to detachChildren() after the call to prepareForDataSourceReplacement().
  35156. There was no reason for this crucial loading step to be left to the client.
  35157. 2007-03-22 David Hyatt <hyatt@apple.com>
  35158. Minor refactoring and cleanup of the bridge calls that want to control layout settings on the RenderView.
  35159. Have the bridge talk through the FrameView instead of just asking for the RenderView directly.
  35160. Add an assert to help catch situations where the RenderView needs layout at paint time, since this is a known
  35161. catastrophic scenario that will (much of the time) result in a crash in RenderTableSection::paint.
  35162. Reviewed by aroben
  35163. * page/FrameView.cpp:
  35164. (WebCore::FrameView::adjustViewSize):
  35165. (WebCore::FrameView::needsLayout):
  35166. (WebCore::FrameView::setNeedsLayout):
  35167. * page/FrameView.h:
  35168. * page/mac/WebCoreFrameBridge.mm:
  35169. (-[WebCoreFrameBridge needsLayout]):
  35170. (-[WebCoreFrameBridge setNeedsLayout]):
  35171. * rendering/RenderView.cpp:
  35172. (WebCore::RenderView::paint):
  35173. 2007-03-21 Geoffrey Garen <ggaren@apple.com>
  35174. Reviewed by Beth Dakin.
  35175. Re-worked the fix in r20375. 'M' and 'm' are not the only commands that
  35176. accept "extra" coordinates -- virtually all commands accept them.
  35177. * ksvg2/svg/SVGParserUtilities.cpp:
  35178. (WebCore::SVGPathParser::parseSVG):
  35179. 2007-03-21 David Harrison <harrison@apple.com>
  35180. Reviewed by hyatt.
  35181. <rdar://problem/5072460> CrashTracer: [USER] 1 crashes in Xcode at com.apple.ImageIO.framework: getBandProcPNG + 168
  35182. An NSData object was being alloc/init'd, then returned callers who cast the pointer as a
  35183. CFDataRef, including calling CFRelease on it. The problem is that under garbage collection, the NS
  35184. retain count is ignored (it's always 0), but the CFRetain and CFRelease are not ignored. This
  35185. caused the object to be over-released. The solution that works in both GC and non-GC is to "transfer"
  35186. the initial NS retain count to the CF retain count, using HardRetainWithNSRelease.
  35187. The creator of the NSData was SharedBuffer::createNSData. The callers were PDFDocumentImage::dataChanged()
  35188. and ImageSource::setData(). This particular crash involved the ImageSource::setData() case.
  35189. * platform/SharedBuffer.h:
  35190. Declare createCFData().
  35191. * platform/graphics/cg/ImageSourceCG.cpp:
  35192. (WebCore::ImageSource::setData):
  35193. Call createCFData instead of createNSData.
  35194. * platform/graphics/cg/PDFDocumentImage.cpp:
  35195. (WebCore::PDFDocumentImage::dataChanged):
  35196. Call createCFData instead of createNSData.
  35197. * platform/mac/SharedBufferMac.mm:
  35198. (WebCore::SharedBuffer::createCFData):
  35199. Implement createCFData(). Use HardRetainWithNSRelease for gc safety.
  35200. 2007-03-21 Mitz Pettel <mitz@webkit.org>
  35201. Reviewed by Darin.
  35202. - fix http://bugs.webkit.org/show_bug.cgi?id=13145
  35203. Regression: Scrollbar not resizing after display none
  35204. Test: fast/dynamic/view-overflow.html
  35205. * rendering/RenderView.cpp:
  35206. (WebCore::RenderView::layout): Reset overflowHeight() and overflowWidth()
  35207. before calling docHeight() and docWidth(), since the former act as a lower
  35208. bound for the latter.
  35209. 2007-03-21 Geoffrey Garen <ggaren@apple.com>
  35210. Reviewed by Beth Dakin.
  35211. A little cleanup based work I've been doing on the SVG parsers.
  35212. * ksvg2/svg/SVGParserUtilities.h:
  35213. (WebCore::skipString):
  35214. * ksvg2/svg/SVGPreserveAspectRatio.cpp: Moved checkString into
  35215. SVGParserUtilities.h, so it could be with all its friends. Renamed
  35216. "checkString" to "skipString" to match the rest of the code and to be
  35217. clear about which functions move the buffer pointer.
  35218. (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
  35219. * ksvg2/svg/SVGTransformable.cpp:
  35220. (WebCore::SVGTransformable::parseTransformAttribute): Changed gotos into
  35221. returns. Removed unnecessary magic number.
  35222. 2007-03-21 Geoffrey Garen <ggaren@apple.com>
  35223. Reviewed by Beth Dakin.
  35224. Fixed <rdar://problem/5078471> SVG rgb color parser runs past end of
  35225. buffer when running fuzzing test
  35226. * ksvg2/svg/SVGColor.cpp:
  35227. (WebCore::parseNumberOrPercent): Check for past the end condition.
  35228. (WebCore::SVGColor::colorFromRGBColorString): Reversed "read past end
  35229. of buffer, then check if you're past the end" logic.
  35230. 2007-03-21 Geoffrey Garen <ggaren@apple.com>
  35231. Reviewed by Beth Dakin.
  35232. Fixed <rdar://problem/5079410> SVG path parser hangs, exhausts memory when
  35233. running fuzzer test
  35234. * ksvg2/svg/SVGParserUtilities.cpp:
  35235. (WebCore::SVGPathParser::parseSVG): Don't assume that extra digits are
  35236. always preceded by an 'M' or an 'm'.
  35237. 2007-03-21 John Sullivan <sullivan@apple.com>
  35238. Reviewed by Adam
  35239. - fixed <rdar://problem/5079700> REGRESSION (r19702): Name/password aren't autofilled
  35240. or saved for .Mac homepage login
  35241. * page/mac/FrameMac.mm:
  35242. (WebCore::Frame::searchForLabelsBeforeElement):
  35243. don't count empty strings as valid results
  35244. 2007-03-21 Justin Garcia <justin.garcia@apple.com>
  35245. Reviewed by darin
  35246. * editing/markup.cpp:
  35247. (WebCore::styleFromMatchedRulesAndInlineDecl):
  35248. Release the RefPtr to avoid increasing/decreasing
  35249. the refcount unnecessarily.
  35250. (WebCore::propertyMissingOrEqualToNone): Added and used
  35251. instead of converting values to strings.
  35252. (WebCore::elementHasTextDecorationProperty):
  35253. (WebCore::createMarkup):
  35254. 2007-03-21 Justin Garcia <justin.garcia@apple.com>
  35255. Reviewed by oliver
  35256. <rdar://problem/5075944>
  35257. REGRESSION: Partially selected underlined content pastes as plain text
  35258. We stopped adding markup for all the ancestors
  35259. of lastClosed up to the commonAncestorBlock
  35260. because it was adding a lot of unnecessary markup.
  35261. This caused us to lose underlining when copying a
  35262. partially selected underlined element (even though
  35263. we put all styles that the copied markup inherits
  35264. into a style span, because the text-decoration
  35265. isn't inheritable).
  35266. * editing/markup.cpp:
  35267. (WebCore::styleFromMatchedRulesAndInlineDecl): Moved
  35268. code here.
  35269. (WebCore::elementHasTextDecorationProperty): Added.
  35270. (WebCore::createMarkup): If the copied markup has a
  35271. text-decoration because some common ancestor has
  35272. a text-decoration property set, include that ancestor
  35273. and all its descendants in the copied markup.
  35274. 2007-03-21 Oliver Hunt <oliver@apple.com>
  35275. Reviewed by Antti.
  35276. Update a few SVG attribute parsers to be more defensive against
  35277. reading beyond the end of input.
  35278. Fixes rdar://problem/5077218 -- SVG transform parser runs past
  35279. end of buffer when running fuzzing test
  35280. * ksvg2/svg/SVGParserUtilities.cpp:
  35281. (WebCore::SVGPathParser::parseSVG):
  35282. * ksvg2/svg/SVGParserUtilities.h:
  35283. (WebCore::skipOptionalSpacesOrDelimiter):
  35284. * ksvg2/svg/SVGTransformable.cpp:
  35285. (WebCore::parseTransformParamList):
  35286. (WebCore::SVGTransformable::parseTransformAttribute):
  35287. 2007-03-21 Alexey Proskuryakov <ap@webkit.org>
  35288. Reviewed by Mitz.
  35289. http://bugs.webkit.org/show_bug.cgi?id=13140
  35290. Crash after loading SVG fragment with XMLHttpRequest (Yosemite Map Geology Layer)
  35291. Test: svg/carto.net/frameless-svg-parse-error.html
  35292. * ksvg2/misc/SVGDocumentExtensions.cpp:
  35293. (WebCore::SVGDocumentExtensions::reportError): Added a null check.
  35294. (WebCore::SVGDocumentExtensions::reportWarning): Ditto.
  35295. 2007-03-21 Beth Dakin <bdakin@apple.com>
  35296. Reviewed by Geoff.
  35297. Fix for <rdar://problem/5072678> Crash in
  35298. RenderLayer::scrollRectToVisible with MallocScribble enabled
  35299. I tried to fix this earlier today but my fix caused a regression
  35300. scrolling through RSS pages. It turns out that sometimes scroll
  35301. events need to propagate immediately, and sometimes they must be
  35302. delayed or they risk deleting objects that are expected to be
  35303. around after the event has propagated. Mitz's original fix made
  35304. sheduleEvent() only delay events that happen during layout. This
  35305. fix marks two other places in addition to layout where events also
  35306. need to be delayed. These two places are places that were marked
  35307. with FIXMEs that Mitz removed in his original patch. (There was a
  35308. third FIXME in RenderLayer::updateScrollInfoAfterLayout() but that
  35309. case is only called through layout and is covered by Mitz's
  35310. original patch.)
  35311. * page/FrameView.cpp:
  35312. (WebCore::FrameView::~FrameView): Added assertion.
  35313. (WebCore::FrameView::layout): Call new functions to increment and
  35314. decrement the queued events count.
  35315. (WebCore::FrameView::pauseScheduledEvents):
  35316. (WebCore::FrameView::resumeScheduledEvents): Decrement queued
  35317. events count and dispatch events if the count has zeroed.
  35318. * page/FrameView.h:
  35319. * rendering/RenderLayer.cpp:
  35320. (WebCore::RenderLayer::scrollRectToVisible):
  35321. (WebCore::Marquee::start):
  35322. 2007-03-21 Mitz Pettel <mitz@webkit.org>
  35323. Reviewed by John Sullivan.
  35324. - fix http://bugs.webkit.org/show_bug.cgi?id=13130
  35325. REGRESSION: Sometimes a frame resizer keeps following the mouse after mouseup
  35326. * rendering/RenderFrameSet.cpp:
  35327. (WebCore::RenderFrameSet::userResize): Reordered the code to allow resizing
  35328. to be terminated by a mouseup event regardless of whether the frameset needs
  35329. layout.
  35330. 2007-03-20 Anders Carlsson <acarlsson@apple.com>
  35331. Reviewed by Oliver.
  35332. <rdar://problem/5077252>
  35333. In NetNewsWire 2.1.1 and 3.0d62, a crash occurs after triple-clicking a link on the page
  35334. * loader/FrameLoader.cpp:
  35335. (WebCore::FrameLoader::load):
  35336. Move the m_inStopAllLoaders check to the load function that's common for loading a request or substitute data.
  35337. 2007-03-20 Brady Eidson <beidson@apple.com>
  35338. Reviewed by Anders.
  35339. <rdar://problem/5073391> and http://bugs.webkit.org/show_bug.cgi?id=13137
  35340. Crash in IconDatabase when private browsing is enabled.
  35341. The problem was caused by http://trac.webkit.org/projects/webkit/changeset/20182
  35342. which changed many uses of char[] and Vector<char> to SharedBuffer. The patch
  35343. tended to literally replace a Vector<char> with RefPtr<SharedBuffers> but forgot
  35344. to enforce the concept that Vector<char>'s always exist, whereas RefPtr<SharedBuffers>
  35345. can be null. This led to derefs.
  35346. I took the opportunity to rework the iconDB functions to live in a SharedBuffer
  35347. world, as that didn't exist when they were originally written - now they just return
  35348. SharedBuffers instead of taking a Vector<char>& as a parameter
  35349. * loader/icon/IconDatabase.cpp:
  35350. (WebCore::IconDatabase::imageDataForIconURL): Return a SharedBuffer
  35351. (WebCore::IconDatabase::iconForPageURL): Null check the SharedBuffer before asking
  35352. it if it's empty
  35353. (WebCore::IconDatabase::imageDataForIconURLQuery): Return a new SharedBuffer
  35354. * loader/icon/IconDatabase.h: Return SharedBuffer's instead of taking Vector<char>&'s
  35355. 2007-03-20 Adam Roben <aroben@apple.com>
  35356. Rubberstamped by Adele.
  35357. Roll out r20348 because it was causing crashes.
  35358. * page/FrameView.cpp:
  35359. (WebCore::FrameViewPrivate::FrameViewPrivate):
  35360. (WebCore::FrameView::layout):
  35361. (WebCore::FrameView::scheduleEvent):
  35362. 2007-03-20 Timothy Hatcher <timothy@apple.com>
  35363. Reviewed by Kevin Decker.
  35364. Rolling out part of r19828 that caused a scrolling regression in Mail.
  35365. <rdar://problem/4820817> Message jumps around when trying to select text
  35366. * platform/mac/ScrollViewMac.mm:
  35367. (WebCore::ScrollView::visibleContentRect):
  35368. (WebCore::ScrollView::updateContents):
  35369. 2007-03-20 Brady Eidson <beidson@apple.com>
  35370. Reviewed by John
  35371. <rdar://5071341> - Crash in IconLoader::finishLoading()
  35372. Though the reproducibility of the crash is still elusive, there's been a crasher likely uncovered
  35373. Hyatt's recent caching changings to the IconLoader. This crash tends to hit on sites without favicons,
  35374. that serve up complex 404 pages, often when the load is cancelled or redirected. Occasionally, it *seems*
  35375. the IconLoader is getting failed/cancelled twice.
  35376. This patch adds some assertions and a "fail gracefully in a release build" check that will have to
  35377. serve us until we know more about the cause.
  35378. * loader/icon/IconLoader.cpp:
  35379. (WebCore::IconLoader::didFail): Add an assertion to catch this case
  35380. (WebCore::IconLoader::finishLoading): Add an assertion to catch the case, and fail
  35381. gracefully in debug builds. Also add an efficiency check to not commit to the DB if there is no
  35382. IconURL
  35383. 2007-03-20 Antti Koivisto <antti@apple.com>
  35384. Reviewed by Darin.
  35385. - fix http://bugs.webkit.org/show_bug.cgi?id=10747
  35386. REGRESSION: Using two fingers on a trackpad to scroll inside a text area makes the whole page move
  35387. <rdar://problem/5045710>
  35388. Eat smooth scroll events in WebCore if pointer is over scrollable area. Not
  35389. really a good fix, smooth scrolling should be supported properly. It should do for now.
  35390. * page/EventHandler.cpp:
  35391. (WebCore::EventHandler::handleWheelEvent):
  35392. * rendering/RenderListBox.cpp:
  35393. (WebCore::RenderListBox::isScrollable):
  35394. * rendering/RenderListBox.h:
  35395. * rendering/RenderObject.cpp:
  35396. (WebCore::RenderObject::isScrollable):
  35397. * rendering/RenderObject.h:
  35398. * rendering/RenderTextControl.cpp:
  35399. (WebCore::RenderTextControl::isScrollable):
  35400. * rendering/RenderTextControl.h:
  35401. 2007-03-20 Beth Dakin <bdakin@apple.com>
  35402. Reviewed by Geoff.
  35403. Covered by existing test case.
  35404. Fix for <rdar://problem/5072678> Crash in
  35405. RenderLayer::scrollRectToVisible with MallocScribble enabled
  35406. This removes some code that was added with http://bugs.webkit.org/
  35407. show_bug.cgi?id=8360. This code was not needed to fix that bug, but
  35408. the idea behind it was that there are times when it is safe for
  35409. scheduleEvent() to propagate the event immediately. The
  35410. MallocScribble crash revealed that this assumption was a bit too
  35411. broad; the cause of the crash was that we were propagating events
  35412. immediately when it was not safe. Mitz and I discussed this online
  35413. and we agree that the safest solution is to revert to the old
  35414. behavior here, and always delay the propagation of the event.
  35415. * page/FrameView.cpp:
  35416. (WebCore::FrameViewPrivate::FrameViewPrivate):
  35417. (WebCore::FrameView::layout):
  35418. (WebCore::FrameView::scheduleEvent):
  35419. 2007-03-20 Brady Eidson <beidson@apple.com>
  35420. Reviewed by John Sullivan
  35421. Add some very helpful logging to the IconLoader's SubresourceLoaderClient impl.
  35422. * loader/icon/IconLoader.cpp:
  35423. (WebCore::IconLoader::didReceiveResponse):
  35424. (WebCore::IconLoader::didReceiveData):
  35425. (WebCore::IconLoader::didFail):
  35426. (WebCore::IconLoader::didFinishLoading):
  35427. 2007-03-20 Justin Garcia <justin.garcia@apple.com>
  35428. Reviewed by darin
  35429. <rdar://problem/5071074>
  35430. REGRESSION: Links are pasted as plain text at certain positions
  35431. moveParagraphs calls createMarkup without annotation, which leaves
  35432. out anchor elements that aren't fully selected.
  35433. * editing/CompositeEditCommand.cpp:
  35434. (WebCore::CompositeEditCommand::moveParagraphs): We don't want
  35435. createMarkup to do full annotation here. Doing so could include
  35436. special ancestor blocks, which would prevent the copied content
  35437. from appearing in the destination paragraph when it's re-inserted.
  35438. Annotation would also inline styles from style sheets, which is
  35439. unnecessary because the content is being moved to the same
  35440. document it's being moved from.
  35441. Added a new bool to createMarkup that when true allows markup for
  35442. special ancestors as long as they are inline when annotation is off.
  35443. * editing/markup.cpp:
  35444. (WebCore::createMarkup): Don't set specialCommonAncestor if annotation
  35445. is off, unless it's inline and we've been told it's ok to include such
  35446. elements.
  35447. * editing/markup.h:
  35448. 2007-03-20 Alexey Proskuryakov <ap@webkit.org>
  35449. Reviewed by Darin.
  35450. http://bugs.webkit.org/show_bug.cgi?id=12497
  35451. Implement XPath result ordering.
  35452. XPath::NodeVector typedef is replaced with a real XPath::NodeSet class that knows how
  35453. to sort itself, and can remember whether it has been already sorted.
  35454. * CMakeLists.txt:
  35455. * WebCore.pro:
  35456. * WebCore.xcodeproj/project.pbxproj:
  35457. * WebCoreSources.bkl:
  35458. Added XPathNodeSet files.
  35459. * xml/XPathExpression.cpp: Fixed includes.
  35460. * xml/XPathFunctions.cpp:
  35461. (WebCore::XPath::FunId::evaluate): Mark the resulting node-set as unsorted.
  35462. (WebCore::XPath::FunLocalName::evaluate): Replacing NodeVector with NodeSet.
  35463. (WebCore::XPath::FunNamespaceURI::evaluate): Ditto.
  35464. (WebCore::XPath::FunName::evaluate): Ditto.
  35465. (WebCore::XPath::FunCount::evaluate): Ditto.
  35466. (WebCore::XPath::FunSum::evaluate): Ditto.
  35467. * xml/XPathNodeSet.cpp: Added.
  35468. (WebCore::XPath::parentWithDepth):
  35469. (WebCore::XPath::sortBlock):
  35470. (WebCore::XPath::NodeSet::sort): Sort the node-set in document order.
  35471. (WebCore::XPath::NodeSet::reverse): Reverse the order (useful for making axes such as
  35472. parent or ancestor sorted).
  35473. (WebCore::XPath::NodeSet::firstNode): Returns the first node in document order; currently
  35474. implemented via fully sorting the node-set, but this can obviously be optimized.
  35475. (WebCore::XPath::NodeSet::anyNode): Added for symmetry with firstNode().
  35476. * xml/XPathNodeSet.h: Added.
  35477. (WebCore::XPath::NodeSet::NodeSet):
  35478. (WebCore::XPath::NodeSet::operator=):
  35479. (WebCore::XPath::NodeSet::size):
  35480. (WebCore::XPath::NodeSet::isEmpty):
  35481. (WebCore::XPath::NodeSet::operator[]):
  35482. (WebCore::XPath::NodeSet::reserveCapacity):
  35483. (WebCore::XPath::NodeSet::clear):
  35484. (WebCore::XPath::NodeSet::swap):
  35485. (WebCore::XPath::NodeSet::append):
  35486. (WebCore::XPath::NodeSet::markSorted):
  35487. (WebCore::XPath::NodeSet::isSorted):
  35488. Most of these methods just call Vector counterparts.
  35489. * xml/XPathParser.cpp: Updated the copyright notice.
  35490. * xml/XPathPath.cpp:
  35491. (WebCore::XPath::Filter::evaluate): Replacing NodeVector with NodeSet.
  35492. (WebCore::XPath::Path::evaluate): Ditto.
  35493. (WebCore::XPath::LocationPath::evaluate): Replacing NodeVector with NodeSet. This function
  35494. always marks the result as unsorted, because it is hard to tell whether a step breaks node order.
  35495. Identifying and implementing special cases when it is not necessary to do so is an important
  35496. future optimization.
  35497. * xml/XPathPath.h: Replacing NodeVector with NodeSet.
  35498. * xml/XPathPredicate.cpp:
  35499. (WebCore::XPath::EqTestOp::compare): Replacing NodeVector with NodeSet.
  35500. (WebCore::XPath::Union::evaluate): Replacing NodeVector with NodeSet. Currently, Union just
  35501. marks the result as unordered; we can consider using merge sort to avoid this.
  35502. * xml/XPathResult.cpp:
  35503. (WebCore::XPathResult::XPathResult): Replacing NodeVector with NodeSet.
  35504. (WebCore::XPathResult::singleNodeValue): Ditto.
  35505. (WebCore::XPathResult::snapshotLength): Ditto.
  35506. (WebCore::XPathResult::iterateNext): Ditto.
  35507. (WebCore::XPathResult::snapshotItem): Ditto.
  35508. (WebCore::XPathResult::convertTo): Ditto. Sort the result when requested to.
  35509. * xml/XPathResult.h: Replacing NodeVector with NodeSet.
  35510. * xml/XPathStep.cpp:
  35511. (WebCore::XPath::Step::evaluate): If the input is not sorted, mark the output as such, too.
  35512. (WebCore::XPath::Step::nodesInAxis): Fixed a number of bugs when enumerating with an
  35513. attribute context node.
  35514. (WebCore::XPath::Step::nodeTestMatches): Replacing NodeVector with NodeSet.
  35515. * xml/XPathStep.h: Ditto.
  35516. * xml/XPathUtil.cpp:
  35517. (WebCore::XPath::isValidContextNode): XPath data model doesn't put attribute data into child
  35518. nodes, so passing such node as a context could cause problems.
  35519. * xml/XPathUtil.h: Removed NodeVector typedef.
  35520. * xml/XPathValue.cpp:
  35521. (WebCore::XPath::Value::Value):
  35522. (WebCore::XPath::Value::toNodeSet):
  35523. (WebCore::XPath::Value::toBoolean):
  35524. (WebCore::XPath::Value::toNumber):
  35525. (WebCore::XPath::Value::toString):
  35526. * xml/XPathValue.h:
  35527. (WebCore::XPath::Value::):
  35528. (WebCore::XPath::Value::isNodeSet):
  35529. Replacing NodeVector with NodeSet.
  35530. 2007-03-21 Mark Rowe <mrowe@apple.com>
  35531. Build fix.
  35532. * bindings/objc/WebScriptObject.mm:
  35533. (-[WebScriptObject methodForSelector:]):
  35534. (-[WebScriptObject respondsToSelector:]):
  35535. 2007-03-21 Mark Rowe <mrowe@apple.com>
  35536. Reviewed by Tim Hatcher.
  35537. Fix for http://bugs.webkit.org/show_bug.cgi?id=13129.
  35538. Bug 13129: Democracy Player dies in NSException from WebScriptObject on startup.
  35539. Some cross-language scripting bridges use the presence of -(int)count to determine
  35540. whether to treat objects as sequence-like. All WebScriptObject's exposed this method
  35541. which lead to non-collection WebScriptObject's being mishandled by PyObjC. We now
  35542. expose -count only when the object we wrap looks like a collection from a JavaScript
  35543. point of view (eg, it has a length property).
  35544. * bindings/objc/WebScriptObject.mm:
  35545. (-[WebScriptObject _shouldRespondToCount]):
  35546. (-[WebScriptObject methodForSelector:]):
  35547. (-[WebScriptObject respondsToSelector:]):
  35548. (-[WebScriptObject _count]):
  35549. * bindings/objc/WebScriptObjectPrivate.h:
  35550. 2007-03-20 Darin Adler <darin@apple.com>
  35551. * page/EventHandler.cpp: (WebCore::EventHandler::handleMouseMoveEvent):
  35552. Fix obvious typo in the change from last night -- forgot to assign to the variable.
  35553. 2007-03-20 Dave Hyatt <hyatt@apple.com>
  35554. Refactor fonts a bit for portability.
  35555. Reviewed by aroben
  35556. * platform/Font.cpp:
  35557. (WebCore::Font::drawSimpleText):
  35558. (WebCore::Font::drawGlyphBuffer):
  35559. (WebCore::Font::floatWidthForSimpleText):
  35560. * platform/Font.h:
  35561. * platform/FontData.h:
  35562. (WebCore::FontData::isSystemFont):
  35563. (WebCore::FontData::scriptCache):
  35564. * platform/GlyphBuffer.h:
  35565. (WebCore::GlyphBuffer::add):
  35566. 2007-03-20 Anders Carlsson <acarlsson@apple.com>
  35567. Reviewed by Adam.
  35568. Stub out a couple of CFNetwork backend functions.
  35569. * platform/network/ResourceHandle.h:
  35570. 2007-03-19 Oliver Hunt <oliver@apple.com>
  35571. Reviewed by Ada.
  35572. Protect against possibility of JS detaching a frame (and losing its view)
  35573. midway through a mouse move.
  35574. * page/EventHandler.cpp:
  35575. (WebCore::EventHandler::handleMouseMoveEvent):
  35576. 2007-03-19 Alexey Proskuryakov <ap@webkit.org>
  35577. Reviewed by Darin.
  35578. http://bugs.webkit.org/show_bug.cgi?id=13107
  35579. XPath should raise an exception when trying to parse an unknown function
  35580. Test: fast/xpath/invalid-functions.html
  35581. * xml/XPathFunctions.cpp:
  35582. (WebCore::XPath::createFunction): Return 0 if the function couldn't be created.
  35583. * xml/XPathGrammar.y: Handle nulls returned from createFunction().
  35584. 2007-03-19 Adele Peterson <adele@apple.com>
  35585. Reviewed by Beth.
  35586. Fix for http://bugs.webkit.org/show_bug.cgi?id=13087
  35587. <rdar://problem/5064316> REGRESSION: Allow setting the checked attribute in js and in markup for unnamed radio buttons (dominos.com)
  35588. Test: fast/forms/radio_checked_name.html
  35589. We were matching a WinIE quirk that does not allow a user to check and uncheck an unnamed radio button. But they still
  35590. allow the checked attribute to be set in html, and changed in javascript. So this change matches that behavior.
  35591. * html/HTMLInputElement.cpp:
  35592. (WebCore::HTMLInputElement::parseMappedAttribute): We no longer need a special call to setChecked when parsing the name
  35593. attribute, since we setChecked will now work with unnamed radio buttons.
  35594. (WebCore::HTMLInputElement::preDispatchEventHandler): Added comment.
  35595. (WebCore::HTMLInputElement::setChecked): Don't check for the unnamed radio button case here.
  35596. (WebCore::HTMLInputElement::postDispatchEventHandler): Don't call setChecked for unnamed radio buttons.
  35597. (WebCore::HTMLInputElement::defaultEventHandler): ditto.
  35598. 2007-03-19 Adam Roben <aroben@apple.com>
  35599. Rubberstamped by Oliver.
  35600. * bridge/JavaScriptStatistics.cpp: Added missing header for
  35601. correctness.
  35602. 2007-03-19 Andrew Wellington <proton@wiretapped.net>
  35603. Reviewed by Maciej.
  35604. Really set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
  35605. * WebCore.xcodeproj/project.pbxproj:
  35606. 2007-03-19 Justin Garcia <justin.garcia@apple.com>
  35607. Reviewed by darin
  35608. <rdar://problem/5071074>
  35609. REGRESSION: Links that aren't fully selected copy and paste as only text
  35610. We stopped adding markup for all commonAncestorBlocks
  35611. and the ancestors of lastClosed up to them because it
  35612. was adding a lot of unnecessary markup.
  35613. * editing/markup.cpp:
  35614. (WebCore::createMarkup): Also include markup for nodes
  35615. up to an enclosing anchor. Cleaned up the code for
  35616. including special common ancestors a bit.
  35617. 2007-03-19 Nikolas Zimmermann <zimmermann@kde.org>
  35618. Reviewed by Lars Knoll.
  35619. Fix crash when opening a SVG document which contains SVG elements, but no <svg> root element.
  35620. Moving the mouse was crashing WebKit. Fixes svg/hixie/dynamic/006.xml.
  35621. * rendering/RenderObject.cpp:
  35622. (WebCore::RenderObject::updateHitTestResult):
  35623. 2007-03-19 Mitz Pettel <mitz@webkit.org>
  35624. Reviewed by Hyatt.
  35625. - fix http://bugs.webkit.org/show_bug.cgi?id=13117
  35626. REGRESSION (r14658): Flickering text fields when updating via javascript
  35627. * page/Frame.cpp:
  35628. (WebCore::Frame::forceLayout): Added a flag to allow partial relayout.
  35629. * page/Frame.h:
  35630. * page/mac/WebCoreFrameBridge.mm:
  35631. (-[WebCoreFrameBridge forceLayoutAdjustingViewSize:]): Allow partial relayout
  35632. if not adjusting view size.
  35633. (-[WebCoreFrameBridge needsLayout]): Changed to check for pending subtree
  35634. layout instead of just whether the root needs layout.
  35635. 2007-03-18 Nikolas Zimmermann <zimmermann@kde.org>
  35636. Reviewed by Maciej.
  35637. Make JS function calls on POD-types (ie. SVGLength) take effect.
  35638. Calling ie. newValueInSpecifiedUnits on SVGLength works as expected.
  35639. This worked fine before we switched to SVGLength POD type, so this
  35640. can be considered as P1 regression fix.
  35641. Partly fix svg/hixie/dynamic/005-broken.svg. We match Opera now though
  35642. it's not yet completly fixed. Setting baseVal attribute on SVGAnimatedString
  35643. doesn't work as expected - needs a seperated fix.
  35644. * bindings/scripts/CodeGeneratorJS.pm:
  35645. 2007-03-19 Adele Peterson <adele@apple.com>
  35646. Reviewed by Adam.
  35647. Adding comments and a little cleanup from my last checkin.
  35648. * html/HTMLSelectElement.cpp:
  35649. (WebCore::HTMLSelectElement::setSelectedIndex): Removed commented out assert. Added comment about how we use onChange.
  35650. (WebCore::HTMLSelectElement::selectAll): Added comment about how we use saveLastSelection and onChange.
  35651. (WebCore::HTMLSelectElement::dispatchFocusEvent): ditto.
  35652. (WebCore::HTMLSelectElement::dispatchBlurEvent): ditto.
  35653. (WebCore::HTMLSelectElement::menuListDefaultEventHandler): ditto.
  35654. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): ditto.
  35655. (WebCore::HTMLSelectElement::menuListOnChange): Added assert that usesMenuList() is true.
  35656. (WebCore::HTMLSelectElement::listBoxOnChange): Added assert that usesMenuList() is false.
  35657. (WebCore::HTMLSelectElement::saveLastSelection): Added early return for menu lists.
  35658. 2007-03-19 Mitz Pettel <mitz@webkit.org>
  35659. Reviewed by Tim Hatcher.
  35660. - fix http://bugs.webkit.org/show_bug.cgi?id=13091
  35661. REGRESSION (r20075): Wrong text style and pixel break in Apple Store Locator HUD
  35662. Test: fast/innerHTML/additional-inline-style.html
  35663. * editing/markup.cpp:
  35664. (WebCore::startMarkup): Changed to add inline style based on CSS rules only
  35665. in AnnotateForInterchange mode.
  35666. 2007-03-19 Zack Rusin <zrusin@trolltech.com>
  35667. Compile fix.
  35668. * platform/qt/ScrollViewQt.cpp:
  35669. (WebCore::ScrollView::update):
  35670. 2007-03-19 Adam Roben <aroben@apple.com>
  35671. Reviewed by Hyatt and Maciej.
  35672. Renamed WebCoreJavaScript to JavaScriptStatistics and made it C++ as
  35673. part of <rdar://problem/5071653>.
  35674. All layout tests pass.
  35675. * WebCore.exp: Updated.
  35676. * WebCore.xcodeproj/project.pbxproj: Updated.
  35677. * bridge/JavaScriptStatistics.cpp: Moved from
  35678. bridge/mac/WebCoreJavaScript.mm, and converted to C++.
  35679. (WebCore::collect):
  35680. (WebCore::JavaScriptStatistics::objectCount):
  35681. (WebCore::JavaScriptStatistics::interpreterCount):
  35682. (WebCore::JavaScriptStatistics::protectedObjectCount):
  35683. (WebCore::JavaScriptStatistics::rootObjectTypeCounts):
  35684. (WebCore::JavaScriptStatistics::garbageCollect):
  35685. (WebCore::JavaScriptStatistics::garbageCollectOnAlternateThread):
  35686. (WebCore::JavaScriptStatistics::shouldPrintExceptions):
  35687. (WebCore::JavaScriptStatistics::setShouldPrintExceptions):
  35688. * bridge/JavaScriptStatistics.h: Added.
  35689. * bridge/mac/WebCoreJavaScript.h: Removed.
  35690. * bridge/mac/WebCoreJavaScript.mm: Removed.
  35691. 2007-03-18 Maciej Stachowiak <mjs@apple.com>
  35692. Reviewed by Mark.
  35693. - avoid static construction (and global variable access) in a smarter, more portable way,
  35694. to later enable MUTLI_THREAD mode to work on other platforms and compilers.
  35695. * bindings/js/JSCustomXPathNSResolver.cpp:
  35696. (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
  35697. * bindings/js/JSHTMLInputElementBase.cpp:
  35698. (WebCore::JSHTMLInputElementBaseFunction::JSHTMLInputElementBaseFunction):
  35699. * bindings/js/JSHTMLOptionElementConstructor.cpp:
  35700. (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
  35701. * bindings/js/JSXMLHttpRequest.cpp:
  35702. (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
  35703. * bindings/js/JSXSLTProcessor.cpp:
  35704. (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp):
  35705. * bindings/js/kjs_dom.cpp:
  35706. (KJS::DOMNamedNodeMap::getOwnPropertySlot):
  35707. (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
  35708. * bindings/js/kjs_events.cpp:
  35709. (KJS::JSAbstractEventListener::handleEvent):
  35710. * bindings/js/kjs_html.cpp:
  35711. (KJS::HTMLElementFunction::HTMLElementFunction):
  35712. (KJS::JSHTMLCollection::getOwnPropertySlot):
  35713. * bindings/js/kjs_window.cpp:
  35714. (KJS::ScheduledAction::execute):
  35715. * bindings/objc/WebScriptObject.mm:
  35716. * bindings/scripts/CodeGeneratorJS.pm:
  35717. 2007-03-18 Andrew Wellington <proton@wiretapped.net>
  35718. Reviewed by Mark Rowe
  35719. Set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
  35720. * WebCore.xcodeproj/project.pbxproj:
  35721. 2007-03-18 David Hyatt <hyatt@apple.com>
  35722. Fix for REGRESSION bug 13108, frame borders being painted when they shouldn't be. Rework both frame borders
  35723. and resizing to be more like other browsers.
  35724. Reviewed by ggaren
  35725. fast/frames/no-frame-borders.html
  35726. * html/HTMLFrameElement.cpp:
  35727. (WebCore::HTMLFrameElement::HTMLFrameElement):
  35728. (WebCore::HTMLFrameElement::attach):
  35729. (WebCore::HTMLFrameElement::parseMappedAttribute):
  35730. * html/HTMLFrameElement.h:
  35731. (WebCore::HTMLFrameElement::hasFrameBorder):
  35732. * html/HTMLFrameElementBase.cpp:
  35733. (WebCore::HTMLFrameElementBase::HTMLFrameElementBase):
  35734. (WebCore::HTMLFrameElementBase::parseMappedAttribute):
  35735. * html/HTMLFrameElementBase.h:
  35736. * html/HTMLFrameSetElement.cpp:
  35737. (WebCore::HTMLFrameSetElement::attach):
  35738. * html/HTMLFrameSetElement.h:
  35739. (WebCore::HTMLFrameSetElement::hasFrameBorder):
  35740. * html/HTMLIFrameElement.cpp:
  35741. (WebCore::HTMLIFrameElement::HTMLIFrameElement):
  35742. * rendering/RenderFrame.cpp:
  35743. (WebCore::RenderFrame::edgeInfo):
  35744. * rendering/RenderFrame.h:
  35745. * rendering/RenderFrameSet.cpp:
  35746. (WebCore::RenderFrameSet::paint):
  35747. (WebCore::RenderFrameSet::GridAxis::resize):
  35748. (WebCore::RenderFrameSet::fillFromEdgeInfo):
  35749. (WebCore::RenderFrameSet::computeEdgeInfo):
  35750. (WebCore::RenderFrameSet::edgeInfo):
  35751. (WebCore::RenderFrameSet::layout):
  35752. (WebCore::RenderFrameSet::startResizing):
  35753. (WebCore::RenderFrameSet::continueResizing):
  35754. (WebCore::RenderFrameSet::canResizeRow):
  35755. (WebCore::RenderFrameSet::canResizeColumn):
  35756. (WebCore::RenderFrameSet::splitPosition):
  35757. (WebCore::RenderFrameSet::hitTestSplit):
  35758. (WebCore::RenderFrameSet::dump):
  35759. * rendering/RenderFrameSet.h:
  35760. (WebCore::):
  35761. (WebCore::FrameEdgeInfo::FrameEdgeInfo):
  35762. (WebCore::FrameEdgeInfo::preventResize):
  35763. (WebCore::FrameEdgeInfo::allowBorder):
  35764. (WebCore::FrameEdgeInfo::setPreventResize):
  35765. (WebCore::FrameEdgeInfo::setAllowBorder):
  35766. 2007-03-19 Mark Rowe <mrowe@apple.com>
  35767. Rubber-stamped by Brady.
  35768. Update references to bugzilla.opendarwin.org with bugs.webkit.org.
  35769. * ChangeLog:
  35770. * WebCore.vcproj/WebCore/build-generated-files.sh:
  35771. * manual-tests/ATSU-bad-layout.html:
  35772. * manual-tests/accidental-strict-mode.html:
  35773. * manual-tests/applet-param-no-name.html:
  35774. * manual-tests/bidi-parens.html:
  35775. * manual-tests/bugzilla-3855.html:
  35776. * manual-tests/bugzilla-4840.html:
  35777. * manual-tests/bugzilla-6821.html:
  35778. * manual-tests/containing-block-position-chage.html:
  35779. * manual-tests/contenteditable-link.html:
  35780. * manual-tests/css3-cursor-fallback-quirks.html:
  35781. * manual-tests/css3-cursor-fallback-strict.html:
  35782. * manual-tests/custom-cursors.html:
  35783. * manual-tests/dictionary-scrolled-iframe.html:
  35784. * manual-tests/dom-manipulation-on-resize.html:
  35785. * manual-tests/drag-image-to-address-bar.html:
  35786. * manual-tests/empty-link-target.html:
  35787. * manual-tests/empty-title-popup.html:
  35788. * manual-tests/first-line-style-crash.html:
  35789. * manual-tests/invalid-mouse-event.html:
  35790. * manual-tests/left-overflow-repaint.html:
  35791. * manual-tests/linkjump-3.html:
  35792. * manual-tests/log-keypress-events.html:
  35793. * manual-tests/named-window-blank-target.html:
  35794. * manual-tests/plain-text-paste.html:
  35795. * manual-tests/plugin-controller-datasource.html:
  35796. * manual-tests/pre-tab-selection-rect.html:
  35797. * manual-tests/redirection-target.html:
  35798. * manual-tests/redraw-page-cache-visited-links.html:
  35799. * manual-tests/reset-initiatedDrag.html:
  35800. * manual-tests/resources/named-window-blank-target-step2.html:
  35801. * manual-tests/resources/named-window-blank-target-step3.html:
  35802. * manual-tests/resources/named-window-blank-target-step4.html:
  35803. * manual-tests/resources/redraw-page-cache-visited-links-2.html:
  35804. * manual-tests/scrollbar-hittest.html:
  35805. * manual-tests/scrollbar-hittest2.html:
  35806. * manual-tests/subview-click-assertion.html:
  35807. * manual-tests/tabbing-input-google.html:
  35808. * manual-tests/text-field-autoscroll.html:
  35809. * manual-tests/textarea-after-stylesheet-link.html:
  35810. * manual-tests/textarea-focus.html:
  35811. * manual-tests/whitespace-pre-affinity.html:
  35812. 2007-03-18 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  35813. Not reviewed - gdk build fix.
  35814. * platform/gdk/ScrollViewGdk.cpp:
  35815. (WebCore::ScrollView::update): add a stub
  35816. 2007-03-18 Brady Eidson <beidson@apple.com>
  35817. Reviewed by Hyatt
  35818. http://bugs.webkit.org/show_bug.cgi?id=13111
  35819. When stopped a load before it completes, partial images become the
  35820. broken image icon
  35821. * loader/loader.cpp:
  35822. (WebCore::Loader::didFail): Split off into a method that knows the
  35823. difference between failed and cancelled. If a load is cancelled,
  35824. don't call error() on the object - only remove it from the cache
  35825. (WebCore::Loader::cancelRequests): Call didFail(loader, true)
  35826. * loader/loader.h: Added didFail(SubresourceLoader*, bool cancelled)
  35827. 2007-03-18 Mitz Pettel <mitz@webkit.org>
  35828. Reviewed by Adele.
  35829. - fix http://bugs.webkit.org/show_bug.cgi?id=13101
  35830. REGRESSION (NativeTextField): Specifying word-wrap:break-word makes text field wrap
  35831. Test: fast/forms/input-text-word-wrap.html
  35832. * rendering/RenderTextControl.cpp:
  35833. (WebCore::RenderTextControl::createInnerTextStyle): Force the inner block to
  35834. 'word-wrap:normal'.
  35835. 2007-03-18 Dan Waylonis <waylonis@mac.com>
  35836. Reviewed by Tim Hatcher.
  35837. Fix http://bugs.webkit.org/show_bug.cgi?id=13005
  35838. Bug 13005: WebScriptObject +throwException needs NULL check.
  35839. Add checking for NULL interpreter before throwing exception.
  35840. * bindings/objc/WebScriptObject.mm:
  35841. (+[WebScriptObject throwException:]):
  35842. 2007-03-18 Geoffrey Garen <ggaren@apple.com>
  35843. Reviewed by Oliver Hunt.
  35844. Fixed http://bugs.webkit.org/show_bug.cgi?id=13106
  35845. REGRESSION: Incomplete document.all implementation breaks abtelectronics.com
  35846. (Style Change Through JavaScript Blanks Content)
  35847. When indexing into collections, treat the empty string as an invalid argument,
  35848. instead of the number 0.
  35849. * bindings/js/kjs_html.cpp:
  35850. (KJS::JSHTMLCollection::getOwnPropertySlot):
  35851. (KJS::JSHTMLCollection::callAsFunction):
  35852. (KJS::JSHTMLCollectionPrototypeFunction::callAsFunction):
  35853. 2007-03-18 David Hyatt <hyatt@apple.com>
  35854. Use fillRect instead of drawLine, since drawLine has some odd behavior (it's only used for borders).
  35855. Reviewed by aroben
  35856. * platform/graphics/IntRect.h:
  35857. * rendering/RenderFrameSet.cpp:
  35858. (WebCore::RenderFrameSet::paintColumnBorder):
  35859. (WebCore::RenderFrameSet::paintRowBorder):
  35860. 2007-03-18 David Hyatt <hyatt@apple.com>
  35861. Change the frameborder color to be light gray for framesets.
  35862. Reviewed by aroben
  35863. * rendering/RenderFrameSet.cpp:
  35864. (WebCore::borderFillColor):
  35865. (WebCore::RenderFrameSet::paintColumnBorder):
  35866. (WebCore::RenderFrameSet::paintRowBorder):
  35867. 2007-03-18 David Hyatt <hyatt@apple.com>
  35868. Make iframes work properly with frameborder="0".
  35869. Reviewed by aroben
  35870. * html/HTMLIFrameElement.cpp:
  35871. (WebCore::HTMLIFrameElement::mapToEntry):
  35872. (WebCore::HTMLIFrameElement::parseMappedAttribute):
  35873. 2007-03-18 David Hyatt <hyatt@apple.com>
  35874. Add a 2px border by default to <iframe>s for compatibility with other browsers.
  35875. Reviewed by aroben
  35876. * css/html4.css:
  35877. 2007-03-18 David Hyatt <hyatt@apple.com>
  35878. Move frame borders out of WebKit and into WebCore.
  35879. Reviewed by aroben, olliej
  35880. * bridge/mac/FrameViewMac.mm:
  35881. * css/html4.css:
  35882. * html/HTMLFrameSetElement.cpp:
  35883. (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
  35884. (WebCore::HTMLFrameSetElement::mapToEntry):
  35885. (WebCore::HTMLFrameSetElement::parseMappedAttribute):
  35886. (WebCore::HTMLFrameSetElement::attach):
  35887. * html/HTMLFrameSetElement.h:
  35888. (WebCore::HTMLFrameSetElement::hasBorderColor):
  35889. * page/FrameView.cpp:
  35890. (WebCore::FrameViewPrivate::FrameViewPrivate):
  35891. * page/FrameView.h:
  35892. * page/mac/WebCoreFrameBridge.h:
  35893. * platform/graphics/IntRect.h:
  35894. (WebCore::IntRect::topLeft):
  35895. (WebCore::IntRect::topRight):
  35896. (WebCore::IntRect::bottomLeft):
  35897. (WebCore::IntRect::bottomRight):
  35898. * rendering/RenderFrame.cpp:
  35899. (WebCore::RenderFrame::viewCleared):
  35900. * rendering/RenderFrameSet.cpp:
  35901. (WebCore::borderStartEdgeColor):
  35902. (WebCore::borderEndEdgeColor):
  35903. (WebCore::RenderFrameSet::paintColumnBorder):
  35904. (WebCore::RenderFrameSet::paintRowBorder):
  35905. (WebCore::RenderFrameSet::paint):
  35906. * rendering/RenderFrameSet.h:
  35907. * rendering/RenderPartObject.cpp:
  35908. (WebCore::RenderPartObject::viewCleared):
  35909. * rendering/RenderView.cpp:
  35910. (WebCore::RenderView::repaintViewRectangle):
  35911. 2007-03-17 David Hyatt <hyatt@apple.com>
  35912. Make onload do an explicit paint when a top-level document is ready (to ensure that a first paint always
  35913. happens before any timers set by the onload can fire).
  35914. Reviewed by aroben
  35915. * dom/Document.cpp:
  35916. (WebCore::Document::implicitClose):
  35917. * platform/ScrollView.h:
  35918. * platform/mac/ScrollViewMac.mm:
  35919. (WebCore::ScrollView::update):
  35920. 2007-03-17 Dave Hyatt <hyatt@apple.com>
  35921. Prevent starvation of user input and painting when processing timers.
  35922. If we are already in the processing of a custom timer message, don't allow that
  35923. processing to do another PostMessage. Force SetTimer to be used instead.
  35924. Reviewed by ggaren
  35925. * platform/win/SharedTimerWin.cpp:
  35926. (WebCore::TimerWindowWndProc):
  35927. (WebCore::setSharedTimerFireTime):
  35928. 2007-03-17 Geoffrey Garen <ggaren@apple.com>
  35929. Reviewed by Beth Dakin.
  35930. Fixed <rdar://problem/5070967> REGRESSION (r20211): Repro crash when
  35931. closing View Source window
  35932. I award myself 0 points, and may God have mercy on my soul.
  35933. * bindings/js/kjs_proxy.cpp:
  35934. (WebCore::KJSProxy::~KJSProxy):
  35935. 2007-03-17 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  35936. Not reviewed - gdk build fix.
  35937. * platform/gdk/TemporaryLinkStubs.cpp:
  35938. (Pasteboard::writeURL):
  35939. 2007-03-17 David Hyatt <hyatt@apple.com>
  35940. Fix tiny PLT regression. Don't examine the border/background data for RenderImage when images change
  35941. unless we actually have a border/background.
  35942. Reviewed by Brady
  35943. * rendering/RenderImage.cpp:
  35944. (WebCore::RenderImage::imageChanged):
  35945. 2007-03-17 Nikolas Zimmermann <zimmermann@kde.org>
  35946. Reviewed by Sam Weinig.
  35947. Fixes: http://bugs.webkit.org/show_bug.cgi?id=13046 (CSS styles on hover and focus are broken for <use>)
  35948. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12838 (SVG <use> CSS styles broken)
  35949. Added test: svg/custom/use-css-events.svg
  35950. In general this fixes the peepo.co.uk website.
  35951. Forgot to pass the actual StyleChange to the recalcStyle() function,
  35952. when calling it on the shadow tree root element.
  35953. * ksvg2/svg/SVGUseElement.cpp:
  35954. (WebCore::SVGUseElement::recalcStyle):
  35955. 2007-03-17 Timothy Hatcher <timothy@apple.com>
  35956. Reviewed by Mark Rowe.
  35957. Made Version.xcconfig smarter when building for different configurations.
  35958. Now uses the 522+ OpenSource version for Debug and Release, while using the
  35959. full 522.4 version for Production builds. The system prefix is also computed
  35960. based on the current system, so 4522.4 on Tiger and 5522.4 on Leopard.
  35961. * Configurations/Version.xcconfig:
  35962. * Configurations/WebCore.xcconfig:
  35963. 2007-03-17 Antti Koivisto <antti@apple.com>
  35964. Reviewed by Adele.
  35965. Fix http://bugs.webkit.org/show_bug.cgi?id=12595
  35966. REGRESSION: Can't add item to cart at lnt.com (JS type error)
  35967. <rdar://problem/4722863>
  35968. Emulate Firefox behavior where form elements accessed by a name
  35969. can be accessed with that name later even if the name changes or
  35970. even if element is removed from the document.
  35971. This is loosely based on Darin's earlier patch for the same problem but
  35972. is much less expansive. It takes somewhat different approach to more closely
  35973. mimic Firefox behavior. Includes expanded test case.
  35974. * bindings/js/JSHTMLFormElementCustom.cpp:
  35975. (WebCore::JSHTMLFormElement::canGetItemsForName):
  35976. Use new the HTMLFormElement::getNamedElements() method
  35977. (WebCore::JSHTMLFormElement::nameGetter):
  35978. Use new the HTMLFormElement::getNamedElements() method
  35979. * html/HTMLFormElement.cpp:
  35980. (WebCore::HTMLFormElement::HTMLFormElement):
  35981. (WebCore::HTMLFormElement::~HTMLFormElement):
  35982. (WebCore::HTMLFormElement::elementForAlias):
  35983. (WebCore::HTMLFormElement::addElementAlias):
  35984. Maintain a map of known element aliases
  35985. (WebCore::HTMLFormElement::getNamedElements):
  35986. Get a list of elements matching the name, based both their
  35987. current names and known aliases (earlier names).
  35988. Keep the alias list in sync.
  35989. * html/HTMLFormElement.h:
  35990. 2007-03-17 Adele Peterson <adele@apple.com>
  35991. Reviewed by Hyatt.
  35992. Fix for <rdar://problem/4990050> REGRESSION: onchange gets fired when clicking on a programmatically selected element in a listbox
  35993. http://bugs.webkit.org/show_bug.cgi?id=12725
  35994. Test: updated fast/forms/listbox-onchange.html
  35995. Added HTMLSelectElement::saveLastSelection that is called before changing a selection that could result
  35996. in onChange being called. m_lastOnChangeIndex and m_lastOnChangeSelection no longer have to be up-to date all the time,
  35997. they just have to be up-to-date before we execute an action that may trigger onChange.
  35998. * html/HTMLOptionElement.cpp: (WebCore::HTMLOptionElement::setSelectedState): Added.
  35999. The HTMLSelectElement will only set an option's selected state with this method. This ensures
  36000. that notifyOptionSelected won't get called when the call originates from the select element.
  36001. * html/HTMLOptionElement.h:
  36002. * html/HTMLSelectElement.cpp:
  36003. (WebCore::HTMLSelectElement::deselectItems): Calls setSelectedState.
  36004. (WebCore::HTMLSelectElement::setSelectedIndex): ditto. Don't update the last selection variables here. Scroll to the new selection.
  36005. The scrolling call used to only be in notifyOptionSelected. There's no reason we shouldn't scroll when the selection is set through
  36006. the HTMLSelectElement.
  36007. (WebCore::HTMLSelectElement::setValue): Call setSelectedIndex to update all options selected state.
  36008. (WebCore::HTMLSelectElement::restoreState): Call setSelectedState.
  36009. (WebCore::HTMLSelectElement::selectAll): Call saveLastSelection before making the selection, and calling onChange.
  36010. (WebCore::HTMLSelectElement::recalcListItems): Call setSelectedState. Don't need to save selection here anymore,
  36011. since it will get saved before we call onChange.
  36012. (WebCore::HTMLSelectElement::reset): ditto.
  36013. (WebCore::HTMLSelectElement::dispatchFocusEvent): Added. Call saveLastSelection for menu lists, since onChange can be fired
  36014. on blur.
  36015. (WebCore::HTMLSelectElement::dispatchBlurEvent): Call menuListOnChange.
  36016. (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Call saveLastSelection before showing the popup window.
  36017. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Call saveLastSelection during mousedown (to prepare for an
  36018. onchange during mouseup, or after autoscroll).
  36019. (WebCore::HTMLSelectElement::updateListBoxSelection): Call setSelectedState.
  36020. (WebCore::HTMLSelectElement::menuListOnChange): Added. Compares the m_lastOnChangeIndex to the selectedIndex().
  36021. (WebCore::HTMLSelectElement::listBoxOnChange): Move the m_lastOnChangeSelection creation to saveLastSelection.
  36022. (WebCore::HTMLSelectElement::saveLastSelection): Added. Sets m_lastOnChangeIndex or m_lastOnChangeSelection.
  36023. * html/HTMLSelectElement.h:
  36024. * platform/PopupMenu.h:
  36025. 2007-03-16 Oliver Hunt <oliver@apple.com>
  36026. Reviewed by Hyatt.
  36027. The old canSaveAsWebArchive call was necessary as stand alone
  36028. images used to be rendered by ImageDocument.
  36029. Fixes rdar://problem/5061252
  36030. * dom/Clipboard.cpp:
  36031. * dom/Clipboard.h:
  36032. (WebCore::Clipboard::setDragHasStarted):
  36033. * page/DragClient.h:
  36034. (WebCore::DragClient::declareAndWriteDragImage):
  36035. * platform/mac/ClipboardMac.mm:
  36036. (WebCore::ClipboardMac::declareAndWriteDragImage):
  36037. 2007-03-16 Anders Carlsson <acarlsson@apple.com>
  36038. Reviewed by Maciej.
  36039. <rdar://problem/4869095>
  36040. default content type changed for XMLHttpRequest POSTs changed (breaks Flickrator 0.1 widget)
  36041. * xml/xmlhttprequest.cpp:
  36042. (WebCore::XMLHttpRequest::send):
  36043. 2007-03-16 Brady Eidson <beidson@apple.com>
  36044. Rubberstamped by Tim Hatcher
  36045. Update the hash table header for Window object properties
  36046. * bindings/js/kjs_window.cpp:
  36047. 2007-03-16 Brady Eidson <beidson@apple.com>
  36048. Reviewed by Anders
  36049. <rdar://problem/5061826> and
  36050. http://bugs.webkit.org/show_bug.cgi?id=12863
  36051. Implement window.stop()
  36052. * bindings/js/kjs_window.cpp:
  36053. (KJS::WindowFunc::callAsFunction): Add case Window::Stop
  36054. * bindings/js/kjs_window.h:
  36055. (KJS::Window::): Add "Stop"
  36056. 2007-03-16 Geoffrey Garen <ggaren@apple.com>
  36057. Reviewed by Brady Eidson.
  36058. Fixed dir creation to account for already existing dirs and missing leading
  36059. dirs in path.
  36060. * loader/icon/IconDatabase.cpp:
  36061. (WebCore::makeAllDirectories):
  36062. 2007-03-16 David Hyatt <hyatt@apple.com>
  36063. Fix for 13084, assertion failure in the Cache. Convert the client list
  36064. to a HashCountedSet so that multiple refs and derefs are allowed.
  36065. Fix RenderImage so that if it has the same image used as a background/border
  36066. and as the foreground that it will repaint properly (can be tested using
  36067. border-image and a foreground image).
  36068. Optimize list marker so that it doesn't waste time in the base class method,
  36069. since list markers don't support background or border images.
  36070. Reviewed by andersca
  36071. * ChangeLog:
  36072. * loader/CachedResource.cpp:
  36073. (WebCore::CachedResource::ref):
  36074. * loader/CachedResource.h:
  36075. * loader/CachedResourceClientWalker.cpp:
  36076. (WebCore::CachedResourceClientWalker::CachedResourceClientWalker):
  36077. * loader/CachedResourceClientWalker.h:
  36078. * rendering/RenderImage.cpp:
  36079. (WebCore::RenderImage::imageChanged):
  36080. * rendering/RenderListMarker.cpp:
  36081. (WebCore::RenderListMarker::imageChanged):
  36082. 2007-03-16 Geoffrey Garen <ggaren@apple.com>
  36083. Reviewed by Anders Carlsson.
  36084. Fixed <rdar://problem/5065399> REGRESSION: leaks in Frame::bindingRootObject
  36085. seen on buildbot
  36086. The problem was that we were initializing the same WebScriptObject twice.
  36087. This caused it to leak its original set of ivars.
  36088. I think some refactoring could prevent this situation from arising in the
  36089. first place, but I'm just adding a check at the call site for now, to do
  36090. the simplest thing.
  36091. * bindings/objc/WebScriptObject.mm:
  36092. (-[WebScriptObject _setImp:originRootObject:rootObject:]): Added ASSERTs
  36093. against multiple calls.
  36094. * bindings/objc/WebScriptObjectPrivate.h: Renamed _initializeWithObjectImp
  36095. to setImp because "init" vs "initialize" was a too subtle indication that
  36096. one was a Cocoa initializer and one was not.
  36097. 2007-03-16 Lars Knoll <lars@trolltech.com>
  36098. don't use #import in .cpp files.
  36099. * editing/qt/EditorQt.cpp:
  36100. 2007-03-16 Lars Knoll <lars@trolltech.com>
  36101. Fix the Qt build once again.
  36102. * platform/qt/PasteboardQt.cpp:
  36103. (WebCore::Pasteboard::Pasteboard):
  36104. (WebCore::Pasteboard::writeSelection):
  36105. (WebCore::Pasteboard::plainText):
  36106. (WebCore::Pasteboard::documentFragment):
  36107. (WebCore::Pasteboard::writeURL):
  36108. (WebCore::Pasteboard::writeImage):
  36109. (WebCore::Pasteboard::clear):
  36110. 2007-03-15 Shrikant Gangoda <shrikant.gangoda@celunite.com>
  36111. Gdk build fix.
  36112. * loader/gdk/FrameLoaderClientGdk.cpp:
  36113. (WebCore::FrameLoaderClientGdk::blockedError):
  36114. * loader/gdk/FrameLoaderClientGdk.h:
  36115. 2007-03-15 Beth Dakin <bdakin@apple.com>
  36116. Reviewed by Geoff.
  36117. Fix for http://bugs.webkit.org/show_bug.cgi?id=13088 REGRESSION
  36118. (r19761-19779): Copy image no longer includes image address
  36119. (rdar://5067927)
  36120. writeURL() does not need an isImage parameter. Now that it accepts
  36121. the types as a parameter, we can just declare the appropriate image
  36122. types within writeImage and send them to writeURL(). Also,
  36123. declaring the types twice is what broke this.
  36124. * platform/Pasteboard.h:
  36125. * platform/mac/PasteboardMac.mm:
  36126. (WebCore::Pasteboard::writeURL):
  36127. (WebCore::Pasteboard::writeImage):
  36128. 2007-03-15 Adele Peterson <adele@apple.com>
  36129. Reviewed by Kevin Decker.
  36130. Fix for <rdar://problem/4926179> Text in menulist control should never update if menu is open
  36131. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::updateFromElement):
  36132. Only setTextFromOption if the menu isn't visible.
  36133. 2007-03-15 Brady Eidson <beidson@apple.com>
  36134. Reviewed by Oliver
  36135. A few platform specific tweaks
  36136. * platform/cf/RetainPtr.h:
  36137. (WebCore::RetainPtr::releaseRef): Fixed releaseRef to work with CF
  36138. * platform/network/ResourceHandle.h: Added a "releaseRef" style call
  36139. 2007-03-15 Maciej Stachowiak <mjs@apple.com>
  36140. Reviewed by Geoff and Steve.
  36141. * config.h: Remove unneeded hack.
  36142. 2007-03-15 Justin Garcia <justin.garcia@apple.com>
  36143. Reviewed by john
  36144. <rdar://problem/5062376>
  36145. REGRESSION: In Mail and Gmail, can't change alignment to text after it has been applied
  36146. Bring back the remove step in applyBlockStyle. It's
  36147. necessary because addBlockStyleIfNeeded assumes that
  36148. the properties it adds aren't already on the block that
  36149. it adds them to.
  36150. * editing/ApplyStyleCommand.cpp:
  36151. (WebCore::ApplyStyleCommand::applyBlockStyle):
  36152. Bring back the remove step (added a testcase).
  36153. Don't do the add step if m_removeOnly is true (no testcase
  36154. because there aren't any clients using removeOnly functionality
  36155. to remove styles yet, only styled elemets).
  36156. Moved the code for creating new blocks up one level
  36157. to this function so that we can pass blocks to removeCSSStyle.
  36158. When converting VisiblePositions to indices and vice versa,
  36159. use the highest node in the shadow tree if we're in one as
  36160. the scope (working on a testcase).
  36161. (WebCore::ApplyStyleCommand::addBlockStyle): Moved code to
  36162. applyBlockStyle.
  36163. * editing/ApplyStyleCommand.h:
  36164. 2007-03-15 Brady Eidson <beidson@apple.com>
  36165. Reviewed by Maciej
  36166. <rdar://problem/4429701>
  36167. Implements a port blocking black list that matches Firefox's
  36168. * loader/FrameLoader.cpp:
  36169. (WebCore::FrameLoader::blockedError): Call through to the client for blockedError
  36170. * loader/FrameLoader.h:
  36171. * loader/FrameLoaderClient.h: Get the "port blocked" error for the current platform
  36172. * loader/ResourceLoader.cpp:
  36173. (WebCore::ResourceLoader::wasBlocked): ResourceHandleClient method to pass on the didFail(error)
  36174. (WebCore::ResourceLoader::blockedError): Following the pattern of "CancelledError()", get the
  36175. error to fail with for the didFail() call
  36176. * loader/ResourceLoader.h:
  36177. * platform/graphics/svg/SVGImageEmptyClients.h:
  36178. (WebCore::SVGEmptyFrameLoaderClient::blockedError): Added stub
  36179. * platform/network/ResourceHandle.cpp:
  36180. (WebCore::ResourceHandle::create): If the port is blocked, create the handle but schedule it for
  36181. deferred failure on a timer
  36182. (WebCore::ResourceHandle::scheduleBlockedFailure): Do the timer scheduling
  36183. (WebCore::ResourceHandle::fireBlockedFailure): Fire the timer here
  36184. (WebCore::ResourceHandle::portAllowed): Implements checking of Mozilla's
  36185. * platform/network/ResourceHandle.h:
  36186. * platform/network/ResourceHandleClient.h:
  36187. (WebCore::ResourceHandleClient::wasBlocked): Virtual for clients to get the "blocked" message
  36188. 2007-03-15 Beth Dakin <bdakin@apple.com>
  36189. Reviewed by Hyatt.
  36190. Fix for <rdar://problem/5065396> REGRESSION: leaks in
  36191. RenderBlock::layoutInlineChildren seen on buildbot
  36192. This leak appeared after http://trac.webkit.org/projects/webkit/
  36193. changeset/20188. This change shifted line boxes around in
  36194. removeChild(). But since removeChild() calls
  36195. setNeedsLayoutAndMinMaxRecalc(), all of the line boxes will be
  36196. removed once we actually lay out anyway. So this patch fixes the
  36197. leak by deleting the line boxes instead of shifting them around.
  36198. * editing/IndentOutdentCommand.cpp:
  36199. (WebCore::IndentOutdentCommand::outdentParagraph): Call into
  36200. updateLayout(). This fixes an assertion I got in editing/
  36201. execCommand/4976800.html This is very similar to the line box fix I
  36202. made recently (http://trac.webkit.org/projects/webkit/changeset/
  36203. 20177). We need to update layout before relying on VisiblePositions
  36204. after removing a node.
  36205. * rendering/RenderBlock.cpp:
  36206. (WebCore::RenderBlock::deleteLinesForBlock): New helper function
  36207. since this functionality is needed in three places now.
  36208. (WebCore::RenderBlock::makeChildrenNonInline): Call into new
  36209. deleteLinesForBlock().
  36210. (WebCore::RenderBlock::removeChild): Same.
  36211. * rendering/RenderBlock.h:
  36212. 2007-03-15 Timothy Hatcher <timothy@apple.com>
  36213. Reviewed by John.
  36214. * Factored out most of our common build settings into .xcconfig files. Anything that was common in
  36215. each build configuration was factored out into the shared .xcconfig file.
  36216. * Adds a Version.xcconfig file to define the current framework version, to be used in other places.
  36217. * Use the new $(BUNDLE_VERSION) (defined in Version.xcconfig) in the preprocessed Info.plist.
  36218. * Use the versions defined in Version.xcconfig to set $(DYLIB_CURRENT_VERSION).
  36219. * Configurations/Base.xcconfig: Added.
  36220. * Configurations/DebugRelease.xcconfig: Added.
  36221. * Configurations/Version.xcconfig: Added.
  36222. * Configurations/WebCore.xcconfig: Added.
  36223. * Info.plist:
  36224. * WebCore.xcodeproj/project.pbxproj:
  36225. 2007-03-15 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  36226. Not reviewed - gdk build fixes.
  36227. * platform/gdk/EditorClientGdk.cpp:
  36228. (WebCore::EditorClientGdk::handleKeypress):
  36229. * platform/graphics/cairo/ImageSourceCairo.cpp:
  36230. (WebCore::ImageSource::setData):
  36231. * platform/graphics/gdk/ImageGdk.cpp:
  36232. (WebCore::Image::loadPlatformResource):
  36233. 2007-03-14 Justin Garcia <justin.garcia@apple.com>
  36234. Reviewed by john
  36235. ~2x speed up of 5k rich text paste:
  36236. http://shakespeare.mit.edu/hamlet/full.html
  36237. * editing/ReplaceSelectionCommand.cpp:
  36238. (WebCore::ReplaceSelectionCommand::doApply): Remove the top
  36239. level style span if it's unnecessary before inserting
  36240. into the document, it's faster than doing it after.
  36241. * editing/ReplaceSelectionCommand.h: Exposed
  36242. ReplacementFragment::removeNodePreservingChildren so that
  36243. the style span can be removed using non-undoable removes,
  36244. like the rest of the removes done on the ReplacementFragment.
  36245. * editing/markup.cpp:
  36246. (WebCore::createMarkup): Make the style span the top level
  36247. element, otherwise it's useless. This also facilitates the
  36248. optimization mentioned above.
  36249. When including markup for a fully selected root, include markup
  36250. for all the nodes beneath that fully selected root, to preserve
  36251. the structure and appearance of the copied markup. Did this
  36252. by merging with the code for adding markup for descendants of
  36253. special commonAncestorBlocks.
  36254. 2007-03-15 Beth Dakin <bdakin@apple.com>
  36255. Rubber-stamped by Adele.
  36256. Rolling out http://trac.webkit.org/projects/webkit/changeset/20148
  36257. (which is a fix for http://bugs.webkit.org/show_bug.cgi?id=12595
  36258. and rdar://4722863) because it causes a horrible memory-trasher.
  36259. * bindings/js/JSHTMLFormElementCustom.cpp:
  36260. (WebCore::JSHTMLFormElement::canGetItemsForName):
  36261. (WebCore::JSHTMLFormElement::nameGetter):
  36262. * bindings/js/kjs_dom.cpp:
  36263. (KJS::):
  36264. (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
  36265. (KJS::DOMNamedNodesCollection::lengthGetter):
  36266. (KJS::DOMNamedNodesCollection::indexGetter):
  36267. (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
  36268. * bindings/js/kjs_dom.h:
  36269. (KJS::DOMNamedNodesCollection::classInfo):
  36270. * bindings/js/kjs_html.cpp:
  36271. (KJS::JSHTMLCollection::getNamedItems):
  36272. * dom/ChildNodeList.cpp:
  36273. (WebCore::ChildNodeList::ChildNodeList):
  36274. (WebCore::ChildNodeList::length):
  36275. (WebCore::ChildNodeList::item):
  36276. (WebCore::ChildNodeList::nodeMatches):
  36277. * dom/ChildNodeList.h:
  36278. * dom/NameNodeList.cpp:
  36279. (WebCore::NameNodeList::NameNodeList):
  36280. (WebCore::NameNodeList::item):
  36281. (WebCore::NameNodeList::nodeMatches):
  36282. * dom/NameNodeList.h:
  36283. (WebCore::NameNodeList::rootNodeAttributeChanged):
  36284. * dom/Node.cpp:
  36285. (WebCore::TagNodeList::TagNodeList):
  36286. (WebCore::TagNodeList::nodeMatches):
  36287. (WebCore::Node::registerNodeList):
  36288. (WebCore::Node::unregisterNodeList):
  36289. * dom/Node.h:
  36290. * dom/NodeList.cpp:
  36291. (WebCore::NodeList::NodeList):
  36292. (WebCore::NodeList::~NodeList):
  36293. (WebCore::NodeList::recursiveLength):
  36294. (WebCore::NodeList::itemForwardsFromCurrent):
  36295. (WebCore::NodeList::itemBackwardsFromCurrent):
  36296. (WebCore::NodeList::recursiveItem):
  36297. (WebCore::NodeList::itemWithName):
  36298. (WebCore::NodeList::rootNodeChildrenChanged):
  36299. * dom/NodeList.h:
  36300. (WebCore::NodeList::rootNodeAttributeChanged):
  36301. * html/HTMLFormElement.cpp:
  36302. (WebCore::HTMLFormElement::HTMLFormElement):
  36303. (WebCore::HTMLFormElement::~HTMLFormElement):
  36304. (WebCore::HTMLFormElement::formData):
  36305. (WebCore::HTMLFormElement::parseMappedAttribute):
  36306. (WebCore::HTMLFormElement::removeFormElement):
  36307. * html/HTMLFormElement.h:
  36308. * html/HTMLGenericFormElement.cpp:
  36309. (WebCore::HTMLGenericFormElement::parseMappedAttribute):
  36310. (WebCore::HTMLGenericFormElement::insertedIntoTree):
  36311. * html/HTMLGenericFormElement.h:
  36312. * html/HTMLInputElement.cpp:
  36313. (WebCore::HTMLInputElement::parseMappedAttribute):
  36314. 2007-03-15 Geoffrey Garen <ggaren@apple.com>
  36315. Added an assert to help catch a bug. Hopefully someone will hit it!
  36316. * bindings/js/kjs_proxy.cpp:
  36317. (WebCore::KJSProxy::~KJSProxy):
  36318. 2007-03-14 Oliver Hunt <oliver@apple.com>
  36319. Reviewed by Adele.
  36320. Fix for rdar://problem/5061737.
  36321. This was a regression from the original Objective-C -> C++ conversion
  36322. for the drag logic. We don't need to call Range::startNode as we just
  36323. need the document that contains the range.
  36324. * page/DragController.cpp:
  36325. (WebCore::documentFragmentFromDragData):
  36326. 2007-03-14 Mitz Pettel <mitz@webkit.org>
  36327. Reviewed by Hyatt.
  36328. - http://bugs.webkit.org/show_bug.cgi?id=13071
  36329. REGRESSION: Plain text files no longer wrap lines longer than the width of the browser window
  36330. Test: fast/loader/text-document-wrapping.html
  36331. * loader/TextDocument.cpp:
  36332. (WebCore::TextTokenizer::write): Specified word-wrap:break-word for the <pre> element.
  36333. 2007-03-14 Mitz Pettel <mitz@webkit.org>
  36334. Reviewed by Hyatt.
  36335. - fix http://bugs.webkit.org/show_bug.cgi?id=13072
  36336. REGRESSION (r15617): white-space: pre-wrap breaks off the last character of a wide word
  36337. Test: fast/text/whitespace/pre-wrap-last-char.html
  36338. * rendering/bidi.cpp:
  36339. (WebCore::RenderBlock::findNextLineBreak): Undid the change from r15617.
  36340. 2007-03-14 David Hyatt <hyatt@apple.com>
  36341. Add asserts to help catch double refs and double derefs of CachedResources.
  36342. Reviewed by mjs
  36343. * loader/CachedResource.cpp:
  36344. (WebCore::CachedResource::ref):
  36345. (WebCore::CachedResource::deref):
  36346. 2007-03-14 Alice Liu <alice.liu@apple.com>
  36347. Rubber-stamped by Hyatt.
  36348. Adding null check to prevent the crash that happens on 2nd run of iBench HTML load test
  36349. * loader/icon/IconDataCache.cpp:
  36350. (WebCore::IconDataCache::writeToDatabase):
  36351. === Safari-5522.4 ===
  36352. 2007-03-14 Adele Peterson <adele@apple.com>
  36353. Reviewed by Adam.
  36354. Fix for <rdar://problem/5062898> REGRESSION: autocomplete window in text fields doesn't come up
  36355. When we moved the initialization of a bunch of variables in the HTMLFormElement constructor, m_autocomplete accidently got initialized to false.
  36356. * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::HTMLFormElement):
  36357. 2007-03-14 Steve Falkenburg <sfalken@apple.com>
  36358. Reviewed by Adam.
  36359. Added missing null check in case this is called on a subframe
  36360. that hasn't started loading.
  36361. * page/Frame.cpp:
  36362. (WebCore::Frame::setMarkedTextMatchesAreHighlighted): Check for a null document.
  36363. 2007-03-14 Antti Koivisto <antti@apple.com>
  36364. Reviewed by Geoff.
  36365. Fix http://bugs.webkit.org/show_bug.cgi?id=13060
  36366. REGRESSION: Repro ASSERT failure in Cache::adjustSize running layout tests
  36367. <rdar://5060208>
  36368. Script evaluation may have dereffed the CachedScript object already, causing double deref and
  36369. eventually m_liveResourcesSize underflow.
  36370. * html/HTMLScriptElement.cpp:
  36371. (WebCore::HTMLScriptElement::notifyFinished):
  36372. 2007-03-14 Adele Peterson <adele@apple.com>
  36373. Reviewed by Darin.
  36374. Added InsertTab, InsertBacktab, InsertLineBreak, and InsertNewline to the editing command table.
  36375. Added Event parameter to execCommand, and to all of the enabled and exec functions. Right now,
  36376. the event is only used by the newly added commands. But in the future, many (and possibly all) of
  36377. these editing commands will need to consider the event so they are applied to the correct selection.
  36378. * WebCore.exp:
  36379. * editing/Editor.cpp:
  36380. (WebCore::execCopy):
  36381. (WebCore::execCut):
  36382. (WebCore::execDelete):
  36383. (WebCore::execBackwardDelete):
  36384. (WebCore::execForwardDelete):
  36385. (WebCore::execMoveBackward):
  36386. (WebCore::execMoveBackwardAndModifySelection):
  36387. (WebCore::execMoveUpByPageAndModifyCaret):
  36388. (WebCore::execMoveDown):
  36389. (WebCore::execMoveDownAndModifySelection):
  36390. (WebCore::execMoveForward):
  36391. (WebCore::execMoveForwardAndModifySelection):
  36392. (WebCore::execMoveDownByPageAndModifyCaret):
  36393. (WebCore::execMoveLeft):
  36394. (WebCore::execMoveLeftAndModifySelection):
  36395. (WebCore::execMoveRight):
  36396. (WebCore::execMoveRightAndModifySelection):
  36397. (WebCore::execMoveToBeginningOfDocument):
  36398. (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
  36399. (WebCore::execMoveToBeginningOfSentence):
  36400. (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
  36401. (WebCore::execMoveToBeginningOfLine):
  36402. (WebCore::execMoveToBeginningOfLineAndModifySelection):
  36403. (WebCore::execMoveToBeginningOfParagraph):
  36404. (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
  36405. (WebCore::execMoveToEndOfDocument):
  36406. (WebCore::execMoveToEndOfDocumentAndModifySelection):
  36407. (WebCore::execMoveToEndOfSentence):
  36408. (WebCore::execMoveToEndOfSentenceAndModifySelection):
  36409. (WebCore::execMoveToEndOfLine):
  36410. (WebCore::execMoveToEndOfLineAndModifySelection):
  36411. (WebCore::execMoveToEndOfParagraph):
  36412. (WebCore::execMoveToEndOfParagraphAndModifySelection):
  36413. (WebCore::execMoveParagraphBackwardAndModifySelection):
  36414. (WebCore::execMoveParagraphForwardAndModifySelection):
  36415. (WebCore::execMoveUp):
  36416. (WebCore::execMoveUpAndModifySelection):
  36417. (WebCore::execMoveWordBackward):
  36418. (WebCore::execMoveWordBackwardAndModifySelection):
  36419. (WebCore::execMoveWordForward):
  36420. (WebCore::execMoveWordForwardAndModifySelection):
  36421. (WebCore::execMoveWordLeft):
  36422. (WebCore::execMoveWordLeftAndModifySelection):
  36423. (WebCore::execMoveWordRight):
  36424. (WebCore::execMoveWordRightAndModifySelection):
  36425. (WebCore::execPaste):
  36426. (WebCore::execSelectAll):
  36427. (WebCore::execToggleBold):
  36428. (WebCore::execToggleItalic):
  36429. (WebCore::execRedo):
  36430. (WebCore::execUndo):
  36431. (WebCore::execInsertTab):
  36432. (WebCore::execInsertBacktab):
  36433. (WebCore::execInsertNewline):
  36434. (WebCore::execInsertLineBreak):
  36435. (WebCore::enabled):
  36436. (WebCore::canPaste):
  36437. (WebCore::hasEditableSelection):
  36438. (WebCore::hasEditableRangeSelection):
  36439. (WebCore::hasRangeSelection):
  36440. (WebCore::hasRichlyEditableSelection):
  36441. (WebCore::canRedo):
  36442. (WebCore::canUndo):
  36443. (WebCore::CommandEntry::):
  36444. (WebCore::Editor::toggleBold):
  36445. (WebCore::Editor::execCommand): Added optional event parameter.
  36446. (WebCore::Editor::insertText): Added. Calls handleTextInputEvent.
  36447. (WebCore::Editor::insertTextWithoutSendingTextEvent): Renamed from insertText.
  36448. Performs the actual insertion without dispatching any event.
  36449. * editing/Editor.h:
  36450. * page/EventHandler.cpp: (WebCore::EventHandler::defaultTextInputEventHandler):
  36451. Call insertTextWithoutSendingTextEvent.
  36452. 2007-03-14 Justin Garcia <justin.garcia@apple.com>
  36453. Reviewed by darin
  36454. ~3x speedup pasting 5k lines of rich text:
  36455. http://shakespeare.mit.edu/hamlet/full.html
  36456. ~2x speedup pasting 10k lines of plain text
  36457. * css/CSSComputedStyleDeclaration.cpp:
  36458. (WebCore::computedStyle): Added for convenience.
  36459. * css/CSSComputedStyleDeclaration.h:
  36460. * editing/ReplaceSelectionCommand.cpp:
  36461. (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
  36462. The code that pushed down the top level style span had
  36463. a bug in it that made it do unnecessary work. Instead of
  36464. fixing the bug I removed the code because it was used to
  36465. help see more redundancies in second level style spans, but
  36466. createMarkup now *only* creates a top level style span.
  36467. Only remove redundant styles from style spans and only remove
  36468. unstyled elements if they are style spans. FF doesn't
  36469. remove redundant styles from elements, or remove redundant
  36470. font tags on copy/paste. We could offer this functionality
  36471. through a separate "cleanup" command.
  36472. * editing/markup.cpp:
  36473. (WebCore::createMarkup): Only add markup for ancestors of
  36474. lastClosed if we're including markup for acommonAncestorBlock
  36475. (we do this for commonAncestorBlocks like tables and lists),
  36476. otherwise it's unnecessary/redundant.
  36477. 2007-03-14 Anders Carlsson <acarlsson@apple.com>
  36478. Reviewed by Ada.
  36479. Make sure to call ResourceLoader::didReceiveData to ensure that there's a shared buffer with the resource
  36480. data, since SubresourceLoaderClients now make use of that buffer.
  36481. * loader/SubresourceLoader.cpp:
  36482. (WebCore::SubresourceLoader::didReceiveData):
  36483. 2007-03-14 Administrator <acarlsson@apple.com>
  36484. Get the size from the shared buffer.
  36485. * platform/graphics/cg/ImageSourceCG.cpp:
  36486. (WebCore::ImageSource::setData):
  36487. * platform/graphics/cg/PDFDocumentImage.cpp:
  36488. (WebCore::PDFDocumentImage::dataChanged):
  36489. 2007-03-14 Mitz Pettel <mitz@webkit.org>
  36490. Reviewed by Hyatt, thumbs up by Darin.
  36491. - fix http://bugs.webkit.org/show_bug.cgi?id=12782
  36492. Reproducible crash in BidiContext::deref
  36493. Test: fast/dynamic/anonymous-block-orphaned-lines.html
  36494. * rendering/InlineBox.cpp:
  36495. (WebCore::InlineBox::root): Added an assertion that we return a root inline box.
  36496. * rendering/RenderBlock.cpp:
  36497. (WebCore::RenderBlock::removeChild): Added code to adopt the line boxes of
  36498. anonymous blocks being destroyed instead of leaving them orphaned, which
  36499. is what caused this crash. The boxes will be deleted on the next layout, but
  36500. this ensures consistency in the mean time.
  36501. 2007-03-14 Lars Knoll <lars@trolltech.com>
  36502. Reviewed by Antti.
  36503. Fix the Qt build.
  36504. Add a getter to SharedBuffer that returns a reference to the internal
  36505. Vector to avoid an extra copy of the data.
  36506. * platform/SharedBuffer.h:
  36507. (WebCore::SharedBuffer::buffer):
  36508. * platform/graphics/qt/ImageQt.cpp:
  36509. (WebCore::Image::loadPlatformResource):
  36510. * platform/graphics/qt/ImageSourceQt.cpp:
  36511. (WebCore::detectImageFormat):
  36512. (WebCore::createDecoder):
  36513. (WebCore::ImageSource::setData):
  36514. 2007-03-14 Antti Koivisto <antti@apple.com>
  36515. Reviewed by Mitz.
  36516. Fix <rdar://problem/5058774>
  36517. REGRESSION: In Mail, caret appears oversized when typing in a To Do note
  36518. Horizontal and vertical were switched. Was regression from
  36519. http://trac.webkit.org/projects/webkit/changeset/20103
  36520. * rendering/RootInlineBox.cpp:
  36521. (WebCore::RootInlineBox::addHighlightOverflow):
  36522. 2007-03-14 David Hyatt <hyatt@apple.com>
  36523. Tweak the data() functions of stylesheets and scripts to be internally consistent.
  36524. * loader/CachedCSSStyleSheet.cpp:
  36525. (WebCore::CachedCSSStyleSheet::data):
  36526. * loader/CachedScript.cpp:
  36527. (WebCore::CachedScript::data):
  36528. * loader/CachedXSLStyleSheet.cpp:
  36529. (WebCore::CachedXSLStyleSheet::data):
  36530. 2007-03-14 David Hyatt <hyatt@apple.com>
  36531. Fix Radar 5050688.
  36532. For large animated GIFs, destroy and recreate the source for every animation frame. This keeps
  36533. the memory consumption down while giant images are animating.
  36534. Reviewed by andersca
  36535. * platform/graphics/BitmapImage.cpp:
  36536. (WebCore::BitmapImage::BitmapImage):
  36537. (WebCore::BitmapImage::destroyDecodedData):
  36538. (WebCore::BitmapImage::dataChanged):
  36539. (WebCore::BitmapImage::advanceAnimation):
  36540. * platform/graphics/BitmapImage.h:
  36541. 2007-03-14 David Hyatt <hyatt@apple.com>
  36542. Make sure to use CFDataCreateWithBytesNoCopy where we can.
  36543. Reviewed by andersca
  36544. * platform/graphics/cg/ImageSourceCG.cpp:
  36545. (WebCore::ImageSource::setData):
  36546. * platform/graphics/cg/PDFDocumentImage.cpp:
  36547. (WebCore::PDFDocumentImage::dataChanged):
  36548. 2007-03-13 David Hyatt <hyatt@apple.com>
  36549. Fix for bugzilla bug 13050 and also radar p1 5050645.
  36550. This patch reworks resource loading to avoid having redundant buffers in the icon database and in cached
  36551. images in the WebCore cache. It also avoids overcopying in top-level image documents and in the icon
  36552. database.
  36553. There is now only one SharedBuffer for a resource and everybody observes that buffer now instead of ever
  36554. making their own. Even ImageIO uses the SharedBuffer while decoding.
  36555. The page in 13050 dropped from 145mb down to 45mb of memory use with this change for a stunning savings
  36556. of 100mb.
  36557. Reviewed by olliej, mjs
  36558. * WebCore.exp:
  36559. * loader/CachedCSSStyleSheet.cpp:
  36560. (WebCore::CachedCSSStyleSheet::data):
  36561. * loader/CachedCSSStyleSheet.h:
  36562. * loader/CachedImage.cpp:
  36563. (WebCore::CachedImage::data):
  36564. * loader/CachedImage.h:
  36565. * loader/CachedResource.cpp:
  36566. (WebCore::CachedResource::CachedResource):
  36567. (WebCore::CachedResource::~CachedResource):
  36568. * loader/CachedResource.h:
  36569. (WebCore::CachedResource::data):
  36570. * loader/CachedScript.cpp:
  36571. (WebCore::CachedScript::data):
  36572. * loader/CachedScript.h:
  36573. * loader/CachedXSLStyleSheet.cpp:
  36574. (WebCore::CachedXSLStyleSheet::data):
  36575. * loader/CachedXSLStyleSheet.h:
  36576. * loader/DocLoader.cpp:
  36577. (WebCore::DocLoader::checkCacheObjectStatus):
  36578. * loader/ImageDocument.cpp:
  36579. (WebCore::ImageTokenizer::writeRawData):
  36580. (WebCore::ImageTokenizer::finish):
  36581. * loader/icon/IconDataCache.cpp:
  36582. (WebCore::IconDataCache::setImageData):
  36583. (WebCore::IconDataCache::writeToDatabase):
  36584. * loader/icon/IconDataCache.h:
  36585. * loader/icon/IconDatabase.cpp:
  36586. (WebCore::IconDatabase::imageDataForIconURL):
  36587. (WebCore::IconDatabase::iconForPageURL):
  36588. (WebCore::IconDatabase::setIconDataForIconURL):
  36589. (WebCore::IconDatabase::setHaveNoIconForIconURL):
  36590. (WebCore::IconDatabase::imageDataForIconURLQuery):
  36591. * loader/icon/IconDatabase.h:
  36592. * loader/icon/IconLoader.cpp:
  36593. (WebCore::IconLoader::startLoading):
  36594. (WebCore::IconLoader::didReceiveResponse):
  36595. (WebCore::IconLoader::didReceiveData):
  36596. (WebCore::IconLoader::didFail):
  36597. (WebCore::IconLoader::finishLoading):
  36598. (WebCore::IconLoader::clearLoadingState):
  36599. * loader/icon/IconLoader.h:
  36600. * loader/icon/SQLStatement.cpp:
  36601. (WebCore::SQLStatement::getColumnBlobAsVector):
  36602. (WebCore::SQLStatement::isExpired):
  36603. * loader/icon/SQLStatement.h:
  36604. * loader/loader.cpp:
  36605. (WebCore::Loader::didFinishLoading):
  36606. (WebCore::Loader::didReceiveData):
  36607. * page/mac/WebCoreFrameBridge.mm:
  36608. (-[WebCoreFrameBridge getData:andResponse:forURL:]):
  36609. (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
  36610. * platform/SharedBuffer.h:
  36611. (WebCore::SharedBuffer::isEmpty):
  36612. * platform/graphics/BitmapImage.cpp:
  36613. (WebCore::BitmapImage::destroyDecodedData):
  36614. (WebCore::BitmapImage::dataChanged):
  36615. * platform/graphics/BitmapImage.h:
  36616. * platform/graphics/Image.cpp:
  36617. (WebCore::Image::setData):
  36618. * platform/graphics/Image.h:
  36619. (WebCore::Image::dataChanged):
  36620. (WebCore::Image::data):
  36621. * platform/graphics/ImageSource.h:
  36622. * platform/graphics/cg/ImageSourceCG.cpp:
  36623. (WebCore::ImageSource::setData):
  36624. * platform/graphics/cg/PDFDocumentImage.cpp:
  36625. (WebCore::PDFDocumentImage::dataChanged):
  36626. * platform/graphics/cg/PDFDocumentImage.h:
  36627. * platform/graphics/mac/ImageMac.mm:
  36628. (WebCore::Image::loadPlatformResource):
  36629. * platform/graphics/svg/SVGImage.cpp:
  36630. (WebCore::SVGImage::setData):
  36631. * platform/mac/PasteboardMac.mm:
  36632. (WebCore::fileWrapperForImage):
  36633. 2007-03-13 Justin Garcia <justin.garcia@apple.com>
  36634. Reviewed by darin
  36635. <rdar://problem/5046875>
  36636. Gmail Editor: Applying alignment to selected text in message also applies alignment to signature
  36637. * editing/ApplyStyleCommand.cpp:
  36638. (WebCore::ApplyStyleCommand::doApply): Don't call applyBlockStyle unless
  36639. there is a block style to apply.
  36640. (WebCore::ApplyStyleCommand::applyBlockStyle): Don't do the remove step.
  36641. It was unnecessary and removed properties from blocks that could contain
  36642. content outside the range being operated on (added a testcase).
  36643. (WebCore::ApplyStyleCommand::addBlockStyleIfNeeded): Used an early return
  36644. instead of if-nesting.
  36645. * editing/ApplyStyleCommand.h:
  36646. * editing/CompositeEditCommand.cpp:
  36647. (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
  36648. Return the new block, if one was created. Use moveParagraphs to move
  36649. paragraphs into the new block, instead of moving nodes. The old code moved
  36650. too much (added a testcase).
  36651. * editing/CompositeEditCommand.h:
  36652. 2007-03-13 Oliver Hunt <oliver@apple.com>
  36653. Reviewed by Brady.
  36654. To fix <rdar://problem/5044366> we now pass a NSString
  36655. representation of the URL extracted with _web_originalDataAsString
  36656. instead of relying on [NSURL absoluteString] in the bridge
  36657. * page/mac/WebCoreFrameBridge.h:
  36658. * page/mac/WebCoreFrameBridge.mm:
  36659. (-[WebCoreFrameBridge getData:andResponse:forURL:]):
  36660. 2007-03-13 Brady Eidson <beidson@apple.com>
  36661. Reviewed by Anders
  36662. <rdar://problem/5048818> - REGRESSION: Incompletely loaded resources being saved to the object cache
  36663. Due to a subtle change in loader behavior back in 10904, we would stop all loaders before calling
  36664. didFail() on them in the Cache loader. As a result, we basically cleared all of the Subresource Loaders
  36665. out of the Cache loader before more properly failing them as errored out. The result? Partially loaded
  36666. resources being cached.
  36667. Since Loader::didFail() both calls error() on the object *and* removes the loader, the solution is to call
  36668. didFail() for all cancelled loaders instead of *only* removing them from the set of active loaders.
  36669. In addition, pages that didn't completely load were being saved to the back/forward cache. To fix that,
  36670. I added a null check on the DocumentLoader's error to see if the page ended in an error, or did indeed
  36671. completely load.
  36672. Note that the layout test for this - if possible - will require other enhancements including possibly adding
  36673. support for window.stop(). That task is documented in <rdar://problem/5061826>
  36674. * loader/FrameLoader.cpp:
  36675. (WebCore::FrameLoader::provisionalLoadStarted): Fixed a few bugs relating to my original BFCache rewrite to
  36676. more perfectly restore the original behavior - including only caching HTML documents via the
  36677. m_client->canCachePage() call
  36678. (WebCore::FrameLoader::canCachePage): Don't make the call to m_client->canCachePage() as that serves a different
  36679. purpose
  36680. - Check the mainDocumentError to see if the load ended in error as a further criteria in determining the
  36681. cachability of a page
  36682. * loader/loader.cpp:
  36683. (WebCore::Loader::cancelRequests): Call didFail(cancelledError()) instead of just removing the loaders from the
  36684. loaders-in-progress set. This adds the effect of properly cleaning up the cached object.
  36685. 2007-03-13 Beth Dakin <bdakin@apple.com>
  36686. Rendering part reviewed by Hyatt. Editing part consulted with and
  36687. rubber stamped by Justin and Harrison.
  36688. Fix for <rdar://problem/5025925> A hang occurs in Safari when
  36689. attempting to print page at http://www.pcadvisor.co.uk
  36690. * rendering/RenderBlock.cpp:
  36691. (WebCore::RenderBlock::makeChildrenNonInline):
  36692. RenderBlock::makeChildrenNonInline() takes a block's inline
  36693. children and turns them into block children. If the children had
  36694. line boxes, those boxes were being leaked. In the layout test I
  36695. added with the change (and at pcadvisor.co.uk during printing)
  36696. children were being made non-inline, and then they were being made
  36697. inline again. This meant that some of the children ended up
  36698. pointing to totally stale line boxes that are normally just leaked.
  36699. This caused an infinite loop in RenderFlow::destroy(). This patch
  36700. simply deletes everyone's line boxes in
  36701. RenderBlock::makeChildrenNonInline()
  36702. * editing/InsertParagraphSeparatorCommand.cpp:
  36703. (WebCore::InsertParagraphSeparatorCommand::doApply): The other part
  36704. of this fix is that I added a call to updateLayout in
  36705. InsertParagraphSeparatorCommand::doApply(). One layout test
  36706. (editing/spelling/spelling.html) was changed by my patch to
  36707. RenderBlock. doApply() inserts a node into the render tree. In at
  36708. least one case in spelling.html, that caused some line boxes to be
  36709. deleted. Back in doApply() this meant that the RenderTree was out-
  36710. of-date, and we mistakenly thought we were at the end of the
  36711. paragraph. This caused us to insert a RenderBR() at the end of the
  36712. tree instead of an empty RenderText(). No one seems to know exactly
  36713. why we insert either, or if the change is necessarily a problem. It
  36714. is clear, though, that the RenderTree in doApply() is out-of-date
  36715. after inserting the node and deleting some line boxes, so it seems
  36716. prudent to call into updateLayout().
  36717. 2007-03-13 Adam Roben <aroben@apple.com>
  36718. Reviewed by Anders.
  36719. * platform/FontData.h: Added m_isSystemFont parameter to match NSFont.
  36720. 2007-03-13 Beth Dakin <bdakin@apple.com>
  36721. Reviewed by Maciej.
  36722. Export DocumentLoader::setFrame(). Part of fix for <rdar://
  36723. problem/4277074> 8F32: Help Viewer crashed on clicking link -
  36724. KHTMLView::viewportMouseReleaseEvent (12647)
  36725. * WebCore.exp:
  36726. 2007-03-13 Darin Adler <darin@apple.com>
  36727. Reviewed by Maciej.
  36728. - fix http://bugs.webkit.org/show_bug.cgi?id=12794
  36729. <rdar://problem/5028154> REGRESSION: TripTik planner at aaa.com never
  36730. finishes loading due to unclosed canvas tag (12794)
  36731. Change <canvas> elements so that their contents are parsed normally,
  36732. but not rendered. This change fixes the bug, because normal parsing
  36733. rules close the <canvas> element in that case. The special parser
  36734. stuff was just getting in the way.
  36735. Also do some basic cleanup to the HTML parser. This was motivated by
  36736. an earlier version of this patch that made even more changes to the
  36737. parser, but the cleanup is still worth landing.
  36738. Test: fast/canvas/canvas-hides-fallback.html
  36739. Test: fast/canvas/script-inside-canvas-fallback.html
  36740. Test: fast/canvas/unclosed-canvas-1.html
  36741. Test: fast/canvas/unclosed-canvas-2.html
  36742. Test: fast/canvas/unclosed-canvas-3.html
  36743. Test: fast/canvas/unclosed-canvas-4.html
  36744. * html/HTMLCanvasElement.h: Added a data member to keep track of whether the
  36745. renderer is a RenderHTMLCanvas or not.
  36746. * html/HTMLCanvasElement.cpp:
  36747. (WebCore::HTMLCanvasElement::createRenderer): If JavaScript is enabled, create
  36748. a RenderHTMLCanvas. If it's not, let the default code create the default type
  36749. of renderer, which will result in fallback content being visible. The
  36750. RenderHTMLCanvas class already hides all of its children. Set the m_rendererIsCanvas
  36751. boolean accordingly. Since the actual storage for the canvas is allocated lazily
  36752. when you actually get a drawing context, we don't need to do anything special
  36753. to prevent it when JavaScript is disabled; the relevant functions won't be called.
  36754. (WebCore::HTMLCanvasElement::reset): Protect the code that manipulates the
  36755. RenderHTMLCanvas with a check of m_rendererIsCanvas. This is the only code inside
  36756. the DOM element that relies on the renderer type.
  36757. * html/HTMLParser.h: Removed unneeded includes. Marked HTMLParser as
  36758. Noncopyable. Changed the Document parameter to the constructor to instead
  36759. be HTMLDocument. Renamed discard_until to m_skipModeTag for clarity.
  36760. Removed unused noSpaces function and unneeded public doc() function.
  36761. Moved data members all down to the end so you can see them together in order.
  36762. Renamed map to m_currentMapElement and isindex to m_isindexElement.
  36763. Removed unused end and headLoaded data members. Renamed m_fragment to
  36764. m_isParsingFragment to make it clearer that it's a boolean, not a fragment.
  36765. * html/HTMLParser.cpp:
  36766. (WebCore::HTMLParser::HTMLParser): Changed to use member construction
  36767. syntax instead of calling reset(). This is especially helpful in the
  36768. fragment case, where calling reset() later on is illegal, so not using
  36769. it in the constructor lets us assert.
  36770. (WebCore::HTMLParser::~HTMLParser): Did an explicit deref instead of
  36771. calling setCurrent for its side effect.
  36772. (WebCore::HTMLParser::reset): Updated for member name changes and removal
  36773. and to use document instead of doc().
  36774. (WebCore::HTMLParser::setCurrent): Use document instead of doc().
  36775. (WebCore::HTMLParser::setSkipMode): Added. No longer inline. Now sets the
  36776. m_inCanvasBeforeFirstOpenTag data member to false.
  36777. (WebCore::HTMLParser::parseToken): Tightened up the skip mode logic at the
  36778. top of the function, and added a FIXME about the strange case there where
  36779. we don't skip yet stay in skip mode. Updated for renaming and doc().
  36780. (WebCore::HTMLParser::insertNode): Updated for renaming and doc().
  36781. (WebCore::HTMLParser::handleError): Ditto.
  36782. (WebCore::HTMLParser::framesetCreateErrorCheck): Ditto.
  36783. (WebCore::HTMLParser::isindexCreateErrorCheck): Changed to use RefPtr.
  36784. (WebCore::HTMLParser::noscriptCreateErrorCheck): Updated for renaming and doc().
  36785. (WebCore::HTMLParser::mapCreateErrorCheck): Ditto.
  36786. (WebCore::HTMLParser::getNode): Removed the special case for canvas here.
  36787. Canvas fallback is now handled in the DOM, not the parser. Updated for
  36788. renaming and doc().
  36789. (WebCore::HTMLParser::allowNestedRedundantTag): Changed a #define into a C++
  36790. constant.
  36791. (WebCore::HTMLParser::processCloseTag): Updated for renaming and doc().
  36792. (WebCore::HTMLParser::isInline): Ditto.
  36793. (WebCore::HTMLParser::tagIsOnStack): Added. Used by new canvas logic.
  36794. (WebCore::HTMLParser::popBlock): Updated for renaming and doc(). Also renamed
  36795. the local variable Elem to elem.
  36796. (WebCore::HTMLParser::createHead): Ditto.
  36797. (WebCore::HTMLParser::handleIsindex): Changed to use RefPtr.
  36798. (WebCore::HTMLParser::startBody): Updated for renaming and doc().
  36799. (WebCore::HTMLParser::finished): Ditto.
  36800. 2007-03-13 David Hyatt <hyatt@apple.com>
  36801. Two more cleanup fixes to the cache. Don't call destroyDecodedData in the BitmapImage destructor, since
  36802. clearing the image source and calling setData on it again causes it to do an extra copy of the encoded
  36803. data. Since we're about to be destroyed this is just wasteful.
  36804. When the cache prunes, don't allow it to destroy the decoded data of an image that is still actively loading,
  36805. since we've established that ImageIO can actually crash if you yank the rug out from under it like that.
  36806. Reviewed by ggaren
  36807. * loader/Cache.cpp:
  36808. (WebCore::Cache::prune):
  36809. * platform/graphics/BitmapImage.cpp:
  36810. (WebCore::BitmapImage::~BitmapImage):
  36811. 2007-03-13 Anders Carlsson <acarlsson@apple.com>
  36812. Try fixing the Qt build.
  36813. * editing/Editor.h:
  36814. (WebCore::Editor::setStartNewKillRingSequence):
  36815. 2007-03-13 David Harrison <harrison@apple.com>
  36816. Reviewed by Justin.
  36817. <rdar://problem/5031181> cntl-k at end of paragraph adds nothing to the kill ring
  36818. <rdar://problem/5031189> REGRESSION: cntl-y yanks only the most recently killed content
  36819. For rdar://5031181, properly extend the selection before the killring handling, and
  36820. make sure plainText of that selection returns a linefeed.
  36821. For rdar://5031189, restore Editor::deleteRange() code that continued current killring,
  36822. even though the range deletion implicitly stopped it via changing the selection.
  36823. A byproduct of this change is the elimination of RUNDFINDER vs CONTENT TextIterator. The
  36824. only difference between the two was whether to emit a newline when the range started
  36825. with a blockflow element. No callers actually need that any more.
  36826. Tests added:
  36827. * editing/pasteboard/emacs-ctrl-k-y-001-expected.checksum: Added.
  36828. * editing/pasteboard/emacs-ctrl-k-y-001-expected.png: Added.
  36829. * editing/pasteboard/emacs-ctrl-k-y-001-expected.txt: Added.
  36830. * editing/pasteboard/emacs-ctrl-k-y-001.html: Added.
  36831. * editing/Editor.cpp:
  36832. (WebCore::Editor::deleteRange):
  36833. Clear the "start new kill ring sequence" setting, because it was set to true
  36834. when the selection was updated by deleting the range.
  36835. (WebCore::Editor::deleteWithDirection):
  36836. If extending the selection to the end of paragraph resulted in a caret selection,
  36837. extend by character, to handle the case when the selection started as a caret at
  36838. the end of paragraph.
  36839. * editing/TextIterator.cpp:
  36840. (WebCore::TextIterator::TextIterator):
  36841. Initialize new member variables for tracking handling of the beginning of the range.
  36842. (WebCore::TextIterator::advance):
  36843. Call representNodeOffsetZero on the m_endContainer.
  36844. Move visibility checks into handleTextNode and handleReplacedElement.
  36845. (WebCore::TextIterator::handleTextNode):
  36846. (WebCore::TextIterator::handleTextBox):
  36847. Call emitText.
  36848. (WebCore::TextIterator::handleReplacedElement):
  36849. Moved visibility check into here.
  36850. (WebCore::shouldEmitNewlinesBeforeAndAfterNode):
  36851. (WebCore::TextIterator::shouldRepresentNodeOffsetZero):
  36852. (WebCore::TextIterator::representNodeOffsetZero):
  36853. New. Emits proper sequence when encountering offset 0 of a node, including the
  36854. m_endContainer. Started with code from handleNonTextNode.
  36855. (WebCore::TextIterator::handleNonTextNode):
  36856. Call representNodeOffsetZero.
  36857. (WebCore::TextIterator::exitNode):
  36858. Similar to shouldRepresentNodeOffsetZero, do not emit the newline if the node
  36859. was collapsed, and before any other emitted content.
  36860. (WebCore::TextIterator::emitCharacter):
  36861. (WebCore::TextIterator::emitText):
  36862. New. Consolidates code used by handleText and handleTextBox.
  36863. (WebCore::CharacterIterator::CharacterIterator):
  36864. Removed RUNFINDER.
  36865. (WebCore::WordAwareIterator::WordAwareIterator):
  36866. Removed RUNFINDER.
  36867. (WebCore::WordAwareIterator::advance):
  36868. Formatting.
  36869. (WebCore::TextIterator::rangeLength):
  36870. Formatting.
  36871. * editing/TextIterator.h:
  36872. Added member variables for tracking handling of the beginning of the range.
  36873. Eliminated concept of RUNDFINDER vs CONTENT TextIterator.
  36874. * editing/visible_units.cpp:
  36875. (WebCore::nextBoundary):
  36876. Eliminated concept of RUNDFINDER vs CONTENT TextIterator.
  36877. 2007-03-13 David Hyatt <hyatt@apple.com>
  36878. Clean up the null image case in CachedImage::data to make sure the size totals will stay accurate.
  36879. I'm not convinced this case can even be hit, but I'm cleaning it up just in case.
  36880. * loader/CachedImage.cpp:
  36881. (WebCore::CachedImage::data):
  36882. 2007-03-13 David Hyatt <hyatt@apple.com>
  36883. Reorder the call to allReferencesRemoved, since otherwise the live object size will become
  36884. incorrect.
  36885. * loader/CachedResource.cpp:
  36886. (WebCore::CachedResource::deref):
  36887. 2007-03-13 Antti Koivisto <antti@apple.com>
  36888. Reviewed by Darin.
  36889. Fix http://bugs.webkit.org/show_bug.cgi?id=11083
  36890. REGRESSION: Typing tab key fails to insert a tab character in Google Docs editable area
  36891. <rdar://problem/4757650>
  36892. Allow inserting tabs in designMode. Backtab behaves like before (matches FF).
  36893. * page/EventHandler.cpp:
  36894. (WebCore::EventHandler::defaultTabEventHandler):
  36895. 2007-03-13 David Hyatt <hyatt@apple.com>
  36896. Fix two counting errors in the decoded size of objects in the WebCore cache. We need to explicitly
  36897. destroy decoded data when clearing out a partially loaded image that had an error, since the destructor
  36898. (although it does destroy the data) disconnects the observer so that the notification doesn't happen.
  36899. Some CachedImages aren't in the cache (like image documents). When the decoded size of such an image
  36900. changes we should not notify the cache, since - newsflash - we aren't actually in it.
  36901. Reviewed by ggaren
  36902. * loader/CachedImage.cpp:
  36903. (WebCore::CachedImage::clear):
  36904. (WebCore::CachedImage::decodedSizeChanged):
  36905. 2007-03-13 Darin Adler <darin@apple.com>
  36906. Reviewed by Tim Hatcher and John Sullivan.
  36907. - fix <rdar://problem/4915303> CrashTracer: 36 crashes in Safari at
  36908. com.apple.AppKit: -[NSView getRectsBeingDrawn:count:] + 502
  36909. * page/mac/FrameMac.mm: (WebCore::Frame::imageFromRect):
  36910. This was calling drawRect: directly, but NSView's getRectsBeingDrawn:count:
  36911. method was never really safe to call unless it was AppKit that called your
  36912. drawRect: method. Changed it to call drawSingleRect: instead. A little ugly,
  36913. but seems to work and will almost certainly fix the bug.
  36914. 2007-03-13 Nikolas Zimmermann <zimmermann@kde.org>
  36915. Reviewed by Maciej.
  36916. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12974
  36917. Call forgetGenericContext in JSSVGPathSeg destructor, otherwhise
  36918. we'll hit an ASSERT in a debug build, when running svg/custom/js-update-path-changes.svg
  36919. a few dozen times in a single WebKit instance. The ASSERT is good and just warns that
  36920. there was already a generic context pointer registered, and the new "to be registered"
  36921. object already exists, but pointing to a different object. That's because garbage collection
  36922. calls the JSSVGPathSeg destructor, but that didn't cleanup the generic context map.
  36923. Only JSSVGPathSeg is hit by this problem, as it's the only non SVGAnimated* type
  36924. using the generic context system while using a custom JSSVGPathSegList implementation.
  36925. Also cleanup JSSVGPathSegListCustom code to call the static forgetGenericContext
  36926. method instead of doing the same using custom code.
  36927. * bindings/js/JSSVGPathSegListCustom.cpp:
  36928. (WebCore::removeFromPathSegContextMap):
  36929. (WebCore::JSSVGPathSegList::clear):
  36930. (WebCore::JSSVGPathSegList::removeItem):
  36931. * bindings/scripts/CodeGeneratorJS.pm:
  36932. 2007-03-13 Darin Adler <darin@apple.com>
  36933. Reviewed by Adele.
  36934. - fix http://bugs.webkit.org/show_bug.cgi?id=12595
  36935. <rdar://problem/4722863> REGRESSION: Can't add item to cart at lnt.com
  36936. (JS type error) (12595)
  36937. Test: fast/forms/old-names.html
  36938. * bindings/js/JSHTMLFormElementCustom.cpp:
  36939. (WebCore::JSHTMLFormElement::canGetItemsForName): If the form collection has
  36940. nothing for a given name, try the form's oldNamedElement function.
  36941. (WebCore::JSHTMLFormElement::nameGetter): Ditto.
  36942. * bindings/js/kjs_dom.h: Removed the DOMNamedNodesCollection. Instead we will use
  36943. a class derived from NodeList.
  36944. * bindings/js/kjs_dom.cpp: Ditto.
  36945. * bindings/js/kjs_html.cpp:
  36946. (KJS::VectorNodeList::VectorNodeList): Added. Constructor for a new class derived
  36947. from NodeList to be used for the named items result from a collection -- uses a
  36948. vector of node pointers.
  36949. (KJS::VectorNodeList::length): Added.
  36950. (KJS::VectorNodeList::item): Added.
  36951. (KJS::JSHTMLCollection::getNamedItems): Use VectorNodeList and the existing wrapper
  36952. for NodeList rather than a custom JavaScript class, DOMNamedNodesCollection.
  36953. * dom/ChildNodeList.h:
  36954. * dom/ChildNodeList.cpp:
  36955. (WebCore::ChildNodeList::ChildNodeList): Updated to derive from TreeNodeList,
  36956. since NodeList is now a simpler class.
  36957. (WebCore::ChildNodeList::elementMatches): Updated for name and parameter change.
  36958. * dom/NameNodeList.h:
  36959. * dom/NameNodeList.cpp:
  36960. (WebCore::NameNodeList::NameNodeList): Updated to derive from TreeNodeList,
  36961. since NodeList is now a simpler class.
  36962. (WebCore::NameNodeList::rootNodeAttributeChanged): Updated for name and
  36963. parameter change.
  36964. * dom/Node.h: Change register/unregister functions to take TreeNodeList.
  36965. * dom/Node.cpp:
  36966. (WebCore::TagNodeList::TagNodeList): Updated to derive from TreeNodeList,
  36967. since NodeList is now a simpler abstract class.
  36968. (WebCore::TagNodeList::elementMatches): Updated for name and parameter change.
  36969. (WebCore::Node::registerNodeList): Changed type from NodeList to TreeNodeList.
  36970. (WebCore::Node::unregisterNodeList): Ditto.
  36971. * dom/NodeList.h: Broke NodeList into a simpler base class and a derived class
  36972. with the machinery for iterating a tree, called TreeNodeList.
  36973. * dom/NodeList.cpp:
  36974. (WebCore::NodeList::~NodeList): Added.
  36975. (WebCore::NodeList::itemWithName): Factored out of the old itemWithName.
  36976. (WebCore::TreeNodeList::TreeNodeList): Renamed from NodeList.
  36977. (WebCore::TreeNodeList::~TreeNodeList): Ditto.
  36978. (WebCore::TreeNodeList::recursiveLength): Ditto.
  36979. (WebCore::TreeNodeList::itemForwardsFromCurrent): Ditto.
  36980. (WebCore::TreeNodeList::itemBackwardsFromCurrent): Ditto.
  36981. (WebCore::TreeNodeList::recursiveItem): Ditto.
  36982. (WebCore::TreeNodeList::itemWithName): Factored half of this into this function,
  36983. the other half in NodeList::itemWithName.
  36984. (WebCore::TreeNodeList::rootNodeAttributeChanged): Added. No longer inline.
  36985. (WebCore::TreeNodeList::rootNodeChildrenChanged): Renamed from NodeList.
  36986. * html/HTMLFormElement.h: Added formElementNameChanged and oldNamedElement
  36987. fucntions, and a map called m_oldNames. Also removed m_boundary, which I
  36988. thought I had already done.
  36989. * html/HTMLFormElement.cpp:
  36990. (WebCore::HTMLFormElement::HTMLFormElement): Initialize m_oldNames to 0.
  36991. Switched the rest of the members to initialization syntax.
  36992. (WebCore::HTMLFormElement::~HTMLFormElement): Delete m_oldNames.
  36993. (WebCore::HTMLFormElement::formElementNameChanged): Added. Stores a reference
  36994. to one element under each of its old names.
  36995. (WebCore::HTMLFormElement::oldNamedElement): Added. Returns the old element
  36996. that once had a given name.
  36997. * html/HTMLGenericFormElement.h:
  36998. * html/HTMLGenericFormElement.cpp:
  36999. (WebCore::HTMLGenericFormElement::parseMappedAttribute): When the name
  37000. attribute changes, tell the form about the old name.
  37001. (WebCore::HTMLGenericFormElement::insertedIntoTree): When telling a form
  37002. about an element, also store away the old name so that we can use it
  37003. when the name changes later.
  37004. * html/HTMLInputElement.cpp:
  37005. (WebCore::HTMLInputElement::parseMappedAttribute): Added a call to the
  37006. base class in the nameAttr case, so the code in HTMLGenericFormElement
  37007. above will get called in the input element case.
  37008. 2007-03-13 Antti Koivisto <antti@apple.com>
  37009. Reviewed by Alexey.
  37010. Alexey spotted a DOS by using string of 64k unbreakable character in
  37011. fix for http://bugs.webkit.org/show_bug.cgi?id=12833
  37012. * dom/Text.cpp:
  37013. (WebCore::Text::createWithLengthLimit):
  37014. 2007-03-13 Lars Knoll <lars@trolltech.com>
  37015. Fix the Qt build
  37016. * WebCore.pro:
  37017. 2007-03-13 Rob Buis <buis@kde.org>
  37018. Reviewed by Darin.
  37019. http://bugs.webkit.org/show_bug.cgi?id=12576
  37020. WebKit does not support xlink:show attributes
  37021. Make an exception for non-empty targets, these should be opened
  37022. in a new window, unless the value is _self.
  37023. * ksvg2/svg/SVGAElement.cpp:
  37024. (WebCore::SVGAElement::defaultEventHandler):
  37025. 2007-03-13 David Hyatt <hyatt@apple.com>
  37026. - fix cache issues seen in http://bugs.webkit.org/show_bug.cgi?id=13050
  37027. 6 objects and ~200MB leaked after opening then closing tab
  37028. <rdar://problem/5058714>
  37029. Double the encoded size of images for now. We do this to account for a bug in ImageIO where they hold
  37030. a separate copy of image data. See <rdar://problem/5050645>.
  37031. Reviewed by aroben.
  37032. * loader/CachedImage.cpp:
  37033. (WebCore::CachedImage::data):
  37034. 2007-03-12 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  37035. Not reviewed - gdk build fix.
  37036. * platform/gdk/TemporaryLinkStubs.cpp:
  37037. (SearchPopupMenu::enabled): add missing stub.
  37038. 2007-03-12 David Kilzer <ddkilzer@kilzer.net>
  37039. Reviewed by Darin.
  37040. - fix http://bugs.webkit.org/show_bug.cgi?id=13045
  37041. REGRESSION: Blackboard CourseWare Error with Nightlies after Mar 8
  37042. * html/HTMLFormElement.cpp:
  37043. (WebCore::getUniqueBoundaryString): Speculative fix: remove dashes from
  37044. the boundary prefix that appear after non-dash characters.
  37045. 2007-03-12 Mitz Pettel <mitz@webkit.org>
  37046. Reviewed by Anders.
  37047. - fix http://bugs.webkit.org/show_bug.cgi?id=13015
  37048. REGRESSION (r17233-r17241): Repro crash when leaving a page whose unload handler submits a form
  37049. Test: fast/loader/onunload-form-submit-crash-2.html
  37050. * loader/DocumentLoader.cpp:
  37051. (WebCore::DocumentLoader::finishedLoading): Added null check.
  37052. 2007-03-12 Anders Carlsson <acarlsson@apple.com>
  37053. Reviewed by Darin.
  37054. <rdar://problem/4900071>
  37055. http://bugs.webkit.org/show_bug.cgi?id=6454
  37056. ASSERTION: Navigating 'back' in frameset: !_private->previousItem (6454)
  37057. Change back the behavior of checkLoadComplete to traverse the entire frame tree instead of
  37058. just the parent frames of the current frame. This is needed in order to reset the previous history item
  37059. for all frames when doing a frame navigation. (This was changed in revision 11819)
  37060. * loader/FrameLoader.cpp:
  37061. (WebCore::FrameLoader::recursiveCheckLoadComplete):
  37062. (WebCore::FrameLoader::checkLoadComplete):
  37063. * loader/FrameLoader.h:
  37064. 2007-03-12 Justin Garcia <justin.garcia@apple.com>
  37065. Reviewed by darin
  37066. <rdar://problem/5056619>
  37067. REGRESSION: Gmail Editor: Dragging text into Reply (textarea) field results in a crash at WebCore::InsertNodeBeforeCommand::doApply()
  37068. * editing/SelectionController.cpp:
  37069. (WebCore::removingNodeRemovesPosition): Added.
  37070. (WebCore::SelectionController::nodeWillBeRemoved): Clear the
  37071. selection if it's inside a shadow tree.
  37072. * page/DragController.cpp:
  37073. (WebCore::setSelectionToDragCaret): Return false to signal to
  37074. clients that a drop shouldn't be performed if the second attempt
  37075. to set a selection ends up in non-editable content.
  37076. 2007-03-12 Darin Adler <darin@apple.com>
  37077. Reviewed by Tim Hatcher.
  37078. - fixed JavaScript wrapper classes to be correct for a variety of cases
  37079. that a new test uncovered: was broken for at least 5 classes
  37080. - fixed Objective-C wrapper classes to be correct for a variety of cases
  37081. that a test case uncovered: was broken for ast least 50 classes
  37082. - added missing DOM API for creating OverflowEvent and WheelEvent instances
  37083. Test: fast/dom/wrapper-classes.html
  37084. * DerivedSources.make: Added missing bindings: HTMLCanvasElement for ObjC,
  37085. CDATASection, Comment, and EntityReference for JavaScript.
  37086. * WebCore.xcodeproj/project.pbxproj: Added those new generated files.
  37087. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  37088. (WebCore::createJSHTMLWrapper): Corrected the wrapper classes for <keygen>,
  37089. which needs an HTMLSelectElement wrapper, and <xmp>, which needs an
  37090. HTMLPreElement wrapper.
  37091. * bindings/objc/DOMInternal.h: Updated for new naming scheme.
  37092. Also moved createDOMWrapper from the KJS namespace to the WebCore namespace.
  37093. * bindings/objc/DOMUtility.mm:
  37094. (KJS::createDOMWrapper): Broke the core function into a separate one, and
  37095. left it in the KJS namespace because Objective-C++ rules make it impossible
  37096. for it to work in the WebCore namespace. Used a macro-based implementation
  37097. to cut down on repeated code, and added missing cases for Counter,
  37098. HTMLOptionsCollection, Range, XPathExpression, XPathResult, Event, RGBColor,
  37099. Rect, Window, DOMImplementation, NodeIterator, TreeWalker, and HTMLCollection.
  37100. (WebCore::createDOMWrapper): The other half of the function.
  37101. * bindings/objc/DOM.mm:
  37102. (WebCore::createElementClassMap): Corrected the wrapper classes for
  37103. <canvas>, which needs a DOMHTMLCanvasElement wrapper, <del>, which needs
  37104. a DOMHTMLModElement wrapper, <embed>, which needs a DOMHTMLEmbedElement
  37105. wrapper, <ins>, which needs a DOMHTMLModElement wrapper, <th>, which needs
  37106. a DOMHTMLTableCellElement wrapper, and <xmp>, which needs an
  37107. DOMHTMLPreElement wrapper.
  37108. (+[DOMNode _wrapNode:]): Updated for new naming scheme.
  37109. (+[DOMNode _wrapEventTarget:]): Ditto.
  37110. (+[DOMNodeFilter _wrapNodeFilter:]): Ditto.
  37111. (ObjCNodeFilterCondition::acceptNode): Ditto.
  37112. (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]): Ditto.
  37113. (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]): Ditto.
  37114. (WebCore::ObjCEventListener::handleEvent): Ditto.
  37115. * dom/Document.cpp: (WebCore::Document::createEvent):
  37116. Added cases for OverflowEvent and WheelEvent.
  37117. * dom/OverflowEvent.h: Added empty constructor and initOverflowEvent.
  37118. * dom/OverflowEvent.cpp:
  37119. (WebCore::OverflowEvent::OverflowEvent): Added.
  37120. (WebCore::OverflowEvent::initOverflowEvent): Added.
  37121. * dom/OverflowEvent.idl: Added initOverflowEvent.
  37122. * bindings/objc/PublicDOMInterfaces.h: Added initOverflowEvent.
  37123. * bindings/objc/DOMCSS.mm:
  37124. (+[DOMStyleSheet _wrapStyleSheet:]): Updated for new naming scheme.
  37125. (+[DOMCSSRule _wrapCSSRule:]): Corrected wrapper for CSSUnknownRule.
  37126. (+[DOMCSSValue _wrapCSSValue:]): Updated for new naming scheme.
  37127. * bindings/js/kjs_css.h:
  37128. (KJS::DOMRGBColor::impl): Added. Used when making an ObjC wrapper.
  37129. (KJS::DOMRect::impl): Ditto.
  37130. * bindings/js/kjs_dom.cpp: (KJS::toJS): Corrected the wrapper classes for
  37131. CDATASection, Comment, and EntityReference.
  37132. * bindings/js/kjs_html.cpp: Corrected the class name for HTMLElement
  37133. (was "DOMHTMLElement") and HTMLCollection (was "Collection").
  37134. * bindings/objc/DOMImplementationFront.h:
  37135. * bindings/objc/DOMImplementationFront.cpp:
  37136. (WebCore::implementationFront): Added new overload that returns a front given
  37137. a JavaScript wrapper. Needed by the code that makes the Objective-C wrapper.
  37138. * bindings/objc/WebScriptObject.mm:
  37139. (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
  37140. Updated since createDOMWrapper is now in the WebCore namespace.
  37141. * bindings/scripts/CodeGeneratorObjC.pm: Update the naming scheme for the
  37142. wrapper creation functions to use _wrapElement: rather then _elementWith:
  37143. style. Removed now-unneeded special cases for things that needed to stay
  37144. upper-case, since we don't have to do the whole lcfirst thing.
  37145. * html/HTMLCanvasElement.idl: Added #if so we can successfully generate the
  37146. Objective-C wrapper for this class, even though we can't yet handle the
  37147. DOMObject return type.
  37148. * html/HTMLOptionsCollection.idl: Added GenerateNativeConverter so we get
  37149. an appropriate toJS function.
  37150. * bindings/objc/DOMEvents.mm:
  37151. (+[DOMEvent _wrapEvent:]):
  37152. * bindings/objc/DOMHTML.mm:
  37153. (-[DOMHTMLDocument createDocumentFragmentWithMarkupString:baseURL:]):
  37154. (-[DOMHTMLDocument createDocumentFragmentWithText:]):
  37155. * bindings/objc/DOMObject.mm:
  37156. (-[DOMObject sheet]):
  37157. * bindings/objc/DOMRGBColor.mm:
  37158. (-[DOMRGBColor red]):
  37159. (-[DOMRGBColor green]):
  37160. (-[DOMRGBColor blue]):
  37161. (-[DOMRGBColor alpha]):
  37162. (+[DOMRGBColor _wrapRGBColor:]):
  37163. * bindings/objc/DOMSVGPathSegInternal.mm:
  37164. (+[DOMSVGPathSeg _wrapSVGPathSeg:]):
  37165. * bindings/objc/DOMXPath.mm:
  37166. (+[DOMNativeXPathNSResolver _wrapXPathNSResolver:]):
  37167. * page/mac/WebCoreFrameBridge.mm:
  37168. (-[WebCoreFrameBridge nodesFromList:]):
  37169. (-[WebCoreFrameBridge elementWithName:inForm:]):
  37170. (-[WebCoreFrameBridge formForElement:]):
  37171. (-[WebCoreFrameBridge currentForm]):
  37172. (-[WebCoreFrameBridge controlsInForm:]):
  37173. (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
  37174. (-[WebCoreFrameBridge convertNSRangeToDOMRange:]):
  37175. (-[WebCoreFrameBridge markDOMRange]):
  37176. (-[WebCoreFrameBridge markedTextDOMRange]):
  37177. (-[WebCoreFrameBridge smartDeleteRangeForProposedRange:]):
  37178. (-[WebCoreFrameBridge documentFragmentWithMarkupString:baseURLString:]):
  37179. (-[WebCoreFrameBridge documentFragmentWithText:inContext:]):
  37180. (-[WebCoreFrameBridge documentFragmentWithNodesAsParagraphs:]):
  37181. (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
  37182. (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
  37183. (-[WebCoreFrameBridge increaseSelectionListLevel]):
  37184. (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
  37185. (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
  37186. (-[WebCoreFrameBridge dragCaretDOMRange]):
  37187. (-[WebCoreFrameBridge editableDOMRangeForPoint:]):
  37188. (-[WebCoreFrameBridge characterRangeAtPoint:]):
  37189. (-[WebCoreFrameBridge typingStyle]):
  37190. (-[WebCoreFrameBridge rangeOfCharactersAroundCaret]):
  37191. * platform/mac/ClipboardMac.mm:
  37192. (WebCore::ClipboardMac::declareAndWriteDragImage):
  37193. * platform/mac/PasteboardMac.mm:
  37194. (WebCore::Pasteboard::writeSelection):
  37195. Updated for new naming scheme.
  37196. 2007-03-12 Timothy Hatcher <timothy@apple.com>
  37197. Reviewed by Darin.
  37198. <rdar://problem/4990691> REGRESSION: Selecting text in Adium's Messages field causes horizontal shift
  37199. Corrected the recursive point conversion and scrolling done in scrollPointRecursively to use the
  37200. document view of each NSClipView.
  37201. * platform/mac/ScrollViewMac.mm:
  37202. (WebCore::ScrollView::scrollPointRecursively): Call convertPoint:fromView: on the document views,
  37203. not the clip views as we encounter them. Then call constrainScrollPoint: on the converted point to
  37204. constrain to the document view bounds. And finally call scrollPoint: on the document view, not the clip view.
  37205. 2007-03-12 Antti Koivisto <antti@apple.com>
  37206. Reviewed by Alexey.
  37207. Fix http://bugs.webkit.org/show_bug.cgi?id=12833
  37208. REGRESSION: Selecting text in 6.6MB txt file is sluggish as of the Feb 19th nightly
  37209. <rdar://problem/5028159>
  37210. Divide large text blocks (>64kB) over multiple text nodes. This limits linebox searches to
  37211. a manageable subset.
  37212. * dom/Text.cpp:
  37213. (WebCore::Text::createWithLengthLimit):
  37214. * dom/Text.h:
  37215. * html/HTMLParser.cpp:
  37216. (WebCore::HTMLParser::parseToken):
  37217. * loader/TextDocument.cpp:
  37218. (WebCore::TextTokenizer::write):
  37219. 2007-03-12 David Hyatt <hyatt@apple.com>
  37220. Fix a regression in printing. Printer fonts need to be part of the
  37221. font cache key, since printer fonts have different glyph widths.
  37222. (Integer antialiasing is used for screen fonts but not for printer fonts.)
  37223. Reviewed by aroben
  37224. * platform/FontCache.cpp:
  37225. (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
  37226. (WebCore::FontPlatformDataCacheKey::operator==):
  37227. (WebCore::computeHash):
  37228. (WebCore::FontCache::getCachedFontPlatformData):
  37229. 2007-03-12 Lars Knoll <lars@trolltech.com>
  37230. add missing symbol to fix the Qt build again.
  37231. * platform/qt/SearchPopupMenuQt.cpp:
  37232. (WebCore::SearchPopupMenu::enabled):
  37233. 2007-03-12 Adele Peterson <adele@apple.com>
  37234. Reviewed by Oliver.
  37235. Adding the ability to enable or disable a SearchPopupMenu.
  37236. * platform/SearchPopupMenu.h:
  37237. * platform/mac/SearchPopupMenuMac.mm: (WebCore::SearchPopupMenu::enabled):
  37238. * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::showPopup):
  37239. 2007-03-12 Rob Buis <buis@kde.org>
  37240. Reviewed by Nikolas Zimmermann.
  37241. http://bugs.webkit.org/show_bug.cgi?id=12500
  37242. SVG fails to correctly handle all link style selectors
  37243. http://bugs.webkit.org/show_bug.cgi?id=12567
  37244. <text> elements ignore <a> children
  37245. Allow <a> inside svg text and handle xlink:show.
  37246. * ksvg2/svg/SVGAElement.cpp:
  37247. (WebCore::SVGAElement::createRenderer):
  37248. (WebCore::SVGAElement::defaultEventHandler):
  37249. (WebCore::SVGAElement::childShouldCreateRenderer):
  37250. * ksvg2/svg/SVGAElement.h:
  37251. * ksvg2/svg/SVGElement.h:
  37252. (WebCore::SVGElement::isTextContent):
  37253. * ksvg2/svg/SVGTextContentElement.h:
  37254. (WebCore::SVGTextContentElement::isTextContent):
  37255. * ksvg2/svg/SVGTextElement.cpp:
  37256. (WebCore::SVGTextElement::childShouldCreateRenderer):
  37257. * rendering/SVGInlineFlowBox.cpp:
  37258. (WebCore::translateBox):
  37259. (WebCore::placePositionedBoxesHorizontally):
  37260. (WebCore::placeBoxesVerticallyWithAbsBaseline):
  37261. 2007-03-12 Adele Peterson <adele@apple.com>
  37262. Reviewed by Oliver.
  37263. Add a missing parameter to the constructor.
  37264. * platform/PlatformKeyboardEvent.h:
  37265. * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  37266. 2007-03-12 Lars Knoll <lars@trolltech.com>
  37267. Fix the Qt build. I still get crashes though :/
  37268. * platform/graphics/qt/ImageDecoderQt.cpp:
  37269. (WebCore::ImageDecoderQt::clearFrame):
  37270. * platform/graphics/qt/ImageDecoderQt.h:
  37271. * platform/graphics/qt/ImageSourceQt.cpp:
  37272. (WebCore::ImageSource::setData):
  37273. (WebCore::ImageSource::frameIsCompleteAtIndex):
  37274. (WebCore::ImageSource::clear):
  37275. (WebCore::ImageSource::destroyFrameAtIndex):
  37276. * platform/qt/ClipboardQt.cpp:
  37277. (WebCore::ClipboardQt::ClipboardQt):
  37278. * platform/qt/ClipboardQt.h:
  37279. * platform/qt/DragDataQt.cpp:
  37280. (WebCore::DragData::createClipboard):
  37281. 2007-03-11 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  37282. Not reviewed - gdk build fixes.
  37283. * platform/gdk/EditorClientGdk.cpp:
  37284. (WebCore::EditorClientGdk::respondToChangedSelection): add stub
  37285. * platform/gdk/EditorClientGdk.h:
  37286. * platform/gdk/FrameGdk.cpp:
  37287. * platform/gdk/TemporaryLinkStubs.cpp:
  37288. (Editor::markMisspellings): add stub
  37289. 2007-03-11 Alexey Proskuryakov <ap@webkit.org>
  37290. Reviewed by Adele.
  37291. http://bugs.webkit.org/show_bug.cgi?id=12560
  37292. W3C XPath test Text_Nodes.svg fails
  37293. * xml/XPathStep.cpp:
  37294. (WebCore::XPath::Step::nodeTestMatches): Revert the fix, as the behavior doesn't appear
  37295. all that desirable as it did at first glance.
  37296. 2007-03-11 Oliver Hunt <oliver@apple.com>
  37297. Reviewed by hyatt.
  37298. Fix for <rdar://problem/5055690> ASSERTION failure on drop into
  37299. editable element with content changed on drop
  37300. After setting the selection for a drop into an editable region
  37301. we make sure the we succeeded. If we didn't we assume a focus handler
  37302. or similar altered the element contents and try again, if the second
  37303. attempt fails we bail out.
  37304. * page/DragController.cpp:
  37305. (WebCore::setSelectionToDragCaret):
  37306. (WebCore::DragController::concludeDrag):
  37307. 2007-03-11 Oliver Hunt <oliver@apple.com>
  37308. Reviewed by Adele.
  37309. Moving Frame{Mac}::respondToChangedSelection to Frame.cpp
  37310. Added new EditorClient method to handle old bridge function
  37311. * bridge/EditorClient.h:
  37312. Added respondToChangedSelection to replace old bridge function
  37313. * editing/Editor.cpp:
  37314. (WebCore::Editor::respondToChangedSelection):
  37315. Add client call to replace old bridge call from Frame::respondToChangedSelection
  37316. * editing/SelectionController.cpp:
  37317. (WebCore::SelectionController::setSelection):
  37318. No longer directly call Editor as Frame::respondToChangedSelection
  37319. makes the call
  37320. * page/Frame.cpp:
  37321. (WebCore::Frame::respondToChangedSelection):
  37322. Moved from FrameMac, replaced bridge call with call to Editor
  37323. * page/mac/FrameMac.mm:
  37324. Moved respondToChangedSelection to Frame.cpp
  37325. * page/mac/WebCoreFrameBridge.h:
  37326. Removed respondToChangedSelection from bridge
  37327. * page/qt/FrameQt.cpp:
  37328. Remove stub method for respondToChangedSelection
  37329. 2007-03-11 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  37330. Reviewed by Brady Eidson.
  37331. Linux/gdk fix.
  37332. * loader/gdk/FrameLoaderClientGdk.cpp:
  37333. (WebCore::FrameLoaderClientGdk::shouldGoToHistoryItem): return true so
  37334. that FrameLoader:goBackOrForwards() works.
  37335. 2007-03-10 Geoffrey Garen <ggaren@apple.com>
  37336. Reviewed by Darin Adler.
  37337. Fixed <rdar://problem/4587763> PAC file: lock inversion between QT and
  37338. JSCore causes a hang @ www.panoramas.dk
  37339. See JavaScriptCore ChangeLog for details.
  37340. * bindings/objc/WebScriptObject.mm:
  37341. (_didExecute): Added helpful ASSERT.
  37342. (+[WebScriptObject throwException:]): Added missing JSLock.
  37343. 2007-03-11 Antti Koivisto <antti@apple.com>
  37344. Reviewed by Hyatt.
  37345. Optimize linebox memory consumption:
  37346. - move all bitfields to baseclass compacting them
  37347. - make InlineTextBox::m_truncation unsigned short and make it relative to m_start
  37348. - remove extremely rarely used EllipsisBox pointer from RootInlineBox and instead
  37349. use a global hashmap to store it if needed
  37350. - use minimum required number of bits to store BidiStatus enum variables in RootInlineBox
  37351. - move overflow variables in RootInlineBox to a separate struct that is instantiated
  37352. only if any of the variables is set to a value that can't trivially be derived from
  37353. box x, y, width and height
  37354. As a result line box objects shrink:
  37355. InlineBox: 44 -> 44 bytes
  37356. InlineTextBox: 68 -> 60 bytes
  37357. InlineFlowBox: 68 -> 64 bytes
  37358. RootInlineBox: 128 -> 88 bytes
  37359. The optimizations possiblity was noticed when debugging http://bugs.webkit.org/show_bug.cgi?id=12833
  37360. Bug 12833: REGRESSION: Selecting text in 6.6MB txt file is sluggish as of the Feb 19th nightly
  37361. <rdar://problem/5028159>
  37362. On that page the patch saves 11.5MB or some 21% of linebox memory consumption. It also
  37363. actually improves selection performance somewhat by improving memory locality.
  37364. * rendering/InlineBox.h:
  37365. (WebCore::InlineBox::InlineBox):
  37366. * rendering/InlineFlowBox.h:
  37367. (WebCore::InlineFlowBox::InlineFlowBox):
  37368. * rendering/InlineTextBox.cpp:
  37369. (WebCore::InlineTextBox::placeEllipsisBox):
  37370. (WebCore::InlineTextBox::nodeAtPoint):
  37371. (WebCore::InlineTextBox::paint):
  37372. (WebCore::InlineTextBox::paintDecoration):
  37373. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
  37374. (WebCore::InlineTextBox::paintMarkedTextUnderline):
  37375. * rendering/InlineTextBox.h:
  37376. (WebCore::InlineTextBox::InlineTextBox):
  37377. * rendering/RootInlineBox.cpp:
  37378. (WebCore::throw):
  37379. (WebCore::RootInlineBox::Overflow::operator delete):
  37380. (WebCore::RootInlineBox::Overflow::destroy):
  37381. (WebCore::RootInlineBox::destroy):
  37382. (WebCore::RootInlineBox::detachEllipsisBox):
  37383. (WebCore::RootInlineBox::clearTruncation):
  37384. (WebCore::RootInlineBox::placeEllipsis):
  37385. (WebCore::RootInlineBox::paintEllipsisBox):
  37386. (WebCore::RootInlineBox::addHighlightOverflow):
  37387. (WebCore::RootInlineBox::nodeAtPoint):
  37388. (WebCore::RootInlineBox::adjustPosition):
  37389. (WebCore::RootInlineBox::selectionTop):
  37390. (WebCore::RootInlineBox::setLineBreakInfo):
  37391. (WebCore::RootInlineBox::ellipsisBox):
  37392. (WebCore::RootInlineBox::setVerticalOverflowPositions):
  37393. (WebCore::RootInlineBox::setHorizontalOverflowPositions):
  37394. (WebCore::RootInlineBox::setVerticalSelectionPositions):
  37395. * rendering/RootInlineBox.h:
  37396. (WebCore::RootInlineBox::RootInlineBox):
  37397. (WebCore::RootInlineBox::topOverflow):
  37398. (WebCore::RootInlineBox::bottomOverflow):
  37399. (WebCore::RootInlineBox::leftOverflow):
  37400. (WebCore::RootInlineBox::rightOverflow):
  37401. (WebCore::RootInlineBox::lineBreakBidiStatus):
  37402. (WebCore::RootInlineBox::selectionBottom):
  37403. (WebCore::RootInlineBox::Overflow::Overflow):
  37404. 2007-03-11 Alexey Proskuryakov <ap@webkit.org>
  37405. Reviewed by Darin.
  37406. A partial fix for http://bugs.webkit.org/show_bug.cgi?id=13021
  37407. XPath can be very slow
  37408. * xml/XPathExpression.cpp:
  37409. (WebCore::XPathExpression::evaluate): Cache evaluationContext in a local variable.
  37410. * xml/XPathExpressionNode.cpp:
  37411. (WebCore::XPath::Expression::evaluationContext):
  37412. * xml/XPathExpressionNode.h:
  37413. (WebCore::XPath::Expression::addSubExpression):
  37414. (WebCore::XPath::Expression::subExprCount):
  37415. (WebCore::XPath::Expression::subExpr):
  37416. * xml/XPathFunctions.cpp:
  37417. * xml/XPathFunctions.h:
  37418. (WebCore::XPath::Function::setName):
  37419. (WebCore::XPath::Function::arg):
  37420. (WebCore::XPath::Function::argCount):
  37421. (WebCore::XPath::Function::name):
  37422. Made one-liners critical for performance inline.
  37423. * xml/XPathGrammar.y: Fully parse NodeTests, so that strings are no longer passed for what is
  37424. essentially an enum. Use LocationPath accessors to add steps, instead of directly manipulating
  37425. internal data members.
  37426. * xml/XPathParser.cpp:
  37427. (WebCore::XPath::Parser::parseStatement):
  37428. (WebCore::XPath::Parser::registerNodeTest):
  37429. (WebCore::XPath::Parser::deleteNodeTest):
  37430. * xml/XPathParser.h:
  37431. Added support methods for changes in XPathGrammar.y.
  37432. * xml/XPathPath.cpp:
  37433. (WebCore::XPath::Filter::evaluate): Cache evaluationContext in a local variable. Use swap() to avoid
  37434. performing vector assignments.
  37435. (WebCore::XPath::LocationPath::evaluate): Use swap() to avoid performing vector assignments.
  37436. (WebCore::XPath::LocationPath::optimizeStepPair): This new method is called during LocationPath construction,
  37437. to simplify the path as it's being built. Currently, the only optimized case is "//*" - it is a basis for
  37438. important operations that cannot be efficiently written in XPath 1.0, but can be optimized with a little bit
  37439. of XPath 2.0.
  37440. (WebCore::XPath::LocationPath::appendStep): A new accessor that modifies m_steps and calls optimizeStepPair().
  37441. (WebCore::XPath::LocationPath::insertFirstStep): Ditto.
  37442. * xml/XPathPath.h:
  37443. (WebCore::XPath::LocationPath::setAbsolute): A new accessor.
  37444. * xml/XPathStep.h:
  37445. (WebCore::XPath::Step::NodeTest::):
  37446. (WebCore::XPath::Step::NodeTest::NodeTest):
  37447. (WebCore::XPath::Step::NodeTest::kind):
  37448. (WebCore::XPath::Step::NodeTest::data):
  37449. Step::NodeTest is a new sub-class that represents a fully parsed NodeTest.
  37450. (WebCore::XPath::Step::axis):
  37451. (WebCore::XPath::Step::nodeTest):
  37452. (WebCore::XPath::Step::nodeTestData):
  37453. (WebCore::XPath::Step::namespaceURI):
  37454. (WebCore::XPath::Step::predicates):
  37455. (WebCore::XPath::Step::setAxis):
  37456. (WebCore::XPath::Step::setNodeTest):
  37457. (WebCore::XPath::Step::setNodeTestData):
  37458. (WebCore::XPath::Step::setNamespaceURI):
  37459. (WebCore::XPath::Step::setPredicates):
  37460. New accessors that let optimizeStepPair() manipulate Step data.
  37461. * xml/XPathStep.cpp:
  37462. (WebCore::XPath::Step::Step): Use the new NodeTest class.
  37463. (WebCore::XPath::Step::evaluate): Cache evaluationContext in a local variable. Use swap() to avoid
  37464. performing unneeded vector assignments.
  37465. (WebCore::XPath::Step::nodesInAxis): Cosmetic changes.
  37466. (WebCore::XPath::Step::nodeTestMatches): Use NodeTest instead of parsing the test from string each time.
  37467. Added a partial implementation of XPath 2.0 element() node test.
  37468. 2007-03-10 Alexey Proskuryakov <ap@webkit.org>
  37469. Reviewed by Darin.
  37470. http://bugs.webkit.org/show_bug.cgi?id=12249
  37471. FCKeditor: <hr>, <ul> and <ol> have id="undefined"
  37472. This fixes the attached reduction, but not the original issue.
  37473. Test: editing/execCommand/default-parameters.html
  37474. * dom/Document.h:
  37475. * dom/Document.idl:
  37476. Make second and third execCommand() parameters optional.
  37477. 2007-03-10 Adele Peterson <adele@apple.com>
  37478. Reviewed by Maciej.
  37479. Fix for http://bugs.webkit.org/show_bug.cgi?id=13028
  37480. REGRESSION: textField:doCommandBySelector:inFrame: not being called properly
  37481. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
  37482. Before calling the base class defaultEventHandler, which will call handleKeypress, call doTextFieldCommandFromEvent.
  37483. 2007-03-10 Mitz Pettel <mitz@webkit.org>
  37484. Reviewed by Darin.
  37485. - fix http://bugs.webkit.org/show_bug.cgi?id=13013
  37486. REGRESSION: Selection box does not scroll to where the focus jumps when pressing an alphanumeric key
  37487. Test: fast/forms/listbox-typeahead-scroll.html
  37488. * html/HTMLSelectElement.cpp:
  37489. (WebCore::HTMLSelectElement::setSelectedIndex): Reordered to set the active selection's
  37490. anchor and end before selecting the option, since the active selection is used to
  37491. decide where to scroll when the selection is made.
  37492. (WebCore::HTMLSelectElement::defaultEventHandler): Removed redundant check.
  37493. 2007-03-10 Mitz Pettel <mitz@webkit.org>
  37494. Reviewed by Darin.
  37495. - fix http://bugs.webkit.org/show_bug.cgi?id=12973
  37496. REGRESSION: Reproducible assert while loading this test file if css is already in the cache
  37497. Test: fast/dom/css-cached-import-rule.html
  37498. Replaced some direct calls to document->stylesheetLoaded() with calls to
  37499. the sheet's checkLoaded(). The latter calls back to the element's sheetLoaded() --
  37500. which notifies the document of the load -- and then updates the sheet's
  37501. loadCompleted() flag, ensuring that it stays in sync with whether the stylesheet
  37502. is still considered pending by the document.
  37503. * dom/ProcessingInstruction.cpp:
  37504. (WebCore::ProcessingInstruction::parseStyleSheet):
  37505. * dom/StyleElement.cpp:
  37506. (WebCore::StyleElement::childrenChanged):
  37507. * html/HTMLLinkElement.cpp:
  37508. (WebCore::HTMLLinkElement::process):
  37509. (WebCore::HTMLLinkElement::setCSSStyleSheet):
  37510. * ksvg2/svg/SVGStyleElement.cpp:
  37511. (WebCore::SVGStyleElement::sheetLoaded):
  37512. * ksvg2/svg/SVGStyleElement.h:
  37513. 2007-03-10 David Kilzer <ddkilzer@webkit.org>
  37514. Reviewed by Darin.
  37515. - fix http://bugs.webkit.org/show_bug.cgi?id=9609
  37516. REGRESSION: Missing image icon needs to be moved back to WebKit
  37517. * WebCore.exp: Export WebCore::Image::loadPlatformResource(const char*) for use in
  37518. [WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:].
  37519. 2007-03-09 Darin Adler <darin@apple.com>
  37520. Reviewed by Justin.
  37521. - fix http://bugs.webkit.org/show_bug.cgi?id=8928
  37522. <rdar://problem/5045708> REPRODUCIBLE ASSERT: Cannot paste HTML into a
  37523. contenteditable region in an XHTML document (8928)
  37524. Test: editing/pasteboard/paste-xml.xhtml
  37525. * editing/markup.cpp: (WebCore::createFragmentFromMarkup): Added a check for 0
  37526. here, since createContextualFragment can return 0 for XML documents that fail
  37527. to parse. In my testing, callers all seem equipped to handle 0.
  37528. 2007-03-09 Mitz Pettel <mitz@webkit.org>
  37529. Reviewed by Darin.
  37530. - fix http://bugs.webkit.org/show_bug.cgi?id=9929
  37531. REGRESSION: crash on logging in on mijnpostbank.nl
  37532. Test: http/tests/misc/onload-remove-iframe-crash-2.html
  37533. The resulted from an iframe's load event handler removing the iframe
  37534. from the document.
  37535. * dom/Document.cpp:
  37536. (WebCore::Document::implicitClose): Bail out early if an event handler
  37537. removed the frame.
  37538. * loader/FrameLoader.cpp:
  37539. (WebCore::FrameLoader::FrameLoader):
  37540. (WebCore::FrameLoader::clear):
  37541. (WebCore::FrameLoader::checkCompleted): Protect the frame from deletion
  37542. by event handlers.
  37543. (WebCore::FrameLoader::checkCompletedTimerFired):
  37544. (WebCore::FrameLoader::scheduleCheckCompleted):
  37545. (WebCore::FrameLoader::detachFromParent): Schedule a completion check
  37546. on the parent (in case the child is what has been keeping it from completing).
  37547. * loader/FrameLoader.h:
  37548. 2007-03-08 David Kilzer <ddkilzer@webkit.org>
  37549. Reviewed by Beth.
  37550. - fix http://bugs.webkit.org/show_bug.cgi?id=13019
  37551. REGRESSION (r20074): Forms don't submit on a variety of websites
  37552. No tests added since LayoutTests/fast/forms/document-write.html was timing out
  37553. and causing a layout test failure.
  37554. * html/HTMLFormElement.cpp:
  37555. (WebCore::HTMLFormElement::submit): Removed stray code.
  37556. 2007-03-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  37557. Not reviewed - gdk build fix.
  37558. * platform/graphics/cairo/ImageSourceCairo.cpp:
  37559. (WebCore::ImageSource::frameIsCompleteAtIndex): add empty stub
  37560. 2007-03-08 Justin Garcia <justin.garcia@apple.com>
  37561. Reviewed by harrison
  37562. <rdar://problem/4903193>
  37563. On particular page, Copy is so slow it seems like a hang
  37564. ~2x speedup copying:
  37565. http://shakespeare.mit.edu/henryviii/full.html
  37566. Also produces less bloated markup.
  37567. * editing/markup.cpp:
  37568. (WebCore::startMarkup): Don't wrap text nodes in style spans.
  37569. For Elements, don't inline styles inherited from ancestors.
  37570. (WebCore::createMarkup): No longer necessary to find
  37571. the root's default style and pass it to startMarkup.
  37572. Add a wrapper span around the markup with the styles
  37573. that all nodes in the markup inherit (the inheritable
  37574. styles from the common ancestor container's computed style).
  37575. Added a FIXME about unecessary markup for inline ancestors
  37576. up to the commonAncestorBlock.
  37577. 2007-03-08 Darin Adler <darin@apple.com>
  37578. Reviewed by Adele.
  37579. - <rdar://problem/4470381> multipart/form-data boundary security vulnerability
  37580. By making the form data boundary a string with some random data in it, we reduce
  37581. the possibility that anyone could take advantage of it by creating a file that
  37582. intentionally has the boundary string in it.
  37583. * html/HTMLFormElement.h: Removed boundary(), setBoundary(), and m_boundary.
  37584. Marked a lot more stuff private.
  37585. * html/HTMLFormElement.cpp:
  37586. (WebCore::HTMLFormElement::HTMLFormElement): Removed code to initialize
  37587. m_boundary.
  37588. (WebCore::randomNumber): Added. Function that returns a random number, including
  37589. seeding the random number generator the first time it's called. For now, usees the more
  37590. random function random() on Mac OS X and the more-standard rand() on other platforms.
  37591. (WebCore::HTMLFormElement::formData): Take a parameter with the form boundary string,
  37592. and use that instead of m_boundary.
  37593. (WebCore::getUniqueBoundaryString): Added. Makes a boundary string using random numbers
  37594. and base 64 encoding.
  37595. (WebCore::HTMLFormElement::submit): Call getUniqueBoundaryString and pass the boundary
  37596. string into formData for multipart form posts.
  37597. 2007-03-08 Maciej Stachowiak <mjs@apple.com>
  37598. Reviewed by Adele.
  37599. <rdar://problem/4646563> REGRESSION: Unable to send text message from Verizon text message website: vtext.com (12588)
  37600. http://bugs.webkit.org/show_bug.cgi?id=12588
  37601. Carefully revised which focus operations restore previous selection, which clear it, and which
  37602. select the whole control contents.
  37603. Tests:
  37604. fast/forms/focus-selection-input.html
  37605. fast/forms/focus-selection-textarea.html
  37606. * dom/Element.cpp:
  37607. (WebCore::Element::focus):
  37608. * dom/Element.h:
  37609. * html/HTMLInputElement.cpp:
  37610. (WebCore::HTMLInputElement::focus):
  37611. (WebCore::HTMLInputElement::accessKeyAction):
  37612. * html/HTMLInputElement.h:
  37613. * html/HTMLLabelElement.cpp:
  37614. (WebCore::HTMLLabelElement::focus):
  37615. (WebCore::HTMLLabelElement::accessKeyAction):
  37616. * html/HTMLLabelElement.h:
  37617. * html/HTMLLegendElement.cpp:
  37618. (WebCore::HTMLLegendElement::focus):
  37619. * html/HTMLLegendElement.h:
  37620. * html/HTMLTextAreaElement.cpp:
  37621. (WebCore::HTMLTextAreaElement::focus):
  37622. * html/HTMLTextAreaElement.h:
  37623. * page/FocusController.cpp:
  37624. (WebCore::FocusController::advanceFocus):
  37625. 2007-03-08 Justin Garcia <justin.garcia@apple.com>
  37626. Reviewed by harrison
  37627. <http://bugs.webkit.org/show_bug.cgi?id=12244>
  37628. FCKeditor: Find dialog doesn't work
  37629. * bindings/js/kjs_window.cpp:
  37630. (KJS::Window::find): Added. This function doesn't yet
  37631. support whole word searches, searching in subframes, or
  37632. opening the find dialog.
  37633. (KJS::WindowFunc::callAsFunction):
  37634. * bindings/js/kjs_window.h:
  37635. (KJS::Window::):
  37636. 2007-03-08 David Hyatt <hyatt@apple.com>
  37637. Fix regression from throwing away frames of large animated images. Alter
  37638. animated images so that they refuse to advance the animation until the
  37639. current displayed frame has been fully decoded.
  37640. Reviewed by ggaren
  37641. * platform/graphics/BitmapImage.cpp:
  37642. (WebCore::BitmapImage::startAnimation):
  37643. (WebCore::BitmapImage::advanceAnimation):
  37644. * platform/graphics/ImageSource.h:
  37645. * platform/graphics/cg/ImageSourceCG.cpp:
  37646. (WebCore::ImageSource::frameIsCompleteAtIndex):
  37647. 2007-03-08 David Hyatt <hyatt@apple.com>
  37648. Fix 2% performance regression on the PLT. Increase the large animated
  37649. image cutoff from 1MB to 5MB.
  37650. In addition when pruning we will aggressively discard image sources.
  37651. Reviewed by ggaren
  37652. * platform/graphics/BitmapImage.cpp:
  37653. (WebCore::BitmapImage::destroyDecodedData):
  37654. 2007-03-08 Timothy Hatcher <timothy@apple.com>
  37655. Reviewed by John.
  37656. <rdar://problem/4664697> highlighter SPI needs a node parameter to give more context
  37657. Pass the RenderObject's node to customHighlightLineRect and paintCustomHighlight.
  37658. * page/Frame.h:
  37659. * page/mac/FrameMac.mm:
  37660. (WebCore::Frame::customHighlightLineRect):
  37661. (WebCore::Frame::paintCustomHighlight):
  37662. * page/mac/WebCoreFrameBridge.h:
  37663. * rendering/InlineTextBox.cpp:
  37664. (WebCore::InlineTextBox::paintCustomHighlight):
  37665. * rendering/RenderBox.cpp:
  37666. (WebCore::RenderBox::paintCustomHighlight):
  37667. * rendering/RootInlineBox.cpp:
  37668. (WebCore::RootInlineBox::addHighlightOverflow):
  37669. (WebCore::RootInlineBox::paintCustomHighlight):
  37670. 2007-03-08 Justin Garcia <justin.garcia@apple.com>
  37671. Reviewed by harrison
  37672. <http://bugs.webkit.org/show_bug.cgi?id=13000>
  37673. Range.createContextualFragment is not supported
  37674. * dom/Range.cpp:
  37675. (WebCore::Range::createContextualFragment): The
  37676. "startContainer" may not be a container, if the
  37677. range starts inside text. In that case, look
  37678. to the parent of the start node for an HTMLElement.
  37679. 2007-03-08 Justin Garcia <justin.garcia@apple.com>
  37680. Reviewed by harrison
  37681. <rdar://problem/5049671>
  37682. Gmail Editor: With linked text, Remove Formatting doesn't always remove underline
  37683. * editing/Editor.cpp:
  37684. (WebCore::Editor::removeFormattingAndStyle): Clear removed
  37685. anchors after the deletion.
  37686. 2007-03-08 David Kilzer <ddkilzer@webkit.org>
  37687. Reviewed by NOBODY (build fix).
  37688. Added missing file for r20059:
  37689. <rdar://problem/4708689> -- REGRESSION: Some symbols with 2-byte display as garbage in Hotmail.
  37690. File was taken from this svn repository which contained versions of ucnv.h and ucnv_err.h
  37691. that were identical to ours:
  37692. http://source.icu-project.org/repos/icu/icu/tags/release-3-2/source/common/unicode/ucnv_cb.h
  37693. * icu/unicode/ucnv_cb.h: Added.
  37694. 2007-03-08 Shrikant Gangoda <shrikant.gangoda@celunite.com>
  37695. Gdk build fix.
  37696. * platform/graphics/cairo/ImageSourceCairo.cpp:
  37697. (WebCore::ImageSource::~ImageSource):
  37698. (WebCore::ImageSource::clear):
  37699. 2007-03-08 Oliver Hunt <oliver@apple.com>
  37700. Reviewed by Adam.
  37701. To match old TEC behaviour when using ICU we need to use
  37702. a few manual fallback encodings for the GBK/EUC-CN charsets
  37703. <rdar://problem/4708689> -- REGRESSION: Some symbols with 2-byte display as garbage in Hotmail.
  37704. * platform/TextCodecICU.cpp:
  37705. (WebCore::TextCodecICU::TextCodecICU):
  37706. (WebCore::TextCodecICU::createICUConverter):
  37707. (WebCore::gbkEscapes):
  37708. (WebCore::gbkCallbackEscape):
  37709. (WebCore::gbkCallbackSubstitute):
  37710. (WebCore::TextCodecICU::encode):
  37711. * platform/TextCodecICU.h:
  37712. (WebCore::TextCodecICU::needsGBKFallbacks):
  37713. (WebCore::TextCodecICU::setNeedsGBKFallbacks):
  37714. 2007-03-08 Alexey Proskuryakov <ap@webkit.org>
  37715. Build fix.
  37716. * xml/XPathUtil.cpp:
  37717. (WebCore::XPath::stringValue):
  37718. 2007-03-08 David Hyatt <hyatt@apple.com>
  37719. This patch dramatically reduces the memory consumed by animated images. For large animated GIFs (defined for
  37720. now as >1mb in terms of decoded frame buffer size), we will now aggressively flush previous frames of the
  37721. animated GIF and just re-decode them on the fly if the animation loops.
  37722. Whenever a large animated GIF has its animation reset, we will also just throw out everything and start
  37723. the animation over (in order to get rid of any cached detritus held in the ImageSource).
  37724. With this patch and the sample GIF used to test, WebKit's memory consumption went from 160MB down to 16MB.
  37725. Reviewed by mjs
  37726. * platform/graphics/BitmapImage.cpp:
  37727. (WebCore::BitmapImage::destroyDecodedData):
  37728. (WebCore::BitmapImage::resetAnimation):
  37729. (WebCore::BitmapImage::advanceAnimation):
  37730. * platform/graphics/ImageSource.h:
  37731. * platform/graphics/cg/ImageSourceCG.cpp:
  37732. (WebCore::ImageSource::~ImageSource):
  37733. (WebCore::ImageSource::clear):
  37734. 2007-03-08 Alexey Proskuryakov <ap@webkit.org>
  37735. Reviewed by Darin.
  37736. http://bugs.webkit.org/show_bug.cgi?id=13006
  37737. XPath string-value is broken for some node types
  37738. Test: fast/xpath/string-value.html
  37739. * xml/XPathUtil.cpp:
  37740. (WebCore::XPath::stringValue): Fix it :-)
  37741. 2007-03-07 Anders Carlsson <acarlsson@apple.com>
  37742. Reviewed by Adam.
  37743. <rdar://problem/4981000>
  37744. http://bugs.webkit.org/show_bug.cgi?id=12634
  37745. REGRESSION: crash loading web archive (12634)
  37746. The reason this bug wasn't always reproducible is that it involved sending an event to a plugin while
  37747. the page was loading. Before we send the event to the plugin we defer loads. The problem was that
  37748. MainResourceLoader::setDefersLoad would not work with data loads.
  37749. * loader/DocumentLoader.cpp:
  37750. (WebCore::DocumentLoader::setRequest):
  37751. Only set m_committed to false if we also have a valid unreachable URL.
  37752. * loader/MainResourceLoader.cpp:
  37753. (WebCore::MainResourceLoader::setDefersLoading):
  37754. Make sure to stop and start data loads.
  37755. 2007-03-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  37756. Not reviewed.
  37757. Gdk build fixes.
  37758. * platform/gdk/EditorClientGdk.cpp:
  37759. (WebCore::EditorClientGdk::handleKeypress): renamed
  37760. (WebCore::EditorClientGdk::handleInputMethodKeypress): add a stub
  37761. * platform/gdk/EditorClientGdk.h:
  37762. * platform/graphics/cairo/ImageSourceCairo.cpp:
  37763. (WebCore::ImageSource::destroyFrameAtIndex): add a stub
  37764. 2007-03-07 Alexey Proskuryakov <ap@webkit.org>
  37765. Reviewed by Darin.
  37766. http://bugs.webkit.org/show_bug.cgi?id=13004
  37767. Repeatedly calling XPathExpression.evaluate() causes crashes or memory leaks
  37768. Removed XPath::Expression::optimize() and related methods, since they were buggy and almost useless.
  37769. Merged doEvaluate() into evaluate(), since this was all evaluate() was doing after the above changes.
  37770. Test: fast/xpath/evaluate-twice.html
  37771. * xml/XPathExpression.cpp:
  37772. (WebCore::XPathExpression::evaluate):
  37773. * xml/XPathExpressionNode.cpp:
  37774. (WebCore::XPath::Expression::Expression):
  37775. (WebCore::XPath::Expression::~Expression):
  37776. * xml/XPathExpressionNode.h:
  37777. * xml/XPathFunctions.cpp:
  37778. (WebCore::XPath::FunLast::evaluate):
  37779. (WebCore::XPath::FunPosition::evaluate):
  37780. (WebCore::XPath::FunId::evaluate):
  37781. (WebCore::XPath::FunLocalName::evaluate):
  37782. (WebCore::XPath::FunNamespaceURI::evaluate):
  37783. (WebCore::XPath::FunName::evaluate):
  37784. (WebCore::XPath::FunCount::evaluate):
  37785. (WebCore::XPath::FunString::evaluate):
  37786. (WebCore::XPath::FunConcat::evaluate):
  37787. (WebCore::XPath::FunStartsWith::evaluate):
  37788. (WebCore::XPath::FunContains::evaluate):
  37789. (WebCore::XPath::FunSubstringBefore::evaluate):
  37790. (WebCore::XPath::FunSubstringAfter::evaluate):
  37791. (WebCore::XPath::FunSubstring::evaluate):
  37792. (WebCore::XPath::FunStringLength::evaluate):
  37793. (WebCore::XPath::FunNormalizeSpace::evaluate):
  37794. (WebCore::XPath::FunTranslate::evaluate):
  37795. (WebCore::XPath::FunBoolean::evaluate):
  37796. (WebCore::XPath::FunNot::evaluate):
  37797. (WebCore::XPath::FunTrue::evaluate):
  37798. (WebCore::XPath::FunLang::evaluate):
  37799. (WebCore::XPath::FunFalse::evaluate):
  37800. (WebCore::XPath::FunNumber::evaluate):
  37801. (WebCore::XPath::FunSum::evaluate):
  37802. (WebCore::XPath::FunFloor::evaluate):
  37803. (WebCore::XPath::FunCeiling::evaluate):
  37804. (WebCore::XPath::FunRound::evaluate):
  37805. * xml/XPathPath.cpp:
  37806. (WebCore::XPath::Filter::evaluate):
  37807. (WebCore::XPath::LocationPath::evaluate):
  37808. (WebCore::XPath::Path::evaluate):
  37809. * xml/XPathPath.h:
  37810. * xml/XPathPredicate.cpp:
  37811. (WebCore::XPath::Number::evaluate):
  37812. (WebCore::XPath::StringExpression::evaluate):
  37813. (WebCore::XPath::Negative::evaluate):
  37814. (WebCore::XPath::NumericOp::evaluate):
  37815. (WebCore::XPath::EqTestOp::evaluate):
  37816. (WebCore::XPath::LogicalOp::evaluate):
  37817. (WebCore::XPath::Union::evaluate):
  37818. * xml/XPathPredicate.h:
  37819. * xml/XPathStep.cpp:
  37820. * xml/XPathStep.h:
  37821. * xml/XPathVariableReference.cpp:
  37822. (WebCore::XPath::VariableReference::evaluate):
  37823. * xml/XPathVariableReference.h:
  37824. 2007-03-07 Sam Weinig <sam@webkit.org>
  37825. Reviewed by Tim H.
  37826. Remove unused #import from Objective-C bindings and cleanup the order of #imports.
  37827. * bindings/scripts/CodeGeneratorObjC.pm:
  37828. 2007-03-07 Sam Weinig <sam@webkit.org>
  37829. Reviewed by Tim H.
  37830. Make sure the baseURI attribute generates for private Objective-C bindings.
  37831. * dom/Node.idl:
  37832. 2007-03-07 Anders Carlsson <acarlsson@apple.com>
  37833. Reviewed by Maciej.
  37834. <rdar://problem/4874059>
  37835. REGRESSION: Painter IX:register - Crash in WebCore:: ResourceLoader::willSendRequest()
  37836. If a load is done from inside of an error delegate method that is called because we cancel another load,
  37837. the first load should be ignored since this is what shipping WebKit does.
  37838. (Actually, it does load the page in the data source but doesn't do anything with it since the data source
  37839. won't have a web frame).
  37840. * loader/FrameLoader.cpp:
  37841. (WebCore::FrameLoader::load):
  37842. Just bail out if m_isStoppingLoad is true.
  37843. 2007-03-07 David Hyatt <hyatt@apple.com>
  37844. Use CGImageRelease instead of CFRelease.
  37845. Reviewed by aroben
  37846. * platform/graphics/cg/ImageCG.cpp:
  37847. (WebCore::FrameData::clear):
  37848. * platform/graphics/cg/ImageSourceCG.cpp:
  37849. (WebCore::ImageSource::destroyFrameAtIndex):
  37850. 2007-03-07 David Hyatt <hyatt@apple.com>
  37851. Fix a regression where the cache size overflows because of a double
  37852. subtraction per resource when they got removed from the cache. Add an
  37853. assert to adjustSize to detect this case in the future.
  37854. Fix ImageSourceCG so that when we flush decoded data from our cache that
  37855. we also flush it from the ImageSource.
  37856. Reviewed by mjs
  37857. * loader/Cache.cpp:
  37858. (WebCore::Cache::adjustSize):
  37859. * platform/graphics/BitmapImage.cpp:
  37860. (WebCore::BitmapImage::~BitmapImage):
  37861. (WebCore::BitmapImage::destroyDecodedData):
  37862. * platform/graphics/Image.h:
  37863. * platform/graphics/ImageSource.h:
  37864. * platform/graphics/cg/ImageSourceCG.cpp:
  37865. (WebCore::ImageSource::setData):
  37866. (WebCore::ImageSource::destroyFrameAtIndex):
  37867. 2007-03-07 Mitz Pettel <mitz@webkit.org>
  37868. Reviewed by Darin.
  37869. - fix http://bugs.webkit.org/show_bug.cgi?id=13002
  37870. Incomplete repaint of inset outlines
  37871. Test: fast/repaint/outline-inset.html
  37872. * rendering/RenderObject.cpp:
  37873. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  37874. 2007-03-07 Oliver Hunt <oliver@apple.com>
  37875. Reviewed by Antti.
  37876. Reset mouse down/drag state variables on mouse button release
  37877. Fixes <rdar://problem/5044654>: Drag out of some QuickTime plug-ins converting into image drag
  37878. * page/EventHandler.cpp:
  37879. (WebCore::EventHandler::handleMouseReleaseEvent):
  37880. 2007-03-07 Adele Peterson <adele@apple.com>
  37881. Reviewed by Darin.
  37882. WebCore part of fix for:
  37883. http://bugs.webkit.org/show_bug.cgi?id=10871
  37884. http://bugs.webkit.org/show_bug.cgi?id=12677
  37885. <rdar://problem/4823129> REGRESSION: IME key events different in nightly
  37886. <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri
  37887. * page/EventHandler.cpp: (WebCore::EventHandler::defaultKeyboardEventHandler): Call handleInputMethodKeypress before actually dispatching the keypress event
  37888. so that input methods have a chance to handle the event.
  37889. If the input method handles the event (by marking or unmarking text), then we don't need to send the keypress event.
  37890. If an input method doesn't handle the event, then we'll save the data we need to perform the correct action (like what text to insert or what selector to use)
  37891. when we dispatch the keypress event.
  37892. * dom/KeyboardEvent.h: Added Mac-specific KeypressCommand struct, so we can store command info during handleInputMethodKeypress, and use it during handleKeypress.
  37893. (WebCore::KeyboardEvent::keypressCommand):
  37894. (WebCore::KeyboardEvent::setKeypressCommand):
  37895. * bridge/EditorClient.h:
  37896. * editing/Editor.cpp:
  37897. (WebCore::Editor::handleKeypress): Changed handleKeyPress to handleKeypress.
  37898. (WebCore::Editor::handleInputMethodKeypress): Added.
  37899. * editing/Editor.h:
  37900. * platform/graphics/svg/SVGImageEmptyClients.h:
  37901. (WebCore::SVGEmptyEditorClient::handleKeypress): Changed handleKeyPress to handleKeypress.
  37902. (WebCore::SVGEmptyEditorClient::handleInputMethodKeypress): Added.
  37903. 2007-03-07 Rob Buis <buis@kde.org>
  37904. Reviewed by Darin.
  37905. http://bugs.webkit.org/show_bug.cgi?id=12579
  37906. WebKit fails SVG xml:base test
  37907. Implement DOM3 properties baseURI and documentURI to fix
  37908. the testcase in bug 12579.
  37909. * bindings/js/kjs_dom.cpp:
  37910. (KJS::DOMNode::getValueProperty):
  37911. * bindings/js/kjs_domnode.h:
  37912. (KJS::DOMNode::):
  37913. * dom/Document.cpp:
  37914. (WebCore::Document::documentURI):
  37915. (WebCore::Document::setDocumentURI):
  37916. (WebCore::Document::baseURI):
  37917. * dom/Document.h:
  37918. * dom/Document.idl:
  37919. * dom/DocumentType.cpp:
  37920. (WebCore::DocumentType::baseURI):
  37921. * dom/DocumentType.h:
  37922. * dom/Element.cpp:
  37923. (WebCore::Element::baseURI):
  37924. * dom/Element.h:
  37925. * dom/Node.cpp:
  37926. (WebCore::Node::baseURI):
  37927. * dom/Node.h:
  37928. * ksvg2/misc/SVGImageLoader.cpp:
  37929. (WebCore::SVGImageLoader::updateFromElement):
  37930. * ksvg2/svg/SVGImageElement.cpp:
  37931. (WebCore::SVGImageElement::parseMappedAttribute):
  37932. (WebCore::SVGImageElement::attach):
  37933. 2007-03-07 Anders Carlsson <acarlsson@apple.com>
  37934. Reviewed by Brady.
  37935. Remove some methods in FrameLoader that just calls down to the active document loader. Since each
  37936. resource loader now has a pointer to its document loader, we can just call directly to the
  37937. document loader.
  37938. * WebCore.exp:
  37939. * loader/FrameLoader.cpp:
  37940. * loader/FrameLoader.h:
  37941. * loader/MainResourceLoader.cpp:
  37942. (WebCore::MainResourceLoader::willSendRequest):
  37943. (WebCore::MainResourceLoader::didReceiveResponse):
  37944. * loader/SubresourceLoader.cpp:
  37945. (WebCore::SubresourceLoader::SubresourceLoader):
  37946. (WebCore::SubresourceLoader::didFinishLoading):
  37947. (WebCore::SubresourceLoader::didFail):
  37948. (WebCore::SubresourceLoader::didCancel):
  37949. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  37950. (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
  37951. (WebCore::NetscapePlugInStreamLoader::didFail):
  37952. (WebCore::NetscapePlugInStreamLoader::didCancel):
  37953. 2007-03-06 Geoffrey Garen <ggaren@apple.com>
  37954. Reviewed by Maciej Stachowiak.
  37955. Fixed <rdar://problem/4576242> | http://bugs.webkit.org/show_bug.cgi?id=12586
  37956. PAC file: malloc deadlock sometimes causes a hang @ www.apple.com/pro/profiles/ (12586)
  37957. No test because this is very difficult to repro, and the new ASSERTs in
  37958. JavaScriptCore catch the underlying cause while running normal layout tests.
  37959. This is a modified version of r14752 on the branch.
  37960. The fix is to use a bit inside each node, instead of a hash table, to track
  37961. which node subtrees are in the process of being marked. This avoids a call
  37962. to malloc inside mark().
  37963. * bindings/js/kjs_binding.cpp:
  37964. (KJS::domObjects):
  37965. (KJS::domNodesPerDocument):
  37966. * bindings/js/kjs_dom.cpp:
  37967. (KJS::DOMNode::mark):
  37968. * dom/Node.cpp:
  37969. (WebCore::Node::Node):
  37970. * dom/Node.h:
  37971. 2007-03-06 David Hyatt <hyatt@apple.com>
  37972. This patch reworks the WebCore memory cache to significantly reduce the amount of memory consumed by
  37973. images in the cache and to enhance the accuracy of the cache size as an absolute bound for the objects
  37974. contained within it. WebCore's memory use over time should significantly improve as a result of these
  37975. changes.
  37976. Cached resources now have both an encoded size (the original data stream) and a decoded size (an estimate of
  37977. the amount of memory consumed by an expanded version of that resource, e.g., the decoded frames of an image).
  37978. Both sizes now count towards the total size of the object and towards the allowed memory cache total.
  37979. By including both totals the reported size of resources will now be larger, and the cache will therefore become
  37980. much more aggressive about flushing.
  37981. Objects are stored in size-adjusted and popularity-aware LRU lists as before, but encoded size is now always
  37982. used when determining the correct LRU list.
  37983. The flush algorithm for the memory cache has been rewritten to first destroy decoded data before evicting
  37984. resources. By being able to compact its resources without evicting them, the memory cache can now hold many more
  37985. unique resources (encoded) in the same amount of space. Depending on how much of a hit we want to take from
  37986. re-decoding images, the memory cache could in theory have its size significantly reduced now while still holding
  37987. more resources than it did at the larger size!
  37988. Reviewed by mjs
  37989. * WebCore.xcodeproj/project.pbxproj:
  37990. * loader/Cache.cpp:
  37991. (WebCore::Cache::requestResource):
  37992. (WebCore::Cache::prune):
  37993. (WebCore::Cache::remove):
  37994. (WebCore::Cache::lruListFor):
  37995. (WebCore::Cache::adjustSize):
  37996. * loader/Cache.h:
  37997. * loader/CachedCSSStyleSheet.cpp:
  37998. (WebCore::CachedCSSStyleSheet::data):
  37999. * loader/CachedImage.cpp:
  38000. (WebCore::CachedImage::CachedImage):
  38001. (WebCore::CachedImage::allReferencesRemoved):
  38002. (WebCore::CachedImage::clear):
  38003. (WebCore::CachedImage::data):
  38004. (WebCore::CachedImage::destroyDecodedData):
  38005. (WebCore::CachedImage::decodedSize):
  38006. (WebCore::CachedImage::decodedSizeChanged):
  38007. (WebCore::CachedImage::shouldPauseAnimation):
  38008. * loader/CachedImage.h:
  38009. * loader/CachedResource.cpp:
  38010. (WebCore::CachedResource::CachedResource):
  38011. (WebCore::CachedResource::deref):
  38012. (WebCore::CachedResource::setEncodedSize):
  38013. * loader/CachedResource.h:
  38014. (WebCore::CachedResource::allReferencesRemoved):
  38015. (WebCore::CachedResource::size):
  38016. (WebCore::CachedResource::encodedSize):
  38017. (WebCore::CachedResource::decodedSize):
  38018. (WebCore::CachedResource::destroyDecodedData):
  38019. * loader/CachedScript.cpp:
  38020. (WebCore::CachedScript::data):
  38021. * loader/CachedXSLStyleSheet.cpp:
  38022. (WebCore::CachedXSLStyleSheet::data):
  38023. * platform/graphics/BitmapImage.cpp:
  38024. (WebCore::BitmapImage::BitmapImage):
  38025. (WebCore::BitmapImage::~BitmapImage):
  38026. (WebCore::BitmapImage::destroyDecodedData):
  38027. (WebCore::BitmapImage::pruneDecodedDataIfNeeded):
  38028. (WebCore::BitmapImage::cacheFrame):
  38029. (WebCore::BitmapImage::setNativeData):
  38030. (WebCore::BitmapImage::shouldAnimate):
  38031. (WebCore::BitmapImage::advanceAnimation):
  38032. * platform/graphics/BitmapImage.h:
  38033. (WebCore::BitmapImage::decodedSize):
  38034. * platform/graphics/Image.cpp:
  38035. (WebCore::Image::Image):
  38036. * platform/graphics/Image.h:
  38037. (WebCore::Image::destroyDecodedData):
  38038. (WebCore::Image::decodedSize):
  38039. (WebCore::Image::imageObserver):
  38040. * platform/graphics/ImageAnimationObserver.h: Removed.
  38041. * platform/graphics/ImageObserver.h: Added.
  38042. (WebCore::ImageObserver::~ImageObserver):
  38043. * platform/graphics/svg/SVGImage.cpp:
  38044. (WebCore::SVGImage::SVGImage):
  38045. * platform/graphics/svg/SVGImage.h:
  38046. 2007-03-06 Alexey Proskuryakov <ap@webkit.org>
  38047. Reviewed by Sam Weinig.
  38048. http://bugs.webkit.org/show_bug.cgi?id=12987
  38049. Fix and import 4XPath test_numeric_expr.html
  38050. * xml/XPathPredicate.cpp:
  38051. (WebCore::XPath::Negative::doEvaluate): Convert the argument to number.
  38052. (WebCore::XPath::NumericOp::doEvaluate): Convert the arguments to numbers. Use a correct operation for mod.
  38053. * xml/XPathStep.cpp:
  38054. (WebCore::XPath::Step::nodesInAxis): Do not append parent node if there is none.
  38055. * xml/XPathValue.cpp:
  38056. (WebCore::XPath::Value::toNumber): Do not convert to DeprecatedString just to trim whitespace and to convert to double.
  38057. * platform/DeprecatedString.cpp:
  38058. (WebCore::DeprecatedStringData::makeAscii): Added a FIXME about unreliable makeAscii() behavior.
  38059. 2007-03-06 Maciej Stachowiak <mjs@apple.com>
  38060. Reviewed by Adele.
  38061. <rdar://problem/4619663> REGRESSION (NativePopup): Popup menu doesn't draw at the correct vertical position (9816)
  38062. * platform/mac/PopupMenuMac.mm:
  38063. (WebCore::PopupMenu::show): Make a temporary dummy view with the
  38064. passed in rect, since AppKit will use the view bounds to determine
  38065. what area to exclude when popping up a menu moved to the top of
  38066. the screen.
  38067. 2007-03-06 Geoffrey Garen <ggaren@apple.com>
  38068. Reviewed by Maciej Stachowiak.
  38069. Fixed all known crashers exposed by run-webkit-tests --threaded [*]. See
  38070. JavaScriptCore ChangeLog for more details.
  38071. * bindings/js/kjs_binding.cpp:
  38072. (KJS::domNodesPerDocument): Added thread safety ASSERT.
  38073. (KJS::ScriptInterpreter::mark): Removed obsolete logic for marking unsafe
  38074. objects when collecting on a secondary thread. The Collector takes care
  38075. of this now.
  38076. * bindings/js/kjs_binding.h:
  38077. (KJS::DOMObject::DOMObject): Used new API for specifying that WebCore
  38078. objects should be garbage collected on the main thread only.
  38079. * bindings/js/kjs_window.cpp:
  38080. (KJS::ScheduledAction::execute): Moved JSLock to cover implementedsCall() call,
  38081. which, for some subclasses, ends up allocating garbage collected objects.
  38082. (This fix was speculative. I didn't actually see a crash from this.)
  38083. (KJS::Window::timerFired): Added JSLock around ScheduleAction destruction,
  38084. since it destroys a KJS::List.
  38085. * bindings/objc/WebScriptObject.mm:
  38086. (-[WebScriptObject setException:]): Added JSLock. (This fix was speculative.
  38087. I didn't actually see a crash from this.)
  38088. * bridge/mac/WebCoreScriptDebugger.mm:
  38089. (-[WebCoreScriptCallFrame evaluateWebScript:]): Added JSLock. (This fix
  38090. was speculative. I didn't actually see a crash from this.)
  38091. * dom/Document.cpp:
  38092. (WebCore::Document::~Document): Added JSLock around modification to
  38093. domNodesPerDocument(), which can be accessed concurrently during garbage
  38094. collection.
  38095. * dom/Node.cpp:
  38096. (WebCore::Node::setDocument): ditto.
  38097. [*] fast/js/toString-stack-overflow.html is an exception. --threaded mode
  38098. crashes this test because it causes the garbage collector to run frequently,
  38099. and this test crashes if you happen to garbage collect while it's running.
  38100. This is a known issue with stack overflow during the mark phase. It's
  38101. not related to threading.
  38102. 2007-03-06 Mark Rowe <mrowe@apple.com>
  38103. Reviewed by Sam Weinig.
  38104. Fix http://bugs.webkit.org/show_bug.cgi?id=12942
  38105. Bug 12942: ASSERTION FAILURE: qantas.com.au changing selected item in <select> via JS
  38106. Test: fast/dom/select-selectedIndex-bug-12942.html.
  38107. * html/HTMLSelectElement.cpp:
  38108. (WebCore::HTMLSelectElement::recalcListItems): Reset m_lastOnChangeIndex when recalculating list items.
  38109. * html/HTMLSelectElement.h:
  38110. 2007-03-06 Brady Eidson <beidson@apple.com>
  38111. Rubberstamped by Kevin Decker
  38112. 20,000!
  38113. * ChangeLog: Point out revision 20,000
  38114. 2007-03-06 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  38115. Not reviewed.
  38116. Gdk build fix.
  38117. * loader/gdk/FrameLoaderClientGdk.cpp: update userAgent() signature.
  38118. (WebCore::FrameLoaderClientGdk::userAgent):
  38119. * loader/gdk/FrameLoaderClientGdk.h: ditto.
  38120. 2007-03-06 Mitz Pettel <mitz@webkit.org>
  38121. Reviewed by Adele.
  38122. - fix http://bugs.webkit.org/show_bug.cgi?id=12986
  38123. REGRESSION(NativeListBox): Listboxes not updated when resized dynamically
  38124. Test: fast/forms/select-change-listbox-size.html
  38125. * html/HTMLSelectElement.cpp:
  38126. (WebCore::HTMLSelectElement::parseMappedAttribute): Reattach on list box size change.
  38127. 2007-03-06 Mitz Pettel <mitz@webkit.org>
  38128. Reviewed by Dave Hyatt.
  38129. - fix http://bugs.webkit.org/show_bug.cgi?id=12885
  38130. REGRESSION (r19696): Incomplete background repaint
  38131. Tests: fast/repaint/content-into-overflow.html
  38132. fast/repaint/overflow-into-content.html
  38133. Changed repaintAfterLayoutIfNeeded() to take, in addition to the clipped overflow
  38134. rect, the unclipped border box plus outline, and to repaint any areas that
  38135. were added or removed from that box, in addition to any areas added or removed
  38136. from the clipped overflow rect.
  38137. * platform/graphics/svg/SVGResourceMarker.cpp:
  38138. (WebCore::SVGResourceMarker::draw):
  38139. * rendering/RenderBlock.cpp:
  38140. (WebCore::RenderBlock::layoutBlock):
  38141. * rendering/RenderBox.cpp:
  38142. (WebCore::RenderBox::absoluteClippedOverflowRect): Renamed getAbsoluteRepaintRect() to
  38143. this.
  38144. * rendering/RenderBox.h:
  38145. * rendering/RenderFlexibleBox.cpp:
  38146. (WebCore::RenderFlexibleBox::layoutBlock):
  38147. * rendering/RenderFlow.cpp:
  38148. (WebCore::RenderFlow::absoluteClippedOverflowRect):
  38149. * rendering/RenderFlow.h:
  38150. * rendering/RenderForeignObject.cpp:
  38151. (WebCore::RenderForeignObject::layout):
  38152. * rendering/RenderHTMLCanvas.cpp:
  38153. (WebCore::RenderHTMLCanvas::layout):
  38154. * rendering/RenderImage.cpp:
  38155. (WebCore::RenderImage::layout):
  38156. * rendering/RenderLayer.cpp:
  38157. (WebCore::RenderLayer::RenderLayer):
  38158. (WebCore::RenderLayer::checkForRepaintOnResize):
  38159. (WebCore::RenderLayer::updateLayerPositions):
  38160. * rendering/RenderLayer.h:
  38161. * rendering/RenderObject.cpp:
  38162. (WebCore::RenderObject::repaint):
  38163. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  38164. (WebCore::RenderObject::getAbsoluteRepaintRectWithOutline):
  38165. (WebCore::RenderObject::absoluteClippedOverflowRect):
  38166. (WebCore::RenderObject::absoluteOutlineBox):
  38167. * rendering/RenderObject.h:
  38168. * rendering/RenderPath.cpp:
  38169. (WebCore::RenderPath::layout):
  38170. (WebCore::RenderPath::absoluteClippedOverflowRect):
  38171. (WebCore::RenderPath::absoluteRects):
  38172. (WebCore::RenderPath::drawMarkersIfNeeded):
  38173. * rendering/RenderPath.h:
  38174. * rendering/RenderSVGContainer.cpp:
  38175. (WebCore::RenderSVGContainer::layout):
  38176. (WebCore::RenderSVGContainer::absoluteClippedOverflowRect):
  38177. (WebCore::RenderSVGContainer::absoluteRects):
  38178. * rendering/RenderSVGContainer.h:
  38179. * rendering/RenderSVGHiddenContainer.cpp:
  38180. (WebCore::RenderSVGHiddenContainer::absoluteClippedOverflowRect):
  38181. * rendering/RenderSVGHiddenContainer.h:
  38182. * rendering/RenderSVGImage.cpp:
  38183. (WebCore::RenderSVGImage::imageChanged):
  38184. (WebCore::RenderSVGImage::absoluteClippedOverflowRect):
  38185. (WebCore::RenderSVGImage::absoluteRects):
  38186. * rendering/RenderSVGImage.h:
  38187. * rendering/RenderSVGText.cpp:
  38188. (WebCore::RenderSVGText::absoluteClippedOverflowRect):
  38189. (WebCore::RenderSVGText::layout):
  38190. (WebCore::RenderSVGText::absoluteRects):
  38191. * rendering/RenderSVGText.h:
  38192. * rendering/RenderTable.cpp:
  38193. (WebCore::RenderTable::layout):
  38194. * rendering/RenderTableCell.cpp:
  38195. (WebCore::RenderTableCell::absoluteClippedOverflowRect):
  38196. * rendering/RenderTableCell.h:
  38197. * rendering/RenderTableCol.cpp:
  38198. (WebCore::RenderTableCol::absoluteClippedOverflowRect):
  38199. * rendering/RenderTableCol.h:
  38200. * rendering/RenderTableRow.cpp:
  38201. (WebCore::RenderTableRow::absoluteClippedOverflowRect):
  38202. * rendering/RenderTableRow.h:
  38203. * rendering/RenderText.cpp:
  38204. (WebCore::RenderText::absoluteClippedOverflowRect):
  38205. * rendering/RenderText.h:
  38206. 2007-03-06 Feng Qian <feng@chromium.org>
  38207. Reviewed by Maciej.
  38208. - fixed http://bugs.webkit.org/show_bug.cgi?id=12720
  38209. Bug 12720: Re-defining window.location.toString function keeps re-loading forever
  38210. * bindings/js/kjs_window.cpp:
  38211. Disallow replacing functions in LocationTable, and return early without updating URL.
  38212. 2007-03-06 Kevin McCullough <kmccullough@apple.com>
  38213. Reviewed by Darin.
  38214. <http://bugs.webkit.org/show_bug.cgi?id=12686>
  38215. REGRESSION: Bloglines.com Feeds tab cannot expand folders in TOT
  38216. - Now all class constructors implement implementsHasInstance.
  38217. * bindings/scripts/CodeGeneratorJS.pm:
  38218. 2007-03-07 Nikolas Zimmermann <zimmermann@kde.org>
  38219. Reviewed by Rob & Oliver.
  38220. Preparations for the new SVG text engine.
  38221. Handle baseline-shift / kerning css values correctly.
  38222. Recognize missing svg presentation attribute "font-size-adjust".
  38223. Add all missing svg<->css property mappings in mapToEntry().
  38224. Doesn't affect any layout test (as these properties are not used w/o my text patch).
  38225. While I'm at it, unify the macro names (RS_ -> SVG_RS_) & cleanup style a bit.
  38226. * ksvg2/css/CSSPropertyNames.in:
  38227. * ksvg2/css/SVGCSSParser.cpp:
  38228. (WebCore::CSSParser::parseSVGValue):
  38229. * ksvg2/css/SVGCSSStyleSelector.cpp:
  38230. (WebCore::CSSStyleSelector::applySVGProperty):
  38231. * ksvg2/css/SVGRenderStyle.cpp:
  38232. (WebCore::SVGRenderStyle::SVGRenderStyle):
  38233. (WebCore::SVGRenderStyle::operator==):
  38234. (WebCore::SVGRenderStyle::inheritedNotEqual):
  38235. (WebCore::SVGRenderStyle::inheritFrom):
  38236. * ksvg2/css/SVGRenderStyle.h:
  38237. (WebCore::SVGRenderStyle::NonInheritedFlags::):
  38238. (WebCore::SVGRenderStyle::setBitDefaults):
  38239. * ksvg2/css/SVGRenderStyleDefs.cpp:
  38240. (StyleTextData::StyleTextData):
  38241. (StyleTextData::operator==):
  38242. (StyleMiscData::StyleMiscData):
  38243. (StyleMiscData::operator==):
  38244. * ksvg2/css/SVGRenderStyleDefs.h:
  38245. (WebCore::):
  38246. (WebCore::StyleTextData::operator!=):
  38247. * ksvg2/svg/SVGStyledElement.cpp:
  38248. (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName):
  38249. 2007-03-06 Justin Garcia <justin.garcia@apple.com>
  38250. Reviewed by kevin
  38251. <http://bugs.webkit.org/show_bug.cgi?id=12245>
  38252. FCKeditor: Remove Format sometimes doesn't work
  38253. <rdar://problem/4786404>
  38254. Underline style is not removed from selection after performing Remove Format
  38255. * editing/Editor.cpp:
  38256. (WebCore::Editor::removeFormattingAndStyle): Re-wrote this.
  38257. 2007-03-07 Nikolas Zimmermann <zimmermann@kde.org>
  38258. Reviewed by Oliver.
  38259. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12979
  38260. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12981
  38261. Guard against registering pending resources with empty id.
  38262. Be careful with calling recalcStyle() in SVGUseElement, when change is "Detach" we
  38263. have to use special code, as calling attach() on the shadow tree root element will crash,
  38264. because it has no (direct) parent node, only a shadow parent node element.
  38265. * ksvg2/misc/SVGDocumentExtensions.cpp:
  38266. (WebCore::SVGDocumentExtensions::addPendingResource):
  38267. * ksvg2/svg/SVGUseElement.cpp:
  38268. (WebCore::SVGUseElement::recalcStyle):
  38269. 2007-03-06 Kevin Decker <kdecker@apple.com>
  38270. Reviewed by Adele.
  38271. Fixed: <rdar://problem/5041660> REGRESSION: <keygen> element broken, prevents users from signing up for Thawte email certs
  38272. * bindings/objc/DOM.mm:
  38273. (WebCore::createElementClassMap): Added <keygen> to the DOM bindings so it can be accessed from Objective-C.
  38274. * css/html4.css: Apply the look of the <select> element to <keygen>.
  38275. * html/HTMLElementFactory.cpp:
  38276. (WebCore::keygenConstructor): Added.
  38277. (WebCore::createFunctionMap): Added keygen.
  38278. * html/HTMLSelectElement.cpp: Made const typeAheadTimeout variable static const.
  38279. (WebCore::HTMLSelectElement::HTMLSelectElement): Fix both HTMLSelectElement constructors to initialize the
  38280. same number of member variables. The fact that some fields were not initialized could (and would) crash the
  38281. keygen element when selecting different items. Also removed m_typedString(String()) from the constructor
  38282. initialization because this is not needed.
  38283. 2007-03-06 Kevin McCullough <kmccullough@apple.com>
  38284. Reviewed by Darin.
  38285. - Rename a function to clarify its purpose.
  38286. * WebCore.exp:
  38287. * loader/FrameLoader.cpp:
  38288. (WebCore::FrameLoader::registerURLSchemeAsLocal):
  38289. * loader/FrameLoader.h:
  38290. 2007-03-06 Adam Roben <aroben@apple.com>
  38291. Build fix.
  38292. * WebCore.exp: Updated symbols.
  38293. 2007-03-06 Adam Roben <aroben@apple.com>
  38294. Reviewed by Anders.
  38295. Added a parameter to all StringTruncator methods to specify whether
  38296. rounding hacks should be on or off.
  38297. No layout test possible.
  38298. * platform/StringTruncator.cpp:
  38299. (WebCore::stringWidth): Added disableRoundingHacks parameter.
  38300. (WebCore::truncateString): Ditto.
  38301. (WebCore::StringTruncator::centerTruncate): Ditto.
  38302. (WebCore::StringTruncator::rightTruncate): Ditto.
  38303. (WebCore::StringTruncator::width): Ditto.
  38304. * platform/StringTruncator.h: Ditto.
  38305. * platform/mac/FileChooserMac.mm:
  38306. (WebCore::FileChooser::basenameForWidth): Pass in false to
  38307. centerTruncate so that the truncation matches the way the text will be
  38308. rendered.
  38309. 2007-03-06 Anders Carlsson <acarlsson@apple.com>
  38310. Reviewed by Maciej.
  38311. <rdar://problem/5035045>
  38312. REGRESSION: WebKit browser doesn't display image at http://www.metoffice.gov.uk/weather/satellite/index.html
  38313. It turns out WinIE does allow you to access images by their id as special document properties. However, this is only
  38314. allowed when the element also has a name attribute. The value of the name attribute is ignored and can even be empty!
  38315. * bindings/js/kjs_html.cpp:
  38316. (KJS::JSHTMLDocument::namedItemGetter):
  38317. Return jsUndefined() if the collection is empty.
  38318. * html/HTMLImageElement.cpp:
  38319. (WebCore::HTMLImageElement::parseMappedAttribute):
  38320. (WebCore::HTMLImageElement::insertedIntoDocument):
  38321. (WebCore::HTMLImageElement::removedFromDocument):
  38322. * html/HTMLImageElement.h:
  38323. Add the id attribute value to the extra named item map.
  38324. * html/HTMLNameCollection.cpp:
  38325. (WebCore::HTMLNameCollection::traverseNextItem):
  38326. Check for images with name attributes that match, as well as elements with id attributes that match where
  38327. the element also has a name attribute.
  38328. 2007-03-06 Anders Carlsson <acarlsson@apple.com>
  38329. Reviewed by Adam.
  38330. WebCore part of patch to make it possible to have different user agents for different URLs.
  38331. * bindings/js/kjs_navigator.cpp:
  38332. (KJS::Navigator::getValueProperty):
  38333. * bindings/js/kjs_proxy.cpp:
  38334. (WebCore::KJSProxy::initScriptIfNeeded):
  38335. * loader/DocumentLoader.cpp:
  38336. (WebCore::DocumentLoader::setLoading):
  38337. * loader/FrameLoader.cpp:
  38338. (WebCore::FrameLoader::userAgent):
  38339. (WebCore::FrameLoader::loadResourceSynchronously):
  38340. (WebCore::FrameLoader::applyUserAgent):
  38341. * loader/FrameLoader.h:
  38342. * loader/FrameLoaderClient.h:
  38343. * platform/graphics/svg/SVGImageEmptyClients.h:
  38344. (WebCore::SVGEmptyFrameLoaderClient::userAgent):
  38345. 2007-03-05 Kevin McCullough <kmccullough@apple.com>
  38346. Reviewed by Mark and Dave H.
  38347. - rdar://problem/5038491
  38348. An oversight of the security fix that prevented remote from loading local is that it
  38349. prevents user style sheets when the site is remote. This fixes that.
  38350. * loader/Cache.cpp: Propogate and check user style sheet flag.
  38351. (WebCore::createResource):
  38352. (WebCore::Cache::requestResource):
  38353. * loader/Cache.h: Propogate user style sheet flag.
  38354. * loader/CachedCSSStyleSheet.cpp: Propogate user style sheet flag.
  38355. (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
  38356. * loader/CachedCSSStyleSheet.h: Propogate user style sheet flag.
  38357. * loader/DocLoader.cpp: Propogate user style sheet flag.
  38358. (WebCore::DocLoader::requestResource):
  38359. * loader/SubresourceLoader.cpp: Propogate and check user style sheet flag.
  38360. (WebCore::SubresourceLoader::create):
  38361. * loader/SubresourceLoader.h: Add check for user style sheet flag.
  38362. * loader/loader.cpp: Propogate user style sheet flag.
  38363. (WebCore::Loader::load):
  38364. (WebCore::Loader::servePendingRequests):
  38365. * loader/loader.h: Propogate user style sheet flag.
  38366. 2007-03-06 Nikolas Zimmermann <zimmermann@kde.org>
  38367. Reviewed by Darin.
  38368. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12936 (Master bug used to track all current use problems.)
  38369. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12926 (transform attribute not respected in nested <use> elements)
  38370. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12267 (getElementById broken for <use>)
  38371. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12916 (use instance in symbol definition does not work)
  38372. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12917 (mouseout event does not occur after scaling use instance)
  38373. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12838 (SVG <use> DOM broken for script)
  38374. Added test: svg/custom/use-nested-transform.svg
  38375. Added test: svg/custom/struct-use-09-b.svg (not yet official W3C-SVG-1.1 testcase)
  38376. Fixes test: svg/custom/use-elementInstance-event-target.svg (rectangle now turns green on first click)
  38377. Fix all (except one) known <use> bug. The remaining bug (12630) is not crucical at all.
  38378. Enable <use> again as default SVG feature, as discussed on webkit-dev.
  38379. dom/Element.cpp needed following tweak: set hasParentStyle to true, if there is no parentNode
  38380. available - which happens for <use> nodes, as it's a shadow node. This fixes recalcStyle behaviour.
  38381. Override recalcStyle() in SVGUseElement, and properly forward the call to the shadow tree root element.
  38382. The shadow tree now receives proper style updates (without having to recreate the whole tree!).
  38383. Override attributeChanged() in SVGUseElement and only call notifyAttributeChange if one of x/y/width/height/xlink:href
  38384. attribute changed - otherwhise we'll end up recreating the tree for every transform/style/(non-existing-attribute) change.
  38385. Do not override transform in nested use situations, but correctly append (right-sided) the translation of the <use> element.
  38386. Some cosmetic fixes: don't add transform="translate(0 0)" attributes if both x/y values are null in the shadow tree.
  38387. Factor out logic for replacing symbol/svg tags in the shadow tree, and also invoke it during expandUseElementsInShadowTree -
  38388. otherwhise <symbol><use xlink:href="#someOtherSymbol"></symbol> the <use> gets expanded to a <symbol>. Though no one expands
  38389. the <symbol> element - and we're end up in hitting an assertion. Avoid that.
  38390. * bindings/js/JSSVGElementWrapperFactory.cpp:
  38391. * bindings/js/kjs_dom.cpp:
  38392. (KJS::toJS):
  38393. * bindings/objc/DOM.mm:
  38394. (WebCore::createElementClassMap):
  38395. * dom/Element.cpp:
  38396. (WebCore::Element::recalcStyle):
  38397. * ksvg2/svg/SVGElement.cpp:
  38398. (WebCore::shadowTreeParentElementForShadowTreeElement):
  38399. (WebCore::SVGElement::dispatchEvent):
  38400. * ksvg2/svg/SVGElementInstance.cpp:
  38401. * ksvg2/svg/SVGElementInstance.h:
  38402. * ksvg2/svg/SVGElementInstance.idl:
  38403. * ksvg2/svg/SVGElementInstanceList.cpp:
  38404. * ksvg2/svg/SVGElementInstanceList.h:
  38405. * ksvg2/svg/SVGElementInstanceList.idl:
  38406. * ksvg2/svg/SVGStyledElement.cpp:
  38407. (WebCore::SVGStyledElement::notifyAttributeChange):
  38408. (WebCore::SVGStyledElement::updateElementInstance):
  38409. * ksvg2/svg/SVGStyledElement.h:
  38410. * ksvg2/svg/SVGUseElement.cpp:
  38411. (WebCore::SVGUseElement::attributeChanged):
  38412. (WebCore::SVGUseElement::notifyAttributeChange):
  38413. (WebCore::SVGUseElement::recalcStyle):
  38414. (WebCore::SVGUseElement::buildPendingResource):
  38415. (WebCore::SVGUseElement::buildShadowTreeForSymbolTag):
  38416. (WebCore::SVGUseElement::alterShadowTreeForSVGTag):
  38417. (WebCore::SVGUseElement::buildShadowTree):
  38418. (WebCore::SVGUseElement::expandUseElementsInShadowTree):
  38419. (WebCore::SVGUseElement::attachShadowTree):
  38420. * ksvg2/svg/SVGUseElement.h:
  38421. * ksvg2/svg/SVGUseElement.idl:
  38422. * ksvg2/svg/svgtags.in:
  38423. 2007-03-05 Brady Eidson <beidson@apple.com>
  38424. Reviewed by John
  38425. Fixes <rdar://problem/4974258>
  38426. Adds some key null checking
  38427. * bindings/js/kjs_html.cpp:
  38428. (KJS::JSHTMLElement::implementsCall): Null check doc/frame
  38429. * bindings/objc/DOMInternal.mm:
  38430. (-[WebScriptObject _initializeScriptDOMNodeImp]): Null check doc/frame
  38431. 2007-03-06 Nikolas Zimmermann <zimmermann@kde.org>
  38432. Reviewed by Darin.
  38433. Path::normalAngleAtLength() / Path::pointAtLength() don't work correctly.
  38434. pointAtLength() was not implemented, basically and normalAngleAtLength()
  38435. had a bug in the tangent slope calculation.
  38436. The normalAngleAtLength() stuff can only be tested with my local textPath support.
  38437. New LayoutTest: svg/custom/path-textPath-simulation.svg
  38438. * platform/graphics/Path.cpp:
  38439. (WebCore::pathLengthApplierFunction):
  38440. * platform/graphics/PathTraversalState.cpp:
  38441. (WebCore::PathTraversalState::quadraticBezierTo):
  38442. (WebCore::PathTraversalState::cubicBezierTo):
  38443. * platform/graphics/PathTraversalState.h:
  38444. (WebCore::PathTraversalState::):
  38445. 2007-03-05 Alexey Proskuryakov <ap@webkit.org>
  38446. Reviewed by Darin.
  38447. http://bugs.webkit.org/show_bug.cgi?id=12970
  38448. Fix and import 4XPath test_core_functions.html test
  38449. * xml/XPathExpression.cpp:
  38450. (WebCore::XPathExpression::evaluate): Fully initialize the evaluation context.
  38451. * xml/XPathFunctions.cpp:
  38452. (WebCore::XPath::FunSubstring::doEvaluate): Fixed handling of edge cases.
  38453. (WebCore::XPath::FunRound::round): Reimplemented to match the spec; exposed FunRound::round() to be used in
  38454. other functions.
  38455. 2007-03-05 Alexey Proskuryakov <ap@webkit.org>
  38456. Reviewed by Darin.
  38457. http://bugs.webkit.org/show_bug.cgi?id=12954
  38458. XPath relative operations are implemented incorrectly
  38459. * xml/XPathPredicate.cpp:
  38460. (WebCore::XPath::NumericOp::doEvaluate):
  38461. (WebCore::XPath::EqTestOp::compare):
  38462. (WebCore::XPath::EqTestOp::doEvaluate):
  38463. Reimplemented relative equality operations to match the spec.
  38464. * xml/XPathPredicate.h:
  38465. (WebCore::XPath::NumericOp::):
  38466. (WebCore::XPath::EqTestOp::):
  38467. Moved relative operations to EqTestOp.
  38468. * xml/XPathGrammar.y:
  38469. * xml/XPathParser.cpp:
  38470. (WebCore::XPath::Parser::nextTokenInternal):
  38471. (WebCore::XPath::Parser::lex):
  38472. Adapted for the above changes.
  38473. 2007-03-05 Mark Rowe <mrowe@apple.com>
  38474. Reviewed by Lars.
  38475. Fix http://bugs.webkit.org/show_bug.cgi?id=12947
  38476. Bug 12947: REGRESSION: ASSERTION FAILED: maxWidth >= 0 in StringTruncator.cpp:109 in WebCore::truncateString()
  38477. Handle nil window correctly in toUserSpace and toDeviceSpace. On Intel Macs a message to nil that returns a
  38478. float will return 0.0. We use this as the divisor in calculating a scale factor, which results in NaN being
  38479. introduced into our rect.
  38480. * platform/mac/ScreenMac.mm:
  38481. (WebCore::toUserSpace):
  38482. (WebCore::toDeviceSpace):
  38483. 2007-03-05 Rob Buis <buis@kde.org>
  38484. Reviewed by Darin.
  38485. http://bugs.webkit.org/show_bug.cgi?id=12868
  38486. parts of the CSS classes in this simple SVG example are not applied
  38487. Make sure the xml stylesheets are parsed in strict mode.
  38488. * dom/ProcessingInstruction.cpp:
  38489. (WebCore::ProcessingInstruction::parseStyleSheet):
  38490. 2007-03-04 Adele Peterson <adele@apple.com>
  38491. Reviewed by Darin.
  38492. Change to dispatch the keypress event during the defaultEventHandler for keydown events. This matches IE behavior.
  38493. This is preparation for fixing event dispatch with input methods (http://bugs.webkit.org/show_bug.cgi?id=10871)
  38494. Test: fast/events/keydown-keypress-preventDefault.html
  38495. * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::defaultEventHandler): Call the defaultKeyboardEventHandler for keydown events.
  38496. * page/EventHandler.cpp:
  38497. (WebCore::eventTargetNodeForDocument): Return 0 instead of false since the return type in EventTargetNode.
  38498. (WebCore::EventHandler::keyEvent): Removed dispatch of keypress event, since this is now done in the default event handler.
  38499. (WebCore::EventHandler::defaultKeyboardEventHandler): For keydown events, create and dispatch a keypress event.
  38500. 2007-03-04 Alexey Proskuryakov <ap@webkit.org>
  38501. Reviewed by Nikolas Zimmermann (yay!).
  38502. http://bugs.webkit.org/show_bug.cgi?id=12962
  38503. 4XPath tests crash on lang() function
  38504. Covered by 4XPath tests, to be landed later.
  38505. * platform/StringImpl.cpp:
  38506. (WebCore::StringImpl::reverseFind): Do not crash with empty strings.
  38507. * xml/XPathFunctions.cpp:
  38508. (WebCore::XPath::FunLang::doEvaluate): Do not crash when an element has no
  38509. attributes. Use a proper namespace for xml:lang (not sure where "xms" came from).
  38510. Rewrote the algorithm for suffix removing to match the spec.
  38511. 2007-03-02 Anders Carlsson <acarlsson@apple.com>
  38512. Reviewed by Darin.
  38513. <rdar://problem/5028165>
  38514. http://bugs.webkit.org/show_bug.cgi?id=12915
  38515. REGRESSION: XMLHttpRequest.abort() does not stop loading (12915)
  38516. * loader/DocumentLoader.cpp:
  38517. (WebCore::DocumentLoader::stopLoading):
  38518. Save the value of m_loading since calling FrameLoader::stopLoading could set it to false.
  38519. * loader/SubresourceLoader.cpp:
  38520. (WebCore::SubresourceLoader::didCancel):
  38521. * loader/SubresourceLoader.h:
  38522. Get rid of didCancel now, it's not needed anymore.
  38523. * xml/xmlhttprequest.cpp:
  38524. (WebCore::XMLHttpRequest::abort):
  38525. Call cancel() instead of stopLoading(). Also, set m_aborted to true so the XMLHttpRequest object
  38526. won't be dereferenced in didFail when aborting.
  38527. 2007-03-04 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  38528. Reviewed by Nikolas Zimmermann.
  38529. Move ScrollView stubs to ScrollViewGdk.cpp
  38530. * platform/gdk/FrameGdk.h: remove comment that no longer makes sense
  38531. * platform/gdk/ScrollViewGdk.cpp:
  38532. (WebCore::ScrollView::addChild):
  38533. (WebCore::ScrollView::removeChild):
  38534. (WebCore::ScrollView::scrollPointRecursively):
  38535. (WebCore::ScrollView::inWindow):
  38536. (WebCore::ScrollView::wheelEvent):
  38537. (WebCore::ScrollView::updateScrollbars):
  38538. (WebCore::ScrollView::updateScrollInfo):
  38539. (WebCore::ScrollView::windowToContents):
  38540. (WebCore::ScrollView::contentsToWindow):
  38541. (WebCore::ScrollView::scrollbarUnderMouse):
  38542. * platform/gdk/TemporaryLinkStubs.cpp:
  38543. 2007-03-02 Kevin McCullough <kmccullough@apple.com>
  38544. Reviewed by Geoff.
  38545. - rdar://problem/4922454
  38546. - This fixes a security issue by making remote referrers not able to access local
  38547. resources, unless they register their schemes to be treated as local. The result is
  38548. that those schemes can access local resources and cannot be accessed by remote
  38549. referrers.
  38550. Because this behavior is new a link-on-or-after check is made to determine if the
  38551. app should use the older, less safe, behavior.
  38552. * WebCore.exp: added exported functions
  38553. * bindings/objc/DOM.mm: consolodated function to base class
  38554. (-[DOMElement image]):
  38555. (-[DOMElement _imageTIFFRepresentation]):
  38556. * dom/Document.cpp: Cache the document's ability to load local resources.
  38557. (WebCore::Document::Document):
  38558. (WebCore::Document::setURL):
  38559. (WebCore::Document::shouldBeAllowedToLoadLocalResources):
  38560. (WebCore::Document::stylesheetLoaded):
  38561. * dom/Document.h: Cache the docuent's ability to load local resources.
  38562. (WebCore::Document::getPendingSheet):
  38563. (WebCore::Document::isAllowedToLoadLocalResources):
  38564. * html/HTMLImageLoader.cpp: Moved functionality into base class.
  38565. (WebCore::HTMLImageLoader::updateFromElement):
  38566. (WebCore::HTMLImageLoader::dispatchLoadEvent):
  38567. * html/HTMLLinkElement.cpp: Handles null returns correctly now.
  38568. * html/HTMLTokenizer.cpp: Moved functionality into base class.
  38569. (WebCore::HTMLTokenizer::notifyFinished):
  38570. * ksvg2/misc/SVGImageLoader.cpp: Moved functionality into base class.
  38571. (WebCore::SVGImageLoader::dispatchLoadEvent):
  38572. * loader/Cache.cpp: Checks if the cached resource can be loaded.
  38573. (WebCore::Cache::requestResource):
  38574. * loader/CachedCSSStyleSheet.cpp: Moved functionality into base class.
  38575. (WebCore::CachedCSSStyleSheet::ref):
  38576. (WebCore::CachedCSSStyleSheet::error):
  38577. * loader/CachedImage.cpp: Moved functionality into base class.
  38578. (WebCore::CachedImage::CachedImage):
  38579. * loader/CachedImage.h: Moved functionality into base class.
  38580. (WebCore::CachedImage::canRender):
  38581. * loader/CachedResource.cpp: Cache if the CachedResource should be treated as local
  38582. (WebCore::CachedResource::CachedResource):
  38583. * loader/CachedResource.h: Moved functionality into base class.
  38584. (WebCore::CachedResource::errorOccurred):
  38585. (WebCore::CachedResource::shouldTreatAsLocal):
  38586. * loader/CachedScript.cpp: Moved functionality into base class.
  38587. (WebCore::CachedScript::CachedScript):
  38588. * loader/CachedScript.h: Moved functionality into base class.
  38589. (WebCore::CachedScript::schedule):
  38590. * loader/CachedXBLDocument.cpp: Moved functionality into base class.
  38591. (WebCore::CachedXBLDocument::error):
  38592. * loader/CachedXSLStyleSheet.cpp: Moved functionality into base class.
  38593. (WebCore::CachedXSLStyleSheet::error):
  38594. * loader/FrameLoader.cpp: See comments for each function below.
  38595. (WebCore::FrameLoader::loadSubframe): Use new canLoad.
  38596. (WebCore::FrameLoader::restrictAccessToLocal): return value of linked-on-or-after check.
  38597. (WebCore::FrameLoader::setRestrictAccessToLocal): set value for linked-on-or-after check.
  38598. (WebCore::localSchemes): Return set of schemes that are to be treated as local.
  38599. (WebCore::FrameLoader::loadPlugin): Use new canLoad.
  38600. (WebCore::FrameLoader::canLoad): Now multiple functions that each do the same work but some can take advantage of the cached values, if they were computed previously.
  38601. (WebCore::FrameLoader::shouldHideReferrer): Extracted out the logic to determine if the referrer should be hidden so it is only calculated when needed.
  38602. (WebCore::FrameLoader::loadResourceSynchronously): No longer calls canLoad to get hideReferrer info.
  38603. (WebCore::FrameLoader::registerSchemeAsLocal): Functionality to register a scheme to be treated as local.
  38604. (WebCore::FrameLoader::treatURLAsLocal): Given a URL this function determines if it should be treated as local.
  38605. * loader/FrameLoader.h: Declared functions for this security fix. See above.
  38606. * loader/MainResourceLoader.cpp: Optized order of bools to regain performance.
  38607. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  38608. * loader/SubresourceLoader.cpp: Now restricts remote from loading local resources.
  38609. (WebCore::SubresourceLoader::create):
  38610. * page/EventHandler.cpp: Moved functionality into base class.
  38611. (WebCore::selectCursor):
  38612. * platform/KURL.cpp: KURLs need to check all the registered schemes now.
  38613. (WebCore::KURL::isLocalFile):
  38614. * rendering/HitTestResult.cpp: Moved functionality into base class.
  38615. (WebCore::HitTestResult::image):
  38616. * rendering/RenderImage.cpp: Moved functionality into base class.
  38617. (WebCore::RenderImage::setCachedImage):
  38618. (WebCore::RenderImage::imageChanged):
  38619. (WebCore::RenderImage::paint):
  38620. (WebCore::RenderImage::layout):
  38621. (WebCore::RenderImage::calcAspectRatioWidth):
  38622. (WebCore::RenderImage::calcAspectRatioHeight):
  38623. * rendering/RenderImage.h: Moved functionality into base class.
  38624. (WebCore::RenderImage::errorOccurred):
  38625. * rendering/RenderListItem.cpp: Moved functionality into base class.
  38626. (WebCore::RenderListItem::setStyle):
  38627. * rendering/RenderListMarker.cpp: Moved functionality into base class.
  38628. (WebCore::RenderListMarker::isImage):
  38629. * xml/xmlhttprequest.cpp: Check doc's cached value instead of determining independently.
  38630. (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
  38631. 2007-03-02 Justin Garcia <justin.garcia@apple.com>
  38632. Reviewed by kevin
  38633. <rdar://problem/5028447>
  38634. REGRESSION: Gmail Editor: Copied message text pastes at the wrong font size
  38635. * editing/markup.cpp:
  38636. (WebCore::createMarkup): The style of the div that holds
  38637. a fully selected body's styles didn't include styles inherited
  38638. from the body's ancestors.
  38639. 2007-03-02 Justin Garcia <justin.garcia@apple.com>
  38640. Reviewed by harrison
  38641. <rdar://problem/4545040>
  38642. innerHTML does not HTML-escape text nodes inside PRE elements
  38643. <rdar://problem/5027857>
  38644. Pasting into Mail from Safari's view-source window renders the HTML
  38645. * editing/HTMLInterchange.cpp:
  38646. (WebCore::convertHTMLTextToInterchangeFormat): Send this function
  38647. the node that the text comes from as a parameter. It shouldn't convert
  38648. '\n's to spaces/nbsps if the text is coming from text where newlines are
  38649. preserved.
  38650. * editing/HTMLInterchange.h:
  38651. * editing/markup.cpp:
  38652. (WebCore::startMarkup): Escape text inside the children of PREs.
  38653. 2007-03-02 Sam Weinig <sam@webkit.org>
  38654. Reviewed by Anders.
  38655. Try to fix the Qt build.
  38656. * platform/qt/TemporaryLinkStubs.cpp: Add stubs.
  38657. (WebCore::searchMenuNoRecentSearchesText):
  38658. (WebCore::searchMenuRecentSearchesText):
  38659. (WebCore::searchMenuClearRecentSearchesText):
  38660. (WebCore::AXWebAreaText):
  38661. (WebCore::AXLinkText):
  38662. (WebCore::AXListMarkerText):
  38663. (WebCore::AXImageMapText):
  38664. (WebCore::AXHeadingText):
  38665. 2007-03-02 David Harrison <harrison@apple.com>
  38666. Suggested by Darin.
  38667. A more efficient solution to rdar://4961431.
  38668. * bridge/mac/WebCoreAXObject.mm:
  38669. (-[WebCoreAXObject accessibilityIsIgnored]):
  38670. 2007-03-01 Justin Garcia <justin.garcia@apple.com>
  38671. Reviewed by john
  38672. <rdar://problem/5032095>
  38673. Gmail Editor: Copied text pastes on a new line instead of current line
  38674. Start merge failed to occur because positionAtStartOfInsertedContent
  38675. had a bug.
  38676. * editing/ReplaceSelectionCommand.cpp:
  38677. (WebCore::ReplaceSelectionCommand::positionAtStartOfInsertedContent):
  38678. Was failing when inserting <span><div>foo/div></span>. Return the
  38679. inserted content's first VisiblePosition.
  38680. 2007-03-02 Dave Hyatt <hyatt@apple.com>
  38681. Fix crasher in glyph map code (buffer overrun).
  38682. Reviewed by darin
  38683. * platform/win/GlyphPageTreeNodeWin.cpp:
  38684. (WebCore::GlyphPage::fill):
  38685. 2007-03-01 Antti Koivisto <antti@apple.com>
  38686. Reviewed by Maciej.
  38687. Fix for http://bugs.webkit.org/show_bug.cgi?id=12895
  38688. REGRESSION: imagemap: pointer cursor is shown everywhere
  38689. <rdar://problem/5028163>
  38690. Image with imagemap should never itself be URLElement in hit test results.
  38691. No layout test, cursor state can't be captured.
  38692. * rendering/RenderLayer.cpp:
  38693. (WebCore::RenderLayer::hitTest):
  38694. 2007-03-01 Antti Koivisto <antti@apple.com>
  38695. Reviewed by Maciej.
  38696. Fix http://bugs.webkit.org/show_bug.cgi?id=12690
  38697. REGRESSION: can not log in to bank of america with TOT webkit
  38698. <rdar://problem/4990044>
  38699. and http://bugs.webkit.org/show_bug.cgi?id=12604
  38700. REGRESSION: After closing the "Would you like to save password" sheet, the form fails
  38701. to submit automatically at http://www.mac.com/WebObjects/HomePage.woa
  38702. <rdar://problem/4871752>
  38703. and http://bugs.webkit.org/show_bug.cgi?id=12020
  38704. REGRESSION: Flickr uploading broken
  38705. <rdar://problem/4928662>
  38706. Turn protection against multiple forms submission back on. This approach is buggy
  38707. but it is way better than not having it at all. Not protecting against this
  38708. breaks number of major sites.
  38709. * bridge/mac/WebCoreAXObject.mm:
  38710. (-[WebCoreAXObject accessibilityPerformAction:]):
  38711. * loader/FrameLoader.cpp:
  38712. (WebCore::FrameLoader::resetMultipleFormSubmissionProtection):
  38713. (WebCore::FrameLoader::submitForm):
  38714. (WebCore::FrameLoader::receivedMainResourceError):
  38715. * loader/FrameLoader.h:
  38716. * page/EventHandler.cpp:
  38717. (WebCore::EventHandler::keyEvent):
  38718. * page/Frame.cpp:
  38719. (WebCore::Frame::setView):
  38720. * page/mac/EventHandlerMac.mm:
  38721. (WebCore::EventHandler::mouseDown):
  38722. 2007-03-01 Kevin McCullough <kmccullough@apple.com>
  38723. Reviewed by Adam.
  38724. - Added the test case: external-script-URL-location.html
  38725. - Fix an issue where the url of a document is null after an open if the document
  38726. has no parent.
  38727. * dom/Document.cpp:
  38728. (WebCore::Document::open):
  38729. 2007-03-01 Anders Carlsson <acarlsson@apple.com>
  38730. Reviewed by Darin.
  38731. <rdar://problem/4960250>
  38732. http://bugs.webkit.org/show_bug.cgi?id=11627
  38733. REGRESSION: Reproducible crash at IMDb in WebCore::FrameLoader::stopLoadingSubframes
  38734. In rare cases, we could end up calling checkLoadComplete twice for the same frame. This would cause the
  38735. didFailProvisionalLoad delegate method to be called twice for the same frame, and also cause the provisional document loader
  38736. to be reset to null when other code wasn't expecting it.
  38737. This regressed in revision 10904 with the fix for <rdar://problem/4184719>. The fix is to only call stopLoading on the frame
  38738. if either the document loader is loading, or the document is still being parsed. I've verified that the bug is still fixed and
  38739. that no leaks occur.
  38740. * loader/DocumentLoader.cpp:
  38741. (WebCore::DocumentLoader::stopLoading):
  38742. 2007-03-01 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  38743. Reviewed by Darin.
  38744. Fix ARM crash due to accessing non-4-byte-aligned memory
  38745. as 32-bit values.
  38746. * platform/AtomicString.cpp:
  38747. (WebCore::UCharBufferTranslator::equal):
  38748. 2007-03-01 David Harrison <harrison@apple.com>
  38749. Reviewed by Darin.
  38750. <rdar://problem/5033905> Have the DOM secondary thread check raise an exception by default
  38751. * platform/mac/ThreadCheck.mm:
  38752. (WebCore::_WebCoreThreadViolationCheck):
  38753. Initialize threadViolationIsException to true.
  38754. 2007-03-01 Brady Eidson <beidson@apple.com>
  38755. Reviewed by Darin
  38756. <rdar://problem/5030628> - Crash opening a new window with the
  38757. "New windows open to the same page" pref set
  38758. * history/HistoryItem.cpp:
  38759. (WebCore::HistoryItem::HistoryItem): Set the m_subItems vector capacity correctly
  38760. 2007-03-01 Alexey Proskuryakov <ap@webkit.org>
  38761. Reviewed by Maciej.
  38762. http://bugs.webkit.org/show_bug.cgi?id=12801
  38763. Assertion failure in createMarkup() (root) when doing Select All, Copy in an SVG document
  38764. Test: editing/pasteboard/createMarkup-assert.xml
  38765. * editing/markup.cpp:
  38766. (WebCore::createMarkup): Removed the assertion, because it's wrong in a non-HTML world.
  38767. 2007-02-28 Adam Roben <aroben@apple.com>
  38768. Reviewed by Oliver and Hyatt.
  38769. Fix <rdar://problem/5024233> Crash while using Find on empty document
  38770. No layout test possible, as this involves a null document.
  38771. * dom/Range.cpp:
  38772. (WebCore::rangeOfContents): Added an ASSERT.
  38773. * page/Frame.cpp:
  38774. (WebCore::Frame::findString): Added a null-check for document().
  38775. (WebCore::Frame::markAllMatchesForText): Ditto.
  38776. 2007-02-28 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  38777. Not reviewed - simple gdk build fix.
  38778. Add stubs for newly introduced localized strings.
  38779. * platform/gdk/TemporaryLinkStubs.cpp:
  38780. (WebCore::searchMenuNoRecentSearchesText):
  38781. (WebCore::searchMenuRecentSearchesText):
  38782. (WebCore::searchMenuClearRecentSearchesText):
  38783. 2007-02-28 Brady Eidson <beidson@apple.com>
  38784. Reviewed by Beth
  38785. Move the Thread Safety Check functions into their own header for export to WebKit
  38786. * WebCore.exp: Export the function
  38787. * WebCore.xcodeproj/project.pbxproj:
  38788. * bindings/scripts/CodeGeneratorObjC.pm: Include the new header
  38789. * platform/Logging.h: Move stuff to ThreadCheck.h
  38790. * platform/ThreadCheck.h: Added.
  38791. * platform/mac/LoggingMac.mm: Move stuff to ThreadCheck.mm
  38792. * platform/mac/ThreadCheck.mm: Added.
  38793. (WebCore::_WebCoreThreadViolationCheck):
  38794. (WebCoreReportThreadViolation):
  38795. 2007-02-28 Beth Dakin <bdakin@apple.com>
  38796. Reviewed by Brady.
  38797. Fix for http://bugs.webkit.org/show_bug.cgi?id=12923 REGRESSION:
  38798. Assertion failure copying standalone image
  38799. * platform/mac/PasteboardMac.mm:
  38800. (WebCore::Pasteboard::writeImage): Use the CachedImage as the
  38801. resource. This makes more sense anyway. There is no need to null-
  38802. check the renderer or the CachedImage since we return early if
  38803. there is no Image* and the HitTestResult::image() function checks
  38804. for these things.
  38805. 2007-02-28 Adele Peterson <adele@apple.com>
  38806. Reviewed by Beth.
  38807. Fix for <rdar://problem/4887423> REGRESSION: search results popup menu strings are not localized
  38808. and <rdar://problem/3517227> accessibility-related strings in WebCore are not localized
  38809. Use localized strings from WebKit instead of hard coded strings.
  38810. * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject roleDescription]):
  38811. * page/mac/WebCoreViewFactory.h:
  38812. * platform/LocalizedStrings.h:
  38813. * platform/mac/LocalizedStringsMac.mm:
  38814. (WebCore::searchMenuNoRecentSearchesText):
  38815. (WebCore::searchMenuRecentSearchesText):
  38816. (WebCore::searchMenuClearRecentSearchesText):
  38817. (WebCore::AXWebAreaText):
  38818. (WebCore::AXLinkText):
  38819. (WebCore::AXListMarkerText):
  38820. (WebCore::AXImageMapText):
  38821. (WebCore::AXHeadingText):
  38822. * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::itemText):
  38823. 2007-02-27 Antti Koivisto <antti@apple.com>
  38824. Reviewed by Maciej.
  38825. - fix http://bugs.webkit.org/show_bug.cgi?id=12911
  38826. GoogleDocs: Ordered lists don't update immediately when start attribute changed
  38827. Update list marker value when start attribute changes.
  38828. * html/HTMLOListElement.cpp:
  38829. (WebCore::HTMLOListElement::parseMappedAttribute):
  38830. 2007-02-28 Nikolas Zimmermann <zimmermann@kde.org>
  38831. Reviewed by Maciej.
  38832. Corrected the use of the new ENABLE() macros in some ksvg2/svg files.
  38833. Add new build-webkit flags "--(no-)xpath" / "--(no-)xslt", to be able
  38834. to switch off build features easily. Also add "--(no-)svg-experimental-features"
  38835. flag, to be able to test filters/animations/use/foreignObject easily.
  38836. * DerivedSources.make:
  38837. * ksvg2/scripts/make_names.pl:
  38838. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  38839. * ksvg2/svg/SVGStyledElement.cpp:
  38840. * ksvg2/svg/SVGUseElement.cpp:
  38841. 2007-02-28 Rob Buis <buis@kde.org>
  38842. Reviewed by Maciej.
  38843. http://bugs.webkit.org/show_bug.cgi?id=12609
  38844. Any SVG element will create renderers even when children of HTML elements
  38845. Allow creation of svg renderers only when parent is SVG, except for
  38846. the <svg> element.
  38847. * ksvg2/svg/SVGAElement.h:
  38848. * ksvg2/svg/SVGAnimationElement.h:
  38849. * ksvg2/svg/SVGCircleElement.h:
  38850. * ksvg2/svg/SVGClipPathElement.h:
  38851. (WebCore::SVGClipPathElement::rendererIsNeeded):
  38852. * ksvg2/svg/SVGDefsElement.cpp:
  38853. * ksvg2/svg/SVGDefsElement.h:
  38854. * ksvg2/svg/SVGDescElement.h:
  38855. (WebCore::SVGDescElement::rendererIsNeeded):
  38856. * ksvg2/svg/SVGElement.cpp:
  38857. * ksvg2/svg/SVGEllipseElement.h:
  38858. * ksvg2/svg/SVGFilterElement.h:
  38859. (WebCore::SVGFilterElement::rendererIsNeeded):
  38860. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  38861. (WebCore::SVGFilterPrimitiveStandardAttributes::rendererIsNeeded):
  38862. * ksvg2/svg/SVGForeignObjectElement.h:
  38863. * ksvg2/svg/SVGGElement.h:
  38864. * ksvg2/svg/SVGGradientElement.h:
  38865. * ksvg2/svg/SVGImageElement.h:
  38866. * ksvg2/svg/SVGLineElement.h:
  38867. * ksvg2/svg/SVGMarkerElement.h:
  38868. * ksvg2/svg/SVGMaskElement.h:
  38869. * ksvg2/svg/SVGPathElement.h:
  38870. * ksvg2/svg/SVGPatternElement.h:
  38871. * ksvg2/svg/SVGPolyElement.h:
  38872. * ksvg2/svg/SVGRectElement.h:
  38873. * ksvg2/svg/SVGStopElement.h:
  38874. * ksvg2/svg/SVGStyledElement.cpp:
  38875. (WebCore::SVGStyledElement::rendererIsNeeded):
  38876. * ksvg2/svg/SVGStyledElement.h:
  38877. * ksvg2/svg/SVGSwitchElement.h:
  38878. * ksvg2/svg/SVGSymbolElement.h:
  38879. (WebCore::SVGSymbolElement::rendererIsNeeded):
  38880. * ksvg2/svg/SVGTRefElement.h:
  38881. * ksvg2/svg/SVGTSpanElement.h:
  38882. * ksvg2/svg/SVGTextElement.h:
  38883. * ksvg2/svg/SVGTitleElement.h:
  38884. (WebCore::SVGTitleElement::rendererIsNeeded):
  38885. * ksvg2/svg/SVGUseElement.h:
  38886. * ksvg2/svg/SVGViewElement.h:
  38887. (WebCore::SVGViewElement::rendererIsNeeded):
  38888. 2007-02-28 Rob Buis <buis@kde.org>
  38889. Reviewed by Maciej.
  38890. http://bugs.webkit.org/show_bug.cgi?id=12913
  38891. Markers do not render in webkit when it misses markerWidth or markerHeight attribute
  38892. Set defaults for markerWidth/markerHeight so markers that do not specify them render.
  38893. * ksvg2/svg/SVGMarkerElement.cpp:
  38894. (WebCore::SVGMarkerElement::SVGMarkerElement):
  38895. 2007-02-27 Anders Carlsson <acarlsson@apple.com>
  38896. * loader/ResourceLoader.cpp:
  38897. (WebCore::ResourceLoader::~ResourceLoader):
  38898. Remove comment.
  38899. 2007-02-27 Justin Garcia <justin.garcia@apple.com>
  38900. Reviewed by oliver
  38901. <rdar://problem/5027300>
  38902. REGRESSION: Images inserted with align left/right are lost
  38903. * editing/ReplaceSelectionCommand.cpp:
  38904. (WebCore::ReplaceSelectionCommand::shouldMerge):
  38905. Don't attempt to merge to or from a position before
  38906. or after a block because it will be a no-op and
  38907. lead to infinite recursion.
  38908. In this case it instead resulted in content loss because
  38909. of bugs in start/endOfParagraph (5027702).
  38910. * editing/visible_units.cpp: Added two FIXMEs for
  38911. the problems with start/endOfParagraph.
  38912. 2007-02-27 Anders Carlsson <acarlsson@apple.com>
  38913. Reviewed by Geoff.
  38914. Make resource load delegate methods pass the right document loader.
  38915. * loader/FrameLoader.cpp:
  38916. (WebCore::FrameLoader::willSendRequest):
  38917. (WebCore::FrameLoader::didReceiveResponse):
  38918. (WebCore::FrameLoader::didReceiveData):
  38919. (WebCore::FrameLoader::didFailToLoad):
  38920. (WebCore::FrameLoader::didFinishLoad):
  38921. (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
  38922. (WebCore::FrameLoader::didCancelAuthenticationChallenge):
  38923. Use the resource loader's document loader instead of the active one.
  38924. * loader/MainResourceLoader.cpp:
  38925. (WebCore::MainResourceLoader::receivedError):
  38926. Make it so we send the frame load delegate method before the resource load delegate method.
  38927. This was a regression from 2.0 and was caused by the fix to rdar://problem/4609195. Because the way the loader
  38928. now works, both delegate methods will be called.
  38929. * loader/ResourceLoader.cpp:
  38930. (WebCore::ResourceLoader::ResourceLoader):
  38931. * loader/ResourceLoader.h:
  38932. (WebCore::ResourceLoader::documentLoader):
  38933. Add document loader pointer to ResourceLoader.
  38934. 2007-02-27 Mitz Pettel <mitz@webkit.org>
  38935. Reviewed by Hyatt.
  38936. - fix http://bugs.webkit.org/show_bug.cgi?id=12910
  38937. REGRESSION (r18756-r18765): list-bullet doesn't redraw properly when changing the list's content using JavaScript
  38938. Test: fast/repaint/list-marker.html
  38939. * rendering/RenderListItem.cpp:
  38940. (WebCore::RenderListItem::positionListMarker): Add the marker to the visual
  38941. overflow of all its ancestor blocks up to the list item. This needs to be
  38942. done here since the marker is positioned only after those blocks have been
  38943. laid out.
  38944. 2007-02-27 Antti Koivisto <antti@apple.com>
  38945. Reviewed by Hyatt.
  38946. - fix http://bugs.webkit.org/show_bug.cgi?id=12918
  38947. REGRESSION: Google Finance dropdown Flickers
  38948. <rdar://4988039>
  38949. If a node dies while mouse is over it, it is still supposed to receive
  38950. mouseout event (wasn't case in Tiger webkit). However this event should
  38951. not propagate to any other nodes. This patch matches Firefox behavior in
  38952. this respect.
  38953. * dom/EventTargetNode.cpp:
  38954. (WebCore::EventTargetNode::dispatchGenericEvent):
  38955. 2007-02-27 Geoffrey Garen <ggaren@apple.com>
  38956. Reviewed by Maciej Stachowiak.
  38957. Fixed http://bugs.webkit.org/show_bug.cgi?id=12659 | <rdar://problem/4954306>
  38958. JS objects not collected after closing window @ ebay.com/maps.google.com
  38959. Garbage collect in the KJSProxy destructor, after clearing our reference
  38960. to the interpreter, because that's when the interpreter has torn down fully.
  38961. (Technically speaking, we can't *prove* that we have the only reference to
  38962. our interpreter, but that's how it works in practice, and manual garbage
  38963. collection is just an opportunistic optimization, so it's OK for it to
  38964. work in practice even if it can't be proven in theory.)
  38965. Layout tests pass. No leaks reported.
  38966. * bindings/js/kjs_proxy.cpp:
  38967. (WebCore::KJSProxy::~KJSProxy):
  38968. * bindings/js/kjs_proxy.h:
  38969. * page/Page.cpp:
  38970. (WebCore::Page::~Page): Merged pageDestroyed() calls. Moved debug-only
  38971. code to the bottom.
  38972. * page/Frame.cpp:
  38973. (WebCore::Frame::~Frame): Don't call getObject() because globalObject()
  38974. returns a JSObject* already, and the call can leave a pointer to the Window
  38975. object on the stack. Don't check for NULL because it is an invariant of
  38976. JavaScriptCore that no JSObject* can be NULL. Do use a volatile pointer
  38977. for w because the 'w = 0' assignment just screams to the compiler, "Don't
  38978. generate any code for me!"
  38979. 2007-02-27 Rob Buis <buis@kde.org>
  38980. Reviewed by David Hyatt.
  38981. http://bugs.webkit.org/show_bug.cgi?id=4128
  38982. !important is ignored in inline styling.
  38983. Handle properties with !important flag better in inline
  38984. style declarations.
  38985. * css/CSSMutableStyleDeclaration.cpp:
  38986. (WebCore::CSSMutableStyleDeclaration::addParsedProperties):
  38987. 2007-02-27 David Hyatt <hyatt@apple.com>
  38988. Bug 11435. Make sure RenderViews always paintBoxDecorations. They used to before I removed RenderView's
  38989. paint method. This fix restores the original behavior.
  38990. Reviewed by mitz
  38991. * rendering/RenderBox.cpp:
  38992. (WebCore::RenderBox::setStyle):
  38993. 2007-02-27 David Hyatt <hyatt@apple.com>
  38994. Fix for bug 12094, make sure setMinMaxKnown starts off false for the weird/rare case of empty
  38995. plaintext documents (which really are buggy and should be fixed to generate root elements).
  38996. Reviewed by mitz
  38997. * rendering/RenderView.cpp:
  38998. (WebCore::RenderView::RenderView):
  38999. 2007-02-27 Matt Perry <mpcomplete@chromium.org>
  39000. Reviewed by Darin.
  39001. Fixed the case where a BackForwardList of capacity==1 would grow without bound.
  39002. * history/BackForwardList.cpp:
  39003. (WebCore::BackForwardList::addItem):
  39004. 2007-02-22 Lars Naesbye Christensen <lars@naesbye.dk>
  39005. Reviewed by Maciej.
  39006. http://bugs.webkit.org/show_bug.cgi?id=12848
  39007. Help cursor should have a white outline
  39008. * Resources/helpCursor.png:
  39009. 2007-02-27 Alexey Proskuryakov <ap@webkit.org>
  39010. Reviewed by Maciej.
  39011. http://bugs.webkit.org/show_bug.cgi?id=12594
  39012. REGRESSION: Strange highlight in active input area
  39013. No automated test possible.
  39014. * rendering/InlineTextBox.cpp:
  39015. (WebCore::InlineTextBox::paint): Restore a check lost in r12792.
  39016. 2007-02-27 Darin Adler <darin@apple.com>
  39017. Reviewed by Mitz.
  39018. - fix http://bugs.webkit.org/show_bug.cgi?id=12908
  39019. crash in http/tests/incremental/frame-focus-before-load.html
  39020. * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::focusDocumentView):
  39021. Add null checks.
  39022. 2007-02-27 Darin Adler <darin@apple.com>
  39023. Reviewed by Alexey.
  39024. - fix http://bugs.webkit.org/show_bug.cgi?id=12909
  39025. should use ICU, not TEC, for MacRoman decoding
  39026. * platform/TextCodecICU.cpp: (WebCore::TextCodecICU::registerEncodingNames):
  39027. Add "macroman" as an alias for "macintosh". We have seen that in use in mail,
  39028. although I'm not sure it's used on the web.
  39029. * platform/mac/mac-encodings.txt: Remove MacRoman line, which was added back
  39030. as part of the patch for bug 4971226. But by adding it to this file rather
  39031. than the ICU codec, we get it only on Mac OS X. And long term we are trying to
  39032. get rid of the use of TEC entirely, so we want this file to be as empty as
  39033. possible.
  39034. 2007-02-27 Rob Buis <buis@kde.org>
  39035. Reviewed by Maciej.
  39036. http://bugs.webkit.org/show_bug.cgi?id=12905
  39037. Not all svg shapes should support markers
  39038. Restrict marker usage to svg shapes polyline, polygon, line and path.
  39039. * ksvg2/svg/SVGLineElement.h:
  39040. (WebCore::SVGLineElement::supportsMarkers):
  39041. * ksvg2/svg/SVGPathElement.h:
  39042. (WebCore::SVGPathElement::supportsMarkers):
  39043. * ksvg2/svg/SVGPolyElement.h:
  39044. (WebCore::SVGPolyElement::supportsMarkers):
  39045. * ksvg2/svg/SVGStyledElement.h:
  39046. (WebCore::SVGStyledElement::supportsMarkers):
  39047. * rendering/RenderPath.cpp:
  39048. (WebCore::RenderPath::paint):
  39049. 2007-02-26 Adele Peterson <adele@apple.com>
  39050. Reviewed by Lars.
  39051. Fix for http://bugs.webkit.org/show_bug.cgi?id=12902
  39052. <rdar://problem/5012679> REGRESSION: Pressing return key doesn't
  39053. move caret to next line after applying a font color in GMail
  39054. Test: fast/frames/iframe-window-focus-2.html
  39055. * page/EventHandler.h: Make focusDocumentView public.
  39056. * page/Frame.cpp: (WebCore::Frame::focusWindow): Instead of just setting the focused frame,
  39057. we should set also focus the document view. The bug here was that since the subframe view
  39058. wasn't the first responder, the key down event was going to the wrong frame.
  39059. 2007-02-26 Maciej Stachowiak <mjs@apple.com>
  39060. Reviewed by Oliver.
  39061. - fixed <rdar://problem/4946881> Recursive loop with <marker> not caught, crashes in WebCore::SVGPaintServer::draw (11244)
  39062. http://bugs.webkit.org/show_bug.cgi?id=11244
  39063. * platform/graphics/svg/SVGResourceMarker.cpp:
  39064. (WebCore::SVGResourceMarker::draw): Use a HashSet to guard against
  39065. reference cycles.
  39066. 2007-02-26 Maciej Stachowiak <mjs@apple.com>
  39067. Reviewed by Kevin McCullough.
  39068. - fix Qt build for earlier SVG changes.
  39069. * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
  39070. 2007-02-26 Oliver Hunt <oliver@apple.com>
  39071. Reviewed by Maciej.
  39072. Fix for <rdar://problem/4827378>: Canvas with large height
  39073. uses lots of memory, computer almost stops responding
  39074. Put cap on maximum area of canvas, size is similar too the
  39075. maximum size allowed by firefox (firefox seems to to cut off
  39076. at area == 32767 * 9358).
  39077. Also protect renderer against the possibility of a null context
  39078. (this was triggering a CG warning)
  39079. * html/HTMLCanvasElement.cpp:
  39080. (WebCore::HTMLCanvasElement::createDrawingContext):
  39081. Apply maximum canvas area
  39082. (WebCore::HTMLCanvasElement::createPlatformImage):
  39083. Protect against null CG Context
  39084. 2007-02-26 Mitz Pettel <mitz@webkit.org>
  39085. Reviewed by Antti Koivisto.
  39086. - fix http://bugs.webkit.org/show_bug.cgi?id=12899
  39087. Ordered lists not updating dynamically with new styles
  39088. Test: fast/lists/list-style-type-dynamic-change.html
  39089. * rendering/RenderListMarker.cpp:
  39090. (WebCore::RenderListMarker::setStyle): Made changing the marker type trigger
  39091. updating of the marker.
  39092. 2007-02-26 Adele Peterson <adele@apple.com>
  39093. Reviewed by Maciej.
  39094. Fix for <rdar://problem/5012761> REGRESSION: form submit invokes wrong event handler
  39095. Test: fast/events/submit-reset-nested-bubble.html
  39096. * dom/EventTargetNode.h: Made handleLocalEvents virtual.
  39097. * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::handleLocalEvents): If we're
  39098. not in the capture phase, and the target is a different form, and we're handling
  39099. the submitEvent or the resetEvent, then stop propagation of the event. This matches
  39100. Firefox behavior. You can only get in this situation if misnested tags cause
  39101. forms to be nested.
  39102. * html/HTMLFormElement.h: Added handleLocalEvents.
  39103. 2007-02-26 Darin Adler <darin@apple.com>
  39104. Reviewed by Oliver Hunt.
  39105. - <rdar://problem/5021555> TextCodecICU does not use fallback mappings; it should
  39106. * platform/TextCodecICU.cpp: (WebCore::TextCodecICU::createICUConverter):
  39107. Added a call to ucnv_setFallback(TRUE).
  39108. 2007-02-26 Oliver Hunt <oliver@apple.com>
  39109. Reviewed by Adam.
  39110. Fix for rdar://problem/5021127
  39111. Need to add null check to node -- original Obj-C didn't need
  39112. the null check due to the Obj-C null messaging semantics
  39113. * editing/Editor.cpp:
  39114. (WebCore::Editor::shouldInsertFragment):
  39115. 2007-02-26 David Hyatt <hyatt@apple.com>
  39116. Make text files render using white-space: pre-wrap instead of white-space: pre.
  39117. Reviewed by aroben
  39118. * loader/TextDocument.cpp:
  39119. (WebCore::TextTokenizer::write):
  39120. 2007-02-26 David Hyatt <hyatt@apple.com>
  39121. Back out the change to add fullyClippedContentRect. The layout test
  39122. was actually showing more correct results.
  39123. * page/Frame.cpp:
  39124. (WebCore::Frame::visibleSelectionRect):
  39125. (WebCore::Frame::setIsActive):
  39126. (WebCore::Frame::markAllMatchesForText):
  39127. * platform/ScrollView.h:
  39128. * platform/mac/ScrollViewMac.mm:
  39129. * rendering/RenderLayer.cpp:
  39130. (WebCore::RenderLayer::scrollRectToVisible):
  39131. 2007-02-26 David Hyatt <hyatt@apple.com>
  39132. Add support for a new property called -webkit-border-fit. This property
  39133. has two values: border and lines. The "border" value means the border and
  39134. background paint normally at the border box level. The "lines" value indicates
  39135. that the border and background should shrink dynamically to snugly hug the
  39136. line boxes of normal flow descendants.
  39137. Reviewed by darin
  39138. fast/borders/border-fit.html
  39139. * WebCore.xcodeproj/project.pbxproj:
  39140. * css/CSSComputedStyleDeclaration.cpp:
  39141. (WebCore::):
  39142. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  39143. * css/CSSPropertyNames.in:
  39144. * css/CSSValueKeywords.in:
  39145. * css/cssparser.cpp:
  39146. (WebCore::CSSParser::parseValue):
  39147. * css/cssstyleselector.cpp:
  39148. (WebCore::CSSStyleSelector::applyProperty):
  39149. * rendering/RenderBlock.cpp:
  39150. (WebCore::RenderBlock::adjustForBorderFit):
  39151. (WebCore::RenderBlock::borderFitAdjust):
  39152. * rendering/RenderBlock.h:
  39153. * rendering/RenderBox.cpp:
  39154. (WebCore::RenderBox::paintBoxDecorations):
  39155. * rendering/RenderBox.h:
  39156. (WebCore::RenderBox::borderFitAdjust):
  39157. * rendering/RenderStyle.cpp:
  39158. (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
  39159. (WebCore::StyleRareNonInheritedData::operator==):
  39160. (WebCore::RenderStyle::diff):
  39161. * rendering/RenderStyle.h:
  39162. (WebCore::):
  39163. (WebCore::RenderStyle::borderFit):
  39164. (WebCore::RenderStyle::setBorderFit):
  39165. (WebCore::RenderStyle::initialBorderFit):
  39166. 2007-02-26 Adam Roben <aroben@apple.com>
  39167. Reviewed by Darin.
  39168. Build fix.
  39169. * rendering/RenderTreeAsText.cpp: Can't use #ifndef with ENABLE() macro.
  39170. 2007-02-26 Adele Peterson <adele@apple.com>
  39171. Reviewed by Adam.
  39172. Fix for <rdar://problem/4990700> Safari always crashes when attempting to edit/view
  39173. Yahoo pipes in WebCore::HTMLSelectElement::optionToListIndex
  39174. Test: fast/forms/select-out-of-bounds-index.html
  39175. * html/HTMLSelectElement.cpp:
  39176. (WebCore::HTMLSelectElement::setSelectedIndex): If we're about to deselect all options, then set m_lastOnChangeIndex to -1.
  39177. (WebCore::HTMLSelectElement::optionToListIndex): Moved listSize to a local variable. Rewrote using a simpler for-loop to prevent out-of-bounds errors.
  39178. 2007-02-26 Anders Carlsson <acarlsson@apple.com>
  39179. Reviewed by Geoff.
  39180. <rdar://problem/4816376>
  39181. REGRESSION: NetNewsWire 3.0 - Crashes in WebDocumentLoaderMac::attachToFrame() (12674)
  39182. * loader/FrameLoader.cpp:
  39183. (WebCore::FrameLoader::reload):
  39184. Remove call to setPolicyDocumentLoader here, it's set by the ::load function that we end up calling.
  39185. 2007-02-26 Maciej Stachowiak <mjs@apple.com>
  39186. Reviewed by Lars.
  39187. - fixed <rdar://problem/5021698> Disable experimental SVG features (12883)
  39188. I added an ENABLE_SVG_EXPERIMENTAL_FEATURES define to guard all use of the experimental
  39189. features, and used it to guard relevant tag names, elements, JS bindings and renderers.
  39190. I also converted all the existing optional feature defines to
  39191. ENABLE_FOO instead of FOO_SUPPORT since that is the more standard
  39192. way to do it in open source projects and works with the handy new
  39193. ENABLE() macro.
  39194. * CMakeLists.txt:
  39195. * DerivedSources.make:
  39196. * Projects/gdk/webcore-gdk.bkl:
  39197. * WebCore.pro:
  39198. * WebCore.vcproj/WebCore/WebCore.vcproj:
  39199. * WebCore.vcproj/WebCore/build-generated-files.sh:
  39200. * WebCore.xcodeproj/project.pbxproj:
  39201. * bindings/js/JSCustomXPathNSResolver.cpp:
  39202. * bindings/js/JSCustomXPathNSResolver.h:
  39203. * bindings/js/JSSVGElementWrapperFactory.cpp:
  39204. * bindings/js/JSSVGElementWrapperFactory.h:
  39205. * bindings/js/JSSVGMatrixCustom.cpp:
  39206. * bindings/js/JSSVGPODTypeWrapper.h:
  39207. * bindings/js/JSSVGPathSegCustom.cpp:
  39208. * bindings/js/JSSVGPathSegListCustom.cpp:
  39209. * bindings/js/JSSVGPointListCustom.cpp:
  39210. * bindings/js/JSXSLTProcessor.cpp:
  39211. * bindings/js/JSXSLTProcessor.h:
  39212. * bindings/js/kjs_binding.cpp:
  39213. (KJS::setDOMException):
  39214. * bindings/js/kjs_css.cpp:
  39215. (KJS::toJS):
  39216. * bindings/js/kjs_dom.cpp:
  39217. (KJS::toJS):
  39218. * bindings/js/kjs_html.cpp:
  39219. (KJS::HTMLElementFunction::callAsFunction):
  39220. * bindings/js/kjs_proxy.cpp:
  39221. * bindings/js/kjs_proxy.h:
  39222. * bindings/js/kjs_window.cpp:
  39223. (KJS::Window::getValueProperty):
  39224. * bindings/objc/DOM.mm:
  39225. (WebCore::createElementClassMap):
  39226. (+[DOMNode _nodeWith:]):
  39227. * bindings/objc/DOMCSS.mm:
  39228. (+[DOMCSSValue _CSSValueWith:]):
  39229. * bindings/objc/DOMCustomXPathNSResolver.h:
  39230. * bindings/objc/DOMCustomXPathNSResolver.mm:
  39231. * bindings/objc/DOMEvents.mm:
  39232. (+[DOMEvent _eventWith:]):
  39233. * bindings/objc/DOMInternal.h:
  39234. * bindings/objc/DOMSVGPathSegInternal.mm:
  39235. * bindings/objc/DOMXPath.mm:
  39236. * bindings/objc/ExceptionHandlers.mm:
  39237. (WebCore::raiseDOMException):
  39238. * bindings/objc/PublicDOMInterfaces.h:
  39239. * bindings/scripts/CodeGeneratorJS.pm:
  39240. * bindings/scripts/CodeGeneratorObjC.pm:
  39241. * config.h:
  39242. * css/CSSGrammar.y:
  39243. * css/CSSStyleDeclaration.cpp:
  39244. (WebCore::propertyID):
  39245. * css/StyleBase.h:
  39246. * css/cssparser.cpp:
  39247. (WebCore::CSSParser::parseValue):
  39248. * css/cssparser.h:
  39249. * css/cssstyleselector.cpp:
  39250. (WebCore::CSSStyleSelector::loadDefaultStyle):
  39251. (WebCore::CSSStyleSelector::initForStyleResolve):
  39252. (WebCore::checkPseudoState):
  39253. (WebCore::CSSStyleSelector::adjustRenderStyle):
  39254. (WebCore::CSSStyleSelector::applyProperty):
  39255. * css/cssstyleselector.h:
  39256. * dom/DOMImplementation.cpp:
  39257. (WebCore::DOMImplementation::hasFeature):
  39258. (WebCore::DOMImplementation::createDocument):
  39259. * dom/Document.cpp:
  39260. (WebCore::Document::Document):
  39261. (WebCore::Document::~Document):
  39262. (WebCore::Document::createElement):
  39263. (WebCore::Document::implicitClose):
  39264. (WebCore::Document::recalcStyleSelector):
  39265. (WebCore::Document::createEvent):
  39266. * dom/Document.h:
  39267. * dom/Document.idl:
  39268. * dom/Event.cpp:
  39269. * dom/Event.h:
  39270. * dom/EventTarget.cpp:
  39271. * dom/EventTarget.h:
  39272. * dom/MappedAttributeEntry.h:
  39273. (WebCore::):
  39274. * dom/Node.cpp:
  39275. (WebCore::Node::createRendererIfNeeded):
  39276. (WebCore::Node::shadowAncestorNode):
  39277. * dom/Node.h:
  39278. * dom/ProcessingInstruction.cpp:
  39279. (WebCore::ProcessingInstruction::ProcessingInstruction):
  39280. (WebCore::ProcessingInstruction::checkStyleSheet):
  39281. (WebCore::ProcessingInstruction::setCSSStyleSheet):
  39282. * dom/ProcessingInstruction.h:
  39283. * dom/Text.cpp:
  39284. (WebCore::Text::createRenderer):
  39285. * dom/XMLTokenizer.cpp:
  39286. (WebCore::XMLTokenizer::startElementNs):
  39287. (WebCore::XMLTokenizer::endElementNs):
  39288. (WebCore::XMLTokenizer::processingInstruction):
  39289. (WebCore::XMLTokenizer::end):
  39290. (WebCore::XMLTokenizer::insertErrorMessageBlock):
  39291. * dom/XMLTokenizer.h:
  39292. * html/HTMLEmbedElement.cpp:
  39293. * html/HTMLEmbedElement.h:
  39294. * html/HTMLObjectElement.cpp:
  39295. * html/HTMLObjectElement.h:
  39296. * ksvg2/css/SVGCSSParser.cpp:
  39297. * ksvg2/css/SVGCSSStyleSelector.cpp:
  39298. * ksvg2/css/SVGRenderStyle.cpp:
  39299. * ksvg2/css/SVGRenderStyle.h:
  39300. * ksvg2/css/SVGRenderStyleDefs.cpp:
  39301. * ksvg2/css/SVGRenderStyleDefs.h:
  39302. * ksvg2/events/JSSVGLazyEventListener.cpp:
  39303. * ksvg2/events/JSSVGLazyEventListener.h:
  39304. * ksvg2/events/SVGZoomEvent.cpp:
  39305. * ksvg2/events/SVGZoomEvent.h:
  39306. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  39307. * ksvg2/misc/KCanvasRenderingStyle.h:
  39308. * ksvg2/misc/PointerEventsHitRules.cpp:
  39309. * ksvg2/misc/PointerEventsHitRules.h:
  39310. * ksvg2/misc/SVGDocumentExtensions.cpp:
  39311. * ksvg2/misc/SVGDocumentExtensions.h:
  39312. * ksvg2/misc/SVGImageLoader.cpp:
  39313. * ksvg2/misc/SVGImageLoader.h:
  39314. * ksvg2/misc/SVGTimer.cpp:
  39315. * ksvg2/misc/SVGTimer.h:
  39316. * ksvg2/misc/TimeScheduler.cpp:
  39317. * ksvg2/misc/TimeScheduler.h:
  39318. * ksvg2/scripts/make_names.pl:
  39319. * ksvg2/svg/ColorDistance.cpp:
  39320. * ksvg2/svg/ColorDistance.h:
  39321. * ksvg2/svg/GradientAttributes.h:
  39322. * ksvg2/svg/LinearGradientAttributes.h:
  39323. * ksvg2/svg/PatternAttributes.h:
  39324. * ksvg2/svg/RadialGradientAttributes.h:
  39325. * ksvg2/svg/SVGAElement.cpp:
  39326. * ksvg2/svg/SVGAElement.h:
  39327. * ksvg2/svg/SVGAngle.cpp:
  39328. * ksvg2/svg/SVGAngle.h:
  39329. * ksvg2/svg/SVGAnimateColorElement.cpp:
  39330. * ksvg2/svg/SVGAnimateColorElement.h:
  39331. * ksvg2/svg/SVGAnimateElement.cpp:
  39332. * ksvg2/svg/SVGAnimateElement.h:
  39333. * ksvg2/svg/SVGAnimateElement.idl:
  39334. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  39335. * ksvg2/svg/SVGAnimateMotionElement.h:
  39336. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  39337. * ksvg2/svg/SVGAnimateTransformElement.h:
  39338. * ksvg2/svg/SVGAnimateTransformElement.idl:
  39339. * ksvg2/svg/SVGAnimatedPathData.cpp:
  39340. * ksvg2/svg/SVGAnimatedPathData.h:
  39341. * ksvg2/svg/SVGAnimatedPoints.cpp:
  39342. * ksvg2/svg/SVGAnimatedPoints.h:
  39343. * ksvg2/svg/SVGAnimatedTemplate.h:
  39344. * ksvg2/svg/SVGAnimationElement.cpp:
  39345. * ksvg2/svg/SVGAnimationElement.h:
  39346. * ksvg2/svg/SVGCircleElement.cpp:
  39347. * ksvg2/svg/SVGCircleElement.h:
  39348. * ksvg2/svg/SVGClipPathElement.cpp:
  39349. * ksvg2/svg/SVGClipPathElement.h:
  39350. * ksvg2/svg/SVGColor.cpp:
  39351. * ksvg2/svg/SVGColor.h:
  39352. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  39353. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  39354. * ksvg2/svg/SVGCursorElement.cpp:
  39355. * ksvg2/svg/SVGCursorElement.h:
  39356. * ksvg2/svg/SVGDefsElement.cpp:
  39357. * ksvg2/svg/SVGDefsElement.h:
  39358. * ksvg2/svg/SVGDescElement.cpp:
  39359. * ksvg2/svg/SVGDescElement.h:
  39360. * ksvg2/svg/SVGDocument.cpp:
  39361. * ksvg2/svg/SVGDocument.h:
  39362. * ksvg2/svg/SVGElement.cpp:
  39363. (WebCore::SVGElement::dispatchEvent):
  39364. * ksvg2/svg/SVGElement.h:
  39365. * ksvg2/svg/SVGElementInstance.cpp:
  39366. * ksvg2/svg/SVGElementInstance.h:
  39367. * ksvg2/svg/SVGElementInstance.idl:
  39368. * ksvg2/svg/SVGElementInstanceList.cpp:
  39369. * ksvg2/svg/SVGElementInstanceList.h:
  39370. * ksvg2/svg/SVGElementInstanceList.idl:
  39371. * ksvg2/svg/SVGEllipseElement.cpp:
  39372. * ksvg2/svg/SVGEllipseElement.h:
  39373. * ksvg2/svg/SVGException.h:
  39374. * ksvg2/svg/SVGExternalResourcesRequired.cpp:
  39375. * ksvg2/svg/SVGExternalResourcesRequired.h:
  39376. * ksvg2/svg/SVGFEBlendElement.cpp:
  39377. * ksvg2/svg/SVGFEBlendElement.h:
  39378. * ksvg2/svg/SVGFEBlendElement.idl:
  39379. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  39380. * ksvg2/svg/SVGFEColorMatrixElement.h:
  39381. * ksvg2/svg/SVGFEColorMatrixElement.idl:
  39382. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  39383. * ksvg2/svg/SVGFEComponentTransferElement.h:
  39384. * ksvg2/svg/SVGFEComponentTransferElement.idl:
  39385. * ksvg2/svg/SVGFECompositeElement.cpp:
  39386. * ksvg2/svg/SVGFECompositeElement.h:
  39387. * ksvg2/svg/SVGFECompositeElement.idl:
  39388. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  39389. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  39390. * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
  39391. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  39392. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  39393. * ksvg2/svg/SVGFEDisplacementMapElement.idl:
  39394. * ksvg2/svg/SVGFEDistantLightElement.cpp:
  39395. * ksvg2/svg/SVGFEDistantLightElement.h:
  39396. * ksvg2/svg/SVGFEDistantLightElement.idl:
  39397. * ksvg2/svg/SVGFEFloodElement.cpp:
  39398. * ksvg2/svg/SVGFEFloodElement.h:
  39399. * ksvg2/svg/SVGFEFloodElement.idl:
  39400. * ksvg2/svg/SVGFEFuncAElement.cpp:
  39401. * ksvg2/svg/SVGFEFuncAElement.h:
  39402. * ksvg2/svg/SVGFEFuncAElement.idl:
  39403. * ksvg2/svg/SVGFEFuncBElement.cpp:
  39404. * ksvg2/svg/SVGFEFuncBElement.h:
  39405. * ksvg2/svg/SVGFEFuncBElement.idl:
  39406. * ksvg2/svg/SVGFEFuncGElement.cpp:
  39407. * ksvg2/svg/SVGFEFuncGElement.h:
  39408. * ksvg2/svg/SVGFEFuncGElement.idl:
  39409. * ksvg2/svg/SVGFEFuncRElement.cpp:
  39410. * ksvg2/svg/SVGFEFuncRElement.h:
  39411. * ksvg2/svg/SVGFEFuncRElement.idl:
  39412. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  39413. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  39414. * ksvg2/svg/SVGFEGaussianBlurElement.idl:
  39415. * ksvg2/svg/SVGFEImageElement.cpp:
  39416. * ksvg2/svg/SVGFEImageElement.h:
  39417. * ksvg2/svg/SVGFEImageElement.idl:
  39418. * ksvg2/svg/SVGFELightElement.cpp:
  39419. * ksvg2/svg/SVGFELightElement.h:
  39420. * ksvg2/svg/SVGFEMergeElement.cpp:
  39421. * ksvg2/svg/SVGFEMergeElement.h:
  39422. * ksvg2/svg/SVGFEMergeElement.idl:
  39423. * ksvg2/svg/SVGFEMergeNodeElement.cpp:
  39424. * ksvg2/svg/SVGFEMergeNodeElement.h:
  39425. * ksvg2/svg/SVGFEMergeNodeElement.idl:
  39426. * ksvg2/svg/SVGFEOffsetElement.cpp:
  39427. * ksvg2/svg/SVGFEOffsetElement.h:
  39428. * ksvg2/svg/SVGFEOffsetElement.idl:
  39429. * ksvg2/svg/SVGFEPointLightElement.cpp:
  39430. * ksvg2/svg/SVGFEPointLightElement.h:
  39431. * ksvg2/svg/SVGFEPointLightElement.idl:
  39432. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  39433. * ksvg2/svg/SVGFESpecularLightingElement.h:
  39434. * ksvg2/svg/SVGFESpecularLightingElement.idl:
  39435. * ksvg2/svg/SVGFESpotLightElement.cpp:
  39436. * ksvg2/svg/SVGFESpotLightElement.h:
  39437. * ksvg2/svg/SVGFESpotLightElement.idl:
  39438. * ksvg2/svg/SVGFETileElement.cpp:
  39439. * ksvg2/svg/SVGFETileElement.h:
  39440. * ksvg2/svg/SVGFETileElement.idl:
  39441. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  39442. * ksvg2/svg/SVGFETurbulenceElement.h:
  39443. * ksvg2/svg/SVGFETurbulenceElement.idl:
  39444. * ksvg2/svg/SVGFilterElement.cpp:
  39445. * ksvg2/svg/SVGFilterElement.h:
  39446. * ksvg2/svg/SVGFilterElement.idl:
  39447. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  39448. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  39449. * ksvg2/svg/SVGFitToViewBox.cpp:
  39450. * ksvg2/svg/SVGFitToViewBox.h:
  39451. * ksvg2/svg/SVGForeignObjectElement.cpp:
  39452. * ksvg2/svg/SVGForeignObjectElement.h:
  39453. * ksvg2/svg/SVGForeignObjectElement.idl:
  39454. * ksvg2/svg/SVGGElement.cpp:
  39455. * ksvg2/svg/SVGGElement.h:
  39456. * ksvg2/svg/SVGGradientElement.cpp:
  39457. * ksvg2/svg/SVGGradientElement.h:
  39458. * ksvg2/svg/SVGImageElement.cpp:
  39459. * ksvg2/svg/SVGImageElement.h:
  39460. * ksvg2/svg/SVGLangSpace.cpp:
  39461. * ksvg2/svg/SVGLangSpace.h:
  39462. * ksvg2/svg/SVGLength.cpp:
  39463. * ksvg2/svg/SVGLength.h:
  39464. * ksvg2/svg/SVGLengthList.cpp:
  39465. * ksvg2/svg/SVGLengthList.h:
  39466. * ksvg2/svg/SVGLineElement.cpp:
  39467. * ksvg2/svg/SVGLineElement.h:
  39468. * ksvg2/svg/SVGLinearGradientElement.cpp:
  39469. * ksvg2/svg/SVGLinearGradientElement.h:
  39470. * ksvg2/svg/SVGList.h:
  39471. * ksvg2/svg/SVGListTraits.h:
  39472. * ksvg2/svg/SVGLocatable.cpp:
  39473. (WebCore::SVGLocatable::nearestViewportElement):
  39474. (WebCore::SVGLocatable::farthestViewportElement):
  39475. * ksvg2/svg/SVGLocatable.h:
  39476. * ksvg2/svg/SVGMPathElement.cpp:
  39477. * ksvg2/svg/SVGMPathElement.h:
  39478. * ksvg2/svg/SVGMarkerElement.cpp:
  39479. * ksvg2/svg/SVGMarkerElement.h:
  39480. * ksvg2/svg/SVGMaskElement.cpp:
  39481. * ksvg2/svg/SVGMaskElement.h:
  39482. * ksvg2/svg/SVGMetadataElement.cpp:
  39483. * ksvg2/svg/SVGMetadataElement.h:
  39484. * ksvg2/svg/SVGNumberList.cpp:
  39485. * ksvg2/svg/SVGNumberList.h:
  39486. * ksvg2/svg/SVGPaint.cpp:
  39487. * ksvg2/svg/SVGPaint.h:
  39488. * ksvg2/svg/SVGParserUtilities.cpp:
  39489. * ksvg2/svg/SVGParserUtilities.h:
  39490. * ksvg2/svg/SVGPathElement.cpp:
  39491. * ksvg2/svg/SVGPathElement.h:
  39492. * ksvg2/svg/SVGPathSeg.h:
  39493. * ksvg2/svg/SVGPathSegArc.cpp:
  39494. * ksvg2/svg/SVGPathSegArc.h:
  39495. * ksvg2/svg/SVGPathSegClosePath.cpp:
  39496. * ksvg2/svg/SVGPathSegClosePath.h:
  39497. * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
  39498. * ksvg2/svg/SVGPathSegCurvetoCubic.h:
  39499. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
  39500. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
  39501. * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
  39502. * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
  39503. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
  39504. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
  39505. * ksvg2/svg/SVGPathSegLineto.cpp:
  39506. * ksvg2/svg/SVGPathSegLineto.h:
  39507. * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
  39508. * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
  39509. * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
  39510. * ksvg2/svg/SVGPathSegLinetoVertical.h:
  39511. * ksvg2/svg/SVGPathSegList.cpp:
  39512. * ksvg2/svg/SVGPathSegList.h:
  39513. * ksvg2/svg/SVGPathSegMoveto.cpp:
  39514. * ksvg2/svg/SVGPathSegMoveto.h:
  39515. * ksvg2/svg/SVGPatternElement.cpp:
  39516. * ksvg2/svg/SVGPatternElement.h:
  39517. * ksvg2/svg/SVGPointList.cpp:
  39518. * ksvg2/svg/SVGPointList.h:
  39519. * ksvg2/svg/SVGPolyElement.cpp:
  39520. * ksvg2/svg/SVGPolyElement.h:
  39521. * ksvg2/svg/SVGPolygonElement.cpp:
  39522. * ksvg2/svg/SVGPolygonElement.h:
  39523. * ksvg2/svg/SVGPolylineElement.cpp:
  39524. * ksvg2/svg/SVGPolylineElement.h:
  39525. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  39526. * ksvg2/svg/SVGPreserveAspectRatio.h:
  39527. * ksvg2/svg/SVGRadialGradientElement.cpp:
  39528. * ksvg2/svg/SVGRadialGradientElement.h:
  39529. * ksvg2/svg/SVGRectElement.cpp:
  39530. * ksvg2/svg/SVGRectElement.h:
  39531. * ksvg2/svg/SVGRenderingIntent.h:
  39532. * ksvg2/svg/SVGSVGElement.cpp:
  39533. * ksvg2/svg/SVGSVGElement.h:
  39534. * ksvg2/svg/SVGScriptElement.cpp:
  39535. * ksvg2/svg/SVGScriptElement.h:
  39536. * ksvg2/svg/SVGSetElement.cpp:
  39537. * ksvg2/svg/SVGSetElement.h:
  39538. * ksvg2/svg/SVGStopElement.cpp:
  39539. * ksvg2/svg/SVGStopElement.h:
  39540. * ksvg2/svg/SVGStringList.cpp:
  39541. * ksvg2/svg/SVGStringList.h:
  39542. * ksvg2/svg/SVGStylable.cpp:
  39543. * ksvg2/svg/SVGStylable.h:
  39544. * ksvg2/svg/SVGStyleElement.cpp:
  39545. * ksvg2/svg/SVGStyleElement.h:
  39546. * ksvg2/svg/SVGStyledElement.cpp:
  39547. (WebCore::SVGStyledElement::notifyAttributeChange):
  39548. * ksvg2/svg/SVGStyledElement.h:
  39549. * ksvg2/svg/SVGStyledLocatableElement.cpp:
  39550. * ksvg2/svg/SVGStyledLocatableElement.h:
  39551. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  39552. * ksvg2/svg/SVGStyledTransformableElement.h:
  39553. * ksvg2/svg/SVGSwitchElement.cpp:
  39554. * ksvg2/svg/SVGSwitchElement.h:
  39555. * ksvg2/svg/SVGSymbolElement.cpp:
  39556. * ksvg2/svg/SVGSymbolElement.h:
  39557. * ksvg2/svg/SVGTRefElement.cpp:
  39558. * ksvg2/svg/SVGTRefElement.h:
  39559. * ksvg2/svg/SVGTSpanElement.cpp:
  39560. * ksvg2/svg/SVGTSpanElement.h:
  39561. * ksvg2/svg/SVGTests.cpp:
  39562. * ksvg2/svg/SVGTests.h:
  39563. * ksvg2/svg/SVGTextContentElement.cpp:
  39564. * ksvg2/svg/SVGTextContentElement.h:
  39565. * ksvg2/svg/SVGTextElement.cpp:
  39566. * ksvg2/svg/SVGTextElement.h:
  39567. * ksvg2/svg/SVGTextPositioningElement.cpp:
  39568. * ksvg2/svg/SVGTextPositioningElement.h:
  39569. * ksvg2/svg/SVGTitleElement.cpp:
  39570. * ksvg2/svg/SVGTitleElement.h:
  39571. * ksvg2/svg/SVGTransform.cpp:
  39572. * ksvg2/svg/SVGTransform.h:
  39573. * ksvg2/svg/SVGTransformDistance.cpp:
  39574. * ksvg2/svg/SVGTransformDistance.h:
  39575. * ksvg2/svg/SVGTransformList.cpp:
  39576. * ksvg2/svg/SVGTransformList.h:
  39577. * ksvg2/svg/SVGTransformable.cpp:
  39578. * ksvg2/svg/SVGTransformable.h:
  39579. * ksvg2/svg/SVGURIReference.cpp:
  39580. * ksvg2/svg/SVGURIReference.h:
  39581. * ksvg2/svg/SVGUnitTypes.h:
  39582. * ksvg2/svg/SVGUseElement.cpp:
  39583. * ksvg2/svg/SVGUseElement.h:
  39584. * ksvg2/svg/SVGUseElement.idl:
  39585. * ksvg2/svg/SVGViewElement.cpp:
  39586. * ksvg2/svg/SVGViewElement.h:
  39587. * ksvg2/svg/SVGZoomAndPan.cpp:
  39588. * ksvg2/svg/SVGZoomAndPan.h:
  39589. * ksvg2/svg/svgtags.in:
  39590. * loader/Cache.cpp:
  39591. (WebCore::createResource):
  39592. (WebCore::Cache::getStatistics):
  39593. * loader/Cache.h:
  39594. * loader/CachedImage.cpp:
  39595. (WebCore::CachedImage::createImage):
  39596. * loader/CachedResource.h:
  39597. (WebCore::CachedResource::):
  39598. * loader/CachedResourceClient.h:
  39599. * loader/CachedXBLDocument.cpp:
  39600. * loader/CachedXBLDocument.h:
  39601. * loader/CachedXSLStyleSheet.cpp:
  39602. * loader/CachedXSLStyleSheet.h:
  39603. * loader/DocLoader.cpp:
  39604. * loader/DocLoader.h:
  39605. * page/DOMWindow.idl:
  39606. * page/EventHandler.cpp:
  39607. (WebCore::EventHandler::handleMouseMoveEvent):
  39608. (WebCore::selectCursor):
  39609. * page/Frame.cpp:
  39610. (WebCore::Frame::Frame):
  39611. * page/PageState.cpp:
  39612. (WebCore::PageState::PageState):
  39613. (WebCore::PageState::restore):
  39614. * platform/MimeTypeRegistry.cpp:
  39615. (WebCore::initialiseSupportedNonImageMimeTypes):
  39616. * platform/graphics/FloatPoint3D.cpp:
  39617. * platform/graphics/FloatPoint3D.h:
  39618. * platform/graphics/ImageBuffer.cpp:
  39619. (WebCore::ImageBuffer::renderSubtreeToImage):
  39620. * platform/graphics/svg/SVGImage.cpp:
  39621. * platform/graphics/svg/SVGImage.h:
  39622. * platform/graphics/svg/SVGImageEmptyClients.h:
  39623. * platform/graphics/svg/SVGPaintServer.cpp:
  39624. * platform/graphics/svg/SVGPaintServer.h:
  39625. * platform/graphics/svg/SVGPaintServerGradient.cpp:
  39626. * platform/graphics/svg/SVGPaintServerGradient.h:
  39627. * platform/graphics/svg/SVGPaintServerLinearGradient.cpp:
  39628. * platform/graphics/svg/SVGPaintServerLinearGradient.h:
  39629. * platform/graphics/svg/SVGPaintServerPattern.cpp:
  39630. * platform/graphics/svg/SVGPaintServerPattern.h:
  39631. * platform/graphics/svg/SVGPaintServerRadialGradient.cpp:
  39632. * platform/graphics/svg/SVGPaintServerRadialGradient.h:
  39633. * platform/graphics/svg/SVGPaintServerSolid.cpp:
  39634. * platform/graphics/svg/SVGPaintServerSolid.h:
  39635. * platform/graphics/svg/SVGResource.cpp:
  39636. * platform/graphics/svg/SVGResource.h:
  39637. * platform/graphics/svg/SVGResourceClipper.cpp:
  39638. * platform/graphics/svg/SVGResourceClipper.h:
  39639. * platform/graphics/svg/SVGResourceFilter.cpp:
  39640. * platform/graphics/svg/SVGResourceFilter.h:
  39641. * platform/graphics/svg/SVGResourceMarker.cpp:
  39642. * platform/graphics/svg/SVGResourceMarker.h:
  39643. * platform/graphics/svg/SVGResourceMasker.cpp:
  39644. * platform/graphics/svg/SVGResourceMasker.h:
  39645. * platform/graphics/svg/cg/CgSupport.cpp:
  39646. * platform/graphics/svg/cg/CgSupport.h:
  39647. * platform/graphics/svg/cg/RenderPathCg.cpp:
  39648. * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
  39649. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  39650. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  39651. * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
  39652. * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
  39653. * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
  39654. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  39655. * platform/graphics/svg/filters/SVGDistantLightSource.h:
  39656. * platform/graphics/svg/filters/SVGFEBlend.cpp:
  39657. * platform/graphics/svg/filters/SVGFEBlend.h:
  39658. * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
  39659. * platform/graphics/svg/filters/SVGFEColorMatrix.h:
  39660. * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
  39661. * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
  39662. * platform/graphics/svg/filters/SVGFEComposite.cpp:
  39663. * platform/graphics/svg/filters/SVGFEComposite.h:
  39664. * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
  39665. * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
  39666. * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
  39667. * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
  39668. * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
  39669. * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
  39670. * platform/graphics/svg/filters/SVGFEFlood.cpp:
  39671. * platform/graphics/svg/filters/SVGFEFlood.h:
  39672. * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
  39673. * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
  39674. * platform/graphics/svg/filters/SVGFEImage.cpp:
  39675. * platform/graphics/svg/filters/SVGFEImage.h:
  39676. * platform/graphics/svg/filters/SVGFEMerge.cpp:
  39677. * platform/graphics/svg/filters/SVGFEMerge.h:
  39678. * platform/graphics/svg/filters/SVGFEMorphology.cpp:
  39679. * platform/graphics/svg/filters/SVGFEMorphology.h:
  39680. * platform/graphics/svg/filters/SVGFEOffset.cpp:
  39681. * platform/graphics/svg/filters/SVGFEOffset.h:
  39682. * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
  39683. * platform/graphics/svg/filters/SVGFESpecularLighting.h:
  39684. * platform/graphics/svg/filters/SVGFETile.h:
  39685. * platform/graphics/svg/filters/SVGFETurbulence.cpp:
  39686. * platform/graphics/svg/filters/SVGFETurbulence.h:
  39687. * platform/graphics/svg/filters/SVGFilterEffect.cpp:
  39688. * platform/graphics/svg/filters/SVGFilterEffect.h:
  39689. * platform/graphics/svg/filters/SVGLightSource.cpp:
  39690. * platform/graphics/svg/filters/SVGLightSource.h:
  39691. * platform/graphics/svg/filters/SVGPointLightSource.h:
  39692. * platform/graphics/svg/filters/SVGSpotLightSource.h:
  39693. * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
  39694. * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
  39695. * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
  39696. * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
  39697. * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
  39698. * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
  39699. * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
  39700. * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm:
  39701. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
  39702. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
  39703. * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
  39704. * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
  39705. * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm:
  39706. * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
  39707. * platform/graphics/svg/filters/cg/SVGFETileCg.mm:
  39708. * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm:
  39709. * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp:
  39710. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
  39711. * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
  39712. * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
  39713. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
  39714. * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
  39715. * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
  39716. * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
  39717. * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
  39718. * rendering/HitTestResult.cpp:
  39719. (WebCore::HitTestResult::absoluteImageURL):
  39720. (WebCore::HitTestResult::absoluteLinkURL):
  39721. (WebCore::HitTestResult::isLiveLink):
  39722. * rendering/RenderForeignObject.cpp:
  39723. * rendering/RenderForeignObject.h:
  39724. * rendering/RenderLayer.cpp:
  39725. (WebCore::RenderLayer::isTransparent):
  39726. * rendering/RenderObject.cpp:
  39727. (WebCore::RenderObject::containingBlock):
  39728. * rendering/RenderObject.h:
  39729. * rendering/RenderPath.cpp:
  39730. * rendering/RenderPath.h:
  39731. * rendering/RenderSVGBlock.cpp:
  39732. * rendering/RenderSVGBlock.h:
  39733. * rendering/RenderSVGContainer.cpp:
  39734. * rendering/RenderSVGContainer.h:
  39735. * rendering/RenderSVGGradientStop.cpp:
  39736. * rendering/RenderSVGGradientStop.h:
  39737. * rendering/RenderSVGHiddenContainer.cpp:
  39738. * rendering/RenderSVGHiddenContainer.h:
  39739. * rendering/RenderSVGImage.cpp:
  39740. * rendering/RenderSVGImage.h:
  39741. * rendering/RenderSVGInline.cpp:
  39742. * rendering/RenderSVGInline.h:
  39743. * rendering/RenderSVGInlineText.cpp:
  39744. * rendering/RenderSVGInlineText.h:
  39745. * rendering/RenderSVGTSpan.cpp:
  39746. * rendering/RenderSVGTSpan.h:
  39747. * rendering/RenderSVGText.cpp:
  39748. * rendering/RenderSVGText.h:
  39749. * rendering/RenderStyle.cpp:
  39750. (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
  39751. (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
  39752. (WebCore::StyleRareNonInheritedData::operator==):
  39753. (WebCore::RenderStyle::RenderStyle):
  39754. (WebCore::RenderStyle::inheritFrom):
  39755. (WebCore::RenderStyle::operator==):
  39756. (WebCore::RenderStyle::inheritedNotEqual):
  39757. (WebCore::RenderStyle::diff):
  39758. * rendering/RenderStyle.h:
  39759. * rendering/RenderText.cpp:
  39760. (WebCore::RenderText::setStyle):
  39761. (WebCore::RenderText::setTextInternal):
  39762. * rendering/RenderTreeAsText.cpp:
  39763. (WebCore::write):
  39764. (WebCore::externalRepresentation):
  39765. * rendering/SVGInlineFlowBox.cpp:
  39766. * rendering/SVGInlineFlowBox.h:
  39767. * rendering/SVGRenderTreeAsText.cpp:
  39768. * rendering/SVGRenderTreeAsText.h:
  39769. * rendering/SVGRootInlineBox.cpp:
  39770. * rendering/SVGRootInlineBox.h:
  39771. * rendering/bidi.cpp:
  39772. (WebCore::shouldPreserveNewline):
  39773. (WebCore::RenderBlock::findNextLineBreak):
  39774. * webcore-base.bkl:
  39775. * xml/NativeXPathNSResolver.cpp:
  39776. * xml/NativeXPathNSResolver.h:
  39777. * xml/XPathEvaluator.cpp:
  39778. * xml/XPathEvaluator.h:
  39779. * xml/XPathExpression.cpp:
  39780. * xml/XPathExpression.h:
  39781. * xml/XPathExpressionNode.cpp:
  39782. * xml/XPathExpressionNode.h:
  39783. * xml/XPathFunctions.cpp:
  39784. * xml/XPathFunctions.h:
  39785. * xml/XPathGrammar.y:
  39786. * xml/XPathNSResolver.cpp:
  39787. * xml/XPathNSResolver.h:
  39788. * xml/XPathNamespace.cpp:
  39789. * xml/XPathNamespace.h:
  39790. * xml/XPathParser.cpp:
  39791. * xml/XPathParser.h:
  39792. * xml/XPathPath.cpp:
  39793. * xml/XPathPath.h:
  39794. * xml/XPathPredicate.cpp:
  39795. * xml/XPathPredicate.h:
  39796. * xml/XPathResult.cpp:
  39797. * xml/XPathResult.h:
  39798. * xml/XPathStep.cpp:
  39799. * xml/XPathStep.h:
  39800. * xml/XPathUtil.cpp:
  39801. * xml/XPathUtil.h:
  39802. * xml/XPathValue.cpp:
  39803. * xml/XPathValue.h:
  39804. * xml/XPathVariableReference.cpp:
  39805. * xml/XPathVariableReference.h:
  39806. * xml/XSLImportRule.cpp:
  39807. * xml/XSLImportRule.h:
  39808. * xml/XSLStyleSheet.cpp:
  39809. * xml/XSLStyleSheet.h:
  39810. * xml/XSLTProcessor.cpp:
  39811. * xml/XSLTProcessor.h:
  39812. 2007-02-25 Mitz Pettel <mitz@webkit.org>
  39813. Reviewed by David Hyatt.
  39814. - fix http://bugs.webkit.org/show_bug.cgi?id=12886
  39815. Crash with Scriptalicious javascript library
  39816. Test: fast/dynamic/float-withdrawal.html
  39817. * rendering/RenderBlock.cpp:
  39818. (WebCore::RenderBlock::layoutBlockChildren): Detect when a child block had
  39819. intruding floats in a previous layout, and in that case force it to relayout.
  39820. 2007-02-25 David Hyatt <hyatt@apple.com>
  39821. Revert my change to the default fill color. Just set the color to transparent explicitly when
  39822. drawing textarea resizer frames.
  39823. * platform/graphics/GraphicsContext.cpp:
  39824. (WebCore::GraphicsContextState::GraphicsContextState):
  39825. * rendering/RenderLayer.cpp:
  39826. (WebCore::RenderLayer::paintOverflowControls):
  39827. 2007-02-25 Sam Weinig <sam@webkit.org>
  39828. Update forgotten files.
  39829. * rendering/RenderLayer.cpp:
  39830. (WebCore::RenderLayer::updateLayerPosition):
  39831. 2007-02-25 David Hyatt <hyatt@apple.com>
  39832. Fix for regression caused by changing the containing block of positioned elements with no positioned ancestor
  39833. to be the initial containing block (represented in our tree by the RenderView). Rework RenderView's layout
  39834. to have very few special cases. Now it will just relayout its children when the width/height of the
  39835. view actually changes. Positioned elements no longer get a special additional layout, since width/height
  39836. adjustments are caught by the base class already anyway.
  39837. Reviewed by mjs, darin
  39838. * rendering/RenderBlock.cpp:
  39839. (WebCore::RenderBlock::layoutBlock):
  39840. * rendering/RenderFlexibleBox.cpp:
  39841. (WebCore::RenderFlexibleBox::layoutBlock):
  39842. (WebCore::RenderFlexibleBox::layoutVerticalBox):
  39843. * rendering/RenderView.cpp:
  39844. (WebCore::RenderView::RenderView):
  39845. (WebCore::RenderView::layout):
  39846. * rendering/RenderView.h:
  39847. 2007-02-25 Maciej Stachowiak <mjs@apple.com>
  39848. Not reviewed, build fix.
  39849. - fix build breakage
  39850. * platform/gdk/ScrollViewGdk.cpp:
  39851. (WebCore::ScrollView::fullyClippedContentRect):
  39852. * platform/qt/ScrollViewQt.cpp:
  39853. (WebCore::ScrollView::fullyClippedContentRect):
  39854. 2007-02-24 Maciej Stachowiak <mjs@apple.com>
  39855. Reviewed by Adam.
  39856. - fixed layout test failure in fast/overflow/scrollRevealButton
  39857. I added a new ScrollView method, fullyClippedContentRect, that vies the content rect
  39858. as clipped by all ancestor scroll views, not just this one. Currently it only works
  39859. correctly on mac however. visibleContentRect, only accounting for the clipping from
  39860. this particular scroll view, is sufficient for most purposes.
  39861. * page/Frame.cpp:
  39862. (WebCore::Frame::visibleSelectionRect):
  39863. (WebCore::Frame::setIsActive):
  39864. (WebCore::Frame::markAllMatchesForText):
  39865. * platform/ScrollView.h:
  39866. * platform/gdk/ScrollViewGdk.cpp:
  39867. (WebCore::ScrolView::fullyClippedContentRect):
  39868. * platform/mac/ScrollViewMac.mm:
  39869. (WebCore::ScrollView::fullyClippedContentRect):
  39870. * platform/qt/ScrollViewQt.cpp:
  39871. (WebCore::ScrolView::fullyClippedContentRect):
  39872. * rendering/RenderLayer.cpp:
  39873. (WebCore::RenderLayer::scrollRectToVisible):
  39874. 2007-02-24 Adam Roben <aroben@apple.com>
  39875. Reviewed by Steve.
  39876. "Look Up in Dictionary" context menu item should be Mac-only for now,
  39877. since it's only implemented on that platform (<rdar://problem/5021468>)
  39878. * platform/ContextMenu.cpp:
  39879. (WebCore::ContextMenu::populate): Wrap all instances of the dictionary
  39880. menu item in #if PLATFORM(MAC).
  39881. 2007-02-24 Geoffrey Garen <ggaren@apple.com>
  39882. Reviewed by Darin Adler.
  39883. Fixed <rdar://problem/4987649> leaks in BidiRun::operator new seen while
  39884. running WebKit unit tests
  39885. In bidi.cpp, some functions allocate BidiRuns and put them in a global data
  39886. structure, while others uses the BidiRuns in the global data structure.
  39887. The caller is responsible for knowing which functions may allocate runs
  39888. and which may use them, and calling deleteBidiRuns() at the appropriate time.
  39889. The fix is to add some calls to deleteBidiRuns() where they were missing.
  39890. I also added a BidiRun counter because these two leaks were introduced by
  39891. our two bidi.cpp experts, so the odds that leaks will creep in again
  39892. in the future seem pretty high.
  39893. * rendering/bidi.cpp:
  39894. (WebCore::RenderBlock::bidiReorderCharacters): Added missing call to
  39895. deleteBidiRuns().
  39896. (WebCore::BidiRunCounter::~BidiRunCounter):
  39897. (WebCore::BidiRun::operator delete):
  39898. (WebCore::RenderBlock::layoutInlineChildren): Added missing call to
  39899. deleteBidiRuns(). Moved call to deleteBidiRuns() to same scope as call to
  39900. bidiReorderLine(), to emphasize that they go together like new/delete.
  39901. In theory, the old code was just as good, but I didn't want to rely on
  39902. theory.
  39903. 2007-02-24 David Harrison <harrison@apple.com>
  39904. Reviewed by Kevin.
  39905. <rdar://problem/4961431> Image with empty string alt tag should be ignored
  39906. * bridge/mac/WebCoreAXObject.mm:
  39907. (-[WebCoreAXObject accessibilityIsIgnored]):
  39908. Ignore img element that has an alt attribute, but that string is empty.
  39909. 2007-02-24 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  39910. Reviewed by Adam Roben.
  39911. Gdk improvements.
  39912. * platform/gdk/FrameGdk.cpp: only scroll on keydown, not both keydown and keyup.
  39913. (WebCore::FrameGdk::keyPress):
  39914. (WebCore::FrameGdk::handleGdkEvent):
  39915. (WebCore::Frame::print):
  39916. (WebCore::Frame::issueTransposeCommand):
  39917. (WebCore::Frame::respondToChangedSelection):
  39918. (WebCore::Frame::cleanupPlatformScriptObjects):
  39919. (WebCore::Frame::dragImageForSelection):
  39920. * platform/network/gdk/ResourceHandleManager.cpp: don't free memory that
  39921. doesn't belong to us.
  39922. (WebCore::ResourceHandleManager::downloadTimerCallback):
  39923. 2007-02-23 Kevin Decker <kdecker@apple.com>
  39924. Reviewed by Anders.
  39925. Fixed: <rdar://problem/4971226> REGRESSION: Replying to closed HTML mail message does not quote original body (12503)
  39926. There were two problems here:
  39927. * page/mac/WebCoreFrameBridge.mm:
  39928. (+[WebCoreFrameBridge stringWithData:textEncodingName:]): The old code said "if there is no text encoding name than
  39929. assume WindowsLatin1 (iso-8859-1) and try to decode that". That's not sufficient because it doesn't handle the fallback
  39930. case for unknown encodings. This method will now attempt to decode using WindowsLatin1 for unknown encoding types.
  39931. * platform/mac/mac-encodings.txt: Added the missing "macroman" encoding type.
  39932. 2007-02-23 Mitz Pettel <mitz@webkit.org>
  39933. Reviewed by Maciej.
  39934. - fix http://bugs.webkit.org/show_bug.cgi?id=12856
  39935. REGRESSION (r13685): Canceling the suggestion popup does not revert the change
  39936. * editing/ReplaceSelectionCommand.cpp:
  39937. (WebCore::ReplaceSelectionCommand::doApply): If the fragment to be inserted
  39938. is empty, first delete the selection, and only then bail out.
  39939. 2007-02-23 Anders Carlsson <acarlsson@apple.com>
  39940. Reviewed by Adam.
  39941. <rdar://problem/5001923>
  39942. REGRESSION: Crash when navigating forward from an error page in WebFrameLoaderClient::dispatchDidReceiveContentLength
  39943. Fix an error that was introduced in revision r18541. We should check if the provisional document loader
  39944. has an unreachable URL, not the actual document loader.
  39945. * loader/FrameLoader.cpp:
  39946. (WebCore::FrameLoader::updateHistoryForCommit):
  39947. 2007-02-23 Mitz Pettel <mitz@webkit.org>
  39948. Reviewed by Darin.
  39949. - fix http://bugs.webkit.org/show_bug.cgi?id=12823
  39950. REGRESSION(r16968-16977): unable to prevent selection by cancelling "selectstart" event
  39951. Test: fast/events/selectstart-during-autoscroll.html
  39952. * rendering/RenderLayer.cpp:
  39953. (WebCore::RenderLayer::autoscroll): Invoke the renderer's shouldSelect() --
  39954. which dispatches the selection DOM event and gives it a chance to cancel
  39955. the selection -- before updating the selection during autoscroll.
  39956. 2007-02-23 Oliver Hunt <oliver@apple.com>
  39957. Reviewed by Adam.
  39958. Fix for http://bugs.webkit.org/show_bug.cgi?id=12870
  39959. It turns out short circuiting DragData::containsURL() was bad
  39960. * manual-tests/directory-drop-on-view.html: Added.
  39961. * platform/mac/DragDataMac.mm:
  39962. (WebCore::DragData::containsURL):
  39963. 2007-02-23 Maciej Stachowiak <mjs@apple.com>
  39964. Reviewed by Mitz.
  39965. - 12.5% speedup on BenchJS test 6
  39966. Partial fix for http://bugs.webkit.org/show_bug.cgi?id=12866
  39967. It turns out that calling documentVisibleRect on an NSScrollView is pretty expensive,
  39968. and calling visibleRect even more so. Take measures to call them less often.
  39969. * platform/mac/ScrollViewMac.mm:
  39970. (WebCore::ScrollView::visibleContentRect): Use documentVisibleRect when possible.
  39971. (WebCore::ScrollView::updateContents): Use visibleContentRect to be able to use
  39972. documentVisibleRect when possible.
  39973. * rendering/RenderView.cpp:
  39974. (WebCore::RenderView::repaintViewRectangle): Don't get or intersect with viewRect
  39975. if we don't have a parent frame, since the ScrollView will do that anyway. Also,
  39976. don't get contentX and contentY separately since they are in the viewRect already.
  39977. (WebCore::RenderView::viewRect): Use visibleContentRect instead of getting each
  39978. coordinate individually, to avoid calling documentVisibleRect repeatedly.
  39979. 2007-02-23 Maciej Stachowiak <mjs@apple.com>
  39980. Reviewed by Mitz.
  39981. - 2% speedup on BenchJS test 6
  39982. Partial fix for http://bugs.webkit.org/show_bug.cgi?id=12866
  39983. * css/CSSPrimitiveValue.cpp:
  39984. (WebCore::CSSPrimitiveValue::cssText): Use format() instead of
  39985. number() followed by append of a constant string.
  39986. 2007-02-22 George Staikos <staikos@kde.org>
  39987. Fix the Qt build.
  39988. * platform/qt/ClipboardQt.cpp:
  39989. (WebCore::ClipboardQt::ClipboardQt):
  39990. 2007-02-22 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  39991. Reviewed by Adam Roben, who never sleeps.
  39992. To avoid code duplication, move notImplementedGdk() macro to a separate
  39993. header file. Remove existing notImplementedGdk() macros and replace
  39994. remaining notImplemented() to notImplementedGdk() in gdk code.
  39995. * loader/gdk/DocumentLoaderGdk.cpp:
  39996. (WebCore::DocumentLoader::getResponseModifiedHeader):
  39997. * loader/gdk/FrameLoaderClientGdk.cpp:
  39998. (WebCore::FrameLoaderClientGdk::hasWebView):
  39999. (WebCore::FrameLoaderClientGdk::hasFrameView):
  40000. * page/gdk/ContextMenuClientGdk.cpp:
  40001. (WebCore::ContextMenuClientGdk::contextMenuDestroyed):
  40002. (WebCore::ContextMenuClientGdk::getCustomMenuFromDefaultItems):
  40003. (WebCore::ContextMenuClientGdk::contextMenuItemSelected):
  40004. (WebCore::ContextMenuClientGdk::downloadURL):
  40005. (WebCore::ContextMenuClientGdk::copyImageToClipboard):
  40006. (WebCore::ContextMenuClientGdk::searchWithGoogle):
  40007. (WebCore::ContextMenuClientGdk::lookUpInDictionary):
  40008. (WebCore::ContextMenuClientGdk::speak):
  40009. (WebCore::ContextMenuClientGdk::stopSpeaking):
  40010. * page/gdk/EventHandlerGdk.cpp:
  40011. * platform/gdk/CursorGdk.cpp:
  40012. (WebCore::Cursor::Cursor):
  40013. * platform/gdk/EditorClientGdk.cpp:
  40014. * platform/gdk/NotImplementedGdk.h: Added.
  40015. * platform/gdk/PopupMenuGdk.cpp:
  40016. (WebCore::PopupMenu::PopupMenu):
  40017. (WebCore::PopupMenu::~PopupMenu):
  40018. (WebCore::PopupMenu::show):
  40019. (WebCore::PopupMenu::hide):
  40020. (WebCore::PopupMenu::updateFromElement):
  40021. * platform/gdk/RenderThemeGdk.cpp:
  40022. * platform/gdk/ScreenGdk.cpp:
  40023. (WebCore::screenDepth):
  40024. (WebCore::screenDepthPerComponent):
  40025. (WebCore::screenIsMonochrome):
  40026. (WebCore::screenRect):
  40027. (WebCore::screenAvailableRect):
  40028. * platform/gdk/TemporaryLinkStubs.cpp:
  40029. * platform/graphics/gdk/ImageGdk.cpp:
  40030. (WebCore::Image::drawPattern):
  40031. * platform/network/gdk/ResourceHandleCurl.cpp:
  40032. (WebCore::ResourceHandle::setDefersLoading):
  40033. * platform/network/gdk/ResourceHandleManager.cpp:
  40034. (WebCore::ResourceHandleManager::setupPUT):
  40035. (WebCore::ResourceHandleManager::setupPOST):
  40036. 2007-02-22 Feng Qian <feng@chromium.org>
  40037. Reviewed by Maciej.
  40038. - Patch for http://bugs.webkit.org/show_bug.cgi?id=12850
  40039. Leaks >10k objects
  40040. and
  40041. - http://bugs.webkit.org/show_bug.cgi?id=12853
  40042. add a EventListener leak counter
  40043. Problem: RemoveEventListener leaks memory if the listener is not
  40044. registered.
  40045. Fix: Added Window::findJSEventListener function w/o creating a
  40046. JSEventListener; Renamed getJSEventListener to findOrCreateJSEventListener;
  40047. As an enhancement, added a leak counter for EventListeners.
  40048. Added a test case, LayoutTests/fast/events/remove-event-listener.html.
  40049. * WebCore/bindings/js/kjs_dom.cpp:
  40050. * WebCore/bindings/js/kjs_window.h:
  40051. * WebCore/bindings/js/kjs_window.cpp:
  40052. * WebCore/bindings/js/kjs_event.cpp: Add a leak counter.
  40053. * WebCore/bindings/js/JSXMLHttpRequest.cpp:
  40054. * LayoutTests/fast/events/remove-event-listener.html:
  40055. 2007-02-22 Anders Carlsson <acarlsson@apple.com>
  40056. Reviewed by Geoff.
  40057. <rdar://problem/4998203>
  40058. REGRESSION: Back-forward list gets messed up when navigating to error pages with back-forward cache turned off
  40059. * loader/FrameLoader.cpp:
  40060. (WebCore::FrameLoader::load):
  40061. Remove call to setPolicyDocumentLoader(), the policy document loader is set immediately after, and setting it before
  40062. calling shouldReloadToHandleUnreachableURL causes us to get the wrong URL.
  40063. (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
  40064. Check if the unreachable URL is equal to the document loader's request.
  40065. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  40066. Check the provisional document loader's unreachable URL.
  40067. 2007-02-22 Justin Garcia <justin.garcia@apple.com>
  40068. Reviewed by darin
  40069. <rdar://problem/5007143>
  40070. REGRESSION: WebKit doesn't remember horizontal position of caret when moving forward by line
  40071. * editing/SelectionController.cpp:
  40072. (WebCore::SelectionController::SelectionController): Initialize
  40073. m_xPosForVerticalArrowNavigation.
  40074. (WebCore::SelectionController::setSelection): Call the new setter.
  40075. (WebCore::SelectionController::modifyMovingRightForward): For line
  40076. and paragraph granularities, use the saved xPosForVerticalArrowNavigation
  40077. even if the old selection was a range. Use the x position of the
  40078. *start*, not the end of the selection if there is no saved
  40079. xPosForVerticalArrowNavigation. This matches TextEdit's behavior.
  40080. (WebCore::SelectionController::modifyMovingLeftBackward): For line
  40081. and paragraph granularities, use the saved xPosForVerticalArrowNavigation
  40082. even if the old selection was a range.
  40083. (WebCore::SelectionController::modify): Preserve the xPosForVerticalArrowNavigation
  40084. for line and paragraph granularities.
  40085. (WebCore::SelectionController::xPosForVerticalArrowNavigation): Removed
  40086. the recalc bool because it is now always false.
  40087. (WebCore::SelectionController::setXPosForVerticalArrowNavigation): Added.
  40088. * editing/SelectionController.h: Moved m_xPosForVerticalArrowNavigation
  40089. from Frame.
  40090. * page/Frame.cpp: Moved m_xPosForVerticalArrowNavigation to SelectionController.
  40091. * page/Frame.h: Ditto.
  40092. * page/FramePrivate.h: Ditto.
  40093. 2007-02-22 Beth Dakin <bdakin@apple.com>
  40094. Reviewed by Adam. Manual test added.
  40095. Fix for http://bugs.webkit.org/show_bug.cgi?id=12399 REGRESSION:
  40096. Unable to prevent default context menu from appearing. <rdar://
  40097. problem/5017416>
  40098. This problem appeared because of two facets of the current context
  40099. menu design. First, all context menu events are now considered to
  40100. be "swallowed" since we take care of building up the regular
  40101. context menu through the defaultEventHandler(). Second, the context
  40102. menu controller holds onto it's context menu until a new one is
  40103. created. There would be logistical problems changing this since
  40104. AppKit relies on the menu being around for as long as it is
  40105. visible on the screen and we don't get any notification once the
  40106. menu is popped-down.
  40107. This patch fixes the problem by giving WebKit a way to clear the
  40108. controller's context menu. WebKit now clears the menu before it
  40109. propagates a new context menu event through the DOM.
  40110. * WebCore.exp:
  40111. * manual-tests/DOMContextMenuEvent.html: Added.
  40112. * page/ContextMenuController.cpp:
  40113. (WebCore::ContextMenuController::clearContextMenu):
  40114. * page/ContextMenuController.h:
  40115. 2007-02-22 John Sullivan <sullivan@apple.com>
  40116. Reviewed by Kevin and Adele
  40117. - fixed <rdar://problem/4129417> Need final art for textarea's resize corner
  40118. This probably broke some layout pixel tests since the image changed. I'm going to
  40119. track those down in a moment (non-trivial since there are a bunch failing for other
  40120. reasons).
  40121. * Resources/textAreaResizeCorner.tiff:
  40122. new art
  40123. * Resources/deleteButton.tiff:
  40124. * Resources/deleteButtonPressed.tiff:
  40125. these got smaller when I ran compress-tiffs on this directory
  40126. 2007-02-22 Oliver Hunt <oliver@apple.com>
  40127. Reviewed by Ada, Lou and Steve.
  40128. Moving basic components of ClipboardMac to Clipboard,
  40129. last of the basic common code merge will come later (namely setting the
  40130. drag element/image).
  40131. Tidying up in DragController including a few bad PassRefPtr uses and
  40132. removing unnecessary accessors. Also initialise fields properly to
  40133. fix <rdar:/problems/5014889>
  40134. * dom/Clipboard.cpp:
  40135. (WebCore::Clipboard::Clipboard):
  40136. New constructor
  40137. * dom/Clipboard.h:
  40138. (WebCore::Clipboard::isForDragging):
  40139. (WebCore::Clipboard::dragLocation):
  40140. (WebCore::Clipboard::dragImage):
  40141. (WebCore::Clipboard::dragImageElement):
  40142. Exposing common data
  40143. * page/DragController.cpp:
  40144. (WebCore::DragController::DragController):
  40145. Initialise m_isHandlingDrag (oops)
  40146. (WebCore::documentFragmentFromDragData):
  40147. (WebCore::DragController::tryDocumentDrag):
  40148. Fixing PassRefPtr misuse
  40149. (WebCore::DragController::canProcessDrag):
  40150. (WebCore::DragController::startDrag):
  40151. (WebCore::DragController::doSystemDrag):
  40152. Make sure we're using the correct coordinate space
  40153. * page/EventHandler.cpp:
  40154. (WebCore::EventHandler::handleDrag):
  40155. Reset drag source correctly
  40156. * platform/mac/ClipboardMac.h:
  40157. * platform/mac/ClipboardMac.mm:
  40158. (WebCore::ClipboardMac::ClipboardMac):
  40159. update constructor to use new Clipboard constructor
  40160. 2007-02-22 Adele Peterson <adele@apple.com>
  40161. Reviewed by Darin.
  40162. Fix for <rdar://problem/5014970> 9A374: Tabs don't work in the message body
  40163. Test: fast/events/keypress-insert-tab.html
  40164. * page/EventHandler.cpp: (WebCore::EventHandler::defaultTextInputEventHandler):
  40165. If the defaultTabEventHandler doesn't handle the event, then go on to the insertText case.
  40166. 2007-02-22 Timothy Hatcher <timothy@apple.com>
  40167. Reviewed by Darin.
  40168. <rdar://problem/4948887> REGRESSION: Correct differences in public DOM API that inadvertently changed in Leopard
  40169. * bindings/objc/PublicDOMInterfaces.h: Changes return types for two size properties, adds deprecated DOMEventTarget methods.
  40170. * bindings/scripts/CodeGeneratorObjC.pm: Fixed public API checking for protocols, adds support for ConvertToString.
  40171. * dom/EventTarget.idl: Marks addEventListener and removeEventListener with the OldStyleObjC attribute.
  40172. * html/HTMLBaseFontElement.idl: Changes the size property to a DOMString for ObjC only.
  40173. * html/HTMLInputElement.idl: Changes the size property to a DOMString for ObjC only.
  40174. * html/HTMLOptionsCollection.idl: Changes the length property to be unsigned.
  40175. 2007-02-22 Adele Peterson <adele@apple.com>
  40176. Reviewed by John.
  40177. Fix <rdar://problem/5016969> REGRESSION: "Check Spelling As You Type" context menu item is never checked
  40178. * platform/ContextMenu.cpp: (WebCore::ContextMenu::checkOrEnableIfNeeded): Set shouldCheck for ContextMenuItemTagCheckSpellingWhileTyping.
  40179. 2007-02-22 Antti Koivisto <antti@apple.com>
  40180. Reviewed by Darin.
  40181. - fix http://bugs.webkit.org/show_bug.cgi?id=11447
  40182. REGRESSION(NativeListBox): List not scrolled to preselected option
  40183. <rdar://problem/4957463>
  40184. Initiate scroll when selected <option> is added to <select>.
  40185. * html/HTMLOptionElement.cpp:
  40186. (WebCore::HTMLOptionElement::insertedIntoDocument):
  40187. * html/HTMLOptionElement.h:
  40188. * html/HTMLSelectElement.cpp:
  40189. (WebCore::HTMLSelectElement::notifyOptionSelected):
  40190. (WebCore::HTMLSelectElement::updateListBoxSelection):
  40191. (WebCore::HTMLSelectElement::scrollToSelection):
  40192. * html/HTMLSelectElement.h:
  40193. 2007-02-22 Zack Rusin <zrusin@trolltech.com>
  40194. Reviewed by Lars
  40195. Fix sites with fixed positioned backgrounds.
  40196. * platform/qt/ScrollViewQt.cpp:
  40197. (WebCore::ScrollView::setStaticBackground):
  40198. 2007-02-22 Zack Rusin <zrusin@trolltech.com>
  40199. Reviewed by Lars
  40200. Properly implement canvas/scrollview's. Get
  40201. rid of ScrollViewCanvas and replace it with
  40202. a tailor abstractscrollview (now in qwebframe).
  40203. Scrolling of pages is finally completely smooth.
  40204. * WebCore.pro:
  40205. * platform/ScrollView.h:
  40206. * platform/qt/ScrollViewCanvasQt.cpp: Removed.
  40207. * platform/qt/ScrollViewCanvasQt.h: Removed.
  40208. * platform/qt/ScrollViewQt.cpp:
  40209. (WebCore::ScrollView::ScrollView):
  40210. (WebCore::ScrollView::setScrollArea):
  40211. (WebCore::ScrollView::updateContents):
  40212. (WebCore::ScrollView::resizeContents):
  40213. (WebCore::ScrollView::contentsWidth):
  40214. (WebCore::ScrollView::contentsHeight):
  40215. (WebCore::ScrollView::contentsToWindow):
  40216. (WebCore::ScrollView::windowToContents):
  40217. (WebCore::ScrollView::addChild):
  40218. * platform/qt/WidgetQt.cpp:
  40219. (WebCore::WidgetPrivate::canvas):
  40220. (WebCore::WidgetPrivate::parentScroll):
  40221. (WebCore::WidgetPrivate::setGeometry):
  40222. (WebCore::WidgetPrivate::geometry):
  40223. (WebCore::Widget::frameGeometry):
  40224. (WebCore::Widget::setQWidget):
  40225. (WebCore::Widget::setFrameGeometry):
  40226. 2007-02-21 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  40227. Reviewed by Adam Roben.
  40228. Improve notImplemented() macro for gdk. Rename to notImplementedGdk() to
  40229. give it a unique name (so that it doesn't clash with notImplemented()
  40230. for other platforms).
  40231. Make it print a given warning only once, so that frequently called
  40232. functions don't clutter the output.
  40233. Don't print the warning if DISABLE_NI_WARNING env variable is set.
  40234. * loader/gdk/FrameLoaderClientGdk.cpp:
  40235. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveAuthenticationChallenge):
  40236. (WebCore::FrameLoaderClientGdk::dispatchDidCancelAuthenticationChallenge):
  40237. (WebCore::FrameLoaderClientGdk::dispatchWillSendRequest):
  40238. (WebCore::FrameLoaderClientGdk::assignIdentifierToInitialRequest):
  40239. (WebCore::FrameLoaderClientGdk::createPlugin):
  40240. (WebCore::FrameLoaderClientGdk::createFrame):
  40241. (WebCore::FrameLoaderClientGdk::redirectDataToPlugin):
  40242. (WebCore::FrameLoaderClientGdk::createJavaAppletWidget):
  40243. (WebCore::FrameLoaderClientGdk::objectContentType):
  40244. (WebCore::FrameLoaderClientGdk::overrideMediaType):
  40245. (WebCore::FrameLoaderClientGdk::windowObjectCleared):
  40246. (WebCore::FrameLoaderClientGdk::hasWebView):
  40247. (WebCore::FrameLoaderClientGdk::hasFrameView):
  40248. (WebCore::FrameLoaderClientGdk::frameLoadCompleted):
  40249. (WebCore::FrameLoaderClientGdk::saveViewStateToItem):
  40250. (WebCore::FrameLoaderClientGdk::restoreViewState):
  40251. (WebCore::FrameLoaderClientGdk::privateBrowsingEnabled):
  40252. (WebCore::FrameLoaderClientGdk::makeDocumentView):
  40253. (WebCore::FrameLoaderClientGdk::makeRepresentation):
  40254. (WebCore::FrameLoaderClientGdk::forceLayout):
  40255. (WebCore::FrameLoaderClientGdk::forceLayoutForNonHTML):
  40256. (WebCore::FrameLoaderClientGdk::setCopiesOnScroll):
  40257. (WebCore::FrameLoaderClientGdk::detachedFromParent1):
  40258. (WebCore::FrameLoaderClientGdk::detachedFromParent2):
  40259. (WebCore::FrameLoaderClientGdk::detachedFromParent3):
  40260. (WebCore::FrameLoaderClientGdk::detachedFromParent4):
  40261. (WebCore::FrameLoaderClientGdk::loadedFromPageCache):
  40262. (WebCore::FrameLoaderClientGdk::dispatchDidHandleOnloadEvents):
  40263. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveServerRedirectForProvisionalLoad):
  40264. (WebCore::FrameLoaderClientGdk::dispatchDidCancelClientRedirect):
  40265. (WebCore::FrameLoaderClientGdk::dispatchWillPerformClientRedirect):
  40266. (WebCore::FrameLoaderClientGdk::dispatchDidChangeLocationWithinPage):
  40267. (WebCore::FrameLoaderClientGdk::dispatchWillClose):
  40268. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveIcon):
  40269. (WebCore::FrameLoaderClientGdk::dispatchDidStartProvisionalLoad):
  40270. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveTitle):
  40271. (WebCore::FrameLoaderClientGdk::dispatchDidCommitLoad):
  40272. (WebCore::FrameLoaderClientGdk::dispatchDidFinishDocumentLoad):
  40273. (WebCore::FrameLoaderClientGdk::dispatchDidFirstLayout):
  40274. (WebCore::FrameLoaderClientGdk::dispatchShow):
  40275. (WebCore::FrameLoaderClientGdk::cancelPolicyCheck):
  40276. (WebCore::FrameLoaderClientGdk::dispatchDidLoadMainResource):
  40277. (WebCore::FrameLoaderClientGdk::revertToProvisionalState):
  40278. (WebCore::FrameLoaderClientGdk::clearUnarchivingState):
  40279. (WebCore::FrameLoaderClientGdk::willChangeTitle):
  40280. (WebCore::FrameLoaderClientGdk::finishedLoading):
  40281. (WebCore::FrameLoaderClientGdk::finalSetupForReplace):
  40282. (WebCore::FrameLoaderClientGdk::setDefersLoading):
  40283. (WebCore::FrameLoaderClientGdk::isArchiveLoadPending):
  40284. (WebCore::FrameLoaderClientGdk::cancelPendingArchiveLoad):
  40285. (WebCore::FrameLoaderClientGdk::clearArchivedResources):
  40286. (WebCore::FrameLoaderClientGdk::canHandleRequest):
  40287. (WebCore::FrameLoaderClientGdk::canShowMIMEType):
  40288. (WebCore::FrameLoaderClientGdk::representationExistsForURLScheme):
  40289. (WebCore::FrameLoaderClientGdk::generatedMIMETypeForURLScheme):
  40290. (WebCore::FrameLoaderClientGdk::provisionalLoadStarted):
  40291. (WebCore::FrameLoaderClientGdk::didFinishLoad):
  40292. (WebCore::FrameLoaderClientGdk::prepareForDataSourceReplacement):
  40293. (WebCore::FrameLoaderClientGdk::setTitle):
  40294. (WebCore::FrameLoaderClientGdk::setDocumentViewFromPageCache):
  40295. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveContentLength):
  40296. (WebCore::FrameLoaderClientGdk::dispatchDidFinishLoading):
  40297. (WebCore::FrameLoaderClientGdk::dispatchDidFailLoading):
  40298. (WebCore::FrameLoaderClientGdk::dispatchDidLoadResourceFromMemoryCache):
  40299. (WebCore::FrameLoaderClientGdk::dispatchDidFailProvisionalLoad):
  40300. (WebCore::FrameLoaderClientGdk::dispatchDidFailLoad):
  40301. (WebCore::FrameLoaderClientGdk::download):
  40302. (WebCore::FrameLoaderClientGdk::cancelledError):
  40303. (WebCore::FrameLoaderClientGdk::cannotShowURLError):
  40304. (WebCore::FrameLoaderClientGdk::interruptForPolicyChangeError):
  40305. (WebCore::FrameLoaderClientGdk::cannotShowMIMETypeError):
  40306. (WebCore::FrameLoaderClientGdk::fileDoesNotExistError):
  40307. (WebCore::FrameLoaderClientGdk::shouldFallBack):
  40308. (WebCore::FrameLoaderClientGdk::willUseArchive):
  40309. (WebCore::FrameLoaderClientGdk::saveDocumentViewToPageCache):
  40310. (WebCore::FrameLoaderClientGdk::canCachePage):
  40311. (WebCore::FrameLoaderClientGdk::dispatchCreatePage):
  40312. (WebCore::FrameLoaderClientGdk::dispatchUnableToImplementPolicy):
  40313. (WebCore::FrameLoaderClientGdk::setMainDocumentError):
  40314. (WebCore::FrameLoaderClientGdk::startDownload):
  40315. (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForStandardLoad):
  40316. (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForReload):
  40317. (WebCore::FrameLoaderClientGdk::shouldGoToHistoryItem):
  40318. * page/gdk/EventHandlerGdk.cpp:
  40319. (WebCore::EventHandler::passMouseDownEventToWidget):
  40320. (WebCore::EventHandler::eventActivatedView):
  40321. (WebCore::EventHandler::passSubframeEventToSubframe):
  40322. (WebCore::EventHandler::passWheelEventToWidget):
  40323. (WebCore::EventHandler::createDraggingClipboard):
  40324. * platform/gdk/EditorClientGdk.cpp:
  40325. (WebCore::EditorClientGdk::shouldDeleteRange):
  40326. (WebCore::EditorClientGdk::isContinuousSpellCheckingEnabled):
  40327. (WebCore::EditorClientGdk::isGrammarCheckingEnabled):
  40328. (WebCore::EditorClientGdk::spellCheckerDocumentTag):
  40329. (WebCore::EditorClientGdk::shouldBeginEditing):
  40330. (WebCore::EditorClientGdk::shouldEndEditing):
  40331. (WebCore::EditorClientGdk::shouldInsertText):
  40332. (WebCore::EditorClientGdk::shouldChangeSelectedRange):
  40333. (WebCore::EditorClientGdk::shouldApplyStyle):
  40334. (WebCore::EditorClientGdk::didBeginEditing):
  40335. (WebCore::EditorClientGdk::respondToChangedContents):
  40336. (WebCore::EditorClientGdk::didEndEditing):
  40337. (WebCore::EditorClientGdk::didWriteSelectionToPasteboard):
  40338. (WebCore::EditorClientGdk::didSetSelectionTypesForPasteboard):
  40339. (WebCore::EditorClientGdk::selectWordBeforeMenuEvent):
  40340. (WebCore::EditorClientGdk::isEditable):
  40341. (WebCore::EditorClientGdk::registerCommandForUndo):
  40342. (WebCore::EditorClientGdk::registerCommandForRedo):
  40343. (WebCore::EditorClientGdk::clearUndoRedoOperations):
  40344. (WebCore::EditorClientGdk::canUndo):
  40345. (WebCore::EditorClientGdk::canRedo):
  40346. (WebCore::EditorClientGdk::undo):
  40347. (WebCore::EditorClientGdk::redo):
  40348. (WebCore::EditorClientGdk::shouldInsertNode):
  40349. (WebCore::EditorClientGdk::pageDestroyed):
  40350. (WebCore::EditorClientGdk::smartInsertDeleteEnabled):
  40351. (WebCore::EditorClientGdk::toggleContinuousSpellChecking):
  40352. (WebCore::EditorClientGdk::textFieldDidBeginEditing):
  40353. (WebCore::EditorClientGdk::textFieldDidEndEditing):
  40354. (WebCore::EditorClientGdk::textDidChangeInTextField):
  40355. (WebCore::EditorClientGdk::doTextFieldCommandFromEvent):
  40356. (WebCore::EditorClientGdk::textWillBeDeletedInTextField):
  40357. (WebCore::EditorClientGdk::textDidChangeInTextArea):
  40358. * platform/gdk/RenderThemeGdk.cpp:
  40359. (WebCore::RenderThemeGdk::setCheckboxSize):
  40360. (WebCore::RenderThemeGdk::setRadioSize):
  40361. (WebCore::RenderThemeGdk::adjustTextFieldStyle):
  40362. * platform/gdk/TemporaryLinkStubs.cpp:
  40363. (FrameView::updateBorder):
  40364. (Widget::setEnabled):
  40365. (Widget::isEnabled):
  40366. (Widget::focusPolicy):
  40367. (Widget::enableFlushDrawing):
  40368. (Widget::disableFlushDrawing):
  40369. (Widget::lockDrawingFocus):
  40370. (Widget::unlockDrawingFocus):
  40371. (Widget::removeFromParent):
  40372. (Widget::paint):
  40373. (Widget::setIsSelected):
  40374. (Widget::invalidate):
  40375. (Widget::invalidateRect):
  40376. (PlatformMouseEvent::PlatformMouseEvent):
  40377. (WebCore::findNextSentenceFromIndex):
  40378. (WebCore::findSentenceBoundary):
  40379. (WebCore::findNextWordFromIndex):
  40380. (ChromeClientGdk::chromeDestroyed):
  40381. (ChromeClientGdk::windowRect):
  40382. (ChromeClientGdk::setWindowRect):
  40383. (ChromeClientGdk::pageRect):
  40384. (ChromeClientGdk::scaleFactor):
  40385. (ChromeClientGdk::focus):
  40386. (ChromeClientGdk::unfocus):
  40387. (ChromeClientGdk::createWindow):
  40388. (ChromeClientGdk::createModalDialog):
  40389. (ChromeClientGdk::show):
  40390. (ChromeClientGdk::canRunModal):
  40391. (ChromeClientGdk::runModal):
  40392. (ChromeClientGdk::setToolbarsVisible):
  40393. (ChromeClientGdk::toolbarsVisible):
  40394. (ChromeClientGdk::setStatusbarVisible):
  40395. (ChromeClientGdk::statusbarVisible):
  40396. (ChromeClientGdk::setScrollbarsVisible):
  40397. (ChromeClientGdk::scrollbarsVisible):
  40398. (ChromeClientGdk::setMenubarVisible):
  40399. (ChromeClientGdk::menubarVisible):
  40400. (ChromeClientGdk::setResizable):
  40401. (ChromeClientGdk::closeWindowSoon):
  40402. (ChromeClientGdk::canTakeFocus):
  40403. (ChromeClientGdk::takeFocus):
  40404. (ChromeClientGdk::canRunBeforeUnloadConfirmPanel):
  40405. (ChromeClientGdk::addMessageToConsole):
  40406. (ChromeClientGdk::runBeforeUnloadConfirmPanel):
  40407. (ChromeClientGdk::runJavaScriptAlert):
  40408. (ChromeClientGdk::runJavaScriptConfirm):
  40409. (ChromeClientGdk::runJavaScriptPrompt):
  40410. (ChromeClientGdk::setStatusbarText):
  40411. (ChromeClientGdk::shouldInterruptJavaScript):
  40412. (ChromeClientGdk::tabsToLinks):
  40413. (ChromeClientGdk::windowResizerRect):
  40414. (ChromeClientGdk::addToDirtyRegion):
  40415. (ChromeClientGdk::scrollBackingStore):
  40416. (ChromeClientGdk::updateBackingStore):
  40417. (PlugInInfoStore::createPluginInfoForPluginAtIndex):
  40418. (PlugInInfoStore::pluginCount):
  40419. (WebCore::PlugInInfoStore::supportsMIMEType):
  40420. (WebCore::refreshPlugins):
  40421. (SearchPopupMenu::saveRecentSearches):
  40422. (SearchPopupMenu::loadRecentSearches):
  40423. (SearchPopupMenu::SearchPopupMenu):
  40424. (PlatformScrollbar::PlatformScrollbar):
  40425. (PlatformScrollbar::~PlatformScrollbar):
  40426. (PlatformScrollbar::setEnabled):
  40427. (PlatformScrollbar::paint):
  40428. (PlatformScrollbar::updateThumbPosition):
  40429. (PlatformScrollbar::updateThumbProportion):
  40430. (PlatformScrollbar::setRect):
  40431. (FileChooser::FileChooser):
  40432. (FileChooser::~FileChooser):
  40433. (FileChooser::openFileChooser):
  40434. (FileChooser::basenameForWidth):
  40435. (ResourceHandle::willLoadFromCache):
  40436. (ResourceHandle::loadsBlocked):
  40437. (ResourceHandle::loadResourceSynchronously):
  40438. (Icon::Icon):
  40439. (Icon::~Icon):
  40440. (Icon::newIconForFile):
  40441. (Icon::paint):
  40442. (Font::drawComplexText):
  40443. (Font::floatWidthForComplexText):
  40444. (Font::offsetForPositionForComplexText):
  40445. (PageCache::close):
  40446. (Editor::ignoreSpelling):
  40447. (Editor::learnSpelling):
  40448. (Editor::isSelectionUngrammatical):
  40449. (Editor::isSelectionMisspelled):
  40450. (Editor::guessesForMisspelledSelection):
  40451. (Editor::guessesForUngrammaticalSelection):
  40452. (Editor::markMisspellingsAfterTypingToPosition):
  40453. (Editor::newGeneralClipboard):
  40454. (Pasteboard::generalPasteboard):
  40455. (Pasteboard::writeSelection):
  40456. (Pasteboard::writeURL):
  40457. (Pasteboard::writeImage):
  40458. (Pasteboard::clear):
  40459. (Pasteboard::canSmartReplace):
  40460. (Pasteboard::documentFragment):
  40461. (Pasteboard::plainText):
  40462. (Pasteboard::Pasteboard):
  40463. (Pasteboard::~Pasteboard):
  40464. (ContextMenu::ContextMenu):
  40465. (ContextMenu::~ContextMenu):
  40466. (ContextMenu::appendItem):
  40467. (ContextMenuItem::ContextMenuItem):
  40468. (ContextMenuItem::~ContextMenuItem):
  40469. (ContextMenuItem::releasePlatformDescription):
  40470. (ContextMenuItem::type):
  40471. (ContextMenuItem::setType):
  40472. (ContextMenuItem::action):
  40473. (ContextMenuItem::setAction):
  40474. (ContextMenuItem::title):
  40475. (ContextMenuItem::setTitle):
  40476. (ContextMenuItem::platformSubMenu):
  40477. (ContextMenuItem::setSubMenu):
  40478. (ContextMenuItem::setChecked):
  40479. (ContextMenuItem::setEnabled):
  40480. (WebCore::supportedKeySizes):
  40481. (WebCore::systemBeep):
  40482. (WebCore::userIdleTime):
  40483. 2007-02-21 Antti Koivisto <antti@apple.com>
  40484. Reviewed by Hyatt.
  40485. - fix http://bugs.webkit.org/show_bug.cgi?id=12820
  40486. REGRESSION (r19706): Caret not painted after popup, failing editing/pasteboard/4641033
  40487. Yet another attempt to figure out exactly who should paint the caret.
  40488. * editing/SelectionController.cpp:
  40489. (WebCore::SelectionController::isInsideNode):
  40490. * editing/SelectionController.h:
  40491. * rendering/RenderBlock.cpp:
  40492. (WebCore::RenderBlock::paintCaret):
  40493. 2007-02-21 Mitz Pettel <mitz@webkit.org>
  40494. Reviewed by Hyatt.
  40495. - fix http://bugs.webkit.org/show_bug.cgi?id=12818
  40496. REGRESSION (r19148): shacknews.com does not render completely
  40497. Test: fast/dynamic/staticY-marking-parents-regression.html
  40498. Changed calls to setChildNeedsLayout(true) during layout to
  40499. setChildNeedsLayout(true, false). Prior to r19148, the default behavior
  40500. of marking containers did not matter because the caller was the container
  40501. and was already marked, but r19148 added marking of the parent of
  40502. objects with static Y, which can be different from the caller and not
  40503. necessarily marked already.
  40504. * rendering/RenderBlock.cpp:
  40505. (WebCore::RenderBlock::collapseMargins):
  40506. (WebCore::RenderBlock::clearFloatsIfNeeded):
  40507. (WebCore::RenderBlock::layoutBlockChildren):
  40508. * rendering/RenderBox.cpp:
  40509. (WebCore::RenderBox::setStaticY):
  40510. * rendering/RenderFlexibleBox.cpp:
  40511. (WebCore::RenderFlexibleBox::layoutVerticalBox):
  40512. 2007-02-21 Brady Eidson <beidson@apple.com>
  40513. Reviewed by Dave Harrison
  40514. <rdar://problem/5014313> - Crash in FrameLoader::restoreScrollPositionAndViewState()
  40515. after regaining network connection
  40516. * loader/FrameLoader.cpp:
  40517. (WebCore::FrameLoader::restoreScrollPositionAndViewState): Leave an assertion for debug
  40518. build exploration, but gracefully handle the release build case
  40519. 2007-02-21 Timothy Hatcher <timothy@apple.com>
  40520. Rubber-stamped by Darin.
  40521. * bindings/objc/PublicDOMInterfaces.h: Add missing classes that are really public.
  40522. Also adds the deprecated selector for getComputedStyle: on DOMDocument.
  40523. 2007-02-21 Justin Garcia <justin.garcia@apple.com>
  40524. Reviewed by john
  40525. <rdar://problem/5012665>
  40526. Removing indent from list moves the caret to the line below
  40527. Selection preservation during indent, outdent and list
  40528. operations uses rangeFromLocationAndLength. Ranges returned
  40529. by rangeFromLocationAndLength were incorrect for locations
  40530. just before the line breaks that are emitted after blocks.
  40531. This is because TextIterator emitted bad ranges for these line
  40532. breaks (ranges that started and ended *after* the block).
  40533. The fix corrects the start but not the end. This is acceptible
  40534. because there is code in rangeFromLocationAndLength that corrects
  40535. the ends of runs using the start of the run and VisiblePosition
  40536. creation.
  40537. * editing/TextIterator.cpp:
  40538. (WebCore::TextIterator::exitNode): Emit a position *inside*
  40539. the block, after its contents.
  40540. 2007-02-21 Adele Peterson <adele@apple.com>
  40541. Reviewed by Darin.
  40542. Fix for <rdar://problem/4999030> Indexing into select element to get to items in the options collection is broken
  40543. Test: fast/forms/select-index-setter.html
  40544. Added indexSetter for HTMLSelectElement.
  40545. * WebCore.xcodeproj/project.pbxproj: Added JSHTMLSelectElementCustom.h
  40546. * bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::indexSetter):
  40547. Moved code to selectIndexSetter so it can be shared between these classes.
  40548. * bindings/js/JSHTMLSelectElementCustom.cpp:
  40549. (WebCore::selectIndexSetter): Added. Moved from JSHTMLOptionsCollection::indexSetter.
  40550. (WebCore::JSHTMLSelectElement::indexSetter): Calls selectIndexSetter.
  40551. * bindings/js/JSHTMLSelectElementCustom.h: Added.
  40552. * html/HTMLSelectElement.idl: Added HasCustomIndexSetter keyword.
  40553. * bindings/scripts/CodeGeneratorJS.pm: When generating "put" methods, if the propertyName is a number, call the indexSetter first,
  40554. and then call the version of lookupPut that will also try to use the parent's lookup table. This matches the order of our
  40555. old code, before we autogenerated the JSHTMLSelectElement class.
  40556. 2007-02-21 George Staikos <staikos@kde.org>
  40557. Reviewed by Zack.
  40558. Add files to the build.
  40559. * WebCore.pro:
  40560. 2007-02-21 Zack Rusin <zrusin@trolltech.com>
  40561. Reviewed by Lars
  40562. Implementing popups for the Qt platform.
  40563. * WebCore.pro:
  40564. * platform/PopupMenu.h:
  40565. * platform/Widget.h:
  40566. * platform/qt/PopupMenuQt.cpp:
  40567. (WebCore::PopupMenu::PopupMenu):
  40568. (WebCore::PopupMenu::clear):
  40569. (WebCore::PopupMenu::populate):
  40570. (WebCore::PopupMenu::show):
  40571. (WebCore::PopupMenu::hide):
  40572. * platform/qt/QWebPopup.cpp: Added.
  40573. (WebCore::QWebPopup::QWebPopup):
  40574. (WebCore::QWebPopup::exec):
  40575. (WebCore::QWebPopup::hideEvent):
  40576. (WebCore::QWebPopup::activeChanged):
  40577. * platform/qt/QWebPopup.h: Added.
  40578. * platform/qt/WidgetQt.cpp:
  40579. (WebCore::Widget::canvas):
  40580. 2007-02-21 George Staikos <staikos@kde.org>
  40581. Reviewed by Zack.
  40582. Remove unneeded hack now.
  40583. * platform/qt/RenderThemeQt.cpp:
  40584. (WebCore::RenderThemeQt::setCheckboxSize):
  40585. 2007-02-21 Zack Rusin <zrusin@trolltech.com>
  40586. Reviewed by Lars
  40587. Fix rendering of lineedits and remove the spurious
  40588. padding on push-buttons.
  40589. * platform/qt/RenderThemeQt.cpp:
  40590. (WebCore::RenderThemeQt::baselinePosition):
  40591. (WebCore::RenderThemeQt::adjustTextFieldStyle):
  40592. (WebCore::RenderThemeQt::sizeForFont):
  40593. (WebCore::RenderThemeQt::setButtonPadding):
  40594. 2007-02-21 Zack Rusin <zrusin@trolltech.com>
  40595. Fix compilation.
  40596. * platform/qt/PasteboardQt.cpp:
  40597. (WebCore::Pasteboard::writeURL):
  40598. (WebCore::Pasteboard::writeImage):
  40599. 2007-02-20 Adam Roben <aroben@apple.com>
  40600. Preemptive build fix.
  40601. * platform/mac/FontCacheMac.mm: Remove unused (and non-existent) header.
  40602. 2007-02-20 Adam Roben <aroben@apple.com>
  40603. Fix the build the right way.
  40604. * platform/StringTruncator.cpp:
  40605. (WebCore::truncateString): Keep all widths as floats.
  40606. 2007-02-20 Beth Dakin <bdakin@apple.com>
  40607. Reviewed by Maciej.
  40608. Implement writeImage() on Pasteboard so that the context menus can
  40609. call into the editor for the "Copy image" command instead of
  40610. calling across the clients.
  40611. * WebCore.exp:
  40612. * WebCore.xcodeproj/project.pbxproj:
  40613. * editing/Editor.cpp:
  40614. (WebCore::Editor::copyImage): Call into the Pasteboard.
  40615. * editing/Editor.h:
  40616. * loader/mac/LoaderNSURLExtras.h: A new NSURL extra needed inside
  40617. WebCore.
  40618. * loader/mac/LoaderNSURLExtras.m: Made this file Objective-C++
  40619. (from Objective-C) since the call into the MIMETypeRegistry will
  40620. return a Vector.
  40621. (urlByRemovingComponent): Cast to build as Obj-C++
  40622. (urlWithDataRelativeToURL): Same.
  40623. (vectorContainsString): Helper.
  40624. (suggestedFilenameWithMIMEType): New function.
  40625. * page/ContextMenuClient.h: Remove copyImageToClipboard()
  40626. * page/ContextMenuController.cpp:
  40627. (WebCore::ContextMenuController::contextMenuItemSelected): Call
  40628. into the editor instead of the client.
  40629. * page/mac/WebCoreViewFactory.h: New localized String.
  40630. * platform/LocalizedStrings.h: Same.
  40631. * platform/MimeTypeRegistry.h: Expose two additional functions for
  40632. MIMEType information from WebCore System Interface.
  40633. * platform/Pasteboard.h:
  40634. * platform/SharedBuffer.h: Make platformData() and platformDataSize
  40635. () public since they are needed to write the image to the
  40636. pasteboard.
  40637. * platform/mac/LocalizedStringsMac.mm: New localized string.
  40638. (WebCore::copyImageUnknownFileLabel):
  40639. * platform/mac/MimeTypeRegistryMac.mm:
  40640. (WebCore::MimeTypeRegistry::getExtensionsForMIMEType):
  40641. (WebCore::MimeTypeRegistry::getPreferredExtensionForMIMEType):
  40642. * platform/mac/PasteboardMac.mm:
  40643. (WebCore::writableTypesForImage):
  40644. (WebCore::Pasteboard::writeURL): Write the correct types if the url
  40645. is for an image.
  40646. (WebCore::fileWrapperForImage):
  40647. (WebCore::Pasteboard::writeFileWrapperAsRTFDAttachment):
  40648. (WebCore::Pasteboard::writeImage):
  40649. * platform/mac/WebCoreNSStringExtras.h: Added. Some the the
  40650. NSStringExtras that were in WebKit are now needed by WebCore. To
  40651. avoid having two copies of these functions, I just moved the
  40652. implementations to WebCore. The WebKit functions just call into
  40653. WebCore.
  40654. * platform/mac/WebCoreNSStringExtras.mm: Added.
  40655. (hasCaseInsensitiveSuffix):
  40656. (hasCaseInsensitiveSubstring):
  40657. (filenameByFixingIllegalCharacters):
  40658. * platform/mac/WebCoreSystemInterface.h:
  40659. wkGetPreferredExtensionForMIMEType and wkGetExtensionsForMIMEType
  40660. are now needed in WebCore as well as WebKit.
  40661. * platform/mac/WebCoreSystemInterface.mm:
  40662. 2007-02-20 Adam Roben <aroben@apple.com>
  40663. Build fix.
  40664. * platform/StringTruncator.cpp:
  40665. (WebCore::truncateString): Added explicit casts.
  40666. 2007-02-20 Adam Roben <aroben@apple.com>
  40667. Reviewed by Darin and Anders.
  40668. Fix <rdar://problem/4736215> Make WebCoreStringTruncator use WebCore types
  40669. * WebCore.exp: Updated symbols.
  40670. * WebCore.xcodeproj/project.pbxproj: Updated file names.
  40671. * bridge/mac/WebCoreStringTruncator.h: Removed.
  40672. * bridge/mac/WebCoreStringTruncator.mm: Removed.
  40673. * platform/StringTruncator.cpp: Added. Moved from bridge/mac/WebCoreStringTruncator.mm.
  40674. (WebCore::textBreakAtOrPreceding): Added.
  40675. (WebCore::boundedTextBreakFollowing): Added.
  40676. (WebCore::centerTruncateToBuffer):
  40677. (WebCore::rightTruncateToBuffer):
  40678. (WebCore::stringWidth): Now takes a const Font& instead of a Font*.
  40679. (WebCore::truncateString):
  40680. (WebCore::StringTruncator::centerTruncate):
  40681. (WebCore::StringTruncator::rightTruncate):
  40682. (WebCore::StringTruncator::width):
  40683. * platform/StringTruncator.h: Added.
  40684. * platform/TextBreakIterator.h: Added isTextBreak declaration.
  40685. * platform/TextBreakIteratorICU.cpp:
  40686. (WebCore::isTextBreak): Implemented.
  40687. * platform/mac/FileChooserMac.mm:
  40688. (WebCore::FileChooser::basenameForWidth): Updated for changes to WebCoreStringTruncator.
  40689. * platform/qt/TextBreakIteratorQt.cpp:
  40690. (WebCore::isTextBreak): Stubbed out.
  40691. 2007-02-20 Justin Garcia <justin.garcia@apple.com>
  40692. Reviewed by harrison
  40693. <rdar://problem/5006779>
  40694. REGRESSION: Paste and Match Style of quoted text onto empty line yields quoted text
  40695. We decided to change the copy/paste behavior in both
  40696. the Paste and the Paste and Match Style cases.
  40697. * editing/markup.cpp:
  40698. (WebCore::createMarkup): Don't add mail blockquote wrappers
  40699. unless the user selected one or more paragraphs.
  40700. 2007-02-20 Timothy Hatcher <timothy@apple.com>
  40701. Reviewed by Mark Rowe.
  40702. <rdar://problem/4912899> WebCore project ObjC @property cleanup
  40703. * bindings/objc/DOMObject.h: Add the new style @property
  40704. * bindings/objc/PublicDOMInterfaces.h: Update to the new style @property
  40705. * bindings/scripts/CodeGeneratorObjC.pm: Export both new and old style @properties
  40706. 2007-02-20 Timothy Hatcher <timothy@apple.com>
  40707. Reviewed by Sam Weinig.
  40708. <rdar://problem/5007248> need to export symbols for DOM exception constants
  40709. * WebCore.exp: Adds DOMEventException, DOMException, DOMRangeException, DOMXPathException
  40710. 2007-02-20 Timothy Hatcher <timothy@apple.com>
  40711. Reviewed by Darin.
  40712. <rdar://problem/4900579> WebKit -finalize methods are not thread-safe; design change needed
  40713. Call WebCoreObjCFinalizeOnMainThread from the initialize method of all the classes
  40714. that have a finalizer that needs called on the main thread.
  40715. * WebCore.exp:
  40716. * WebCore.xcodeproj/project.pbxproj:
  40717. * bindings/objc/WebScriptObject.mm:
  40718. (+[WebScriptObject initialize]):
  40719. * bridge/mac/WebCoreScriptDebugger.mm:
  40720. (+[WebCoreScriptDebugger initialize]):
  40721. * platform/mac/SharedBufferMac.mm:
  40722. (+[SharedBufferData initialize]):
  40723. * platform/mac/WebCoreObjCExtras.c: Added.
  40724. (WebCoreObjCFinalizeOnMainThread):
  40725. * platform/mac/WebCoreObjCExtras.h: Added.
  40726. 2007-02-20 Geoffrey Garen <ggaren@apple.com>
  40727. Not not reviewed by Mitz Pettel.
  40728. Fixed http://bugs.webkit.org/show_bug.cgi?id=12827 | <rdar://problem/5006671>
  40729. REGRESSION: -[DOMCSSStyleDeclaration setValue:forKey:] doesn't have an
  40730. immediate effect
  40731. Let's just pretend this never happened.
  40732. I attempted a layout test but I couldn't get the old code to fail because
  40733. there's no obvious way to isolate the ObjC bindings in a test that's
  40734. controlled by JS.
  40735. * bindings/objc/WebScriptObject.mm:
  40736. (_didExecute):
  40737. 2007-02-20 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  40738. Reviewed by Maciej S.
  40739. Gdk build fixes for recent refactorings.
  40740. * Projects/gdk/webcore-gdk.bkl:
  40741. * WebCoreSources.bkl:
  40742. * page/gdk/DragControllerGdk.cpp:
  40743. (WebCore::DragController::dragOperation):
  40744. (WebCore::DragController::maxDragImageSize):
  40745. * page/gdk/EventHandlerGdk.cpp:
  40746. (WebCore::EventHandler::createDraggingClipboard):
  40747. * platform/DragImage.h:
  40748. * platform/gdk/ChromeClientGdk.h:
  40749. * platform/gdk/CursorGdk.cpp:
  40750. (WebCore::verticalTextCursor):
  40751. (WebCore::cellCursor):
  40752. (WebCore::contextMenuCursor):
  40753. (WebCore::noDropCursor):
  40754. (WebCore::copyCursor):
  40755. (WebCore::progressCursor):
  40756. (WebCore::aliasCursor):
  40757. (WebCore::noneCursor):
  40758. (WebCore::notAllowedCursor):
  40759. * platform/gdk/EditorClientGdk.cpp:
  40760. (WebCore::EditorClientGdk::shouldChangeSelectedRange):
  40761. (WebCore::EditorClientGdk::isEditable):
  40762. (WebCore::EditorClientGdk::textFieldDidBeginEditing):
  40763. (WebCore::EditorClientGdk::textFieldDidEndEditing):
  40764. (WebCore::EditorClientGdk::textDidChangeInTextField):
  40765. (WebCore::EditorClientGdk::doTextFieldCommandFromEvent):
  40766. (WebCore::EditorClientGdk::textWillBeDeletedInTextField):
  40767. (WebCore::EditorClientGdk::textDidChangeInTextArea):
  40768. * platform/gdk/EditorClientGdk.h:
  40769. * platform/gdk/FrameGdk.cpp:
  40770. (WebCore::Frame::print):
  40771. (WebCore::Frame::issueTransposeCommand):
  40772. (WebCore::Frame::respondToChangedSelection):
  40773. (WebCore::Frame::cleanupPlatformScriptObjects):
  40774. (WebCore::Frame::isCharacterSmartReplaceExempt):
  40775. (WebCore::Frame::dragImageForSelection):
  40776. * platform/gdk/FrameGdk.h:
  40777. * platform/gdk/MimeTypeRegistryGdk.cpp: Added.
  40778. * platform/gdk/TemporaryLinkStubs.cpp:
  40779. (ChromeClientGdk::tabsToLinks):
  40780. (ChromeClientGdk::windowResizerRect):
  40781. (ChromeClientGdk::addToDirtyRegion):
  40782. (ChromeClientGdk::scrollBackingStore):
  40783. (ChromeClientGdk::updateBackingStore):
  40784. * webcore-base.bkl:
  40785. 2007-02-20 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  40786. Reviewed by Darin.
  40787. Allow over-writting Product, ProductSub, Vendor and VendorSub
  40788. js properties via #define WEBCORE_NAVIGATOR_*
  40789. * bindings/js/kjs_navigator.cpp:
  40790. (KJS::Navigator::getValueProperty):
  40791. 2007-02-20 Darin Adler <darin@apple.com>
  40792. Reviewed by Anders.
  40793. - prepare to fix some "stop loading" bugs by moving state from the
  40794. FrameLoader class to the DocumentLoader class
  40795. * WebCore.exp: Update since cancelMainResourceLoad is now on the document loader.
  40796. * html/HTMLDocument.h:
  40797. * html/HTMLDocument.cpp:
  40798. (WebCore::HTMLDocument::HTMLDocument): Removed unused bodyElement and htmlElement
  40799. data members.
  40800. (WebCore::HTMLDocument::lastModified): Call getResponseModifiedHeader directly on
  40801. the document loader.
  40802. * loader/DocumentLoader.h: Moved m_mainResourceLoader, m_subresourceLoaders, and
  40803. m_plugInStreamLoaders here.
  40804. * loader/DocumentLoader.cpp:
  40805. (WebCore::cancelAll): Moved here from FrameLoader.
  40806. (WebCore::setAllDefersLoading): Ditto.
  40807. (WebCore::DocumentLoader::mainResourceData): Moved the body of FrameLoader's
  40808. mainResourceData function here.
  40809. (WebCore::DocumentLoader::stopLoading): Replaced calls to hasMainResourceLoader
  40810. and cancelMainResourceLoad with code that works directly on m_mainResourceLoader.
  40811. Call the stop functions moved from FrameLoader here on ourselves.
  40812. (WebCore::DocumentLoader::setupForReplaceByMIMEType): Ditto.
  40813. (WebCore::DocumentLoader::setPrimaryLoadComplete): Moved the code to store the
  40814. main resource data here; it doesn't require separate functions.
  40815. (WebCore::DocumentLoader::isLoadingInAPISense): Removed call to isLoadingSubresources
  40816. and instead just check if the m_subresourceLoaders set is empty.
  40817. (WebCore::DocumentLoader::setDefersLoading): Moved code here from FrameLoader.
  40818. (WebCore::DocumentLoader::stopLoadingPlugIns): Ditto.
  40819. (WebCore::DocumentLoader::stopLoadingSubresources): Ditto.
  40820. (WebCore::DocumentLoader::addSubresourceLoader): Ditto.
  40821. (WebCore::DocumentLoader::removeSubresourceLoader): Ditto.
  40822. (WebCore::DocumentLoader::addPlugInStreamLoader): Ditto.
  40823. (WebCore::DocumentLoader::removePlugInStreamLoader): Ditto.
  40824. (WebCore::DocumentLoader::isLoadingSubresources): Ditto.
  40825. (WebCore::DocumentLoader::isLoadingPlugIns): Ditto.
  40826. (WebCore::DocumentLoader::startLoadingMainResource): Ditto.
  40827. (WebCore::DocumentLoader::cancelMainResourceLoad): Ditto.
  40828. * loader/FrameLoader.h: Removed stopLoadingPlugIns, stopLoadingSubresources,
  40829. cancelMainResourceLoad, hasMainResourceLoader, isLoadingSubresources,
  40830. mainResourceData, releaseMainResourceLoader, lastModified, startLoadingMainResource,
  40831. isLoadingPlugIns, m_mainResourceLoader, m_subresourceLoaders, m_plugInStreamLoaders,
  40832. m_responseRefreshHeader, and m_responseModifiedHeader.
  40833. * loader/FrameLoader.cpp:
  40834. (WebCore::FrameLoader::setDefersLoading): Call setDefersLoading on all the document
  40835. loaders.
  40836. (WebCore::FrameLoader::stopLoading): Get rid of code to set m_responseRefreshHeader
  40837. and m_responseModifiedHeader.
  40838. (WebCore::FrameLoader::receivedFirstData): Call httpHeaderField on the response
  40839. here to get the Refresh, instead of storing it in a data member.
  40840. (WebCore::FrameLoader::addPlugInStreamLoader): Change to just call this on the
  40841. document loader.
  40842. (WebCore::FrameLoader::removePlugInStreamLoader): Ditto.
  40843. (WebCore::FrameLoader::isLoading): Change to call isLoadingSubresources and
  40844. isLoadingPlugIns on the document loader.
  40845. (WebCore::FrameLoader::addSubresourceLoader): Change to just call this on the
  40846. document loader.
  40847. (WebCore::FrameLoader::removeSubresourceLoader): Ditto.
  40848. (WebCore::FrameLoader::commitProvisionalLoad): Call stopLoadingSubresources and
  40849. stopLoadingPlugIns on the document loader. Removed code to set
  40850. m_responseModifiedHeader.
  40851. (WebCore::FrameLoader::startLoading): Call isLoadingMainResource and
  40852. startLoadingMainResource on the document loader.
  40853. * loader/ImageDocument.cpp: (WebCore::ImageTokenizer::finish): Call
  40854. mainResourceData() on the document loader instead of the frame loader.
  40855. - other changes
  40856. * loader/DocLoader.cpp:
  40857. (WebCore::DocLoader::checkCacheObjectStatus): Fixed indentation.
  40858. 2007-02-20 Zack Rusin <zrusin@trolltech.com>
  40859. Reviewed by Lars
  40860. Fix focus handling and make the forms
  40861. work as expected.
  40862. * platform/qt/ScrollViewQt.cpp:
  40863. (WebCore::ScrollView::setScrollArea):
  40864. * platform/qt/WidgetQt.cpp:
  40865. (WebCore::WidgetPrivate::WidgetPrivate):
  40866. (WebCore::WidgetPrivate::canvas):
  40867. (WebCore::Widget::hasFocus):
  40868. (WebCore::Widget::setFocus):
  40869. (WebCore::Widget::clearFocus):
  40870. (WebCore::Widget::setFont):
  40871. (WebCore::Widget::setQWidget):
  40872. (WebCore::Widget::focusPolicy):
  40873. 2007-02-20 Mitz Pettel <mitz@webkit.org>
  40874. Reviewed by Darin and then Sam.
  40875. - fix http://bugs.webkit.org/show_bug.cgi?id=10735
  40876. Clicking in SVG results causes WebKit to consume 100% CPU for several minutes
  40877. No test since there is no change in functionality.
  40878. * CMakeLists.txt:
  40879. * WebCore.pro:
  40880. * WebCore.xcodeproj/project.pbxproj: Added PositionIterator.{cpp,h}.
  40881. * WebCoreSources.bkl:
  40882. * dom/Position.cpp:
  40883. (WebCore::Position::Position): Added converting constructor from
  40884. PositionIterator.
  40885. (WebCore::Position::previous): Changed assert() to ASSERT().
  40886. (WebCore::Position::next): Ditto.
  40887. (WebCore::isStreamer): Changed the argument to a PositionIterator.
  40888. (WebCore::Position::upstream): Changed to use PositionIterator.
  40889. (WebCore::Position::downstream): Ditto.
  40890. (WebCore::Position::inRenderedText): Made public.
  40891. (WebCore::Position::hasRenderedNonAnonymousDescendantsWithHeight): Changed
  40892. into a static member function.
  40893. (WebCore::Position::nodeIsUserSelectNone): Ditto.
  40894. * dom/Position.h:
  40895. * dom/PositionIterator.cpp: Added. A Position iterator with constant-time
  40896. increment, decrement, and several predicates on the Position it is at.
  40897. Conversion to/from Position is O(n) in the offset.
  40898. (WebCore::PositionIterator::increment):
  40899. (WebCore::PositionIterator::decrement):
  40900. (WebCore::PositionIterator::atStart):
  40901. (WebCore::PositionIterator::atEnd):
  40902. (WebCore::PositionIterator::atStartOfNode):
  40903. (WebCore::PositionIterator::atEndOfNode):
  40904. (WebCore::PositionIterator::isCandidate):
  40905. * dom/PositionIterator.h: Added.
  40906. (WebCore::PositionIterator::PositionIterator):
  40907. (WebCore::PositionIterator::node):
  40908. (WebCore::PositionIterator::offsetInLeafNode):
  40909. * editing/htmlediting.cpp:
  40910. (WebCore::nextCandidate): Changed to use PositionIterator.
  40911. (WebCore::previousCandidate): Changed to use PositionIterator.
  40912. 2007-02-20 Rob Buis <buis@kde.org>
  40913. Reviewed by Darin.
  40914. http://bugs.webkit.org/show_bug.cgi?id=12439
  40915. SVG parser complains about points attribute in polygon and polyline element
  40916. Return true when the parsed points specification is valid.
  40917. * ksvg2/svg/SVGParserUtilities.cpp:
  40918. (WebCore::parseNumber):
  40919. (WebCore::SVGPolyParser::parsePoints):
  40920. * ksvg2/svg/SVGPolyElement.cpp:
  40921. (WebCore::SVGPolyElement::parseMappedAttribute):
  40922. 2007-02-20 Zack Rusin <zrusin@trolltech.com>
  40923. Reviewed by Lars
  40924. Make editing of forms work plus make sure that non-void methods
  40925. always return something.
  40926. * WebCore.pro:
  40927. * loader/qt/DocumentLoaderQt.cpp:
  40928. (WebCore::DocumentLoader::getResponseModifiedHeader):
  40929. * platform/qt/ClipboardQt.cpp:
  40930. (WebCore::ClipboardQt::setData):
  40931. 2007-02-20 Zack Rusin <zrusin@trolltech.com>
  40932. Reviewed by Lars
  40933. Refactor and fix the implementation of theming of
  40934. form elements on the Qt platform.
  40935. * platform/qt/RenderThemeQt.cpp:
  40936. (WebCore::theme):
  40937. (WebCore::RenderThemeQt::RenderThemeQt):
  40938. (WebCore::RenderThemeQt::supportsHover):
  40939. (WebCore::RenderThemeQt::supportsFocusRing):
  40940. (WebCore::RenderThemeQt::baselinePosition):
  40941. (WebCore::RenderThemeQt::controlSupportsTints):
  40942. (WebCore::RenderThemeQt::supportsControlTints):
  40943. (WebCore::RenderThemeQt::adjustRepaintRect):
  40944. (WebCore::RenderThemeQt::paintResizeControl):
  40945. (WebCore::RenderThemeQt::platformActiveSelectionBackgroundColor):
  40946. (WebCore::RenderThemeQt::platformInactiveSelectionBackgroundColor):
  40947. (WebCore::RenderThemeQt::platformActiveSelectionForegroundColor):
  40948. (WebCore::RenderThemeQt::platformInactiveSelectionForegroundColor):
  40949. (WebCore::RenderThemeQt::systemFont):
  40950. (WebCore::RenderThemeQt::minimumMenuListSize):
  40951. (WebCore::RenderThemeQt::adjustSliderThumbSize):
  40952. (WebCore::RenderThemeQt::paintCheckbox):
  40953. (WebCore::RenderThemeQt::paintRadio):
  40954. (WebCore::RenderThemeQt::setRadioSize):
  40955. (WebCore::RenderThemeQt::adjustButtonStyle):
  40956. (WebCore::RenderThemeQt::setButtonSize):
  40957. (WebCore::RenderThemeQt::adjustTextFieldStyle):
  40958. (WebCore::RenderThemeQt::adjustMenuListStyle):
  40959. (WebCore::RenderThemeQt::paintMenuList):
  40960. (WebCore::RenderThemeQt::paintMenuListButton):
  40961. (WebCore::RenderThemeQt::adjustMenuListButtonStyle):
  40962. (WebCore::RenderThemeQt::paintSliderTrack):
  40963. (WebCore::RenderThemeQt::paintSliderThumb):
  40964. (WebCore::RenderThemeQt::paintSearchField):
  40965. (WebCore::RenderThemeQt::adjustSearchFieldStyle):
  40966. (WebCore::RenderThemeQt::adjustSearchFieldCancelButtonStyle):
  40967. (WebCore::RenderThemeQt::paintSearchFieldCancelButton):
  40968. (WebCore::RenderThemeQt::adjustSearchFieldDecorationStyle):
  40969. (WebCore::RenderThemeQt::paintSearchFieldDecoration):
  40970. (WebCore::RenderThemeQt::adjustSearchFieldResultsDecorationStyle):
  40971. (WebCore::RenderThemeQt::paintSearchFieldResultsDecoration):
  40972. (WebCore::RenderThemeQt::supportsFocus):
  40973. (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
  40974. (WebCore::RenderThemeQt::applyTheme):
  40975. (WebCore::RenderThemeQt::setSizeFromFont):
  40976. (WebCore::RenderThemeQt::sizeForFont):
  40977. (WebCore::RenderThemeQt::setButtonPadding):
  40978. (WebCore::RenderThemeQt::setPopupPadding):
  40979. (WebCore::RenderThemeQt::setPrimitiveSize):
  40980. * platform/qt/RenderThemeQt.h: Added.
  40981. 2007-02-19 Lars Naesbye Christensen <lars@naesbye.dk>
  40982. Reviewed by Maciej.
  40983. http://bugs.webkit.org/show_bug.cgi?id=12815
  40984. Two image files not included in project file
  40985. * WebCore.xcodeproj/project.pbxproj: Added crossHairCursor.png and
  40986. notAllowedCursor.png.
  40987. 2007-02-19 Geoffrey Garen <ggaren@apple.com>
  40988. Reviewed by Adam Roben.
  40989. Fixed some leaks in RenderThemeMac.
  40990. No test case because 'leaks' can't detect these leaks inside DRT, even if
  40991. DRT forces the WebView to paint. ('leaks' can detect these leaks inside
  40992. Safari. Weird.)
  40993. * rendering/RenderThemeMac.h:
  40994. - Renamed data members to m_*, to match our style guidelines.
  40995. - Renamed *Is* to is**, to match our style guidelines.
  40996. - Removed a few unnecessary data members.
  40997. - Made cached values like m_checkbox mutable, since they can change
  40998. inside functions that don't change the logical state of a RenderTheme
  40999. object. (The alternative was to make some const functions non-const.)
  41000. (WebCore::RenderThemeMac::paintMenuList): Took CFType pointers that just
  41001. used to leak and placed them in RetainPtrs.
  41002. (WebCore::RenderThemeMac::paintMenuListButtonGradients): ditto
  41003. Factored inline implementations of lazy initialization into these accessor
  41004. functions, for better encapsulation:
  41005. (WebCore::RenderThemeMac::checkbox):
  41006. (WebCore::RenderThemeMac::radio):
  41007. (WebCore::RenderThemeMac::button):
  41008. (WebCore::RenderThemeMac::popupButton):
  41009. (WebCore::RenderThemeMac::search):
  41010. (WebCore::RenderThemeMac::sliderThumbHorizontal): The inline version of
  41011. this initialization used to confuse the retained data member with a local
  41012. stack value, causing both a leak and a failure to initialize. Fixed now.
  41013. (WebCore::RenderThemeMac::sliderThumbVertical): ditto
  41014. (WebCore::RenderThemeMac::resizeCornerImage):
  41015. 2007-02-19 Mitz Pettel <mitz@webkit.org>
  41016. Reviewed by Hyatt.
  41017. - fix http://bugs.webkit.org/show_bug.cgi?id=12817
  41018. REGRESSION (r18634): Table border-collapse problems with right margin
  41019. Test: fast/repaint/table-outer-border.html
  41020. * rendering/RenderTable.cpp:
  41021. (WebCore::RenderTable::layout): Reordered to initialize horizontal overflow
  41022. after table sections have computed their outer horizontal borders.
  41023. 2007-02-19 John Sullivan <sullivan@apple.com>
  41024. Reviewed by Darin
  41025. - fixed <rdar://problem/4613701> REGRESSION: A line break in the source HTML of a link becomes visible after drag & drop
  41026. * page/DragController.cpp:
  41027. (WebCore::DragController::startDrag):
  41028. Call simplifyWhiteSpace() on the proposed link title to match what's displayed on the web page, instead of using the
  41029. raw source HTML text.
  41030. 2007-02-19 David Hyatt <hyatt@apple.com>
  41031. Fix for Radar 4981605, regression where button grows randomly when a select is
  41032. opened. With the new form controls, the WinIE quirk for using line width
  41033. ended up being used for them more.
  41034. This patch removes the quirk after verifying that Firefox doesn't implement
  41035. the quirk at all. usesLineWidth is being renamed to shrinksToAvoidFloats to
  41036. make it clear that the new method only applies to block objects that avoid floats
  41037. and that have auto width.
  41038. Also fixed a regression where whitespace after a floating <select> at the start
  41039. of a block got incorrectly rendered. Make sure skipWhitespace always skips
  41040. through floating/positioned elements regardless of the whitespace setting (this
  41041. way the white-space:pre value on floating <select>s doesn't cause trouble).
  41042. Reviewed by darin
  41043. fast/block/float/float-avoidance.html
  41044. * rendering/RenderBlock.cpp:
  41045. (WebCore::RenderBlock::collapseMargins):
  41046. (WebCore::RenderBlock::clearFloatsIfNeeded):
  41047. (WebCore::RenderBlock::layoutBlockChildren):
  41048. (WebCore::RenderBlock::markAllDescendantsWithFloatsForLayout):
  41049. * rendering/RenderBox.cpp:
  41050. (WebCore::RenderBox::containingBlockWidth):
  41051. * rendering/RenderObject.cpp:
  41052. (WebCore::RenderObject::shrinkToAvoidFloats):
  41053. * rendering/RenderObject.h:
  41054. * rendering/bidi.cpp:
  41055. (WebCore::RenderBlock::skipWhitespace):
  41056. 2007-02-19 Zalan Bujtas <zbujtas@gmail.com>
  41057. Reviewed by Darin.
  41058. Update stylesheet href, when document's baseUrl changes. It needs
  41059. update when the stylesheet is constructed before the parser hits the base tag.
  41060. http://bugs.webkit.org/show_bug.cgi?id=12214
  41061. * css/StyleSheet.h:
  41062. (WebCore::StyleSheet::setHref):
  41063. * dom/Document.cpp:
  41064. (WebCore::Document::setBaseURL):
  41065. * dom/Document.h:
  41066. 2007-02-19 Mitz Pettel <mitz@webkit.org>
  41067. Reviewed by Adam.
  41068. - fix http://bugs.webkit.org/show_bug.cgi?id=11518
  41069. REGRESSION (r14376): View Source not available after Back navigation from a non-HTML page
  41070. The FrameLoader's responseMIMEType was not being updated when a page was
  41071. brought back from the page cache.
  41072. Moved the line that updates the MIME type from commitProvisionalLoad() to
  41073. transitionToCommitted().
  41074. * loader/FrameLoader.cpp:
  41075. (WebCore::FrameLoader::commitProvisionalLoad):
  41076. (WebCore::FrameLoader::transitionToCommitted):
  41077. 2007-02-19 Anders Carlsson <acarlsson@apple.com>
  41078. Reviewed by Oliver.
  41079. Make DragController::maxDragImageSize a function to get rid of the global initializer.
  41080. * page/DragController.cpp:
  41081. (WebCore::DragController::doImageDrag):
  41082. * page/DragController.h:
  41083. * page/mac/DragControllerMac.mm:
  41084. (WebCore::DragController::maxDragImageSize):
  41085. * page/qt/DragControllerQt.cpp:
  41086. (WebCore::DragController::maxDragImageSize):
  41087. 2007-02-19 Darin Adler <darin@apple.com>
  41088. Reviewed by Hyatt.
  41089. - <rdar://problem/5006414> REGRESSION: Crash occurs at WebCore::Frame::loader()
  41090. when loading AFL Ladder widget
  41091. * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::openURL):
  41092. Add missing null check so this fails without crashing when called on an element
  41093. that's no longer in a frame.
  41094. 2007-02-19 Antti Koivisto <antti@apple.com>
  41095. Reviewed by Mitz.
  41096. - fix for http://bugs.webkit.org/show_bug.cgi?id=10990
  41097. REGRESSION: Pressing a pop-up's access key doesn't focus it
  41098. <rdar://problem/4823138>
  41099. Focus the select element too in accessKeyAction.
  41100. * html/HTMLSelectElement.cpp:
  41101. (WebCore::HTMLSelectElement::accessKeyAction):
  41102. 2007-02-18 Antti Koivisto <antti@apple.com>
  41103. Reviewed by Hyatt.
  41104. - really fix http://bugs.webkit.org/show_bug.cgi?id=11974
  41105. REGRESSION: Caret drawn over input when smaller than font size on initial focus
  41106. <rdar://problem/4960258>
  41107. Avoid double painting caret when it is on a block element.
  41108. Layout test for this already went in previous try (it only fails in pixel mode) in r19626.
  41109. * rendering/RenderBlock.cpp:
  41110. (WebCore::RenderBlock::paintCaret):
  41111. 2007-02-19 Lars Knoll <lars@trolltech.com>
  41112. Added a one line patch from Olliej to create the
  41113. clipboard on demand (to stop things from crashing),
  41114. and added lots of notImplemented() warnings all
  41115. over the place.
  41116. * platform/qt/ClipboardQt.cpp:
  41117. (WebCore::ClipboardQt::ClipboardQt):
  41118. (WebCore::ClipboardQt::clearData):
  41119. (WebCore::ClipboardQt::clearAllData):
  41120. (WebCore::ClipboardQt::getData):
  41121. (WebCore::ClipboardQt::setData):
  41122. (WebCore::ClipboardQt::types):
  41123. (WebCore::ClipboardQt::dragLocation):
  41124. (WebCore::ClipboardQt::dragImage):
  41125. (WebCore::ClipboardQt::setDragImage):
  41126. (WebCore::ClipboardQt::dragImageElement):
  41127. (WebCore::ClipboardQt::setDragImageElement):
  41128. (WebCore::ClipboardQt::createDragImage):
  41129. (WebCore::ClipboardQt::declareAndWriteDragImage):
  41130. (WebCore::ClipboardQt::writeURL):
  41131. (WebCore::ClipboardQt::writeRange):
  41132. (WebCore::ClipboardQt::hasData):
  41133. * platform/qt/DragDataQt.cpp:
  41134. (WebCore::DragData::canSmartReplace):
  41135. (WebCore::DragData::containsColor):
  41136. (WebCore::DragData::containsPlainText):
  41137. (WebCore::DragData::asPlainText):
  41138. (WebCore::DragData::asColor):
  41139. (WebCore::DragData::createClipboard):
  41140. (WebCore::DragData::containsCompatibleContent):
  41141. (WebCore::DragData::containsURL):
  41142. (WebCore::DragData::asURL):
  41143. (WebCore::DragData::asFragment):
  41144. 2007-02-19 Lars Knoll <lars@trolltech.com>
  41145. Compile again.
  41146. * platform/qt/ClipboardQt.cpp:
  41147. (WebCore::ClipboardQt::types):
  41148. 2007-02-17 Lars Knoll <lars@trolltech.com>
  41149. Reviewed by Maciej.
  41150. Additional coding by Maciej, additional review by Oliver.
  41151. Get rid of the FrameMac and FrameQt classes. Instead
  41152. move all methods into Frame directly, and implement
  41153. some platform specific methods in foo/FrameFoo.cpp.
  41154. Some general cleanup in Frame:
  41155. * Move some methods out of Frame, to the place where they
  41156. belong.
  41157. * Unify the different ways of creating the JavaScript wrappers
  41158. for <object>, <embed> and <applet>
  41159. * Some cleanup of the WebCoreFrameBridge
  41160. * ForwardingHeaders/bindings/NP_jsobject.h: Added.
  41161. * ForwardingHeaders/bindings/npruntime_impl.h: Added.
  41162. * ForwardingHeaders/bindings/runtime_root.h: Added.
  41163. * WebCore.exp:
  41164. * WebCore.xcodeproj/project.pbxproj:
  41165. * bindings/js/kjs_binding.cpp:
  41166. (KJS::ScriptInterpreter::shouldInterruptScript):
  41167. * bindings/objc/DOM.mm:
  41168. (-[DOMNode KJS::Bindings::]):
  41169. * bindings/objc/DOMInternal.mm:
  41170. (-[WebScriptObject _initializeScriptDOMNodeImp]):
  41171. * bridge/EditorClient.h:
  41172. * bridge/mac/FrameViewMac.mm:
  41173. (WebCore::FrameView::updateBorder):
  41174. (WebCore::FrameView::updateDashboardRegions):
  41175. * bridge/mac/WebCoreAXObject.mm:
  41176. (-[WebCoreAXObject rendererForView:]):
  41177. * dom/Position.cpp:
  41178. (WebCore::Position::next):
  41179. * editing/CommandByName.cpp:
  41180. (WebCore::Frame::execCopy):
  41181. (WebCore::Frame::execCut):
  41182. (WebCore::Frame::execPaste):
  41183. * editing/Editor.cpp:
  41184. (WebCore::Editor::canEdit):
  41185. (WebCore::Editor::pasteWithPasteboard):
  41186. (WebCore::Editor::paste):
  41187. (WebCore::Editor::pasteAsPlainText):
  41188. * editing/Editor.h:
  41189. * editing/JSEditor.cpp:
  41190. * html/HTMLAppletElement.cpp:
  41191. (WebCore::HTMLAppletElement::getInstance):
  41192. * html/HTMLEmbedElement.cpp:
  41193. (WebCore::HTMLEmbedElement::getInstance):
  41194. * html/HTMLFormElement.cpp:
  41195. (WebCore::HTMLFormElement::formData):
  41196. * html/HTMLObjectElement.cpp:
  41197. (WebCore::HTMLObjectElement::getInstance):
  41198. * loader/FrameLoader.cpp:
  41199. (WebCore::FrameLoader::clear):
  41200. (WebCore::FrameLoader::detachFromParent):
  41201. * loader/mac/ImageDocumentMac.mm:
  41202. (WebCore::finishImageLoad):
  41203. * loader/qt/DocumentLoaderQt.cpp:
  41204. * page/Chrome.cpp:
  41205. (WebCore::Chrome::shouldInterruptJavaScript):
  41206. * page/Chrome.h:
  41207. * page/ChromeClient.h:
  41208. * page/Frame.cpp:
  41209. (WebCore::Frame::~Frame):
  41210. (WebCore::Frame::markedTextRange):
  41211. (WebCore::Frame::shouldChangeSelection):
  41212. (WebCore::Frame::shouldDeleteSelection):
  41213. (WebCore::Frame::isContentEditable):
  41214. (WebCore::Frame::setSecureKeyboardEntry):
  41215. (WebCore::Frame::isSecureKeyboardEntry):
  41216. (WebCore::Frame::bindingRootObject):
  41217. (WebCore::Frame::createRootObject):
  41218. (WebCore::Frame::windowScriptNPObject):
  41219. (WebCore::Frame::cleanupScriptObjects):
  41220. (WebCore::FramePrivate::FramePrivate):
  41221. * page/Frame.h:
  41222. * page/FramePrivate.h:
  41223. * page/FrameView.h:
  41224. * page/mac/EventHandlerMac.mm:
  41225. (WebCore::EventHandler::tabsToLinks):
  41226. (WebCore::EventHandler::tabsToAllControls):
  41227. (WebCore::EventHandler::focusDocumentView):
  41228. (WebCore::EventHandler::passMouseDownEventToWidget):
  41229. (WebCore::EventHandler::handleDrag):
  41230. (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
  41231. (WebCore::EventHandler::keyboardUIMode):
  41232. * page/mac/FrameMac.h: Removed.
  41233. * page/mac/FrameMac.mm:
  41234. (WebCore::Frame::setBridge):
  41235. (WebCore::Frame::bridge):
  41236. (WebCore::Frame::searchForLabelsAboveCell):
  41237. (WebCore::Frame::searchForLabelsBeforeElement):
  41238. (WebCore::Frame::matchLabelsAgainstElement):
  41239. (WebCore::Frame::focusWindow):
  41240. (WebCore::Frame::unfocusWindow):
  41241. (WebCore::Frame::imageFromRect):
  41242. (WebCore::Frame::selectionImage):
  41243. (WebCore::Frame::snapshotDragImage):
  41244. (WebCore::Frame::fontAttributesForSelectionStart):
  41245. (WebCore::Frame::baseWritingDirectionForSelectionStart):
  41246. (WebCore::Frame::print):
  41247. (WebCore::Frame::issuePasteCommand):
  41248. (WebCore::Frame::issueTransposeCommand):
  41249. (WebCore::Frame::respondToChangedSelection):
  41250. (WebCore::Frame::textFieldDidBeginEditing):
  41251. (WebCore::Frame::textFieldDidEndEditing):
  41252. (WebCore::Frame::textDidChangeInTextField):
  41253. (WebCore::Frame::textDidChangeInTextArea):
  41254. (WebCore::Frame::doTextFieldCommandFromEvent):
  41255. (WebCore::Frame::textWillBeDeletedInTextField):
  41256. (WebCore::Frame::setSecureKeyboardEntry):
  41257. (WebCore::Frame::isSecureKeyboardEntry):
  41258. (WebCore::Frame::setMarkedTextRange):
  41259. (WebCore::Frame::dashboardRegionsDictionary):
  41260. (WebCore::Frame::dashboardRegionsChanged):
  41261. (WebCore::Frame::willPopupMenu):
  41262. (WebCore::Frame::isCharacterSmartReplaceExempt):
  41263. (WebCore::Frame::setNeedsReapplyStyles):
  41264. (WebCore::Frame::customHighlightLineRect):
  41265. (WebCore::Frame::paintCustomHighlight):
  41266. (WebCore::Frame::createScriptInstanceForWidget):
  41267. (WebCore::Frame::windowScriptObject):
  41268. (WebCore::Frame::cleanupPlatformScriptObjects):
  41269. * page/mac/WebCoreFrameBridge.h:
  41270. * page/mac/WebCoreFrameBridge.mm:
  41271. (createRootObject):
  41272. (bridge):
  41273. (-[WebCoreFrameBridge _frame]):
  41274. * page/qt/EventHandlerQt.cpp:
  41275. * page/qt/FrameQt.cpp:
  41276. (WebCore::Frame::unfocusWindow):
  41277. (WebCore::Frame::focusWindow):
  41278. (WebCore::Frame::issueTransposeCommand):
  41279. (WebCore::Frame::respondToChangedSelection):
  41280. (WebCore::Frame::print):
  41281. (WebCore::Frame::createScriptInstanceForWidget):
  41282. (WebCore::Frame::cleanupPlatformScriptObjects):
  41283. (WebCore::Frame::isCharacterSmartReplaceExempt):
  41284. * page/qt/FrameQt.h: Removed.
  41285. * platform/MimeTypeRegistry.h:
  41286. * platform/graphics/svg/SVGImage.cpp:
  41287. (WebCore::SVGImage::setData):
  41288. * platform/graphics/svg/SVGImageEmptyClients.h:
  41289. (WebCore::SVGEmptyChromeClient::shouldInterruptJavaScript):
  41290. (WebCore::SVGEmptyEditorClient::shouldChangeSelectedRange):
  41291. * platform/mac/ClipboardMac.h:
  41292. * platform/mac/ClipboardMac.mm:
  41293. (WebCore::ClipboardMac::ClipboardMac):
  41294. * platform/mac/FileChooserMac.mm:
  41295. (-[OpenPanelController beginSheetWithFrame:]):
  41296. * platform/mac/MimeTypeRegistryMac.mm:
  41297. (WebCore::MimeTypeRegistry::getMIMETypeForPath):
  41298. * platform/mac/PopupMenuMac.mm:
  41299. (WebCore::PopupMenu::show):
  41300. * platform/mac/WidgetMac.mm:
  41301. (WebCore::Widget::setFocus):
  41302. (WebCore::Widget::setIsSelected):
  41303. * platform/network/mac/ResourceHandleMac.mm:
  41304. * platform/network/qt/ResourceHandleManagerQt.cpp:
  41305. * platform/network/qt/ResourceHandleQt.cpp:
  41306. (WebCore::ResourceHandle::start):
  41307. * platform/qt/MimeTypeRegistryQt.cpp:
  41308. (WebCore::MimeTypeRegistry::getMIMETypeForPath):
  41309. * platform/qt/PopupMenuQt.cpp:
  41310. * platform/qt/ScrollViewCanvasQt.cpp:
  41311. * platform/qt/ScrollViewQt.cpp:
  41312. * platform/win/TemporaryLinkStubs.cpp:
  41313. * rendering/InlineTextBox.cpp:
  41314. (WebCore::InlineTextBox::paintCustomHighlight):
  41315. * rendering/RenderBox.cpp:
  41316. (WebCore::RenderBox::paintCustomHighlight):
  41317. * rendering/RootInlineBox.cpp:
  41318. (WebCore::RootInlineBox::addHighlightOverflow):
  41319. (WebCore::RootInlineBox::paintCustomHighlight):
  41320. 2007-02-18 Oliver Hunt <oliver@apple.com>
  41321. Reviewed by NOBODY (Buildfix).
  41322. Oops, missed a 'const'
  41323. * platform/qt/ClipboardQt.h:
  41324. 2007-02-18 Oliver Hunt <oliver@apple.com>
  41325. Reviewed by Adam.
  41326. Adding stubbed out implementation of Clipboard for Qt to stop
  41327. it crashing whenever someone drags the mouse.
  41328. * WebCore.pro:
  41329. * page/qt/EventHandlerQt.cpp:
  41330. (WebCore::EventHandler::createDraggingClipboard):
  41331. * platform/qt/ClipboardQt.cpp: Added.
  41332. (WebCore::ClipboardQt::ClipboardQt):
  41333. (WebCore::ClipboardQt::clearData):
  41334. (WebCore::ClipboardQt::clearAllData):
  41335. (WebCore::ClipboardQt::getData):
  41336. (WebCore::ClipboardQt::setData):
  41337. (WebCore::ClipboardQt::types):
  41338. (WebCore::ClipboardQt::dragLocation):
  41339. (WebCore::ClipboardQt::dragImage):
  41340. (WebCore::ClipboardQt::setDragImage):
  41341. (WebCore::ClipboardQt::dragImageElement):
  41342. (WebCore::ClipboardQt::setDragImageElement):
  41343. (WebCore::ClipboardQt::createDragImage):
  41344. (WebCore::ClipboardQt::declareAndWriteDragImage):
  41345. (WebCore::ClipboardQt::writeURL):
  41346. (WebCore::ClipboardQt::writeRange):
  41347. (WebCore::ClipboardQt::hasData):
  41348. * platform/qt/ClipboardQt.h: Added.
  41349. (WebCore::ClipboardQt::~ClipboardQt):
  41350. (WebCore::ClipboardQt::isForDragging):
  41351. 2007-02-18 Oliver Hunt <oliver@apple.com>
  41352. Reviewed by Adam.
  41353. Don't even attempt to do a document based drag if there isn't a document
  41354. Fixes rdar://problem/4960109
  41355. * page/DragController.cpp:
  41356. (WebCore::DragController::tryDocumentDrag):
  41357. Null check m_document
  41358. (WebCore::DragController::tryDHTMLDrag):
  41359. ASSERT(m_document) -- tryDocumentDrag is the only
  41360. thing that will ever call us, but lets play it safe
  41361. 2007-02-18 Adam Roben <aroben@apple.com>
  41362. Reviewed by Hyatt.
  41363. A little preparation for <rdar://problem/5006872>.
  41364. * platform/PopupMenu.h:
  41365. 2007-02-18 Alexey Proskuryakov <ap@webkit.org>
  41366. Reviewed by Adele.
  41367. http://bugs.webkit.org/show_bug.cgi?id=12807
  41368. XPath incorrectly converts NaN to boolean
  41369. Test: fast/xpath/nan-to-boolean.html
  41370. * xml/XPathValue.cpp:
  41371. (WebCore::XPath::Value::toBoolean): Convert NaN to false.
  41372. * xml/XPathFunctions.cpp:
  41373. (WebCore::XPath::FunSubstringAfter::doEvaluate): Fix substring-after to actually work.
  41374. 2007-02-18 Mitz Pettel <mitz@webkit.org>
  41375. Reviewed by Hyatt.
  41376. - fix http://bugs.webkit.org/show_bug.cgi?id=12123
  41377. REGRESSION: Incomplete repaint of floats' overflows
  41378. Tests: fast/repaint/float-overflow.html
  41379. fast/repaint/float-overflow-right.html
  41380. fast/repaint/table-cell-vertical-overflow.html
  41381. - fix http://bugs.webkit.org/show_bug.cgi?id=10116
  41382. REGRESSION: Menu item drawn 2 pixels short on WWDC 2006 Attendee Site
  41383. Reflected in existing test results.
  41384. Unified floats and overflow for the purposes of painting and hit-testing.
  41385. Overhanging and overflowing floats are now factored into a block's overflow
  41386. unless their painting has been propagated to an ancestor.
  41387. Changed table cells to no longer expand to enclose overflow, thus making
  41388. it purely "visual overflow", having no effect on layout in WebCore. It
  41389. still determines scrolling dimensions.
  41390. * rendering/InlineFlowBox.cpp:
  41391. (WebCore::InlineFlowBox::placeBoxesHorizontally): Include inline blocks'
  41392. horizontal overflow in the inline box's dimensions.
  41393. * rendering/RenderBlock.cpp:
  41394. (WebCore::RenderBlock::layoutBlock): Removed the expand to enclose overflows
  41395. behavior. Added code to add this block's floats (and their overflow) to its
  41396. overflow rect if it is not in a block formatting context. Otherwise, the
  41397. inclusion of floats in the overflow is deferred until this block's parent
  41398. examines its floats and possibly adopts overhanging floats.
  41399. (WebCore::RenderBlock::layoutBlockChildren):
  41400. (WebCore::RenderBlock::paint):
  41401. (WebCore::RenderBlock::floatRect): Made non-virtual and changed to return an empty
  41402. rect if there are no floats or the floats are clipped, instead of returning the border
  41403. box.
  41404. (WebCore::RenderBlock::addOverhangingFloats): Any floats of the child that
  41405. are not to be painted by the parent are added to the child's overflow rect.
  41406. (WebCore::RenderBlock::addVisualOverflow): Added. Adjusts the overflow
  41407. bounds to include the given rect.
  41408. (WebCore::RenderBlock::nodeAtPoint):
  41409. * rendering/RenderBlock.h:
  41410. * rendering/RenderFlexibleBox.cpp:
  41411. (WebCore::RenderFlexibleBox::layoutBlock):
  41412. (WebCore::RenderFlexibleBox::layoutHorizontalBox): After placing a normal
  41413. child, add its floats to its overflow, since painting of floats does not
  41414. propagate to flexible boxes.
  41415. (WebCore::RenderFlexibleBox::layoutVerticalBox): Ditto.
  41416. * rendering/RenderForeignObject.cpp:
  41417. (WebCore::RenderForeignObject::layout):
  41418. * rendering/RenderHTMLCanvas.cpp:
  41419. (WebCore::RenderHTMLCanvas::layout):
  41420. * rendering/RenderImage.cpp:
  41421. (WebCore::RenderImage::layout):
  41422. * rendering/RenderLayer.cpp:
  41423. (WebCore::RenderLayer::updateLayerPositions):
  41424. (WebCore::RenderLayer::absoluteBoundingBox):
  41425. * rendering/RenderLayer.h:
  41426. * rendering/RenderObject.cpp:
  41427. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  41428. * rendering/RenderObject.h:
  41429. (WebCore::RenderObject::expandsToEncloseOverhangingFloats):
  41430. * rendering/RenderPath.cpp:
  41431. (WebCore::RenderPath::layout):
  41432. * rendering/RenderSVGContainer.cpp:
  41433. (WebCore::RenderSVGContainer::layout):
  41434. * rendering/RenderSVGText.cpp:
  41435. (WebCore::RenderSVGText::layout):
  41436. * rendering/RenderTable.h: Removed the override of overflowHeight() since now tables can have
  41437. vertical overflow.
  41438. * rendering/RenderTableCell.cpp:
  41439. (WebCore::RenderTableCell::paint): Made sure that overflow is repainted.
  41440. * rendering/RenderTableCell.h:
  41441. (WebCore::RenderTableCell::expandsToEncloseOverhangingFloats): Removed.
  41442. * rendering/RenderTableSection.cpp:
  41443. (WebCore::RenderTableSection::RenderTableSection):
  41444. (WebCore::RenderTableSection::layoutRows): Factor in vertical overflow from cells.
  41445. (WebCore::RenderTableSection::paint):
  41446. * rendering/RenderTableSection.h:
  41447. (WebCore::RenderTableSection::overflowHeight):
  41448. (WebCore::RenderTableSection::overflowTop):
  41449. 2007-02-18 Oliver Hunt <oliver@apple.com>
  41450. Reviewed by NOBODY (Buildfix).
  41451. Build fix for the build fix -- can't call something that isn't a function
  41452. * platform/qt/CursorQt.cpp:
  41453. (WebCore::notAllowedCursor):
  41454. 2007-02-18 Oliver Hunt <oliver@apple.com>
  41455. Reviewed by NOBODY (Build fix).
  41456. Adding platform/DragImage.cpp and platform/qt/DragImageQt.cpp to the Qt
  41457. project files
  41458. Stubbed method for WebCore::notAllowedCursor -- not sure what it should return,
  41459. have returned blank cursor, possibly needs to return something else
  41460. * WebCore.pro:
  41461. * platform/qt/CursorQt.cpp:
  41462. (WebCore::notAllowedCursor):
  41463. 2007-02-18 Oliver Hunt <oliver@apple.com>
  41464. Reviewed by NOBODY (Buildfix).
  41465. Sigh, obnoxious occasional auto conversion from float to int
  41466. * platform/mac/ClipboardMac.mm:
  41467. (WebCore::ClipboardMac::createDragImage):
  41468. 2007-02-18 Alexey Proskuryakov <ap@webkit.org>
  41469. Reviewed by Hyatt.
  41470. http://bugs.webkit.org/show_bug.cgi?id=12799
  41471. REGRESSION: Webpage doesn't load correctly (www.cincinnati.com
  41472. redirects to the wrong URL)
  41473. Test: http/tests/misc/refresh-meta-with-newline.html
  41474. * platform/network/HTTPParsers.cpp:
  41475. (WebCore::skipWhiteSpace):
  41476. (WebCore::parseHTTPRefresh):
  41477. * platform/network/HTTPParsers.h:
  41478. In HTML, all characters with codes <= 0x20 are whitespace, while in
  41479. HTTP, only space and tab are such.
  41480. * dom/Document.cpp:
  41481. (WebCore::Document::processHttpEquiv):
  41482. * loader/FrameLoader.cpp:
  41483. (WebCore::FrameLoader::receivedFirstData):
  41484. Pass parseHTTPRefresh() a flag telling about the source of data.
  41485. 2007-02-18 Oliver Hunt <oliver@apple.com>
  41486. Reviewed by NOBODY (Build fix).
  41487. Buld fix -- surprisingly RetainPtr doesn't exist on Qt
  41488. * platform/DragImage.h:
  41489. 2007-02-18 Oliver Hunt <oliver@apple.com>
  41490. Reviewed by Adam.
  41491. More drag and drop migration, now the entirety of the
  41492. drag initiation logic has been rendered platform independent
  41493. This has required a number of new interfaces, and a reasonable
  41494. amount of logic migration.
  41495. As a side effect, this patch also fixes rdar://problem/4945341
  41496. There are some basic Qt stubs that should stop the build from failing,
  41497. however the absence of ClipboardQt means any attempt to initiate a drag
  41498. may cause a crash.
  41499. * WebCore.exp:
  41500. Exporting new symbols
  41501. * WebCore.xcodeproj/project.pbxproj:
  41502. New files
  41503. * dom/Clipboard.cpp:
  41504. (WebCore::Clipboard::canSaveAsWebArchive):
  41505. Migrated from WebKit
  41506. * dom/Clipboard.h:
  41507. Added more methods to allow Clipboard to be used as a
  41508. platform independent container for drag and drop
  41509. * page/DragClient.h:
  41510. (WebCore::DragClient::declareAndWriteDragImage):
  41511. This is a mac only helper function, so i've made it have an empty implementation,
  41512. that way we won't need a PLATFORM(MAC) block in SVGImageEmptyClients
  41513. * page/DragController.cpp:
  41514. (WebCore::DragController::dragExited):
  41515. (WebCore::DragController::performDrag):
  41516. (WebCore::DragController::tryDocumentDrag):
  41517. (WebCore::DragController::tryDHTMLDrag):
  41518. Using RefPtrs now
  41519. (WebCore::getCachedImage):
  41520. (WebCore::getImage):
  41521. Helper functions
  41522. (WebCore::dragLocForDHTMLDrag):
  41523. (WebCore::dragLocForSelectionDrag):
  41524. (WebCore::DragController::startDrag):
  41525. (WebCore::DragController::doImageDrag):
  41526. (WebCore::DragController::doSystemDrag):
  41527. Logic that generates drag images and clipboard content, and
  41528. initiates the actual system drag operation
  41529. * page/DragController.h:
  41530. Method and variable declarations
  41531. * page/EventHandler.cpp:
  41532. (WebCore::EventHandler::handleDrag):
  41533. handleDrag is now platform independent
  41534. (WebCore::EventHandler::handleTextInputEvent):
  41535. formatting
  41536. * page/EventHandler.h:
  41537. (WebCore::EventHandler::eventLoopHandleMouseDragged):
  41538. Forgot to define this stub function
  41539. * page/Frame.h:
  41540. Declaring dragImageForSelection to provide drag image for selected content
  41541. * page/mac/DragControllerMac.mm:
  41542. Defining drag images control vars
  41543. * page/mac/EventHandlerMac.mm:
  41544. (WebCore::EventHandler::createDraggingClipboard):
  41545. Migrated old clipboard creation to here
  41546. * page/mac/FrameMac.mm:
  41547. (WebCore::Frame::dragImageForSelection):
  41548. Wrap FrameMac::selectionImage
  41549. * page/qt/DragControllerQt.cpp:
  41550. Defining drag images control vars
  41551. * page/qt/EventHandlerQt.cpp:
  41552. (WebCore::EventHandler::createDraggingClipboard):
  41553. stub
  41554. * page/qt/FrameQt.cpp:
  41555. (WebCore::Frame::dragImageForSelection):
  41556. stub
  41557. * platform/DragImage.cpp: Added.
  41558. (WebCore::fitDragImageToMaxSize):
  41559. (WebCore::createDragImageForSelection):
  41560. Platform independent processing for drag images
  41561. * platform/DragImage.h: Added.
  41562. Declaring typedefs and wrapper functions to abstract the handling
  41563. of drag images
  41564. * platform/Pasteboard.h:
  41565. Declaring extracted writeURL and writeSelection methods
  41566. * platform/graphics/svg/SVGImageEmptyClients.h:
  41567. (WebCore::SVGEmptyDragClient::willPerformDragSourceAction):
  41568. (WebCore::SVGEmptyDragClient::startDrag):
  41569. (WebCore::SVGEmptyDragClient::createDragImageForLink):
  41570. Stubs FTW!
  41571. * platform/mac/ClipboardMac.h:
  41572. (WebCore::ClipboardMac::pasteboard):
  41573. Provide accessor for underlying NSPasteboard
  41574. * platform/mac/ClipboardMac.mm:
  41575. (WebCore::ClipboardMac::hasData):
  41576. (WebCore::ClipboardMac::writeRange):
  41577. (WebCore::ClipboardMac::writeURL):
  41578. (WebCore::ClipboardMac::declareAndWriteDragImage):
  41579. (WebCore::ClipboardMac::createDragImage):
  41580. Implemented new Clipboarid functionality.
  41581. (WebCore::ClipboardMac::dragNSImage):
  41582. Made this a const method
  41583. * platform/mac/DragImageMac.mm: Added.
  41584. (WebCore::dragImageSize):
  41585. (WebCore::deleteDragImage):
  41586. (WebCore::scaleDragImage):
  41587. (WebCore::dissolveDragImageToFraction):
  41588. (WebCore::createDragImageFromImage):
  41589. (WebCore::createDragImageIconForCachedImage):
  41590. Implemented platform specific DragImage functions
  41591. * platform/mac/PasteboardMac.mm:
  41592. (WebCore::writeSelection):
  41593. (WebCore::Pasteboard::writeSelection):
  41594. (WebCore::writeURL):
  41595. (WebCore::Pasteboard::writeURL):
  41596. Extracted member implementations of these functions, so that
  41597. Clipboard could also make use of this functionality.
  41598. Pasteboard methods now call the new non-member implementations.
  41599. Also fixed implementations to respect the list of requested types.
  41600. * platform/qt/DragImageQt.cpp: Added.
  41601. (WebCore::dragImageSize):
  41602. (WebCore::deleteDragImage):
  41603. (WebCore::scaleDragImage):
  41604. (WebCore::dissolveDragImageToFraction):
  41605. (WebCore::createDragImageFromImage):
  41606. (WebCore::createDragImageIconForCachedImage):
  41607. Stubs
  41608. 2007-02-17 David Hyatt <hyatt@apple.com>
  41609. Fix textarea resizers to not fill with black by making sure the fill color starts off as
  41610. transparent instead of black.
  41611. Reviewed by aroben
  41612. * platform/graphics/GraphicsContext.cpp:
  41613. (WebCore::GraphicsContextState::GraphicsContextState):
  41614. 2007-02-17 Lars Knoll <lars@trolltech.com>
  41615. Reviewed by Adam.
  41616. fix http://bugs.webkit.org/show_bug.cgi?id=11476
  41617. <rdar://problem/4960247> REGRESSION: Nesting the IMG tag inside of a
  41618. MAP fails to render correctly in ToT
  41619. Test: fast/images/image-in-map.html
  41620. * html/HTMLMapElement.cpp:
  41621. (WebCore::HTMLMapElement::checkDTD):
  41622. 2007-02-17 Alexey Proskuryakov <ap@webkit.org>
  41623. Reviewed by Maciej.
  41624. http://bugs.webkit.org/show_bug.cgi?id=12733
  41625. XPath namespace is attached to a wrong step
  41626. * xml/XPathGrammar.y: NAMETEST is different from other NodeTests in that its
  41627. resulting type is an expanded name, rather than a string. It is not really possible
  41628. to store the namespace inside Parser, because it gets used in wrong steps then.
  41629. * xml/XPathParser.cpp:
  41630. (WebCore::XPath::Parser::expandQName):
  41631. * xml/XPathParser.h:
  41632. Moved code that expands a QName from XPathGrammar.y. Removed m_currentNamespaceURI.
  41633. * xml/XPathStep.cpp:
  41634. (WebCore::XPath::Step::Step):
  41635. * xml/XPathStep.h:
  41636. Added a constructor that takes a namespace.
  41637. 2007-02-17 Mitz Pettel <mitz@webkit.org>
  41638. Reviewed by Maciej.
  41639. - fix http://bugs.webkit.org/show_bug.cgi?id=12479
  41640. ASSERTION FAILURE: resource->inCache() in WebCore::Cache::remove
  41641. Test: fast/loader/simultaneous-reloads-assert.html
  41642. * loader/Cache.cpp:
  41643. (WebCore::Cache::remove): Replaced the assertion with a check whether the
  41644. resource is in the cache. The resource could have been removed from the cache
  41645. as a result of a reload occurring simultaneously in a different document.
  41646. 2007-02-12 Lars Naesbye Christensen <lars@naesbye.dk>
  41647. Reviewed by Adam.
  41648. Fix for http://bugs.webkit.org/show_bug.cgi?id=12711
  41649. Prettier and more distinct cursors
  41650. * Resources/crossHairCursor.png: Added.
  41651. * Resources/northEastSouthWestResizeCursor.png:
  41652. * Resources/northWestSouthEastResizeCursor.png:
  41653. * Resources/notAllowedCursor.png: Added.
  41654. * page/EventHandler.cpp: (WebCore::selectCursor):
  41655. * platform/Cursor.h:
  41656. * platform/mac/CursorMac.mm:
  41657. (WebCore::crossCursor):
  41658. (WebCore::notAllowedCursor):
  41659. 2007-02-16 Mitz Pettel <mitz@webkit.org>
  41660. Reviewed by Darin.
  41661. - fix http://bugs.webkit.org/show_bug.cgi?id=12780
  41662. REGRESSION (r19341-r19385): Reproducible crash in "onselectstart" event
  41663. Test: fast/events/shadow-boundary-crossing.html
  41664. * dom/EventTargetNode.cpp:
  41665. (WebCore::EventTargetNode::dispatchGenericEvent): Changed to use the new
  41666. eventParentNode() function for constructing the chain of ancestors for
  41667. capture and bubbling.
  41668. * dom/Node.h:
  41669. (WebCore::Node::eventParentNode): Added. Returns the node's parent for the
  41670. purpose of of event capture and bubbling. The base class implementation is
  41671. to return the parent node.
  41672. * ksvg2/svg/SVGElement.h:
  41673. (WebCore::SVGElement::eventParentNode): Added. Since in SVG events bubble
  41674. to and can be captured across the shadow DOM boundary, returns the shadow parent
  41675. for shadow nodes.
  41676. 2007-02-17 Dave Hyatt <hyatt@apple.com>
  41677. Change how textarea resizers paint to more closely match the way the main window resizer paints.
  41678. Reviewed by olliej
  41679. * rendering/RenderLayer.cpp:
  41680. (WebCore::RenderLayer::paintOverflowControls):
  41681. 2007-02-17 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  41682. Reviewed by Adam Roben.
  41683. Fix crashes on ARM due to different struct packing. Based on a patch
  41684. from Mike Emmel.
  41685. * platform/DeprecatedString.cpp: compile-time assert to make sure sizeof(DeprecatedChar) == 2
  41686. * platform/DeprecatedString.h: pack DeprecatedChar struct to ensure that
  41687. sizeof(DeprecatedChar) == 2. Move _internalBuffer in DeprecatedStringData
  41688. to the end, to avoid crashes on ARM due to different struct packing.
  41689. 2007-02-16 Adele Peterson <adele@apple.com>
  41690. Reviewed by Mitz.
  41691. Fix for http://bugs.webkit.org/show_bug.cgi?id=11534
  41692. <rdar://problem/4946947> REGRESSION: Readonly text fields don't scroll when selecting content
  41693. Test: fast/forms/input-readonly-autoscroll.html
  41694. Implemented autoscroll methods for RenderTextControl, so this works on non-editable text controls.
  41695. * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::autoscroll):
  41696. * rendering/RenderTextControl.h: (WebCore::RenderTextControl::shouldAutoscroll):
  41697. 2007-02-17 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  41698. Reviewed by Adam Roben.
  41699. Curl networking improvements inspired by Mike Emmel's patches in
  41700. http://bugs.webkit.org/show_bug.cgi?id=11332.
  41701. Fix FrameLoaderClientGdk due to changed FrameLoaderClient API.
  41702. * loader/gdk/FrameLoaderClientGdk.cpp: Massage for changed API.
  41703. (WebCore::FrameLoaderClientGdk::saveViewStateToItem):
  41704. (WebCore::FrameLoaderClientGdk::restoreViewState):
  41705. (WebCore::FrameLoaderClientGdk::generatedMIMETypeForURLScheme):
  41706. (WebCore::FrameLoaderClientGdk::willUseArchive):
  41707. * loader/gdk/FrameLoaderClientGdk.h: Ditto.
  41708. * platform/network/ResourceHandleInternal.h: Remember url and custom headers
  41709. for the request lifetime and free them at the end.
  41710. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  41711. * platform/network/gdk/ResourceHandleCurl.cpp: Ditto.
  41712. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  41713. * platform/network/gdk/ResourceHandleManager.cpp: url improvements:
  41714. - remove m_useSimple code-path since it wasn't used anywhere
  41715. - don't use hashmap for keeping track of outstanding jobs - curl does it anyway
  41716. - set custom headers from request
  41717. - enable gzip and deflate through Accept-Encoding
  41718. - setup curl to share cookies and DNS cache between requests
  41719. - enable persisting of cookies in a file (if client provides file name
  41720. for cookies via ResourceHandleManager::setCookieJarFileName())
  41721. (WebCore::ResourceHandleManager::ResourceHandleManager):
  41722. (WebCore::ResourceHandleManager::setCookieJarFileName):
  41723. (WebCore::ResourceHandleManager::downloadTimerCallback):
  41724. (WebCore::ResourceHandleManager::removeFromCurl):
  41725. (WebCore::ResourceHandleManager::setupPUT):
  41726. (WebCore::ResourceHandleManager::setupPOST):
  41727. (WebCore::ResourceHandleManager::add):
  41728. (WebCore::ResourceHandleManager::cancel):
  41729. * platform/network/gdk/ResourceHandleManager.h:
  41730. 2007-02-17 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  41731. Reviewed by Adam Roben.
  41732. Gdk fixes.
  41733. * page/gdk/EventHandlerGdk.cpp: Comment out chatty message.
  41734. (WebCore::EventHandler::handleDrag):
  41735. * platform/gdk/EditorClientGdk.cpp: Enable entering text into text field.
  41736. (WebCore::EditorClientGdk::shouldInsertText):
  41737. 2007-02-16 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  41738. Reviewed by Adam Roben.
  41739. Move Path implementation from TemporaryLinkStubs.cpp to
  41740. its own file.
  41741. Implement setLineCap, setLineJoin and setMiterLimit for
  41742. cairo's GraphicsContext.
  41743. * WebCoreSources.bkl:
  41744. * platform/gdk/TemporaryLinkStubs.cpp:
  41745. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  41746. (WebCore::GraphicsContext::setPlatformFillColor):
  41747. (WebCore::GraphicsContext::setPlatformStrokeColor):
  41748. (WebCore::GraphicsContext::setLineCap):
  41749. (WebCore::GraphicsContext::setLineJoin):
  41750. (WebCore::GraphicsContext::setMiterLimit):
  41751. * platform/graphics/cairo/PathCairo.cpp: Added.
  41752. (WebCore::Path::Path):
  41753. (WebCore::Path::~Path):
  41754. (WebCore::Path::contains):
  41755. (WebCore::Path::translate):
  41756. (WebCore::Path::boundingRect):
  41757. (WebCore::Path::operator=):
  41758. (WebCore::Path::clear):
  41759. (WebCore::Path::moveTo):
  41760. (WebCore::Path::addLineTo):
  41761. (WebCore::Path::addQuadCurveTo):
  41762. (WebCore::Path::addBezierCurveTo):
  41763. (WebCore::Path::addArcTo):
  41764. (WebCore::Path::closeSubpath):
  41765. (WebCore::Path::addArc):
  41766. (WebCore::Path::addRect):
  41767. (WebCore::Path::addEllipse):
  41768. (WebCore::Path::transform):
  41769. (WebCore::Path::apply):
  41770. 2007-02-16 Ada Chan <adachan@apple.com>
  41771. Reviewed by Adam and Maciej.
  41772. Use a RefPtr to store the old hover node.
  41773. * rendering/RenderLayer.cpp:
  41774. (WebCore::RenderLayer::updateHoverActiveState):
  41775. 2007-02-16 Darin Adler <darin@apple.com>
  41776. Reviewed by Adele.
  41777. - fix <rdar://problem/4990864> ASSERT in FormDelegate.m while dragging text between frames
  41778. This symptom is specific to Safari, so no layout test.
  41779. * editing/DeleteSelectionCommand.cpp:
  41780. (WebCore::DeleteSelectionCommand::doApply): Only call textWillBeDeletedInTextField if the
  41781. text field is focused.
  41782. * html/HTMLInputElement.cpp:
  41783. (WebCore::HTMLInputElement::aboutToUnload): Only call textFieldDidEndEditing if the text
  41784. field is focused.
  41785. (WebCore::HTMLInputElement::dispatchBlurEvent): Remove unneeded type cast.
  41786. (WebCore::HTMLInputElement::defaultEventHandler): Only call doTextFieldCommandFromEvent if
  41787. the text field is focused.
  41788. * rendering/RenderTextControl.cpp:
  41789. (WebCore::RenderTextControl::subtreeHasChanged): Only call textDidChangeInTextArea,
  41790. textFieldDidBeginEditing, and textDidChangeInTextField if the element is focused.
  41791. 2007-02-16 Anders Carlsson <acarlsson@apple.com>
  41792. Reviewed by Adam.
  41793. <rdar://problem/4943985>
  41794. REGRESSION: Dragging standalone images to Finder fails to download the image file
  41795. Set the data and response on the image resource. Also, since this is platform-independent we don't need to do it in
  41796. ImageDocumentMac.mm
  41797. * loader/ImageDocument.cpp:
  41798. (WebCore::ImageTokenizer::finish):
  41799. * loader/mac/ImageDocumentMac.h:
  41800. * loader/mac/ImageDocumentMac.mm:
  41801. (WebCore::finishImageLoad):
  41802. 2007-02-16 David Harrison <harrison@apple.com>
  41803. Reviewed by Adam.
  41804. <rdar://problem/5004746> Need mechanism to protect against WebKit calls from secondary threads (DOM APIs)
  41805. * platform/mac/LoggingMac.mm:
  41806. (WebCore::_WebCoreThreadViolationCheck):
  41807. Change the default to log the violations.
  41808. 2007-02-16 Adele Peterson <adele@apple.com>
  41809. Reviewed by Mitz.
  41810. Fixed: http://bugs.webkit.org/show_bug.cgi?id=12768
  41811. <rdar://problem/4995250> REGRESSION: Crash occurs at WebCore::RenderLayer::scrollToOffset() when leaving page that has focus in field
  41812. No test case added. This crash doesn't occur in DumpRenderTree because the B/F cache is turned off.
  41813. * dom/Node.cpp: (WebCore::Node::willRemove): Check that the document is not in the page cache before
  41814. * dom/Element.cpp: (WebCore::Element::updateFocusAppearance): Added restorePreviousSelection argument, with appropriate default values.
  41815. * dom/Element.h: ditto.
  41816. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::updateFocusAppearance): ditto.
  41817. * html/HTMLInputElement.h: ditto.
  41818. * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::updateFocusAppearance): ditto.
  41819. * html/HTMLTextAreaElement.h: ditto.
  41820. * page/PageState.cpp: (WebCore::PageState::restore): Call updateFocusAppearance on the focused node for this page. Pass true for the
  41821. restorePreviousSelection argument.
  41822. * rendering/RenderLayer.cpp: Added ASSERTS and nil checks on the RenderView. It shouldn't be null, but if it is,
  41823. we'll fail silently on release builds.
  41824. (WebCore::RenderLayer::updateLayerPositions):
  41825. (WebCore::RenderLayer::scrollToOffset):
  41826. (WebCore::RenderLayer::windowClipRect):
  41827. (WebCore::RenderLayer::calculateClipRects):
  41828. (WebCore::RenderLayer::calculateRects):
  41829. (WebCore::RenderLayer::intersectsDamageRect):
  41830. (WebCore::RenderLayer::absoluteBoundingBox):
  41831. 2007-02-16 Anders Carlsson <acarlsson@apple.com>
  41832. Reviewed by Darin.
  41833. <rdar://problem/4993055> auto_refcount_underflow_error: WebCore::FrameLoader::continueAfterNavigationPolicy () over-releases under GC
  41834. Add ::adoptNS and ::adoptCF methods to RetainPtr to indicate what type of reference to adopt.
  41835. * platform/cf/RetainPtr.h:
  41836. (WebCore::):
  41837. (WebCore::adoptNSReference):
  41838. (WebCore::RetainPtr::RetainPtr):
  41839. (WebCore::::adoptCF):
  41840. (WebCore::::adoptNS):
  41841. * platform/mac/FileChooserMac.mm:
  41842. (WebCore::FileChooser::FileChooser):
  41843. * platform/network/mac/ResourceErrorMac.mm:
  41844. (WebCore::ResourceError::operator NSError*):
  41845. * platform/network/mac/ResourceRequestMac.mm:
  41846. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  41847. * platform/network/mac/ResourceResponseMac.mm:
  41848. (WebCore::ResourceResponse::nsURLResponse):
  41849. 2007-02-15 Brady Eidson <beidson@apple.com>
  41850. Reviewed by Lost Objective-C Hippyness (or hippiness)
  41851. Oh boy, did I ever botch this one up...
  41852. * loader/FrameLoader.cpp:
  41853. (WebCore::FrameLoader::saveScrollPositionAndViewStateToItem): Null check the FrameView
  41854. 2007-02-15 Brady Eidson <beidson@apple.com>
  41855. Reviewed by Adam's complaint
  41856. Adam wanted me to do an early return, instead.
  41857. * loader/FrameLoader.cpp:
  41858. (WebCore::FrameLoader::saveScrollPositionAndViewStateToItem):
  41859. 2007-02-15 Brady Eidson <beidson@apple.com>
  41860. Reviewed by Adele
  41861. Forgot to bring the null check with me when I backed this code out of
  41862. the FrameLoaderClient
  41863. * loader/FrameLoader.cpp:
  41864. (WebCore::FrameLoader::saveScrollPositionAndViewStateToItem): null check the HistoryItem
  41865. 2007-02-15 Brady Eidson <beidson@apple.com>
  41866. Reviewed by Adam
  41867. Save scroll state for back/forward navigation in FrameLoader, not the client
  41868. * loader/FrameLoader.cpp:
  41869. (WebCore::FrameLoader::saveScrollPositionAndViewStateToItem): Actually save the scroll position
  41870. here instead of asking the FrameLoaderClient
  41871. (WebCore::FrameLoader::restoreScrollPositionAndViewState): Ditto
  41872. * loader/FrameLoaderClient.h: Renamed/repurposed 2 methods
  41873. * platform/graphics/svg/SVGImageEmptyClients.h:
  41874. (WebCore::SVGEmptyFrameLoaderClient::restoreViewState): Ditto
  41875. (WebCore::SVGEmptyFrameLoaderClient::saveViewStateToItem): Ditto
  41876. 2007-02-15 Justin Garcia <justin.garcia@apple.com>
  41877. Reviewed by harrison
  41878. <rdar://problem/4989774>
  41879. REGRESSION: Pasting a image into a plain text message can place image on a new line
  41880. <span><img><span><img></span></span> will appear as two
  41881. images on different lines because of a layout/rendering
  41882. bug. This patch avoids the bug by producing cleaner
  41883. markup so that the paste code can safely remove the style
  41884. spans.
  41885. * editing/markup.cpp:
  41886. (WebCore::createMarkup): Get the default style from the
  41887. editable root or body instead of the document element.
  41888. This produces cleaner markup since we don't inline the
  41889. root's styles.
  41890. 2007-02-15 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  41891. Reviewed by Adam Roben.
  41892. Add gdk version of ContextMenuClient based on qt version.
  41893. * WebCoreSources.bkl:
  41894. * page/gdk/ContextMenuClientGdk.cpp: Added.
  41895. (WebCore::ContextMenuClientGdk::contextMenuDestroyed):
  41896. (WebCore::ContextMenuClientGdk::getCustomMenuFromDefaultItems):
  41897. (WebCore::ContextMenuClientGdk::contextMenuItemSelected):
  41898. (WebCore::ContextMenuClientGdk::downloadURL):
  41899. (WebCore::ContextMenuClientGdk::copyImageToClipboard):
  41900. (WebCore::ContextMenuClientGdk::searchWithGoogle):
  41901. (WebCore::ContextMenuClientGdk::lookUpInDictionary):
  41902. (WebCore::ContextMenuClientGdk::speak):
  41903. (WebCore::ContextMenuClientGdk::stopSpeaking):
  41904. * page/gdk/ContextMenuClientGdk.h: Added.
  41905. * webcore-base.bkl: curl is needed when building webcore_base files.
  41906. 2007-02-15 Kevin Decker <kdecker@apple.com>
  41907. Reviewed by Darin.
  41908. Fixed: <rdar://problem/4983883> Background of a .mov window should not be white
  41909. * loader/PluginDocument.cpp:
  41910. (WebCore::PluginTokenizer::createDocumentStructure): Set a background color of gray
  41911. for full frame plug-ins, which makes it easier on the eyes. It's also the same
  41912. gray that PDFKit uses, too.
  41913. 2007-02-15 Mitz Pettel <mitz@webkit.org>
  41914. Reviewed by Darin.
  41915. - fix http://bugs.webkit.org/show_bug.cgi?id=12625
  41916. REGRESSION: Crash when closing the web inspector with text selected
  41917. The problem was that selectionRect() was being called on a render tree that
  41918. had pending style changes. The changes were committed as a side effect in
  41919. the middle of traversing the render tree, and the current object got
  41920. deleted as a result. The solution is to update the render tree before
  41921. starting to traverse it.
  41922. The inspector was affected because it makes style changes in response to
  41923. an AppKit notification that's sent right before the windowDidResignKey:
  41924. notification, under which WebKit calls selectionRect(). I couldn't recreate
  41925. the same conditions (having uncommitted style changes in the tree when the
  41926. window becomes inactive) using HTML/JS in Safari, hence the lack of
  41927. a regression test to go with this patch.
  41928. * rendering/RenderView.cpp:
  41929. (WebCore::RenderView::selectionRect): Added call to updateRendering().
  41930. 2007-02-15 Mitz Pettel <mitz@webkit.org>
  41931. Reviewed by Darin.
  41932. - fix http://bugs.webkit.org/show_bug.cgi?id=10127
  41933. REGRESSION: Crash undoing delete in textarea
  41934. Document::removeMarkers() was using a Vector iterator (which is just a
  41935. pointer) and inserting into the Vector at the same time, which made the
  41936. iterator invalid as the Vector's data buffer was relocated.
  41937. Replaced all instances of Vector<DocumentMarker>::iterator with indices.
  41938. * dom/Document.cpp:
  41939. (WebCore::Document::addMarker):
  41940. (WebCore::Document::copyMarkers):
  41941. (WebCore::Document::removeMarkers):
  41942. (WebCore::Document::repaintMarkers):
  41943. (WebCore::Document::shiftMarkers):
  41944. 2007-02-15 Mitz Pettel <mitz@webkit.org>
  41945. Reviewed by Darin.
  41946. - http://bugs.webkit.org/show_bug.cgi?id=12777
  41947. REGRESSION (r18574): User profile pages display incorrectly at ebay.ca
  41948. Fixes existing layout tests: tables/mozilla/bugs/bug45486.html
  41949. tables/mozilla_expected_failures/core/col_span2.html
  41950. * rendering/AutoTableLayout.cpp:
  41951. (WebCore::AutoTableLayout::calcEffectiveWidth): Fixed a mismatch between which
  41952. columns count as percentage columns when adding up the total percent and
  41953. which columns count as percentage columns when converting non-percentage
  41954. columns to effectively-percentage.
  41955. 2007-02-14 Mitz Pettel <mitz@webkit.org>
  41956. Reviewed by Sam Weinig!
  41957. - fix http://bugs.webkit.org/show_bug.cgi?id=12773
  41958. REGRESSION (r19490): Crash on ipx-server.de
  41959. * manual-tests/background-image-change-in-page-cache.html: Added.
  41960. * rendering/RenderBox.cpp:
  41961. (WebCore::RenderBox::imageChanged): Bail out if the object is not in a view,
  41962. which can happen if the document is in the page cache and the same cached
  41963. image used for its background is also being used in another document that
  41964. is currently in view.
  41965. 2007-02-14 Adam Roben <aroben@apple.com>
  41966. Reviewed by Darin.
  41967. Fix http://bugs.webkit.org/show_bug.cgi?id=12517
  41968. <rdar://problem/4971227> REGRESSION: Tab order incorrect when input
  41969. inside frame/iframe gets initial focus (12517)
  41970. Test: fast/events/frame-programmatic-focus.html
  41971. * dom/Element.cpp:
  41972. (WebCore::Element::focus): Call FocusController::setFocusedNode to set
  41973. the focus for the whole page.
  41974. * html/HTMLInputElement.cpp:
  41975. (WebCore::HTMLInputElement::focus): Ditto.
  41976. * html/HTMLTextAreaElement.cpp:
  41977. (WebCore::HTMLTextAreaElement::focus): Ditto.
  41978. * page/EventHandler.cpp:
  41979. (WebCore::EventHandler::handleTextInputEvent): Send the textInput
  41980. event to the same target that was sent the keypress event before it.
  41981. * page/FocusController.cpp:
  41982. (WebCore::FocusController::advanceFocus): Added a FIXME.
  41983. (WebCore::FocusController::setFocusedNode): Added. Sets the focused
  41984. node for a whole page.
  41985. * page/FocusController.h: Added declaration.
  41986. * platform/cf/RetainPtr.h: Removed unused pointer_cast functions.
  41987. 2007-02-14 Justin Garcia <justin.garcia@apple.com>
  41988. Reviewed by adele
  41989. <rdar://problem/4976800>
  41990. Outdent combines 2 separate strings on 2 different lines
  41991. * editing/IndentOutdentCommand.cpp:
  41992. (WebCore::IndentOutdentCommand::outdentParagraph): Add line breaks
  41993. if removing the indented node causes content before or after it to
  41994. collapse into the same paragraph as its content.
  41995. 2007-02-14 Justin Garcia <justin.garcia@apple.com>
  41996. Reviewed by adele
  41997. <rdar://problem/4960120>
  41998. REGRESSION: First Enter key ignored on initial focus of textarea after page load (11967)
  41999. We'd insert a newline, but into an empty div. We need two newlines
  42000. in that case.
  42001. * editing/InsertLineBreakCommand.cpp:
  42002. (WebCore::lineBreakExistsAtPosition): Returns true if there is a
  42003. br or a '\n' in text that preserves newlines at the incoming position.
  42004. (WebCore::InsertLineBreakCommand::doApply): Fixed to handle the empty
  42005. block case, the anonymous block case.
  42006. 2007-02-14 Darin Adler <darin@apple.com>
  42007. Reviewed by Hyatt.
  42008. - test or http://bugs.webkit.org/show_bug.cgi?id=12417
  42009. <rdar://problem/4990046> REGRESSION: pressing "Return" in a <select>
  42010. box does not submit the form (12697)
  42011. Test: fast/forms/select-enter-key.html
  42012. * html/HTMLSelectElement.cpp:
  42013. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
  42014. Add code to submit when someone hits the Enter key.
  42015. 2007-02-14 Anders Carlsson <acarlsson@apple.com>
  42016. Reviewed by Darin.
  42017. <rdar://problem/4960112>
  42018. http://bugs.webkit.org/show_bug.cgi?id=12417
  42019. REGRESSION: "Are you sure you want to send a form again?" sheet is displayed twice (validator.w3.org)
  42020. The problem was that doing a reload would cause the "Cache-Control" HTTP header to be set on the request _after_ the first
  42021. navigation policy delegate callback was called. This would break the request equality check that's used to prevent multiple policy
  42022. delegate callbacks from getting called for the same request. The solution is to set the header as early as possible.
  42023. This patch also fixes some bugs in the ResourceRequest equality operator.
  42024. * loader/FrameLoader.cpp:
  42025. (WebCore::FrameLoader::reload):
  42026. Set the "Cache-Control" header field on the request here.
  42027. * platform/network/FormData.h:
  42028. (WebCore::operator==):
  42029. Short-circuit if the pointers are the same.
  42030. * platform/network/ResourceRequest.cpp:
  42031. (WebCore::operator==):
  42032. Check the equality of the objects, not the pointers.
  42033. 2007-02-14 David Hyatt <hyatt@apple.com>
  42034. Move setPlatformData out of FontFallbackListMac.mm and delete the file. The function was completely
  42035. cross-platform already.
  42036. Reviewed by Ada
  42037. * WebCore.xcodeproj/project.pbxproj:
  42038. * platform/FontFallbackList.cpp:
  42039. (WebCore::FontFallbackList::setPlatformFont):
  42040. 2007-02-14 David Hyatt <hyatt@apple.com>
  42041. Make the Font constructor that takes a FontPlatformData cross-platform, since the implementation was already
  42042. completely cross-platform.
  42043. Reviewed by Ada
  42044. * platform/Font.cpp:
  42045. (WebCore::Font::Font):
  42046. * platform/Font.h:
  42047. * platform/mac/FontMac.mm:
  42048. 2007-02-14 Antti Koivisto <antti@apple.com>
  42049. Reverting http://bugs.webkit.org/show_bug.cgi?id=11974, it causes repainting problems in some cases.
  42050. * rendering/RenderTextControl.h:
  42051. (WebCore::RenderTextControl::avoidsFloats):
  42052. 2007-02-14 Antti Koivisto <antti@apple.com>
  42053. Reviewed by Maciej.
  42054. - fix http://bugs.webkit.org/show_bug.cgi?id=11974
  42055. REGRESSION: Caret drawn over input when smaller than font size on initial focus
  42056. <rdar://problem/4960258>
  42057. Set controlClip for non-search text controls.
  42058. * rendering/RenderTextControl.h:
  42059. (WebCore::RenderTextControl::hasControlClip):
  42060. 2007-02-14 Mitz Pettel <mitz@webkit.org>
  42061. Reviewed by Hyatt.
  42062. - fix http://bugs.webkit.org/show_bug.cgi?id=12726
  42063. REGRESSION (r12073): Text wraps in the middle of a word instead of wrapping at the space before the word
  42064. Test: fast/text/break-word.html
  42065. The wrapW variable used to keep track of the width of the characters scanned
  42066. so far by adding up the widths of individual characters. Because of the
  42067. rounding hack, the total ended up being bigger than the width of the same characters
  42068. when measured together as a single run.
  42069. The fix is to use wrapW only as an upper bound, and once it overflows the line's width,
  42070. fall back on measuring everything from the beginning of the line as one run.
  42071. * rendering/bidi.cpp:
  42072. (WebCore::RenderBlock::findNextLineBreak): Implemented the above fix, including not measuring
  42073. additional single characters once wrapW overflows the line. Also moved the assignment
  42074. to breakNBSP out of the loop since it is constant for the entire text object, made breakWords and
  42075. midWordBreak update only when they might change, and cleaned up a few things.
  42076. 2007-02-14 Antti Koivisto <antti@apple.com>
  42077. Reviewed by Hyatt.
  42078. - fix http://bugs.webkit.org/show_bug.cgi?id=11923
  42079. REGRESSION: Placeholder text in password field shows as bullets
  42080. <rdar://problem/4960257>
  42081. Disable textSecurity when placeholder is visible.
  42082. * rendering/RenderTextControl.cpp:
  42083. (WebCore::RenderTextControl::updatePlaceholder):
  42084. 2007-02-13 Alexey Proskuryakov <ap@webkit.org>
  42085. Reviewed by Mark Rowe.
  42086. http://bugs.webkit.org/show_bug.cgi?id=12763
  42087. REGRESSION: button title is displayed incorrectly at quotes.burntelectrons.org
  42088. Test: fast/parser/entities-in-attributes.xhtml
  42089. * dom/XMLTokenizer.cpp:
  42090. (WebCore::getEntityHandler): Set a correct type for the found entity (I'm not really
  42091. sure if XML_INTERNAL_GENERAL_ENTITY is _the_ correct one, but it fixes the problem).
  42092. 2007-02-13 Darin Adler <darin@apple.com>
  42093. Reviewed by Hyatt.
  42094. - removed some bogus names (Hyatt smacked me since this doesn't fix a P1)
  42095. * dom/EventNames.h: Removed half-implemented khtmlDragdrop and khtmlMove
  42096. (you could add listeners, but nobody ever sent the events). Renamed the
  42097. other two khtml-prefixed internal event names to use the webkit prefix.
  42098. * bindings/js/kjs_dom.cpp:
  42099. (KJS::DOMEventTargetNode::getValueProperty): Removed ondragdrop and onmove.
  42100. (KJS::DOMEventTargetNode::putValueProperty): Ditto.
  42101. * bindings/js/kjs_dom.h:
  42102. * bindings/js/kjs_window.cpp:
  42103. (KJS::Window::getValueProperty): Ditto.
  42104. (KJS::Window::put): Ditto.
  42105. * bindings/js/kjs_window.h:
  42106. * dom/BeforeTextInsertedEvent.cpp:
  42107. (WebCore::BeforeTextInsertedEvent::BeforeTextInsertedEvent): Renamed to webkit.
  42108. * editing/Editor.cpp:
  42109. (WebCore::dispatchEditableContentChangedEvents): Ditto.
  42110. * editing/ReplaceSelectionCommand.cpp:
  42111. (WebCore::ReplacementFragment::ReplacementFragment): Ditto.
  42112. * html/HTMLTextFieldInnerElement.cpp:
  42113. (WebCore::HTMLTextFieldInnerTextElement::defaultEventHandler): Ditto.
  42114. 2007-02-13 Darin Adler <darin@apple.com>
  42115. Rubber stamped by Maciej.
  42116. * dom/EventNames.h: Resort names. Removed unused names.
  42117. 2007-02-13 Anders Carlsson <acarlsson@apple.com>
  42118. Reviewed by Kevin Decker.
  42119. <rdar://problem/4990049>
  42120. http://bugs.webkit.org/show_bug.cgi?id=12718
  42121. REGRESSION: Segmentation fault when loading abc.go.com (12718)
  42122. The problem is that redirecting to about:blank causes the delegate to be released even though the load wasn't finished.
  42123. This is usally not a problem since NSURLConnection retains its delegate. However, the proxy delegate does not retain _it's_
  42124. delegate. The solution is to make releaseDelegate clear out the proxy delegate's delegate.
  42125. * platform/network/mac/ResourceHandleMac.mm:
  42126. (WebCore::ResourceHandle::releaseDelegate):
  42127. If there's a proxy, nil out its delegate too.
  42128. 2007-02-13 Matt Perry <mpcomplete@chromium.org>
  42129. Reviewed by Darin.
  42130. - fix for http://bugs.webkit.org/show_bug.cgi?id=12750
  42131. Vector operator== was not defined correctly. It returned void,
  42132. did not accept const Vectors, and used an int instead of size_t.
  42133. * rendering/RenderStyle.h: Added a != operator for StyleDashboardRegion.
  42134. The only reason this compiled before was that the comparing two vectors
  42135. with a != was simply comparing the pointers.
  42136. 2007-02-13 Darin Adler <darin@apple.com>
  42137. - roll out fix for <rdar://problem/4874059> REGRESSION: Painter IX:register -
  42138. Crash in WebCore:: ResourceLoader::willSendRequest()
  42139. This fix was causing a crash in at least one layout test.
  42140. * loader/FrameLoader.cpp:
  42141. (WebCore::FrameLoader::stopAllLoaders):
  42142. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  42143. 2007-02-13 Mitz Pettel <mitz@webkit.org>
  42144. Reviewed by Hyatt.
  42145. - fix http://bugs.webkit.org/show_bug.cgi?id=12746
  42146. REGRESSION (r13853): List item's first line overflows containing div
  42147. Test: fast/lists/item-not-in-list-line-wrapping.html
  42148. * rendering/bidi.cpp:
  42149. (WebCore::RenderBlock::findNextLineBreak): Use the list marker's isInside()
  42150. instead of looking at its style()->listStylePosition(), since if the
  42151. list item is not in a list, the marker is inside regardless of the style.
  42152. 2007-02-13 Rob Buis <buis@kde.org>
  42153. Reviewed by Maciej.
  42154. http://bugs.webkit.org/show_bug.cgi?id=12578
  42155. WebKit incorrectly strokes zero-width/height rectangles
  42156. Create an empty path when encountering zero-width/height rectangles, similar to circles with zero radius.
  42157. * platform/graphics/Path.cpp:
  42158. (WebCore::Path::createRectangle):
  42159. 2007-02-13 Rob Buis <buis@kde.org>
  42160. Reviewed by Maciej.
  42161. Remove SVGDOMImplementation from the project.
  42162. * CMakeLists.txt:
  42163. * WebCore.pro:
  42164. * ksvg2/svg/SVGDOMImplementation.cpp: Removed.
  42165. * ksvg2/svg/SVGDOMImplementation.h: Removed.
  42166. 2007-02-13 Brady Eidson <beidson@apple.com>
  42167. Reviewed by Maciej and Adam
  42168. Fixes <rdar://problem/4985497> - Crash when opening a new window to "Same Page"
  42169. * loader/FrameLoader.cpp:
  42170. (WebCore::FrameLoader::loadItem): Null check documentLoader() since if we're a brand new
  42171. WebView, cloning the history of another view, we have no documentLoader()
  42172. 2007-02-12 Antti Koivisto <antti@apple.com>
  42173. Reviewed by Maciej.
  42174. -fix REGRESSION: <select disabled size="5"> listbox cannot be scrolled
  42175. http://bugs.webkit.org/show_bug.cgi?id=11852
  42176. <rdar://problem/4960129>
  42177. Pass mouse press events to scrollbars even if event is swallowed.
  42178. No layout test, DumpRenderTree eventSender can't hit scrollbars.
  42179. * page/EventHandler.cpp:
  42180. (WebCore::EventHandler::handleMousePressEvent):
  42181. 2007-02-12 David Hyatt <hyatt@apple.com>
  42182. Fix for bug 12149 (Radar Bug#4928692), external CSS causes incomplete
  42183. text field focus.
  42184. Make sure to clear out the focus node in willRemove() rather than in
  42185. detach(), since detach/attach caused by style recalc should not affect
  42186. the focused node.
  42187. Reviewed by aroben
  42188. * dom/ContainerNode.cpp:
  42189. (WebCore::ContainerNode::willRemove):
  42190. * dom/Document.cpp:
  42191. (WebCore::Document::focusedNodeRemoved):
  42192. (WebCore::Document::setFocusedNode):
  42193. * dom/Document.h:
  42194. * dom/Element.cpp:
  42195. (WebCore::Element::updateFocusAppearance):
  42196. * dom/Node.cpp:
  42197. (WebCore::Node::willRemove):
  42198. (WebCore::Node::detach):
  42199. * html/HTMLInputElement.cpp:
  42200. (WebCore::HTMLInputElement::updateFocusAppearance):
  42201. 2007-02-12 Kevin McCullough <kmccullough@apple.com>
  42202. - reverting fix for rdar://problem/4922454 because it caused regressions
  42203. and performance problems
  42204. * bindings/objc/DOM.mm:
  42205. (-[DOMElement image]):
  42206. (-[DOMElement _imageTIFFRepresentation]):
  42207. * dom/XMLTokenizer.cpp:
  42208. (WebCore::XMLTokenizer::notifyFinished):
  42209. * html/HTMLImageLoader.cpp:
  42210. (WebCore::HTMLImageLoader::dispatchLoadEvent):
  42211. * html/HTMLTokenizer.cpp:
  42212. (WebCore::HTMLTokenizer::reset):
  42213. (WebCore::HTMLTokenizer::notifyFinished):
  42214. * ksvg2/misc/SVGImageLoader.cpp:
  42215. (WebCore::SVGImageLoader::dispatchLoadEvent):
  42216. * loader/Cache.cpp:
  42217. (WebCore::Cache::requestResource):
  42218. (WebCore::Cache::remove):
  42219. * loader/CachedImage.h:
  42220. (WebCore::CachedImage::canRender):
  42221. (WebCore::CachedImage::isErrorImage):
  42222. * loader/CachedResource.h:
  42223. * loader/CachedScript.h:
  42224. (WebCore::CachedScript::errorOccurred):
  42225. * loader/DocLoader.cpp:
  42226. (WebCore::DocLoader::requestResource):
  42227. (WebCore::DocLoader::setLoadInProgress):
  42228. * loader/FrameLoader.cpp:
  42229. (WebCore::FrameLoader::canLoad):
  42230. * page/EventHandler.cpp:
  42231. (WebCore::selectCursor):
  42232. * rendering/HitTestResult.cpp:
  42233. (WebCore::HitTestResult::image):
  42234. * rendering/RenderImage.cpp:
  42235. (WebCore::RenderImage::setCachedImage):
  42236. (WebCore::RenderImage::imageChanged):
  42237. (WebCore::RenderImage::paint):
  42238. (WebCore::RenderImage::layout):
  42239. (WebCore::RenderImage::calcAspectRatioWidth):
  42240. (WebCore::RenderImage::calcAspectRatioHeight):
  42241. * rendering/RenderImage.h:
  42242. (WebCore::RenderImage::isErrorImage):
  42243. * rendering/RenderListItem.cpp:
  42244. (WebCore::RenderListItem::setStyle):
  42245. * rendering/RenderListMarker.cpp:
  42246. (WebCore::RenderListMarker::isImage):
  42247. 2007-02-12 Mitz Pettel <mitz@webkit.org>
  42248. Reviewed by Dave Hyatt.
  42249. - fix http://bugs.webkit.org/show_bug.cgi?id=12123
  42250. REGRESSION: Incomplete repaint of floats' overflows
  42251. Tests: fast/repaint/float-overflow.html
  42252. fast/repaint/float-overflow-right.html
  42253. - fix http://bugs.webkit.org/show_bug.cgi?id=10116
  42254. REGRESSION: Menu item drawn 2 pixels short on WWDC 2006 Attendee Site
  42255. Reflected in existing test results.
  42256. Unified floats and overflow for the purposes of painting and hit-testing.
  42257. Overhanging and overflowing floats are now factored into a block's overflow
  42258. unless their painting has been propagated to an ancestor.
  42259. Changed table cells to no longer expand to enclose overflow, thus making
  42260. it purely "visual overflow", having no effect on layout in WebCore. It
  42261. still determines scrolling dimensions.
  42262. * rendering/InlineFlowBox.cpp:
  42263. (WebCore::InlineFlowBox::placeBoxesHorizontally): Include inline blocks'
  42264. horizontal overflow in the inline box's dimensions.
  42265. * rendering/RenderBlock.cpp:
  42266. (WebCore::RenderBlock::layoutBlock): Removed the expand to enclose overflows
  42267. behavior. Added code to add this block's floats (and their overflow) to its
  42268. overflow rect if it is not in a block formatting context. Otherwise, the
  42269. inclusion of floats in the overflow is deferred until this block's parent
  42270. examines its floats and possibly adopts overhanging floats.
  42271. (WebCore::RenderBlock::layoutBlockChildren):
  42272. (WebCore::RenderBlock::paint):
  42273. (WebCore::RenderBlock::floatRect): Changed to return an empty rect if there
  42274. are no floats or the floats are clipped, instead of returning the border box.
  42275. (WebCore::RenderBlock::addOverhangingFloats): Any floats of the child that
  42276. are not to be painted by the parent are added to the child's overflow rect.
  42277. (WebCore::RenderBlock::addVisualOverflow): Added. Adjusts the overflow
  42278. bounds to include the given rect.
  42279. (WebCore::RenderBlock::nodeAtPoint):
  42280. * rendering/RenderBlock.h:
  42281. * rendering/RenderFlexibleBox.cpp:
  42282. (WebCore::RenderFlexibleBox::layoutBlock):
  42283. (WebCore::RenderFlexibleBox::layoutHorizontalBox): After placing a normal
  42284. child, add its floats to its overflow, since painting of floats does not
  42285. propagate to flexible boxes.
  42286. (WebCore::RenderFlexibleBox::layoutVerticalBox): Ditto.
  42287. * rendering/RenderForeignObject.cpp:
  42288. (WebCore::RenderForeignObject::layout):
  42289. * rendering/RenderHTMLCanvas.cpp:
  42290. (WebCore::RenderHTMLCanvas::layout):
  42291. * rendering/RenderImage.cpp:
  42292. (WebCore::RenderImage::layout):
  42293. * rendering/RenderLayer.cpp:
  42294. (WebCore::RenderLayer::updateLayerPositions):
  42295. (WebCore::RenderLayer::absoluteBoundingBox):
  42296. * rendering/RenderLayer.h:
  42297. * rendering/RenderObject.cpp:
  42298. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  42299. * rendering/RenderObject.h:
  42300. (WebCore::RenderObject::expandsToEncloseOverhangingFloats):
  42301. * rendering/RenderPath.cpp:
  42302. (WebCore::RenderPath::layout):
  42303. * rendering/RenderSVGContainer.cpp:
  42304. (WebCore::RenderSVGContainer::layout):
  42305. * rendering/RenderSVGText.cpp:
  42306. (WebCore::RenderSVGText::layout):
  42307. * rendering/RenderTable.cpp:
  42308. (WebCore::RenderTable::layout):
  42309. * rendering/RenderTableCell.h:
  42310. (WebCore::RenderTableCell::expandsToEncloseOverhangingFloats):
  42311. 2007-02-12 Darin Adler <darin@apple.com>
  42312. Reviewed by Hyatt.
  42313. - fix http://bugs.webkit.org/show_bug.cgi?id=12668
  42314. <rdar://problem/4893344> REGRESSION: underline not visible for the international
  42315. input inline hole in most text fields (12668)
  42316. - fix bug where overline and line-through were 1px lower than we intended
  42317. * platform/graphics/GraphicsContext.h: Removed unneeded y offset parameter.
  42318. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  42319. (WebCore::GraphicsContext::drawLineForText): Removed bogus y offset and +1.
  42320. * platform/graphics/cg/GraphicsContextCG.cpp:
  42321. (WebCore::GraphicsContext::drawLineForText): Ditto.
  42322. * platform/graphics/qt/GraphicsContextQt.cpp:
  42323. (WebCore::GraphicsContext::drawLineForText): Ditto.
  42324. * rendering/InlineFlowBox.cpp:
  42325. (WebCore::InlineFlowBox::paintTextDecorations): Added the "+1" that used to be
  42326. inside drawLineForText to the underline-drawing code. Changed the other callers
  42327. of drawLineForText to include the y offset in the y coordinate.
  42328. * rendering/InlineTextBox.cpp:
  42329. (WebCore::InlineTextBox::paintDecoration): Ditto. Also renamed _tx and _ty to
  42330. remove the gratuitious underscores.
  42331. (WebCore::InlineTextBox::paintMarkedTextUnderline): Made the default thickness
  42332. be 1px instead of 0 (which ends up being roughly 1px in the CG code path anyway).
  42333. Fixed the code computing the position to put the underline at the bottom of the
  42334. line (different from regular underlines which are put 1px under the baseline).
  42335. The old code used to put the underline 1px further down in the thick case, and
  42336. 2px further down in the non-thick case. Both of those are bad, because they
  42337. could be completely clipped out in many cases.
  42338. 2007-02-12 Anders Carlsson <acarlsson@apple.com>
  42339. Reviewed by Darin.
  42340. <rdar://problem/4846962>
  42341. Aperture: Aperture 1.5 - DOM exception occurs when exporting a web gallery
  42342. * dom/ContainerNode.cpp:
  42343. (WebCore::ContainerNode::replaceChild):
  42344. Call checkReplaceChild here.
  42345. * dom/Document.cpp:
  42346. (WebCore::Document::canReplaceChild):
  42347. * dom/Document.h:
  42348. Add implementation of canReplaceChild that makes sure that doing the replacement won't cause
  42349. more than one element and document type node to end up in the document.
  42350. * dom/Node.cpp:
  42351. (WebCore::Node::canReplaceChild):
  42352. Base implementation of canReplaceChild.
  42353. (WebCore::Node::checkReplaceChild):
  42354. New function that does what checAddChild does but calls canReplaceChild.
  42355. 2007-02-12 Kevin Decker <kdecker@apple.com>
  42356. Reviewed by Anders.
  42357. Fixed: <rdar://problem/4874059> REGRESSION: Painter IX:register - Crash in WebCore:: ResourceLoader::willSendRequest()
  42358. What happened here was that a WebDataSource was being dealloced *while* a load for that resource is still in progress.
  42359. * loader/FrameLoader.cpp:
  42360. (WebCore::FrameLoader::stopAllLoaders): Calling stopAllLoaders cancels loads and informs the frame load delegate accordingly.
  42361. The delegate however may decide to kick off a new provisional load as the result of the cancel. Therefore a local variable
  42362. for the provisional and main doucment loader is introduced, and we now only nil out the provisional loader if the local and
  42363. member provisional variables represent the exact same load.
  42364. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Added the same check here, too.
  42365. 2007-02-12 Lars Knoll <lars@trolltech.com>
  42366. Reviewed by Mitz.
  42367. Do not create child renderers for table column groups
  42368. if the child has not a table column display type.
  42369. * dom/Node.cpp:
  42370. (WebCore::Node::createRendererIfNeeded):
  42371. * rendering/RenderObject.h:
  42372. (WebCore::RenderObject::isChildAllowed):
  42373. * rendering/RenderTableCol.cpp:
  42374. (WebCore::RenderTableCol::isChildAllowed):
  42375. * rendering/RenderTableCol.h:
  42376. 2007-02-12 Antti Koivisto <antti@apple.com>
  42377. Reviewed by Mitz
  42378. Fix assertion failure in layout test.
  42379. * html/HTMLMapElement.cpp:
  42380. (WebCore::HTMLMapElement::parseMappedAttribute):
  42381. 2007-02-12 Kevin McCulough <kmccullough@apple.com>
  42382. Reviewed by Brady.
  42383. - Fixing a performance regression caused by r19500. The heart of the matter
  42384. is that we now call canLoad on every resource request even ones in the cache,
  42385. to avoid a security issue. So I could not take out the canLoad call, but I
  42386. but I could try to make it more efficient.
  42387. * loader/DocLoader.cpp:
  42388. (WebCore::DocLoader::requestResource):
  42389. (WebCore::DocLoader::setLoadInProgress):
  42390. * loader/FrameLoader.cpp:
  42391. (WebCore::FrameLoader::canLoad):
  42392. 2007-02-12 Darin Adler <darin@apple.com>
  42393. Reviewed by Oliver.
  42394. - fix http://bugs.webkit.org/show_bug.cgi?id=12677
  42395. <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm
  42396. a clause in kotoeri (12677)
  42397. - fix http://bugs.webkit.org/show_bug.cgi?id=12596
  42398. <rdar://problem/4794346> REGRESSION: Tab key shifts form field focus instead of
  42399. navigating prediction window (12596)
  42400. - fix http://bugs.webkit.org/show_bug.cgi?id=10010
  42401. <rdar://problem/4822935> REGRESSION: Pressing Return with unconfirmed text in
  42402. Hangul inserts carriage return (10010)
  42403. - fix http://bugs.webkit.org/show_bug.cgi?id=12531
  42404. <rdar://problem/4975126> REGRESSION: Inline text input types repeated keys in
  42405. latest nightly (r19336) (12531)
  42406. - fix http://bugs.webkit.org/show_bug.cgi?id=12539
  42407. <rdar://problem/4975130> REGRESSION: Pressing Backspace while in inline input
  42408. area moves to the previous page in history (12539)
  42409. This area still needs work because keypress events are being sent for all the
  42410. events before they go to the input methods, and it seems that this is not
  42411. compatible with what other browsers do and with what sites assume. That's covered
  42412. by this bug:
  42413. http://bugs.webkit.org/show_bug.cgi?id=10871
  42414. <rdar://problem/4823129> REGRESSION: IME key events different in nightly (10871)
  42415. which is still open.
  42416. * bindings/objc/ExceptionHandlers.h: Remove selectRange helper that doesn't really
  42417. belong here, and also isn't needed since the callers don't want to raise ObjC
  42418. exceptions.
  42419. * bindings/objc/ExceptionHandlers.mm: Ditto. Also removed unneeded external globals
  42420. that aren't exported anyway and unneeded includes.
  42421. * bridge/EditorClient.h: Added Mac-specific function, markedTextAbandoned. Long term
  42422. this might move into platform instead, but it's fine to have it on the client for now
  42423. as long as it doesn't cause trouble for platforms other than Mac.
  42424. * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::defaultEventHandler): Since
  42425. all the event handling code in this function is intended to run on the node itself,
  42426. not parent nodes, check and do nothing if this event is bubbling up from another
  42427. node. Added code to call a function on EventHandler for default handling of text
  42428. input events.
  42429. * dom/KeyboardEvent.h:
  42430. * dom/KeyboardEvent.cpp: (WebCore::findKeyboardEvent): Added. Just like the
  42431. findUIEventWithKeyState function, but specific to keyboard events.
  42432. * dom/TextEvent.h: Added isLineBreak and isBackTab flags so that we can carry
  42433. additional information about what a text input event is trying to do, but still
  42434. go through the DOM event machinery.
  42435. * dom/TextEvent.cpp: Ditto.
  42436. * editing/Editor.h:
  42437. * editing/Editor.cpp:
  42438. (WebCore::Editor::handleKeyPress): Removed unneeded check of isCaretOrRange, since
  42439. isContentEditable already checks that.
  42440. (WebCore::Editor::canEdit): Ditto.
  42441. (WebCore::Editor::canEditRichly): Ditto.
  42442. (WebCore::Editor::canPaste): Changed to call canEdit for brevity.
  42443. (WebCore::Editor::replaceSelectionWithText): Changed to take a const String&.
  42444. (WebCore::Editor::shouldInsertText): Ditto.
  42445. (WebCore::hasEditableSelection): Removed unneeded check of isCaretOrRange, since
  42446. isContentEditable already checks that.
  42447. (WebCore::Editor::Editor): Initialize the new m_ignoreMarkedTextSelectionChange
  42448. flag. Moved here from WebHTMLView.
  42449. (WebCore::Editor::insertText): Moved most of the code from -[WebHTMLView insertText:]
  42450. here, since this needs to be done in response to a text input event and we don't want
  42451. to go back over the WebKit side for that.
  42452. (WebCore::Editor::insertLineBreak): Added. Moved here from -[WebHTMLView insertLineBreak:]
  42453. for the same reason -- needs to be done in response to text input events.
  42454. (WebCore::Editor::insertParagraphSeparator): Ditto.
  42455. (WebCore::Editor::selectMarkedText): Added. Used by insertText.
  42456. (WebCore::Editor::discardMarkedText): Added. Used by insertText.
  42457. (WebCore::Editor::unmarkText): Added. Used by insertText.
  42458. * editing/mac/EditorMac.mm:
  42459. (WebCore::Editor::unmarkText): Added. Used by insertText.
  42460. * html/HTMLInputElement.cpp:
  42461. (WebCore::HTMLInputElement::canHaveSelection): Changed to use isTextField to avoid repeating
  42462. the switch statement.
  42463. (WebCore::HTMLInputElement::selectionStart): Ditto.
  42464. (WebCore::HTMLInputElement::selectionEnd): Ditto.
  42465. (WebCore::HTMLInputElement::setSelectionStart): Ditto.
  42466. (WebCore::HTMLInputElement::setSelectionEnd): Ditto.
  42467. (WebCore::HTMLInputElement::select): Ditto.
  42468. (WebCore::HTMLInputElement::setSelectionRange): Ditto.
  42469. (WebCore::HTMLInputElement::createRenderer): Resorted cases alphaebtically.
  42470. (WebCore::HTMLInputElement::defaultEventHandler): Added code to make hitting return cause the
  42471. form to be submitted when it comes through as a text input event. This is now the normal case
  42472. on Macintosh, because enter key presses normally turn into this. In addition, change the other
  42473. event handling to run only after trying the base defaultEventHandler. That makes the key
  42474. handling done in EventTargetNode take precedence over the event handling here for editable text
  42475. fields, which is what we want. This gets rid of the need for the hack where we check
  42476. inputManagerHasMarkedText and suppress the handling of the enter key.
  42477. * page/EventHandler.h: Removed unneeded includes. Moved EventHandlerDragState down into the
  42478. private part of the class. Changed sendContextMenuEvent to take a const&. Added new
  42479. handleTextInputEvent and defaultTextInputEventHandler functions. Made eventLoopHandleMouseUp
  42480. and eventLoopHandleMouseDragged private. Added private defaultTabEventHandler function.
  42481. * page/EventHandler.cpp:
  42482. (WebCore::EventHandler::sendContextMenuEvent): Changed parameter to be a const&.
  42483. (WebCore::EventHandler::defaultKeyboardEventHandler): Rearranged things so that the key bindings
  42484. handling in handleKeyPress comes before special tab event handling. In cases where the tab turns
  42485. into text to insert, we now handle it in the text input event handler.
  42486. (WebCore::EventHandler::handleTextInputEvent): Added. Creates and dispatches a text input event.
  42487. (WebCore::EventHandler::defaultTextInputEventHandler): Added. Inserts text, but has special cases
  42488. for the tab and newline character cases.
  42489. (WebCore::EventHandler::defaultTabEventHandler): Added. Shared by the tab-handling code in
  42490. the keyboard event and text input event handlers.
  42491. * page/mac/EventHandlerMac.mm: Tweak formatting, remove some unused functions.
  42492. * page/FocusController.h: Removed unnneded includes and forwards, and added an overload of
  42493. advanceFocus that takes a FocusDirection parameter.
  42494. * page/FocusController.cpp: (WebCore::FocusController::advanceFocus): Changed to allow a 0 for
  42495. the event pointer. Also added a version where the direction is passed explicitly, to be used
  42496. for cases where we want to tab backward even if the event doesn't have a shift modifier key set.
  42497. * platform/graphics/svg/SVGImageEmptyClients.h: Updated for change to EditorClient.
  42498. This should really probably just use 0 for the EditorClient.
  42499. * WebCore.exp: Update both for newly used and no-longer-used entry points.
  42500. * page/mac/WebCoreFrameBridge.h:
  42501. * page/mac/WebCoreFrameBridge.mm: Removed two unused methods.
  42502. 2007-02-12 Antti Koivisto <antti@apple.com>
  42503. Reviewed by Darin.
  42504. - fixed Imagemap not clickable in www.toptenbooks.net/
  42505. http://bugs.webkit.org/show_bug.cgi?id=12738
  42506. Make imagemap names case insensitive in HTML mode
  42507. * dom/Document.cpp:
  42508. (WebCore::Document::getImageMap):
  42509. * html/HTMLMapElement.cpp:
  42510. (WebCore::HTMLMapElement::parseMappedAttribute):
  42511. 2007-02-12 Maciej Stachowiak <mjs@apple.com>
  42512. Reviewed by Antti.
  42513. - fixed <rdar://problem/4928675> REGRESSION: Crash in CGBlt_copyBytes under WebCore::Font::drawGlyphs (12083)
  42514. http://bugs.webkit.org/show_bug.cgi?id=12083
  42515. Test: fast/text/text-shadow-extreme-value.html
  42516. * platform/graphics/cg/GraphicsContextCG.cpp:
  42517. (WebCore::GraphicsContext::setShadow): Clamp shadow value to 1000px, anything more seems to
  42518. make CG unhappy.
  42519. 2007-02-11 Brady Eidson <beidson@apple.com>
  42520. Reviewed by Maciej.
  42521. First in what will be a series of HistoryItem enhancements to help debugging
  42522. * history/HistoryItem.cpp:
  42523. (WebCore::HistoryItem::showTree):
  42524. (WebCore::HistoryItem::showTreeWithIndent):
  42525. (showTree): Outside of WebCore namespace, and extern "C" - to make even the
  42526. DWARF debugger able to find it... *sigh*
  42527. * history/HistoryItem.h:
  42528. 2007-02-11 Eric Seidel <eric@webkit.org>
  42529. Reviewed by Anders.
  42530. - fixed <rdar://problem/4975133> ASSERT failure and crash right-clicking on image in SVG use test
  42531. http://bugs.webkit.org/show_bug.cgi?id=12580
  42532. Test: svg/cust/use-events-crash.svg
  42533. * bindings/js/kjs_dom.cpp:
  42534. (KJS::toJS):
  42535. * ksvg2/svg/SVGElementInstance.cpp:
  42536. (WebCore::SVGElementInstance::toNode):
  42537. * ksvg2/svg/SVGElementInstance.h:
  42538. 2007-02-11 Mitz Pettel <mitz@webkit.org>
  42539. Reviewed by Maciej.
  42540. - fix http://bugs.webkit.org/show_bug.cgi?id=10144
  42541. REGRESSION: Reproducible assertion failure in DeleteSelectionCommand::fixupWhitespace()
  42542. Test: fast/text/delete-hard-break-character.html
  42543. The bug was caused by not updating a line whose line break object and offset
  42544. has been deleted. When deleting text, all lines containing the deleted text
  42545. are marked dirty. However, if the first character being deleted is a newline
  42546. which serves as a hard line break for the previous line, then that line will
  42547. not be marked, and since it will be a clean line ending with a line break,
  42548. relayout will begin at the next line. The fix is to check for this when
  42549. determining where to relayout from.
  42550. * rendering/bidi.cpp:
  42551. (WebCore::RenderBlock::determineStartPosition): Changed the condition for
  42552. including the last clean line in relayout to include the case where the
  42553. last clean line ends with a line break, but that line break is a newline that
  42554. has been deleted.
  42555. 2007-02-12 Antti Koivisto <antti@apple.com>
  42556. Reviewed by Maciej.
  42557. REGRESSION: Google Calendar cell highlight misplaced
  42558. http://bugs.webkit.org/show_bug.cgi?id=12687
  42559. Make offsetLeft/offsetTop/offsetParent behavior match Firefox.
  42560. * rendering/RenderObject.cpp:
  42561. (WebCore::RenderObject::offsetLeft):
  42562. (WebCore::RenderObject::offsetTop):
  42563. (WebCore::RenderObject::offsetParent):
  42564. 2007-02-10 Antti Koivisto <antti@apple.com>
  42565. Reviewed by Maciej.
  42566. - fixed REGRESSION: No day/week scrollbar in Google Calendar
  42567. http://bugs.webkit.org/show_bug.cgi?id=11985
  42568. Make sure overflow:auto scrollbars are always enabled. If they were overflow:scroll
  42569. and dynamically changed to auto they might still be disabled.
  42570. * rendering/RenderLayer.cpp:
  42571. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  42572. 2007-02-11 Alexey Proskuryakov <ap@webkit.org>
  42573. Reviewed by Hyatt.
  42574. http://bugs.webkit.org/show_bug.cgi?id=12581
  42575. XPath //title shouldn't match <title> in XHTML
  42576. Test: fast/xpath/ensure-null-namespace.xhtml
  42577. * xml/XPathStep.cpp:
  42578. (WebCore::XPath::Step::nodeTestMatches): Only let a null namespace match any for HTML.
  42579. 2007-02-10 Alexey Proskuryakov <ap@webkit.org>
  42580. Reviewed by Adam.
  42581. http://bugs.webkit.org/show_bug.cgi?id=12701
  42582. REGRESSION: After javascript, onChange not triggered when selecting same option
  42583. * html/HTMLSelectElement.cpp:
  42584. (WebCore::HTMLSelectElement::setSelectedIndex): Remember m_lastOnChangeIndex value,
  42585. as it can change from setSelected() now.
  42586. (WebCore::HTMLSelectElement::notifyOptionSelected): Update m_lastOnChangeIndex.
  42587. * manual-tests/select-onchange-after-js.html: Added. Also tests for bug 11402.
  42588. 2007-02-10 David Carson <dacarson@gmail.com>`
  42589. Reviewed by Maciej.
  42590. Manual tests for http://bugs.webkit.org/show_bug.cgi?id=12636
  42591. Call different Java methods that take a variety of Array parameters
  42592. from Javascript, passing a Javascript array.
  42593. * manual-tests/liveconnect-applet-array-parameters.html: Added.
  42594. * manual-tests/resources/ArrayParameterTestApplet.class: Added.
  42595. * manual-tests/resources/ArrayParameterTestApplet.java: Added.
  42596. 2007-02-10 Alexey Proskuryakov <ap@webkit.org>
  42597. Reviewed by Maciej.
  42598. http://bugs.webkit.org/show_bug.cgi?id=12724
  42599. Crash when enumerating XPath namespace axis
  42600. * xml/XPathStep.cpp:
  42601. (WebCore::XPath::Step::nodesInAxis): Namespace axis enumeration was broken in that it crashed, and also in that
  42602. it returned attribute nodes instead of XPath namespace ones. Removed it altogether.
  42603. 2007-02-10 Mitz Pettel <mitz@webkit.org>
  42604. Reviewed by Adam.
  42605. - fix http://bugs.webkit.org/show_bug.cgi?id=12565
  42606. ASSERTION failure on some declarative animations <rdar://problem/4975132>
  42607. * ksvg2/svg/SVGAnimationElement.cpp:
  42608. (WebCore::parseValues): Changed the string length math to avoid truncating
  42609. the last character of each value.
  42610. * manual-tests/svg-animation-parseValues.svg: Added.
  42611. 2007-02-10 Mitz Pettel <mitz@webkit.org>
  42612. Reviewed by Adam.
  42613. - fix http://bugs.webkit.org/show_bug.cgi?id=11621
  42614. REGRESSION (Native slider): slider thumb not updated when the mouse is dragged/released out of range
  42615. No automated test case because dumping the render tree updates layer positions anyway.
  42616. * manual-tests/slider-thumb-tracking.html: Added.
  42617. * rendering/RenderSlider.cpp:
  42618. (WebCore::RenderSlider::setCurrentPosition): Added call to updateLayerPosition()
  42619. for the thumb's layer.
  42620. 2007-02-09 Brady Eidson <beidson@apple.com>
  42621. Reviewed by Maciej
  42622. <rdar://problem/4965133> WebKit sends file:// url referrers
  42623. * loader/SubresourceLoader.cpp:
  42624. (WebCore::SubresourceLoader::create): In SubresourceLoader::create(), we make a copy of the original request
  42625. to use for the load. We then call FrameLoader::canLoad() which tells us if we should hide the referer. Before
  42626. this fix if it said to hide the referrer, we would simply not apply a new referrer to our copy of the request.
  42627. But if the original request already had a referrer, so did our copy. We simply have to clear the referrer from
  42628. the copied request.
  42629. 2007-02-10 Maciej Stachowiak <mjs@apple.com>
  42630. Reviewed by me, patch from Feng Qian (cleaned up by me some).
  42631. - fixed <rdar://problem/4988091> objects attached to Window not cleared (memory leak)
  42632. Test case: fast/dom/Window/window-appendages-cleared.html
  42633. * bindings/js/kjs_window.cpp:
  42634. (KJS::Window::clearHelperObjectProperties):
  42635. (KJS::Window::clear):
  42636. * bindings/js/kjs_window.h:
  42637. 2007-02-09 Brady Eidson <beidson@apple.com>
  42638. Reviewed by Tim Hatcher
  42639. <rdar://problem/4985497> - Plugs a potential null DocumentLoader deref when
  42640. transitioning out of the Bookmarks View
  42641. * loader/FrameLoader.cpp:
  42642. (WebCore::FrameLoader::recursiveGoToItem): add a null check
  42643. 2007-02-09 Beth Dakin <bdakin@apple.com>
  42644. Rubber-stamped by John . . . and Adam.
  42645. * page/ContextMenuController.cpp:
  42646. (WebCore::ContextMenuController::contextMenuItemSelected): Missing
  42647. break.
  42648. 2007-02-09 Justin Garcia <justin.garcia@apple.com>
  42649. Reviewed by darin
  42650. <rdar://problem/4975120>
  42651. REGRESSION: double-cursor after switching window away/back (11770)
  42652. <http://bugs.webkit.org/show_bug.cgi?id=11328>
  42653. Gmail Editor: Caret can simultaneously appear in both the TO: and message body fields
  42654. * page/mac/WebCoreFrameBridge.h: Removed two unused methods
  42655. left over from the old form control implementation.
  42656. 2007-02-09 John Sullivan <sullivan@apple.com>
  42657. * rendering/bidi.cpp:
  42658. (WebCore::bidiNext):
  42659. At Darin's suggestion, moved the "next = 0" line from my previous patch to the start of the loop body
  42660. 2007-02-09 Justin Garcia <justin.garcia@apple.com>
  42661. Reviewed by john
  42662. <rdar://problem/4960116>
  42663. REGRESSION: Nightly Safari crashes in WebCore::SelectionController::xPosForVerticalArrowNavigation (12416)
  42664. * editing/SelectionController.cpp:
  42665. (WebCore::SelectionController::xPosForVerticalArrowNavigation):
  42666. Null check. VisiblePosition creation can fail if a node that
  42667. contains the selection was made invisible after the selection
  42668. was made and before this function is called during a selection
  42669. modification operation.
  42670. 2007-02-09 Justin Garcia <justin.garcia@apple.com>
  42671. Reviewed by john
  42672. <rdar://problem/4983858>
  42673. REGRESSION: In a new mail message, attempting to select a single word causes the selection to extend to the previous line
  42674. * editing/TextIterator.cpp:
  42675. (WebCore::SimplifiedBackwardsTextIterator::exitNode):
  42676. We recently split shouldEmitNewlineForNode into
  42677. shouldEmitNewline{Before, After}Node, so this function now
  42678. needs an implementation that is different from
  42679. SimplifiedBackwardsTextIterator::handleNonTextNode. The
  42680. difference is that we must call shouldEmit*BeforeNode
  42681. instead of shouldEmit*AfterNode since we are a) exiting
  42682. nodes and b) moving backward.
  42683. 2007-02-09 Justin Garcia <justin.garcia@apple.com>
  42684. Reviewed by john
  42685. <rdar://problem/4916541>
  42686. Some of the selection isn't preserved during an Indent opreration
  42687. * editing/IndentOutdentCommand.cpp:
  42688. (WebCore::indexForVisiblePosition): Added.
  42689. (WebCore::IndentOutdentCommand::indentRegion): Use rangeLength
  42690. and rangeFromLocationAndLength to restore the selection after
  42691. the repeated moveParagraph calls necessary to perform indent are
  42692. finished.
  42693. 2007-02-09 John Sullivan <sullivan@apple.com>
  42694. Reviewed by Kevin Decker
  42695. - fixed <rdar://problem/4960095> REPRODUCIBLE HANG: WebKit freezes when printing as PDF
  42696. a certain kind of code (12449)
  42697. No test case because I don't know how to make the bug occur without printing.
  42698. * rendering/bidi.cpp:
  42699. (WebCore::bidiNext):
  42700. reset loop's "next" variable after using it; we were setting "current" to the same value
  42701. of "next" each subsequent time through the loop, which is not helpful.
  42702. 2007-02-09 Darin Adler <darin@apple.com>
  42703. Reviewed by Adele.
  42704. - Add TextEvent to the DOM (based on the proposed DOM level 3)
  42705. to be used to fix some international input bugs soon.
  42706. At this point, we don't send any text events.
  42707. - Remove some obsolete files.
  42708. * CMakeLists.txt:
  42709. * WebCore.pro:
  42710. * WebCore.xcodeproj/project.pbxproj:
  42711. * WebCoreSources.bkl:
  42712. Add new files, remove obsolete files.
  42713. * DerivedSources.make: Add TextEvent to the Objective-C and JavaScript bindings lists.
  42714. * WebCore.exp: Export DOMTextEvent Objective-C wrapper.
  42715. * bindings/js/kjs_events.cpp: (KJS::toJS): Added TextEvent to the list of Event subclasses
  42716. so we make the right kind of JS wrapper.
  42717. * bindings/objc/DOMEvents.mm: (+[DOMEvent _eventWith:]): Same thing, for Objective-C.
  42718. * bindings/objc/DOMInternal.h: Added DOMTextEventInternal.h.
  42719. * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::hasFeature):
  42720. Added "TextEvents", "3.0" to the list of things we'll answer true for
  42721. (as specified in the DOM Level 3 documentation).
  42722. This isn't so great until we actually send textInput events, but that's coming soon.
  42723. * dom/Document.cpp: (WebCore::Document::createEvent): Add "TextEvent" as a way to make
  42724. a TextEvent (as specified in the DOM Level 3 documentation).
  42725. * dom/Event.h:
  42726. * dom/Event.cpp: (WebCore::Event::isTextEvent): Added virtual function to be used
  42727. for runtime type checking of Event objects (as for other event types).
  42728. * dom/TextEvent.cpp: Added.
  42729. * dom/TextEvent.h: Added.
  42730. * dom/TextEvent.idl: Added.
  42731. * platform/mac/WebCoreWidgetHolder.h: Removed.
  42732. * rendering/CounterListItem.h: Removed.
  42733. * rendering/CounterResetNode.cpp: Removed.
  42734. * rendering/CounterResetNode.h: Removed.
  42735. 2007-02-09 Anders Carlsson <acarlsson@apple.com>
  42736. Reviewed by Geoff.
  42737. <rdar://problem/4816376>
  42738. REGRESSION: NetNewsWire 3.0 - Crashes in WebDocumentLoaderMac::attachToFrame() (12674)
  42739. The bug was that the NNW policy delegate never calls back on the policy listener so we'll try to do a load
  42740. while there's a policy decision underway. The extra call to setPolicyDocumentLoader would cause a detached (and deallocated)
  42741. WebDataSource to be reattached and thus causing a crash.
  42742. * loader/FrameLoader.cpp:
  42743. (WebCore::FrameLoader::load):
  42744. Remove extra call to setPolicyDocumentLoader.
  42745. 2007-02-09 Beth Dakin <bdakin@apple.com>
  42746. Reviewed by Darin.
  42747. Fix for <rdar://problem/4674537> REGRESSION: Adobe Acrobat 8 - Text
  42748. blinks when mouse is moved, and is invisible otherwise
  42749. Acrobat 8 was relying on a WebKit bug that was fixed about a year
  42750. ago with r12753. The bug was that we would not reload a page if the
  42751. source of an iframe was set to the same value it already was. Now
  42752. that we have fixed the bug, Acrobat constantly reloads their EULA,
  42753. making it blinky and impossible to read.
  42754. No layout test since the fix is to add an Acrobat-specific quirk.
  42755. * WebCore.exp:
  42756. * html/HTMLFrameElementBase.cpp:
  42757. (WebCore::HTMLFrameElementBase::setLocation): If the new url is the
  42758. same as the old one and we are honoring the Acrobat quirk, don't do
  42759. anything.
  42760. * page/Settings.cpp:
  42761. (WebCore::Settings::Settings):
  42762. (WebCore::Settings::setNeedsAcrobatFrameReloadingQuirk):
  42763. * page/Settings.h:
  42764. (WebCore::Settings::needsAcrobatFrameReloadingQuirk):
  42765. 2007-02-09 Brady Eidson <beidson@apple.com>
  42766. Rubberstamped by Dave Harrison
  42767. Disable the thread-check assertion in WebCore, as well as Webkit
  42768. * WebCore.xcodeproj/project.pbxproj:
  42769. 2007-02-08 Anders Carlsson <acarlsson@apple.com>
  42770. Reviewed by Geoff.
  42771. No need to pause timeout checks anymore.
  42772. * bindings/js/kjs_window.cpp:
  42773. (KJS::WindowFunc::callAsFunction):
  42774. 2007-02-09 John Sullivan <sullivan@apple.com>
  42775. Reviewed by Beth
  42776. - WebCore part of fix for radar 4939636, problems with context menu items and binaries linked
  42777. against WebKit 2.0.
  42778. * platform/ContextMenuItem.h:
  42779. (WebCore::):
  42780. Tweaked comment; bumped enum value for new SPI tags to avoid conflict with pre-3.0 SPI tag values.
  42781. 2007-02-09 Nicholas Shanks <webkit@nickshanks.com>
  42782. Reviewed by Dave Hyatt.
  42783. Removed broken recognition of :last-* and :only-* selectors
  42784. * css/CSSGrammar.y:
  42785. * css/CSSSelector.cpp:
  42786. (WebCore::CSSSelector::extractPseudoType):
  42787. * css/CSSSelector.h:
  42788. (WebCore::CSSSelector::):
  42789. * css/cssstyleselector.cpp:
  42790. (WebCore::CSSStyleSelector::checkOneSelector):
  42791. 2007-02-09 Maciej Stachowiak <mjs@apple.com>
  42792. Reviewed by Mark.
  42793. <rdar://problem/4980176>
  42794. * page/Frame.cpp:
  42795. (WebCore::Frame::pageDestroyed): Since this frame is getting
  42796. disconnected from its page, ensure it is not the focus node.
  42797. 2007-02-09 Krzysztof <kkowalczyk@gmail.com>
  42798. Reviewed by Maciej.
  42799. gdklauncher crashes when compiled with NDEBUG defined.
  42800. * Projects/gdk/webcore-gdk.bkl:
  42801. 2007-02-09 Maciej Stachowiak <mjs@apple.com>
  42802. Reviewed by Mitz.
  42803. <rdar://problem/4971224> REGRESSION: ASSERT in WebCore with Mail (12491)
  42804. http://bugs.webkit.org/show_bug.cgi?id=12491
  42805. No test case. Not testable since there is no way to do substitute
  42806. data loads from layout tests.
  42807. * loader/MainResourceLoader.cpp:
  42808. (WebCore::MainResourceLoader::continueAfterContentPolicy): Don't dispatch data load
  42809. callback when loading empty data.
  42810. 2007-02-09 Mark Rowe <mrowe@apple.com>
  42811. Reviewed by Maciej.
  42812. http://bugs.webkit.org/show_bug.cgi?id=12705
  42813. REGRESSION: Crash with user stylesheet set
  42814. Allow the Frame::canLoad check to skipped so that user stylesheets can be loaded in remote documents.
  42815. * ChangeLog:
  42816. * loader/DocLoader.cpp:
  42817. (WebCore::DocLoader::requestCSSStyleSheet): Skip canLoad check if this is a user stylesheet.
  42818. (WebCore::DocLoader::requestUserCSSStyleSheet):
  42819. (WebCore::DocLoader::requestResource): Allow canLoad check to be skipped.
  42820. * loader/DocLoader.h:
  42821. * page/Frame.cpp:
  42822. (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
  42823. 2007-02-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  42824. Reviewed by Darin.
  42825. Linux/gdk build fixes.
  42826. * Projects/gdk/webcore-gdk.bkl: Account for file renaming.
  42827. * platform/gdk/KeyEventGdk.cpp: Make gdk's tab key recognized as tab so that
  42828. keyboard link walking works on gdk.
  42829. (WebCore::keyIdentifierForGdkKeyCode):
  42830. 2007-02-08 Adele Peterson <adele@apple.com>
  42831. Reviewed by Brady.
  42832. Fix for http://bugs.webkit.org/show_bug.cgi?id=12599
  42833. <rdar://problem/4973507> REGRESSION: When replying in Gmail, the caret disappears when you start to type (12599)
  42834. When a frame's window was focused, the page didn't get updated about the new frame getting focus.
  42835. This was causing handleKeyPress to fail because it kept getting a selection for the wrong frame (which wasn't editable).
  42836. Test: fast/frames/iframe-window-focus.html
  42837. * page/Frame.cpp:
  42838. (WebCore::Frame::focusWindow):
  42839. (WebCore::Frame::unfocusWindow):
  42840. * page/Frame.h:
  42841. * page/mac/FrameMac.mm:
  42842. (WebCore::FrameMac::focusWindow):
  42843. (WebCore::FrameMac::unfocusWindow):
  42844. 2007-02-08 Adele Peterson <adele@apple.com>
  42845. Reviewed by Brady.
  42846. Fix for http://bugs.webkit.org/show_bug.cgi?id=12480
  42847. <rdar://problem/4971222> REGRESSION (NativeListBox): Deselecting option causes list to jump to top
  42848. Test: fast/forms/listbox-deselect-scroll.html
  42849. * html/HTMLSelectElement.cpp:
  42850. (WebCore::HTMLSelectElement::activeSelectionStartListIndex): Added. Returns the index for the active selection. If there is no active selection,
  42851. it returns the first selected index.
  42852. (WebCore::HTMLSelectElement::activeSelectionEndListIndex): Added. If there is no active selection, it returns the last selected index.
  42853. * html/HTMLSelectElement.h:
  42854. * rendering/RenderListBox.cpp: (WebCore::RenderListBox::scrollToRevealSelection): Instead of using the first and last selected indices,
  42855. use the active selection indices to determine which item to reveal. This way, when you're selecting with the keyboard, or the mouse,
  42856. no unnecessary scrolling will occur if the end of your active selection is already visible.
  42857. 2007-02-08 Adele Peterson <adele@apple.com>
  42858. Reviewed by Hyatt.
  42859. Fix for <rdar://problem/4963411> Items of SELECT element are incorrectly highlighted when display:block is set
  42860. Test: fast/forms/select-block-background.html
  42861. * rendering/RenderListBox.cpp: (WebCore::RenderListBox::paintObject):
  42862. Paint the item backgrounds during the PaintPhaseChildBlockBackground or PaintPhaseChildBlockBackgrounds phase.
  42863. 2007-02-08 Mitz Pettel <mitz@webkit.org>
  42864. Reviewed by Adele.
  42865. - fix http://bugs.webkit.org/show_bug.cgi?id=11047
  42866. REGRESSION: Empty options cause the entire select to collapse
  42867. Test: fast/forms/select-empty-option-height.html
  42868. - fix http://bugs.webkit.org/show_bug.cgi?id=10783
  42869. REGRESSION (r16044): Clicking a popup changes layout around it
  42870. * rendering/RenderMenuList.cpp:
  42871. (WebCore::RenderMenuList::setText): If the option text is empty, use a RenderBR
  42872. as inner text, to ensure that the inner div has line height.
  42873. 2007-02-08 Geoffrey Garen <ggaren@apple.com>
  42874. Reviewed by Beth Dakin.
  42875. Added a hard counter for SubresourceLoaders because the leaks tool now
  42876. ignores them.
  42877. * loader/SubresourceLoader.cpp:
  42878. (WebCore::):
  42879. (WebCore::SubresourceLoaderCounter::~SubresourceLoaderCounter):
  42880. (WebCore::SubresourceLoader::SubresourceLoader):
  42881. (WebCore::SubresourceLoader::~SubresourceLoader):
  42882. * page/Frame.cpp: Removed unnecessary #define
  42883. 2007-02-08 Geoffrey Garen <ggaren@apple.com>
  42884. Reviewed by Beth Dakin.
  42885. Fixed <rdar://problem/4982374> CSSComputedStyleDeclaration::getPropertyCSSValue
  42886. leak reported by buildbot
  42887. The leak was a typo: "new" instead of "return new". I also generously
  42888. deployed RefPtr in places that were holding ref-counted objects in
  42889. bare pointers.
  42890. * css/CSSComputedStyleDeclaration.cpp:
  42891. (WebCore::valueForShadow):
  42892. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  42893. 2007-02-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  42894. Reviewed by Adam Roben.
  42895. Linux/gdk build fixes.
  42896. * platform/gdk/EditorClientGdk.cpp: Added. Based on qt version.
  42897. (WebCore::EditorClientGdk::shouldDeleteRange):
  42898. (WebCore::EditorClientGdk::shouldShowDeleteInterface):
  42899. (WebCore::EditorClientGdk::isContinuousSpellCheckingEnabled):
  42900. (WebCore::EditorClientGdk::isGrammarCheckingEnabled):
  42901. (WebCore::EditorClientGdk::spellCheckerDocumentTag):
  42902. (WebCore::EditorClientGdk::shouldBeginEditing):
  42903. (WebCore::EditorClientGdk::shouldEndEditing):
  42904. (WebCore::EditorClientGdk::shouldInsertText):
  42905. (WebCore::EditorClientGdk::shouldApplyStyle):
  42906. (WebCore::EditorClientGdk::didBeginEditing):
  42907. (WebCore::EditorClientGdk::respondToChangedContents):
  42908. (WebCore::EditorClientGdk::didEndEditing):
  42909. (WebCore::EditorClientGdk::didWriteSelectionToPasteboard):
  42910. (WebCore::EditorClientGdk::didSetSelectionTypesForPasteboard):
  42911. (WebCore::EditorClientGdk::selectWordBeforeMenuEvent):
  42912. (WebCore::EditorClientGdk::isEditable):
  42913. (WebCore::EditorClientGdk::registerCommandForUndo):
  42914. (WebCore::EditorClientGdk::registerCommandForRedo):
  42915. (WebCore::EditorClientGdk::clearUndoRedoOperations):
  42916. (WebCore::EditorClientGdk::canUndo):
  42917. (WebCore::EditorClientGdk::canRedo):
  42918. (WebCore::EditorClientGdk::undo):
  42919. (WebCore::EditorClientGdk::redo):
  42920. (WebCore::EditorClientGdk::shouldInsertNode):
  42921. (WebCore::EditorClientGdk::pageDestroyed):
  42922. (WebCore::EditorClientGdk::smartInsertDeleteEnabled):
  42923. (WebCore::EditorClientGdk::toggleContinuousSpellChecking):
  42924. (WebCore::EditorClientGdk::toggleGrammarChecking):
  42925. (WebCore::EditorClientGdk::handleKeyPress):
  42926. (WebCore::EditorClientGdk::EditorClientGdk):
  42927. (WebCore::EditorClientGdk::setPage):
  42928. * platform/gdk/EditorClientGdk.h: Added. Ditto.
  42929. * platform/gdk/FrameGdk.cpp: Add exitAfterLoading and dumpRenderTreeAfterLoading
  42930. as small debugging features. Remove FrameGdkClient as no other platform has Frame*Client
  42931. anymore. Adjust for new APIs.
  42932. (WebCore::FrameGdk::FrameGdk):
  42933. (WebCore::FrameGdk::onDidFinishLoad):
  42934. (WebCore::FrameGdk::dumpRenderTree):
  42935. (WebCore::FrameGdk::keyPress):
  42936. (WebCore::FrameGdk::handleGdkEvent):
  42937. (WebCore::FrameGdk::focusWindow):
  42938. (WebCore::FrameGdk::unfocusWindow):
  42939. (WebCore::FrameGdk::getObjectInstanceForWidget):
  42940. (WebCore::FrameGdk::getEmbedInstanceForWidget):
  42941. (WebCore::FrameGdk::bindingRootObject):
  42942. (WebCore::FrameGdk::print):
  42943. (WebCore::FrameGdk::getAppletInstanceForWidget):
  42944. (WebCore::FrameGdk::issueCutCommand):
  42945. (WebCore::FrameGdk::issueCopyCommand):
  42946. (WebCore::FrameGdk::issuePasteCommand):
  42947. (WebCore::FrameGdk::issueTransposeCommand):
  42948. (WebCore::FrameGdk::issuePasteAndMatchStyleCommand):
  42949. (WebCore::FrameGdk::markedTextRange):
  42950. (WebCore::FrameGdk::shouldChangeSelection):
  42951. (WebCore::FrameGdk::respondToChangedSelection):
  42952. (WebCore::FrameGdk::mimeTypeForFileName):
  42953. * platform/gdk/FrameGdk.h: Ditto.
  42954. (WebCore::FrameGdk::setExitAfterLoading):
  42955. (WebCore::FrameGdk::exitAfterLoading):
  42956. (WebCore::FrameGdk::setDumpRenderTreeAfterLoading):
  42957. (WebCore::FrameGdk::dumpRenderTreeAfterLoading):
  42958. (WebCore::GdkFrame):
  42959. * platform/gdk/TemporaryLinkStubs.cpp: Adjust to new APIs. Small cleanups.
  42960. (FrameView::updateBorder):
  42961. (Widget::setEnabled):
  42962. (Widget::isEnabled):
  42963. (Widget::enableFlushDrawing):
  42964. (Widget::removeFromParent):
  42965. (Widget::paint):
  42966. (Widget::setIsSelected):
  42967. (Widget::invalidate):
  42968. (Widget::invalidateRect):
  42969. (PlatformMouseEvent::PlatformMouseEvent):
  42970. (WebCore::findWordBoundary):
  42971. (ChromeClientGdk::chromeDestroyed):
  42972. (ChromeClientGdk::closeWindowSoon):
  42973. (ChromeClientGdk::canTakeFocus):
  42974. (ChromeClientGdk::takeFocus):
  42975. (ChromeClientGdk::canRunBeforeUnloadConfirmPanel):
  42976. (ChromeClientGdk::addMessageToConsole):
  42977. (ChromeClientGdk::runBeforeUnloadConfirmPanel):
  42978. (ChromeClientGdk::runJavaScriptAlert):
  42979. (ChromeClientGdk::runJavaScriptConfirm):
  42980. (ChromeClientGdk::runJavaScriptPrompt):
  42981. (ChromeClientGdk::setStatusbarText):
  42982. (ChromeClientGdk::shouldInterruptJavaScript):
  42983. (WebCore::inputElementAltText):
  42984. (WebCore::resetButtonDefaultLabel):
  42985. (WebCore::searchableIndexIntroduction):
  42986. (WebCore::fileButtonChooseFileLabel):
  42987. (WebCore::fileButtonNoFileSelectedLabel):
  42988. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  42989. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  42990. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  42991. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  42992. (WebCore::contextMenuItemTagDownloadImageToDisk):
  42993. (WebCore::contextMenuItemTagCopyImageToClipboard):
  42994. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  42995. (WebCore::contextMenuItemTagCopy):
  42996. (WebCore::contextMenuItemTagGoBack):
  42997. (WebCore::contextMenuItemTagGoForward):
  42998. (WebCore::contextMenuItemTagStop):
  42999. (WebCore::contextMenuItemTagReload):
  43000. (WebCore::contextMenuItemTagCut):
  43001. (WebCore::contextMenuItemTagPaste):
  43002. (WebCore::contextMenuItemTagNoGuessesFound):
  43003. (WebCore::contextMenuItemTagIgnoreSpelling):
  43004. (WebCore::contextMenuItemTagLearnSpelling):
  43005. (WebCore::contextMenuItemTagSearchWeb):
  43006. (WebCore::contextMenuItemTagLookUpInDictionary):
  43007. (WebCore::contextMenuItemTagOpenLink):
  43008. (WebCore::contextMenuItemTagIgnoreGrammar):
  43009. (WebCore::contextMenuItemTagSpellingMenu):
  43010. (WebCore::contextMenuItemTagShowSpellingPanel):
  43011. (WebCore::contextMenuItemTagCheckSpelling):
  43012. (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
  43013. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  43014. (WebCore::contextMenuItemTagFontMenu):
  43015. (WebCore::contextMenuItemTagBold):
  43016. (WebCore::contextMenuItemTagItalic):
  43017. (WebCore::contextMenuItemTagUnderline):
  43018. (WebCore::contextMenuItemTagOutline):
  43019. (WebCore::contextMenuItemTagWritingDirectionMenu):
  43020. (WebCore::contextMenuItemTagDefaultDirection):
  43021. (WebCore::contextMenuItemTagLeftToRight):
  43022. (WebCore::contextMenuItemTagRightToLeft):
  43023. (PlugInInfoStore::createPluginInfoForPluginAtIndex):
  43024. (PlugInInfoStore::pluginCount):
  43025. (WebCore::PlugInInfoStore::supportsMIMEType):
  43026. (WebCore::refreshPlugins):
  43027. (SearchPopupMenu::saveRecentSearches):
  43028. (SearchPopupMenu::loadRecentSearches):
  43029. (SearchPopupMenu::SearchPopupMenu):
  43030. (Path::apply):
  43031. (PlatformScrollbar::PlatformScrollbar):
  43032. (PlatformScrollbar::~PlatformScrollbar):
  43033. (PlatformScrollbar::width):
  43034. (PlatformScrollbar::height):
  43035. (PlatformScrollbar::setEnabled):
  43036. (PlatformScrollbar::paint):
  43037. (PlatformScrollbar::updateThumbPosition):
  43038. (PlatformScrollbar::updateThumbProportion):
  43039. (PlatformScrollbar::setRect):
  43040. (ResourceHandle::willLoadFromCache):
  43041. (ResourceHandle::loadsBlocked):
  43042. (ResourceHandle::loadResourceSynchronously):
  43043. (PageCache::close):
  43044. (Editor::ignoreSpelling):
  43045. (Editor::learnSpelling):
  43046. (Editor::isSelectionUngrammatical):
  43047. (Editor::isSelectionMisspelled):
  43048. (Editor::guessesForMisspelledSelection):
  43049. (Editor::guessesForUngrammaticalSelection):
  43050. (Editor::markMisspellingsAfterTypingToPosition):
  43051. (Editor::newGeneralClipboard):
  43052. (Pasteboard::generalPasteboard):
  43053. (Pasteboard::writeSelection):
  43054. (Pasteboard::writeURL):
  43055. (Pasteboard::clear):
  43056. (Pasteboard::canSmartReplace):
  43057. (Pasteboard::documentFragment):
  43058. (Pasteboard::plainText):
  43059. (Pasteboard::Pasteboard):
  43060. (Pasteboard::~Pasteboard):
  43061. (ContextMenu::ContextMenu):
  43062. (ContextMenu::~ContextMenu):
  43063. (ContextMenu::appendItem):
  43064. (ContextMenu::setPlatformDescription):
  43065. (ContextMenu::platformDescription):
  43066. (ContextMenuItem::ContextMenuItem):
  43067. (ContextMenuItem::~ContextMenuItem):
  43068. (ContextMenuItem::releasePlatformDescription):
  43069. (ContextMenuItem::type):
  43070. (ContextMenuItem::setType):
  43071. (ContextMenuItem::action):
  43072. (ContextMenuItem::setAction):
  43073. (ContextMenuItem::title):
  43074. (ContextMenuItem::setTitle):
  43075. (ContextMenuItem::platformSubMenu):
  43076. (ContextMenuItem::setSubMenu):
  43077. (ContextMenuItem::setChecked):
  43078. (ContextMenuItem::setEnabled):
  43079. (WebCore::systemBeep):
  43080. (WebCore::userIdleTime):
  43081. 2007-02-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43082. Reviewed by Adam Roben.
  43083. Linux/gdk build fixes.
  43084. * platform/GlyphPageTreeNode.h: Fix header guard name.
  43085. * platform/gdk/ChromeClientGdk.h:
  43086. * platform/gdk/CursorGdk.cpp:
  43087. (WebCore::verticalTextCursor):
  43088. (WebCore::cellCursor):
  43089. (WebCore::contextMenuCursor):
  43090. (WebCore::noDropCursor):
  43091. (WebCore::copyCursor):
  43092. (WebCore::progressCursor):
  43093. (WebCore::aliasCursor):
  43094. * platform/gdk/MouseEventGdk.cpp:
  43095. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  43096. * platform/gdk/PageGdk.cpp: Removed. No longer used.
  43097. * platform/gdk/RenderThemeGdk.cpp:
  43098. (WebCore::RenderThemeGdk::getThemeData):
  43099. (WebCore::RenderThemeGdk::setCheckboxSize):
  43100. (WebCore::RenderThemeGdk::paintCheckbox):
  43101. (WebCore::RenderThemeGdk::setRadioSize):
  43102. (WebCore::RenderThemeGdk::paintRadio):
  43103. (WebCore::RenderThemeGdk::paintButton):
  43104. (WebCore::RenderThemeGdk::adjustTextFieldStyle):
  43105. (WebCore::RenderThemeGdk::paintTextField):
  43106. (WebCore::RenderThemeGdk::paintTextArea):
  43107. (WebCore::RenderThemeGdk::systemFont):
  43108. * platform/gdk/RenderThemeGdk.h:
  43109. * platform/gdk/ScreenGdk.cpp:
  43110. (WebCore::screenDepth):
  43111. (WebCore::screenDepthPerComponent):
  43112. (WebCore::screenIsMonochrome):
  43113. (WebCore::screenRect):
  43114. (WebCore::screenAvailableRect):
  43115. 2007-02-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43116. Reviewed by Adam Roben.
  43117. Linux/gdk build fixes for cairo.
  43118. * platform/graphics/GraphicsContext.cpp:
  43119. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  43120. (WebCore::GraphicsContext::GraphicsContext):
  43121. (WebCore::GraphicsContext::strokeArc):
  43122. (WebCore::GraphicsContext::drawFocusRing):
  43123. (WebCore::GraphicsContext::setFocusRingClip):
  43124. (WebCore::GraphicsContext::clearFocusRingClip):
  43125. (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
  43126. (WebCore::GraphicsContext::origin):
  43127. (WebCore::GraphicsContext::setPlatformFillColor):
  43128. (WebCore::GraphicsContext::setPlatformStrokeColor):
  43129. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  43130. (WebCore::GraphicsContext::setPlatformStrokeStyle):
  43131. (WebCore::GraphicsContext::setPlatformFont):
  43132. (WebCore::GraphicsContext::setURLForRect):
  43133. (WebCore::GraphicsContext::addRoundedRectClip):
  43134. (WebCore::GraphicsContext::addInnerRoundedRectClip):
  43135. (WebCore::GraphicsContext::setShadow):
  43136. (WebCore::GraphicsContext::clearShadow):
  43137. (WebCore::GraphicsContext::beginTransparencyLayer):
  43138. (WebCore::GraphicsContext::endTransparencyLayer):
  43139. (WebCore::GraphicsContext::clearRect):
  43140. (WebCore::GraphicsContext::strokeRect):
  43141. (WebCore::GraphicsContext::setLineCap):
  43142. (WebCore::GraphicsContext::setLineJoin):
  43143. (WebCore::GraphicsContext::setMiterLimit):
  43144. (WebCore::GraphicsContext::setAlpha):
  43145. (WebCore::toCairoOperator):
  43146. (WebCore::GraphicsContext::setCompositeOperation):
  43147. (WebCore::GraphicsContext::clip):
  43148. (WebCore::GraphicsContext::rotate):
  43149. (WebCore::GraphicsContext::scale):
  43150. (WebCore::GraphicsContext::clipOut):
  43151. (WebCore::GraphicsContext::clipOutEllipseInRect):
  43152. (WebCore::GraphicsContext::fillRoundedRect):
  43153. 2007-02-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43154. Reviewed by Adam Roben.
  43155. Linux/gdk build fixes.
  43156. * Projects/gdk/webcore-gdk.bkl:
  43157. * WebCoreSources.bkl:
  43158. * webcore-base.bkl:
  43159. 2007-02-08 Brady Eidson <beidson@apple.com>
  43160. Reviewed by Tim Hatcher
  43161. Tweaked the thread violation behavior to be disabled by default, and to provide
  43162. an easy breakpoint to set.
  43163. The possibilities for the "WebCoreThreadCheck" user defaults key are -
  43164. - The value "None" disables thread checking
  43165. - The value "Log" causes an NSLog on a violation
  43166. - The value "Exception" causes exceptions to be raised on a violation
  43167. * platform/Logging.h:
  43168. * platform/mac/LoggingMac.mm:
  43169. (WebCore::_WebCoreThreadViolationCheck):
  43170. (WebCoreReportThreadViolation): In the global namespace, making breakpoints cake!
  43171. 2007-02-08 Brady Eidson <beidson@apple.com>
  43172. Reviewed by Tim Hatcher
  43173. <rdar://problem/4983515> Need mechanism to protect against WebKit calls from secondary threads
  43174. This initial landing is a conservative move until we can be certain of performance impact.
  43175. By writing to the user defaults key @"WebCoreThreadCheck" for the WebKit app you're running -
  43176. - The value "None" disables thread checking
  43177. - The value "Exception" causes exceptions to be raised on a violation
  43178. - The default is to do the check, and NSLog each violation
  43179. * bindings/objc/ExceptionHandlers.h: Add a "Is Main Thread" assert macro
  43180. * bindings/scripts/CodeGeneratorObjC.pm: Use new mechanism in allocs and deallocs for now
  43181. * platform/Logging.h: Added WebCoreThreadViolationCheck macro
  43182. * platform/mac/LoggingMac.mm:
  43183. (WebCore::_WebCoreThreadViolationCheck): Check for main-threadedness, and do some stuff
  43184. 2007-02-08 Kevin McCullough <KMcCullough@apple.com>
  43185. Reviewed by Maciej, Darin, and Mark.
  43186. rdar://problem/4922454
  43187. - Prevents remote sites from executing local scripts.
  43188. * bindings/objc/DOM.mm: - renamed a function that is now in the base class
  43189. (-[DOMElement image]):
  43190. (-[DOMElement _imageTIFFRepresentation]):
  43191. * dom/XMLTokenizer.cpp: - removed needless asserts
  43192. (WebCore::XMLTokenizer::notifyFinished):
  43193. * html/HTMLImageLoader.cpp: - renamed a function that is now in the base class
  43194. (WebCore::HTMLImageLoader::dispatchLoadEvent):
  43195. * html/HTMLTokenizer.cpp: - removed needless asserts
  43196. (WebCore::HTMLTokenizer::reset):
  43197. (WebCore::HTMLTokenizer::notifyFinished):
  43198. * ksvg2/misc/SVGImageLoader.cpp: - renamed a function that is now in the base class
  43199. (WebCore::SVGImageLoader::dispatchLoadEvent):
  43200. * loader/Cache.cpp: - return early if an error occured
  43201. (WebCore::Cache::requestResource):
  43202. (WebCore::Cache::remove):
  43203. * loader/CachedImage.h: - renamed a function that is now in the base class
  43204. (WebCore::CachedImage::canRender):
  43205. * loader/CachedResource.h: - renamed a function that is now in the base class
  43206. (WebCore::CachedResource::errorOccurred):
  43207. * loader/CachedScript.h: - renamed a function that is now in the base class
  43208. (WebCore::CachedScript::schedule):
  43209. * loader/DocLoader.cpp: - The heart of the fix, prevents resources from being created or retrieved from the cache if a remote site is requesting the local resource.
  43210. (WebCore::DocLoader::requestResource):
  43211. (WebCore::DocLoader::setLoadInProgress):
  43212. * page/EventHandler.cpp: - renamed a function that is now in the base class
  43213. (WebCore::selectCursor):
  43214. * rendering/HitTestResult.cpp: - renamed a function that is now in the base class
  43215. (WebCore::HitTestResult::image):
  43216. * rendering/RenderImage.cpp: - renamed a function that is now in the base class
  43217. (WebCore::RenderImage::setCachedImage):
  43218. (WebCore::RenderImage::imageChanged):
  43219. (WebCore::RenderImage::paint):
  43220. (WebCore::RenderImage::layout):
  43221. (WebCore::RenderImage::calcAspectRatioWidth):
  43222. (WebCore::RenderImage::calcAspectRatioHeight):
  43223. * rendering/RenderImage.h: - renamed a function that is now in the base class
  43224. (WebCore::RenderImage::errorOccurred):
  43225. * rendering/RenderListItem.cpp: - renamed a function that is now in the base class
  43226. (WebCore::RenderListItem::setStyle):
  43227. * rendering/RenderListMarker.cpp: - renamed a function that is now in the base class
  43228. (WebCore::RenderListMarker::isImage):
  43229. 2007-02-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43230. Reviewed by Maciej.
  43231. Add updateGeometry() to gdk's ScrollView. Needed to fix resizing of the window
  43232. in gdk.
  43233. * platform/ScrollView.h:
  43234. * platform/gdk/ScrollViewGdk.cpp:
  43235. (WebCore::ScrollView::updateGeometry):
  43236. (WebCore::ScrollView::setDrawable):
  43237. 2007-02-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43238. Reviewed by Maciej.
  43239. Linux/gdk build fixes.
  43240. * platform/ContextMenuItem.h:
  43241. * platform/PlatformMenuDescription.h:
  43242. * platform/gdk/PopupMenuGdk.cpp: Added. Renamed from RenderPopupMenuGdk.cpp for
  43243. consistency with other platforms.
  43244. (WebCore::PopupMenu::PopupMenu):
  43245. (WebCore::PopupMenu::~PopupMenu):
  43246. * platform/gdk/RenderPopupMenuGdk.cpp: Removed.
  43247. * platform/gdk/RenderPopupMenuGdk.h: Removed.
  43248. 2007-02-07 Mitz Pettel <mitz@webkit.org>
  43249. Reviewed by Maciej.
  43250. - fix http://bugs.webkit.org/show_bug.cgi?id=12608
  43251. Incorrect min. width calculation of a series of floats with clear:both and white-space:nowrap
  43252. Test: fast/block/float/nowrap-clear-min-width.html
  43253. * rendering/RenderBlock.cpp:
  43254. (WebCore::RenderBlock::calcInlineMinMaxWidth):
  43255. 2007-02-07 Mitz Pettel <mitz@webkit.org>
  43256. Reviewed by Dave Hyatt.
  43257. - fix http://bugs.webkit.org/show_bug.cgi?id=10522
  43258. REGRESSION: Incomplete repaint after table relayout that decreases height
  43259. Test: fast/repaint/intermediate-layout-position.html
  43260. * rendering/RenderBlock.cpp:
  43261. (WebCore::RenderBlock::layoutBlock): Adjust the old bounds by the layout delta,
  43262. to get the block's absolute bounds as they were before its ancestors moved it
  43263. during layout.
  43264. (WebCore::RenderBlock::collapseMargins): Update the layout delta for the child
  43265. when moving it.
  43266. (WebCore::RenderBlock::clearFloatsIfNeeded): Ditto.
  43267. (WebCore::RenderBlock::determineHorizontalPosition): Ditto.
  43268. (WebCore::RenderBlock::layoutBlockChildren): Ditto.
  43269. * rendering/RenderFlexibleBox.cpp:
  43270. (WebCore::RenderFlexibleBox::layoutBlock): Adjust the old bounds by the current
  43271. layout delta.
  43272. * rendering/RenderHTMLCanvas.cpp:
  43273. (WebCore::RenderHTMLCanvas::layout): Ditto.
  43274. * rendering/RenderImage.cpp:
  43275. (WebCore::RenderImage::layout): Ditto.
  43276. * rendering/RenderTable.cpp:
  43277. (WebCore::RenderTable::layout): Ditto.
  43278. * rendering/RenderView.h:
  43279. (WebCore::RenderView::layoutDelta): Added. Keeps track of the offset between
  43280. the position of the object currently being laid out and its position at the
  43281. end of the last layout.
  43282. (WebCore::RenderView::addLayoutDelta): Added.
  43283. 2007-02-07 Christopher Brichford <chrisb@adobe.com>
  43284. Reviewed by Brady.
  43285. http://bugs.webkit.org/show_bug.cgi?id=6286
  43286. Very large (~500MB) images cause reproducible Safari crash
  43287. * loader/CachedImage.cpp:
  43288. (WebCore::CachedImage::bufferData): Detect failure to create a
  43289. large Vector<> and call error() when that happens.
  43290. 2007-02-07 Mitz Pettel <mitz@webkit.org>
  43291. Reviewed by Dave Hyatt.
  43292. - fix http://bugs.webkit.org/show_bug.cgi?id=5399
  43293. no-repeat on negatively positioned background images are ignored
  43294. Test: fast/backgrounds/repeat/negative-offset-repeat.html
  43295. - fix http://bugs.webkit.org/show_bug.cgi?id=5821
  43296. Changing background of <col> doesn't repaint the column
  43297. Test: fast/repaint/table-col-background.html
  43298. - fix http://bugs.webkit.org/show_bug.cgi?id=11720
  43299. REGRESSION: large amounts of CPU consumed viewing this site
  43300. * rendering/RenderBox.cpp:
  43301. (WebCore::RenderBox::imageChanged): Added. Finds the border and/or background
  43302. layer(s) that use the image and invalidates only the rect in which the image
  43303. actually paints. There are two special cases in this function: 1) for the body
  43304. element, the background is propagated to the root; 2) inline flows do a full
  43305. repaint.
  43306. (WebCore::RenderBox::calculateBackgroundImageGeometry): Added. Factored out,
  43307. simplified and corrected the calculation of the rectangle into which the background
  43308. image paints, the tile size and the pattern phase.
  43309. (WebCore::RenderBox::paintBackgroundExtended):
  43310. * rendering/RenderBox.h:
  43311. * rendering/RenderObject.cpp:
  43312. * rendering/RenderObject.h:
  43313. (WebCore::RenderObject::imageChanged): Moved the implementation to RenderBox.
  43314. * rendering/RenderTableCol.cpp:
  43315. (WebCore::RenderTableCol::getAbsoluteRepaintRect): Overridden to return the
  43316. table's repaint rect.
  43317. (WebCore::RenderTableCol::imageChanged): Overridden to do a full repaint, which
  43318. currently repaints the entire table.
  43319. * rendering/RenderTableCol.h:
  43320. * rendering/RenderTableRow.cpp:
  43321. (WebCore::RenderTableRow::imageChanged): Overridden to do a full repaint
  43322. of the row, since the backgrounds are painted by the cells.
  43323. * rendering/RenderTableRow.h:
  43324. * rendering/RenderTableSection.cpp:
  43325. (WebCore::RenderTableSection::imageChanged): Overridden to do a full
  43326. repaint of the section, since the backgrounds are painted by the cells.
  43327. * rendering/RenderTableSection.h:
  43328. 2007-02-07 Anders Carlsson <acarlsson@apple.com>
  43329. Reviewed by Maciej.
  43330. Move shouldInterruptJavaScript to the Chrome.
  43331. * bindings/js/kjs_binding.cpp:
  43332. (KJS::ScriptInterpreter::shouldInterruptScript):
  43333. * page/Chrome.cpp:
  43334. (WebCore::Chrome::shouldInterruptJavaScript):
  43335. * page/Chrome.h:
  43336. * page/ChromeClient.h:
  43337. * page/Frame.h:
  43338. * page/mac/FrameMac.h:
  43339. * page/mac/FrameMac.mm:
  43340. * page/mac/WebCoreFrameBridge.h:
  43341. * platform/graphics/svg/SVGImageEmptyClients.h:
  43342. (WebCore::SVGEmptyChromeClient::shouldInterruptJavaScript):
  43343. 2007-02-07 Darin Adler <darin@apple.com>
  43344. Reviewed by Maciej.
  43345. - <rdar://problem/4826861> WebKit tests show memory leaks in NSHTMLReader, caused by method named "hash"
  43346. * bindings/scripts/CodeGeneratorObjC.pm: Added a list of method names we should never use, since they
  43347. are in base classes WebScriptObject and NSObject. Luckily, only "hash" is causing trouble. Added
  43348. "hash" to the existing special case for "id". Now "hash" is "hashName" just as "id" is "idName".
  43349. 2007-02-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43350. Reviewed by Adam Roben.
  43351. Linux/gdk build fixes for graphics-related stuff.
  43352. * platform/graphics/cairo/ImageCairo.cpp:
  43353. (WebCore::BitmapImage::checkForSolidColor):
  43354. * platform/graphics/cairo/ImageSourceCairo.cpp:
  43355. (WebCore::ImageSource::setData):
  43356. * platform/graphics/gdk/ImageGdk.cpp:
  43357. (WebCore::BitmapImage::initPlatformData):
  43358. (WebCore::BitmapImage::invalidatePlatformData):
  43359. (WebCore::Image::loadPlatformResource):
  43360. (WebCore::Image::drawPattern):
  43361. 2007-02-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43362. Reviewed by Maciej.
  43363. Linux/gdk build fixes related to networking.
  43364. * platform/network/ResourceHandleInternal.h: Add accessor for m_client.
  43365. (WebCore::ResourceHandleInternal::client):
  43366. * platform/network/gdk/ResourceHandleCurl.cpp: Add missing functions and
  43367. massage for changed APIs.
  43368. (WebCore::ResourceHandle::start):
  43369. (WebCore::ResourceHandle::cancel):
  43370. (WebCore::ResourceHandle::bufferedData):
  43371. (WebCore::ResourceHandle::supportsBufferedData):
  43372. (WebCore::ResourceHandle::setDefersLoading):
  43373. * platform/network/gdk/ResourceHandleManager.cpp: Rename get() to
  43374. sharedInstance(). Massaged for changed APIs.
  43375. (WebCore::ResourceHandleManager::sharedInstance):
  43376. (WebCore::writeCallback):
  43377. (WebCore::ResourceHandleManager::downloadTimerCallback):
  43378. (WebCore::ResourceHandleManager::remove):
  43379. * platform/network/gdk/ResourceHandleManager.h: Ditto.
  43380. 2007-02-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43381. Reviewed by Maciej.
  43382. Mismatched type of alloc/free function crashes gdk build.
  43383. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  43384. (WebCore::JPEGImageReader::close):
  43385. 2007-02-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43386. Reviewed by Adam Roben.
  43387. Linux/gdk build fixes - add file based on qt implementation.
  43388. * platform/DragData.h:
  43389. * platform/gdk/DragDataGdk.cpp: Added.
  43390. 2007-02-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43391. Reviewed by Adam Roben.
  43392. Linux/gdk build fixes - add new files based on qt implementation.
  43393. * page/gdk/DragControllerGdk.cpp: Added.
  43394. (WebCore::DragController::dragOperation):
  43395. * page/gdk/EventHandlerGdk.cpp: Added.
  43396. (WebCore::EventHandler::focusDocumentView):
  43397. (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
  43398. (WebCore::EventHandler::handleDrag):
  43399. (WebCore::EventHandler::eventActivatedView):
  43400. 2007-02-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43401. Reviewed by Adam Roben.
  43402. Linux/gdk build fixes - add new files based on Qt implementation.
  43403. * loader/gdk/DocumentLoaderGdk.cpp: Added.
  43404. (WebCore::DocumentLoader::getResponseModifiedHeader):
  43405. * loader/gdk/FrameLoaderClientGdk.cpp: Added.
  43406. (WebCore::FrameLoaderClientGdk::FrameLoaderClientGdk):
  43407. (WebCore::FrameLoaderClientGdk::frame):
  43408. (WebCore::FrameLoaderClientGdk::userAgent):
  43409. (WebCore::FrameLoaderClientGdk::createDocumentLoader):
  43410. (WebCore::FrameLoaderClientGdk::dispatchWillSubmitForm):
  43411. (WebCore::FrameLoaderClientGdk::committedLoad):
  43412. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveAuthenticationChallenge):
  43413. (WebCore::FrameLoaderClientGdk::dispatchDidCancelAuthenticationChallenge):
  43414. (WebCore::FrameLoaderClientGdk::dispatchWillSendRequest):
  43415. (WebCore::FrameLoaderClientGdk::assignIdentifierToInitialRequest):
  43416. (WebCore::FrameLoaderClientGdk::postProgressStartedNotification):
  43417. (WebCore::FrameLoaderClientGdk::postProgressEstimateChangedNotification):
  43418. (WebCore::FrameLoaderClientGdk::postProgressFinishedNotification):
  43419. (WebCore::FrameLoaderClientGdk::frameLoaderDestroyed):
  43420. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveResponse):
  43421. (WebCore::FrameLoaderClientGdk::dispatchDecidePolicyForMIMEType):
  43422. (WebCore::FrameLoaderClientGdk::dispatchDecidePolicyForNewWindowAction):
  43423. (WebCore::FrameLoaderClientGdk::dispatchDecidePolicyForNavigationAction):
  43424. (WebCore::FrameLoaderClientGdk::createPlugin):
  43425. (WebCore::FrameLoaderClientGdk::createFrame):
  43426. (WebCore::FrameLoaderClientGdk::redirectDataToPlugin):
  43427. (WebCore::FrameLoaderClientGdk::createJavaAppletWidget):
  43428. (WebCore::FrameLoaderClientGdk::objectContentType):
  43429. (WebCore::FrameLoaderClientGdk::overrideMediaType):
  43430. (WebCore::FrameLoaderClientGdk::windowObjectCleared):
  43431. (WebCore::FrameLoaderClientGdk::setMainFrameDocumentReady):
  43432. (WebCore::FrameLoaderClientGdk::hasWebView):
  43433. (WebCore::FrameLoaderClientGdk::hasFrameView):
  43434. (WebCore::FrameLoaderClientGdk::dispatchDidFinishLoad):
  43435. (WebCore::FrameLoaderClientGdk::frameLoadCompleted):
  43436. (WebCore::FrameLoaderClientGdk::privateBrowsingEnabled):
  43437. (WebCore::FrameLoaderClientGdk::makeDocumentView):
  43438. (WebCore::FrameLoaderClientGdk::makeRepresentation):
  43439. (WebCore::FrameLoaderClientGdk::forceLayout):
  43440. (WebCore::FrameLoaderClientGdk::forceLayoutForNonHTML):
  43441. (WebCore::FrameLoaderClientGdk::setCopiesOnScroll):
  43442. (WebCore::FrameLoaderClientGdk::detachedFromParent1):
  43443. (WebCore::FrameLoaderClientGdk::detachedFromParent2):
  43444. (WebCore::FrameLoaderClientGdk::detachedFromParent3):
  43445. (WebCore::FrameLoaderClientGdk::detachedFromParent4):
  43446. (WebCore::FrameLoaderClientGdk::loadedFromPageCache):
  43447. (WebCore::FrameLoaderClientGdk::dispatchDidHandleOnloadEvents):
  43448. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveServerRedirectForProvisionalLoad):
  43449. (WebCore::FrameLoaderClientGdk::dispatchDidCancelClientRedirect):
  43450. (WebCore::FrameLoaderClientGdk::dispatchWillPerformClientRedirect):
  43451. (WebCore::FrameLoaderClientGdk::dispatchDidChangeLocationWithinPage):
  43452. (WebCore::FrameLoaderClientGdk::dispatchWillClose):
  43453. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveIcon):
  43454. (WebCore::FrameLoaderClientGdk::dispatchDidStartProvisionalLoad):
  43455. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveTitle):
  43456. (WebCore::FrameLoaderClientGdk::dispatchDidCommitLoad):
  43457. (WebCore::FrameLoaderClientGdk::dispatchDidFinishDocumentLoad):
  43458. (WebCore::FrameLoaderClientGdk::dispatchDidFirstLayout):
  43459. (WebCore::FrameLoaderClientGdk::dispatchShow):
  43460. (WebCore::FrameLoaderClientGdk::cancelPolicyCheck):
  43461. (WebCore::FrameLoaderClientGdk::dispatchDidLoadMainResource):
  43462. (WebCore::FrameLoaderClientGdk::revertToProvisionalState):
  43463. (WebCore::FrameLoaderClientGdk::clearUnarchivingState):
  43464. (WebCore::FrameLoaderClientGdk::willChangeTitle):
  43465. (WebCore::FrameLoaderClientGdk::didChangeTitle):
  43466. (WebCore::FrameLoaderClientGdk::finishedLoading):
  43467. (WebCore::FrameLoaderClientGdk::finalSetupForReplace):
  43468. (WebCore::FrameLoaderClientGdk::setDefersLoading):
  43469. (WebCore::FrameLoaderClientGdk::isArchiveLoadPending):
  43470. (WebCore::FrameLoaderClientGdk::cancelPendingArchiveLoad):
  43471. (WebCore::FrameLoaderClientGdk::clearArchivedResources):
  43472. (WebCore::FrameLoaderClientGdk::canHandleRequest):
  43473. (WebCore::FrameLoaderClientGdk::canShowMIMEType):
  43474. (WebCore::FrameLoaderClientGdk::representationExistsForURLScheme):
  43475. (WebCore::FrameLoaderClientGdk::generatedMIMETypeForURLScheme):
  43476. (WebCore::FrameLoaderClientGdk::restoreScrollPositionAndViewState):
  43477. (WebCore::FrameLoaderClientGdk::provisionalLoadStarted):
  43478. (WebCore::FrameLoaderClientGdk::didFinishLoad):
  43479. (WebCore::FrameLoaderClientGdk::prepareForDataSourceReplacement):
  43480. (WebCore::FrameLoaderClientGdk::setTitle):
  43481. (WebCore::FrameLoaderClientGdk::setDocumentViewFromPageCache):
  43482. (WebCore::FrameLoaderClientGdk::dispatchDidReceiveContentLength):
  43483. (WebCore::FrameLoaderClientGdk::dispatchDidFinishLoading):
  43484. (WebCore::FrameLoaderClientGdk::dispatchDidFailLoading):
  43485. (WebCore::FrameLoaderClientGdk::dispatchDidLoadResourceFromMemoryCache):
  43486. (WebCore::FrameLoaderClientGdk::dispatchDidFailProvisionalLoad):
  43487. (WebCore::FrameLoaderClientGdk::dispatchDidFailLoad):
  43488. (WebCore::FrameLoaderClientGdk::download):
  43489. (WebCore::FrameLoaderClientGdk::cancelledError):
  43490. (WebCore::FrameLoaderClientGdk::cannotShowURLError):
  43491. (WebCore::FrameLoaderClientGdk::interruptForPolicyChangeError):
  43492. (WebCore::FrameLoaderClientGdk::cannotShowMIMETypeError):
  43493. (WebCore::FrameLoaderClientGdk::fileDoesNotExistError):
  43494. (WebCore::FrameLoaderClientGdk::shouldFallBack):
  43495. (WebCore::FrameLoaderClientGdk::willUseArchive):
  43496. (WebCore::FrameLoaderClientGdk::saveScrollPositionAndViewStateToItem):
  43497. (WebCore::FrameLoaderClientGdk::saveDocumentViewToPageCache):
  43498. (WebCore::FrameLoaderClientGdk::canCachePage):
  43499. (WebCore::FrameLoaderClientGdk::dispatchCreatePage):
  43500. (WebCore::FrameLoaderClientGdk::dispatchUnableToImplementPolicy):
  43501. (WebCore::FrameLoaderClientGdk::setMainDocumentError):
  43502. (WebCore::FrameLoaderClientGdk::startDownload):
  43503. (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForStandardLoad):
  43504. (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForReload):
  43505. (WebCore::FrameLoaderClientGdk::shouldGoToHistoryItem):
  43506. * loader/gdk/FrameLoaderClientGdk.h: Added.
  43507. (WebCore::FrameLoaderClientGdk::~FrameLoaderClientGdk):
  43508. (WebCore::FrameLoaderClientGdk::setFrame):
  43509. 2007-02-07 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  43510. Reviewed by Maciej.
  43511. Linux/gdk fixes related to fonts.
  43512. * platform/gdk/FontDataGdk.cpp:
  43513. (WebCore::FontData::platformInit): remove a work-around for older cairo versions
  43514. since Ubuntu 6.10 ships with cairo that is new enough
  43515. * platform/gdk/FontGdk.cpp:
  43516. (WebCore::Font::drawGlyphs):
  43517. * platform/gdk/FontPlatformDataGdk.cpp: Remove unused variables.
  43518. (WebCore::FontPlatformData::FontPlatformData):
  43519. 2007-02-07 Alexey Proskuryakov <ap@webkit.org>
  43520. Reviewed by Darin.
  43521. http://bugs.webkit.org/show_bug.cgi?id=12582
  43522. REGRESSION: Unclosed <title> makes the window display garbage or empty title
  43523. Automatic testing is not possible, and manual testing probably doesn't make sense.
  43524. * loader/DocumentLoader.cpp:
  43525. (WebCore::canonicalizedTitle): Bail out early if the passed in string is all whitespace.
  43526. 2007-02-06 Anders Carlsson <acarlsson@apple.com>
  43527. Reviewed by John Sullivan.
  43528. <rdar://problem/4977952>
  43529. REGRESSION: Yahoo Messenger IM is totally blank
  43530. * loader/FrameLoader.cpp:
  43531. (WebCore::FrameLoader::checkContentPolicy):
  43532. Don't ask the policy delegate for content that has valid substitute data.
  43533. (WebCore::FrameLoader::checkNavigationPolicy):
  43534. If the loader has substitute data but doesn't have an unreachable URL, let the policy
  43535. delegate decide what to do.
  43536. 2007-02-07 Geoffrey Garen <ggaren@apple.com>
  43537. Reviewed by Darin Adler.
  43538. Restoring some of the functionality I removed in r19445. It's insufficient for
  43539. each page to cancel keepAlive only for its child frames, because a frame
  43540. can be removed from the page before we get a chance to cancel its keepAlive.
  43541. So, the page destructor has to cancel keepAlive for all frames. This is safe
  43542. because we prohibit closing a WebView while JavaScript is executing.
  43543. * page/Frame.cpp:
  43544. (WebCore::keepAliveSet):
  43545. (WebCore::Frame::keepAlive):
  43546. (WebCore::Frame::cancelAllKeepAlive):
  43547. (WebCore::Frame::lifeSupportTimerFired):
  43548. * page/Frame.h:
  43549. * page/Page.cpp:
  43550. (WebCore::Page::~Page):
  43551. 2007-02-07 Alexey Proskuryakov <ap@webkit.org>
  43552. Reviewed by Darin.
  43553. http://bugs.webkit.org/show_bug.cgi?id=12603
  43554. A crash when trying to use XPath functions normalize-space(), string-length() and number()
  43555. Test: fast/xpath/implicit-node-args.html
  43556. * xml/XPathFunctions.cpp:
  43557. (WebCore::XPath::FunNumber::doEvaluate): Implemented zero parameter case.
  43558. (WebCore::XPath::FunctionMapping::): Corrected descriptions of these functions, as they
  43559. do allow zero parameters.
  43560. (WebCore::XPath::createFunction): Combined the two failure cases to ensure that this
  43561. function never returns 0.
  43562. 2007-02-07 Zack Rusin <zrusin@trolltech.com>
  43563. Fix compilation
  43564. * page/qt/EventHandlerQt.cpp:
  43565. (WebCore::EventHandler::eventActivatedView):
  43566. 2007-02-06 Alice Liu <alice.liu@apple.com>
  43567. Reviewed by Maciej.
  43568. Added editing command functions for scrolling by page and moving the caret
  43569. * editing/Editor.cpp:
  43570. (WebCore::execMoveUpByPageAndModifyCaret):
  43571. (WebCore::execMoveDownByPageAndModifyCaret):
  43572. (WebCore::CommandEntry::):
  43573. 2007-02-06 Justin Garcia <justin.garcia@apple.com>
  43574. Reviewed by john
  43575. <rdar://problem/4922367>
  43576. WebView selectLine: followed by deleteBackward: deletes TABLE element of following line
  43577. * editing/AppendNodeCommand.cpp:
  43578. (WebCore::AppendNodeCommand::doApply): Don't ASSERT when manipulating
  43579. non-editable content that is embedded in editable content. We'll do
  43580. this kind of manipulation when removing redundant style spans after
  43581. pasting content that has non-editable pieces.
  43582. * editing/InsertNodeBeforeCommand.cpp:
  43583. (WebCore::InsertNodeBeforeCommand::doApply): Ditto.
  43584. * editing/htmlediting.cpp:
  43585. (WebCore::isContentEditable): Added, wrapper for Node::isContentEditable
  43586. (WebCore::rangeCompliantEquivalent): Although legal,
  43587. [{table, select, etc.}, {0, numChildren}] don't refer to children of the element,
  43588. but positions before and after the element. So, rangeCompliantEquivalent is
  43589. really responsible for converting illegal positions *and* legal positions
  43590. that have a special meaning internally.
  43591. * editing/htmlediting.h:
  43592. 2007-02-06 Anders Carlsson <acarlsson@apple.com>
  43593. Reviewed by Brady.
  43594. * platform/String.cpp:
  43595. (WebCore::String::ascii):
  43596. Fix dumping null Strings.
  43597. 2007-02-06 Anders Carlsson <acarlsson@apple.com>
  43598. Reviewed by Geoff.
  43599. Fix <rdar://problem/4979484>
  43600. * css/CSSPrimitiveValue.cpp:
  43601. (WebCore::isCSSTokenizerIdentifier):
  43602. Do the range check before calling isalpha or isalnum.
  43603. 2007-02-06 Geoffrey Garen <ggaren@apple.com>
  43604. Reviewed by Darin Adler.
  43605. Fixed Frame/RenderObject/Node leak report seen while running SVG image tests.
  43606. (We'll need this fix if we ever re-enable SVG image.)
  43607. The extra reference belonged to the Frame keepAlive timer (so this was
  43608. not a "real" leak, in the end). The Page destructor has code to cancel all
  43609. Frame keepAlive timers upon the destruction of the last Page, but an SVG
  43610. image puts a Page within a Page, making this condition impossible to meet.
  43611. The fix here is to have each individual page cancel the keepAlive timers
  43612. belonging to its child frames.
  43613. * page/Frame.cpp: Changed the FrameCounter to use WTF logging.
  43614. (WebCore::): Nixed the lifeSupportSet, since it's no longer used.
  43615. (WebCore::Frame::cancelKeepAlive): Renamed from "endLifeSupport" to match
  43616. the name "keepAlive".
  43617. * page/Page.cpp:
  43618. (WebCore::Page::~Page): Made each page cancel its child keepAlive timers
  43619. and clear its mainFrame, since we may never reach the condition of having 0 Pages.
  43620. 2007-02-06 Adam Roben <aroben@apple.com>
  43621. Rubberstamped by Brady.
  43622. Revert the log channel constants to their old values for all you pretty
  43623. people out there who were using the old ones. I also renamed
  43624. LogResources to LogPlatformLeaks to be a bit more specific.
  43625. * platform/Logging.cpp:
  43626. (WebCore::):
  43627. * platform/Logging.h:
  43628. 2007-02-05 Justin Garcia <justin.garcia@apple.com>
  43629. Reviewed by john
  43630. <rdar://problem/4959067>
  43631. Bullets get erased or moved down to another line
  43632. <rdar://problem/4912529>
  43633. Seed: Bulleted list in Note in Mail.app does not work with Japanese input mode
  43634. Do not expand the selection to include fully selected
  43635. special elements when insering text over a selection.
  43636. * editing/CompositeEditCommand.cpp:
  43637. (WebCore::CompositeEditCommand::deleteSelection): Pass
  43638. expandForSpecialElements through to DeleteSelectionCommand's constructor.
  43639. (WebCore::CompositeEditCommand::moveParagraphs): Use the
  43640. convenience function.
  43641. * editing/CompositeEditCommand.h:
  43642. * editing/DeleteSelectionCommand.h:
  43643. * editing/InsertTextCommand.cpp:
  43644. (WebCore::InsertTextCommand::input): Do not expand the selection
  43645. to be deleted for special elements.
  43646. * editing/ReplaceSelectionCommand.cpp:
  43647. (WebCore::ReplaceSelectionCommand::doApply): Added a FIXME about
  43648. when we should expand the selection.
  43649. 2007-02-06 Geoffrey Garen <ggaren@apple.com>
  43650. Reviewed by Anders Carlsson.
  43651. Disabled support for SVG image because it crashes all the time.
  43652. * loader/CachedImage.cpp:
  43653. (WebCore::CachedImage::createImage):
  43654. 2007-02-06 Mitz Pettel <mitz@webkit.org>
  43655. Reviewed by Darin.
  43656. - fix http://bugs.webkit.org/show_bug.cgi?id=12518
  43657. Betsson.com crashes browser
  43658. Test: fast/layers/generated-layer-scrollbar-crash.html
  43659. * rendering/RenderLayer.cpp:
  43660. (WebCore::RenderLayer::createScrollbar): Changed element()->document() to
  43661. document() to work with anonymous objects.
  43662. (WebCore::RenderLayer::updateOverflowStatus): Ditto.
  43663. 2007-02-06 Eric Seidel <eric@webkit.org>
  43664. Reviewed by mitz.
  43665. WebKit ignores floating point values for stroke-miterlimit
  43666. http://bugs.webkit.org/show_bug.cgi?id=12577
  43667. Test: svg/W3C-SVG-1.1/painting-stroke-07-t.svg
  43668. * ksvg2/css/SVGCSSParser.cpp:
  43669. (WebCore::CSSParser::parseSVGValue):
  43670. * ksvg2/css/SVGCSSStyleSelector.cpp:
  43671. (WebCore::CSSStyleSelector::applySVGProperty):
  43672. * ksvg2/css/SVGRenderStyle.h:
  43673. * ksvg2/css/SVGRenderStyleDefs.h:
  43674. (WebCore::StyleStrokeData::operator!=):
  43675. 2007-02-06 Adam Roben <aroben@apple.com>
  43676. Reviewed by Ada and Oliver.
  43677. Adding a new LogResources channel for tracking platform resource usage.
  43678. * platform/Logging.cpp: Added new channel, cleaned up constants to be more readable.
  43679. * platform/Logging.h: Declare new channel.
  43680. 2007-02-06 Alexey Proskuryakov <ap@webkit.org>
  43681. Reviewed by Geoff.
  43682. http://bugs.webkit.org/show_bug.cgi?id=12619
  43683. Non-abbreviated XPaths don't work
  43684. Test: fast/xpath/ancestor-axis.html
  43685. * xml/XPathParser.cpp:
  43686. (WebCore::XPath::Parser::lex): Fix axis name parsing to actually work.
  43687. * xml/XPathStep.cpp:
  43688. (WebCore::XPath::Step::nodeTestMatches): Fix "*" node test to actually work.
  43689. 2007-02-06 Mark Rowe <mrowe@apple.com>
  43690. Roll out incomplete support for font-stretch (r19350) at Dave Hyatt's request.
  43691. See http://bugs.webkit.org/show_bug.cgi?id=12530#c9 for more info.
  43692. * css/CSSComputedStyleDeclaration.cpp:
  43693. (WebCore::):
  43694. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  43695. * css/cssparser.cpp:
  43696. (WebCore::CSSParser::parseValue):
  43697. * css/cssstyleselector.cpp:
  43698. (WebCore::CSSStyleSelector::applyDeclarations):
  43699. (WebCore::CSSStyleSelector::applyProperty):
  43700. * platform/FontCache.cpp:
  43701. (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
  43702. (WebCore::FontPlatformDataCacheKey::operator==):
  43703. (WebCore::computeHash):
  43704. (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
  43705. (WebCore::FontPlatformDataCacheKeyTraits::emptyValue):
  43706. (WebCore::FontCache::getCachedFontPlatformData):
  43707. * platform/FontDescription.h:
  43708. (WebCore::FontDescription::FontDescription):
  43709. (WebCore::FontDescription::weight):
  43710. (WebCore::FontDescription::setWeight):
  43711. (WebCore::FontDescription::operator==):
  43712. * platform/mac/FontCacheMac.mm:
  43713. (WebCore::FontCache::createFontPlatformData):
  43714. * platform/mac/WebFontCache.mm:
  43715. (acceptableChoice):
  43716. (betterChoice):
  43717. (+[WebFontCache fontWithFamily:traits:size:]):
  43718. 2007-02-05 Adele Peterson <adele@apple.com>
  43719. Reviewed by Darin.
  43720. A few small updates to my bidi patch.
  43721. * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::paintObject): Moved the declaration of the CharacterBuffer outside the if statement since we use its data outside that scope.
  43722. * rendering/RenderListBox.cpp: (WebCore::RenderListBox::paintItemForeground): ditto.
  43723. * rendering/bidi.cpp: (WebCore::RenderBlock::bidiReorderCharacters): Used a PassRefPtr for the BidiContext.
  43724. 2007-02-05 Adele Peterson <adele@apple.com>
  43725. Reviewed by Adam.
  43726. Fix for assertion failure in fast/events/objc-keyboard-event-creation.html
  43727. * html/HTMLInputElement.cpp:
  43728. (WebCore::HTMLInputElement::selectionStart): Check that the selection offsets are not equal to -1 (which is means the selection has never been set) instead of checking for >= 0.
  43729. (WebCore::HTMLInputElement::selectionEnd): ditto.
  43730. (WebCore::HTMLInputElement::setValue): ditto.
  43731. (WebCore::HTMLInputElement::selection): Return an empty selection if the input is not a text field or if no selection has ever been set in the text field.
  43732. * html/HTMLTextAreaElement.cpp:
  43733. (WebCore::HTMLTextAreaElement::selectionStart): Check that the selection offsets are not equal to -1.
  43734. (WebCore::HTMLTextAreaElement::selectionEnd): ditto.
  43735. (WebCore::HTMLTextAreaElement::setValue): ditto.
  43736. (WebCore::HTMLTextAreaElement::selection): Return an empty selection if no selection has ever been set in the textarea.
  43737. * dom/Position.cpp: Added FIXMEs that we should catch the negative offset earlier.
  43738. (WebCore::Position::previous):
  43739. (WebCore::Position::next):
  43740. 2007-02-05 Justin Garcia <justin.garcia@apple.com>
  43741. Reviewed by harrison
  43742. <rdar://problem/4947387>
  43743. REGRESSION Shift Command Left should only select to the beginning of the line
  43744. * editing/Editor.cpp:
  43745. (WebCore::CommandEntry::): Never copy/paste code.
  43746. 2007-02-05 Darin Adler <darin@apple.com>
  43747. Reviewed by John Sullivan.
  43748. - fix http://bugs.webkit.org/show_bug.cgi?id=11535
  43749. <rdar://problem/4946959> REGRESSION: onclick="this.select();" not working on new forms (11535)
  43750. Test: fast/forms/input-select-on-click.html
  43751. * page/EventHandler.h: Added m_mouseDownWasSingleClickInSelection boolean.
  43752. Organized other booleans a bit more logically.
  43753. * page/EventHandler.cpp:
  43754. (WebCore::EventHandler::EventHandler): Rearrange order to match EventHandler.h, add
  43755. m_mouseDownWasSingleClickInSelection initialization.
  43756. (WebCore::EventHandler::handleMousePressEventSingleClick): Set m_mouseDownWasSingleClickInSelection
  43757. to true in the appropriate special case.
  43758. (WebCore::EventHandler::handleMousePressEvent): Set m_mouseDownWasSingleClickInSelection to false.
  43759. (WebCore::EventHandler::handleMouseReleaseEvent): Change code to clear selection or set to caret to
  43760. only fire if m_mouseDownWasSingleClickInSelection was true rather than firing for any
  43761. m_mouseDownMayStartSelect case.
  43762. 2007-02-05 George Staikos <staikos@kde.org>
  43763. Reviewed by Maciej.
  43764. Send HTTP cookies.
  43765. * platform/network/qt/ResourceHandleManagerQt.cpp:
  43766. (WebCore::RequestQt::RequestQt):
  43767. 2007-02-05 Adele Peterson <adele@apple.com>
  43768. Reviewed by Mitz and Anders.
  43769. Fix for http://bugs.webkit.org/show_bug.cgi?id=11811
  43770. <rdar://problem/4947184> REGRESSION (r11783): Hebrew text in list boxes is reversed
  43771. http://bugs.webkit.org/show_bug.cgi?id=11812
  43772. <rdar://problem/4960269> REGRESSION (Native file upload): Hebrew filenames are reversed
  43773. Tests:
  43774. fast/text/international/bidi-listbox.html
  43775. fast/text/international/bidi-listbox-atsui.html
  43776. * rendering/RenderBlock.h: Added static bidiReorderCharacters that will run the bidi algorithm on a character buffer.
  43777. * rendering/bidi.cpp:
  43778. (WebCore::RenderBlock::bidiReorderCharacters): Added. Creates an anonymous RenderBlock and RenderText to feed into bidiReorderLines.
  43779. (WebCore::RenderBlock::constructLine): Uses the new convenience methods on BidiRun.
  43780. * rendering/bidi.h:
  43781. (WebCore::BidiRun::reversed): Added convenience method.
  43782. (WebCore::BidiRun::dirOverride): ditto.
  43783. * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::paintObject): Creates a buffer and calls bidiReorderCharacters
  43784. to get a correctly ordered character buffer for drawText.
  43785. * rendering/RenderListBox.cpp: (WebCore::RenderListBox::paintItemForeground): ditto.
  43786. 2007-02-05 Mitz Pettel <mitz@webkit.org>
  43787. Reviewed by Darin.
  43788. - fix http://bugs.webkit.org/show_bug.cgi?id=12590
  43789. REGRESSION: Text selection is weird in textareas in Trac wiki editing pages
  43790. Test: fast/repaint/selection-gap-overflow-scroll.html
  43791. * rendering/RenderBlock.cpp:
  43792. (WebCore::RenderBlock::selectionGapRects): Adjust for overflow scroll.
  43793. 2007-02-05 Mitz Pettel <mitz@webkit.org>
  43794. Reviewed by Adele.
  43795. - fix http://bugs.webkit.org/show_bug.cgi?id=11916
  43796. REGRESSION (SearchField): RTL search fields are mixed up
  43797. Test: fast/forms/search-rtl.html
  43798. * rendering/RenderTextControl.cpp:
  43799. (WebCore::RenderTextControl::createInnerBlockStyle): Always make the inner
  43800. block LTR so that the results button will be on the left and the cancel
  43801. button will be on the right.
  43802. (WebCore::RenderTextControl::createInnerTextStyle): Inherit the direction
  43803. property directly from the control so that it won't be masked by the inner
  43804. block's LTR override.
  43805. (WebCore::RenderTextControl::nodeAtPoint): Removed code that swapped the
  43806. results and cancel buttons for RTL.
  43807. (WebCore::RenderTextControl::forwardEvent): Ditto.
  43808. (WebCore::RenderTextControl::clientPaddingLeft): Ditto.
  43809. (WebCore::RenderTextControl::clientPaddingRight): Ditto.
  43810. 2007-02-05 Mitz Pettel <mitz@webkit.org>
  43811. Reviewed by Adele.
  43812. - fix http://bugs.webkit.org/show_bug.cgi?id=12618
  43813. REGRESSION (SearchField): Dragging across the text and releasing over the clear button clears the field
  43814. Test: fast/forms/search-cancel-button-mouseup.html
  43815. Made the cancel button capturing.
  43816. * html/HTMLTextFieldInnerElement.cpp:
  43817. (WebCore::HTMLSearchFieldCancelButtonElement::HTMLSearchFieldCancelButtonElement):
  43818. (WebCore::HTMLSearchFieldCancelButtonElement::defaultEventHandler):
  43819. * html/HTMLTextFieldInnerElement.h:
  43820. 2007-02-05 Mitz Pettel <mitz@webkit.org>
  43821. Reviewed by Darin.
  43822. - fix http://bugs.webkit.org/show_bug.cgi?id=6626
  43823. Arabic & Farsi rendered with no shaping (all glyphs separate, unreadable!)
  43824. No test possible since Mac OS X only ships with fonts that contain shaping
  43825. information.
  43826. * icu/unicode/ushape.h: Added from
  43827. http://www.opensource.apple.com/darwinsource/10.4.8.ppc/ICU-6.2.9/icuSources/common/unicode/
  43828. * platform/FontData.h:
  43829. (WebCore::FontData::shapesArabic): Added. Returns whether the font contains
  43830. shaping information for Arabic or not.
  43831. * platform/mac/FontDataMac.mm:
  43832. (WebCore::FontData::platformInit):
  43833. (WebCore::FontData::checkShapesArabic): Added. Checks whether the font contains
  43834. a glyph metamorphosis table. The heuristic is that if a font contains Arabic glyphs
  43835. and a metamorphosis table, then it includes shaping information for Arabic.
  43836. * platform/mac/FontMac.mm:
  43837. (WebCore::overrideLayoutOperation): Changed to use the same character buffer passed
  43838. to ATSUI instead of the original character buffer and to give zero-width spaces zero
  43839. width.
  43840. (WebCore::isArabicLamWithAlefLigature): Added. Checks if the character is one
  43841. of the Arabic presentation forms of Lam with Alef.
  43842. (WebCore::shapeArabic): Added. This is a wrapper around the ICU Arabic shaping routine
  43843. that replaces each space following a Lam with Alef ligature resulting from shaping
  43844. with a zero-width space.
  43845. (WebCore::ATSULayoutParameters::initialize): Changed to allocate the auxiliary buffer
  43846. lazily for mirroring and Arabic shaping. Added a call to shapeArabic() when required.
  43847. 2007-02-05 Eric Seidel <eric@webkit.org>
  43848. No review, build fix only.
  43849. * ksvg2/svg/SVGStyleElement.cpp: add forgotten header.
  43850. 2007-02-05 Eric Seidel <eric@webkit.org>
  43851. Reviewed by bdash.
  43852. Fix style name testcase which I broke in my last commit.
  43853. * ksvg2/svg/SVGStyleElement.cpp:
  43854. (WebCore::SVGStyleElement::xmlspace):
  43855. (WebCore::SVGStyleElement::title): override Element::title()
  43856. (WebCore::SVGStyleElement::parseMappedAttribute):
  43857. * ksvg2/svg/SVGStyleElement.h:
  43858. 2007-02-04 Eric Seidel <eric@webkit.org>
  43859. Reviewed by darin.
  43860. Fix hand cursor on link hover for SVG
  43861. Fix status text on link hover for SVG
  43862. Fix tooltips on link hover for SVG
  43863. Fix link dragging for SVG
  43864. http://bugs.webkit.org/show_bug.cgi?id=12575
  43865. Test: added manual-tests/svg-links.svg
  43866. * dom/Document.cpp:
  43867. (WebCore::Document::prepareMouseEvent):
  43868. * dom/Element.cpp:
  43869. (WebCore::Element::title):
  43870. * dom/Element.h:
  43871. * html/HTMLElement.cpp:
  43872. (WebCore::HTMLElement::setId):
  43873. (WebCore::HTMLElement::title):
  43874. (WebCore::HTMLElement::setTitle):
  43875. (WebCore::HTMLElement::setLang):
  43876. * html/HTMLElement.h:
  43877. * ksvg2/svg/SVGAElement.cpp:
  43878. (WebCore::SVGAElement::title):
  43879. (WebCore::SVGAElement::parseMappedAttribute):
  43880. (WebCore::SVGAElement::defaultEventHandler):
  43881. * ksvg2/svg/SVGAElement.h:
  43882. * ksvg2/svg/SVGTitleElement.cpp:
  43883. * ksvg2/svg/SVGTitleElement.h:
  43884. * manual-tests/svg-links.svg: Added.
  43885. * rendering/HitTestResult.cpp:
  43886. (WebCore::HitTestResult::title):
  43887. (WebCore::HitTestResult::absoluteImageURL):
  43888. (WebCore::HitTestResult::absoluteLinkURL):
  43889. (WebCore::HitTestResult::isLiveLink):
  43890. (WebCore::HitTestResult::titleDisplayString):
  43891. 2007-02-04 Alexey Proskuryakov <ap@webkit.org>
  43892. Reviewed by Darin.
  43893. http://bugs.webkit.org/show_bug.cgi?id=12602
  43894. XPath functions string(), normalize-space() and string-length() don't work
  43895. without arguments
  43896. Test: fast/xpath/implicit-node-args.html
  43897. * xml/XPathFunctions.cpp:
  43898. (WebCore::XPath::FunString::doEvaluate):
  43899. (WebCore::XPath::FunStringLength::doEvaluate):
  43900. (WebCore::XPath::FunNormalizeSpace::doEvaluate):
  43901. Don't try to pass RefPtr<Node> to the Value ctor.
  43902. 2007-02-04 Alexey Proskuryakov <ap@webkit.org>
  43903. Reviewed by Darin.
  43904. http://bugs.webkit.org/show_bug.cgi?id=8791
  43905. XPath should support custom node resolvers
  43906. * bindings/js/JSCustomXPathNSResolver.cpp: Added.
  43907. (WebCore::JSCustomXPathNSResolver::create):
  43908. (WebCore::JSCustomXPathNSResolver::JSCustomXPathNSResolver):
  43909. (WebCore::JSCustomXPathNSResolver::~JSCustomXPathNSResolver):
  43910. (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
  43911. * bindings/js/JSCustomXPathNSResolver.h: Added.
  43912. * bindings/objc/DOMCustomXPathNSResolver.h: Added.
  43913. * bindings/objc/DOMCustomXPathNSResolver.mm: Added.
  43914. (WebCore::DOMCustomXPathNSResolver::DOMCustomXPathNSResolver):
  43915. (WebCore::DOMCustomXPathNSResolver::~DOMCustomXPathNSResolver):
  43916. (WebCore::DOMCustomXPathNSResolver::lookupNamespaceURI):
  43917. Wrappers for JS/ObjC objects that can be used as resolvers.
  43918. * bindings/scripts/CodeGeneratorJS.pm:
  43919. * bindings/scripts/CodeGeneratorObjC.pm:
  43920. Use the above wrappers to support custom resolvers.
  43921. * xml/XPathNSResolver.cpp:
  43922. * xml/XPathNSResolver.h:
  43923. Turned this class into an abstract one.
  43924. * xml/NativeXPathNSResolver.cpp: Added.
  43925. (WebCore::NativeXPathNSResolver::NativeXPathNSResolver):
  43926. (WebCore::NativeXPathNSResolver::~NativeXPathNSResolver):
  43927. (WebCore::NativeXPathNSResolver::lookupNamespaceURI):
  43928. * xml/NativeXPathNSResolver.h: Added.
  43929. A XPathNSResolver subclass, doing what XPathNSResolver used to do.
  43930. * xml/XPathEvaluator.cpp:
  43931. (WebCore::XPathEvaluator::createNSResolver): Create a NativeXPathNSResolver.
  43932. * WebCore.xcodeproj/project.pbxproj: Added new files.
  43933. 2007-02-04 Oliver Hunt <oliver@apple.com>
  43934. Reviewed by Adam.
  43935. Tidying up EventHandler, and moving more of
  43936. EventHandlerMac.mm to EventHandler.cpp
  43937. Also added EventHandler::eventLoopHandleMouse[Dragged,Up]
  43938. these are basically helper functions to allow correct event
  43939. handling on MacOS.
  43940. * page/EventHandler.cpp:
  43941. (WebCore::EventHandler::handleMouseUp):
  43942. (WebCore::EventHandler::dragSourceMovedTo):
  43943. (WebCore::EventHandler::dragSourceEndedAt):
  43944. (WebCore::EventHandler::dispatchDragSrcEvent):
  43945. Moved from EventHandlerMac to EventHandler
  43946. * page/EventHandler.h:
  43947. (WebCore::EventHandler::eventLoopHandleMouseUp):
  43948. (WebCore::EventHandler::eventLoopHandleMouseDragged):
  43949. Null implementations of two Mac helper functions
  43950. * page/mac/EventHandlerMac.mm:
  43951. (WebCore::EventHandler::eventLoopHandleMouseDragged):
  43952. (WebCore::EventHandler::handleDrag):
  43953. Much tidying, reduced nesting, made less dependent on NS types
  43954. (WebCore::EventHandler::eventLoopHandleMouseDragged):
  43955. (WebCore::EventHandler::eventLoopHandleMouseUp):
  43956. Helper functions to let us process events properly on MacOS
  43957. * page/mac/WebCoreFrameBridge.mm:
  43958. (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
  43959. 2007-02-04 George Staikos <staikos@kde.org>
  43960. Reviewed by Zack.
  43961. Some Qt hacks and cleanups - makes rendering of forms much better on
  43962. OS X
  43963. * platform/qt/PlatformKeyboardEventQt.cpp: Add Key_Return/Enter
  43964. (WebCore::keyIdentifierForQtKeyCode):
  43965. (WebCore::windowsKeyCodeForKeyEvent):
  43966. * platform/qt/RenderThemeQt.cpp: Hacks and fix buttons
  43967. (WebCore::RenderThemeQt::addIntrinsicMargins):
  43968. (WebCore::RenderThemeQt::setCheckboxSize):
  43969. (WebCore::RenderThemeQt::supportsFocus):
  43970. (WebCore::RenderThemeQt::applyTheme):
  43971. 2007-02-03 Maciej Stachowiak <mjs@apple.com>
  43972. Rubber stamped by Adam.
  43973. - remove obsolete code that has an annoying space in the directory name
  43974. * WebCore.vcproj/Image Viewer/Image Viewer.cpp: Removed.
  43975. * WebCore.vcproj/Image Viewer/Image Viewer.h: Removed.
  43976. * WebCore.vcproj/Image Viewer/Image Viewer.rc: Removed.
  43977. * WebCore.vcproj/Image Viewer/Image Viewer.reg: Removed.
  43978. * WebCore.vcproj/Image Viewer/Image Viewer.vcproj: Removed.
  43979. * WebCore.vcproj/Image Viewer/ImageDocument.cpp: Removed.
  43980. * WebCore.vcproj/Image Viewer/ImageDocument.h: Removed.
  43981. * WebCore.vcproj/Image Viewer/ImageMainFrame.cpp: Removed.
  43982. * WebCore.vcproj/Image Viewer/ImageMainFrame.h: Removed.
  43983. * WebCore.vcproj/Image Viewer/ImageView.cpp: Removed.
  43984. * WebCore.vcproj/Image Viewer/ImageView.h: Removed.
  43985. * WebCore.vcproj/Image Viewer/Resource.h: Removed.
  43986. * WebCore.vcproj/Image Viewer/res/Image Viewer.ico: Removed.
  43987. * WebCore.vcproj/Image Viewer/res/Image ViewerDoc.ico: Removed.
  43988. * WebCore.vcproj/Image Viewer/res/ImageViewer.rc2: Removed.
  43989. * WebCore.vcproj/Image Viewer/res/Toolbar.bmp: Removed.
  43990. * WebCore.vcproj/Image Viewer/stdafx.cpp: Removed.
  43991. * WebCore.vcproj/Image Viewer/stdafx.h: Removed.
  43992. 2007-02-04 Mitz Pettel <mitz@webkit.org>
  43993. Reviewed by Oliver.
  43994. - fix http://bugs.webkit.org/show_bug.cgi?id=12564
  43995. REGRESSION: Uncaught AppKit exception when using the scrollwheel while Gmail is loading
  43996. * platform/mac/PlatformMouseEventMac.mm:
  43997. (WebCore::eventNumberForEvent): Scroll wheel events don't have an event number.
  43998. 2007-02-04 Nikolas Zimmermann <zimmermann@kde.org>
  43999. Reviewed by Sam.
  44000. Add support for xml:space="preserve" for SVG text.
  44001. It can be modeled by using white-space="pre" and replace \n by spaces.
  44002. Handle xml:space="default" correctly.
  44003. Always remove tabs from SVG text - as demanded by spec.
  44004. Added test: svg/custom/text-whitespace-handling.svg
  44005. * css/svg.css:
  44006. * ksvg2/svg/SVGTextContentElement.cpp:
  44007. (WebCore::SVGTextContentElement::parseMappedAttribute):
  44008. * rendering/RenderText.cpp:
  44009. (WebCore::RenderText::setStyle):
  44010. (WebCore::RenderText::setTextInternal):
  44011. * rendering/bidi.cpp:
  44012. (WebCore::shouldPreserveNewline):
  44013. (WebCore::RenderBlock::skipWhitespace):
  44014. (WebCore::RenderBlock::findNextLineBreak):
  44015. 2007-02-03 Alexey Proskuryakov <ap@webkit.org>
  44016. Reviewed by Darin.
  44017. http://bugs.webkit.org/show_bug.cgi?id=12560
  44018. W3C XPath test Text_Nodes.svg fails
  44019. Covered by dom/svg/level3/xpath/Text_Nodes.svg
  44020. * xml/XPathStep.cpp:
  44021. (WebCore::XPath::Step::nodeTestMatches): Only include the first text sibling in text() matches.
  44022. 2007-02-03 Alexey Proskuryakov <ap@webkit.org>
  44023. Reviewed by Darin.
  44024. http://bugs.webkit.org/show_bug.cgi?id=12485
  44025. XPath id() function doesn't work as root in paths
  44026. Test: fast/xpath/id-path.html
  44027. * xml/XPathPath.cpp:
  44028. (WebCore::XPath::Path::doEvaluate): Implemented.
  44029. (WebCore::XPath::LocationPath::evaluate): A new overload that takes an initial NodeVector.
  44030. (WebCore::XPath::LocationPath::doEvaluate): Moved most of the logic to the new evaluate().
  44031. * xml/XPathPath.h: Added a new evaluate() overload and a using declaration to keep the
  44032. generic one visible.
  44033. 2007-02-03 Alexey Proskuryakov <ap@webkit.org>
  44034. Reviewed by Darin.
  44035. http://bugs.webkit.org/show_bug.cgi?id=12559
  44036. REGRESSION: Crash in checkForHeadCharset() under GuardMalloc
  44037. No tests possible.
  44038. * loader/TextResourceDecoder.cpp:
  44039. (WebCore::TextResourceDecoder::checkForHeadCharset): Fix end of buffer checks; sprinkle a number
  44040. of new ones over the function.
  44041. 2007-02-03 David Kilzer <ddkilzer@webkit.org>
  44042. Reviewed by NOBODY (no-svg build fix).
  44043. * page/EventHandler.cpp: Include FloatPoint.h.
  44044. 2007-02-03 Alexey Proskuryakov <ap@webkit.org>
  44045. Reviewed by Mitz.
  44046. http://bugs.webkit.org/show_bug.cgi?id=12549
  44047. Wrong character encoding at www.ravmilim.co.il
  44048. Test: fast/encoding/meta-charset.html
  44049. * loader/TextResourceDecoder.cpp:
  44050. (WebCore::TextResourceDecoder::checkForHeadCharset): Fix an off by one error.
  44051. 2007-02-02 Maciej Stachowiak <mjs@apple.com>
  44052. Reviewed by Hyatt & Adele.
  44053. - <rdar://problem/4896972> TV guide listings page doesn't finish loading (11674)
  44054. Test case: fast/forms/disabled-select-change-index.html
  44055. * html/HTMLOptionElement.cpp:
  44056. (WebCore::HTMLOptionElement::setSelected): Allow changing selected state of a disabled
  44057. option.
  44058. 2007-02-03 Nikolas Zimmermann <zimmermann@kde.org>
  44059. Build fix, not reviewed.
  44060. Blind attempt to fix Qt build.
  44061. * WebCore.pro: Add RenderSVGGradientStop.cpp / RenderSVGHiddenContainer.cpp
  44062. 2007-02-03 Nikolas Zimmermann <zimmermann@kde.org>
  44063. Reviewed by Eric & Maciej.
  44064. Fix serveral <use> issues:
  44065. - When events are dispatch to a referenced element, the actual event.target
  44066. has to be set to the corresponding SVGElementInstance object
  44067. - Node::shadowAncestorNode() should _not_ return the shadowParentNode for SVG elements
  44068. This is only needed for the HTML forms concept and breaks event dispatching for SVG shadow tree elements.
  44069. - Add SVGElementInstance as possible EventTarget in bindings/js/kjs_dom.cpp
  44070. (Now event.target returns the actual SVGElementInstance object for a shadow tree element)
  44071. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12502 (Reproducible crash when browsing SVG map.)
  44072. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12511 (<use> has event dispatching issues)
  44073. Added test: svg/custom/use-event-handler-on-use-element.svg
  44074. Added test: svg/custom/use-event-handler-on-referenced-element.svg
  44075. Added test: svg/custom/use-elementInstance-event-target.svg
  44076. Added test: svg/custom/use-elementInstance-methods.svg
  44077. * bindings/js/kjs_dom.cpp:
  44078. (KJS::toJS):
  44079. * dom/EventTarget.cpp:
  44080. (WebCore::EventTarget::toSVGElementInstance):
  44081. * dom/EventTarget.h:
  44082. * dom/EventTargetNode.cpp:
  44083. (WebCore::EventTargetNode::handleLocalEvents):
  44084. (WebCore::EventTargetNode::dispatchGenericEvent):
  44085. (WebCore::EventTargetNode::dispatchEvent):
  44086. * dom/EventTargetNode.h:
  44087. * dom/Node.cpp:
  44088. (WebCore::Node::shadowAncestorNode):
  44089. * ksvg2/svg/SVGElement.cpp:
  44090. (WebCore::shadowTreeParentElementForShadowTreeElement):
  44091. (WebCore::SVGElement::dispatchEvent):
  44092. * ksvg2/svg/SVGElement.h:
  44093. * ksvg2/svg/SVGElementInstance.cpp:
  44094. (WebCore::SVGElementInstance::toSVGElementInstance):
  44095. * ksvg2/svg/SVGElementInstance.h:
  44096. * ksvg2/svg/SVGUseElement.cpp:
  44097. (WebCore::SVGUseElement::notifyAttributeChange):
  44098. (WebCore::SVGUseElement::instanceForShadowTreeElement):
  44099. * ksvg2/svg/SVGUseElement.h:
  44100. 2007-02-02 Oliver Hunt <oliver@apple.com>
  44101. Reviewed by Geoff.
  44102. Add guard around accessing [NSEvent eventNumber] to ensure
  44103. we don't attempt to access it on on non-mouse related NSEvent.
  44104. * platform/mac/PlatformMouseEventMac.mm:
  44105. (WebCore::eventNumberForEvent):
  44106. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  44107. 2007-02-02 Adam Roben <aroben@apple.com>
  44108. Reviewed by Anders.
  44109. Try to be a little less selfish about DocumentLoader.
  44110. Spotted while working on <rdar://problem/4957747>.
  44111. * page/ContextMenuController.cpp:
  44112. (WebCore::ContextMenuController::contextMenuItemSelected):
  44113. Everyone can open frames in new windows.
  44114. 2007-02-02 Nikolas Zimmermann <zimmermann@kde.org>
  44115. Reviewed by Eric.
  44116. Move xml:space/xml:lang from svgattrs.in to xmlattrs.in where they actually belong.
  44117. Now they are actually recognized by SVGLangSpace::parseMappedAttribute.
  44118. Patch implementing xml:space="preserve" coming soon, which acts as test for this stuff.
  44119. Always build XMLNames.cpp (not only for SVG) and replace all occourences of
  44120. "http://www.w3.org/XML/1998/namespace" by "XMLNames::xmlNamespaceURI".
  44121. * DerivedSources.make:
  44122. * dom/DOMImplementation.cpp:
  44123. (WebCore::DOMImplementation::createDocument):
  44124. * ksvg2/svg/SVGLangSpace.cpp:
  44125. (WebCore::SVGLangSpace::SVGLangSpace):
  44126. (WebCore::SVGLangSpace::parseMappedAttribute):
  44127. * ksvg2/svg/SVGLangSpace.h:
  44128. * ksvg2/svg/svgattrs.in:
  44129. * page/Frame.cpp:
  44130. (WebCore::Frame::Frame):
  44131. * xml/XPathNSResolver.cpp:
  44132. (WebCore::XPathNSResolver::lookupNamespaceURI):
  44133. * xml/xmlattrs.in:
  44134. 2007-02-02 Beth Dakin <bdakin@apple.com>
  44135. Reviewed by Maciej.
  44136. Working on a layout test.
  44137. Fix for <rdar://problem/4966100> REGRESSION: Reproducible ASSERT
  44138. hit at Walgreens.com
  44139. * page/Frame.cpp:
  44140. (WebCore::Frame::setView): If we are setting the view to 0 and
  44141. detaching the document, call unscheduleRealyout() on the old view
  44142. before setting it to 0.
  44143. 2007-02-01 Geoffrey Garen <ggaren@apple.com>
  44144. Reviewed by Maciej Stachowiak.
  44145. Added support for selectively ignoring WebCore::Node leaks during layout
  44146. tests, so that we can ignore known leaks in other components.
  44147. * WebCore.exp:
  44148. * dom/Node.cpp:
  44149. (WebCore::Node::isSupported): Moved isSupported up with the rest of the static functions.
  44150. (WebCore::): Added an ignoreSet, which collects WebCore::Nodes whose lifetime
  44151. we want to ignore. We need to track which nodes to ignore rather than, say,
  44152. just suspending the count, because node destruction depends on lots of
  44153. different variables, so it would be nearly impossible to know when exactly
  44154. to suspend the count and when exactly to resume it.
  44155. (WebCore::NodeCounter::~NodeCounter): Changed to use WTFLog instead of fprintf.
  44156. (WebCore::Node::startIgnoringLeaks): Do the ignoring.
  44157. (WebCore::Node::stopIgnoringLeaks): ditto
  44158. (WebCore::Node::Node): ditto
  44159. (WebCore::Node::~Node): ditto
  44160. * dom/Node.h: Moved isSupported up with the rest of the static functions.
  44161. * platform/mac/LoggingMac.mm:
  44162. (WebCore::initializeWithUserDefault): Renamed from "initializeLoggingChannel"
  44163. because the real goal here is to honor a user default -- WTFLoggingChannels
  44164. need no run-time initialization. Also replaced "off by default, on if a
  44165. user default says so" behavior with "only override existing setting if a
  44166. user default says so" behavior. It seemed like a bug that you would specify
  44167. a channel's on/off state in its definition, but this function would unconditionally
  44168. blow that state away.
  44169. (WebCore::InitializeLoggingChannelsIfNecessary):
  44170. 2007-02-02 Eric Seidel <eric@webkit.org>
  44171. Reviewed by mitz.
  44172. Fix gradient stop style resolution to be less of a hack, fixing style invalidation:
  44173. http://bugs.webkit.org/show_bug.cgi?id=12193
  44174. and fix stop-color and stop-opacity not to inherit:
  44175. http://bugs.webkit.org/show_bug.cgi?id=12193
  44176. Tests:
  44177. * svg/custom/gradient-stops-style-change.svg: added
  44178. * svg/W3C-SVG-1.1/pservers-grad-18-b.svg: updated
  44179. * WebCore.xcodeproj/project.pbxproj:
  44180. * ksvg2/css/SVGCSSStyleSelector.cpp:
  44181. (WebCore::CSSStyleSelector::applySVGProperty):
  44182. * ksvg2/css/SVGRenderStyle.cpp:
  44183. (WebCore::SVGRenderStyle::inheritedNotEqual):
  44184. (WebCore::SVGRenderStyle::inheritFrom):
  44185. * ksvg2/css/SVGRenderStyle.h:
  44186. * ksvg2/svg/SVGDefsElement.cpp:
  44187. (WebCore::SVGDefsElement::createRenderer):
  44188. * ksvg2/svg/SVGGradientElement.cpp:
  44189. (WebCore::SVGGradientElement::createRenderer):
  44190. (WebCore::SVGGradientElement::buildStops):
  44191. * ksvg2/svg/SVGGradientElement.h:
  44192. (WebCore::SVGGradientElement::rendererIsNeeded):
  44193. * ksvg2/svg/SVGStopElement.cpp:
  44194. (WebCore::SVGStopElement::createRenderer):
  44195. * ksvg2/svg/SVGStopElement.h:
  44196. (WebCore::SVGStopElement::rendererIsNeeded):
  44197. * rendering/RenderSVGGradientStop.cpp: Added.
  44198. * rendering/RenderSVGGradientStop.h: Added.
  44199. * rendering/RenderSVGHiddenContainer.cpp: Added.
  44200. * rendering/RenderSVGHiddenContainer.h: Added.
  44201. * rendering/RenderSVGContainer.cpp:
  44202. * rendering/RenderSVGContainer.h:
  44203. 2007-02-02 Zack Rusin <zrusin@trolltech.com>
  44204. Reviewed by Lars
  44205. Fix scrolling-on-selection bug by correctly
  44206. scrolling to the offset instead of trying to
  44207. ensure visibility with margins.
  44208. * platform/qt/ScrollViewQt.cpp:
  44209. (WebCore::ScrollView::scrollPointRecursively):
  44210. 2007-02-02 Zack Rusin <zrusin@trolltech.com>
  44211. Reviewed by Lars
  44212. Fix drawing of dashed and colored lines. Pen
  44213. has to be inherited for stroke to stay consistent.
  44214. * platform/graphics/qt/GraphicsContextQt.cpp:
  44215. (WebCore::GraphicsContext::setAlpha):
  44216. (WebCore::GraphicsContext::setPlatformStrokeColor):
  44217. (WebCore::GraphicsContext::setPlatformStrokeStyle):
  44218. 2007-02-01 Nicholas Shanks <webkit@nickshanks.com>
  44219. Reviewed by Mark.
  44220. Add support for CSS2 font-stretch property.
  44221. * css/CSSComputedStyleDeclaration.cpp:
  44222. (WebCore::):
  44223. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  44224. * css/cssparser.cpp:
  44225. (WebCore::CSSParser::parseValue):
  44226. * css/cssstyleselector.cpp:
  44227. (WebCore::CSSStyleSelector::applyDeclarations):
  44228. (WebCore::CSSStyleSelector::applyProperty):
  44229. * platform/FontCache.cpp:
  44230. (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
  44231. (WebCore::FontPlatformDataCacheKey::operator==):
  44232. (WebCore::computeHash):
  44233. (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
  44234. (WebCore::FontPlatformDataCacheKeyTraits::emptyValue):
  44235. (WebCore::FontCache::getCachedFontPlatformData):
  44236. * platform/FontDescription.h:
  44237. (WebCore::):
  44238. (WebCore::FontDescription::FontDescription):
  44239. (WebCore::FontDescription::stretch):
  44240. (WebCore::FontDescription::narrowerStretch):
  44241. (WebCore::FontDescription::widerStretch):
  44242. (WebCore::FontDescription::setStretch):
  44243. (WebCore::FontDescription::operator==):
  44244. * platform/mac/FontCacheMac.mm:
  44245. (WebCore::FontCache::createFontPlatformData):
  44246. * platform/mac/WebFontCache.mm:
  44247. (acceptableChoice):
  44248. (betterChoice):
  44249. (+[WebFontCache fontWithFamily:traits:size:]):
  44250. 2007-02-01 Timothy Hatcher <timothy@apple.com>
  44251. Reviewed by Mark Rowe.
  44252. <rdar://problem/4969201> REGRESSION: Safari applies the wrong font to BODY element at http://www.apple.com/downloads/dashboard/
  44253. * platform/mac/WebFontCache.mm:
  44254. (+[WebFontCache fontWithFamily:traits:size:]): Don't call [NSFont fontWithName:] with the desiredFamily on Tiger.
  44255. 2007-02-01 Alexey Proskuryakov <ap@webkit.org>
  44256. Reviewed by Darin.
  44257. http://bugs.webkit.org/show_bug.cgi?id=12506
  44258. REGRESSION: Safari doesn't display hebrew text on a web page,
  44259. displayed correctly on Tiger
  44260. * loader/TextResourceDecoder.cpp:
  44261. (WebCore::TextResourceDecoder::checkForHeadCharset): Advance the pointer when necessary.
  44262. 2007-02-01 George Staikos <staikos@kde.org>
  44263. Reviewed by Zack and Lars.
  44264. Add a cookie interface for the Qt build.
  44265. * WebCore.pro:
  44266. * platform/qt/CookieJarQt.cpp:
  44267. (WebCore::setCookies):
  44268. (WebCore::cookies):
  44269. (WebCore::cookiesEnabled):
  44270. 2007-02-01 Maciej Stachowiak <mjs@apple.com>
  44271. Reviewed by Adele.
  44272. - fixed <rdar://problem/4922764> ASSERTION: (!m_contentFunction) in PolicyCheck::call trying to visit feed URL (CNN, Apple, etc.)
  44273. * loader/FrameLoader.cpp:
  44274. (WebCore::FrameLoader::stopPolicyCheck): Call new cancel method instead of call(false) on old check.
  44275. (WebCore::PolicyCheck::cancel): call any callback function that is set with false or PolicyIgnore as
  44276. appropriate.
  44277. * loader/FrameLoader.h:
  44278. 2007-02-01 Beth Dakin <bdakin@apple.com>
  44279. Reviewed by Hyatt.
  44280. Fix for http://bugs.webkit.org/show_bug.cgi?id=10517 REGRESSION
  44281. (r12065-r12082): Navigation graphic wraps to the next line on
  44282. duart.com and <rdar://problem/4960505> REGRESSION: The Awesome
  44283. Windows Vista page has a layout error in the header table (10517)
  44284. The problem is that we never supported a quirk that other browsers
  44285. support where, under very specific circumstances, a table cell will
  44286. grow to fit an image inside of it. This is only a regression
  44287. because a bug was fixed were we were 1 pixel off in the calculation
  44288. of overflow in some cases.
  44289. * rendering/RenderBlock.cpp:
  44290. (WebCore::shouldGrowTableCellForImage):
  44291. (WebCore::RenderBlock::calcInlineMinMaxWidth):
  44292. 2007-02-01 Zack Rusin <zrusin@trolltech.com>
  44293. Reviewed by Lars
  44294. Implement native look for comboboxes
  44295. and fix/implement popup menus.
  44296. * platform/PopupMenu.h:
  44297. * platform/qt/PopupMenuQt.cpp:
  44298. (WebCore::PopupMenu::PopupMenu):
  44299. (WebCore::PopupMenu::~PopupMenu):
  44300. (WebCore::PopupMenu::clear):
  44301. (WebCore::PopupMenu::populate):
  44302. (WebCore::PopupMenu::show):
  44303. (WebCore::PopupMenu::hide):
  44304. (WebCore::PopupMenu::updateFromElement):
  44305. * platform/qt/RenderThemeQt.cpp:
  44306. (WebCore::RenderThemeQt::adjustMenuListStyle):
  44307. (WebCore::RenderThemeQt::paintButton):
  44308. (WebCore::RenderThemeQt::paintTextField):
  44309. (WebCore::RenderThemeQt::paintMenuList):
  44310. 2007-02-01 Darin Adler <darin@apple.com>
  44311. Reviewed by Maciej.
  44312. - fix <rdar://problem/4887428> REGRESSION: Implement slight delay for firing incremental onSearch event
  44313. * rendering/RenderTextControl.h:
  44314. * rendering/RenderTextControl.cpp:
  44315. (WebCore::RenderTextControl::RenderTextControl): Set up timer.
  44316. (WebCore::RenderTextControl::subtreeHasChanged): Start timer here instead of immediately sending event.
  44317. (WebCore::RenderTextControl::searchEventTimerFired): Added. Sends search event.
  44318. (WebCore::RenderTextControl::stopSearchEventTimer): Added.
  44319. (WebCore::RenderTextControl::startSearchEventTimer): Added. Sends search event right away if there is
  44320. no text. If there is some text, sets the timer using the same delay rule as NSSearchField. If you keep
  44321. typing, then the timer keeps getting reset 0.2 seconds into the future until you pause.
  44322. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::onSearch): Tell the renderer to
  44323. stop the timer, since we're sending a search event. This helps when a caller other than
  44324. the timer decides to send an explicit search event.
  44325. 2007-02-01 Maciej Stachowiak <mjs@apple.com>
  44326. Fix by Darin, reviewed by Maciej.
  44327. - fix ~10% performance regression from encoding fix
  44328. * loader/TextResourceDecoder.cpp:
  44329. (WebCore::TextResourceDecoder::checkForHeadCharset): Fix a logic
  44330. error which made huge strings accidentally.
  44331. 2007-02-01 Lars Knoll <lars@trolltech.com>
  44332. Fix the Qt build
  44333. * page/qt/EventHandlerQt.cpp:
  44334. 2007-01-31 Darin Adler <darin@apple.com>
  44335. Reviewed by Adam and Geoff.
  44336. - fix <rdar://problem/4786767> REGRESSION: <select> controls are not resized when zooming text
  44337. Test: fast/forms/select-width-font-change.html
  44338. * rendering/RenderMenuList.h: Cleaned up formatting a bit. Removed unneeded include of PopupMenu.h.
  44339. Made a lot more things private, including the PopupMenuClient base class, all of the virtual
  44340. functions from PopupMenuClient, and the setTextFromOption function. Added updateOptionsWidth.
  44341. * rendering/RenderMenuList.cpp:
  44342. (WebCore::RenderMenuList::setStyle): Added code to call updateOptionsWidth when the font changes.
  44343. (WebCore::RenderMenuList::updateOptionsWidth): Added. Factored code out of updateFromElement.
  44344. Changed to do nothing when m_optionsWidth is already correct.
  44345. (WebCore::RenderMenuList::updateFromElement): Moved code to recomputed options width to the new
  44346. updateOptionsWidth function.
  44347. (WebCore::RenderMenuList::text): Made const.
  44348. 2007-01-31 Oliver Hunt <oliver@apple.com>
  44349. Reviewed by Adam.
  44350. Migrate more drag and drop logic to WebCore, start preparing
  44351. to move EventHandler::handleDrag from EventHandlerMac to EventHandler
  44352. * WebCore.exp:
  44353. updating methods
  44354. * dom/Clipboard.cpp:
  44355. * dom/Clipboard.h:
  44356. (WebCore::Clipboard::Clipboard):
  44357. (WebCore::Clipboard::setDragHasStarted):
  44358. (WebCore::Clipboard::dragStarted):
  44359. Moving from ClipboardMac to Clipboard
  44360. * dom/EventTargetNode.cpp:
  44361. (WebCore::EventTargetNode::dispatchMouseEvent):
  44362. PlatformMouseEvent no longer lies about button state, however
  44363. DOM Events don't allow NoButton, so we need to convert NoButton
  44364. to LeftButton when we create a DOM Event from PlatformMouseEvent
  44365. * page/DragClient.h:
  44366. Tidying comment
  44367. * page/DragController.cpp:
  44368. (WebCore::createMouseEvent):
  44369. Updated for new PlatformMouseEvent constructors
  44370. (WebCore::DragController::mayStartDragAtEventLocation):
  44371. Migrated from WebKit
  44372. * page/DragController.h:
  44373. Added above function declarations
  44374. * page/EventHandler.cpp:
  44375. (WebCore::EventHandler::dragState):
  44376. (WebCore::EventHandler::dragHysteresisExceeded):
  44377. (WebCore::EventHandler::freeClipboard):
  44378. (WebCore::EventHandler::shouldDragAutoNode):
  44379. Moved from EventHandlerMac
  44380. (WebCore::EventHandler::handleMouseMoveEvent):
  44381. (WebCore::EventHandler::eventMayStartDrag):
  44382. (WebCore::EventHandler::handleMousePressEvent):
  44383. Use DragController
  44384. * page/EventHandler.h:
  44385. Added DragState struct definition to EventHandler
  44386. * page/mac/EventHandlerMac.mm:
  44387. (WebCore::EventHandler::eventActivatedView):
  44388. (WebCore::EventHandler::handleDrag):
  44389. (WebCore::EventHandler::handleMouseUp):
  44390. (WebCore::EventHandler::mouseDown):
  44391. Update to use DragController and PlatformMouseEvent
  44392. * page/mac/WebCoreFrameBridge.h:
  44393. * page/mac/WebCoreFrameBridge.mm:
  44394. (-[WebCoreFrameBridge dragSourceMovedTo:]):
  44395. (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
  44396. Use DragController for state
  44397. * platform/PlatformMouseEvent.h:
  44398. (WebCore::):
  44399. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  44400. (WebCore::PlatformMouseEvent::eventType):
  44401. (WebCore::PlatformMouseEvent::timestamp):
  44402. (WebCore::PlatformMouseEvent::eventNumber):
  44403. (WebCore::PlatformMouseEvent::setClickCount):
  44404. Exposing necessary data for Drag logic
  44405. * platform/mac/ClipboardMac.h:
  44406. * platform/mac/ClipboardMac.mm:
  44407. (WebCore::ClipboardMac::ClipboardMac):
  44408. (WebCore::ClipboardMac::setDragImage):
  44409. Have moved a number of fields from ClipboardMac to Clipboard
  44410. so need to use accessors in a few places now
  44411. * platform/mac/PlatformMouseEventMac.mm:
  44412. (WebCore::mouseButtonForEvent):
  44413. (WebCore::mouseEventForNSEvent):
  44414. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  44415. Determine MouseEventType, and provide event time info
  44416. 2007-01-31 Alexey Proskuryakov <ap@webkit.org>
  44417. Reviewed by Darin.
  44418. http://bugs.webkit.org/show_bug.cgi?id=12506
  44419. REGRESSION: Safari doesn't display hebrew text on a web page,
  44420. displayed correctly on Tiger
  44421. * loader/TextResourceDecoder.cpp:
  44422. (WebCore::TextResourceDecoder::checkForHeadCharset): Skip over
  44423. quoted attributes.
  44424. 2007-01-31 David Carson <dacarson@gmail.com>
  44425. Reviewed by Darin.
  44426. - fix http://bugs.webkit.org/show_bug.cgi?id=12510
  44427. Initialize the variable m_totalLoops
  44428. Is tested by LayoutTests/fast/css/MarqueeLayoutTest.html
  44429. * rendering/RenderLayer.cpp:
  44430. (WebCore::Marquee::Marquee):
  44431. 2007-01-31 Anders Carlsson <acarlsson@apple.com>
  44432. Reviewed by Maciej.
  44433. <rdar://problem/4886776>
  44434. REGRESSION: After opening a web archive, location shows the actual URL, not the webarchive file
  44435. * WebCore.exp:
  44436. * loader/FrameLoader.cpp:
  44437. (WebCore::FrameLoader::continueLoadWithData):
  44438. * loader/FrameLoader.h:
  44439. New function which continues a load but using a given buffer instead.
  44440. 2007-01-31 Adele Peterson <adele@apple.com>
  44441. Reviewed by Adam.
  44442. Fix for http://bugs.webkit.org/show_bug.cgi?id=12516
  44443. REGRESSION (r19313): All keyboard navigation has stopped working
  44444. For non-editable selections, handleKeyPress doesn't need to call _interceptEditingKeyEvent.
  44445. * editing/Editor.cpp:
  44446. (WebCore::selectionForEvent): Moved this to the top of the file.
  44447. (WebCore::Editor::handleKeyPress): Do the equivalent of the _canEdit check that used to be in WebKit WebEditorClient::handleKeyPress.
  44448. 2007-01-31 Geoffrey Garen <ggaren@apple.com>
  44449. Reviewed by Darin Adler.
  44450. Added a Range counter to detect leaks. Tweaked the Node counter.
  44451. Also fixed a TextIterator destructive modification bug that I noticed along the
  44452. way. No test case for this bug because no clients have been bitten by it
  44453. yet.
  44454. * dom/Node.cpp: Renamed NodeImplCounter to NodeCounter, changed counter
  44455. to unsigned, fixed formatting to match style guidelines.
  44456. (WebCore::NodeCounter::~NodeCounter):
  44457. (WebCore::Node::Node):
  44458. (WebCore::Node::~Node):
  44459. * dom/Range.cpp:
  44460. (WebCore::RangeCounter::~RangeCounter): Added.
  44461. (WebCore::Range::Range):
  44462. (WebCore::Range::~Range):
  44463. (WebCore::Range::ownerDocument): New accessor, used by TextIterator to avoid
  44464. annoying NULL checks.
  44465. * dom/Range.h:
  44466. * editing/TextIterator.cpp:
  44467. (WebCore::TextIterator::subrange):
  44468. (1) Don't initialize result with entireRange -- doing so would create a
  44469. PassRefPtr that pointed to entireRange, so this function would destructively
  44470. modify the Range you passed it. Initialize it with a new Range instead.
  44471. (2) Don't use a PassRefPtr as a local variable, because they have sneaky
  44472. semantics. Use a RefPtr instead.
  44473. (3) Don't call CharacterIterator::range() willy-nilly, since it does
  44474. non-trivial work. Use a local variable instead.
  44475. 2007-01-31 Adele Peterson <adele@apple.com>
  44476. Reviewed by Darin.
  44477. WebCore part of fix for <rdar://problem/4521461> REGRESSION: when keyPress event changes form focus, inserted key goes to wrong control
  44478. Test: fast/events/keypress-focus-change.html
  44479. * editing/Editor.cpp:
  44480. (WebCore::selectionForEvent): Added. This computes a selection that considers the case where an event handler
  44481. has moved the selection outside of a text control. In that case, we use the target control's selection.
  44482. (WebCore::Editor::insertText): This gets the selectionForEvent, checks that the selection is editable,
  44483. and calls TypingCommand::insertText with the correct selection.
  44484. * editing/TypingCommand.h: Added a version of insertText that takes a selection. The old version of insertText will call this, and pass
  44485. in the frame's selection.
  44486. * editing/TypingCommand.cpp: (WebCore::TypingCommand::insertText): Added. Uses the passed in selection to
  44487. set the starting and ending selections correctly so that the editing machinery will insert the text in the correct place.
  44488. * page/Page.h: Added convenience method to get selection from focused or main frame.
  44489. * page/Page.cpp: (WebCore::Page::selection):
  44490. * html/HTMLInputElement.h: Added selection methods to get selection for text controls.
  44491. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::selection):
  44492. * html/HTMLTextAreaElement.h:
  44493. * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::selection):
  44494. * rendering/RenderTextControl.h:
  44495. * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::selection):
  44496. 2007-01-31 Darin Adler <darin@apple.com>
  44497. - fix build
  44498. * ForwardingHeaders/wtf/ListHashSet.h: Added.
  44499. 2007-01-31 Zack Rusin <zrusin@trolltech.com>
  44500. Reviewed by Lars
  44501. Return the correct selection color.
  44502. * platform/qt/RenderThemeQt.cpp:
  44503. (WebCore::RenderThemeQt::supportsFocusRing):
  44504. (WebCore::RenderThemeQt::platformActiveSelectionBackgroundColor):
  44505. (WebCore::RenderThemeQt::platformInactiveSelectionBackgroundColor):
  44506. (WebCore::RenderThemeQt::platformActiveSelectionForegroundColor):
  44507. (WebCore::RenderThemeQt::platformInactiveSelectionForegroundColor):
  44508. 2007-01-31 Maciej Stachowiak <mjs@apple.com>
  44509. Reviewed by Mark.
  44510. - fixed <rdar://problem/4751164> REGRESSION: Safari places text on incorrect button when returning to a page via back [10541]
  44511. http://bugs.webkit.org/show_bug.cgi?id=10541
  44512. * dom/Document.cpp:
  44513. (WebCore::Document::formElementsState):
  44514. * dom/Document.h:
  44515. I couldn't figure out the back/forward support in the tests enough
  44516. to make an automated test, but this maual test reproduces the
  44517. problem 100% without this patch:
  44518. * manual-tests/back.html: Added.
  44519. * manual-tests/form-control-madness.html: Added.
  44520. 2007-01-31 David Kilzer <ddkilzer@kilzer.net>
  44521. Reviewed by Mitz.
  44522. - fix http://bugs.webkit.org/show_bug.cgi?id=12490
  44523. Clean up canPlaceOnLine logic in bidi.cpp
  44524. No test cases since there is no change in functionality.
  44525. * rendering/bidi.cpp:
  44526. (WebCore::RenderBlock::findNextLineBreak): Simplify canFitOnLine expression.
  44527. 2007-01-31 Zack Rusin <zack@kde.org>
  44528. Adding comments explaining how the focus ring implementation
  44529. works on the Qt platform and just move focus ring rendering
  44530. related code to the same spot.
  44531. * platform/graphics/qt/GraphicsContextQt.cpp:
  44532. (WebCore::setFocusRingColorChangeFunction):
  44533. (WebCore::focusRingColor):
  44534. (WebCore::GraphicsContext::drawFocusRing):
  44535. * platform/qt/TemporaryLinkStubs.cpp:
  44536. 2007-01-31 Zack Rusin <zrusin@trolltech.com>
  44537. Reviewed by Lars
  44538. Properly propagate key events.
  44539. * page/qt/FrameQt.cpp:
  44540. * page/qt/FrameQt.h: Remove redundant method.
  44541. * platform/qt/ScrollViewCanvasQt.cpp:
  44542. (WebCore::ScrollViewCanvasQt::handleKeyEvent):
  44543. 2007-01-31 George Staikos <staikos@kde.org>
  44544. Reviewed by Zack and Lars.
  44545. Fix double delete on cancel as well as assertion with proxy.
  44546. * platform/network/qt/ResourceHandleManagerQt.cpp:
  44547. (WebCore::WebCoreHttp::getConnection):
  44548. (WebCore::WebCoreHttp::onRequestFinished):
  44549. (WebCore::WebCoreHttp::cancel):
  44550. 2007-01-31 Mark Rowe <mrowe@apple.com>
  44551. Reviewed by Oliver.
  44552. * dom/Document.h: Change #if XSLT_SUPPORT to #ifdef XSLT_SUPPORT.
  44553. 2007-01-31 Lars Knoll <lars@trolltech.com>
  44554. Fix the Qt build.
  44555. * platform/network/qt/ResourceHandleQt.cpp:
  44556. (WebCore::ResourceHandle::setDefersLoading):
  44557. 2007-01-31 Zack Rusin <zack@kde.org>
  44558. Reviewed by Eric.
  44559. Implement SVGImage on the Qt platform.
  44560. * WebCore.pro:
  44561. * loader/CachedImage.cpp:
  44562. (WebCore::CachedImage::createImage):
  44563. * platform/graphics/ImageBuffer.h:
  44564. * platform/graphics/qt/ImageBufferQt.cpp:
  44565. (WebCore::ImageBuffer::create):
  44566. (WebCore::ImageBuffer::ImageBuffer):
  44567. (WebCore::ImageBuffer::~ImageBuffer):
  44568. (WebCore::ImageBuffer::context):
  44569. (WebCore::ImageBuffer::pixmap):
  44570. * platform/graphics/svg/SVGImage.cpp:
  44571. (WebCore::SVGImage::nativeImageForCurrentFrame):
  44572. (WebCore::SVGImage::setData):
  44573. 2007-01-30 Maciej Stachowiak <mjs@apple.com>
  44574. Reviewed by Brady.
  44575. - fixed <rdar://problem/4939366> REGRESSION: Assertion failure and crash when going back in history (12314)
  44576. * loader/FrameLoader.cpp:
  44577. (WebCore::FrameLoader::createWindow): special case a frame name of "_blank"
  44578. (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy): ditto
  44579. 2007-01-30 Maciej Stachowiak <mjs@apple.com>
  44580. Reviewed by Anders.
  44581. - fixed <rdar://problem/4963871> REGRESSION: Crash occurs at WebCore::Frame::loader() when attempting to open a saved archive file
  44582. * loader/DocumentLoader.cpp:
  44583. (WebCore::DocumentLoader::request): Removed obsolete FIXME.
  44584. (WebCore::DocumentLoader::initialRequest): Ditto.
  44585. * loader/MainResourceLoader.cpp:
  44586. (WebCore::MainResourceLoader::MainResourceLoader): Handle data loads from a timer, otherwise bad things happen.
  44587. (WebCore::MainResourceLoader::handleDataLoadNow):
  44588. (WebCore::MainResourceLoader::handleDataLoadSoon):
  44589. (WebCore::MainResourceLoader::loadNow):
  44590. (WebCore::MainResourceLoader::didCancel): cancel data load timer
  44591. * loader/MainResourceLoader.h:
  44592. 2007-01-30 Timothy Hatcher <timothy@apple.com>
  44593. Reviewed by Darin.
  44594. <rdar://problem/4961953> Stop using NSString deprecated methods like initWithCString:
  44595. * WebCore.xcodeproj/project.pbxproj:
  44596. * platform/graphics/svg/filters/cg/WKArithmeticFilter.m:
  44597. (-[WKArithmeticFilter init]):
  44598. * platform/graphics/svg/filters/cg/WKComponentMergeFilter.m:
  44599. (-[WKComponentMergeFilter init]):
  44600. * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.m:
  44601. (-[WKDiffuseLightingFilter init]):
  44602. * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.m:
  44603. (-[WKDiscreteTransferFilter init]):
  44604. * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.m:
  44605. (-[WKDisplacementMapFilter init]):
  44606. * platform/graphics/svg/filters/cg/WKDistantLightFilter.m:
  44607. (-[WKDistantLightFilter init]):
  44608. * platform/graphics/svg/filters/cg/WKGammaTransferFilter.m:
  44609. (-[WKGammaTransferFilter init]):
  44610. * platform/graphics/svg/filters/cg/WKLinearTransferFilter.m:
  44611. (-[WKLinearTransferFilter init]):
  44612. * platform/graphics/svg/filters/cg/WKNormalMapFilter.m:
  44613. (-[WKNormalMapFilter init]):
  44614. * platform/graphics/svg/filters/cg/WKPointLightFilter.m:
  44615. (-[WKPointLightFilter init]):
  44616. * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.m:
  44617. (-[WKSpecularLightingFilter init]):
  44618. * platform/graphics/svg/filters/cg/WKSpotLightFilter.m:
  44619. (-[WKSpotLightFilter init]):
  44620. * platform/graphics/svg/filters/cg/WKTableTransferFilter.m:
  44621. (-[WKTableTransferFilter init]):
  44622. 2007-01-30 David Hyatt <hyatt@apple.com>
  44623. Fix for Radar bug #4679426, golden gate bridge Web site layout broken.
  44624. This is a regression caused by the addition of :lang support. This
  44625. feature caused us to accept any pseudo-class/element with function
  44626. arguments, even ones we couldn't handle. The site used such a construct
  44627. in conjunction with :not, which turned :not(something-crazy) into not(false).
  44628. This ended up being "true", and so we started matching a rule we used to
  44629. reject.
  44630. The fix is to now aggressively parse pseudo-elements and classes and to
  44631. cause the rejection of an entire rule if any pseudoclass or element within
  44632. any simple selector of that rule is unrecognized.
  44633. Reviewed by darin
  44634. fast/css/invalid-pseudo-classes.html
  44635. * css/CSSGrammar.y:
  44636. * css/CSSSelector.cpp:
  44637. (WebCore::CSSSelector::extractPseudoType):
  44638. * css/CSSSelector.h:
  44639. (WebCore::CSSSelector::):
  44640. * css/cssstyleselector.cpp:
  44641. (WebCore::CSSStyleSelector::checkOneSelector):
  44642. 2007-01-30 Mitz Pettel <mitz@webkit.org>
  44643. Reviewed by Darin.
  44644. - fix http://bugs.webkit.org/show_bug.cgi?id=12487
  44645. REGRESSION: Repro crash when a second background image is animated
  44646. Test: fast/images/animated-background-image-crash.html
  44647. * rendering/RenderObject.cpp:
  44648. (WebCore::RenderObject::arenaDelete): Deref() all background images and the
  44649. border image.
  44650. 2007-01-30 Darin Adler <darin@apple.com>
  44651. Reviewed by Maciej.
  44652. * dom/EventTarget.h:
  44653. * dom/EventTarget.cpp: (WebCore::EventTarget::toNode):
  44654. Use EventTargetNode instead of Node. Removed unneeded includes.
  44655. Make EventTarget's destructor protected to make it clear that you
  44656. should never delete one.
  44657. * dom/EventTargetNode.h:
  44658. (WebCore::EventTargetNode::toNode):
  44659. Tweaked formatting. Updated for change to return value.
  44660. * platform/graphics/BitmapImage.h: Updated comment for clarity.
  44661. Marked FrameData Noncopyable.
  44662. * platform/graphics/Image.h: Tweaked formatting.
  44663. * platform/graphics/ImageAnimationObserver.h:
  44664. Make ImageAnimationObserver's destructor protected to make it clear that you
  44665. should never delete one.
  44666. 2007-01-30 Mitz Pettel <mitz@webkit.org>
  44667. Reviewed by Darin (by way of Hyatt).
  44668. - fix http://bugs.webkit.org/show_bug.cgi?id=12373
  44669. ASSERTION FAILURE: !child->needsLayout() on paypal.com
  44670. Test: fast/table/inline-form-assert.html
  44671. * rendering/RenderContainer.cpp:
  44672. (WebCore::RenderContainer::layout): Changed the assertion to ignore inlines.
  44673. 2007-01-30 Alexey Proskuryakov <ap@webkit.org>
  44674. Reviewed by Darin.
  44675. http://bugs.webkit.org/show_bug.cgi?id=12486
  44676. XPathNSResolver.lookupNamespaceURI should return null if no URI is found
  44677. * xml/XPathNSResolver.idl: added [ConvertNullStringTo=Null].
  44678. 2007-01-30 Anders Carlsson <acarlsson@apple.com>
  44679. Reviewed by Maciej.
  44680. Revert the parts of 19244 that removed deferring NSURLConnections, that was not a correct change.
  44681. Remove ASSERTS from loader.cpp that aren't true anymore since the callbacks are invoked without a handle
  44682. when loading a subresource from an archive.
  44683. * loader/MainResourceLoader.cpp:
  44684. (WebCore::MainResourceLoader::loadNow):
  44685. * loader/ResourceLoader.cpp:
  44686. (WebCore::ResourceLoader::releaseResources):
  44687. (WebCore::ResourceLoader::load):
  44688. (WebCore::ResourceLoader::setDefersLoading):
  44689. * loader/loader.cpp:
  44690. (WebCore::Loader::didFail):
  44691. (WebCore::Loader::didReceiveResponse):
  44692. (WebCore::Loader::didReceiveData):
  44693. * platform/network/ResourceHandle.cpp:
  44694. (WebCore::ResourceHandle::ResourceHandle):
  44695. (WebCore::ResourceHandle::create):
  44696. * platform/network/ResourceHandle.h:
  44697. * platform/network/ResourceHandleInternal.h:
  44698. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  44699. * platform/network/mac/ResourceHandleMac.mm:
  44700. (WebCore::ResourceHandle::start):
  44701. (WebCore::ResourceHandle::setDefersLoading):
  44702. 2007-01-30 Darin Adler <darin@apple.com>
  44703. Reviewed by John.
  44704. - fix for <rdar://problem/4911504> REGRESSION: With a image selected, ctrl-clicking
  44705. on page displays the wrong contextual menu items "Search in Google", "Search in Spotlight"
  44706. and "Look up in Dictionary"
  44707. * platform/ContextMenu.cpp:
  44708. (WebCore::selectionContainsPossibleWord): Added. Returns true if there are some
  44709. non-whitespace characters in the selection.
  44710. (WebCore::ContextMenu::populate): Don't add SearchSpotlightItem, SearchWebItem,
  44711. or LookInDictionaryItem if selectionContainsPossibleWord returns false.
  44712. 2007-01-30 Nikolas Zimmermann <zimmermann@kde.org>
  44713. Reviewed by Oliver.
  44714. Respect stroke-width in absolute repaint rect calculations for SVG text.
  44715. Added test: svg/custom/text-repaint-including-stroke.svg
  44716. * rendering/RenderSVGText.cpp:
  44717. (WebCore::RenderSVGText::relativeBBox):
  44718. 2007-01-30 Steve Falkenburg <sfalken@apple.com>
  44719. Reviewed by Oliver.
  44720. Add missing includes.
  44721. * ksvg2/svg/SVGElementInstance.cpp:
  44722. 2007-01-30 Alexey Proskuryakov <ap@webkit.org>
  44723. Reviewed by Darin.
  44724. http://bugs.webkit.org/show_bug.cgi?id=12452
  44725. XPath id() function is not supported
  44726. * xml/XPathFunctions.cpp:
  44727. (WebCore::XPath::isWhitespace): A helper to detect XML whitespace.
  44728. (WebCore::XPath::FunId::isConstant):
  44729. (WebCore::XPath::FunId::doEvaluate):
  44730. (WebCore::XPath::FunctionMapping::):
  44731. Implemented id().
  44732. 2007-01-30 Zack Rusin <zrusin@trolltech.com>
  44733. Reviewed by Sam.
  44734. Make the gradients work on the Qt platform.
  44735. * platform/graphics/svg/SVGPaintServerGradient.h:
  44736. * platform/graphics/svg/SVGPaintServerLinearGradient.h:
  44737. * platform/graphics/svg/SVGPaintServerRadialGradient.h:
  44738. * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp:
  44739. (WebCore::SVGPaintServerGradient::fillColorArray):
  44740. (WebCore::SVGPaintServerGradient::setup):
  44741. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
  44742. (WebCore::SVGPaintServerLinearGradient::setupGradient):
  44743. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
  44744. (WebCore::SVGPaintServerRadialGradient::setupGradient):
  44745. 2007-01-30 Nikolas Zimmermann <zimmermann@kde.org>
  44746. Reviewed by Eric & Oliver. Leak related fixes reviewed by Mark.
  44747. Finally make the SVG <use> implementation use the proper "shadow tree" concept,
  44748. which is also used by the HTML forms implementation. It's the first time in ksvg
  44749. history that <use> is not implement as a crude hack, but proper & sane.
  44750. Implement deep expansion of use trees both for the instance & shadow tree.
  44751. (<use> on a <symbol> containing a <g> containg a <use> element referencing a <rect>)
  44752. The shadow tree is free of any symbol/use tags, but is properly expanded to the
  44753. actual referenced content. The instance tree (SVGElementInstance objects) now exactly
  44754. exposes the "expanded" shadow tree, as required by the specification. Previously
  44755. we cloned referenced <use> elements, so our faked use shadow tree itself contained
  44756. <use> elements. That lead to very nasty bugs - finally these dirty pieces are gone.
  44757. Checked twice that the updating logic works for all weird "deep expansions" cases. Example:
  44758. <rect id="someRect"/> <g id="g"> <symbol> <use xlink:href="#someRect"/> </g> <use xlink:href="#g" id="use"/>
  44759. If you walk through the instanceRoot using JavasScript, and explicitely modify some propertties of "someRect"
  44760. -> all instances get updated correctly. For such simple cases it doesn't even involve recloning the shadow tree!
  44761. SVGElementInstance is now an EventTarget, as demanded by the specification - sending events to <use> instances
  44762. will be implemented in a follow-up patch - as well as the "share event listeners with referenced target" logic.
  44763. Fixes all updating/stability issues with svg/carto.net/window.svg.
  44764. Fixes: http://bugs.webkit.org/show_bug.cgi?id=6000 (<use> does not handle recursion safely)
  44765. Added test: svg/custom/use-on-use.svg (deep use referencing)
  44766. Added test: svg/custom/use-on-g-containing-use.svg (nested deep use referencing)
  44767. Added test: svg/custom/use-modify-target-container.svg (instanceRoot scripting, modifying <g> target)
  44768. Added test: svg/custom/use-modify-target-symbol.svg (instanceRoot scripting, modfiying <symbol> target)
  44769. Added test: svg/custom/use-modify-container-in-target.svg (modify <g> within referenced use target -> needs to update instances)
  44770. Added test: svg/custom/use-recursion-1.svg (referencing container, whose children reference itself)
  44771. Added test: svg/custom/use-recursion-2.svg (<use> self referencing)
  44772. Added test: svg/custom/use-recursion-3.svg (<use> self rerencing, within <use> target)
  44773. Added test: svg/custom/use-recursion-4.svg (cyclic referencing, within <use> target)
  44774. * bindings/scripts/CodeGeneratorJS.pm:
  44775. * css/cssstyleselector.cpp:
  44776. (WebCore::CSSStyleSelector::initForStyleResolve):
  44777. (WebCore::CSSStyleSelector::adjustRenderStyle):
  44778. * ksvg2/misc/SVGDocumentExtensions.cpp:
  44779. (WebCore::SVGDocumentExtensions::removeTimeContainer):
  44780. * ksvg2/svg/SVGElement.cpp:
  44781. (WebCore::SVGElement::SVGElement):
  44782. (WebCore::SVGElement::viewportElement):
  44783. * ksvg2/svg/SVGElement.h:
  44784. (WebCore::SVGElement::isShadowNode):
  44785. (WebCore::SVGElement::shadowParentNode):
  44786. (WebCore::SVGElement::setShadowParentNode):
  44787. * ksvg2/svg/SVGElementInstance.cpp:
  44788. (WebCore::SVGElementInstance::SVGElementInstance):
  44789. (WebCore::SVGElementInstance::correspondingUseElement):
  44790. (WebCore::SVGElementInstance::shadowTreeElement):
  44791. (WebCore::SVGElementInstance::setShadowTreeElement):
  44792. (WebCore::containsUseChildNode):
  44793. (WebCore::SVGElementInstance::updateInstance):
  44794. (WebCore::SVGElementInstance::addEventListener):
  44795. (WebCore::SVGElementInstance::removeEventListener):
  44796. (WebCore::SVGElementInstance::dispatchEvent):
  44797. * ksvg2/svg/SVGElementInstance.h:
  44798. (WebCore::SVGElementInstance::refEventTarget):
  44799. (WebCore::SVGElementInstance::derefEventTarget):
  44800. (WebCore::SVGElementInstance::hasOneRef):
  44801. (WebCore::SVGElementInstance::refCount):
  44802. (WebCore::SVGElementInstance::setParent):
  44803. (WebCore::SVGElementInstance::parent):
  44804. * ksvg2/svg/SVGElementInstance.idl:
  44805. * ksvg2/svg/SVGGElement.cpp:
  44806. (WebCore::SVGGElement::localMatrix):
  44807. * ksvg2/svg/SVGGElement.h:
  44808. * ksvg2/svg/SVGHiddenElement.h: Removed.
  44809. * ksvg2/svg/SVGSVGElement.cpp:
  44810. (WebCore::SVGSVGElement::~SVGSVGElement):
  44811. * ksvg2/svg/SVGStyledElement.cpp:
  44812. (WebCore::SVGStyledElement::updateElementInstance):
  44813. * ksvg2/svg/SVGUseElement.cpp:
  44814. (WebCore::SVGUseElement::removedFromDocument):
  44815. (WebCore::SVGUseElement::notifyAttributeChange):
  44816. (WebCore::dumpInstanceTree):
  44817. (WebCore::SVGUseElement::buildPendingResource):
  44818. (WebCore::SVGUseElement::attach):
  44819. (WebCore::SVGUseElement::buildInstanceTree):
  44820. (WebCore::SVGUseElement::handleDeepUseReferencing):
  44821. (WebCore::SVGUseElement::buildShadowTree):
  44822. (WebCore::SVGUseElement::expandUseElementsInShadowTree):
  44823. (WebCore::SVGUseElement::attachShadowTree):
  44824. (WebCore::SVGUseElement::associateInstancesWithShadowTreeElements):
  44825. (WebCore::SVGUseElement::transferUseAttributesToReplacedElement):
  44826. * ksvg2/svg/SVGUseElement.h:
  44827. 2007-01-30 Maciej Stachowiak <mjs@apple.com>
  44828. Reviewed by Eric.
  44829. <rdar://problem/4928646> REGRESSION: manual-tests/remove-input-file-onchange.html crashes
  44830. * platform/FileChooser.h:
  44831. (WebCore::FileChooser::disconnected): New method, so the RenderFileControl can tell when it's
  44832. gotten disconected.
  44833. * rendering/RenderFileUploadControl.cpp:
  44834. (WebCore::RenderFileUploadControl::valueChanged): Avoid calling repainted() when onChange()
  44835. handler destroyed us.
  44836. 2007-01-30 Simon Hausmann <hausmann@kde.org>
  44837. Reviewed by Zack.
  44838. Combine libJavaScriptCore into libWebKitQt.
  44839. Build with ELF visibility if possible.
  44840. * WebCore.pro:
  44841. 2007-01-30 Zack Rusin <zack@kde.org>
  44842. The method has been removed from the header
  44843. (make it compile)
  44844. * platform/network/qt/ResourceHandleQt.cpp:
  44845. 2007-01-30 Zack Rusin <zrusin@trolltech.com>
  44846. Reviewed by aroben
  44847. Compile fix.
  44848. * loader/ResourceLoader.cpp:
  44849. (WebCore::ResourceLoader::releaseResources):
  44850. (WebCore::ResourceLoader::setDefersLoading):
  44851. 2007-01-29 Zack Rusin <zack@kde.org>
  44852. Reviewed by Lars
  44853. Propagate the allows-scrolling property on the frames
  44854. correctly. If the frame has been constructed as non-
  44855. scrolling, respect that and don't show scrollbars.
  44856. * platform/ScrollView.h:
  44857. * platform/qt/ScrollViewQt.cpp:
  44858. (WebCore::ScrollView::ScrollView):
  44859. (WebCore::ScrollView::setHScrollbarMode):
  44860. (WebCore::ScrollView::setVScrollbarMode):
  44861. (WebCore::ScrollView::setAllowsScrolling):
  44862. 2007-01-29 Geoffrey Garen <ggaren@apple.com>
  44863. I am the chosen one! I have seen the faces of the final five! I will
  44864. save the WebKit build!
  44865. * loader/ResourceLoader.cpp:
  44866. (WebCore::ResourceLoader::load):
  44867. 2007-01-30 Graham Dennis <graham.dennis@gmail.com>
  44868. Reviewed by Maciej.
  44869. Part of fix for http://bugs.webkit.org/show_bug.cgi?id=10725
  44870. Image data in from RTFD clipboard data thrown away
  44871. ResourceHandles no longer need to be able to defer loading as that is
  44872. now handled by the ResourceLoader.
  44873. * loader/MainResourceLoader.cpp:
  44874. (WebCore::MainResourceLoader::loadNow): updated to remove defersLoading argument.
  44875. * loader/ResourceLoader.cpp:
  44876. (WebCore::ResourceLoader::releaseResources): release the deferred request.
  44877. (WebCore::ResourceLoader::load): defer creating the ResourceHandle instead of
  44878. asking the ResourceHandle to defer loading.
  44879. (WebCore::ResourceLoader::setDefersLoading): create the ResourceHandle if we have deferred creating it.
  44880. * loader/ResourceLoader.h:
  44881. * platform/network/ResourceHandle.cpp: ResourceHandle's don't need to know about deferLoading.
  44882. (WebCore::ResourceHandle::ResourceHandle):
  44883. (WebCore::ResourceHandle::create):
  44884. * platform/network/ResourceHandle.h: ditto.
  44885. * platform/network/ResourceHandleInternal.h: ditto.
  44886. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  44887. * platform/network/mac/ResourceHandleMac.mm: ditto.
  44888. (WebCore::ResourceHandle::start):
  44889. 2007-01-29 Brady Eidson <beidson@apple.com>
  44890. Reviewed by Alice
  44891. Lets use smart pointers, shall we?
  44892. * platform/network/ResourceHandleInternal.h:
  44893. 2007-01-29 Justin Garcia <justin.garcia@apple.com>
  44894. Reviewed by harrison
  44895. <rdar://problem/4960137>
  44896. ASSERTION FAILURE calling SelectionController::setBaseAndExtent (11833)
  44897. * editing/SelectionController.cpp:
  44898. (WebCore::SelectionController::setSelection): Hand off the selection
  44899. to the selectionController responsible for it, instead of asserting.
  44900. A selection object can't be constructed with endpoints in different
  44901. documents, so this code is only necessary for one endpoint.
  44902. 2007-01-29 Ada Chan <adachan@apple.com>
  44903. Reviewed by Brady.
  44904. Moved the update of the title of the current entry in the backforward list to WebCore.
  44905. * loader/FrameLoader.cpp:
  44906. (WebCore::FrameLoader::didChangeTitle):
  44907. 2007-01-29 Adele Peterson <adele@apple.com>
  44908. Reviewed by Darin.
  44909. More preparation for event handling fixes.
  44910. * bridge/EditorClient.h: Removed EventTargetNode parameter from handleKeyPress since we can just get that from the event.
  44911. * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::defaultEventHandler): ditto.
  44912. * page/EventHandler.cpp: (WebCore::EventHandler::defaultKeyboardEventHandler): ditto.
  44913. * page/EventHandler.h: ditto.
  44914. * platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyEditorClient::handleKeyPress): ditto.
  44915. * editing/Editor.h:
  44916. * editing/Editor.cpp:
  44917. (WebCore::Editor::handleKeyPress): Removed EventTargetNode parameter.
  44918. (WebCore::Editor::execCommand): Made commandMap use AtomicStringImpls instead of Strings.
  44919. (WebCore::Editor::insertText): Moved from the bridge.
  44920. * page/mac/WebCoreFrameBridge.h: Moved insertText method to Editor.
  44921. * page/mac/WebCoreFrameBridge.mm:
  44922. * WebCore.exp: Updated exports.
  44923. 2007-01-29 Anders Carlsson <acarlsson@apple.com>
  44924. Reviewed by Geoff.
  44925. <rdar://problem/4960097>
  44926. http://bugs.webkit.org/show_bug.cgi?id=12444
  44927. Assertion failure in -[WebCoreFrameBridge installInFrame:]
  44928. The problem was that the XML tokenizer didn't create elements with
  44929. createdByParser set to true.
  44930. * dom/Document.cpp:
  44931. (WebCore::Document::createElement):
  44932. New method which takes a QName. This is used by both the XML tokenizer and createElementNS.
  44933. (WebCore::Document::createElementNS):
  44934. Call new createElement method.
  44935. * dom/XMLTokenizer.h:
  44936. * dom/XMLTokenizer.cpp:
  44937. (WebCore::XMLTokenizer::XMLTokenizer):
  44938. (WebCore::XMLTokenizer::~XMLTokenizer):
  44939. Use an OwnPtr for the pending callbacks object. Also, use String instead of StringImpl in the hash map.
  44940. (WebCore::toString):
  44941. (WebCore::XMLTokenizer::startElementNs):
  44942. Call createElement.
  44943. 2007-01-29 Brady Eidson <beidson@apple.com>
  44944. Reviewed by Oliver
  44945. http://bugs.webkit.org/show_bug.cgi?id=12465
  44946. Only set the iconURL port for non-zero ports
  44947. * loader/FrameLoader.cpp:
  44948. (WebCore::FrameLoader::iconURL):
  44949. 2007-01-29 John Sullivan <sullivan@apple.com>
  44950. * platform/network/mac/ResourceRequestMac.mm:
  44951. Build fix -- removed #import of no-longer-extant WebDataProtocol.h (and also one of the
  44952. two #imports for WebCoreSystemInterface.h, while I was at it)
  44953. 2007-01-29 Anders Carlsson <acarlsson@apple.com>
  44954. Reviewed by Oliver.
  44955. * page/DragController.cpp:
  44956. (WebCore::DragController::dragEnteredOrUpdated):
  44957. Only try a drag operation if the drag client explicitly specified that it is OK
  44958. 2007-01-29 Oliver Hunt <oliver@apple.com>
  44959. Reviewed by Adam.
  44960. Migrated more drag logic and state to WebCore
  44961. * page/DragClient.h:
  44962. * page/DragController.cpp:
  44963. (WebCore::DragController::delegateDragSourceAction):
  44964. New forwarding method for the UI delegate
  44965. * page/DragController.h:
  44966. (WebCore::DragController::dragOffset):
  44967. Now store the drag offset -- the offset of the cursor relative to the drag image)
  44968. in DragController
  44969. * page/EventHandler.cpp:
  44970. (WebCore::EventHandler::allowDHTMLDrag):
  44971. Moved from WebFrameBridge
  44972. * page/EventHandler.h:
  44973. * page/mac/EventHandlerMac.mm:
  44974. (WebCore::EventHandler::eventMayStartDrag):
  44975. (WebCore::EventHandler::handleDrag):
  44976. EventHandlerMac now uses EventHandler::allowDHTMLDrag rather than the
  44977. implementation in WebFrameBridge
  44978. * page/mac/WebCoreFrameBridge.h:
  44979. removed definition of allowDHTMLDrag from WebFrameBridge
  44980. * platform/graphics/svg/SVGImageEmptyClients.h:
  44981. (WebCore::SVGEmptyDragClient::dragSourceActionMaskForPoint):
  44982. Updated empty DragClient
  44983. 2007-01-29 Alexey Proskuryakov <ap@webkit.org>
  44984. Reviewed by Darin.
  44985. http://bugs.webkit.org/show_bug.cgi?id=12359
  44986. XPathEvaluator may return some nodes more than once in a result set
  44987. Test: fast/xpath/nodeset-duplicates.html
  44988. * xml/XPathPath.cpp:
  44989. (WebCore::XPath::LocationPath::doEvaluate): Ensure uniqueness of elements
  44990. in the node-set.
  44991. * xml/XPathPredicate.cpp:
  44992. (WebCore::XPath::Union::doEvaluate): Fixed a uniqueness algorithm that was
  44993. already present here. Added a FIXME about incorrect result ordering.
  44994. 2007-01-29 Alexey Proskuryakov <ap@webkit.org>
  44995. Reviewed by Darin.
  44996. http://bugs.webkit.org/show_bug.cgi?id=12340
  44997. XPathEvaluator behavior does not match Firefox - name() and attribute nodes
  44998. * xml/XPathFunctions.cpp:
  44999. (WebCore::XPath::FunName::doEvaluate): Do not try to append a prefix if it doesn't exist.
  45000. 2007-01-29 Alexey Proskuryakov <ap@webkit.org>
  45001. Reviewed by Darin.
  45002. http://bugs.webkit.org/show_bug.cgi?id=11815
  45003. XPathEvaluator behavior does not match Firefox - substring() and empty element
  45004. Test: fast/xpath/empty-string-substring.html
  45005. * xml/XPathValue.cpp:
  45006. (WebCore::XPath::Value::Value):
  45007. * xml/XPathValue.h:
  45008. Added a constructor taking const char*, so that string literals and arrays don't
  45009. get converted to boolean values.
  45010. 2007-01-29 Zack Rusin <zrusin@trolltech.com>
  45011. Cosmetic fixes - don't resize the widget in the constructor
  45012. (it was a hack from the initial port) and fix the paint
  45013. signature.
  45014. * platform/qt/ScrollViewCanvasQt.cpp:
  45015. (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
  45016. * platform/qt/WidgetQt.cpp:
  45017. (WebCore::Widget::paint):
  45018. 2007-01-29 Maciej Stachowiak <mjs@apple.com>
  45019. - change from struct to class to make picky compilers happy
  45020. * loader/SubstituteData.h:
  45021. 2007-01-30 Mark Rowe <mrowe@apple.com>
  45022. Reviewed by Maciej.
  45023. http://bugs.webkit.org/show_bug.cgi?id=12458
  45024. Bug 12458: Crash in W3C-SVG-1.1/animate-elem-09-t.svg running layout tests under guard malloc
  45025. * ksvg2/svg/SVGAnimationElement.cpp:
  45026. (WebCore::parseValues): ptr either points to a ';' or off the end of the buffer. We're
  45027. interested in what comes before the ';', so start there instead.
  45028. 2007-01-29 Zack Rusin <zrusin@trolltech.com>
  45029. Reviewed by Lars.
  45030. Take the scrollbars into considation when computing
  45031. the contents size of the main frame.
  45032. * platform/qt/PlatformScrollBarQt.cpp:
  45033. (WebCore::PlatformScrollbar::paint):
  45034. * platform/qt/ScrollViewQt.cpp:
  45035. (WebCore::ScrollView::visibleWidth):
  45036. (WebCore::ScrollView::visibleHeight):
  45037. (WebCore::ScrollView::visibleContentRect):
  45038. * platform/qt/WidgetQt.cpp:
  45039. (WebCore::Widget::invalidate):
  45040. (WebCore::Widget::invalidateRect):
  45041. 2007-01-29 Maciej Stachowiak <mjs@apple.com>
  45042. - fix includes
  45043. * loader/SubstituteData.h:
  45044. 2007-01-29 Maciej Stachowiak <mjs@apple.com>
  45045. - added new file that I forgot in the last commit
  45046. * loader/SubstituteData.h: Added.
  45047. (WebCore::SubstituteData::SubstituteData):
  45048. (WebCore::SubstituteData::isValid):
  45049. (WebCore::SubstituteData::content):
  45050. (WebCore::SubstituteData::mimeType):
  45051. (WebCore::SubstituteData::textEncoding):
  45052. (WebCore::SubstituteData::failingURL):
  45053. 2007-01-29 Maciej Stachowiak <mjs@apple.com>
  45054. Reviewed by Mark.
  45055. - made data loading cross-platform
  45056. - fixed <rdar://problem/4910106>
  45057. * WebCore.exp:
  45058. * WebCore.xcodeproj/project.pbxproj:
  45059. * loader/CachedResource.cpp:
  45060. * loader/CachedResource.h:
  45061. * loader/DocLoader.cpp:
  45062. (WebCore::DocLoader::requestResource):
  45063. * loader/DocumentLoader.cpp:
  45064. (WebCore::DocumentLoader::DocumentLoader):
  45065. (WebCore::DocumentLoader::setRequest):
  45066. (WebCore::DocumentLoader::urlForHistory):
  45067. (WebCore::DocumentLoader::unreachableURL):
  45068. * loader/DocumentLoader.h:
  45069. (WebCore::DocumentLoader::substituteData):
  45070. * loader/FrameLoader.cpp:
  45071. (WebCore::FrameLoader::load):
  45072. (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
  45073. (WebCore::FrameLoader::reloadAllowingStaleData):
  45074. (WebCore::FrameLoader::reload):
  45075. (WebCore::FrameLoader::commitProvisionalLoad):
  45076. (WebCore::FrameLoader::startLoadingMainResource):
  45077. (WebCore::FrameLoader::startLoading):
  45078. (WebCore::FrameLoader::checkNavigationPolicy):
  45079. * loader/FrameLoader.h:
  45080. * loader/FrameLoaderClient.h:
  45081. * loader/MainResourceLoader.cpp:
  45082. (WebCore::MainResourceLoader::willSendRequest):
  45083. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  45084. (WebCore::MainResourceLoader::handleEmptyLoad):
  45085. (WebCore::MainResourceLoader::handleDataLoad):
  45086. (WebCore::MainResourceLoader::loadNow):
  45087. (WebCore::MainResourceLoader::load):
  45088. * loader/MainResourceLoader.h:
  45089. * loader/mac/DocumentLoaderMac.mm:
  45090. * loader/mac/WebDataProtocol.h: Removed.
  45091. * loader/mac/WebDataProtocol.mm: Removed.
  45092. * loader/qt/DocumentLoaderQt.cpp:
  45093. * platform/graphics/svg/SVGImageEmptyClients.h:
  45094. (WebCore::SVGEmptyFrameLoaderClient::createDocumentLoader):
  45095. 2007-01-29 Zack Rusin <zrusin@trolltech.com>
  45096. Order the build files alphabetically instead of
  45097. the random mess we had before.
  45098. * WebCore.pro:
  45099. 2007-01-29 Zack Rusin <zack@kde.org>
  45100. Reviewed by Lars
  45101. Use the platform independent scrollbar code.
  45102. Remove the redundant empty stubs and forward
  45103. few missing platform scrollbar calls.
  45104. * WebCore.pro:
  45105. * platform/qt/PlatformScrollBarQt.cpp:
  45106. (WebCore::PlatformScrollbar::paint):
  45107. (WebCore::PlatformScrollbar::setRect):
  45108. 2007-01-29 Lars Knoll <lars@trolltech.com>
  45109. Reviewed by Zack
  45110. Fix the way we handle native widgets (QWidget) inside
  45111. WebCore. Now WebCore::Widget owns the QWidget in all
  45112. cases. This is the only way to get well defined semantics
  45113. for all teh native widgets we have (currently ScrollView
  45114. and ScrollBar, but plugins will follow).
  45115. This has the side effect that one cannot rely on a defined
  45116. lifetime of a QWebFrame when using the API.
  45117. * platform/Widget.h:
  45118. * platform/qt/PlatformScrollBarQt.cpp:
  45119. (WebCore::PlatformScrollbar::PlatformScrollbar):
  45120. * platform/qt/ScrollViewQt.cpp:
  45121. (WebCore::ScrollView::addChild):
  45122. (WebCore::ScrollView::removeChild):
  45123. * platform/qt/WidgetQt.cpp:
  45124. (WebCore::WidgetPrivate::WidgetPrivate):
  45125. (WebCore::WidgetPrivate::~WidgetPrivate):
  45126. (WebCore::Widget::qwidget):
  45127. 2007-01-28 George Staikos <staikos@kde.org>
  45128. Reviewed by Maciej.
  45129. Don't send data during a redirect -> causes assert failure.
  45130. * platform/network/qt/ResourceHandleManagerQt.cpp:
  45131. (WebCore::ResourceHandleManager::receivedData):
  45132. 2007-01-29 Mark Rowe <mrowe@apple.com>
  45133. Reviewed by Brady.
  45134. http://bugs.webkit.org/show_bug.cgi?id=11085
  45135. Bug 11085: REGRESSION: favicon.ico always looked for on port 80
  45136. * loader/FrameLoader.cpp:
  45137. (WebCore::FrameLoader::iconURL): Copy the port over to the favicon URL.
  45138. 2007-01-28 Adam Roben <aroben@apple.com>
  45139. Reviewed by Adele.
  45140. Fix http://bugs.webkit.org/show_bug.cgi?id=12453
  45141. REGRESSION(r19197): Tabbing into web page requires two key presses
  45142. All layout tests pass.
  45143. * page/FocusController.cpp:
  45144. (WebCore::FocusController::advanceFocus): If there's no focused frame,
  45145. actually go ahead and find a focusable node instead of just focusing
  45146. the main frame and quitting. This behavior was a holdover from a
  45147. previous desired tabbing behavior with respect to frames.
  45148. 2007-01-28 David Kilzer <ddkilzer@webkit.org>
  45149. Reviewed by Darin and David Hyatt.
  45150. - fix http://bugs.webkit.org/show_bug.cgi?id=12423
  45151. Mixing white-space:pre text with non white-space:pre text does not wrap properly
  45152. Test: fast/block/basic/white-space-pre-wraps.html
  45153. * rendering/bidi.cpp:
  45154. (WebCore::RenderBlock::findNextLineBreak): Wrap a non-wrapping text run if it
  45155. appears on a line with previous text runs that do wrap.
  45156. 2007-01-28 Mitz Pettel <mitz@webkit.org>
  45157. Reviewed by Darin.
  45158. - fix http://bugs.webkit.org/show_bug.cgi?id=8360
  45159. Repro crash when onscroll handler deletes the scrolled object
  45160. Test: fast/layers/removed-by-scroll-handler.html
  45161. * page/FrameView.cpp:
  45162. (WebCore::FrameViewPrivate::FrameViewPrivate): Added a m_enqueueEvents count.
  45163. (WebCore::FrameView::layout): Raise the enqueue count before starting layout and
  45164. until after enqueued events are dispatched.
  45165. (WebCore::FrameView::scheduleEvent): Made this function dispatch the event
  45166. immediately unless the enqueue count is positive.
  45167. * rendering/RenderLayer.cpp:
  45168. (WebCore::RenderLayer::scrollToOffset): Schedule the scroll event through the
  45169. FrameView.
  45170. (WebCore::RenderLayer::scrollRectToVisible):
  45171. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  45172. (WebCore::Marquee::start):
  45173. 2007-01-28 Charles Ying <charles_ying@yahoo.com>
  45174. Reviewed by eseidel. Landed by eseidel.
  45175. Fix http://bugs.webkit.org/show_bug.cgi?id=12429
  45176. animateTransform rotate, with cx/cy is broken
  45177. SVGTransform now contains a float point to store the rotation center, needed
  45178. to track rotation center for interpolation by animateTransform.
  45179. SVGTransform now has an additional constructor:
  45180. SVGTransform(type) to make empty base value transforms that match their
  45181. distanced values.
  45182. Removed m_colorDistance and m_transformDistance from their respective classes
  45183. as they are now computed at update time.
  45184. Fix a case where animateTransform did not parse transform values correctly
  45185. according to BNF in W3C spec:
  45186. Test case in:
  45187. * manual-tests/animation/animateTransform-toanimation.svg: Added.
  45188. Fix a case where animateTransform only specified a to animation only.
  45189. Test case in:
  45190. * manual-tests/animation/animateTransform-parser.svg: Added.
  45191. * ksvg2/svg/SVGAnimateColorElement.cpp:
  45192. (WebCore::SVGAnimateColorElement::updateAnimationBaseValueFromElement):
  45193. (WebCore::SVGAnimateColorElement::updateAnimatedValue):
  45194. (WebCore::SVGAnimateColorElement::calculateFromAndToValues):
  45195. * ksvg2/svg/SVGAnimateColorElement.h:
  45196. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  45197. (WebCore::SVGAnimateTransformElement::updateAnimatedValue):
  45198. (WebCore::SVGAnimateTransformElement::updateAnimationBaseValueFromElement):
  45199. (WebCore::SVGAnimateTransformElement::calculateFromAndToValues):
  45200. (WebCore::SVGAnimateTransformElement::parseTransformValue):
  45201. * ksvg2/svg/SVGAnimateTransformElement.h:
  45202. * ksvg2/svg/SVGTransform.cpp:
  45203. (SVGTransform::SVGTransform):
  45204. (SVGTransform::angle):
  45205. (SVGTransform::rotationCenter):
  45206. (SVGTransform::setTranslate):
  45207. (SVGTransform::setScale):
  45208. (SVGTransform::setRotate):
  45209. (SVGTransform::setSkewX):
  45210. (SVGTransform::setSkewY):
  45211. * ksvg2/svg/SVGTransform.h:
  45212. * ksvg2/svg/SVGTransformDistance.cpp:
  45213. (WebCore::SVGTransformDistance::SVGTransformDistance):
  45214. (WebCore::SVGTransformDistance::scaledDistance):
  45215. (WebCore::SVGTransformDistance::addSVGTransforms):
  45216. (WebCore::SVGTransformDistance::addSVGTransform):
  45217. (WebCore::SVGTransformDistance::addToSVGTransform):
  45218. (WebCore::SVGTransformDistance::distance):
  45219. * ksvg2/svg/SVGTransformDistance.h:
  45220. * manual-tests/animation/animateTransform-parser.svg: Added.
  45221. * manual-tests/animation/animateTransform-toanimation.svg: Added.
  45222. 2007-01-27 Adam Roben <aroben@apple.com>
  45223. Reviewed by Ada.
  45224. Fix <rdar://problem/4957184> REGRESSION: After creating a new mail
  45225. message, the caret is automatically in message body
  45226. -[WebHTMLView _updateActiveState] was calling
  45227. FocusController::focusedOrMainFrame, which had the surprising
  45228. side-effect of setting the focused frame if there was none. The fix
  45229. was to remove this side-effect.
  45230. No tests possible, as this bug involves focus outside the WebView,
  45231. which we have no support for in DRT.
  45232. Change inspired by Dave Harrison.
  45233. * page/FocusController.cpp:
  45234. (WebCore::FocusController::focusedOrMainFrame): Removed this method's
  45235. non-obvious side-effect of setting the focused frame.
  45236. * WebCore.xcodeproj/project.pbxproj: Version wars.
  45237. 2007-01-27 Peter Kasting <pkasting@google.com>
  45238. Reviewed by Maciej.
  45239. http://bugs.webkit.org/show_bug.cgi?id=11880: Improve some egregious
  45240. Windows form control drawing issues:
  45241. Provide Classic mode fallbacks for the button/textfield drawing
  45242. routines.
  45243. Provide some basic drawing of menulists (still relatively broken).
  45244. Some cleanup.
  45245. * platform/win/TemporaryLinkStubs.cpp:
  45246. (WebCore::RenderThemeWin::systemFont):
  45247. * rendering/RenderThemeWin.cpp:
  45248. (WebCore::m_menuListTheme):
  45249. (WebCore::RenderThemeWin::close):
  45250. (WebCore::RenderThemeWin::determineClassicState):
  45251. (WebCore::RenderThemeWin::getThemeData):
  45252. (WebCore::RenderThemeWin::paintButton):
  45253. (WebCore::RenderThemeWin::paintTextField):
  45254. (WebCore::RenderThemeWin::paintMenuList):
  45255. (WebCore::RenderThemeWin::paintMenuListButton):
  45256. * rendering/RenderThemeWin.h:
  45257. (WebCore::ThemeData::m_classicState):
  45258. (WebCore::RenderThemeWin::setRadioSize):
  45259. (WebCore::RenderThemeWin::paintTextArea):
  45260. 2007-01-27 David Kilzer <ddkilzer@webkit.org>
  45261. Reviewed by Adam.
  45262. - fix http://bugs.webkit.org/show_bug.cgi?id=12260
  45263. Windows platform build is not maintained
  45264. * loader/win/FrameLoaderWin.cpp:
  45265. * platform/network/win/ResourceHandleWin.cpp:
  45266. * platform/win/TemporaryLinkStubs.cpp:
  45267. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  45268. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  45269. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  45270. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  45271. (WebCore::contextMenuItemTagDownloadImageToDisk):
  45272. (WebCore::contextMenuItemTagCopyImageToClipboard):
  45273. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  45274. (WebCore::contextMenuItemTagCopy):
  45275. (WebCore::contextMenuItemTagGoBack):
  45276. (WebCore::contextMenuItemTagGoForward):
  45277. (WebCore::contextMenuItemTagStop):
  45278. (WebCore::contextMenuItemTagReload):
  45279. (WebCore::contextMenuItemTagCut):
  45280. (WebCore::contextMenuItemTagPaste):
  45281. (WebCore::contextMenuItemTagNoGuessesFound):
  45282. (WebCore::contextMenuItemTagIgnoreSpelling):
  45283. (WebCore::contextMenuItemTagLearnSpelling):
  45284. (WebCore::contextMenuItemTagSearchWeb):
  45285. (WebCore::contextMenuItemTagLookUpInDictionary):
  45286. (WebCore::contextMenuItemTagOpenLink):
  45287. (WebCore::contextMenuItemTagIgnoreGrammar):
  45288. (WebCore::contextMenuItemTagSpellingMenu):
  45289. (WebCore::contextMenuItemTagShowSpellingPanel):
  45290. (WebCore::contextMenuItemTagCheckSpelling):
  45291. (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
  45292. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  45293. (WebCore::contextMenuItemTagFontMenu):
  45294. (WebCore::contextMenuItemTagBold):
  45295. (WebCore::contextMenuItemTagItalic):
  45296. (WebCore::contextMenuItemTagUnderline):
  45297. (WebCore::contextMenuItemTagOutline):
  45298. (WebCore::contextMenuItemTagWritingDirectionMenu):
  45299. (WebCore::contextMenuItemTagDefaultDirection):
  45300. (WebCore::contextMenuItemTagLeftToRight):
  45301. (WebCore::contextMenuItemTagRightToLeft):
  45302. (WebCore::DocumentLoader::unreachableURL):
  45303. (WebCore::FrameLoader::redirectDataToPlugin):
  45304. (WebCore::FrameLoader::partClearedInBegin):
  45305. (WebCore::FrameLoader::createPlugin):
  45306. 2007-01-27 Sam Weinig <sam@webkit.org>
  45307. Reviewed by Mitz.
  45308. - Patch for http://bugs.webkit.org/show_bug.cgi?id=11957
  45309. REGRESSION: Unordered List Bullets too big and changing from size
  45310. * rendering/RenderListMarker.cpp:
  45311. (WebCore::RenderListMarker::paint): Explicitly set the stroke size to 1.0f.
  45312. 2007-01-27 Lars Knoll <lars@trolltech.com>
  45313. Fix the Qt build and disable the usage
  45314. of QScrollbars for PlatformScrollBar for
  45315. now as it causes crashes in the layout tests.
  45316. * WebCore.pro:
  45317. * ksvg2/svg/SVGTransformDistance.cpp:
  45318. * page/qt/FrameQt.cpp:
  45319. (WebCore::FrameQt::FrameQt):
  45320. (WebCore::FrameQt::bindingRootObject):
  45321. (WebCore::FrameQt::createRootObject):
  45322. * page/qt/FrameQt.h:
  45323. * platform/qt/PlatformScrollBarQt.cpp:
  45324. (WebCore::PlatformScrollbar::PlatformScrollbar):
  45325. * platform/qt/ScrollViewQt.cpp:
  45326. (WebCore::ScrollView::addChild):
  45327. 2007-01-27 David Kilzer <ddkilzer@kilzer.net>
  45328. Reviewed by NOBODY (buildbot build fix).
  45329. * ksvg2/svg/ColorDistance.cpp:
  45330. (WebCore::ColorDistance::scaledDistance): Added static cast of arguments to int.
  45331. 2007-01-27 Rob Buis <buis@kde.org>
  45332. Reviewed by NOBODY (typo in method name fix).
  45333. * ksvg2/svg/SVGSVGElement.cpp:
  45334. (WebCore::SVGSVGElement::addSVGWindowEventListener):
  45335. (WebCore::SVGSVGElement::parseMappedAttribute):
  45336. * ksvg2/svg/SVGSVGElement.h:
  45337. 2007-01-27 Eric Seidel <eric@webkit.org>
  45338. Reviewed by olliej.
  45339. Fix support for SVG's <set> element.
  45340. Manual test added.
  45341. * ksvg2/svg/SVGSetElement.cpp:
  45342. (WebCore::SVGSetElement::updateAnimatedValue):
  45343. (WebCore::SVGSetElement::calculateFromAndToValues):
  45344. * ksvg2/svg/SVGSetElement.h:
  45345. * manual-tests/animation/set-to.svg: Added.
  45346. 2007-01-27 Alexey Proskuryakov <ap@webkit.org>
  45347. Release build fix.
  45348. * loader/TextResourceDecoder.cpp:
  45349. (WebCore::TextResourceDecoder::checkForHeadCharset):
  45350. 2007-01-27 Alexey Proskuryakov <ap@webkit.org>
  45351. Reviewed by Darin.
  45352. http://bugs.webkit.org/show_bug.cgi?id=12389
  45353. Chinese decoding error at hk.antispam.yahoo.com
  45354. Test: fast/encoding/noscript-in-head.html
  45355. * loader/TextResourceDecoder.cpp:
  45356. (WebCore::TextResourceDecoder::checkForHeadCharset): We were already allowing
  45357. NOSCRIPT tags in head, let's actually skip over their content.
  45358. 2007-01-26 Geoffrey Garen <ggaren@apple.com>
  45359. Reviewed by Maciej Stachowiak.
  45360. Fixed <rdar://problem/4608404> WebScriptObject's _executionContext lack
  45361. of ownership policy causes crashes (e.g., in Dashcode)
  45362. Added RootObject ref-counting goodness.
  45363. * page/mac/FrameMac.h:
  45364. * page/mac/FrameMac.mm:
  45365. (WebCore::FrameMac::cleanupPluginObjects): Invalidate our RootObjects
  45366. instead of detroying them. Track _bindingRootObject separately from the
  45367. rest of our RootObjects, since it has its own variable.
  45368. * page/mac/WebCoreFrameBridge.mm:
  45369. (createRootObject): Use the Frame's new, more encapsulated function to
  45370. create a RootObject.
  45371. * bindings/objc/WebScriptObject.mm: Nixed rootObject setters, since they
  45372. were unused and they complicated reference-counting.
  45373. 2007-01-26 David Kilzer <ddkilzer@webkit.org>
  45374. Reviewed by Eric.
  45375. Release build fix.
  45376. * ksvg2/svg/SVGAnimationElement.cpp:
  45377. (WebCore::SVGAnimationElement::calculateValueIndexAndPercentagePast): Added static cast
  45378. to unsigned when calculating flooredValueIndex.
  45379. 2007-01-26 Darin Adler <darin@apple.com>
  45380. - checked in slightly newer revision of the patch below
  45381. * css/CSSComputedStyleDeclaration.cpp:
  45382. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  45383. Grouped all the unimplemented values at the bottom. Fixed the ifdef for
  45384. CSS_PROP__WEBKIT_DASHBOARD_REGION so that it compiles on all platforms.
  45385. * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Removed default
  45386. case and added type so that the compiler warns about missing properties.
  45387. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): Ditto.
  45388. 2007-01-26 Darin Adler <darin@apple.com>
  45389. Reviewed by Beth.
  45390. - fix http://bugs.webkit.org/show_bug.cgi?id=12412
  45391. "unimplemented propertyID: 46" seen at dojotoolkit.org
  45392. Covered by fast/css/computed-style.html
  45393. * css/CSSPropertyNames.in: Sorted the file into two separate sections, one
  45394. for properties without the -webkit- prefix and another for properties with.
  45395. * css/makeprop: Generate a CSSPropertyID enum instead of a set of #defines.
  45396. Removed unused CSS_PROP_MIN and CSS_PROP_MAX. Renamed CSS_PROP_TOTAL to
  45397. numCSSProperties and changed it to a const int instead of #define.
  45398. Added a declaration of getPropertyName in the header. Changed the return
  45399. type of getPropertyName to const char* and the parameter type to CSSPropertyID.
  45400. * css/CSSComputedStyleDeclaration.cpp: Sort the lists of properties in
  45401. an easier to maintain order -- properties without a WebKit prefix first.
  45402. (WebCore::valueForLength): Changed return value to PassRefPtr.
  45403. (WebCore::valueForMaxLength): Ditto.
  45404. (WebCore::valueForBorderStyle): Ditto.
  45405. (WebCore::valueForTextAlign): Ditto.
  45406. (WebCore::valueForAppearance): Added.
  45407. (WebCore::valueForMarginCollapse): Added.
  45408. (WebCore::valueForShadow): Changed return value to PassRefPtr.
  45409. (WebCore::getPositionOffsetValue): Ditto.
  45410. (WebCore::currentColorOrValidColor): Ditto.
  45411. (WebCore::CSSComputedStyleDeclaration::cssText): Added cast since
  45412. getPropertyName now takes an enum value.
  45413. (WebCore::primitiveValueFromLength): Changed return value to PassRefPtr.
  45414. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  45415. Added cast to CSSPropertyID so that gcc will detect missing enums in the
  45416. switch statement. Simplified the background-size and border-spacing
  45417. implementations so they don't have local variables. Added lots of cases
  45418. to the switch statement for unimplemented properties. Implemented the
  45419. outline-width, box-sizing, -webkit-appearance, -webkit-rtl-ordering,
  45420. -webkit-user-drag, and -webkit-user-select properties.
  45421. (WebCore::CSSComputedStyleDeclaration::item): Added cast since
  45422. getPropertyName now takes an enum value.
  45423. * css/CSSMutableStyleDeclaration.cpp: Removed declaration of getPropertyName.
  45424. (WebCore::CSSMutableStyleDeclaration::item): Added cast since
  45425. getPropertyName now takes an enum value.
  45426. * css/CSSProperty.cpp: Removed declaration of getPropertyName.
  45427. (WebCore::CSSProperty::cssText): Added cast since
  45428. getPropertyName now takes an enum value and returns a const char*.
  45429. * css/CSSStyleDeclaration.cpp: Removed declaration of getPropertyName.
  45430. (WebCore::CSSStyleDeclaration::getPropertyShorthand): Added cast since
  45431. getPropertyName now takes an enum value and returns a const char*.
  45432. 2007-01-26 Alice Liu <alice.liu@apple.com>
  45433. Reviewed by Brady.
  45434. Fixed <rdar://problem/4838076> CrashTracer: 10 crashes in Mail at com.apple.WebCore: WTF::HashMap<WebCore::String
  45435. * loader/DocLoader.cpp:
  45436. (WebCore::DocLoader::requestResource):
  45437. Added nil check around resource from cache.
  45438. 2007-01-26 Adam Roben <aroben@apple.com>
  45439. Reviewed by Oliver.
  45440. Build fix.
  45441. * ksvg2/svg/SVGAnimationElement.cpp:
  45442. (WebCore::SVGAnimationElement::calculateValueIndexAndPercentagePast):
  45443. Keep index variables as unsigned until we need to convert to float.
  45444. 2007-01-26 Alice Liu <alice.liu@apple.com>
  45445. Reviewed by Ada.
  45446. Fixed <rdar://problem/4919097> REGRESSION: Ctrl-Y fails to yank (11076)
  45447. * editing/Editor.cpp:
  45448. (WebCore::Editor::deleteWithDirection):
  45449. If there's no selection, locally create a range that is to the end of the granularity unit and pass that to deleteRange().
  45450. 2007-01-26 Sam Weinig <sam@webkit.org>
  45451. Reviewed by Maciej.
  45452. Qt build fix.
  45453. * page/qt/EventHandlerQt.cpp:
  45454. 2007-01-26 Matt Perry <mpcomplete@chromium.org>
  45455. Reviewed by Hyatt.
  45456. Fix so that we only relayout frameset children on calls to layout.
  45457. * page/FrameView.cpp:
  45458. (WebCore::FrameView::layout):
  45459. 2007-01-26 Oliver Hunt <oliver@apple.com>
  45460. Build Fix
  45461. * ksvg2/svg/ColorDistance.cpp:
  45462. * ksvg2/svg/SVGAnimationElement.cpp:
  45463. (WebCore::SVGAnimationElement::handleTimerEvent):
  45464. 2007-01-26 Eric Seidel <eric@webkit.org>
  45465. Reviewed by olliej.
  45466. Add support for calcMode, keyTimes and (nearly) keySplines.
  45467. http://bugs.webkit.org/show_bug.cgi?id=12350
  45468. Re-architect much of the animation system to remove huge sections of code.
  45469. Added new ColorDistance, SVGTransformDistance to simplify animateColor, animateTransform calculations.
  45470. I also added basic <animateMotion> support since it was so easy w/ the new architecture.
  45471. Adding manual animation tests until bug 12074 is fixed.
  45472. * WebCore.xcodeproj/project.pbxproj:
  45473. * ksvg2/misc/SVGTimer.cpp:
  45474. (WebCore::SVGTimer::applyAnimations):
  45475. * ksvg2/svg/ColorDistance.cpp: Added.
  45476. (WebCore::ColorDistance::ColorDistance):
  45477. (WebCore::clampColorValue):
  45478. (WebCore::ColorDistance::scaledDistance):
  45479. (WebCore::ColorDistance::addColorsAndClamp):
  45480. (WebCore::ColorDistance::addToColorAndClamp):
  45481. (WebCore::ColorDistance::isZero):
  45482. (WebCore::ColorDistance::distance):
  45483. * ksvg2/svg/ColorDistance.h: Added.
  45484. * ksvg2/svg/SVGAnimateColorElement.cpp:
  45485. (WebCore::SVGAnimateColorElement::SVGAnimateColorElement):
  45486. (WebCore::SVGAnimateColorElement::updateAnimationBaseValueFromElement):
  45487. (WebCore::SVGAnimateColorElement::applyAnimatedValueToElement):
  45488. (WebCore::SVGAnimateColorElement::updateAnimatedValue):
  45489. (WebCore::SVGAnimateColorElement::calculateFromAndToValues):
  45490. * ksvg2/svg/SVGAnimateColorElement.h:
  45491. (WebCore::SVGAnimateColorElement::contextElement):
  45492. * ksvg2/svg/SVGAnimateElement.h:
  45493. (WebCore::SVGAnimateElement::updateAnimatedValue):
  45494. (WebCore::SVGAnimateElement::calculateFromAndToValues):
  45495. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  45496. (WebCore::SVGAnimateMotionElement::hasValidTarget):
  45497. (WebCore::SVGAnimateMotionElement::updateAnimatedValue):
  45498. (WebCore::parsePoint):
  45499. (WebCore::SVGAnimateMotionElement::calculateFromAndToValues):
  45500. (WebCore::SVGAnimateMotionElement::updateAnimationBaseValueFromElement):
  45501. (WebCore::SVGAnimateMotionElement::applyAnimatedValueToElement):
  45502. * ksvg2/svg/SVGAnimateMotionElement.h:
  45503. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  45504. (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
  45505. (WebCore::SVGAnimateTransformElement::updateAnimatedValue):
  45506. (WebCore::SVGAnimateTransformElement::updateAnimationBaseValueFromElement):
  45507. (WebCore::SVGAnimateTransformElement::applyAnimatedValueToElement):
  45508. (WebCore::SVGAnimateTransformElement::calculateFromAndToValues):
  45509. (WebCore::SVGAnimateTransformElement::parseTransformValue):
  45510. * ksvg2/svg/SVGAnimateTransformElement.h:
  45511. (WebCore::SVGAnimateTransformElement::contextElement):
  45512. * ksvg2/svg/SVGAnimationElement.cpp:
  45513. (WebCore::SVGAnimationElement::parseKeyNumbers):
  45514. (WebCore::parseValues):
  45515. (WebCore::parseKeySplines):
  45516. (WebCore::SVGAnimationElement::parseMappedAttribute):
  45517. (WebCore::SVGAnimationElement::targetAttributeAnimatedValue):
  45518. (WebCore::SVGAnimationElement::setTargetAttributeAnimatedValue):
  45519. (WebCore::SVGAnimationElement::detectAnimationMode):
  45520. (WebCore::adjustPercentagePastForKeySplines):
  45521. (WebCore::SVGAnimationElement::valueIndexAndPercentagePastForDistance):
  45522. (WebCore::SVGAnimationElement::calculateTotalDistance):
  45523. (WebCore::caculateValueIndexForKeyTimes):
  45524. (WebCore::SVGAnimationElement::isValidAnimation):
  45525. (WebCore::SVGAnimationElement::calculateValueIndexAndPercentagePast):
  45526. (WebCore::SVGAnimationElement::updateAnimationBaseValueFromElement):
  45527. (WebCore::SVGAnimationElement::applyAnimatedValueToElement):
  45528. (WebCore::SVGAnimationElement::handleTimerEvent):
  45529. (WebCore::SVGAnimationElement::updateAnimatedValueForElapsedSeconds):
  45530. * ksvg2/svg/SVGAnimationElement.h:
  45531. * ksvg2/svg/SVGParserUtilities.cpp:
  45532. (WebCore::SVGPolyParser::parsePoints):
  45533. * ksvg2/svg/SVGParserUtilities.h:
  45534. * ksvg2/svg/SVGSetElement.cpp:
  45535. * ksvg2/svg/SVGSetElement.h:
  45536. (WebCore::SVGSetElement::updateAnimatedValue):
  45537. (WebCore::SVGSetElement::calculateFromAndToValues):
  45538. * ksvg2/svg/SVGTransform.cpp:
  45539. (SVGTransform::type):
  45540. (SVGTransform::translate):
  45541. (SVGTransform::scale):
  45542. (SVGTransform::setSkewX):
  45543. (SVGTransform::setSkewY):
  45544. * ksvg2/svg/SVGTransform.h:
  45545. (WebCore::operator==):
  45546. (WebCore::operator!=):
  45547. * ksvg2/svg/SVGTransformDistance.cpp: Added.
  45548. (WebCore::SVGTransformDistance::SVGTransformDistance):
  45549. (WebCore::SVGTransformDistance::scaledDistance):
  45550. (WebCore::SVGTransformDistance::addSVGTransforms):
  45551. (WebCore::SVGTransformDistance::addSVGTransform):
  45552. (WebCore::SVGTransformDistance::addToSVGTransform):
  45553. (WebCore::SVGTransformDistance::isZero):
  45554. (WebCore::SVGTransformDistance::distance):
  45555. * ksvg2/svg/SVGTransformDistance.h: Added.
  45556. * ksvg2/svg/SVGTransformList.cpp:
  45557. (SVGTransformList::concatenateForType):
  45558. * ksvg2/svg/SVGTransformList.h:
  45559. * manual-tests/animation/animateColor-by.svg: Added.
  45560. * manual-tests/animation/animateColor-from-by.svg: Added.
  45561. * manual-tests/animation/animateColor-repeat-indefinite.svg: Added.
  45562. * manual-tests/animation/animateColor-to-from.svg: Added.
  45563. * manual-tests/animation/animateColor-to.svg: Added.
  45564. * manual-tests/animation/animateColor-values-simple.svg: Added.
  45565. * manual-tests/animation/animateMotion-to.svg: Added.
  45566. * manual-tests/animation/animateTransform-keyTimes.svg: Added.
  45567. * manual-tests/animation/animateTransform-repeat-once.svg: Added.
  45568. 2007-01-26 Beth Dakin <bdakin@apple.com>
  45569. Reviewed by Darin.
  45570. Fix for <rdar://problem/4956565> REGRESSION: After scrolling frame,
  45571. hovering over link in this frame doesn't change cursor to pointing
  45572. hand
  45573. The mouseMove event was not being propagated correctly after using
  45574. the mouse to scroll the frame because m_mousePressed was never
  45575. getting set to false.
  45576. * page/EventHandler.cpp:
  45577. (WebCore::EventHandler::handleMousePressEvent): This code does not
  45578. belong here.
  45579. * page/EventHandler.h: lastEventIsMouseUp() is only ever relevant
  45580. in EventHandlerMac, so it can just be a static function there.
  45581. * page/mac/EventHandlerMac.mm:
  45582. (WebCore::lastEventIsMouseUp): Make this static.
  45583. (WebCore::EventHandler::passMouseDownEventToWidget): Here is where
  45584. we need to set m_mousePressed to false if lastEventIsMouseUp() is
  45585. true.
  45586. 2007-01-26 David Hyatt <hyatt@apple.com>
  45587. Fix for style regression caused by strictness checking of the number of properties. This caused code like:
  45588. "width: 20 px" to fail, because we interpreted it as two values and rejected it. Our old code allowed 20 to be
  45589. used like a pixel value and then ignored the orphaned unit.
  45590. This patch actually scans the list of values looking for orphaned units and reattaches them to the numeric
  45591. values that they should correspond to. This means rules like "width: 5 em" will now work in quirks mdoe and
  45592. the "em" unit type will be honored.
  45593. Reviewed by beth
  45594. * WebCore.xcodeproj/project.pbxproj:
  45595. * css/cssparser.cpp:
  45596. (WebCore::unitFromString):
  45597. (WebCore::CSSParser::checkForOrphanedUnits):
  45598. (WebCore::CSSParser::parseValue):
  45599. * css/cssparser.h:
  45600. (WebCore::ValueList::valueAt):
  45601. (WebCore::ValueList::deleteValueAt):
  45602. 2007-01-26 George Staikos <staikos@kde.org>
  45603. Reviewed by Zack.
  45604. Qt implementation.
  45605. * WebCore.pro:
  45606. * platform/qt/FontPlatformDataQt.cpp:
  45607. (WebCore::FontPlatformData::FontPlatformData):
  45608. * platform/qt/ScrollViewQt.cpp:
  45609. (WebCore::ScrollView::scrollbarUnderMouse):
  45610. 2007-01-26 Brady Eidson <beidson@apple.com>
  45611. Reviewed by Anders' rubberstamp
  45612. Warning about unreferenced formal parameter caused compile to fail
  45613. * platform/cf/RetainPtr.h:
  45614. (WebCore::adoptCFReference):
  45615. 2007-01-26 Darin Adler <darin@apple.com>
  45616. Reviewed by Brady.
  45617. - fix <rdar://problem/4956688> move Mac-specific part of icon code into IconMac
  45618. - fix a GC-compatibility problem in the icon code I noticed by code inspection
  45619. * platform/FileChooser.cpp: (WebCore::FileChooser::chooseIcon): Removed Mac-specific
  45620. path check -- that's in newIconForFile now.
  45621. * platform/graphics/Icon.h: Changed the image to be a RetainPtr. The old code was
  45622. using -[NSObject retain] which is not good enough for a pointer in a C++ object.
  45623. * platform/graphics/mac/IconMac.mm:
  45624. (WebCore::Icon::Icon): Got rid of unneeded code to do what RetainPtr does for us.
  45625. (WebCore::Icon::~Icon): Ditto.
  45626. (WebCore::Icon::newIconForFile): Added check for non-absolute file names. Updated
  45627. for use of RetainPtr. Use constructor that takes NSImage.
  45628. (WebCore::Icon::paint): Add get() calls needed now that we are using a RetainPtr.
  45629. * WebCore.xcodeproj/project.pbxproj: Let Xcode do its thing.
  45630. 2007-01-26 Alexey Proskuryakov <ap@webkit.org>
  45631. Reviewed by Maciej.
  45632. http://bugs.webkit.org/show_bug.cgi?id=12385
  45633. Assertion failure when loading subresources from "data:" frames
  45634. Test: fast/loader/opaque-base-url.html
  45635. * platform/KURL.cpp:
  45636. (WebCore::KURL::init): Make the URL invalid if it's relative, but has an opaque or empty base.
  45637. 2007-01-26 Matt Perry <mpcomplete@chromium.org>
  45638. Reviewed by Darin.
  45639. * page/EventHandler.cpp:
  45640. (WebCore::EventHandler::handleMouseMoveEvent):
  45641. Removed a call to invalidateClick(), since we don't want to cancel a
  45642. click if the mouse moves.
  45643. 2007-01-26 Darin Adler <darin@apple.com>
  45644. * css/MediaQueryEvaluator.cpp:
  45645. (WebCore::MediaQueryEvaluator::mediaTypeMatchSpecific):
  45646. Oops, forgot a !.
  45647. 2007-01-26 Darin Adler <darin@apple.com>
  45648. Patch by Nate Begeman.
  45649. Reviewed by Darin and Maciej.
  45650. - <rdar://problem/4946877> Avoid unnecessary allocations in CSS, patch attached (12401)
  45651. http://bugs.webkit.org/show_bug.cgi?id=12401
  45652. * css/MediaQueryEvaluator.h: Add mediaTypeMatchSpecific, a function that
  45653. takes a char* to avoid creating and destroying a String for simple media
  45654. type queries.
  45655. * css/MediaQueryEvaluator.cpp:
  45656. (WebCore::MediaQueryEvaluator::mediaTypeMatchSpecific): Added. Besides
  45657. avoiding the conversion to String, this also doesn't have the special
  45658. case code to handle "" and "all".
  45659. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::matchUARules):
  45660. Call mediaTypeMatchSpecific here when deciding whether to use the
  45661. print version of the user agent style sheet.
  45662. * loader/Cache.cpp: (WebCore::Cache::requestResource): Don't convert to
  45663. a string and back to a KURL when calling createResource. Avoids reparsing
  45664. the URL string.
  45665. 2007-01-26 Zack Rusin <zrusin@trolltech.com>
  45666. Reviewed by Lars
  45667. Add history related classes to the project file.
  45668. * WebCore.pro:
  45669. 2007-01-26 Zack Rusin <zack@kde.org>
  45670. Reviewed by Lars
  45671. Introduce PlatformScrollBar and try to make
  45672. the scrollbar behavior a little more sane.
  45673. * WebCore.pro:
  45674. * platform/qt/PlatformScrollBarQt.cpp: Added.
  45675. (WebCore::Scrollbar::Scrollbar):
  45676. (WebCore::Scrollbar::setSteps):
  45677. (WebCore::Scrollbar::scroll):
  45678. (WebCore::Scrollbar::setValue):
  45679. (WebCore::Scrollbar::setProportion):
  45680. (WebCore::PlatformScrollbar::PlatformScrollbar):
  45681. (WebCore::PlatformScrollbar::~PlatformScrollbar):
  45682. (WebCore::PlatformScrollbar::width):
  45683. (WebCore::PlatformScrollbar::height):
  45684. (WebCore::PlatformScrollbar::setEnabled):
  45685. (WebCore::PlatformScrollbar::paint):
  45686. (WebCore::PlatformScrollbar::updateThumbPosition):
  45687. (WebCore::PlatformScrollbar::updateThumbProportion):
  45688. (WebCore::PlatformScrollbar::setRect):
  45689. * platform/qt/ScrollViewQt.cpp:
  45690. (WebCore::ScrollView::addChild):
  45691. * platform/qt/TemporaryLinkStubs.cpp:
  45692. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  45693. 2007-01-26 Mitz Pettel <mitz@webkit.org>
  45694. Reviewed by Darin.
  45695. - fix http://bugs.webkit.org/show_bug.cgi?id=11109
  45696. REGRESSION (r15471): menus are offset on eink.com
  45697. <rdar://problem/4824760>
  45698. Changed offset{Left,Top} to match Firefox. If the body element is statically
  45699. positioned, it is still returned as the offsetParent of elements whose containing
  45700. block is the initial containing block (the root), but their offset{Left,Top} are
  45701. relative to the root. If the body element is positioned, then offsets are relative
  45702. to it. The body's own offset{Left,Top} are always 0.
  45703. Test: fast/dom/Element/offsetLeft-offsetTop-body-quirk.html
  45704. * rendering/RenderObject.cpp:
  45705. (WebCore::RenderObject::offsetLeft):
  45706. (WebCore::RenderObject::offsetTop):
  45707. 2007-01-26 Mitz Pettel <mitz@webkit.org>
  45708. Reviewed by Darin and Maciej.
  45709. - fix http://bugs.webkit.org/show_bug.cgi?id=10983
  45710. REGRESSION (r12290): Drop shadow of flickr photo note is positioned incorrectly the second time it's shown
  45711. Test: fast/dynamic/staticY.html
  45712. * rendering/RenderBlock.cpp:
  45713. (WebCore::RenderBlock::layoutPositionedObjects): Avoid marking the object's
  45714. parents, since they have already been laid out.
  45715. * rendering/RenderBox.cpp:
  45716. (WebCore::RenderBox::setStaticY): Added a call to setChildNeedsLayout() to
  45717. ensure relayout by this box's container (third and fourth cases in the
  45718. layout test).
  45719. * rendering/RenderBox.h:
  45720. * rendering/RenderObject.cpp:
  45721. (WebCore::RenderObject::markContainingBlocksForLayout): For positioned objects
  45722. with static y, also mark the object's parent to ensure that it recomputes
  45723. the static y value (first case in the layout test).
  45724. 2007-01-26 Lars Knoll <lars@trolltech.com>
  45725. Reviewed by Zack
  45726. Get rid of FrameQtClient. It's unused since we moved over
  45727. to the loader.
  45728. * WebCore.pro:
  45729. * page/qt/FrameQt.cpp:
  45730. (WebCore::FrameQt::FrameQt):
  45731. * page/qt/FrameQt.h:
  45732. * page/qt/FrameQtClient.cpp: Removed.
  45733. * page/qt/FrameQtClient.h: Removed.
  45734. * platform/network/ResourceHandleInternal.h:
  45735. * platform/network/qt/ResourceHandleManagerQt.cpp:
  45736. (WebCore::RequestQt::RequestQt):
  45737. (WebCore::ResourceHandleManager::add):
  45738. * platform/network/qt/ResourceHandleManagerQt.h:
  45739. * platform/network/qt/ResourceHandleQt.cpp:
  45740. (WebCore::ResourceHandle::start):
  45741. 2007-01-26 Zack Rusin <zack@kde.org>
  45742. Fix the compile
  45743. * WebCore.pro:
  45744. 2007-01-26 Adam Roben <aroben@apple.com>
  45745. Reviewed by Maciej.
  45746. Fixed <rdar://problem/4946499>, which made it impossible to tab
  45747. forward into the left frame of tivofaq.com after tabbing out of the
  45748. document.
  45749. * page/FocusController.cpp:
  45750. (WebCore::FocusController::advanceFocus): Clear the focused frame
  45751. before passing off focus to Chrome so that when we re-enter the
  45752. document we start at the main frame instead of the last focused frame.
  45753. 2007-01-25 Rob Buis <buis@kde.org>
  45754. Reviewed by olliej.
  45755. http://bugs.webkit.org/show_bug.cgi?id=11911
  45756. SVG exhibits double-text-selection behavior
  45757. Fix selection height of the inline text boxes for svg.
  45758. * WebCore.xcodeproj/project.pbxproj:
  45759. * rendering/InlineTextBox.cpp:
  45760. (WebCore::InlineTextBox::selectionTop):
  45761. (WebCore::InlineTextBox::selectionHeight):
  45762. (WebCore::InlineTextBox::selectionRect):
  45763. (WebCore::InlineTextBox::paintSelection):
  45764. (WebCore::InlineTextBox::paintMarkedTextBackground):
  45765. (WebCore::InlineTextBox::paintCustomHighlight):
  45766. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
  45767. (WebCore::InlineTextBox::paintTextMatchMarker):
  45768. * rendering/InlineTextBox.h:
  45769. * rendering/RenderSVGInlineText.cpp:
  45770. (WebCore::RenderSVGInlineText::createInlineTextBox):
  45771. * rendering/RenderSVGInlineText.h:
  45772. * rendering/RenderText.cpp:
  45773. (WebCore::RenderText::createInlineTextBox):
  45774. (WebCore::RenderText::createInlineBox):
  45775. * rendering/RenderText.h:
  45776. * rendering/SVGInlineTextBox.cpp: Added.
  45777. (WebCore::SVGInlineTextBox::selectionTop):
  45778. (WebCore::SVGInlineTextBox::selectionHeight):
  45779. * rendering/SVGInlineTextBox.h: Added.
  45780. (WebCore::SVGInlineTextBox::SVGInlineTextBox):
  45781. 2007-01-26 Zack Rusin <zack@kde.org>
  45782. Reviewed by Lars
  45783. Fix drawing of tiled images.
  45784. * WebCore.pro:
  45785. * platform/graphics/qt/ImageQt.cpp:
  45786. (WebCore::BitmapImage::drawPattern):
  45787. 2007-01-26 Zack Rusin <zack@kde.org>
  45788. Reviewed by Lars
  45789. Fixing image loading - we decode QImages
  45790. but render QPixmaps now. Implement Icon
  45791. class
  45792. * platform/graphics/BitmapImage.h:
  45793. * platform/graphics/Icon.h:
  45794. * platform/graphics/Image.h:
  45795. (WebCore::Image::getPixmap):
  45796. * platform/graphics/qt/IconQt.cpp:
  45797. (WebCore::Icon::Icon):
  45798. (WebCore::Icon::~Icon):
  45799. (WebCore::Icon::newIconForFile):
  45800. (WebCore::Icon::paint):
  45801. * platform/graphics/qt/ImageDecoderQt.cpp:
  45802. (WebCore::ImageDecoderQt::ImageData::ImageData):
  45803. (WebCore::ImageDecoderQt::ReadContext::read):
  45804. (WebCore::ImageDecoderQt::ReadContext::readImageLines):
  45805. (WebCore::ImageDecoderQt::reset):
  45806. (WebCore::ImageDecoderQt::imageAtIndex):
  45807. * platform/graphics/qt/ImageDecoderQt.h:
  45808. * platform/graphics/qt/ImageQt.cpp:
  45809. (WebCore::BitmapImage::drawPattern):
  45810. (WebCore::BitmapImage::getPixmap):
  45811. * platform/graphics/qt/ImageSourceQt.cpp:
  45812. (WebCore::ImageSource::createFrameAtIndex):
  45813. 2007-01-25 Justin Garcia <justin.garcia@apple.com>
  45814. Reviewed by oliver
  45815. <http://bugs.webkit.org/show_bug.cgi?id=12409>
  45816. REGRESSION (r19039): Drag caret isn't cleared after a drop
  45817. No new layout tests because the regression was
  45818. caught by current layout tests.
  45819. * page/DragController.cpp:
  45820. (WebCore::DragController::concludeDrag): Clear the drag caret.
  45821. 2007-01-25 Darin Adler <darin@apple.com>
  45822. Reviewed and landed by Geoffrey Garen.
  45823. - fix http://bugs.webkit.org/show_bug.cgi?id=12342
  45824. REGRESSION: destroying a frame from its own script causes various crashes
  45825. * bindings/js/kjs_window.cpp: (KJS::ScheduledAction::execute):
  45826. Use RefPtr for the frame and the interpreter object so they don't get deleted
  45827. out from underneath us.
  45828. * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::evaluate):
  45829. Add a check for a page of 0. This was the only call site for the
  45830. addMessageToConsole function that did not have a check for a page of 0.
  45831. 2007-01-25 Dirk Mueller <mueller@kde.org>
  45832. Reviewed and merged by Beth.
  45833. Fix for <rdar://problem/4921692> not processing comments inside a
  45834. title element leads to XSS (for at least BlogSpot)
  45835. This is equivalent to commit 626791 in the KDE tree. Basically, the
  45836. patch allows comment parsing in titles to avoid capturing a
  45837. <script> tag by accident.
  45838. * html/HTMLTokenizer.cpp:
  45839. (WebCore::HTMLTokenizer::parseSpecial):
  45840. (WebCore::HTMLTokenizer::parseComment):
  45841. 2007-01-25 Darin Adler <darin@apple.com>
  45842. * ksvg2/svg/SVGPreserveAspectRatio.cpp: Add a couple of comments.
  45843. 2007-01-25 Darin Adler <darin@apple.com>
  45844. Reviewed by Maciej.
  45845. - fix http://bugs.webkit.org/show_bug.cgi?id=12365
  45846. Reproducible crash in WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio
  45847. in svg/W3C-SVG-1.1/animate-elem-40-t.svg under guard malloc
  45848. - fix bug where the parser accepts "meet" or "slice" as an entire string
  45849. - fix bug where "slice" is ignored if the old alignment was "none"
  45850. even if the newly-parsed alignment is something other than "none", and
  45851. "slice" is not ignored if the old alignment was not "none", but the
  45852. newly-parsed alignment is "none"
  45853. - optimize to only call notifyAttributeChange if the attribute actually changed
  45854. Test: svg/dom/preserve-aspect-ratio-parser-test.html
  45855. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  45856. (WebCore::checkString): Added an overload for using char* constants which is
  45857. much simpler than the old one, and almost as fast.
  45858. (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio): Fail if there's no
  45859. more text after "defer". Fail if there's neither "none" nor an x/y specified.
  45860. Check that there's more text before looking at the "m" and "s" for "meet" and
  45861. "slice". Merged the failure and success cases. Only call notifyAttributeChange
  45862. if something changed.
  45863. I think all the "optimized" code where we check the first character before
  45864. calling checkString isn't really helpful, but I decided to leave it as-is
  45865. for now.
  45866. 2007-01-25 Lars Knoll <lars@trolltech.com>
  45867. Reviewed by Zack
  45868. Trivial implementation of getMIMETypeForExtension.
  45869. Use the above method in the ResourceHandleManager to set
  45870. a mimetype on Resources that don't have one set (which
  45871. includes everything loaded from local disk).
  45872. Should fix quite a few test cases :)
  45873. * platform/network/qt/ResourceHandleManagerQt.cpp:
  45874. (WebCore::ResourceHandleManager::receivedResponse):
  45875. * platform/qt/MimeTypeRegistryQt.cpp:
  45876. (WebCore::):
  45877. (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
  45878. 2007-01-25 Harald Fernengel <harald@trolltech.com>
  45879. Reviewed by zack
  45880. Compile on platforms where qreal is not a double.
  45881. * platform/graphics/qt/AffineTransformQt.cpp:
  45882. (WebCore::AffineTransform::map):
  45883. 2007-01-25 Zack Rusin <zack@kde.org>
  45884. Reviewed by Lars.
  45885. Add wheel event handling and make explicit usage
  45886. of the EventHandler.
  45887. * WebCore.pro:
  45888. * page/qt/EventHandlerQt.cpp:
  45889. (WebCore::EventHandler::focusDocumentView):
  45890. (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
  45891. (WebCore::EventHandler::passMouseDownEventToWidget):
  45892. (WebCore::EventHandler::lastEventIsMouseUp):
  45893. (WebCore::EventHandler::handleMouseUp):
  45894. * platform/PlatformWheelEvent.h:
  45895. * platform/qt/ScrollViewCanvasQt.cpp:
  45896. (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
  45897. (WebCore::ScrollViewCanvasQt::mousePressEvent):
  45898. (WebCore::ScrollViewCanvasQt::wheelEvent):
  45899. (WebCore::ScrollViewCanvasQt::dragEnterEvent):
  45900. (WebCore::ScrollViewCanvasQt::dragLeaveEvent):
  45901. (WebCore::ScrollViewCanvasQt::dragMoveEvent):
  45902. * platform/qt/ScrollViewCanvasQt.h:
  45903. * platform/qt/ScrollViewQt.cpp:
  45904. (WebCore::ScrollView::wheelEvent):
  45905. * platform/qt/WheelEventQt.cpp: Added.
  45906. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  45907. 2007-01-25 Rob Buis <buis@kde.org>
  45908. Reviewed by Maciej.
  45909. http://bugs.webkit.org/show_bug.cgi?id=12391
  45910. SVG containers with viewports should respect overflow when hit testing
  45911. Take into account the overflow property when hit testing <svg>.
  45912. * rendering/RenderSVGContainer.cpp:
  45913. (WebCore::RenderSVGContainer::nodeAtPoint):
  45914. 2007-01-23 Alice Liu <alice.liu@apple.com>
  45915. Reviewed by Maciej.
  45916. fixed <rdar://problem/4808039> REGRESSION: eBay ID check never completes
  45917. Also known as http://bugs.webkit.org/show_bug.cgi?id=11230
  45918. * bindings/js/kjs_window.cpp:
  45919. It's not necessary to check safeScript when doing a location.replace, .reload, or .assign
  45920. (KJS::Location::getOwnPropertySlot):
  45921. (KJS::LocationFunc::callAsFunction):
  45922. 2007-01-25 Alice Liu <alice.liu@apple.com>
  45923. Reviewed by Geoff and Adele.
  45924. fixed <rdar://problem/4866655> REGRESSION: Copying out of Calculator & CIFIlterWidget is broken on 9A320
  45925. * editing/Editor.cpp:
  45926. (WebCore::Editor::canDHTMLCut):
  45927. (WebCore::Editor::canDHTMLCopy):
  45928. (WebCore::Editor::tryDHTMLCopy):
  45929. (WebCore::Editor::tryDHTMLCut):
  45930. Reverting some mistakes made in r17504:
  45931. Anything in r17503 that used to call mayDHTML* still calls canDHTML* as it was changed in r17504, where canDHTML* now calls !selectionController::isInPasswordField instead of editor::canCopy
  45932. Anything else in r17503 that used to call mayCopy now calls (!)selectionController::isInPasswordField.
  45933. * editing/JSEditor.cpp:
  45934. copy via JS should be enabled as long as selection is not in a password field. a range selection shouldn't be required.
  45935. 2007-01-24 Adele Peterson <adele@apple.com>
  45936. Reviewed by Brady and Oliver.
  45937. Fix for <rdar://problem/4953504> When the keydown event changes focus, the keypress event should go to the new focused node
  45938. Test: fast/events/keydown-keypress-focus-change.html
  45939. * page/EventHandler.cpp:
  45940. (WebCore::eventTargetNodeForDocument): Added for convenience.
  45941. (WebCore::EventHandler::keyEvent): Moved from EventHandlerMac.mm. After dispatching the keyDown event,
  45942. recheck the target node for the keyPress event in case its changed.
  45943. * page/EventHandler.h:
  45944. * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::keyEvent):
  45945. Moved the bulk of this code to EventHandler.cpp.
  45946. 2007-01-24 Geoffrey Garen <ggaren@apple.com>
  45947. New forwarding header. No review necessary.
  45948. * ForwardingHeaders/kjs/ustring.h: Added.
  45949. 2007-01-24 Oliver Hunt <oliver@apple.com>
  45950. Reviewed by Maciej.
  45951. Migrating more drag state information to WebCore
  45952. * page/DragController.cpp:
  45953. * page/DragController.h:
  45954. (WebCore::DragController::dragOperation):
  45955. (WebCore::DragController::setDraggingImageURL):
  45956. (WebCore::DragController::draggingImageURL):
  45957. (WebCore::DragController::setDragOffset):
  45958. (WebCore::DragController::dragOffset):
  45959. 2007-01-24 Darin Adler <darin@apple.com>
  45960. Reviewed by Adele.
  45961. - fix http://bugs.webkit.org/show_bug.cgi?id=12331
  45962. REGRESSION(r18951): Selecting text in a textarea makes the page scroll
  45963. Test: fast/events/autoscroll.html
  45964. * rendering/RenderLayer.cpp: (WebCore::RenderLayer::autoscroll):
  45965. Adjust position to be relative to the object's corner for the hit test, but not for the
  45966. scrollRectToVisible call. The previous version accidentally re-used the version that was
  45967. adjusted for the hit test.
  45968. 2007-01-24 Beth Dakin <bdakin@apple.com>
  45969. Reviewed by Geoff.
  45970. Fix for <rdar://problem/4948128> REGRESSION: A crash occurs at
  45971. WebCore::Frame::view() after completing a query at mapquest.com
  45972. then switching to Bookmarks view
  45973. This is just a null-check. If you are in strict mode and ask for
  45974. the clientWidth or clientHeight after the document was removed from
  45975. it's parent, we no longer have a frameView, so we have to null-
  45976. check it. I added null checks for the FrameView in some other
  45977. places where it seems like we could potentially run into this
  45978. issue.
  45979. * bindings/objc/DOMHTML.mm:
  45980. (-[DOMHTMLInputElement _rectOnScreen]):
  45981. * bridge/mac/WebCoreAXObject.mm:
  45982. (-[WebCoreAXObject accessibilityAttributeValue:]):
  45983. * dom/ContainerNode.cpp:
  45984. (WebCore::ContainerNode::getUpperLeftCorner):
  45985. * dom/Element.cpp:
  45986. (WebCore::Element::clientWidth): Actual bug fix here!
  45987. (WebCore::Element::clientHeight): And here!
  45988. * ksvg2/svg/SVGLength.cpp:
  45989. (WebCore::SVGLength::PercentageOfViewport):
  45990. * loader/FrameLoader.cpp:
  45991. (WebCore::FrameLoader::createJavaAppletWidget):
  45992. * page/mac/WebCoreFrameBridge.mm:
  45993. (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
  45994. * rendering/RenderLayer.cpp:
  45995. (WebCore::RenderLayer::windowClipRect):
  45996. (WebCore::RenderLayer::updateOverflowStatus):
  45997. (WebCore::frameVisibleRect):
  45998. * rendering/RenderListBox.cpp:
  45999. (WebCore::RenderListBox::windowClipRect):
  46000. * rendering/RenderTable.cpp:
  46001. (WebCore::RenderTable::layout):
  46002. 2007-01-24 Maciej Stachowiak <mjs@apple.com>
  46003. Not reviewed, just removing accidentally committed file.
  46004. - removed file that shouldn't be there
  46005. * Image Viewer/Image Viewer.aps: Removed.
  46006. 2007-01-24 Anders Carlsson <acarlsson@apple.com>
  46007. Reviewed by Geoff and Adam.
  46008. <rdar://problem/4922655>
  46009. http://galeri.milliyet.com.tr/ reproducibly crashes Safari
  46010. * loader/FrameLoader.cpp:
  46011. (WebCore::FrameLoader::requestFrame):
  46012. If the frame already exists, defer the navigation so that we won't end up replacing the document
  46013. while we're parsing it. This is similar to what setting window.location ends up doing.
  46014. 2007-01-25 Mark Rowe <mrowe@apple.com>
  46015. Reviewed by Darin.
  46016. * Info.plist: Update copyright string.
  46017. 2007-01-24 Justin Garcia <justin.garcia@apple.com>
  46018. Reviewed by harrison
  46019. <rdar://problem/4916235>
  46020. eBay Editor: Crash occurs at WebCore::Range::startPosition() after applying ordered list styling to selected text
  46021. <rdar://problem/4857269>
  46022. REGRESSION: editing/execCommand/create-list-from-range-selection.html no longer works as intended
  46023. <rdar://problem/4916583>
  46024. eBay Editor: Removing a indent from a list item actually deletes the list item instead
  46025. <rdar://problem/4928635>
  46026. designMode outdent causes crash (11750)
  46027. * editing/CompositeEditCommand.cpp:
  46028. (WebCore::CompositeEditCommand::moveParagraphs): Fixed br insertion
  46029. after the pruning of empty containers left over after the paragraph
  46030. to move is removed.
  46031. * editing/DeleteSelectionCommand.cpp:
  46032. (WebCore::DeleteSelectionCommand::DeleteSelectionCommand): There are
  46033. bugs that leave the wrong number of line breaks after a deletion
  46034. that expands to include special elements (lists/tables). Added
  46035. a workaround so that moveParagraphs can avoid these until they
  46036. are fixed.
  46037. (WebCore::DeleteSelectionCommand::initializeStartEnd): Ditto.
  46038. (WebCore::DeleteSelectionCommand::initializePositionData): Ditto.
  46039. * editing/DeleteSelectionCommand.h:
  46040. * editing/TextIterator.cpp:
  46041. (WebCore::TextIterator::advance): We used to not call exitNode for
  46042. ancestors of a node where the next node in a pre-order traversal is
  46043. the ranges's pastEndNode(). This is only correct for ancestors that
  46044. contain the end of the range.
  46045. (WebCore::shouldEmitNewlineAfterNode): Added, we should only emit newlines
  46046. after blocks that have VisiblePositions after them. VisiblePosition creation
  46047. though is too expensive to do here, what I added here is an OK substitute.
  46048. (WebCore::shouldEmitNewlineBeforeNode): Added. No special logic yet.
  46049. (WebCore::TextIterator::handleNonTextNode): Call shouldEmitNewlineBeforeNode.
  46050. (WebCore::TextIterator::exitNode): Call shouldEmitNewlineAfterNode.
  46051. (WebCore::SimplifiedBackwardsTextIterator::handleNonTextNode): Call
  46052. shouldEmitNewlineAfterNode.
  46053. 2007-01-24 Darin Adler <darin@apple.com>
  46054. Reviewed by Mark Rowe.
  46055. * WebCore.xcodeproj/project.pbxproj: Changed to /usr/sbin/sysctl
  46056. so we don't rely on people's paths.
  46057. 2007-01-24 Darin Adler <darin@apple.com>
  46058. Reviewed by Adele.
  46059. - a couple minor tweaks to recently-changed things
  46060. * dom/Document.h: Use HTMLHeadElement as type for the head function.
  46061. * dom/Document.cpp: (WebCore::Document::head):
  46062. * ksvg2/svg/SVGElementInstance.cpp:
  46063. (WebCore::SVGElementInstance::~SVGElementInstance): Change loop to
  46064. a for loop and use a local variable for document.
  46065. 2007-01-24 Oliver Hunt <oliver@apple.com>
  46066. Reviewed by Adele.
  46067. Fixes DragController to allow a null target Document.
  46068. This is encountered in new tabs/windows that have not
  46069. loaded any page
  46070. * page/DragController.cpp:
  46071. (WebCore::documentAtPoint):
  46072. (WebCore::DragController::tryDocumentDrag):
  46073. (WebCore::DragController::operationForLoad):
  46074. (WebCore::DragController::concludeDrag):
  46075. * page/mac/DragControllerMac.mm:
  46076. (WebCore::DragController::dragOperation):
  46077. 2007-01-24 Sam Weinig <sam@webkit.org>
  46078. Reviewed by Mitz.
  46079. Patch for http://bugs.webkit.org/show_bug.cgi?id=12394
  46080. Cleanup RenderBox
  46081. No functionality changes, just a good old fashion cleanup,
  46082. thus no tests.
  46083. * rendering/RenderBox.cpp:
  46084. (WebCore::RenderBox::RenderBox):
  46085. (WebCore::RenderBox::setStyle):
  46086. (WebCore::RenderBox::destroy):
  46087. (WebCore::RenderBox::setPos):
  46088. (WebCore::RenderBox::calcBorderBoxWidth):
  46089. (WebCore::RenderBox::calcBorderBoxHeight):
  46090. (WebCore::RenderBox::calcContentBoxWidth):
  46091. (WebCore::RenderBox::calcContentBoxHeight):
  46092. (WebCore::RenderBox::nodeAtPoint):
  46093. (WebCore::RenderBox::paintRootBoxDecorations):
  46094. (WebCore::RenderBox::paintBoxDecorations):
  46095. (WebCore::RenderBox::paintBackgrounds):
  46096. (WebCore::RenderBox::paintBackground):
  46097. (WebCore::cacluateBackgroundSize):
  46098. (WebCore::RenderBox::paintBackgroundExtended):
  46099. (WebCore::RenderBox::getOverflowClipRect):
  46100. (WebCore::RenderBox::getClipRect):
  46101. (WebCore::RenderBox::containingBlockWidth):
  46102. (WebCore::RenderBox::absolutePosition):
  46103. (WebCore::RenderBox::dirtyLineBoxes):
  46104. (WebCore::RenderBox::position):
  46105. (WebCore::RenderBox::getAbsoluteRepaintRect):
  46106. (WebCore::RenderBox::computeAbsoluteRepaintRect):
  46107. (WebCore::RenderBox::repaintDuringLayoutIfMoved):
  46108. (WebCore::RenderBox::relativePositionOffsetX):
  46109. (WebCore::RenderBox::relativePositionOffsetY):
  46110. (WebCore::RenderBox::calcWidth):
  46111. (WebCore::RenderBox::calcWidthUsing):
  46112. (WebCore::RenderBox::sizesToIntrinsicWidth):
  46113. (WebCore::RenderBox::calcHorizontalMargins):
  46114. (WebCore::RenderBox::calcHeight):
  46115. (WebCore::RenderBox::calcPercentageHeight):
  46116. (WebCore::RenderBox::calcReplacedWidthUsing):
  46117. (WebCore::RenderBox::calcReplacedHeightUsing):
  46118. (WebCore::RenderBox::availableHeightUsing):
  46119. (WebCore::RenderBox::calcVerticalMargins):
  46120. (WebCore::RenderBox::containingBlockWidthForPositioned):
  46121. (WebCore::RenderBox::calcAbsoluteHorizontal):
  46122. (WebCore::RenderBox::calcAbsoluteHorizontalValues):
  46123. (WebCore::RenderBox::calcAbsoluteVertical):
  46124. (WebCore::RenderBox::calcAbsoluteVerticalValues):
  46125. (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
  46126. (WebCore::RenderBox::caretRect):
  46127. * rendering/RenderBox.h:
  46128. (WebCore::RenderBox::setOverrideSize):
  46129. (WebCore::RenderBox::width):
  46130. (WebCore::RenderBox::height):
  46131. (WebCore::RenderBox::setWidth):
  46132. (WebCore::RenderBox::setHeight):
  46133. (WebCore::RenderBox::inlineBoxWrapper):
  46134. (WebCore::RenderBox::setInlineBoxWrapper):
  46135. (WebCore::RenderBox::stretchesToViewHeight):
  46136. (WebCore::RenderBox::setStaticX):
  46137. (WebCore::RenderBox::setStaticY):
  46138. 2007-01-24 Eric Seidel <eric@webkit.org>
  46139. Reviewed by ap.
  46140. Converted SVGTransform from being Shared<T> to a POD type.
  46141. No functional changes, thus no tests.
  46142. * bindings/scripts/CodeGenerator.pm:
  46143. * bindings/scripts/CodeGeneratorJS.pm:
  46144. * ksvg2/misc/SVGTimer.cpp:
  46145. (WebCore::baseValueTransformList):
  46146. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  46147. (WebCore::SVGAnimateTransformElement::storeInitialValue):
  46148. (WebCore::SVGAnimateTransformElement::resetValues):
  46149. (WebCore::SVGAnimateTransformElement::updateCurrentValue):
  46150. (WebCore::SVGAnimateTransformElement::handleStartCondition):
  46151. (WebCore::SVGAnimateTransformElement::applyAnimationToValue):
  46152. (WebCore::SVGAnimateTransformElement::parseTransformValue):
  46153. * ksvg2/svg/SVGAnimateTransformElement.h:
  46154. * ksvg2/svg/SVGLinearGradientElement.cpp:
  46155. (WebCore::SVGLinearGradientElement::collectGradientProperties):
  46156. * ksvg2/svg/SVGPatternElement.cpp:
  46157. (WebCore::SVGPatternElement::collectPatternProperties):
  46158. * ksvg2/svg/SVGRadialGradientElement.cpp:
  46159. (WebCore::SVGRadialGradientElement::collectGradientProperties):
  46160. * ksvg2/svg/SVGSVGElement.cpp:
  46161. (WebCore::SVGSVGElement::createSVGTransform):
  46162. (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
  46163. * ksvg2/svg/SVGSVGElement.h:
  46164. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  46165. (WebCore::SVGStyledTransformableElement::updateLocalTransform):
  46166. * ksvg2/svg/SVGTextElement.cpp:
  46167. (WebCore::SVGTextElement::updateLocalTransform):
  46168. * ksvg2/svg/SVGTransform.cpp:
  46169. (SVGTransform::SVGTransform):
  46170. (SVGTransform::isValid):
  46171. * ksvg2/svg/SVGTransform.h:
  46172. * ksvg2/svg/SVGTransform.idl:
  46173. * ksvg2/svg/SVGTransformList.cpp:
  46174. (SVGTransformList::SVGTransformList):
  46175. (SVGTransformList::createSVGTransformFromMatrix):
  46176. (SVGTransformList::consolidate):
  46177. (SVGTransformList::concatenate):
  46178. * ksvg2/svg/SVGTransformList.h:
  46179. * ksvg2/svg/SVGTransformable.cpp:
  46180. (WebCore::SVGTransformable::parseTransformAttribute):
  46181. 2007-01-24 Mark Rowe <mrowe@apple.com>
  46182. Reviewed by Eric.
  46183. Plug another bunch of SVG memory leaks.
  46184. * ksvg2/misc/SVGDocumentExtensions.cpp:
  46185. (WebCore::SVGDocumentExtensions::~SVGDocumentExtensions): Delete memory we have allocated.
  46186. (WebCore::SVGDocumentExtensions::removePendingResource): Return an auto_ptr to show that we are transferring ownership.
  46187. * ksvg2/misc/SVGDocumentExtensions.h:
  46188. * ksvg2/svg/SVGElement.cpp:
  46189. (WebCore::SVGElement::insertedIntoDocument): Update for use of auto_ptr.
  46190. 2007-01-23 Mark Rowe <mrowe@apple.com>
  46191. Reviewed by Brady.
  46192. Plug thousands of node leaks seen running layout tests.
  46193. * ksvg2/svg/SVGElementInstance.cpp:
  46194. (WebCore::SVGElementInstance::~SVGElementInstance): Disassociate ourselves from our children so they will
  46195. be destroyed if we were the only thing referencing them.
  46196. * ksvg2/svg/SVGUseElement.cpp:
  46197. (WebCore::SVGUseElement::removedFromDocument):
  46198. * ksvg2/svg/SVGUseElement.h:
  46199. 2007-01-23 Alice Liu <alice.liu@apple.com>
  46200. Reviewed by Brady.
  46201. * editing/Editor.cpp:
  46202. (WebCore::Editor::appliedEditing):
  46203. minor change. removing unnecessary call to frame to fetch editor
  46204. 2007-01-23 Mark Rowe <mrowe@apple.com>
  46205. Reviewed by Adele.
  46206. http://bugs.webkit.org/show_bug.cgi?id=12375
  46207. Bug 12375: REGRESSION(r19038): fast/dom/title-text-property-2.html failing
  46208. Fix regression by making setTitle/updateTitle/removeTitle logic match document.title
  46209. specification at http://whatwg.org/specs/web-apps/current-work/#the-title1.
  46210. * dom/Document.cpp:
  46211. (WebCore::Document::setTitle): Materialize a title element into the head if one doesn't exist when setting
  46212. document.title. Also update the contents of the title element when the title is set via document.title.
  46213. (WebCore::Document::removeTitle): Update the title based on first title element in the head, if one exists.
  46214. (WebCore::Document::head): Convenience method to retrieve the head element in an HTML document.
  46215. * dom/Document.h:
  46216. 2007-01-23 Beth Dakin <bdakin@apple.com>
  46217. Reviewed by Hyatt.
  46218. Follow-up to the fix below for 4843226.
  46219. * rendering/RenderLayer.cpp:
  46220. (WebCore::transparencyClipBox): Has to be recursive or we will miss
  46221. out on grandchildren!
  46222. 2007-01-23 Oliver Hunt <oliver@apple.com>
  46223. Reviewed by Adam.
  46224. Fixes dropping of files into safari
  46225. * page/DragController.cpp:
  46226. (WebCore::DragController::performDrag):
  46227. 2007-01-23 Brady Eidson <beidson@apple.com>
  46228. Reviewed by Darin
  46229. Added a couple of CF things previously missed
  46230. * platform/network/ResourceError.h:
  46231. * platform/network/ResourceHandle.h:
  46232. 2007-01-23 Nikolas Zimmermann <zimmermann@kde.org>
  46233. Reviewed by Maciej.
  46234. Fix evil genericContext() assertion, which occours sometimes when running DRT.
  46235. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12379
  46236. * bindings/scripts/CodeGeneratorJS.pm:
  46237. * ksvg2/misc/SVGDocumentExtensions.h:
  46238. (WebCore::SVGDocumentExtensions::genericContextMap):
  46239. (WebCore::SVGDocumentExtensions::forgetGenericContext):
  46240. 2007-01-23 Beth Dakin <bdakin@apple.com>
  46241. Reviewed by Hyatt.
  46242. Fix for <rdar://problem/4843226> REGRESSION: Pull down menu appears
  46243. clipped at http://istweb.apple.com/
  46244. * rendering/RenderLayer.cpp:
  46245. (WebCore::transparencyClipBox): Always unite with sibling rects.
  46246. 2007-01-22 Justin Garcia <justin.garcia@apple.com>
  46247. Reviewed by john
  46248. <rdar://problem/4920742>
  46249. REGRESSION: GMail Editor: Attempting to remove formatting from selection results in a crash at WebCore::Range::checkDeleteExtract()
  46250. * dom/Range.cpp:
  46251. (WebCore::Range::checkDeleteExtract): Return if there is no
  46252. commonAncestor container or if commonAncestorContainer() throws
  46253. an exception.
  46254. * editing/Editor.cpp:
  46255. (WebCore::Editor::removeFormattingAndStyle): Fixed a bug that reversed
  46256. the order of the selected paragraphs.
  46257. 2007-01-23 Nikolas Zimmermann <zimmermann@kde.org>
  46258. Reviewed by Sam.
  46259. Fix dynamic creation/updates of markers, masks, clipPaths, and several tiny pattern issues.
  46260. Added 16 (!) new layout tests covering quite some weird scenerios - Batik & Opera do have problems, we don't.
  46261. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12380
  46262. Fixes: svg/custom/image-with-transform-clip-filter.svg (filter shows up again)
  46263. Added: svg/custom/clip-path-child-changes.svg
  46264. Added: svg/custom/clip-path-href-changes.svg
  46265. Added: svg/custom/clip-path-units-changes.svg
  46266. Added: svg/custom/deep-dynamic-updates.svg
  46267. Added: svg/custom/js-late-clipPath-and-object-creation.svg
  46268. Added: svg/custom/js-late-clipPath-creation.svg
  46269. Added: svg/custom/js-late-marker-and-object-creation.svg
  46270. Added: svg/custom/js-late-marker-creation.svg
  46271. Added: svg/custom/js-late-mask-and-object-creation.svg
  46272. Added: svg/custom/js-late-mask-creation.svg
  46273. Added: svg/custom/js-update-pattern-child.svg
  46274. Added: svg/custom/marker-changes.svg
  46275. Added: svg/custom/marker-child-changes.svg
  46276. Added: svg/custom/marker-viewBox-changes.svg
  46277. Added: svg/custom/mask-changes.svg
  46278. Added: svg/custom/mask-child-changes.svg
  46279. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  46280. (WebCore::KSVGPainterFactory::fillPaintServer):
  46281. (WebCore::KSVGPainterFactory::strokePaintServer):
  46282. * ksvg2/svg/SVGClipPathElement.cpp:
  46283. (WebCore::SVGClipPathElement::notifyAttributeChange):
  46284. * ksvg2/svg/SVGClipPathElement.h:
  46285. * ksvg2/svg/SVGGradientElement.cpp:
  46286. * ksvg2/svg/SVGGradientElement.h:
  46287. * ksvg2/svg/SVGMarkerElement.cpp:
  46288. (WebCore::SVGMarkerElement::canvasResource):
  46289. (WebCore::SVGMarkerElement::notifyAttributeChange):
  46290. * ksvg2/svg/SVGMarkerElement.h:
  46291. * ksvg2/svg/SVGMaskElement.cpp:
  46292. (WebCore::SVGMaskElement::notifyAttributeChange):
  46293. * ksvg2/svg/SVGMaskElement.h:
  46294. * ksvg2/svg/SVGStopElement.cpp:
  46295. (WebCore::SVGStopElement::notifyAttributeChange):
  46296. * ksvg2/svg/SVGStyledElement.cpp:
  46297. (WebCore::SVGStyledElement::notifyAttributeChange):
  46298. (WebCore::SVGStyledElement::notifyResourceParentIfExistant):
  46299. (WebCore::SVGStyledElement::rebuildRenderer):
  46300. * ksvg2/svg/SVGStyledElement.h:
  46301. * ksvg2/svg/SVGUseElement.cpp:
  46302. (WebCore::SVGUseElement::notifyAttributeChange):
  46303. * platform/graphics/svg/SVGResource.cpp:
  46304. (WebCore::SVGResource::invalidate):
  46305. (WebCore::SVGResource::addClient):
  46306. (WebCore::SVGResource::repaintClients):
  46307. * platform/graphics/svg/SVGResource.h:
  46308. * platform/graphics/svg/SVGResourceMarker.cpp:
  46309. (WebCore::SVGResourceMarker::draw):
  46310. (WebCore::SVGResourceMarker::cachedBounds):
  46311. * platform/graphics/svg/SVGResourceMarker.h:
  46312. * rendering/RenderPath.cpp:
  46313. (WebCore::RenderPath::layout):
  46314. (WebCore::RenderPath::getAbsoluteRepaintRect):
  46315. (WebCore::RenderPath::paint):
  46316. (WebCore::drawMarkerWithData):
  46317. (WebCore::RenderPath::drawMarkersIfNeeded):
  46318. * rendering/RenderPath.h:
  46319. * rendering/RenderSVGContainer.cpp:
  46320. (WebCore::RenderSVGContainer::paint):
  46321. (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
  46322. * rendering/RenderSVGImage.cpp:
  46323. (WebCore::RenderSVGImage::paint):
  46324. (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
  46325. * rendering/SVGInlineFlowBox.cpp:
  46326. (WebCore::paintSVGInlineFlow):
  46327. 2007-01-23 Adele Peterson <adele@apple.com>
  46328. Reviewed by Darin.
  46329. WebCore part of fix for <rdar://problem/4946753>REGRESSION: Inserting tabs is broken in Mail
  46330. In addition to this fix, I also reorganized some event handling code for keyPress events to
  46331. prepare for another fix. There's also just a little bit of unrelated cleanup.
  46332. * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::defaultEventHandler):
  46333. Move tab focus behavior into new defaultKeyboardEventHandler method.
  46334. * bridge/EditorClient.h: Added handleKeyPress.
  46335. * editing/Editor.cpp:
  46336. (WebCore::Editor::handleKeyPress): Added. Calls over to the client method.
  46337. (WebCore::Editor::deleteRange): Removed unnecessary propogateDOMException.
  46338. * editing/Editor.h: Added handleKeyPress.
  46339. (WebCore::Editor::addToKillRing): Formatting cleanup.
  46340. * editing/mac/EditorMac.mm: Removed unnecessary propogateDOMException.
  46341. * page/EventHandler.cpp: (WebCore::EventHandler::defaultKeyboardEventHandler): Added. Checks
  46342. the tabKeyCyclesThroughElements setting before advancing focus for tab key events. Calls handleKeyPress.
  46343. * page/EventHandler.h: Added defaultKeyboardEventHandler.
  46344. * page/Page.cpp: (WebCore::Page::Page): Initialize m_tabKeyCyclesThroughElements to true.
  46345. * page/Page.h: Added m_tabKeyCyclesThroughElements.
  46346. (WebCore::Page::setTabKeyCyclesThroughElements): Added.
  46347. (WebCore::Page::tabKeyCyclesThroughElements): Added.
  46348. * platform/PlatformKeyboardEvent.h: Added ability to get NSEvent from PlatformKeyboardEvent.
  46349. * platform/mac/KeyEventMac.mm: (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  46350. Initialize m_macEvent to the NSEvent.
  46351. * platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyEditorClient::handleKeyPress): Added.
  46352. 2007-01-23 George Staikos <staikos@kde.org>
  46353. Compile with a released Qt.
  46354. * platform/graphics/qt/ImageQt.cpp:
  46355. 2007-01-23 Lars Knoll <lars@trolltech.com>
  46356. Reviewed by Zack
  46357. Widget and ScrollView do not own the Qt widgets
  46358. anymore. Make sure they can handle the case of
  46359. a null QWidget and never delete them.
  46360. * platform/qt/ScrollViewQt.cpp:
  46361. (WebCore::ScrollView::setScrollArea):
  46362. (WebCore::ScrollView::updateContents):
  46363. (WebCore::ScrollView::visibleWidth):
  46364. (WebCore::ScrollView::visibleHeight):
  46365. (WebCore::ScrollView::visibleContentRect):
  46366. (WebCore::ScrollView::setContentsPos):
  46367. (WebCore::ScrollView::resizeContents):
  46368. (WebCore::ScrollView::contentsX):
  46369. (WebCore::ScrollView::contentsY):
  46370. (WebCore::ScrollView::contentsWidth):
  46371. (WebCore::ScrollView::contentsHeight):
  46372. (WebCore::ScrollView::scrollOffset):
  46373. (WebCore::ScrollView::scrollBy):
  46374. (WebCore::ScrollView::hScrollbarMode):
  46375. (WebCore::ScrollView::vScrollbarMode):
  46376. (WebCore::ScrollView::setHScrollbarMode):
  46377. (WebCore::ScrollView::setVScrollbarMode):
  46378. * platform/qt/WidgetQt.cpp:
  46379. (WebCore::WidgetPrivate::~WidgetPrivate):
  46380. (WebCore::Widget::setQWidget):
  46381. 2007-01-23 Zack Rusin <zack@kde.org>
  46382. Forgot to add one new file to the build.
  46383. * WebCore.pro: Add dom/clipboard.cpp
  46384. 2007-01-23 Zack Rusin <zack@kde.org>
  46385. Fix the Qt build
  46386. * page/DragActions.h:
  46387. * page/DragController.cpp:
  46388. * platform/qt/DragDataQt.cpp:
  46389. (WebCore::DragData::canSmartReplace):
  46390. (WebCore::DragData::containsColor):
  46391. (WebCore::DragData::containsPlainText):
  46392. (WebCore::DragData::asPlainText):
  46393. (WebCore::DragData::asColor):
  46394. (WebCore::DragData::createClipboard):
  46395. (WebCore::DragData::containsCompatibleContent):
  46396. (WebCore::DragData::containsURL):
  46397. (WebCore::DragData::asURL):
  46398. (WebCore::DragData::asFragment):
  46399. * platform/qt/FileChooserQt.cpp:
  46400. 2007-01-23 Lars Knoll <lars@trolltech.com>
  46401. Reviewed by Maciej
  46402. Make the last remaining pieces of the FrameLoader platform
  46403. independent. Move most of the code over to WebFrameLoaderClient.
  46404. Some smaller cleanups in the WebFrameBridge, and moved some
  46405. platform independent functionality over to the shared code
  46406. in WebCore.
  46407. * WebCore.exp:
  46408. * WebCore.pro:
  46409. * WebCore.xcodeproj/project.pbxproj:
  46410. * loader/FrameLoader.cpp:
  46411. (WebCore::FrameLoader::loadSubframe):
  46412. (WebCore::FrameLoader::shouldUsePlugin):
  46413. (WebCore::FrameLoader::loadPlugin):
  46414. (WebCore::FrameLoader::detachFromParent):
  46415. (WebCore::FrameLoader::partClearedInBegin):
  46416. (WebCore::FrameLoader::createJavaAppletWidget):
  46417. (WebCore::FrameLoader::didChangeTitle):
  46418. * loader/FrameLoader.h:
  46419. * loader/FrameLoaderClient.h:
  46420. * loader/FrameLoaderTypes.h:
  46421. (WebCore::):
  46422. * loader/PluginDocument.cpp:
  46423. (WebCore::PluginTokenizer::writeRawData):
  46424. * loader/mac/FrameLoaderMac.mm: Removed.
  46425. * loader/qt/FrameLoaderQt.cpp: Removed.
  46426. * page/Frame.cpp:
  46427. (WebCore::Frame::Frame):
  46428. * page/FrameView.cpp:
  46429. (WebCore::FrameView::mediaType):
  46430. * page/qt/FrameQt.cpp:
  46431. (WebCore::FrameQt::FrameQt):
  46432. * platform/graphics/svg/SVGImageEmptyClients.h:
  46433. (WebCore::SVGEmptyFrameLoaderClient::makeRepresentation):
  46434. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  46435. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCommitLoad):
  46436. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailLoad):
  46437. (WebCore::SVGEmptyFrameLoaderClient::dispatchCreatePage):
  46438. (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  46439. (WebCore::SVGEmptyFrameLoaderClient::dispatchUnableToImplementPolicy):
  46440. (WebCore::SVGEmptyFrameLoaderClient::revertToProvisionalState):
  46441. (WebCore::SVGEmptyFrameLoaderClient::setMainDocumentError):
  46442. (WebCore::SVGEmptyFrameLoaderClient::startDownload):
  46443. (WebCore::SVGEmptyFrameLoaderClient::committedLoad):
  46444. (WebCore::SVGEmptyFrameLoaderClient::shouldFallBack):
  46445. (WebCore::SVGEmptyFrameLoaderClient::willUseArchive):
  46446. (WebCore::SVGEmptyFrameLoaderClient::createDocumentLoader):
  46447. (WebCore::SVGEmptyFrameLoaderClient::createFrame):
  46448. (WebCore::SVGEmptyFrameLoaderClient::createPlugin):
  46449. (WebCore::SVGEmptyFrameLoaderClient::createJavaAppletWidget):
  46450. (WebCore::SVGEmptyFrameLoaderClient::objectContentType):
  46451. (WebCore::SVGEmptyFrameLoaderClient::overrideMediaType):
  46452. (WebCore::SVGEmptyFrameLoaderClient::redirectDataToPlugin):
  46453. (WebCore::SVGEmptyFrameLoaderClient::windowObjectCleared):
  46454. 2007-01-23 Oliver Hunt <oliver@apple.com>
  46455. Reviewed by Adam.
  46456. Added DragController to handled drag and drop state and control logic.
  46457. Currently this only handles logic for Dragging and Dropping, and is
  46458. unable to initialise a drag itself.
  46459. platform/DragData encapsulate the paltform Drag data (NSDraggingInfo on Mac,
  46460. QMimeType in Qt). This provides methods to pull data out the drag data as a String,
  46461. a URL, a DocumentFragment (for rich content), or a Colour.
  46462. * WebCore.exp:
  46463. * WebCore.pro:
  46464. * WebCore.xcodeproj/project.pbxproj:
  46465. * dom/Clipboard.cpp: Added.
  46466. (WebCore::Clipboard::setAccessPolicy):
  46467. (WebCore::dragOpFromIEOp):
  46468. (WebCore::IEOpFromDragOp):
  46469. (WebCore::Clipboard::sourceOperation):
  46470. (WebCore::Clipboard::destinationOperation):
  46471. (WebCore::Clipboard::setSourceOperation):
  46472. (WebCore::Clipboard::setDestinationOperation):
  46473. (WebCore::Clipboard::setDropEffect):
  46474. (WebCore::Clipboard::setEffectAllowed):
  46475. move platform independent functions from ClipboardMac to Clipboard
  46476. * dom/Clipboard.h:
  46477. (WebCore::Clipboard::Clipboard):
  46478. (WebCore::Clipboard::dropEffect):
  46479. (WebCore::Clipboard::effectAllowed):
  46480. (WebCore::Clipboard::policy):
  46481. as above -- also removed virtual modifier from now
  46482. platform independent methods
  46483. * editing/Editor.cpp:
  46484. (WebCore::Editor::smartInsertDeleteEnabled):
  46485. (WebCore::Editor::shouldApplyStyle):
  46486. * editing/Editor.h:
  46487. adding calls through to EditorClient
  46488. * page/DragActions.h: Added.
  46489. (WebCore::):
  46490. Replicates a number of NS* enums in the WebCore namespace
  46491. * page/DragClient.h: Added.
  46492. (WebCore::DragClient::~DragClient):
  46493. Standard client interface for dragging UIDelegate
  46494. * page/DragController.cpp: Added.
  46495. (WebCore::createMouseEvent):
  46496. (WebCore::DragController::DragController):
  46497. (WebCore::DragController::~DragController):
  46498. (WebCore::documentFragmentFromDragData):
  46499. (WebCore::DragController::isMoveDrag):
  46500. (WebCore::visiblePositionForPoint):
  46501. (WebCore::DragController::cancelDrag):
  46502. (WebCore::documentAtPoint):
  46503. (WebCore::DragController::dragEntered):
  46504. (WebCore::DragController::dragExited):
  46505. (WebCore::DragController::dragUpdated):
  46506. (WebCore::DragController::performDrag):
  46507. (WebCore::DragController::dragEnteredOrUpdated):
  46508. (WebCore::DragController::tryDocumentDrag):
  46509. (WebCore::DragController::operationForLoad):
  46510. (WebCore::DragController::concludeDrag):
  46511. (WebCore::DragController::canProcessDrag):
  46512. (WebCore::DragController::tryDHTMLDrag):
  46513. Class to handle state and logic for dragging and dropping
  46514. * page/DragController.h: Added.
  46515. (WebCore::DragController::client):
  46516. (WebCore::DragController::didInitiateDrag):
  46517. (WebCore::DragController::isHandlingDrag):
  46518. (WebCore::DragController::dragOperation):
  46519. (WebCore::DragController::document):
  46520. (WebCore::DragController::dragInitiator):
  46521. (WebCore::DragController::dragDestinationAction):
  46522. (WebCore::DragController::dragSourceAction):
  46523. (WebCore::DragController::dragEnded):
  46524. (WebCore::DragController::setIsHandlingDrag):
  46525. (WebCore::DragController::setDidInitiateDrag):
  46526. (WebCore::DragController::setDragOperation):
  46527. (WebCore::DragController::setDragSourceAction):
  46528. (WebCore::DragController::setDragInitiator):
  46529. See above
  46530. * page/Page.cpp:
  46531. (WebCore::Page::Page):
  46532. Update Page to have DragController
  46533. * page/Page.h:
  46534. (WebCore::Page::dragController):
  46535. ditto
  46536. * page/mac/DragControllerMac.mm: Added.
  46537. (WebCore::DragController::isCopyKeyDown):
  46538. (WebCore::DragController::dragOperation):
  46539. Platform specific portions of the DragController
  46540. * page/mac/EventHandlerMac.mm:
  46541. (WebCore::EventHandler::handleDrag):
  46542. (WebCore::EventHandler::dragSourceEndedAt):
  46543. Convert from NSDragOperation to WebCore::DragOperation
  46544. * page/mac/WebCoreFrameBridge.h:
  46545. * page/mac/WebCoreFrameBridge.mm:
  46546. Remove obsolete Drag functions
  46547. * page/qt/DragControllerQt.cpp: Added.
  46548. (WebCore::DragController::isCopyKeyDown):
  46549. (WebCore::DragController::dragOperation):
  46550. Basic stubs to maintain Qt build
  46551. * platform/DragData.cpp: Added.
  46552. (WebCore::DragData::DragData):
  46553. * platform/DragData.h: Added.
  46554. (WebCore::DragData::clientPosition):
  46555. (WebCore::DragData::globalPosition):
  46556. (WebCore::DragData::platformData):
  46557. (WebCore::DragData::draggingSourceOperationMask):
  46558. DragData class to encapsulate platform drag data/event
  46559. * platform/graphics/svg/SVGImage.cpp:
  46560. (WebCore::SVGImage::setData):
  46561. Addition of dummy DragClient
  46562. * platform/graphics/svg/SVGImageEmptyClients.h:
  46563. (WebCore::SVGEmptyDragClient::~SVGEmptyDragClient):
  46564. (WebCore::SVGEmptyDragClient::willPerformDragDestinationAction):
  46565. (WebCore::SVGEmptyDragClient::actionMaskForDrag):
  46566. (WebCore::SVGEmptyDragClient::dragControllerDestroyed):
  46567. ditto
  46568. * platform/mac/ClipboardMac.h:
  46569. * platform/mac/ClipboardMac.mm:
  46570. (WebCore::ClipboardMac::ClipboardMac):
  46571. (WebCore::ClipboardMac::clearData):
  46572. (WebCore::ClipboardMac::clearAllData):
  46573. (WebCore::ClipboardMac::getData):
  46574. (WebCore::ClipboardMac::setData):
  46575. (WebCore::ClipboardMac::types):
  46576. (WebCore::ClipboardMac::setDragImage):
  46577. Moving platform independent logic to Clipboard, and updating
  46578. platform specific methods to use appropriate accessors rather than
  46579. directly manipulating data they no longer own
  46580. * platform/mac/DragDataMac.mm: Added.
  46581. (WebCore::DragData::DragData):
  46582. (WebCore::DragData::canSmartReplace):
  46583. (WebCore::DragData::containsColor):
  46584. (WebCore::DragData::containsPlainText):
  46585. (WebCore::DragData::asPlainText):
  46586. (WebCore::DragData::asColor):
  46587. (WebCore::DragData::createClipboard):
  46588. (WebCore::imageExistsAtPaths):
  46589. (WebCore::DragData::containsCompatibleContent):
  46590. (WebCore::DragData::containsURL):
  46591. (WebCore::DragData::asURL):
  46592. (WebCore::DragData::asFragment):
  46593. Mac implementations of DragData methods. A number of these use
  46594. a Helper class that accesses WebKit functionality. That functionality
  46595. should be migrated to WebCore in the future.
  46596. * platform/mac/PasteboardHelper.h: Added.
  46597. (WebCore::PasteboardHelper::~PasteboardHelper):
  46598. Temporary, and Mac only, helper class to access WebKit functionality
  46599. from WebCore
  46600. * platform/qt/DragDataQt.cpp: Added.
  46601. (WebCore::DragData::canSmartReplace):
  46602. (WebCore::DragData::containsColor):
  46603. (WebCore::DragData::containsPlainText):
  46604. (WebCore::DragData::asPlainText):
  46605. (WebCore::DragData::asColor):
  46606. (WebCore::DragData::createClipboard):
  46607. (WebCore::DragData::containsCompatibleContent):
  46608. (WebCore::DragData::containsURL):
  46609. (WebCore::DragData::asURL):
  46610. (WebCore::DragData::asFragment):
  46611. Basic stubs to maintain Qt build
  46612. * rendering/HitTestResult.cpp:
  46613. (WebCore::HitTestResult::HitTestResult):
  46614. Correct HitTestResult copy contructor to copy localPoint
  46615. 2007-01-22 Mark Rowe <mrowe@apple.com>
  46616. Reviewed by Maciej.
  46617. http://bugs.webkit.org/show_bug.cgi?id=11692
  46618. Bug 11692: REGRESSION(r17352): Disappearing page title
  46619. * dom/Document.cpp:
  46620. (WebCore::Document::setTitle): If the title has already been set explicitly via JavaScript,
  46621. ignore any changes to it due to encountering <title> tags.
  46622. 2007-01-22 Mitz Pettel <mitz@webkit.org>
  46623. Reviewed by Darin.
  46624. - fix http://bugs.webkit.org/show_bug.cgi?id=12344
  46625. NativeListBox: item hit testing does not account for top padding and border
  46626. Test: fast/forms/listbox-selection-2.html
  46627. * rendering/RenderListBox.cpp:
  46628. (WebCore::RenderListBox::numVisibleItems): Changed height() to contentHeight()
  46629. since items are visible only in the content box.
  46630. (WebCore::RenderListBox::listIndexAtOffset): Adjusted for vertical padding and
  46631. borders. Changed to return -1 instead of the last item's index if the given offset
  46632. is below the last item.
  46633. (WebCore::RenderListBox::autoscroll): Adjusted for vertical padding and borders.
  46634. (WebCore::RenderListBox::controlClipRect): Changed to return the content box since
  46635. items should not spill into the padding box. This change is the reason the test
  46636. generates pixel results.
  46637. 2007-01-22 Justin Garcia <justin.garcia@apple.com>
  46638. Reviewed by darin
  46639. <rdar://problem/4944770>
  46640. editing/pasteboard/4641033 layout test is broken (12328)
  46641. This layout test failure demonstrates three bugs:
  46642. Smart replace shouldn't be turned on, but is because a word
  46643. selection granularity from the previous test isn't cleared.
  46644. Smart replace shouldn't add any spaces because the paste is performed
  46645. in an empty paragraph.
  46646. Smart replace spaces are added to the text of options inside
  46647. the select element instead of before/after the select element.
  46648. This patch fixes the second two problems. During a
  46649. ReplaceSelectionCommand, the VisiblePosition for the end of
  46650. the inserted content is the last position in the last leaf
  46651. inserted. This is a problem when the last leaf is inside a
  46652. select element, since VP creation is inconsistent there.
  46653. Second, smart spaces were inserted inside the last leaf, not
  46654. at the endOfInsertedContent.
  46655. * editing/ReplaceSelectionCommand.cpp:
  46656. (WebCore::ReplaceSelectionCommand::shouldMergeStart): Renamed
  46657. m_lastNodeInserted to m_lastLeafInserted. Use the
  46658. start/endOfInsertedContent getters.
  46659. (WebCore::ReplaceSelectionCommand::shouldMergeEnd): Ditto.
  46660. (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Ditto.
  46661. (WebCore::ReplaceSelectionCommand::removeRedundantStyles): Ditto.
  46662. (WebCore::ReplaceSelectionCommand::positionAtEndOfInsertedContent): Added.
  46663. Special case for when the last leaf inserted is inside a select
  46664. element: return the VisiblePosition after the select element.
  46665. (WebCore::ReplaceSelectionCommand::positionAtStartOfInsertedContent): Added.
  46666. (WebCore::ReplaceSelectionCommand::doApply): Did renaming. Used
  46667. the start/endOfInsertedContent getters. Insert smart replace spaces
  46668. into the right nodes.
  46669. (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR): Renaming.
  46670. (WebCore::ReplaceSelectionCommand::completeHTMLReplacement): Ditto.
  46671. (WebCore::ReplaceSelectionCommand::updateNodesInserted): Ditto.
  46672. * editing/ReplaceSelectionCommand.h:
  46673. 2007-01-22 Darin Adler <darin@apple.com>
  46674. Reviewed by Adam.
  46675. - fix http://bugs.webkit.org/show_bug.cgi?id=12273
  46676. REGRESSION: File input value invisible after removing and re-appending
  46677. - made more of the file chooser code cross-platform
  46678. - fixed an Objective-C garbage collection problem in FileChooser
  46679. - tried to remove layering violations where FileChooser in the platform
  46680. directory knows about the rendering and DOM trees (but wasn't able to
  46681. do it entirely)
  46682. * platform/FileChooser.cpp: Added.
  46683. (WebCore::FileChooser::create): Changed parameters.
  46684. (WebCore::FileChooser::chooseFile): Changed to call chooseIcon function.
  46685. (WebCore::FileChooser::chooseIcon): Added.
  46686. * platform/FileChooser.h: Added FileChooserClient so this file doesn't have
  46687. to know about RenderFileUploadControl. Used RetainPtr instead of retain/release
  46688. so this works properly with Objective-C GC. Replaced disconnectUploadControl
  46689. with disconnectClient, which has a simple inline implementation. Moved the
  46690. Document parameter from the constructor to openFileChooser, along with a comment
  46691. about why it should not be there. Added a filename parameter to the constructor
  46692. for the initial filename. Added a font parameter to basenameForWidth so we don't
  46693. depend on having a pointer to the renderer. Removed the uploadControl() and
  46694. document() functions since no one calls either of them.
  46695. * platform/mac/FileChooserMac.mm: Removed code that is now cross-platform.
  46696. (-[OpenPanelController beginSheetWithFrame:]): Added frame parameter, instead
  46697. of storing a document pointer in the FileChooser.
  46698. (WebCore::FileChooser::FileChooser): Updated for changed parameters. Also added
  46699. code to choose the icon based on the initial filename. Pass the adopt parameter
  46700. to the constructor of the RetainPtr.
  46701. (WebCore::FileChooser::~FileChooser): Removed the release call, since the
  46702. RetainPtr will take care of it. Added a call to disconnectFileChooser here.
  46703. There's no need to disconnect at disconnectClient time, and that lets us have
  46704. one more cross-platform function.
  46705. (WebCore::FileChooser::openFileChooser): Added document parameter. Added code
  46706. to get the frame from the document. And added a nil check since there's no
  46707. ironclad guarantee the document won't have outlived its frame.
  46708. (WebCore::FileChooser::basenameForWidth): Added font parameter. Use that instead
  46709. of going at the upload control's style. The caller can handle that now.
  46710. * rendering/RenderFileUploadControl.h: Removed unnecessary includes.
  46711. Made class inherit privately from FileChooserClient. Changed constructor
  46712. parameter to HTMLInputElement rather than Node. Made protected members be
  46713. private instead, and made a couple function members const.
  46714. * rendering/RenderFileUploadControl.cpp: Moved constants to the top of the file,
  46715. but after the "using namespace"
  46716. (WebCore::RenderFileUploadControl::RenderFileUploadControl): Updated for changes
  46717. to the FileChooser::create function and the parameter types.
  46718. (WebCore::RenderFileUploadControl::~RenderFileUploadControl): Removed unneeded
  46719. null check -- there's no case where the FileChooser fails to be created.
  46720. (WebCore::RenderFileUploadControl::click): Pass document to openFileChooser.
  46721. (WebCore::RenderFileUploadControl::updateFromElement): Tweaked code a bit by
  46722. using updateFromElement and setValue instead of casting the renderer to a
  46723. RenderButton and calling setText directly. Put setInputType call here.
  46724. (WebCore::RenderFileUploadControl::maxFilenameWidth): Made const. Broke long line.
  46725. (WebCore::RenderFileUploadControl::createButtonStyle): Made const.
  46726. (WebCore::RenderFileUploadControl::paintObject): Moved buttonShadowHeight constant
  46727. to the top of the file. Call isEmpty instead of checking width and height of
  46728. IntRect for 0. Computed font to pass to FileChooser::basenameForWidth. Broke
  46729. long lines.
  46730. (WebCore::HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement):
  46731. Moved the setInputType call to the caller; concept here is that this class is
  46732. as simple as possible, rather than doing as much of the button job as possible.
  46733. * WebCore.xcodeproj/project.pbxproj: Added FileChooser.cpp.
  46734. * WebCore.pro: Ditto.
  46735. * CMakeLists.txt: Ditto.
  46736. * WebCoreSources.bkl: Ditto.
  46737. * platform/gdk/TemporaryLinkStubs.cpp: Updated stubs.
  46738. * platform/qt/FileChooserQt.cpp: Updated stubs.
  46739. 2007-01-22 Mitz Pettel <mitz@webkit.org>
  46740. Reviewed by Darin.
  46741. - fix http://bugs.webkit.org/show_bug.cgi?id=12364
  46742. REGRESSSION (NativeListBox): Selected option's background is not clipped to the list box
  46743. Test: fast/forms/select-item-background-clip.html
  46744. * rendering/RenderListBox.cpp:
  46745. (WebCore::RenderListBox::paintItemBackground): Intersect the item's rect with
  46746. the list box's clip rect.
  46747. 2007-01-22 Darin Adler <darin@apple.com>
  46748. Reviewed by Beth.
  46749. - fix http://bugs.webkit.org/show_bug.cgi?id=12369
  46750. REGRESSION (r19027): amazon.com home page crashes WebKit r19028 debug build
  46751. I caused this a few hours ago. Oops!
  46752. * rendering/RenderText.cpp: (WebCore::RenderText::setStyle):
  46753. Compute whether the font changed before calling RenderObject::setStyle.
  46754. 2007-01-22 Beth Dakin <bdakin@apple.com>
  46755. Reviewed by Maciej.
  46756. Fix for <rdar://problem/4912129> REGRESSION: Crash occurs at
  46757. WebCore::Frame::eventHandler() after clicking to dismiss a
  46758. contextual menu on the page
  46759. * page/EventHandler.cpp:
  46760. (WebCore::EventHandler::stopAutoscrollTimer): Added nil-check.
  46761. 2007-01-22 Darin Adler <darin@apple.com>
  46762. Reviewed by Mitz.
  46763. Inspired by a much simpler patch by Andrew Wellington <proton@wiretapped.net>.
  46764. - fix http://bugs.webkit.org/show_bug.cgi?id=11197
  46765. REGRESSION: Specifying a counter for a CODE tag's content style property
  46766. on before or after causes a crash.
  46767. Test: fast/css/beforeSelectorOnCodeElement.html
  46768. - fix regression I recently introduced where the monospace cache could be
  46769. used for text that was not ASCII, if text was changed after the style was set
  46770. Test: fast/text/monospace-width-cache.html
  46771. - streamline RenderText.h -- remove unneeded functions, make some needlessly
  46772. virtual functions non-virtual, remove unneeded header includes, replace use
  46773. of Font* with Font& for consistency with RenderStyle, use "text" consistently
  46774. instead of "string"
  46775. * rendering/RenderText.h: Removed unneeded include of "Text.h", declarations of
  46776. SOFT_HYPHEN, DocumentMarker, InlineBox, Position, String. Got rid of friend
  46777. declaration for InlineTextBox. Changed constructor to take a PassRefPtr since
  46778. we do take owership of the passed-in text. Made deleteTextBoxes() private.
  46779. Removed unneeded data(). Made override of length() private so people will use
  46780. the faster textLength() instead. Renamed string() to text() so it matches up
  46781. better with setText(). Same for stringLength(), originalString(), and
  46782. setInternalString(), which are now textLength(), originalText(), and
  46783. setTextInternal(). Renamed the old text() function to characters(), since it
  46784. returns a pointer as StringImpl::characters does. Changed Font* to Font& everywhere.
  46785. Renamed the internal calcMinMaxWidth() function to calcMinMaxWidthInternal() and
  46786. made it non-virtual since it's not overriden anywhere. Also made the
  46787. trimmedMinMaxWidth() function non-virtual. Made containsOnlyWhitespace() private.
  46788. Removed both font() functions (one was needlessly virtual) and element().
  46789. Renamed cacheWidths() to updateMonospaceCharacterWidth() and removed the
  46790. shouldUseMonospaceCache() function. Renamed allAscii() to isAllASCII() and made
  46791. it an inline function. Removed the m_allAsciiChecked flag and renamed the
  46792. m_allAscii flag to m_isAllASCII.
  46793. * rendering/RenderText.cpp:
  46794. (WebCore::RenderText::RenderText): Removed initialization of m_allAsciiChecked.
  46795. Initialize m_isAllASCII. Changed all occurrences of m_str->length() and
  46796. m_str->characters () to use the stringLength() and characters() inline functions
  46797. instead.
  46798. (WebCore::RenderText::setStyle): Replaced the unconditional call to cacheWidths
  46799. with a conditional call to updateMonospaceCharacterWidth. This speeds up the common
  46800. case where style is changed without changing the font.
  46801. (WebCore::RenderText::originalText): Changed code to not depend on overridden
  46802. element() function with casts to a Text node -- this was one of only two call sites.
  46803. Also renamed.
  46804. (WebCore::RenderText::positionForCoordinates): Name change.
  46805. (WebCore::RenderText::caretRect): Ditto.
  46806. (WebCore::RenderText::updateMonospaceCharacterWidth): Renamed from cacheWidths and
  46807. incorporate the check that was formerly in a separate shouldUseMonospaceCache
  46808. function.
  46809. (WebCore::RenderText::widthFromCache): Changed to take a Font& instead of Font*.
  46810. Changed to take advantage of the fact that the string is known to be all ASCII in
  46811. the m_monospaceCharacterWidth code path.
  46812. (WebCore::RenderText::trimmedMinMaxWidth): Ditto. Also use style()->font() instead
  46813. of font(false).
  46814. (WebCore::RenderText::calcMinMaxWidth): Ditto. Also changed to use softHyphen instead
  46815. of SOFT_HYPHEN.
  46816. (WebCore::RenderText::containsOnlyWhitespace): More of the same.
  46817. (WebCore::RenderText::setSelectionState): Ditto.
  46818. (WebCore::RenderText::setTextWithOffset): Ditto.
  46819. (WebCore::isInlineFlowOrEmptyText): Ditto.
  46820. (WebCore::RenderText::setTextInternal): Updated for name changes. Also changed to
  46821. set the m_isAllASCII flag every time, in the more-efficient way we use elsewhere
  46822. (or'ing all the characters together), and to call updateMonospaceCharacterWidth
  46823. if the "all ASCII"-ness of the text changes.
  46824. (WebCore::RenderText::setText): Updated for name changes.
  46825. (WebCore::RenderText::width): More like above.
  46826. (WebCore::RenderText::selectionRect): Ditto.
  46827. (WebCore::RenderText::caretMaxOffset): Ditto.
  46828. (WebCore::RenderText::previousOffset): Ditto.
  46829. (WebCore::RenderText::nextOffset): Ditto.
  46830. * dom/Position.cpp:
  46831. * dom/Range.cpp:
  46832. * editing/CompositeEditCommand.cpp:
  46833. * editing/DeleteSelectionCommand.cpp:
  46834. * editing/VisiblePosition.cpp:
  46835. * html/HTMLElement.cpp:
  46836. Added now-needed include of "Text.h" which is no longer included by "RenderText.h".
  46837. * editing/SelectionController.cpp:
  46838. (WebCore::SelectionController::debugRenderer):
  46839. * editing/TextIterator.cpp:
  46840. (WebCore::TextIterator::handleTextNode):
  46841. (WebCore::TextIterator::handleTextBox):
  46842. (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
  46843. Update for name changes of stringLength(), string(), and originalString() to
  46844. textLength(), text(), and originalText(), and to always use textLength() instead
  46845. of length() when we have a RenderText* rather than a RenderObject*.
  46846. * editing/visible_units.cpp:
  46847. (WebCore::startOfParagraph): Ditto.
  46848. (WebCore::endOfParagraph): Ditto.
  46849. * rendering/InlineFlowBox.cpp:
  46850. (WebCore::InlineFlowBox::placeBoxesHorizontally): Ditto. Also removed use of the
  46851. RenderObject::font() function and replaced it with explicit access to the style.
  46852. (WebCore::InlineFlowBox::placeBoxesVertically): Ditto.
  46853. * rendering/InlineTextBox.cpp:
  46854. (WebCore::InlineTextBox::selectionRect): Ditto.
  46855. (WebCore::InlineTextBox::isLineBreak): Ditto.
  46856. (WebCore::InlineTextBox::paint): Ditto.
  46857. (WebCore::InlineTextBox::selectionStartEnd): Ditto.
  46858. (WebCore::InlineTextBox::paintSelection): Ditto.
  46859. (WebCore::InlineTextBox::paintMarkedTextBackground): Ditto.
  46860. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker): Ditto.
  46861. (WebCore::InlineTextBox::paintTextMatchMarker): Ditto.
  46862. (WebCore::InlineTextBox::offsetForPosition): Ditto.
  46863. (WebCore::InlineTextBox::positionForOffset): Ditto.
  46864. * rendering/RenderContainer.cpp:
  46865. (WebCore::RenderContainer::addChild): Ditto.
  46866. * rendering/RenderCounter.cpp:
  46867. (WebCore::RenderCounter::originalText): Ditto.
  46868. (WebCore::RenderCounter::calcMinMaxWidth): Ditto.
  46869. * rendering/RenderCounter.h: Ditto.
  46870. * rendering/RenderTextFragment.cpp:
  46871. (WebCore::RenderTextFragment::originalText): Ditto.
  46872. * rendering/RenderTextFragment.h: Ditto.
  46873. * rendering/SVGInlineFlowBox.cpp:
  46874. (WebCore::placePositionedBoxesHorizontally): Ditto.
  46875. (WebCore::placeBoxesVerticallyWithAbsBaseline): Ditto.
  46876. * rendering/bidi.cpp:
  46877. (WebCore::BidiIterator::increment): Ditto.
  46878. (WebCore::BidiIterator::current): Ditto.
  46879. (WebCore::BidiIterator::direction): Ditto.
  46880. (WebCore::addRun): Ditto.
  46881. (WebCore::checkMidpoints): Ditto.
  46882. (WebCore::RenderBlock::computeHorizontalPositionsForLine): Ditto.
  46883. (WebCore::RenderBlock::skipWhitespace): Ditto.
  46884. (WebCore::RenderBlock::findNextLineBreak): Ditto.
  46885. * rendering/RenderBR.h: Updated signature of width function which now takes a
  46886. Font& instead of a Font*.
  46887. * rendering/RenderBlock.cpp: (WebCore::stripTrailingSpace): Updated to no longer
  46888. use the RenderObject::font() function, and added a comment about first-line, which
  46889. is not handled properly here.
  46890. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::text):
  46891. * rendering/RenderTreeAsText.cpp: (WebCore::writeTextRun):
  46892. Eliminated use of RenderText::data().
  46893. * rendering/RenderObject.h: Removed RenderObject::font(). This had the bad effect of
  46894. having everyone pass in a boolean rather than using the cleaner style() and
  46895. firstLineStyle() functions in cases where there's no a firstLineStyle boolean.
  46896. * rendering/RenderObject.cpp:
  46897. (WebCore::RenderObject::getVerticalPosition): Replaced use of RenderObject::font()
  46898. with direct use of the style instead, which is arguably easier to understand anyway.
  46899. (WebCore::RenderObject::baselinePosition): Ditto.
  46900. 2007-01-22 Sam Weinig <sam@webkit.org>
  46901. Reviewed by The Mitz.
  46902. Move JSHTMLSelectElementCustom.cpp from bindings to bindings/js
  46903. where it belongs.
  46904. * WebCore.pro:
  46905. * WebCore.xcodeproj/project.pbxproj:
  46906. * bindings/JSHTMLSelectElementCustom.cpp: Removed.
  46907. * bindings/js/JSHTMLSelectElementCustom.cpp: Added.
  46908. 2007-01-22 Zack Rusin <zack@kde.org>
  46909. Fix the Qt build.
  46910. * WebCore.pro: adjust after last changes
  46911. 2007-01-21 Alexey Proskuryakov <ap@webkit.org>
  46912. Reviewed by Darin.
  46913. http://bugs.webkit.org/show_bug.cgi?id=10934
  46914. REGRESSION: prototype.js logs error (HTMLFormElement) on webkit builds
  46915. Added constructors for most HTML elements; started auto-generating HTMLSelectElement JS binding.
  46916. Test: fast/dom/Window/element-constructors-on-window.html
  46917. * DerivedSources.make: Generate JSHTMLSelectElement.
  46918. * WebCore.xcodeproj/project.pbxproj: Added JSHTMLSelectElement{Custom}.
  46919. * bindings/js/JSHTMLElementWrapperFactory.cpp: Create a proper binding for SELECT.
  46920. * bindings/js/kjs_html.cpp:
  46921. (KJS::):
  46922. (KJS::JSHTMLElement::classInfo):
  46923. (KJS::JSHTMLElement::accessors):
  46924. (KJS::JSHTMLElement::getOwnPropertySlot):
  46925. (KJS::HTMLElementFunction::callAsFunction):
  46926. (KJS::JSHTMLElement::put):
  46927. * bindings/js/kjs_html.h:
  46928. (KJS::JSHTMLElement::):
  46929. Removed everything related to SELECT. Renamed getHTMLOptionsCollection to toJS for autogenerated code
  46930. to be happy, and rewrote it using cacheDOMObject.
  46931. * bindings/scripts/CodeGeneratorJS.pm: Added HTMLElement to the list of types that cannot fail conversion.
  46932. * html/HTMLAnchorElement.idl:
  46933. * html/HTMLAppletElement.idl:
  46934. * html/HTMLAreaElement.idl:
  46935. * html/HTMLBRElement.idl:
  46936. * html/HTMLBaseElement.idl:
  46937. * html/HTMLBaseFontElement.idl:
  46938. * html/HTMLBodyElement.idl:
  46939. * html/HTMLButtonElement.idl:
  46940. * html/HTMLCanvasElement.idl:
  46941. * html/HTMLDListElement.idl:
  46942. * html/HTMLDirectoryElement.idl:
  46943. * html/HTMLDivElement.idl:
  46944. * html/HTMLFieldSetElement.idl:
  46945. * html/HTMLFontElement.idl:
  46946. * html/HTMLFormElement.idl:
  46947. * html/HTMLHRElement.idl:
  46948. * html/HTMLHeadElement.idl:
  46949. * html/HTMLHeadingElement.idl:
  46950. * html/HTMLHtmlElement.idl:
  46951. * html/HTMLImageElement.idl:
  46952. * html/HTMLInputElement.idl:
  46953. * html/HTMLIsIndexElement.idl:
  46954. * html/HTMLLIElement.idl:
  46955. * html/HTMLLabelElement.idl:
  46956. * html/HTMLLegendElement.idl:
  46957. * html/HTMLLinkElement.idl:
  46958. * html/HTMLMapElement.idl:
  46959. * html/HTMLMenuElement.idl:
  46960. * html/HTMLMetaElement.idl:
  46961. * html/HTMLModElement.idl:
  46962. * html/HTMLOListElement.idl:
  46963. * html/HTMLOptGroupElement.idl:
  46964. * html/HTMLParagraphElement.idl:
  46965. * html/HTMLParamElement.idl:
  46966. * html/HTMLPreElement.idl:
  46967. * html/HTMLQuoteElement.idl:
  46968. * html/HTMLScriptElement.idl:
  46969. * html/HTMLStyleElement.idl:
  46970. * html/HTMLTextAreaElement.idl:
  46971. * html/HTMLTitleElement.idl:
  46972. * html/HTMLUListElement.idl:
  46973. Generate constructors.
  46974. * html/HTMLSelectElement.cpp:
  46975. (WebCore::HTMLSelectElement::length):
  46976. * html/HTMLSelectElement.h:
  46977. Make length() return unsigned for auto-generated code to be happy.
  46978. * html/HTMLSelectElement.idl: Adjusted to be usable for JS.
  46979. * bindings/JSHTMLSelectElementCustom.cpp: Added. Implements remove().
  46980. * page/DOMWindow.idl:
  46981. Added properties for most elements' constructors.
  46982. 2007-01-21 Mark Rowe <mrowe@apple.com>
  46983. Reviewed by Maciej.
  46984. http://bugs.webkit.org/show_bug.cgi?id=12357
  46985. Bug 12357: Reproducible crash in WebCore::Settings::isJavaScriptEnabled in svg/custom/js-update-bounce.svg under guard-malloc
  46986. * page/Frame.cpp:
  46987. (WebCore::Frame::~Frame): Access the global object directly rather than via Window::retrieveWindow to prevent our reference to
  46988. a deleted settings object being used.
  46989. 2007-01-21 Darin Adler <darin@apple.com>
  46990. Reviewed by Maciej.
  46991. - fix <rdar://problem/4930503> REGRESSION: Page changes title when
  46992. command-clicking on named anchor link (12299)
  46993. * loader/FrameLoader.cpp:
  46994. (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
  46995. Return if shouldContinue is false. This matches the other similar
  46996. functions and prevents us from doing extra work in the "ignore" case.
  46997. 2007-01-21 Mark Rowe <mrowe@apple.com>
  46998. Reviewed by Darin.
  46999. http://bugs.webkit.org/show_bug.cgi?id=12355
  47000. Bug 12355: Reproducible crash in WebCore::parseNumber in svg/custom/js-update-bounce.svg under guard-malloc
  47001. * ksvg2/svg/SVGParserUtilities.cpp:
  47002. (WebCore::parseNumber): Parenthesize to prevent reading past end of buffer.
  47003. 2007-01-21 Mitz Pettel <mitz@webkit.org>
  47004. Reviewed by Darin.
  47005. - fix http://bugs.webkit.org/show_bug.cgi?id=12345
  47006. REGRESSION: Disabled pop-up text is not grayed out
  47007. Test: fast/forms/select-disabled-appearance.html
  47008. * rendering/RenderThemeMac.mm:
  47009. (WebCore::RenderThemeMac::adjustMenuListStyle):
  47010. 2007-01-21 Darin Adler <darin@apple.com>
  47011. - fix non-Mac builds
  47012. * CMakeLists.txt: Added JSDocumentCustom.cpp.
  47013. * WebCore.pro: Ditto.
  47014. * WebCoreSources.bkl: Ditto.
  47015. 2007-01-21 Mitz Pettel <mitz@webkit.org>
  47016. Reviewed by Darin.
  47017. - fix http://bugs.webkit.org/show_bug.cgi?id=12353 <rdar://problem/4944599>
  47018. REGRESSION: Crash on load (mutation event dispatch under the image element constructor deletes the element)
  47019. Test: fast/dom/HTMLImageElement/constructor-mutation-event-dispatch.html
  47020. * bindings/js/kjs_html.cpp:
  47021. (KJS::ImageConstructorImp::construct): Protect the image element before setting
  47022. its attributes.
  47023. 2007-01-21 Sam Weinig <sam@webkit.org>
  47024. Rolling out patch for http://bugs.webkit.org/show_bug.cgi?id=8360.
  47025. * rendering/RenderLayer.cpp:
  47026. (WebCore::RenderLayer::RenderLayer):
  47027. (WebCore::RenderLayer::scrollToOffset):
  47028. (WebCore::RenderLayer::scrollRectToVisible):
  47029. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  47030. (WebCore::Marquee::start):
  47031. * rendering/RenderLayer.h:
  47032. 2007-01-21 David Kilzer <ddkilzer@webkit.org>
  47033. Reviewed by Darin.
  47034. - fix http://bugs.webkit.org/show_bug.cgi?id=12280
  47035. select element not available by name through document.all
  47036. (dropdown list not available on smarthome.com checkout)
  47037. Test: fast/dom/document-all-select.html
  47038. * html/HTMLCollection.cpp:
  47039. (WebCore::HTMLCollection::checkForNameMatch):
  47040. (WebCore::HTMLCollection::updateNameCache):
  47041. 2007-01-21 Mitz Pettel <mitz@webkit.org>
  47042. Reviewed by Darin.
  47043. - http://bugs.webkit.org/show_bug.cgi?id=10805
  47044. REGRESSION (r15720): manual-tests/onblur-remove.html failing
  47045. * manual-tests/onblur-remove.html: Changed the test to not require pressing
  47046. Enter, since the correct behavior for Enter is to send a blur event.
  47047. 2007-01-21 Sanjay Madhav <sanjay12@gmail.com>
  47048. Reviewed by Darin.
  47049. Fix for: <rdar://problem/4928583> Memory usage grows when reloading google.com/ig
  47050. JSDocuments are now responsible for marking the DOM wrappers associated with them, when they get marked.
  47051. This fixes a JS object leak when a DOM wrapper has a reference to a JSDocument that is otherwise not reachable.
  47052. Test: fast/dom/gc-10.html
  47053. * WebCore.vcproj/WebCore/WebCore.vcproj:
  47054. * WebCore.xcodeproj/project.pbxproj:
  47055. * bindings/js/JSDocumentCustom.cpp: Added.
  47056. (WebCore::JSDocument::mark):
  47057. * bindings/js/kjs_binding.cpp:
  47058. (KJS::ScriptInterpreter::markDOMNodesForDocument):
  47059. (KJS::ScriptInterpreter::mark):
  47060. * bindings/js/kjs_binding.h:
  47061. * dom/Document.idl:
  47062. 2007-01-21 Mitz Pettel <mitz@webkit.org>
  47063. Reviewed by Darin.
  47064. - fix http://bugs.webkit.org/show_bug.cgi?id=10692
  47065. REGRESSION (r14847): Unnecessary scrollbars with position:relative; and overflow:auto;
  47066. Test: fast/overflow/position-relative.html
  47067. * rendering/RenderBox.cpp:
  47068. (WebCore::RenderBox::lowestPosition): Add the relative position offset only
  47069. if 'includeSelf' is true.
  47070. (WebCore::RenderBox::rightmostPosition): Ditto.
  47071. (WebCore::RenderBox::leftmostPosition): Ditto.
  47072. * rendering/RenderFlow.cpp:
  47073. (WebCore::RenderFlow::lowestPosition): Ditto.
  47074. (WebCore::RenderFlow::rightmostPosition): Ditto.
  47075. (WebCore::RenderFlow::leftmostPosition): Ditto.
  47076. 2007-01-21 Mitz Pettel <mitz@webkit.org>
  47077. Reviewed by Darin.
  47078. - fix http://bugs.webkit.org/show_bug.cgi?id=10472
  47079. REGRESSION: "add" method of <select> object does not put the <option> object in the correct position
  47080. Test: fast/dom/HTMLSelectElement/options-collection-detached.html
  47081. * html/HTMLSelectElement.cpp:
  47082. (WebCore::HTMLSelectElement::setRecalcListItems): Reset the options collection
  47083. info if the <select> is not in the document. For in-document <select>s this
  47084. happens anyway as a result of the DOM tree version increasing.
  47085. 2007-01-21 Mitz Pettel <mitz@webkit.org>
  47086. Reviewed by Darin.
  47087. - fix http://bugs.webkit.org/show_bug.cgi?id=12349
  47088. NativeFileUpload: Button text is not grayed out when the control is disabled
  47089. Covered by fast/forms/file-input-disabled.html
  47090. * css/html4.css: Changed selectors that had pseudo-classes after the -webkit-file-upload-button
  47091. pseudo-element to have the pseudo-element at the end. Pseudo-elements must be at the end.
  47092. * rendering/RenderFileUploadControl.cpp:
  47093. (WebCore::RenderFileUploadControl::createButtonStyle): Changed to not overwrite the button's
  47094. style with its parent's style. getPseudoStyle() handles inheritance properly.
  47095. 2007-01-21 Mitz Pettel <mitz@webkit.org>
  47096. Reviewed by Darin.
  47097. - fix http://bugs.webkit.org/show_bug.cgi?id=12343
  47098. crash in css2.1/t1202-counter-09-b.html
  47099. * platform/Font.cpp:
  47100. (WebCore::Font::glyphDataForCharacter):
  47101. 2007-01-21 Darin Adler <darin@apple.com>
  47102. Reviewed by Adam and Mitz.
  47103. - fix http://bugs.webkit.org/show_bug.cgi?id=12347
  47104. REGRESSION: list box scrolling broken (fast/forms/listbox-selection.html)
  47105. Covered by existing test: fast/forms/listbox-selection.html
  47106. * rendering/RenderListBox.h: Added override of layout(), made selectionChanged()
  47107. no longer an inline. Added private scrollToRevealSelection(),
  47108. m_scrollToRevealSelectionAfterLayout, and m_inAutoscroll.
  47109. * rendering/RenderListBox.cpp:
  47110. (WebCore::RenderListBox::RenderListBox): Initialize new data members.
  47111. (WebCore::RenderListBox::updateFromElement): Remove scrolling code.
  47112. (WebCore::RenderListBox::selectionChanged): Moved from header. Calls repaint
  47113. and then scrollToRevealSelection, but if we need layout, instead schedules
  47114. scrollToRevealSelection to be done after layout.
  47115. (WebCore::RenderListBox::layout): Added. After calling base class, calls
  47116. scrollToRevealSelection if the m_scrollToRevealSelectionAfterLayout is set.
  47117. (WebCore::RenderListBox::scrollToRevealSelection): Added. Code was originally
  47118. in updateFromElement.
  47119. (WebCore::RenderListBox::autoscroll): Set m_inAutoscroll so that the
  47120. selectionChanged function knows not to scroll. Also removed the repaint()
  47121. here because updateListBoxSelection() takes care of repainting by calling
  47122. selectionChanged().
  47123. 2007-01-21 David Kilzer <ddkilzer@webkit.org>
  47124. * page/EventHandler.cpp:
  47125. (WebCore::EventHandler::handleMouseMoveEvent): Changed #if SVG_SUPPORT to #ifdef SVG_SUPPORT.
  47126. 2007-01-20 Mitz Pettel <mitz@webkit.org>
  47127. Reviewed by Maciej.
  47128. - fix http://bugs.webkit.org/show_bug.cgi?id=11115
  47129. REGRESSION: Crash on Flickr after hitting cancel from adding a note
  47130. Test: fast/forms/text-set-value-crash.html
  47131. * html/HTMLInputElement.cpp:
  47132. (WebCore::HTMLInputElement::setValue): Added a call to Document::updateRendering().
  47133. * html/HTMLTextAreaElement.cpp:
  47134. (WebCore::HTMLTextAreaElement::setValue): Ditto.
  47135. 2007-01-20 Mitz Pettel <mitz@webkit.org>
  47136. Reviewed by Darin.
  47137. - fix http://bugs.webkit.org/show_bug.cgi?id=8360
  47138. Repro crash when onscroll handler deletes the scrolled object
  47139. Test: fast/layers/removed-by-scroll-handler.html
  47140. * rendering/RenderLayer.cpp:
  47141. (WebCore::RenderLayer::RenderLayer):
  47142. (WebCore::RenderLayer::dispatchScrollEvent): Added. Called when the timer
  47143. fires and dispatches the scroll event to the layer's element.
  47144. (WebCore::RenderLayer::scrollToOffset): Instead of dispatching the scroll
  47145. event from this function, which is called during layout, schedule a 0-duration
  47146. timer to dispatch the event after layout.
  47147. (WebCore::RenderLayer::scrollRectToVisible):
  47148. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  47149. (WebCore::Marquee::start):
  47150. * rendering/RenderLayer.h:
  47151. 2007-01-20 Nikolas Zimmermann <zimmermann@kde.org>
  47152. Reviewed by Sam.
  47153. Fix JS bindings for SVGAnimated{Boolean, Enumeration, Integer, Number, String}.
  47154. Dynamic SVG DOM updates (ie. "someUse.href.baseVal = '#rect'") with these types
  47155. didn't work. Existing gradient updating examples relied on calling setAttribute
  47156. after a SVG DOM update - that was the only reason it worked, added a new test
  47157. only using SVG DOM updates (js-update-stop.svg).
  47158. Added test: js-update-stop.svg
  47159. Added test: use-property-changes-through-dom.svg (change xlink:href, x/y attributes using setAttribute)
  47160. Added test: use-property-changes-through-svg-dom.svg (change xlink:href, x/y attributes using SVG DOM)
  47161. * bindings/js/JSSVGPODTypeWrapper.h:
  47162. (WebCore::JSSVGPODTypeWrapper::commitChange):
  47163. (WebCore::JSSVGPODTypeWrapperCreator::commitChange):
  47164. (WebCore::JSSVGPODTypeWrapperCreatorForList::commitChange):
  47165. * bindings/js/JSSVGPathSegListCustom.cpp:
  47166. (WebCore::updatePathSegContextMap):
  47167. (WebCore::removeFromPathSegContextMap):
  47168. * bindings/scripts/CodeGeneratorJS.pm:
  47169. * ksvg2/misc/SVGDocumentExtensions.h:
  47170. (WebCore::SVGDocumentExtensions::baseValueMap):
  47171. (WebCore::SVGDocumentExtensions::genericContextMap):
  47172. (WebCore::SVGDocumentExtensions::baseValue):
  47173. (WebCore::SVGDocumentExtensions::setBaseValue):
  47174. (WebCore::SVGDocumentExtensions::removeBaseValue):
  47175. (WebCore::SVGDocumentExtensions::hasBaseValue):
  47176. (WebCore::SVGDocumentExtensions::genericContext):
  47177. (WebCore::SVGDocumentExtensions::setGenericContext):
  47178. (WebCore::SVGDocumentExtensions::removeGenericContext):
  47179. (WebCore::SVGDocumentExtensions::hasGenericContext):
  47180. (WebCore::String):
  47181. (WebCore::FloatRect):
  47182. (WebCore::bool):
  47183. (WebCore::double):
  47184. * ksvg2/svg/SVGClipPathElement.h:
  47185. * ksvg2/svg/SVGElement.h:
  47186. (WebCore::SVGElement::notifyAttributeChange):
  47187. * ksvg2/svg/SVGPathSegList.cpp:
  47188. (WebCore::SVGPathSegList::SVGPathSegList):
  47189. (WebCore::SVGPathSegList::context):
  47190. * ksvg2/svg/SVGPathSegList.h:
  47191. * ksvg2/svg/SVGPatternElement.h:
  47192. * ksvg2/svg/SVGPointList.cpp:
  47193. (SVGPointList::SVGPointList):
  47194. (SVGPointList::context):
  47195. * ksvg2/svg/SVGPointList.h:
  47196. * ksvg2/svg/SVGStopElement.cpp:
  47197. (WebCore::SVGStopElement::parseMappedAttribute):
  47198. (WebCore::SVGStopElement::notifyAttributeChange):
  47199. * ksvg2/svg/SVGStopElement.h:
  47200. * ksvg2/svg/SVGUseElement.cpp:
  47201. (WebCore::SVGUseElement::notifyAttributeChange):
  47202. 2007-01-20 Rob Buis <buis@kde.org>
  47203. Reviewed by Sam.
  47204. http://bugs.webkit.org/show_bug.cgi?id=12334
  47205. Respect <text> boundaries for svg text selecting
  47206. Make sure the text selection for svg stays inside
  47207. containing blocks.
  47208. Added one manual test since html selection does not
  47209. seem to work for SVG and selectSubString for SVG
  47210. is not implemented yet.
  47211. * manual-tests/svg-text-selection.svg: Added.
  47212. * page/EventHandler.cpp:
  47213. (WebCore::EventHandler::handleMouseMoveEvent):
  47214. * rendering/RenderObject.h:
  47215. (WebCore::RenderObject::isSVGText):
  47216. * rendering/RenderSVGInlineText.h:
  47217. (WebCore::RenderSVGInlineText::isSVGText):
  47218. * rendering/RenderSVGText.h:
  47219. (WebCore::RenderSVGText::isSVGText):
  47220. 2007-01-19 Adele Peterson <adele@apple.com>
  47221. Reviewed by Hyatt.
  47222. Fix for: <rdar://problem/4697438> REGRESSION: select menu lists match the wrong css rule on www.chainreaction.com
  47223. Update the size attribute value for select elements to match the numeric value. This is a special case since this
  47224. attribute is used to determine which control to use. We want to make sure that the size attribute is valid when we match
  47225. CSS rules.
  47226. Test: fast/forms/select-size.html
  47227. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::parseMappedAttribute): If the attribute string value is not the
  47228. same as its integer value, then update the attribute value to match the integer.
  47229. * dom/Attribute.h: Made setValue and setPrefix public.
  47230. 2007-01-19 John Sullivan <sullivan@apple.com>
  47231. Reviewed by Darin
  47232. - WebCore part of fix for: <rdar://problem/4451715> REGRESSION: On some sites, have to
  47233. type a character before username/password autofill kicks in
  47234. * loader/FrameLoaderClient.h:
  47235. new dispatchDidFinishDocumentLoad call
  47236. * loader/FrameLoader.cpp:
  47237. (WebCore::FrameLoader::finishedParsing):
  47238. call dispatchDidFinishDocumentLoad
  47239. * platform/graphics/svg/SVGImageEmptyClients.h:
  47240. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFinishDocumentLoad):
  47241. empty implementation for dispatchDidFinishDocumentLoad
  47242. 2007-01-19 Adele Peterson <adele@apple.com>
  47243. Reviewed by Hyatt.
  47244. Fix for <rdar://problem/4760280> REGRESSION: Bottom portion of text hangs off edge of SELECT element at http://macreviewzone.com/index.php
  47245. Test: fast/forms/control-restrict-line-height.html
  47246. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::setFontFromControlSize): Don't honor line-height for controls that
  47247. have restricted font size.
  47248. 2007-01-19 Darin Adler <darin@apple.com>
  47249. Reviewed by Adele.
  47250. - fix http://bugs.webkit.org/show_bug.cgi?id=11999
  47251. <rdar://problem/4940442> REGRESSION: Incomplete listing in TVListings window (11999)
  47252. Fix was to use the actual size of the renderer in the RenderListBox
  47253. case, instead of always using the size specified by the select element.
  47254. Test: fast/forms/select-list-box-with-height.html
  47255. - fix http://bugs.webkit.org/show_bug.cgi?id=11995
  47256. <rdar://problem/4901834> REGRESSION(NativeListBox): Focus is not placed on
  47257. SELECT after mousing down on OPTION
  47258. Test: fast/forms/select-list-box-mouse-focus.html
  47259. - fix bug where auto-scrolling was not working in list box select elements
  47260. No test yet.
  47261. - fix a missing semicolon in the radio/checkbox section of html4.css
  47262. Test: fast/forms/radio-no-theme-padding.html
  47263. - fix bug where the scroll bars for select elements were pixel-type scroll
  47264. bars even though the scrolling is line at a time scrolling
  47265. No test.
  47266. * html/HTMLSelectElement.cpp:
  47267. (WebCore::HTMLSelectElement::selectAll): Removed an explicit call
  47268. to repaint, since the RenderListBox now does that in selectionChanged.
  47269. (WebCore::HTMLSelectElement::notifyOptionSelected): Call the new
  47270. selectionChanged instead of the old setSelectionChanged.
  47271. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Added a call
  47272. to focus. Removed an explicit call to repaint and added a call to the
  47273. new setMouseDownMayStartAutoscroll function in EventHandler. Removed an
  47274. explicit call to repaint as above.
  47275. (WebCore::HTMLSelectElement::updateListBoxSelection): Call the new
  47276. selectionChanged instead of the old setSelectionChanged.
  47277. * page/EventHandler.h: Added setMouseDownMayStartAutoscroll, needed
  47278. because the existing code to set that flag won't get triggered when
  47279. the select element's default event handler handles the event.
  47280. * rendering/RenderListBox.h: Made ScrollbarClient a private base class.
  47281. Removed setSelectionChanged and m_selectionChanged. Added selectionChanged,
  47282. which is really just a synonym for repaint for now. Moved valueChanged,
  47283. the ScrollbarClient function implementations, and itemHeight into the
  47284. private part of the class. Added numVisibleItems() and listHeight() to
  47285. the private section. Changed m_vBar to be a RefPtr.
  47286. * rendering/RenderListBox.cpp: Removed unneeded includes. Moved all
  47287. the constants to the top of the file.
  47288. (WebCore::RenderListBox::RenderListBox): Removed initialization of
  47289. m_selectionChanged because it was removed and of m_vBar because it's
  47290. now a RefPtr which is automaticall initialized.
  47291. (WebCore::RenderListBox::~RenderListBox): Removed the explicit deref of
  47292. m_vBar because it's a RefPtr. Added null checking for FrameView.
  47293. (WebCore::RenderListBox::updateFromElement): Use numItems().
  47294. (WebCore::RenderListBox::calcMinMaxWidth): Added null checking for
  47295. FrameView and used RefPtr for the newly-created scroll bar.
  47296. (WebCore::RenderListBox::size): Tweaked formatting. Also renamed the
  47297. misleading minDefaultSize to maxDefaultSize, since it's a maximum.
  47298. (WebCore::RenderListBox::numVisibleItems): Added. Used in many places
  47299. where size() was used before. This computes the number of rows we have
  47300. room for. We don't need a row space after the last row, and this takes
  47301. that into account.
  47302. (WebCore::RenderListBox::numItems): Tweaked to remove the local variable.
  47303. (WebCore::RenderListBox::listHeight): Added. Total height of all the rows
  47304. and spaces between them.
  47305. (WebCore::RenderListBox::calcHeight): Changed to call itemHeight for the
  47306. row height, and to subtract the last row spacing off since we don't need
  47307. a space after the last row. Changed the scroll bar setup to make it
  47308. correspond to row numbers, not pixel numbers.
  47309. (WebCore::RenderListBox::baselinePosition): Moved the comment to the
  47310. constant declaration at the top of the file.
  47311. (WebCore::RenderListBox::itemBoundingBoxRect): Simplified by using
  47312. the itemHeight() function.
  47313. (WebCore::RenderListBox::paintObject): Changed to use numItems and
  47314. to use numVisibleItems instead of size.
  47315. (WebCore::RenderListBox::isPointInScrollbar): Added get() call since
  47316. m_vBar is now a RefPtr.
  47317. (WebCore::RenderListBox::listIndexAtOffset): Changed to use numItems(),
  47318. itemHeight(), and rearranged a min/max combo so it starts with the low,
  47319. then the value, then the high value for pinning.
  47320. (WebCore::RenderListBox::autoscroll): Use numVisibleItems() instead of
  47321. size().
  47322. (WebCore::RenderListBox::stopAutoscroll): Removed an unneeded nil check
  47323. of the element.
  47324. (WebCore::RenderListBox::scrollToRevealElementAtListIndex): Changed
  47325. to use numItems() and to use numVisibleItems() instead of size().
  47326. Also changed scroll bar code to work more simply now that the scroll
  47327. bar is row-based.
  47328. (WebCore::RenderListBox::listIndexIsVisible): Changed to use
  47329. numVisibleItems() instead of size().
  47330. (WebCore::RenderListBox::valueChanged): Simplified since the scrollbar
  47331. is now row-based. Also removed an unnecessary null check.
  47332. (WebCore::RenderListBox::itemHeight): Updated for name change from
  47333. optionsSpacingMiddle to rowSpacing.
  47334. (WebCore::RenderListBox::scrollHeight): Changed to use listHeight().
  47335. (WebCore::RenderListBox::setScrollTop): Simplified, and removed the code
  47336. that does nothing if the computed list index is visible (which did not
  47337. make sense for this function and seemed a cut and paste error from the
  47338. scrollToReveal function). The scrollbar part is simpler now that it's
  47339. row-based.
  47340. (WebCore::RenderListBox::windowClipRect): Changed to use document()->view()
  47341. so we don't have to include RenderView.h.
  47342. * css/html4.css: Added a semicolon I noticed was missing.
  47343. 2007-01-19 Beth Dakin <bdakin@apple.com>
  47344. Reviewed by Maciej and Darin.
  47345. Fix for <rdar://problem/4702420> REGRESSION: Null characters need
  47346. to be stripped from text nodes (townhall.com)
  47347. This was a regression from the fix for <rdar://problem/3727939>
  47348. Safari strips \0 characters from HTML tags making them valid, which
  47349. was fixed with r12652. We still need to strip null characters in
  47350. text nodes.
  47351. * html/HTMLTokenizer.cpp:
  47352. (WebCore::HTMLTokenizer::write): No behavior change here, this is
  47353. just to make Darin happy.
  47354. (WebCore::HTMLTokenizer::processToken): Call into StringImpl's new
  47355. createStrippingNull function instead of the normal StringImpl
  47356. constructor.
  47357. * platform/StringImpl.cpp:
  47358. (WebCore::StringImpl::createStrippingNull): Strip null.
  47359. * platform/StringImpl.h:
  47360. 2007-01-19 David Kilzer <ddkilzer@webkit.org>
  47361. Reviewed by NOBODY (no-svg build fix).
  47362. * ksvg2/svg/SVGMPathElement.cpp: Added #ifdef SVG_SUPPORT/#endif guards.
  47363. 2007-01-19 Anders Carlsson <acarlsson@apple.com>
  47364. Build fix.
  47365. * platform/graphics/svg/SVGImageEmptyClients.h:
  47366. (WebCore::SVGEmptyChromeClient::setStatusbarText):
  47367. 2007-01-18 Anders Carlsson <acarlsson@apple.com>
  47368. Reviewed by Adam.
  47369. Move JavaScript alert and status bar functions to the chrome.
  47370. * bindings/js/kjs_window.cpp:
  47371. (KJS::WindowFunc::callAsFunction):
  47372. * page/Chrome.cpp:
  47373. (WebCore::Chrome::runJavaScriptAlert):
  47374. (WebCore::Chrome::runJavaScriptConfirm):
  47375. (WebCore::Chrome::runJavaScriptPrompt):
  47376. (WebCore::Chrome::setStatusBarText):
  47377. * page/Chrome.h:
  47378. * page/ChromeClient.h:
  47379. * page/Frame.cpp:
  47380. (WebCore::Frame::setJSStatusBarText):
  47381. (WebCore::Frame::setJSDefaultStatusBarText):
  47382. * page/Frame.h:
  47383. * page/mac/FrameMac.h:
  47384. * page/mac/FrameMac.mm:
  47385. * page/mac/WebCoreFrameBridge.h:
  47386. * platform/graphics/svg/SVGImageEmptyClients.h:
  47387. (WebCore::SVGEmptyChromeClient::runJavaScriptAlert):
  47388. (WebCore::SVGEmptyChromeClient::runJavaScriptConfirm):
  47389. (WebCore::SVGEmptyChromeClient::runJavaScriptPrompt):
  47390. (WebCore::SVGEmptyChromeClient::setStatusBarText):
  47391. 2007-01-19 Zack Rusin <zack@kde.org>
  47392. Fix the build.
  47393. * WebCore.pro: Add missing files
  47394. 2007-01-19 Eric Seidel <eric@webkit.org>
  47395. Reviewed by rwlbuis.
  47396. More cleanup to SVGAnimated* classes.
  47397. No tests possible (only code cleanup)
  47398. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  47399. (WebCore::SVGAnimateMotionElement::applyAnimationToValue):
  47400. * ksvg2/svg/SVGAnimateMotionElement.h:
  47401. * ksvg2/svg/SVGAnimationElement.cpp:
  47402. (WebCore::SVGAnimationElement::parseBeginOrEndValue):
  47403. (WebCore::SVGAnimationElement::parseMappedAttribute):
  47404. (WebCore::SVGAnimationElement::parseClockValue):
  47405. (WebCore::SVGAnimationElement::isIndefinite):
  47406. * ksvg2/svg/SVGAnimationElement.h:
  47407. 2007-01-19 Nikolas Zimmermann <zimmermann@kde.org>
  47408. Not reviewed.
  47409. Remove accidently commited debug output. Shame on me :-)
  47410. * ksvg2/svg/SVGUseElement.cpp:
  47411. (WebCore::SVGUseElement::notifyAttributeChange):
  47412. 2007-01-19 Nikolas Zimmermann <zimmermann@kde.org>
  47413. Reviewed by Eric.
  47414. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10410 (SVG Slider example renders completely wrong (inserting <use> dynamically doesn't work))
  47415. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11660 (SVG: creation of <use/> elements through scripting/DOM doesn't work)
  47416. Added test: svg/custom/use-instanceRoot-modifications.svg
  47417. Added test: svg/custom/use-on-g.svg
  47418. Added test: svg/custom/use-on-rect.svg
  47419. Added test: svg/custom/use-on-symbol-inside-pattern.svg
  47420. Added test: svg/custom/use-on-symbol.svg
  47421. Added test: svg/custom/use-on-text.svg
  47422. Added test: svg/custom/use-transform.svg
  47423. Fixes: svg/W3C-SVG-1.1/text-text-04-t.svg (missing use elements)
  47424. Fixes: svg/carto.net/button.svg (image buttons didn't appear)
  47425. Fixes: svg/carto.net/colourpicker.svg (slider handles finally show up)
  47426. Fixes: svg/carto.net/slider.svg (slider handles finally show up)
  47427. Fixes: svg/carto.net/window.svg (window decorations show up)
  47428. Fixes: svg/custom/use-forward-refs.svg (missing use elements)
  47429. Rewrite <use> support with a real-shadow tree (as the spec demands), and implement SVGElementInstance.
  47430. AFAIK we're the first implementing this SVG feature - after ASV3 (!).
  47431. * DerivedSources.make:
  47432. * WebCore.xcodeproj/project.pbxproj:
  47433. * bindings/objc/DOMInternal.h:
  47434. * bindings/objc/DOMSVG.h:
  47435. * ksvg2/misc/SVGDocumentExtensions.cpp:
  47436. (WebCore::SVGDocumentExtensions::reportWarning):
  47437. (WebCore::SVGDocumentExtensions::reportError):
  47438. (WebCore::SVGDocumentExtensions::addPendingResource):
  47439. (WebCore::SVGDocumentExtensions::isPendingResource):
  47440. (WebCore::SVGDocumentExtensions::removePendingResource):
  47441. (WebCore::SVGDocumentExtensions::mapInstanceToElement):
  47442. (WebCore::SVGDocumentExtensions::removeInstanceMapping):
  47443. (WebCore::SVGDocumentExtensions::instancesForElement):
  47444. * ksvg2/misc/SVGDocumentExtensions.h:
  47445. * ksvg2/svg/SVGCircleElement.cpp:
  47446. (WebCore::SVGCircleElement::notifyAttributeChange):
  47447. * ksvg2/svg/SVGElement.cpp:
  47448. (WebCore::SVGElement::insertedIntoDocument):
  47449. * ksvg2/svg/SVGElement.h:
  47450. (WebCore::SVGElement::buildPendingResource):
  47451. * ksvg2/svg/SVGElementInstance.cpp:
  47452. (WebCore::SVGElementInstance::SVGElementInstance):
  47453. (WebCore::SVGElementInstance::~SVGElementInstance):
  47454. (WebCore::SVGElementInstance::clonedElement):
  47455. (WebCore::SVGElementInstance::correspondingElement):
  47456. (WebCore::SVGElementInstance::correspondingUseElement):
  47457. (WebCore::SVGElementInstance::parentNode):
  47458. (WebCore::SVGElementInstance::childNodes):
  47459. (WebCore::SVGElementInstance::previousSibling):
  47460. (WebCore::SVGElementInstance::nextSibling):
  47461. (WebCore::SVGElementInstance::firstChild):
  47462. (WebCore::SVGElementInstance::lastChild):
  47463. (WebCore::SVGElementInstance::appendChild):
  47464. (WebCore::SVGElementInstance::updateInstance):
  47465. * ksvg2/svg/SVGElementInstance.h:
  47466. * ksvg2/svg/SVGElementInstance.idl: Added.
  47467. * ksvg2/svg/SVGElementInstanceList.cpp:
  47468. (WebCore::SVGElementInstanceList::SVGElementInstanceList):
  47469. (WebCore::SVGElementInstanceList::length):
  47470. (WebCore::SVGElementInstanceList::item):
  47471. * ksvg2/svg/SVGElementInstanceList.h:
  47472. * ksvg2/svg/SVGElementInstanceList.idl: Added.
  47473. * ksvg2/svg/SVGEllipseElement.cpp:
  47474. (WebCore::SVGEllipseElement::notifyAttributeChange):
  47475. * ksvg2/svg/SVGGElement.cpp:
  47476. * ksvg2/svg/SVGGElement.h:
  47477. (WebCore::SVGGElement::contextElement):
  47478. * ksvg2/svg/SVGGradientElement.cpp:
  47479. * ksvg2/svg/SVGGradientElement.h:
  47480. * ksvg2/svg/SVGHiddenElement.h: Added.
  47481. (WebCore::SVGHiddenElement::Type):
  47482. (WebCore::SVGHiddenElement::~SVGHiddenElement):
  47483. (WebCore::SVGHiddenElement::localName):
  47484. * ksvg2/svg/SVGImageElement.cpp:
  47485. (WebCore::SVGImageElement::notifyAttributeChange):
  47486. * ksvg2/svg/SVGLineElement.cpp:
  47487. (WebCore::SVGLineElement::notifyAttributeChange):
  47488. * ksvg2/svg/SVGPathElement.cpp:
  47489. (WebCore::SVGPathElement::notifyAttributeChange):
  47490. * ksvg2/svg/SVGPatternElement.cpp:
  47491. * ksvg2/svg/SVGPatternElement.h:
  47492. * ksvg2/svg/SVGPolyElement.cpp:
  47493. (WebCore::SVGPolyElement::notifyAttributeChange):
  47494. * ksvg2/svg/SVGRectElement.cpp:
  47495. (WebCore::SVGRectElement::notifyAttributeChange):
  47496. * ksvg2/svg/SVGStyledElement.cpp:
  47497. (WebCore::SVGStyledElement::notifyAttributeChange):
  47498. (WebCore::SVGStyledElement::updateElementInstance):
  47499. * ksvg2/svg/SVGStyledElement.h:
  47500. * ksvg2/svg/SVGUseElement.cpp:
  47501. (WebCore::SVGUseElement::instanceRoot):
  47502. (WebCore::SVGUseElement::animatedInstanceRoot):
  47503. (WebCore::SVGUseElement::hasChildNodes):
  47504. (WebCore::SVGUseElement::insertedIntoDocument):
  47505. (WebCore::SVGUseElement::buildPendingResource):
  47506. (WebCore::SVGUseElement::createRenderer):
  47507. (WebCore::SVGUseElement::buildShadowTree):
  47508. (WebCore::SVGUseElement::recursiveShadowTreeBuilder):
  47509. (WebCore::dumpShadowTree):
  47510. (WebCore::SVGUseElement::addShadowTree):
  47511. * ksvg2/svg/SVGUseElement.h:
  47512. * ksvg2/svg/SVGUseElement.idl:
  47513. 2007-01-19 Eric Seidel <eric@webkit.org>
  47514. Reviewed by rwlbuis.
  47515. Add support for SVGMPathElement parsing.
  47516. No test cases possible (SVGAnimateMotion doesn't work yet)
  47517. * WebCore.xcodeproj/project.pbxproj:
  47518. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  47519. (WebCore::SVGAnimateMotionElement::animationPath):
  47520. * ksvg2/svg/SVGMPathElement.cpp: Added.
  47521. (WebCore::SVGMPathElement::SVGMPathElement):
  47522. (WebCore::SVGMPathElement::~SVGMPathElement):
  47523. (WebCore::SVGMPathElement::parseMappedAttribute):
  47524. (WebCore::SVGMPathElement::pathElement):
  47525. * ksvg2/svg/SVGMPathElement.h: Added.
  47526. * ksvg2/svg/SVGNumberList.cpp:
  47527. (WebCore::SVGNumberList::parse): fix typo in comment
  47528. * ksvg2/svg/svgtags.in: add back mpath
  47529. 2007-01-19 Eric Seidel <eric@webkit.org>
  47530. Reviewed by rwlbuis.
  47531. Implement better parsing for keyTimes, keySplines and keyPoints.
  47532. Unfortunately none of this code is used much yet, thus isn't very testable.
  47533. * ksvg2/svg/SVGAnimateMotionElement.cpp:
  47534. (WebCore::SVGAnimateMotionElement::parseMappedAttribute):
  47535. * ksvg2/svg/SVGAnimationElement.cpp:
  47536. (WebCore::SVGAnimationElement::parseKeyNumbers):
  47537. (WebCore::parseKeySplines):
  47538. (WebCore::SVGAnimationElement::parseMappedAttribute):
  47539. * ksvg2/svg/SVGAnimationElement.h:
  47540. * ksvg2/svg/SVGNumberList.cpp:
  47541. (WebCore::SVGNumberList::parse):
  47542. 2007-01-18 Adam Roben <aroben@apple.com>
  47543. Reviewed by Beth.
  47544. Fix: <rdar://problem/4939672> REGRESSION: With text selected that is
  47545. not a link, the "Remove Link" contextual menu item remains active
  47546. * platform/ContextMenuItem.h: Added enabled method.
  47547. * platform/qt/ContextMenuItemQt.cpp:
  47548. (WebCore::ContextMenuItem::enabled): Implemented.
  47549. * platform/mac/ContextMenuItemMac.mm:
  47550. (WebCore::ContextMenuItem::enabled): Ditto.
  47551. * platform/mac/ContextMenuMac.mm:
  47552. (-[WebCoreMenuTarget validateMenuItem:]): Implemented to fulfill the
  47553. NSMenuValidation protocol.
  47554. 2007-01-18 Beth Dakin <bdakin@apple.com>
  47555. Reviewed by Adele.
  47556. Fix for <rdar://problem/4939558> REGRESSION: "Search in Google",
  47557. "Search in Spotlight" and "Look up in Dictionary" are missing
  47558. initially from the contextual menu
  47559. The bug here is that we select the we were selecting the word after
  47560. the context menu event was dispatched and after the context menu
  47561. was built up.
  47562. * page/EventHandler.cpp:
  47563. (WebCore::EventHandler::sendContextMenuEvent): Select the word
  47564. before dispatching the event. It is safe to remove the check for
  47565. swallowEvent since WebCore context menus ensure that we always
  47566. swallow the event anyway.
  47567. 2007-01-18 Mark Rowe <mrowe@apple.com>
  47568. Reviewed by Tim H.
  47569. Fix for http://bugs.webkit.org/show_bug.cgi?id=7926
  47570. Bug 7926: Crash using -callWebScriptMethod to access offsetTop property
  47571. * bindings/objc/WebScriptObject.mm:
  47572. (-[WebScriptObject callWebScriptMethod:withArguments:]): Bail out early if function value is an immediate,
  47573. or if the function object is not callable.
  47574. 2007-01-18 Sam Weinig <sam@webkit.org>
  47575. Reviewed by Maciej.
  47576. Patch for http://bugs.webkit.org/show_bug.cgi?id=11853
  47577. REGRESSION (r17352): Whitespace in <title> is rendered
  47578. * loader/DocumentLoader.cpp:
  47579. (WebCore::canonicalizedTitle): Changed to also collapse internal
  47580. whitespace. This required removing an optimization that is no
  47581. longer possible.
  47582. * manual-tests/title-internal-whitespace.html: Added.
  47583. 2007-01-18 Mitz Pettel <mitz@webkit.org>
  47584. Reviewed by Maciej.
  47585. - fix http://bugs.webkit.org/show_bug.cgi?id=12039
  47586. Assertion failure in WebCore::Font::primaryFont
  47587. Test: fast/text/font-initial.html
  47588. * css/cssstyleselector.cpp:
  47589. (WebCore::CSSStyleSelector::applyProperty): Give 'font: initial' the
  47590. Standard generic family. This makes the FontDescription different from
  47591. that of the initial font of a GraphicsContext, ensuring that the latter
  47592. will not be used.
  47593. 2007-01-18 Mitz Pettel <mitz@webkit.org>
  47594. Reviewed by Darin.
  47595. - fix http://bugs.webkit.org/show_bug.cgi?id=11451
  47596. REGRESSION: Dell.com does not render correctly in ToT (stylesheet not loaded)
  47597. Test: http/tests/misc/css-accept-any-type.html
  47598. * loader/CachedCSSStyleSheet.cpp:
  47599. (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet): Changed the accept header
  47600. for stylesheets to "text/css,*/*;q=0.1" to match Firefox, accepting CSS served
  47601. as any type.
  47602. 2007-01-18 Mitz Pettel <mitz@webkit.org>
  47603. Reviewed by Darin.
  47604. - fix http://bugs.webkit.org/show_bug.cgi?id=11271
  47605. REGRESSION (r12358): Text in display: table unselectable
  47606. Test: editing/selection/display-table-text.html
  47607. * editing/htmlediting.cpp:
  47608. (WebCore::isTableElement): Changed to return false for text nodes.
  47609. 2007-01-18 Mitz Pettel <mitz@webkit.org>
  47610. Reviewed by Darin.
  47611. - fix http://bugs.webkit.org/show_bug.cgi?id=6218
  47612. CSS1: WebTextRenderer caches and re-uses fallback renderers that are based on family lists
  47613. This patch takes character-to-glyph mapping out of FontData and instead makes
  47614. each Font keep its own mapping, using a shared set of glyph page fallback trees.
  47615. For each page number there is (at most) one tree. A path from the root to a
  47616. node in the tree corresponds to a fallback list of FontDatas. The node points to
  47617. a page (which may be shared with other nodes) that maps each character in its range
  47618. to a glyph in the first FontData in the fallback list that has it, or to 0 if none of
  47619. the FontDatas has a glyph for that character. A special kind of node, that can
  47620. only occur as a leaf, corresponds to using system fallback fonts after the list
  47621. has been exhausted. This prevents system fallback from polluting non-leaf
  47622. nodes.
  47623. Nodes and pages are initialized lazily and employ "copy on write".
  47624. * CMakeLists.txt:
  47625. * WebCore.pro:
  47626. * WebCore.vcproj/WebCore/WebCore.vcproj:
  47627. * WebCore.xcodeproj/project.pbxproj:
  47628. * WebCoreSources.bkl:
  47629. * platform/Font.cpp:
  47630. (WebCore::WidthIterator::WidthIterator): Removed substituteFontData.
  47631. (WebCore::WidthIterator::advance): Moved all character-to-glyph mapping logic out
  47632. of here and replaced it with a call to Font::glyphDataForCharacter().
  47633. (WebCore::Font::Font):
  47634. (WebCore::Font::operator=):
  47635. (WebCore::Font::glyphDataForCharacter): Added. This method performs the lookup in the
  47636. page fallback trees, triggering lazy initialization as needed, and caching pointers to
  47637. the retrieved page tree nodes in the font.
  47638. (WebCore::Font::update):
  47639. (WebCore::Font::drawSimpleText):
  47640. (WebCore::Font::floatWidth):
  47641. (WebCore::Font::floatWidthForSimpleText): Removed substituteFont argument.
  47642. (WebCore::Font::offsetForPositionForSimpleText):
  47643. * platform/Font.h:
  47644. * platform/FontData.cpp:
  47645. (WebCore::FontData::FontData):
  47646. * platform/FontData.h:
  47647. (WebCore::FontData::missingGlyphData): Added. Returns the "missing glyph" GlyphData for
  47648. this FontData.
  47649. * platform/GlyphMap.cpp: Removed.
  47650. * platform/GlyphMap.h: Removed.
  47651. * platform/GlyphPageTreeNode.cpp: Renamed GlyphMap.cpp to this.
  47652. (WebCore::GlyphPageTreeNode::getRoot): Added. Returns the root of the page fallback tree for
  47653. the given page number.
  47654. (WebCore::GlyphPageTreeNode::initializePage): Added. Helper method that initializes the page
  47655. pointer of a node, possibly to a pointer to another node's page or to 0.
  47656. (WebCore::GlyphPageTreeNode::getChild): Added.
  47657. * platform/GlyphPageTreeNode.h: Renamed GlyphMap.h to this.
  47658. (WebCore::GlyphPage::glyphDataForCharacter):
  47659. (WebCore::GlyphPage::setGlyphDataForCharacter):
  47660. (WebCore::GlyphPage::setGlyphDataForIndex):
  47661. (WebCore::GlyphPageTreeNode::GlyphPageTreeNode):
  47662. (WebCore::GlyphPageTreeNode::getRootChild):
  47663. (WebCore::GlyphPageTreeNode::parent):
  47664. (WebCore::GlyphPageTreeNode::page):
  47665. (WebCore::GlyphPageTreeNode::level):
  47666. (WebCore::GlyphPageTreeNode::isSystemFallback): Added. Returns whether the node corresponds
  47667. to the system providing fallback fonts, which is done on a character-by-character basis.
  47668. * platform/gdk/GlyphMapGdk.cpp: Removed.
  47669. * platform/gdk/GlyphPageTreeNodeGdk.cpp: Renamed GlyphMapGdk.cpp to this.
  47670. (WebCore::GlyphPage::fill):
  47671. * platform/mac/FontDataMac.mm:
  47672. (WebCore::FontData::platformInit):
  47673. * platform/mac/FontMac.mm:
  47674. (WebCore::Font::Font):
  47675. * platform/mac/GlyphMapMac.cpp: Removed.
  47676. * platform/mac/GlyphPageTreeNodeMac.cpp: Renamed GlypMapMac.cpp to this.
  47677. (WebCore::GlyphPage::fill): Changed to return false if the font has no glyphs in the page.
  47678. * platform/qt/GlyphMapQt.cpp: Removed.
  47679. * platform/qt/GlyphPageTreeNodeQt.cpp: Renamed GlyphMapQt.cpp to this.
  47680. (WebCore::GlyphPage::fill):
  47681. * platform/win/GlyphMapWin.cpp: Removed.
  47682. * platform/win/GlyphPageTreeNodeWin.cpp: Renamed GlyphMapWin to this.
  47683. (WebCore::GlyphPage::fill):
  47684. 2007-01-18 Mitz Pettel <mitz@webkit.org>
  47685. Reviewed by Darin.
  47686. - fix http://bugs.webkit.org/show_bug.cgi?id=9952
  47687. REGRESSION: Repro crash when dragging an image from the window to the address bar
  47688. * page/FrameView.cpp:
  47689. (WebCore::FrameView::~FrameView): Removed the call to Document::detach(). If this
  47690. view is the current view, then the Frame should have already detached the document.
  47691. Added an assertion that this is the case. If this view is not the current view,
  47692. then it cannot access its document, but the page cache should have detached it already.
  47693. Similarly, changed to call RenderPart::setWidget() only if this is the current view
  47694. in the frame.
  47695. (WebCore::FrameView::adjustViewSize): Added an assertion that this view is the current
  47696. view in the frame.
  47697. (WebCore::FrameView::layout): Ditto.
  47698. (WebCore::FrameView::scheduleRelayout): Ditto.
  47699. (WebCore::FrameView::scheduleRelayoutOfSubtree): Ditto.
  47700. (WebCore::FrameView::windowClipRect): Ditto.
  47701. 2007-01-18 Eric Seidel <eric@webkit.org>
  47702. Reviewed by bdash.
  47703. No test needed, removed bogus debug-only ASSERT.
  47704. * rendering/RenderSVGContainer.cpp:
  47705. (WebCore::RenderSVGContainer::paint):
  47706. 2007-01-18 Alice Liu <alice.liu@apple.com>
  47707. Build Fix
  47708. * platform/mac/PasteboardMac.mm:
  47709. (WebCore::Pasteboard::writeSelection):
  47710. 2007-01-18 Alice Liu <alice.liu@apple.com>
  47711. Reviewed by Mark Rowe.
  47712. Fixes the leaks from my last patch, except for the first change below which is a missing delegate call for Mail purposes
  47713. * editing/Editor.cpp:
  47714. (WebCore::Editor::cut):
  47715. * platform/Pasteboard.h:
  47716. * platform/mac/PasteboardMac.mm:
  47717. (WebCore::Pasteboard::Pasteboard):
  47718. (WebCore::Pasteboard::clear):
  47719. (WebCore::Pasteboard::writeSelection):
  47720. (WebCore::Pasteboard::writeURL):
  47721. (WebCore::Pasteboard::plainText):
  47722. (WebCore::Pasteboard::documentFragment):
  47723. 2007-01-18 David Hyatt <hyatt@apple.com>
  47724. Make sure layer autoscrolling puts the event coordinates into the layer's coordinate space before
  47725. calling hitTest on it. Fixes "flashy" selection in textareas.
  47726. Reviewed by darin
  47727. * rendering/RenderLayer.cpp:
  47728. (WebCore::RenderLayer::autoscroll):
  47729. * rendering/RenderTextControl.cpp:
  47730. (WebCore::RenderTextControl::nodeAtPoint):
  47731. 2007-01-18 Anders Carlsson <acarlsson@apple.com>
  47732. Reviewed by Adam.
  47733. Get rid of ResourceLoaderMac.mm and make willCacheResponse platform-independent.
  47734. * loader/ResourceLoader.cpp:
  47735. (WebCore::ResourceLoader::willCacheResponse):
  47736. * loader/ResourceLoader.h:
  47737. * loader/mac/ResourceLoaderMac.mm: Removed.
  47738. * platform/network/ResourceHandleClient.h:
  47739. (WebCore::):
  47740. (WebCore::ResourceHandleClient::willCacheResponse):
  47741. (WebCore::ResourceHandleClient::willStopBufferingData):
  47742. * platform/network/mac/ResourceHandleMac.mm:
  47743. (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
  47744. 2007-01-18 Maciej Stachowiak <mjs@apple.com>
  47745. Reviewed by John.
  47746. - fixed <rdar://problem/4887416> REGRESSION (SearchField): Assertion failure in HTMLInputElement::setValueFromRenderer when editing via drag and drop (11846)
  47747. http://bugs.webkit.org/show_bug.cgi?id=11846
  47748. * editing/ReplaceSelectionCommand.cpp:
  47749. (WebCore::ReplaceSelectionCommand::doApply): Don't insert extra paragraph separators to avoid
  47750. nesting blocks in plaintext mode, since that's not an issue under normal circumstances.
  47751. * html/HTMLInputElement.h:
  47752. * manual-tests/drag-move-in-search-field.html: Added.
  47753. * rendering/RenderTextControl.cpp:
  47754. (WebCore::RenderTextControl::subtreeHasChanged): constrain the value; we'd
  47755. rather truncate it than end up with an illegal value here.
  47756. 2007-01-18 Simon Hausmann <hausmann@kde.org>
  47757. Reviewed by Zack.
  47758. * WebCore.pro: Ha^H^HFix to support massive parallel builds.
  47759. 2007-01-18 David Kilzer <ddkilzer@kilzer.net>
  47760. Reviewed by Darin and Mitz.
  47761. - fix http://bugs.webkit.org/show_bug.cgi?id=12305
  47762. REGRESSION: Images do not load in video sections on CNN.com homepage
  47763. <rdar://problem/4931480> REGRESSION: Images do not load in video sections on CNN.com homepage (12305)
  47764. Test: fast/dom/HTMLImageElement/image-lowsrc-getset.html
  47765. * html/HTMLAttributeNames.in: Added lowsrc.
  47766. * html/HTMLImageElement.cpp:
  47767. (WebCore::HTMLImageElement::isURLAttribute): Added lowsrc.
  47768. (WebCore::HTMLImageElement::lowsrc): Added.
  47769. (WebCore::HTMLImageElement::setLowsrc): Added.
  47770. * html/HTMLImageElement.h: Added lowsrc and setLowsrc.
  47771. * html/HTMLImageElement.idl: Added lowsrc.
  47772. 2007-01-18 Simon Hausmann <hausmann@kde.org>
  47773. Reviewed by Zack.
  47774. * WebCore.pro: Remove generated files on make clean.
  47775. 2007-01-17 Alice Liu <alice.liu@apple.com>
  47776. Reviewed by Harrison.
  47777. Fix for <rdar://problem/4894155> REGRESSION: Extra line break is pasted with content into message body after choosing File - Paste
  47778. Migration of some editing code from WebHTMView to WebCore::Editor
  47779. resulted in not calling pasteboardTypesForSelection, which Mail was
  47780. overriding for the special purpose of adding a type to the
  47781. pasteboard after WebKit did. This patch adds 2 separate code paths
  47782. for Tiger and Leopard. On Tiger we give in and call the WebView's
  47783. pasteboardTypesForSelection. On Leopard we call a delegate after
  47784. the pasteboard types are set.
  47785. * bridge/EditorClient.h:
  47786. * editing/Editor.h:
  47787. * platform/Pasteboard.h:
  47788. * platform/graphics/svg/SVGImageEmptyClients.h:
  47789. (WebCore::SVGEmptyEditorClient::didSetSelectionTypesForPasteboard):
  47790. (WebCore::SVGEmptyEditorClient::pasteboardTypesForSelection):
  47791. * platform/mac/PasteboardMac.mm:
  47792. (WebCore::Pasteboard::Pasteboard):
  47793. (WebCore::Pasteboard::clear):
  47794. (WebCore::Pasteboard::writeSelection):
  47795. (WebCore::Pasteboard::writeURL):
  47796. (WebCore::Pasteboard::plainText):
  47797. (WebCore::Pasteboard::documentFragment):
  47798. 2007-01-17 John Sullivan <sullivan@apple.com>
  47799. Reviewed by Darin
  47800. - WebCore part of fix for <rdar://problem/4462420> REGRESSION: Mail hangs during
  47801. Replace All if the replacement string contains the search string
  47802. * page/Frame.h:
  47803. * page/Frame.cpp:
  47804. (WebCore::Frame::findString):
  47805. new startInSelection parameter -- if true, search starts looking in selection; if false,
  47806. search starts looking after the selection
  47807. * page/mac/WebCoreFrameBridge.h:
  47808. * page/mac/WebCoreFrameBridge.mm:
  47809. (-[WebCoreFrameBridge searchFor:direction:caseSensitive:wrap:startInSelection:]):
  47810. new startInSelection parameter, passed through to Frame::findString()
  47811. * editing/JSEditor.cpp:
  47812. pass false for new findString parameter, to match old behavior
  47813. 2007-01-17 Beth Dakin <bdakin@apple.com>
  47814. Rubber stamped by Darin.
  47815. * rendering/HitTestResult.cpp: Just added a comment.
  47816. 2007-01-17 Justin Garcia <justin.garcia@apple.com>
  47817. Reviewed by darin
  47818. <rdar://problem/4920488>
  47819. REGRESSION: A crash occurs at WebCore::Range::processContents () when removing formatting from selected text (that contains a link)
  47820. * dom/Range.cpp:
  47821. (WebCore::Range::commonAncestorContainer): Return null if the nodes
  47822. don't have a common ancestor. As a side effect, the public
  47823. commonAncestorContainer now sets an exception if the Range starts
  47824. in one document and ends in another, or starts or ends in a tree
  47825. that's been removed from the document. The spec doesn't cover
  47826. this and there is no precedent in other browsers for this case because
  47827. they don't allow invalid Ranges (you can create one with WebCore
  47828. by removing a node that contains the start/end of a Range).
  47829. (WebCore::Range::compareBoundaryPoints): If the the two positions
  47830. are in nodes that have no common ancestor, return null. This doesn't
  47831. change the behavior of the public compareBoundaryPoints: it already
  47832. throws an exception if the two positions are in nodes that don't have
  47833. a common ancestor. This follows the spec.
  47834. 2007-01-17 John Sullivan <sullivan@apple.com>
  47835. The one word was typed by me, but only after debugging for a long time with Darin.
  47836. - fixed <rdar://problem/4912002> REGRESSION: Series of words marked as a single misspelled word
  47837. * editing/TextIterator.cpp:
  47838. (WebCore::WordAwareIterator::WordAwareIterator):
  47839. We were creating a TextIterator with the default kind, but WordAwareIterator is designed to work
  47840. in concert with CharacterIterator, so they need to use the same kind. CharacterIterator uses
  47841. kind RUNFINDER, so WordAwareIterator needs to do so also.
  47842. 2007-01-17 Adele Peterson <adele@apple.com>
  47843. Reviewed by Brady.
  47844. Fix for <rdar://problem/4900895> REGRESSION: onChange doesn't always fire for popups that have had value changed by JS
  47845. No test case since you need to open up the menu to fire onChange.
  47846. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::setSelectedIndex):
  47847. Keep track of m_lastOnChangeIndex even when we're not firing onChange. Since
  47848. the selected index has changed, we still want the m_lastOnChangeIndex to be up to date when we compare
  47849. it later. This matches our behavior in Safari 2.0.
  47850. 2007-01-17 Adele Peterson <adele@apple.com>
  47851. Reviewed by Darin and John.
  47852. - Fix for <rdar://problem/4816550> REGRESSION: autoscrolling doesn't work after double-click
  47853. * page/EventHandler.cpp: (WebCore::EventHandler::handleMousePressEvent): Set swallowEvent bool instead
  47854. of returning early for double and triple clicks.
  47855. 2007-01-17 Darin Adler <darin@apple.com>
  47856. Reviewed by Hyatt.
  47857. * rendering/RenderObject.h: Removed unused nextEditable and previousEditable.
  47858. * rendering/RenderObject.cpp: Ditto.
  47859. 2007-01-17 Darin Adler <darin@apple.com>
  47860. Reviewed by Maciej.
  47861. - fix http://bugs.webkit.org/show_bug.cgi?id=12278
  47862. <rdar://problem/4928705> REGRESSION(r13070): Dragged image size includes padding (12278)
  47863. * WebCore.exp: Added HitTestResult::imageRect,
  47864. removed HitTestResult::boundingBox.
  47865. * rendering/HitTestResult.h:
  47866. * rendering/HitTestResult.cpp: (WebCore::HitTestResult::imageRect):
  47867. Added. Returns the content rectangle of the image.
  47868. * rendering/RenderObject.h:
  47869. * rendering/RenderObject.cpp:
  47870. (WebCore::RenderObject::absolutePosition): Made const.
  47871. (WebCore::RenderObject::contentBox): Added.
  47872. (WebCore::RenderObject::absoluteContentBox): Added.
  47873. * rendering/RenderBox.h:
  47874. * rendering/RenderBox.cpp:
  47875. (WebCore::RenderBox::absolutePosition): Made const.
  47876. * rendering/RenderTableCell.h:
  47877. * rendering/RenderTableCell.cpp:
  47878. (WebCore::RenderTableCell::absolutePosition): Made const.
  47879. * rendering/RenderView.h:
  47880. * rendering/RenderView.cpp:
  47881. (WebCore::RenderView::absolutePosition): Made const.
  47882. 2007-01-17 Adele Peterson <adele@apple.com>
  47883. Reviewed by Beth.
  47884. Fix for http://bugs.webkit.org/show_bug.cgi?id=10139
  47885. <rdar://problem/4823028> REGRESSION: Reproducible crash when selecting a popup/button with ::selection pseudostyle
  47886. Test: fast/css/pseudostyle-anonymous-text.html
  47887. * rendering/RenderObject.cpp: (WebCore::RenderObject::getPseudoStyle): Nil check the node.
  47888. 2007-01-17 Adele Peterson <adele@apple.com>
  47889. Reviewed by Anders and John.
  47890. Fix for http://bugs.webkit.org/show_bug.cgi?id=11278
  47891. <rdar://problem/4826875> REGRESSION: Popup width doesn't change to accommodate dynamic changes to options
  47892. Test: fast/forms/menulist-width-change.html
  47893. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::updateFromElement):
  47894. When the options change, call setNeedsLayoutAndMinMaxRecalc.
  47895. 2007-01-16 Alexey Proskuryakov <ap@webkit.org>
  47896. Reviewed by Maciej.
  47897. http://bugs.webkit.org/show_bug.cgi?id=12268
  47898. Give object prototypes their own names
  47899. * bindings/js/kjs_html.cpp: Changed the names of KJS:HTMLElement and KJS::HTMLElement to
  47900. not match the names of their WebCore counterparts. The "DOM" prefix I gave them doesn't
  47901. seem to carry much sense, but matches some other kjs_html object names.
  47902. * bindings/scripts/CodeGeneratorJS.pm: Append "Proto" to interface name for the prototype's ClassInfo.
  47903. * bindings/js/JSHTMLInputElementBase.cpp:
  47904. (WebCore::JSHTMLInputElementBasePrototypeFunction::callAsFunction):
  47905. (WebCore::JSHTMLInputElementBase::JSHTMLInputElementBase):
  47906. * bindings/js/JSHTMLInputElementBase.h:
  47907. * bindings/js/JSXMLHttpRequest.cpp:
  47908. (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
  47909. (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
  47910. (KJS::JSXMLHttpRequestPrototypeFunction::callAsFunction):
  47911. * bindings/js/JSXMLHttpRequest.h:
  47912. * bindings/js/JSXSLTProcessor.cpp:
  47913. (KJS::JSXSLTProcessor::JSXSLTProcessor):
  47914. (KJS::XSLTProcessorPrototypeFunction::callAsFunction):
  47915. (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp):
  47916. * bindings/js/kjs_css.cpp:
  47917. (KJS::DOMCSSStyleDeclaration::DOMCSSStyleDeclaration):
  47918. (KJS::DOMCSSStyleDeclarationPrototypeFunction::callAsFunction):
  47919. (KJS::DOMMediaList::DOMMediaList):
  47920. (KJS::KJS::DOMMediaListPrototypeFunction::callAsFunction):
  47921. (KJS::DOMCSSStyleSheet::DOMCSSStyleSheet):
  47922. (KJS::DOMCSSStyleSheetPrototypeFunction::callAsFunction):
  47923. (KJS::DOMCSSValue::DOMCSSValue):
  47924. (KJS::DOMCSSValuePrototypeFunction::callAsFunction):
  47925. * bindings/js/kjs_css.h:
  47926. * bindings/js/kjs_dom.cpp:
  47927. (KJS::DOMNode::DOMNode):
  47928. (KJS::DOMNodePrototypeFunction::callAsFunction):
  47929. (KJS::DOMEventTargetNode::DOMEventTargetNode):
  47930. (KJS::DOMEventTargetNodePrototypeFunction::callAsFunction):
  47931. (KJS::DOMNamedNodeMap::DOMNamedNodeMap):
  47932. (KJS::DOMNamedNodeMapPrototypeFunction::callAsFunction):
  47933. * bindings/js/kjs_dom.h:
  47934. * bindings/js/kjs_domnode.h:
  47935. * bindings/js/kjs_events.cpp:
  47936. (KJS::DOMEvent::DOMEvent):
  47937. (KJS::DOMEventPrototypeFunction::callAsFunction):
  47938. (KJS::Clipboard::Clipboard):
  47939. (KJS::ClipboardPrototypeFunction::callAsFunction):
  47940. * bindings/js/kjs_events.h:
  47941. * bindings/js/kjs_html.cpp:
  47942. (KJS::JSHTMLDocumentPrototypeFunction::callAsFunction):
  47943. (KJS::):
  47944. (KJS::JSHTMLDocument::JSHTMLDocument):
  47945. (KJS::JSHTMLElementPrototypeFunction::callAsFunction):
  47946. (KJS::JSHTMLElement::JSHTMLElement):
  47947. (KJS::JSHTMLCollection::JSHTMLCollection):
  47948. (KJS::JSHTMLCollectionPrototypeFunction::callAsFunction):
  47949. * bindings/js/kjs_html.h:
  47950. * bindings/js/kjs_navigator.cpp:
  47951. * bindings/js/kjs_traversal.cpp:
  47952. (KJS::DOMNodeFilter::DOMNodeFilter):
  47953. (KJS::DOMNodeFilterPrototypeFunction::callAsFunction):
  47954. * bindings/js/kjs_window.cpp:
  47955. (KJS::Window::clear):
  47956. Changed Proto to Prototype, and ProtoFunc to PrototypeFunction.
  47957. 2007-01-17 Lars Knoll <lars@trolltech.com>
  47958. Reviewed by Zack and Darin
  47959. Fix the Qt build again after the latest Image changes.
  47960. Also make some of the methods implemented in ImageCG
  47961. crossplatform.
  47962. * platform/graphics/BitmapImage.h:
  47963. * platform/graphics/Image.cpp:
  47964. (WebCore::Image::fillWithSolidColor):
  47965. (WebCore::calculatePatternScale):
  47966. (WebCore::Image::drawTiled):
  47967. * platform/graphics/Image.h:
  47968. * platform/graphics/cg/ImageCG.cpp:
  47969. (WebCore::BitmapImage::draw):
  47970. * platform/graphics/qt/ImageQt.cpp:
  47971. (WebCore::Image::loadPlatformResource):
  47972. (WebCore::Image::drawPattern):
  47973. (WebCore::BitmapImage::initPlatformData):
  47974. (WebCore::BitmapImage::invalidatePlatformData):
  47975. (WebCore::BitmapImage::draw):
  47976. (WebCore::BitmapImage::drawPattern):
  47977. * platform/qt/TemporaryLinkStubs.cpp:
  47978. 2007-01-17 Darin Adler <darin@apple.com>
  47979. - quick attempt to fix the Qt build
  47980. * platform/graphics/qt/ImageQt.cpp: (WebCore::BitmapImage::drawTiled):
  47981. Remove obsolete parameters from this stub.
  47982. 2007-01-17 Eric Seidel <eric@webkit.org>
  47983. Reviewed by rwlbuis.
  47984. Test: svg/custom/inner-svg-hit-test.svg
  47985. * rendering/RenderSVGContainer.cpp:
  47986. (WebCore::RenderSVGContainer::nodeAtPoint): never allow containers to be hit.
  47987. 2007-01-17 Lars Knoll <lars@trolltech.com>
  47988. Reviewed by Zack
  47989. Don't call receivedResponse twice for file: URLs.
  47990. Never call back into the ResourceHandleClient once
  47991. cancel() has been called on the ResourceHandle.
  47992. * WebCore.pro:
  47993. * platform/network/qt/ResourceHandleManagerQt.cpp:
  47994. (WebCore::ResourceHandleManager::cancel):
  47995. (WebCore::ResourceHandleManager::receivedResponse):
  47996. (WebCore::ResourceHandleManager::receivedData):
  47997. (WebCore::ResourceHandleManager::receivedFinished):
  47998. (WebCore::FileLoader::request):
  47999. (WebCore::FileLoader::parseDataUrl):
  48000. (WebCore::WebCoreHttp::scheduleNextRequest):
  48001. * platform/network/qt/ResourceHandleManagerQt.h:
  48002. 2007-01-17 Eric Seidel <eric@webkit.org>
  48003. No review, build fix only.
  48004. * platform/graphics/cg/ImageCG.cpp: correct drawPatternCombined to drawPattern
  48005. (WebCore::Image::drawPattern):
  48006. (WebCore::Image::drawTiled):
  48007. 2007-01-17 Eric Seidel <eric@webkit.org>
  48008. Reviewed by mitz and rwlbuis.
  48009. SVGs do not work as background images:
  48010. http://bugs.webkit.org/show_bug.cgi?id=12096
  48011. Tests updated:
  48012. - fast/images/svg-as-background.svg: now passes
  48013. - fast/images/svg-as-tiled-background.svg: now passes
  48014. * platform/graphics/BitmapImage.h:
  48015. (WebCore::BitmapImage::nativeImageForCurrentFrame):
  48016. (WebCore::BitmapImage::mayFillWithSolidColor):
  48017. (WebCore::BitmapImage::solidColor):
  48018. * platform/graphics/Image.h:
  48019. (WebCore::Image::mayFillWithSolidColor):
  48020. (WebCore::Image::solidColor):
  48021. (WebCore::Image::nativeImageForCurrentFrame):
  48022. (WebCore::Image::startAnimation):
  48023. * platform/graphics/cg/ImageCG.cpp:
  48024. (WebCore::Image::drawPatternCallback):
  48025. (WebCore::Image::drawPatternCombined):
  48026. (WebCore::caculatePatternScale):
  48027. (WebCore::Image::drawTiled):
  48028. * platform/graphics/cg/PDFDocumentImage.cpp:
  48029. * platform/graphics/cg/PDFDocumentImage.h:
  48030. * platform/graphics/svg/SVGImage.cpp:
  48031. (WebCore::SVGImage::nativeImageForCurrentFrame):
  48032. * platform/graphics/svg/SVGImage.h:
  48033. 2007-01-17 Rob Buis <buis@kde.org>
  48034. Reviewed by Eric
  48035. Add proper condition for rx attribute negative check.
  48036. * ksvg2/svg/SVGRectElement.cpp:
  48037. (WebCore::SVGRectElement::parseMappedAttribute):
  48038. 2007-01-17 Lars Knoll <lars@trolltech.com>
  48039. Reviewed by Zack
  48040. change all notImplemented() macros to use qDebug
  48041. instead of fprintf(stder, ...)
  48042. * loader/qt/DocumentLoaderQt.cpp:
  48043. * loader/qt/FrameLoaderQt.cpp:
  48044. * page/qt/EventHandlerQt.cpp:
  48045. * page/qt/FrameQt.cpp:
  48046. * platform/graphics/qt/GraphicsContextQt.cpp:
  48047. * platform/graphics/qt/IconQt.cpp:
  48048. * platform/network/qt/ResourceHandleManagerQt.cpp:
  48049. * platform/network/qt/ResourceHandleQt.cpp:
  48050. * platform/qt/CursorQt.cpp:
  48051. * platform/qt/FileChooserQt.cpp:
  48052. * platform/qt/MimeTypeRegistryQt.cpp:
  48053. * platform/qt/PageQt.cpp: Removed.
  48054. * platform/qt/PopupMenuQt.cpp:
  48055. * platform/qt/ScrollViewQt.cpp:
  48056. * platform/qt/TemporaryLinkStubs.cpp:
  48057. * platform/qt/TextBoundaries.cpp:
  48058. * platform/qt/WidgetQt.cpp:
  48059. 2007-01-16 Brady Eidson <beidson@apple.com>
  48060. Reviewed by Oliver
  48061. A few enhancements to the HTTP Auth architecture
  48062. * platform/network/ProtectionSpace.cpp:
  48063. (WebCore::ProtectionSpace::isProxy):
  48064. (WebCore::ProtectionSpace::receivesCredentialSecurely):
  48065. * platform/network/ProtectionSpace.h:
  48066. 2007-01-16 Alice Liu <alice.liu@apple.com>
  48067. Reviewed by harrison.
  48068. Fixed <rdar://problem/4921134> WebKit needs extensible cut/copy to allow additional types to be written to pasteboard
  48069. * WebCore.xcodeproj/project.pbxproj:
  48070. * bridge/EditorClient.h:
  48071. * editing/Editor.cpp:
  48072. (WebCore::Editor::copy):
  48073. (WebCore::Editor::didWriteSelectionToPasteboard):
  48074. * editing/Editor.h:
  48075. * platform/graphics/svg/SVGImageEmptyClients.h:
  48076. (WebCore::SVGEmptyEditorClient::didWriteSelectionToPasteboard):
  48077. 2007-01-16 Justin Garcia <justin.garcia@apple.com>
  48078. Reviewed by harrison
  48079. <rdar://problem/4747450>
  48080. Gmail Editor: Caret doesn't always position itself after list marker
  48081. <rdar://problem/4917055>
  48082. GMail Editor: A hang can occur when attempting to apply list styling to selected indented text
  48083. * editing/TextIterator.cpp:
  48084. (WebCore::TextIterator::rangeFromLocationAndLength): Use VisiblePositions
  48085. to compute the end of a run for emitted '\n's, because it's often wrong
  48086. in that case.
  48087. 2007-01-16 Darin Adler <darin@apple.com>
  48088. - quick lame attempt to get Qt compiling again
  48089. * platform/qt/ContextMenuQt.cpp: Removed show() function.
  48090. 2007-01-17 Nicholas Shanks <contact@nickshanks.com>
  48091. Reviewed by Darin.
  48092. * platform/network/ResourceRequest.h:
  48093. (WebCore::ResourceRequest::setHTTPAccept): Correct argument name.
  48094. 2007-01-16 Beth Dakin <bdakin@apple.com>
  48095. Reviewed by Adam.
  48096. Get rid of show() and hide() since they don't do anything.
  48097. * page/ContextMenuController.cpp:
  48098. (WebCore::ContextMenuController::handleContextMenuEvent):
  48099. * platform/ContextMenu.h:
  48100. * platform/mac/ContextMenuMac.mm:
  48101. 2007-01-16 Lars Knoll <lars@trolltech.com>
  48102. Reviewed by Zack
  48103. Cleaned up the way we create native widgets. They are
  48104. now not created in WebCore anymore, but in the new
  48105. Qt API to WebKit.
  48106. Fix a compile issue in the ResourceHandleManager.
  48107. * WebCore.pro:
  48108. * platform/ScrollView.h:
  48109. * platform/Widget.h:
  48110. (WebCore::ResourceHandleManager::cancel):
  48111. * platform/qt/ScrollViewCanvasQt.cpp:
  48112. (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
  48113. (WebCore::ScrollViewCanvasQt::paintEvent):
  48114. (WebCore::ScrollViewCanvasQt::mouseMoveEvent):
  48115. (WebCore::ScrollViewCanvasQt::mousePressEvent):
  48116. (WebCore::ScrollViewCanvasQt::mouseReleaseEvent):
  48117. (WebCore::ScrollViewCanvasQt::handleKeyEvent):
  48118. * platform/qt/ScrollViewCanvasQt.h:
  48119. * platform/qt/ScrollViewQt.cpp:
  48120. (WebCore::ScrollView::ScrollView):
  48121. (WebCore::ScrollView::setScrollArea):
  48122. (WebCore::ScrollView::addChild):
  48123. * platform/qt/WidgetQt.cpp:
  48124. * platform/network/qt/ResourceHandleManagerQt.cpp:
  48125. 2007-01-16 Lars Knoll <lars@trolltech.com>
  48126. Reviewed by Zack
  48127. Looks like ResourceHandle _has_ to do everything
  48128. asynchronously if we don't want to run into
  48129. lots of trouble in the loader.
  48130. Implement support data: URLs.
  48131. Remove some unused Qt only code in ResourceHandleClient.h
  48132. * platform/network/ResourceHandleClient.h:
  48133. * platform/network/qt/ResourceHandleManagerQt.cpp:
  48134. (WebCore::RequestQt::setURL):
  48135. (WebCore::ResourceHandleManager::add):
  48136. (WebCore::ResourceHandleManager::cancel):
  48137. (WebCore::ResourceHandleManager::receivedFinished):
  48138. (WebCore::LoaderThread::run):
  48139. (WebCore::FileLoader::request):
  48140. (WebCore::FileLoader::sendData):
  48141. (WebCore::FileLoader::parseDataUrl):
  48142. * platform/network/qt/ResourceHandleManagerQt.h:
  48143. 2007-01-16 Eric Seidel <eric@webkit.org>
  48144. Reviewed by mitz.
  48145. Refactor drawTiled implementations in preparation for combining them.
  48146. Removed unused RoundTile code path.
  48147. * platform/graphics/cg/ImageCG.cpp:
  48148. (WebCore::drawPattern):
  48149. (WebCore::BitmapImage::drawTiled):
  48150. (WebCore::caculatePatternScale):
  48151. 2007-01-16 Darin Adler <darin@apple.com>
  48152. Reviewed by Mark Rowe.
  48153. - removed unused field from loader
  48154. * loader/loader.cpp:
  48155. (WebCore::Loader::numRequests):
  48156. (WebCore::Loader::cancelRequests):
  48157. * loader/loader.h:
  48158. 2007-01-15 Rob Buis <buis@kde.org>
  48159. Reviewed by Eric.
  48160. http://bugs.webkit.org/show_bug.cgi?id=12272
  48161. SVG picture is clipped (edges not visible)
  48162. Expose css dpi constant and use it for svg, making
  48163. 1in amount to 96 pixels like for html.
  48164. * css/CSSPrimitiveValue.cpp:
  48165. (WebCore::CSSPrimitiveValue::computeLengthFloat):
  48166. (WebCore::scaleFactorForConversion):
  48167. * css/csshelper.h:
  48168. * ksvg2/svg/SVGLength.cpp:
  48169. (WebCore::SVGLength::value):
  48170. (WebCore::SVGLength::setValue):
  48171. * ksvg2/svg/SVGLength.h:
  48172. 2007-01-15 Brady Eidson <beidson@apple.com>
  48173. Reviewed by Adam
  48174. CFNet additions
  48175. * platform/network/AuthenticationChallenge.cpp:
  48176. (WebCore::operator==):
  48177. * platform/network/AuthenticationChallenge.h:
  48178. (WebCore::AuthenticationChallenge::sourceHandle):
  48179. (WebCore::AuthenticationChallenge::cfURLAuthChallengeRef):
  48180. * platform/network/ResourceError.h:
  48181. * platform/network/ResourceHandle.h:
  48182. * platform/network/ResourceHandleInternal.h:
  48183. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  48184. 2007-01-15 Eric Seidel <eric@webkit.org>
  48185. Reviewed by hyatt.
  48186. Don't map attributes in namespaces other than null to CSS properties.
  48187. Test: svg/custom/attribute-namespace-check.svg
  48188. * ksvg2/svg/SVGStyledElement.cpp:
  48189. (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName):
  48190. 2007-01-15 Lars Naesbye Christensen <lars@naesbye.dk>
  48191. Reviewed by Darin.
  48192. - http://bugs.webkit.org/show_bug.cgi?id=11112
  48193. add a drop shadow to the hand cursor used for links
  48194. * Resources/linkCursor.png: Added a drop shadow.
  48195. 2007-01-15 Darin Adler <darin@apple.com>
  48196. Reviewed by Adam.
  48197. - fix http://bugs.webkit.org/show_bug.cgi?id=12190
  48198. REGRESSION: Placeholder text does not reflect dynamic updates
  48199. Test: fast/forms/placeholder-set-attribute.html
  48200. * html/HTMLTextFieldInnerElement.cpp:
  48201. (WebCore::HTMLSearchFieldCancelButtonElement::defaultEventHandler):
  48202. Call onSearch on the element since I removed it from the renderer.
  48203. * rendering/RenderTextControl.h: Added explicit virtual keywords for overrides
  48204. of virtual functions. Removed the unneeded onSearch function. Made the inheritance
  48205. from PopupMenuClient be private, and made the overrides all private. Replaced the
  48206. showPlaceholderIfNeeded and hidePlaceholderIfNeeded functions with updatePlaceholder.
  48207. * rendering/RenderTextControl.cpp:
  48208. (WebCore::RenderTextControl::createResultsButtonStyle): Added an assertion.
  48209. (WebCore::RenderTextControl::updatePlaceholder): Added. Replaces the two
  48210. functions, showPlaceholderIfNeeded and hidePlaceholderIfNeeded.
  48211. (WebCore::RenderTextControl::updateFromElement): Added call to
  48212. updatePlaceholder before updating the value. Also improved the structure
  48213. of the function and corrected incorrect use of copy and replace.
  48214. (WebCore::RenderTextControl::updateCancelButtonVisibility): Added an
  48215. assertion and removed an unneeded local variable.
  48216. (WebCore::RenderTextControl::subtreeHasChanged): Removed an unneeded
  48217. null check and virtual function calls.
  48218. (WebCore::RenderTextControl::forwardEvent): Replaced calls to the old
  48219. functions with calls to updatePlaceholder.
  48220. (WebCore::RenderTextControl::selectionChanged): Changed code to dispatch
  48221. the select event directly -- I plan to remove the onSelect function, which
  48222. was only called here.
  48223. (WebCore::RenderTextControl::autosaveName): Removed too-specific cast and
  48224. local variable.
  48225. (WebCore::RenderTextControl::addSearchResult): Added assertion and changed
  48226. variable name for clarity.
  48227. (WebCore::RenderTextControl::valueChanged): Changed code to check for empty
  48228. autosave name instead of null for consistency with other call sites that
  48229. manage the autosave name. Also changed the code that dispatches an event
  48230. to call onSearch on the input element so we don't need our own function.
  48231. 2007-01-15 Eric Seidel <eric@webkit.org>
  48232. Reviewed by hyatt.
  48233. Fix SVGStyledElement::parseMappedAttribute to only map SVG-allowed CSS properties
  48234. (i.e. width is no longer mapped to CSS for SVG)
  48235. Add SVGStyledElement::mapToEntry to allow RenderStyle-sharing
  48236. http://bugs.webkit.org/show_bug.cgi?id=12060
  48237. * dom/MappedAttributeEntry.h:
  48238. (WebCore::):
  48239. * ksvg2/svg/SVGStyledElement.cpp:
  48240. (WebCore::cssPropertyIdForName): new helper
  48241. (WebCore::mapAttributeToCSSProperty): new helper
  48242. (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName): new helper
  48243. (WebCore::SVGStyledElement::mapToEntry): added.
  48244. (WebCore::SVGStyledElement::parseMappedAttribute): use cssPropertyIdForSVGAttributeName
  48245. * ksvg2/svg/SVGStyledElement.h:
  48246. 2007-01-15 Eric Seidel <eric@webkit.org>
  48247. Reviewed by bdash.
  48248. Update header guards to follow new style guidelines using new clean-header-guards script.
  48249. * bindings/js/JSHTMLElementWrapperFactory.h:
  48250. * bindings/js/JSHTMLInputElementBase.h:
  48251. * bindings/js/JSHTMLOptionElementConstructor.h:
  48252. * bindings/js/JSSVGElementWrapperFactory.h:
  48253. * bindings/js/JSSVGPODTypeWrapper.h:
  48254. * bindings/js/JSXMLHttpRequest.h:
  48255. * bindings/js/JSXSLTProcessor.h:
  48256. * bindings/js/kjs_binding.h:
  48257. * bindings/js/kjs_css.h:
  48258. * bindings/js/kjs_dom.h:
  48259. * bindings/js/kjs_domnode.h:
  48260. * bindings/js/kjs_events.h:
  48261. * bindings/js/kjs_html.h:
  48262. * bindings/js/kjs_navigator.h:
  48263. * bindings/js/kjs_proxy.h:
  48264. * bindings/js/kjs_traversal.h:
  48265. * bindings/js/kjs_window.h:
  48266. * bridge/EditorClient.h:
  48267. * bridge/History.h:
  48268. * css/CSSStyleSheet.h:
  48269. * css/CSSValue.h:
  48270. * css/CSSValueList.h:
  48271. * css/DashboardRegion.h:
  48272. * css/FontFamilyValue.h:
  48273. * css/FontValue.h:
  48274. * css/MediaFeatureNames.h:
  48275. * css/MediaList.h:
  48276. * css/Pair.h:
  48277. * css/RectImpl.h:
  48278. * css/ShadowValue.h:
  48279. * css/StyleBase.h:
  48280. * css/StyleList.h:
  48281. * css/StyleSheet.h:
  48282. * css/StyleSheetList.h:
  48283. * css/cssstyleselector.h:
  48284. * dom/BeforeTextInsertedEvent.h:
  48285. * dom/CDATASection.h:
  48286. * dom/CharacterData.h:
  48287. * dom/ChildNodeList.h:
  48288. * dom/Comment.h:
  48289. * dom/DOMImplementation.h:
  48290. * dom/DocPtr.h:
  48291. * dom/Document.h:
  48292. * dom/DocumentFragment.h:
  48293. * dom/DocumentMarker.h:
  48294. * dom/DocumentType.h:
  48295. * dom/EditingText.h:
  48296. * dom/Entity.h:
  48297. * dom/EntityReference.h:
  48298. * dom/EventNames.h:
  48299. * dom/EventTargetNode.h:
  48300. * dom/NameNodeList.h:
  48301. * dom/NamedNodeMap.h:
  48302. * dom/Node.h:
  48303. * dom/NodeList.h:
  48304. * dom/Notation.h:
  48305. * dom/Position.h:
  48306. * dom/ProcessingInstruction.h:
  48307. * dom/Range.h:
  48308. * dom/StyleElement.h:
  48309. * dom/Text.h:
  48310. * editing/AppendNodeCommand.h:
  48311. * editing/ApplyStyleCommand.h:
  48312. * editing/BreakBlockquoteCommand.h:
  48313. * editing/CommandByName.h:
  48314. * editing/CompositeEditCommand.h:
  48315. * editing/DeleteButton.h:
  48316. * editing/DeleteButtonController.h:
  48317. * editing/DeleteFromTextNodeCommand.h:
  48318. * editing/DeleteSelectionCommand.h:
  48319. * editing/InsertIntoTextNodeCommand.h:
  48320. * editing/InsertLineBreakCommand.h:
  48321. * editing/InsertNodeBeforeCommand.h:
  48322. * editing/InsertParagraphSeparatorCommand.h:
  48323. * editing/InsertTextCommand.h:
  48324. * editing/JoinTextNodesCommand.h:
  48325. * editing/MergeIdenticalElementsCommand.h:
  48326. * editing/ModifySelectionListLevel.h:
  48327. * editing/MoveSelectionCommand.h:
  48328. * editing/RemoveCSSPropertyCommand.h:
  48329. * editing/RemoveNodeAttributeCommand.h:
  48330. * editing/RemoveNodeCommand.h:
  48331. * editing/RemoveNodePreservingChildrenCommand.h:
  48332. * editing/ReplaceSelectionCommand.h:
  48333. * editing/SetNodeAttributeCommand.h:
  48334. * editing/SplitElementCommand.h:
  48335. * editing/SplitTextNodeCommand.h:
  48336. * editing/SplitTextNodeContainingElementCommand.h:
  48337. * editing/TextGranularity.h:
  48338. * editing/TypingCommand.h:
  48339. * editing/WrapContentsInDummySpanCommand.h:
  48340. * history/BackForwardList.h:
  48341. * history/HistoryItem.h:
  48342. * history/HistoryItemTimer.h:
  48343. * history/PageCache.h:
  48344. * html/CanvasGradient.h:
  48345. * html/CanvasPattern.h:
  48346. * html/CanvasRenderingContext2D.h:
  48347. * html/CanvasStyle.h:
  48348. * html/FormDataList.h:
  48349. * html/HTMLAnchorElement.h:
  48350. * html/HTMLAppletElement.h:
  48351. * html/HTMLAreaElement.h:
  48352. * html/HTMLBRElement.h:
  48353. * html/HTMLBaseElement.h:
  48354. * html/HTMLBaseFontElement.h:
  48355. * html/HTMLBlockquoteElement.h:
  48356. * html/HTMLBodyElement.h:
  48357. * html/HTMLButtonElement.h:
  48358. * html/HTMLCanvasElement.h:
  48359. * html/HTMLCollection.h:
  48360. * html/HTMLDListElement.h:
  48361. * html/HTMLDirectoryElement.h:
  48362. * html/HTMLDivElement.h:
  48363. * html/HTMLElement.h:
  48364. * html/HTMLElementFactory.h:
  48365. * html/HTMLEmbedElement.h:
  48366. * html/HTMLFieldSetElement.h:
  48367. * html/HTMLFontElement.h:
  48368. * html/HTMLFormCollection.h:
  48369. * html/HTMLFormElement.h:
  48370. * html/HTMLFrameSetElement.h:
  48371. * html/HTMLGenericFormElement.h:
  48372. * html/HTMLHRElement.h:
  48373. * html/HTMLHeadElement.h:
  48374. * html/HTMLHeadingElement.h:
  48375. * html/HTMLHtmlElement.h:
  48376. * html/HTMLImageElement.h:
  48377. * html/HTMLImageLoader.h:
  48378. * html/HTMLInputElement.h:
  48379. * html/HTMLIsIndexElement.h:
  48380. * html/HTMLKeygenElement.h:
  48381. * html/HTMLLIElement.h:
  48382. * html/HTMLLabelElement.h:
  48383. * html/HTMLLegendElement.h:
  48384. * html/HTMLLinkElement.h:
  48385. * html/HTMLMapElement.h:
  48386. * html/HTMLMarqueeElement.h:
  48387. * html/HTMLMenuElement.h:
  48388. * html/HTMLMetaElement.h:
  48389. * html/HTMLModElement.h:
  48390. * html/HTMLNameCollection.h:
  48391. * html/HTMLOListElement.h:
  48392. * html/HTMLObjectElement.h:
  48393. * html/HTMLOptGroupElement.h:
  48394. * html/HTMLOptionElement.h:
  48395. * html/HTMLOptionsCollection.h:
  48396. * html/HTMLParagraphElement.h:
  48397. * html/HTMLParamElement.h:
  48398. * html/HTMLParser.h:
  48399. * html/HTMLPlugInElement.h:
  48400. * html/HTMLPreElement.h:
  48401. * html/HTMLQuoteElement.h:
  48402. * html/HTMLScriptElement.h:
  48403. * html/HTMLSelectElement.h:
  48404. * html/HTMLStyleElement.h:
  48405. * html/HTMLTableCaptionElement.h:
  48406. * html/HTMLTableCellElement.h:
  48407. * html/HTMLTableColElement.h:
  48408. * html/HTMLTableElement.h:
  48409. * html/HTMLTablePartElement.h:
  48410. * html/HTMLTableRowElement.h:
  48411. * html/HTMLTableSectionElement.h:
  48412. * html/HTMLTextAreaElement.h:
  48413. * html/HTMLTextFieldInnerElement.h:
  48414. * html/HTMLTitleElement.h:
  48415. * html/HTMLUListElement.h:
  48416. * ksvg2/css/SVGRenderStyle.h:
  48417. * ksvg2/css/SVGRenderStyleDefs.h:
  48418. * ksvg2/events/JSSVGLazyEventListener.h:
  48419. * ksvg2/events/SVGZoomEvent.h:
  48420. * ksvg2/misc/KCanvasRenderingStyle.h:
  48421. * ksvg2/misc/PointerEventsHitRules.h:
  48422. * ksvg2/misc/SVGDocumentExtensions.h:
  48423. * ksvg2/misc/SVGImageLoader.h:
  48424. * ksvg2/misc/TimeScheduler.h:
  48425. * ksvg2/svg/GradientAttributes.h:
  48426. * ksvg2/svg/LinearGradientAttributes.h:
  48427. * ksvg2/svg/PatternAttributes.h:
  48428. * ksvg2/svg/RadialGradientAttributes.h:
  48429. * ksvg2/svg/SVGAElement.h:
  48430. * ksvg2/svg/SVGAngle.h:
  48431. * ksvg2/svg/SVGAnimateColorElement.h:
  48432. * ksvg2/svg/SVGAnimateElement.h:
  48433. * ksvg2/svg/SVGAnimateMotionElement.h:
  48434. * ksvg2/svg/SVGAnimateTransformElement.h:
  48435. * ksvg2/svg/SVGAnimatedPathData.h:
  48436. * ksvg2/svg/SVGAnimatedPoints.h:
  48437. * ksvg2/svg/SVGAnimatedTemplate.h:
  48438. * ksvg2/svg/SVGAnimationElement.h:
  48439. * ksvg2/svg/SVGCircleElement.h:
  48440. * ksvg2/svg/SVGClipPathElement.h:
  48441. * ksvg2/svg/SVGColor.h:
  48442. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  48443. * ksvg2/svg/SVGCursorElement.h:
  48444. * ksvg2/svg/SVGDOMImplementation.h:
  48445. * ksvg2/svg/SVGDefsElement.h:
  48446. * ksvg2/svg/SVGDescElement.h:
  48447. * ksvg2/svg/SVGDocument.h:
  48448. * ksvg2/svg/SVGElement.h:
  48449. * ksvg2/svg/SVGElementInstance.h:
  48450. * ksvg2/svg/SVGElementInstanceList.h:
  48451. * ksvg2/svg/SVGEllipseElement.h:
  48452. * ksvg2/svg/SVGExternalResourcesRequired.h:
  48453. * ksvg2/svg/SVGFEBlendElement.h:
  48454. * ksvg2/svg/SVGFEColorMatrixElement.h:
  48455. * ksvg2/svg/SVGFEComponentTransferElement.h:
  48456. * ksvg2/svg/SVGFECompositeElement.h:
  48457. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  48458. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  48459. * ksvg2/svg/SVGFEDistantLightElement.h:
  48460. * ksvg2/svg/SVGFEFloodElement.h:
  48461. * ksvg2/svg/SVGFEFuncAElement.h:
  48462. * ksvg2/svg/SVGFEFuncBElement.h:
  48463. * ksvg2/svg/SVGFEFuncGElement.h:
  48464. * ksvg2/svg/SVGFEFuncRElement.h:
  48465. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  48466. * ksvg2/svg/SVGFEImageElement.h:
  48467. * ksvg2/svg/SVGFELightElement.h:
  48468. * ksvg2/svg/SVGFEMergeElement.h:
  48469. * ksvg2/svg/SVGFEMergeNodeElement.h:
  48470. * ksvg2/svg/SVGFEOffsetElement.h:
  48471. * ksvg2/svg/SVGFEPointLightElement.h:
  48472. * ksvg2/svg/SVGFESpecularLightingElement.h:
  48473. * ksvg2/svg/SVGFESpotLightElement.h:
  48474. * ksvg2/svg/SVGFETileElement.h:
  48475. * ksvg2/svg/SVGFETurbulenceElement.h:
  48476. * ksvg2/svg/SVGFilterElement.h:
  48477. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  48478. * ksvg2/svg/SVGFitToViewBox.h:
  48479. * ksvg2/svg/SVGForeignObjectElement.h:
  48480. * ksvg2/svg/SVGGElement.h:
  48481. * ksvg2/svg/SVGGradientElement.h:
  48482. * ksvg2/svg/SVGImageElement.h:
  48483. * ksvg2/svg/SVGLangSpace.h:
  48484. * ksvg2/svg/SVGLength.h:
  48485. * ksvg2/svg/SVGLengthList.h:
  48486. * ksvg2/svg/SVGLineElement.h:
  48487. * ksvg2/svg/SVGLinearGradientElement.h:
  48488. * ksvg2/svg/SVGList.h:
  48489. * ksvg2/svg/SVGListTraits.h:
  48490. * ksvg2/svg/SVGLocatable.h:
  48491. * ksvg2/svg/SVGMarkerElement.h:
  48492. * ksvg2/svg/SVGMaskElement.h:
  48493. * ksvg2/svg/SVGMetadataElement.h:
  48494. * ksvg2/svg/SVGNumberList.h:
  48495. * ksvg2/svg/SVGPaint.h:
  48496. * ksvg2/svg/SVGParserUtilities.h:
  48497. * ksvg2/svg/SVGPathElement.h:
  48498. * ksvg2/svg/SVGPathSeg.h:
  48499. * ksvg2/svg/SVGPathSegArc.h:
  48500. * ksvg2/svg/SVGPathSegClosePath.h:
  48501. * ksvg2/svg/SVGPathSegCurvetoCubic.h:
  48502. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
  48503. * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
  48504. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
  48505. * ksvg2/svg/SVGPathSegLineto.h:
  48506. * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
  48507. * ksvg2/svg/SVGPathSegLinetoVertical.h:
  48508. * ksvg2/svg/SVGPathSegList.h:
  48509. * ksvg2/svg/SVGPathSegMoveto.h:
  48510. * ksvg2/svg/SVGPatternElement.h:
  48511. * ksvg2/svg/SVGPointList.h:
  48512. * ksvg2/svg/SVGPolyElement.h:
  48513. * ksvg2/svg/SVGPolygonElement.h:
  48514. * ksvg2/svg/SVGPolylineElement.h:
  48515. * ksvg2/svg/SVGPreserveAspectRatio.h:
  48516. * ksvg2/svg/SVGRadialGradientElement.h:
  48517. * ksvg2/svg/SVGRectElement.h:
  48518. * ksvg2/svg/SVGRenderingIntent.h:
  48519. * ksvg2/svg/SVGSVGElement.h:
  48520. * ksvg2/svg/SVGScriptElement.h:
  48521. * ksvg2/svg/SVGSetElement.h:
  48522. * ksvg2/svg/SVGStopElement.h:
  48523. * ksvg2/svg/SVGStringList.h:
  48524. * ksvg2/svg/SVGStylable.h:
  48525. * ksvg2/svg/SVGStyleElement.h:
  48526. * ksvg2/svg/SVGStyledElement.h:
  48527. * ksvg2/svg/SVGStyledLocatableElement.h:
  48528. * ksvg2/svg/SVGStyledTransformableElement.h:
  48529. * ksvg2/svg/SVGSwitchElement.h:
  48530. * ksvg2/svg/SVGSymbolElement.h:
  48531. * ksvg2/svg/SVGTRefElement.h:
  48532. * ksvg2/svg/SVGTSpanElement.h:
  48533. * ksvg2/svg/SVGTests.h:
  48534. * ksvg2/svg/SVGTextContentElement.h:
  48535. * ksvg2/svg/SVGTextElement.h:
  48536. * ksvg2/svg/SVGTextPositioningElement.h:
  48537. * ksvg2/svg/SVGTitleElement.h:
  48538. * ksvg2/svg/SVGTransform.h:
  48539. * ksvg2/svg/SVGTransformList.h:
  48540. * ksvg2/svg/SVGTransformable.h:
  48541. * ksvg2/svg/SVGURIReference.h:
  48542. * ksvg2/svg/SVGUnitTypes.h:
  48543. * ksvg2/svg/SVGUseElement.h:
  48544. * ksvg2/svg/SVGViewElement.h:
  48545. * ksvg2/svg/SVGZoomAndPan.h:
  48546. * loader/CachedCSSStyleSheet.h:
  48547. * loader/CachedImage.h:
  48548. * loader/CachedXSLStyleSheet.h:
  48549. * loader/DocumentLoader.h:
  48550. * loader/Request.h:
  48551. * loader/SubresourceLoader.h:
  48552. * loader/icon/IconDataCache.h:
  48553. * loader/icon/IconDatabase.h:
  48554. * loader/icon/IconLoader.h:
  48555. * loader/icon/SQLDatabase.h:
  48556. * loader/icon/SQLStatement.h:
  48557. * loader/icon/SQLTransaction.h:
  48558. * page/Frame.h:
  48559. * page/FrameLoadRequest.h:
  48560. * page/FrameTree.h:
  48561. * page/FrameView.h:
  48562. * page/PageState.h:
  48563. * page/Plugin.h:
  48564. * page/qt/FrameQt.h:
  48565. * page/qt/FrameQtClient.h:
  48566. * platform/Arena.h:
  48567. * platform/ArrayImpl.h:
  48568. * platform/Cursor.h:
  48569. * platform/DeprecatedArray.h:
  48570. * platform/DeprecatedCString.h:
  48571. * platform/FileChooser.h:
  48572. * platform/Font.h:
  48573. * platform/FontCache.h:
  48574. * platform/FontData.h:
  48575. * platform/FontDescription.h:
  48576. * platform/FontFamily.h:
  48577. * platform/GlyphBuffer.h:
  48578. * platform/GlyphMap.h:
  48579. * platform/GlyphWidthMap.h:
  48580. * platform/Logging.h:
  48581. * platform/Pasteboard.h:
  48582. * platform/PlatformString.h:
  48583. * platform/PlugInInfoStore.h:
  48584. * platform/PopupMenu.h:
  48585. * platform/PopupMenuClient.h:
  48586. * platform/ScrollBar.h:
  48587. * platform/ScrollView.h:
  48588. * platform/SearchPopupMenu.h:
  48589. * platform/Shared.h:
  48590. * platform/Sound.h:
  48591. * platform/SystemTime.h:
  48592. * platform/Timer.h:
  48593. * platform/Widget.h:
  48594. * platform/cf/RetainPtr.h:
  48595. * platform/gdk/ChromeClientGdk.h:
  48596. * platform/gdk/FontPlatformData.h:
  48597. * platform/gdk/FrameGdk.h:
  48598. * platform/gdk/KeyboardCodes.h:
  48599. * platform/gdk/RenderPopupMenuGdk.h:
  48600. * platform/gdk/RenderThemeGdk.h:
  48601. * platform/graphics/BitmapImage.h:
  48602. * platform/graphics/Color.h:
  48603. * platform/graphics/FloatPoint.h:
  48604. * platform/graphics/FloatPoint3D.h:
  48605. * platform/graphics/FloatRect.h:
  48606. * platform/graphics/Icon.h:
  48607. * platform/graphics/Image.h:
  48608. * platform/graphics/ImageAnimationObserver.h:
  48609. * platform/graphics/ImageBuffer.h:
  48610. * platform/graphics/ImageSource.h:
  48611. * platform/graphics/IntPoint.h:
  48612. * platform/graphics/IntRect.h:
  48613. * platform/graphics/IntSize.h:
  48614. * platform/graphics/IntSizeHash.h:
  48615. * platform/graphics/PathTraversalState.h:
  48616. * platform/graphics/Pen.h:
  48617. * platform/graphics/qt/ImageDecoderQt.h:
  48618. * platform/graphics/svg/SVGImage.h:
  48619. * platform/graphics/svg/SVGImageEmptyClients.h:
  48620. * platform/graphics/svg/SVGPaintServer.h:
  48621. * platform/graphics/svg/SVGPaintServerGradient.h:
  48622. * platform/graphics/svg/SVGPaintServerLinearGradient.h:
  48623. * platform/graphics/svg/SVGPaintServerPattern.h:
  48624. * platform/graphics/svg/SVGPaintServerRadialGradient.h:
  48625. * platform/graphics/svg/SVGPaintServerSolid.h:
  48626. * platform/graphics/svg/SVGResource.h:
  48627. * platform/graphics/svg/SVGResourceClipper.h:
  48628. * platform/graphics/svg/SVGResourceFilter.h:
  48629. * platform/graphics/svg/SVGResourceMarker.h:
  48630. * platform/graphics/svg/SVGResourceMasker.h:
  48631. * platform/graphics/svg/cg/CgSupport.h:
  48632. * platform/graphics/svg/filters/SVGDistantLightSource.h:
  48633. * platform/graphics/svg/filters/SVGFEBlend.h:
  48634. * platform/graphics/svg/filters/SVGFEColorMatrix.h:
  48635. * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
  48636. * platform/graphics/svg/filters/SVGFEComposite.h:
  48637. * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
  48638. * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
  48639. * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
  48640. * platform/graphics/svg/filters/SVGFEFlood.h:
  48641. * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
  48642. * platform/graphics/svg/filters/SVGFEImage.h:
  48643. * platform/graphics/svg/filters/SVGFEMerge.h:
  48644. * platform/graphics/svg/filters/SVGFEMorphology.h:
  48645. * platform/graphics/svg/filters/SVGFEOffset.h:
  48646. * platform/graphics/svg/filters/SVGFESpecularLighting.h:
  48647. * platform/graphics/svg/filters/SVGFETile.h:
  48648. * platform/graphics/svg/filters/SVGFETurbulence.h:
  48649. * platform/graphics/svg/filters/SVGFilterEffect.h:
  48650. * platform/graphics/svg/filters/SVGLightSource.h:
  48651. * platform/graphics/svg/filters/SVGPointLightSource.h:
  48652. * platform/graphics/svg/filters/SVGSpotLightSource.h:
  48653. * platform/mac/FontPlatformData.h:
  48654. * platform/mac/PlatformScrollBar.h:
  48655. * platform/network/AuthenticationChallenge.h:
  48656. * platform/network/Credential.h:
  48657. * platform/network/HTTPHeaderMap.h:
  48658. * platform/network/ProtectionSpace.h:
  48659. * platform/network/ResourceError.h:
  48660. * platform/network/ResourceRequest.h:
  48661. * platform/network/ResourceResponse.h:
  48662. * platform/network/cf/FormDataStreamCFNet.h:
  48663. * platform/network/cf/ResourceRequestCFNet.h:
  48664. * platform/network/cf/ResourceResponseCFNet.h:
  48665. * platform/network/gdk/ResourceHandleManager.h:
  48666. * platform/network/mac/AuthenticationMac.h:
  48667. * platform/network/mac/FormDataStreamMac.h:
  48668. * platform/network/qt/ResourceHandleManagerKDE.h:
  48669. * platform/network/qt/ResourceHandleManagerQt.h:
  48670. * platform/network/win/ResourceHandleWin.h:
  48671. * platform/qt/FontPlatformData.h:
  48672. * platform/qt/KeyboardCodes.h:
  48673. * platform/qt/PlatformScrollBar.h:
  48674. * platform/qt/ScrollViewCanvasQt.h:
  48675. * platform/qt/SharedTimerQt.h:
  48676. * platform/win/FontPlatformData.h:
  48677. * platform/win/PlatformScrollBar.h:
  48678. * rendering/AutoTableLayout.h:
  48679. * rendering/HitTestRequest.h:
  48680. * rendering/HitTestResult.h:
  48681. * rendering/InlineBox.h:
  48682. * rendering/InlineFlowBox.h:
  48683. * rendering/Length.h:
  48684. * rendering/ListMarkerBox.h:
  48685. * rendering/RenderBox.h:
  48686. * rendering/RenderMenuList.h:
  48687. * rendering/RenderPart.h:
  48688. * rendering/RenderPartObject.h:
  48689. * rendering/RenderPath.h:
  48690. * rendering/RenderReplaced.h:
  48691. * rendering/RenderSVGContainer.h:
  48692. * rendering/RenderSVGImage.h:
  48693. * rendering/RenderSVGInline.h:
  48694. * rendering/RenderSVGInlineText.h:
  48695. * rendering/RenderSVGTSpan.h:
  48696. * rendering/RenderSVGText.h:
  48697. * rendering/RenderStyle.h:
  48698. * rendering/RenderTableCol.h:
  48699. * rendering/RenderThemeWin.h:
  48700. * rendering/bidi.h:
  48701. * xml/DOMParser.h:
  48702. * xml/XPathEvaluator.h:
  48703. * xml/XPathExpression.h:
  48704. * xml/XPathExpressionNode.h:
  48705. * xml/XPathFunctions.h:
  48706. * xml/XPathNSResolver.h:
  48707. * xml/XPathNamespace.h:
  48708. * xml/XPathParser.h:
  48709. * xml/XPathPath.h:
  48710. * xml/XPathPredicate.h:
  48711. * xml/XPathResult.h:
  48712. * xml/XPathStep.h:
  48713. * xml/XPathUtil.h:
  48714. * xml/XPathValue.h:
  48715. * xml/XPathVariableReference.h:
  48716. * xml/XSLImportRule.h:
  48717. * xml/XSLStyleSheet.h:
  48718. * xml/XSLTProcessor.h:
  48719. * xml/xmlhttprequest.h:
  48720. 2007-01-15 Anders Carlsson <acarlsson@apple.com>
  48721. Build fix.
  48722. * loader/ProgressTracker.cpp:
  48723. 2007-01-15 Lars Knoll <lars@trolltech.com>
  48724. Fix the Qt build
  48725. * WebCore.pro:
  48726. 2007-01-15 Anders Carlsson <acarlsson@apple.com>
  48727. Reviewed by Darin.
  48728. * loader/ProgressTracker.cpp:
  48729. Set finalProgressValue to its value explicitly instead of calculating it
  48730. (which causes a global initializer to be generated).
  48731. 2007-01-15 Anders Carlsson <acarlsson@apple.com>
  48732. Reviewed by Darin and Adam.
  48733. Move progress tracking down to WebCore.
  48734. * WebCore.exp:
  48735. Add ProgressTracker::estimatedProgress() to be used by WebKit.
  48736. * WebCore.xcodeproj/project.pbxproj:
  48737. Add ProgressTracker.[cpp|h]
  48738. * loader/FrameLoader.cpp:
  48739. (WebCore::FrameLoader::prepareForLoadStart):
  48740. (WebCore::FrameLoader::clearProvisionalLoad):
  48741. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  48742. (WebCore::FrameLoader::startLoading):
  48743. (WebCore::FrameLoader::didReceiveResponse):
  48744. (WebCore::FrameLoader::didReceiveData):
  48745. (WebCore::FrameLoader::didFailToLoad):
  48746. (WebCore::FrameLoader::requestFromDelegate):
  48747. (WebCore::FrameLoader::didFinishLoad):
  48748. Call directly to the progress tracker instead of through the frame loader client.
  48749. * loader/FrameLoaderClient.h:
  48750. Get rid of the old methods and add new methods for tracking progress.
  48751. * loader/ProgressTracker.cpp: Added.
  48752. (WebCore::ProgressItem::ProgressItem):
  48753. (WebCore::ProgressTracker::ProgressTracker):
  48754. (WebCore::ProgressTracker::~ProgressTracker):
  48755. (WebCore::ProgressTracker::estimatedProgress):
  48756. (WebCore::ProgressTracker::reset):
  48757. (WebCore::ProgressTracker::progressStarted):
  48758. (WebCore::ProgressTracker::progressCompleted):
  48759. (WebCore::ProgressTracker::finalProgressComplete):
  48760. (WebCore::ProgressTracker::incrementProgress):
  48761. (WebCore::ProgressTracker::completeProgress):
  48762. (WebCore::ProgressTracker::createUniqueIdentifier):
  48763. * loader/ProgressTracker.h: Added.
  48764. New per page class which tracks progress.
  48765. * loader/ResourceLoader.cpp:
  48766. (WebCore::ResourceLoader::willSendRequest):
  48767. * page/Page.cpp:
  48768. (WebCore::Page::Page):
  48769. * page/Page.h:
  48770. (WebCore::Page::progress):
  48771. Move createUniqueIdentifier to ProgressTracker, add ProgressTracker object to Page.
  48772. * platform/graphics/svg/SVGImageEmptyClients.h:
  48773. (WebCore::SVGEmptyFrameLoaderClient::willChangeEstimatedProgress):
  48774. (WebCore::SVGEmptyFrameLoaderClient::didChangeEstimatedProgress):
  48775. (WebCore::SVGEmptyFrameLoaderClient::postProgressStartedNotification):
  48776. (WebCore::SVGEmptyFrameLoaderClient::postProgressEstimateChangedNotification):
  48777. (WebCore::SVGEmptyFrameLoaderClient::postProgressFinishedNotification):
  48778. Add new methods, get rid of the old ones.
  48779. 2007-01-15 Adam Roben <aroben@apple.com>
  48780. Reviewed by Anders.
  48781. Fix comment.
  48782. * html/HTMLScriptElement.cpp:
  48783. (WebCore::HTMLScriptElement::shouldExecuteAsJavaScript):
  48784. 2007-01-15 John Sullivan <sullivan@apple.com>
  48785. * platform/ContextMenu.cpp:
  48786. (WebCore::ContextMenu::checkOrEnableIfNeeded):
  48787. Leopard build fix; don't declare one of the case values twice
  48788. 2007-01-15 Mitz Pettel <mitz@webkit.org>
  48789. Reviewed by Darin.
  48790. - fix http://bugs.webkit.org/show_bug.cgi?id=8604
  48791. rowspan does not work when set through javascript
  48792. Covered by existing tests.
  48793. * rendering/RenderTableCell.cpp:
  48794. (WebCore::RenderTableCell::updateFromElement): Mark the section for grid recalc
  48795. if row span or column span change.
  48796. 2007-01-15 Adam Roben <aroben@apple.com>
  48797. Reviewed by Darin.
  48798. Small context menu fixes.
  48799. * platform/ContextMenu.cpp:
  48800. (WebCore::ContextMenu::populate): Fix typo.
  48801. (WebCore::ContextMenu::checkOrEnableIfNeeded): Disabled "No Guesses
  48802. Found", and added all enum values explicitly.
  48803. 2007-01-15 Alexey Proskuryakov <ap@webkit.org>
  48804. Reviewed by Darin.
  48805. http://bugs.webkit.org/show_bug.cgi?id=6272
  48806. XMLHttpRequest freezes on getting a missing document with overridden Content-Length
  48807. http://bugs.webkit.org/show_bug.cgi?id=6212
  48808. Investigate disallowing some XMLHttpRequest headers from being set via setRequestHeader.
  48809. Tests:
  48810. - http/tests/xmlhttprequest/connection-error-sync.html
  48811. - http/tests/xmlhttprequest/set-dangerous-headers.html
  48812. * bindings/js/kjs_binding.cpp:
  48813. (KJS::):
  48814. (KJS::setDOMException): Added support for NETWORK_ERR. Changed the temporary
  48815. PERMISSION_DENIED error into a special case.
  48816. * loader/FrameLoader.cpp:
  48817. (WebCore::FrameLoader::loadResourceSynchronously):
  48818. * loader/FrameLoader.h:
  48819. Return the error object to the caller. Removed an extra local variable for error,
  48820. which shadowed the one from enclosing block.
  48821. * dom/XMLTokenizer.cpp:
  48822. (WebCore::openFunc):
  48823. * xml/XSLTProcessor.cpp:
  48824. (WebCore::docLoaderFunc):
  48825. Updated to pass an error object (currently ignored).
  48826. * xml/xmlhttprequest.cpp:
  48827. (WebCore::canSetRequestHeader): Added. The headers to block include the ones from
  48828. the current XMLHttpRequest draft plus "Via", which is blocked by Firefox.
  48829. (WebCore::XMLHttpRequest::send): Raise an exception if a sync request results in
  48830. an error.
  48831. (WebCore::XMLHttpRequest::setRequestHeader): Call canSetRequestHeader().
  48832. * xml/xmlhttprequest.h:
  48833. (WebCore::): Added NETWORK_ERR and a comment about PERMISSION_DENIED.
  48834. 2007-01-15 Zack Rusin <zack@kde.org>
  48835. Optimizing rendering on the Qt platform. Mainly
  48836. switching from client side QImage to QPixmap's.
  48837. Also cleaning the the ScrollViewCanvasQt code
  48838. quite a bit.
  48839. * platform/graphics/ImageSource.h: use QPixmap
  48840. * platform/graphics/qt/GraphicsContextQt.cpp:
  48841. (WebCore::TransparencyLayer::TransparencyLayer):
  48842. (WebCore::GraphicsContext::clip): clip rects when you can
  48843. * platform/graphics/qt/ImageDecoderQt.cpp:
  48844. (WebCore::ImageDecoderQt::ImageData::ImageData):
  48845. (WebCore::ImageDecoderQt::ReadContext::read):
  48846. (WebCore::ImageDecoderQt::ReadContext::readImageLines):
  48847. (WebCore::ImageDecoderQt::imageAtIndex):
  48848. * platform/graphics/qt/ImageDecoderQt.h: use QPixmap
  48849. * platform/graphics/qt/ImageQt.cpp: QPixmap instead of QImage
  48850. (WebCore::BitmapImage::draw):
  48851. (WebCore::BitmapImage::drawTiled):
  48852. * platform/graphics/qt/ImageSourceQt.cpp:
  48853. (WebCore::):
  48854. (WebCore::ImageSource::createFrameAtIndex):
  48855. (WebCore::ImageSource::frameHasAlphaAtIndex):
  48856. * platform/qt/ScrollViewCanvasQt.cpp: clean up
  48857. (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
  48858. (WebCore::ScrollViewCanvasQt::updateFrameView):
  48859. (WebCore::ScrollViewCanvasQt::paintEvent):
  48860. (WebCore::ScrollViewCanvasQt::mouseMoveEvent):
  48861. (WebCore::ScrollViewCanvasQt::mousePressEvent):
  48862. (WebCore::ScrollViewCanvasQt::mouseReleaseEvent):
  48863. (WebCore::ScrollViewCanvasQt::handleKeyEvent):
  48864. * platform/qt/ScrollViewCanvasQt.h:
  48865. * platform/qt/ScrollViewQt.cpp: remove hacks
  48866. (WebCore::ScrollView::ScrollView):
  48867. (WebCore::ScrollView::setParentWidget):
  48868. (WebCore::ScrollView::updateContents):
  48869. 2007-01-15 Lars Knoll <lars@trolltech.com>
  48870. Reviewed by Zack
  48871. Fix weird crashes when running the layout tests. The
  48872. reason was that I used KURL (and thus DeprecatedString)
  48873. in a thread. Unfortunately that class is not threadsafe
  48874. at all.
  48875. * platform/network/qt/ResourceHandleManagerQt.cpp:
  48876. (WebCore::RequestQt::RequestQt):
  48877. (WebCore::RequestQt::setURL):
  48878. (WebCore::ResourceHandleManager::add):
  48879. (WebCore::ResourceHandleManager::cancel):
  48880. (WebCore::ResourceHandleManager::receivedResponse):
  48881. (WebCore::FileLoader::request):
  48882. (WebCore::HostInfo::HostInfo):
  48883. (WebCore::NetworkLoader::request):
  48884. (WebCore::NetworkLoader::cancel):
  48885. * platform/network/qt/ResourceHandleManagerQt.h:
  48886. (WebCore::HostInfo::HostInfo):
  48887. (WebCore::HostInfo::isLocalFile):
  48888. 2007-01-15 Eric Seidel <eric@webkit.org>
  48889. Reviewed by rwlbuis.
  48890. Make isValid check not malloc 3 SVGStringLists for every element.
  48891. No test possible, performance fix only.
  48892. * ksvg2/svg/SVGTests.cpp:
  48893. (WebCore::SVGTests::isValid):
  48894. 2007-01-15 Rob Buis <buis@kde.org>
  48895. Reviewed by Eric.
  48896. Remove unused member var.
  48897. * ksvg2/svg/SVGStyledElement.h:
  48898. 2007-01-15 Rob Buis <buis@kde.org>
  48899. Reviewed by Eric.
  48900. http://bugs.webkit.org/show_bug.cgi?id=12069
  48901. Hit detection fails under some viewbox constraints
  48902. Do not take viewBox into account when hit testing svg container.
  48903. * rendering/RenderSVGContainer.cpp:
  48904. (WebCore::RenderSVGContainer::nodeAtPoint):
  48905. 2007-01-15 David Hyatt <hyatt@apple.com>
  48906. Fix for 12275, negative margins confuse page breaks.
  48907. Reviewed by Eric
  48908. * rendering/RenderBlock.cpp:
  48909. (WebCore::RenderBlock::paintChildren):
  48910. 2007-01-15 Eric Seidel <eric@webkit.org>
  48911. Reviewed by mjs.
  48912. SVG gradients do not notice stop additions
  48913. http://bugs.webkit.org/show_bug.cgi?id=12192
  48914. Test: svg/custom/gradient-add-stops.svg
  48915. * ksvg2/svg/SVGGradientElement.cpp:
  48916. (WebCore::SVGGradientElement::childrenChanged):
  48917. * ksvg2/svg/SVGGradientElement.h:
  48918. 2007-01-14 David Hyatt <hyatt@apple.com>
  48919. Fix for bug 10356, positioning doesn't work with <svg> elements in XHTML. Change the requiresLayer
  48920. check to use the DOM, since the old check would fail if the parent block had no element.
  48921. Reviewed by Eric
  48922. Added svg/custom/relative-positioning.html (absolute/fixed too)
  48923. * rendering/RenderSVGContainer.cpp:
  48924. (WebCore::RenderSVGContainer::requiresLayer):
  48925. 2007-01-14 Eric Seidel <eric@webkit.org>
  48926. Reviewed by hyatt.
  48927. SVG does not correctly handle float: left
  48928. http://bugs.webkit.org/show_bug.cgi?id=12210
  48929. Test: svg/custom/svg-float-border-padding.xml
  48930. * rendering/RenderSVGContainer.cpp:
  48931. (WebCore::RenderSVGContainer::paint):
  48932. 2007-01-14 David Hyatt <hyatt@apple.com>
  48933. More work to fix 10145, regression where form elements don't break properly. Make sure to really use
  48934. the parent of the replaced element's whitespace value everywhere.
  48935. Reviewed by olliej
  48936. fast/replaced/three-selects-break.html
  48937. * rendering/bidi.cpp:
  48938. (WebCore::RenderBlock::findNextLineBreak):
  48939. 2007-01-14 Sam Weinig <sam@webkit.org>
  48940. Reviewed by Darin and then by Mitz.
  48941. Patch for http://bugs.webkit.org/show_bug.cgi?id=12228
  48942. Cleanup assorted CSS classes
  48943. * css/CSSBorderImageValue.cpp:
  48944. (WebCore::CSSBorderImageValue::CSSBorderImageValue):
  48945. (WebCore::CSSBorderImageValue::cssText):
  48946. * css/CSSBorderImageValue.h:
  48947. * css/CSSComputedStyleDeclaration.cpp:
  48948. (WebCore::valueForLength):
  48949. (WebCore::valueForBorderStyle):
  48950. (WebCore::valueForTextAlign):
  48951. (WebCore::valueForShadow):
  48952. (WebCore::getPositionOffsetValue):
  48953. (WebCore::CSSComputedStyleDeclaration::cssText):
  48954. (WebCore::primitiveValueFromLength):
  48955. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  48956. (WebCore::CSSComputedStyleDeclaration::getPropertyPriority):
  48957. (WebCore::CSSComputedStyleDeclaration::removeProperty):
  48958. (WebCore::CSSComputedStyleDeclaration::setProperty):
  48959. (WebCore::CSSComputedStyleDeclaration::length):
  48960. (WebCore::CSSComputedStyleDeclaration::item):
  48961. * css/CSSComputedStyleDeclaration.h:
  48962. * css/CSSCursorImageValue.cpp:
  48963. (WebCore::CSSCursorImageValue::CSSCursorImageValue):
  48964. * css/CSSCursorImageValue.h:
  48965. * css/CSSGrammar.y:
  48966. * css/CSSImageValue.cpp:
  48967. * css/CSSImageValue.h:
  48968. * css/CSSInheritedValue.cpp:
  48969. * css/CSSInheritedValue.h:
  48970. * css/CSSInitialValue.cpp:
  48971. * css/CSSInitialValue.h:
  48972. * css/CSSMutableStyleDeclaration.cpp:
  48973. (WebCore::CSSMutableStyleDeclaration::CSSMutableStyleDeclaration):
  48974. (WebCore::CSSMutableStyleDeclaration::operator=):
  48975. (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
  48976. (WebCore::CSSMutableStyleDeclaration::get4Values):
  48977. (WebCore::CSSMutableStyleDeclaration::getShorthandValue):
  48978. (WebCore::CSSMutableStyleDeclaration::getPropertyCSSValue):
  48979. (WebCore::CSSMutableStyleDeclaration::removeProperty):
  48980. (WebCore::CSSMutableStyleDeclaration::setChanged):
  48981. (WebCore::CSSMutableStyleDeclaration::getPropertyPriority):
  48982. (WebCore::CSSMutableStyleDeclaration::getPropertyShorthand):
  48983. (WebCore::CSSMutableStyleDeclaration::isPropertyImplicit):
  48984. (WebCore::CSSMutableStyleDeclaration::setProperty):
  48985. (WebCore::CSSMutableStyleDeclaration::setImageProperty):
  48986. (WebCore::CSSMutableStyleDeclaration::parseDeclaration):
  48987. (WebCore::CSSMutableStyleDeclaration::addParsedProperties):
  48988. (WebCore::CSSMutableStyleDeclaration::setLengthProperty):
  48989. (WebCore::CSSMutableStyleDeclaration::cssText):
  48990. (WebCore::CSSMutableStyleDeclaration::merge):
  48991. (WebCore::CSSMutableStyleDeclaration::removePropertiesInSet):
  48992. * css/CSSMutableStyleDeclaration.h:
  48993. (WebCore::CSSMutableStyleDeclaration::setProperty):
  48994. (WebCore::CSSMutableStyleDeclaration::removeProperty):
  48995. * css/CSSNamespace.h:
  48996. (WebCore::CSSNamespace::CSSNamespace):
  48997. * css/CSSPrimitiveValue.cpp:
  48998. (WebCore::isCSSTokenizerIdentifier):
  48999. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  49000. (WebCore::CSSPrimitiveValue::cleanup):
  49001. (WebCore::CSSPrimitiveValue::computeLengthInt):
  49002. (WebCore::CSSPrimitiveValue::computeLengthIntForLength):
  49003. (WebCore::CSSPrimitiveValue::computeLengthShort):
  49004. (WebCore::CSSPrimitiveValue::computeLengthFloat):
  49005. (WebCore::CSSPrimitiveValue::setFloatValue):
  49006. (WebCore::scaleFactorForConversion):
  49007. (WebCore::CSSPrimitiveValue::getFloatValue):
  49008. (WebCore::CSSPrimitiveValue::setStringValue):
  49009. (WebCore::CSSPrimitiveValue::getStringValue):
  49010. (WebCore::CSSPrimitiveValue::parseString):
  49011. (WebCore::CSSPrimitiveValue::getIdent):
  49012. (WebCore::CSSPrimitiveValue::cssText):
  49013. * css/CSSPrimitiveValue.h:
  49014. (WebCore::CSSPrimitiveValue::getCounterValue):
  49015. (WebCore::CSSPrimitiveValue::getRectValue):
  49016. (WebCore::CSSPrimitiveValue::getRGBColorValue):
  49017. (WebCore::CSSPrimitiveValue::getPairValue):
  49018. (WebCore::CSSPrimitiveValue::getDashboardRegionValue):
  49019. * css/CSSProperty.cpp:
  49020. (WebCore::operator==):
  49021. * css/CSSProperty.h:
  49022. (WebCore::CSSProperty::operator=):
  49023. * css/CSSQuirkPrimitiveValue.h:
  49024. (WebCore::CSSQuirkPrimitiveValue::CSSQuirkPrimitiveValue):
  49025. * css/CSSRuleList.cpp:
  49026. (WebCore::CSSRuleList::CSSRuleList):
  49027. (WebCore::CSSRuleList::deleteRule):
  49028. (WebCore::CSSRuleList::insertRule):
  49029. * css/CSSRuleList.h:
  49030. (WebCore::CSSRuleList::item):
  49031. * css/CSSSelector.cpp:
  49032. (WebCore::CSSSelector::print):
  49033. (WebCore::CSSSelector::specificity):
  49034. (WebCore::CSSSelector::extractPseudoType):
  49035. (WebCore::CSSSelector::operator==):
  49036. (WebCore::CSSSelector::selectorText):
  49037. * css/CSSSelector.h:
  49038. (WebCore::CSSSelector::CSSSelector):
  49039. (WebCore::CSSSelector::~CSSSelector):
  49040. (WebCore::CSSSelector::append):
  49041. (WebCore::CSSSelector::next):
  49042. (WebCore::CSSSelector::pseudoType):
  49043. (WebCore::CSSSelector::hasTag):
  49044. (WebCore::CSSSelector::hasAttribute):
  49045. * css/CSSStyleDeclaration.cpp:
  49046. (WebCore::propertyID):
  49047. (WebCore::CSSStyleDeclaration::getPropertyPriority):
  49048. (WebCore::CSSStyleDeclaration::getPropertyShorthand):
  49049. (WebCore::CSSStyleDeclaration::isPropertyImplicit):
  49050. (WebCore::CSSStyleDeclaration::setProperty):
  49051. (WebCore::CSSStyleDeclaration::isPropertyName):
  49052. (WebCore::CSSStyleDeclaration::parentRule):
  49053. (WebCore::CSSStyleDeclaration::diff):
  49054. (WebCore::CSSStyleDeclaration::copyPropertiesInSet):
  49055. * css/CSSStyleDeclaration.h:
  49056. * css/Counter.h:
  49057. (WebCore::Counter::Counter):
  49058. (WebCore::Counter::listStyleNumber):
  49059. * css/csshelper.cpp:
  49060. (WebCore::parseURL):
  49061. * css/csshelper.h:
  49062. * css/cssparser.h:
  49063. (WebCore::domString):
  49064. (WebCore::atomicString):
  49065. (WebCore::CSSParser::operator|):
  49066. * css/cssstyleselector.cpp:
  49067. (WebCore::CSSStyleSelector::matchRulesForList):
  49068. (WebCore::CSSStyleSelector::checkSelector):
  49069. (WebCore::CSSStyleSelector::checkOneSelector):
  49070. (WebCore::CSSRuleSet::addRule):
  49071. 2007-01-14 Mitz Pettel <mitz@webkit.org>
  49072. Reviewed by Adam.
  49073. - fix http://bugs.webkit.org/show_bug.cgi?id=12264
  49074. REGRESSION (r18843): Webkit crashes on 43Folders.com home page
  49075. Test: fast/tokenizer/ignore-tags-in-iframe.html
  49076. * html/HTMLParser.cpp:
  49077. (WebCore::HTMLParser::reset): Removed unused inSelect member variable.
  49078. (WebCore::HTMLParser::selectCreateErrorCheck): Ditto.
  49079. (WebCore::HTMLParser::processCloseTag): Ditto.
  49080. * html/HTMLParser.h: Ditto.
  49081. * html/HTMLTokenizer.cpp:
  49082. (WebCore::HTMLTokenizer::parseTag): Changed not to process <pre>, <listing>,
  49083. <script>, <style>, <title>, <textarea> and <xmp> if the parser is in skip mode
  49084. (waiting for a close tag of an element whose contents are not parsed,
  49085. such as iframe).
  49086. * html/HTMLTokenizer.h:
  49087. (WebCore::HTMLTokenizer::State::setInStyle): Removed unused bit.
  49088. (WebCore::HTMLTokenizer::State::): Ditto.
  49089. 2007-01-14 Alexey Proskuryakov <ap@webkit.org>
  49090. Reviewed by Darin.
  49091. http://bugs.webkit.org/show_bug.cgi?id=12258
  49092. fast/tokenizer/002 test broken
  49093. * loader/FrameLoader.h: Added a flush parameter to write().
  49094. * loader/FrameLoader.cpp:
  49095. (WebCore::FrameLoader::write): Ditto.
  49096. (WebCore::FrameLoader::endIfNotLoading): Instead of poorly duplicating the logic in write(),
  49097. call it directly.
  49098. 2007-01-14 Adam Roben <aroben@apple.com>
  49099. Reviewed by Maciej.
  49100. Make sure our whitelisting of the type and language attributes of the
  49101. <script> element is enforced in all HTMLTokenizer/HTMLScriptElement
  49102. code paths.
  49103. All layout tests pass.
  49104. * html/HTMLScriptElement.cpp:
  49105. (WebCore::HTMLScriptElement::shouldExecuteAsJavaScript): New method to
  49106. determine whether the script should be executed, given its type and
  49107. language attributes.
  49108. (WebCore::HTMLScriptElement::evaluateScript): Check type/language
  49109. before executing.
  49110. * html/HTMLScriptElement.h: Added new declarations.
  49111. * html/HTMLTokenizer.cpp:
  49112. (WebCore::HTMLTokenizer::begin): Made scriptSrc a String.
  49113. (WebCore::HTMLTokenizer::scriptHandler): Check
  49114. shouldExecuteAsJavaScript before executing.
  49115. (WebCore::HTMLTokenizer::notifyFinished): Ditto.
  49116. (WebCore::HTMLTokenizer::parseTag): Moved type/language checking from
  49117. here to HTMLScriptElement::shouldExecuteAsJavaScript.
  49118. * html/HTMLTokenizer.h: Made scriptSrc a String, and removed the
  49119. javascript member.
  49120. 2007-01-14 David Hyatt <hyatt@apple.com>
  49121. Make sure floats are avoided if you have non-auto column property values. Fixes the crazy layout
  49122. on http://weblogs.mozillazine.org/roc.
  49123. Reviewed by mitz
  49124. Added fast/multicol/float-avoidance.html
  49125. * rendering/RenderBlock.cpp:
  49126. (WebCore::RenderBlock::avoidsFloats):
  49127. 2007-01-14 David Hyatt <hyatt@apple.com>
  49128. Fix for 10145, regression where line breaks are not being honored between adjacent replaced elements.
  49129. When checking for break opportunities where replaced elements are involved, we ignore their white-space
  49130. values and use their parents' instead. The assumption/idea behind this change is that because the element
  49131. is replaced, its white-space value is irrelevant except as a means of applying style to its interior.
  49132. The CSS spec does not cover this situation, so we're implementing this based off what other browsers seem to
  49133. do.
  49134. Reviewed by aroben
  49135. * css/CSSComputedStyleDeclaration.cpp:
  49136. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  49137. * css/CSSValueKeywords.in:
  49138. * css/cssparser.cpp:
  49139. (WebCore::CSSParser::parseValue):
  49140. * css/cssstyleselector.cpp:
  49141. (WebCore::CSSStyleSelector::applyProperty):
  49142. * page/EventHandler.cpp:
  49143. (WebCore::EventHandler::EventHandler):
  49144. (WebCore::EventHandler::clear):
  49145. (WebCore::EventHandler::handleWheelEvent):
  49146. * page/EventHandler.h:
  49147. * rendering/RenderBox.cpp:
  49148. (WebCore::RenderBox::calcHeight):
  49149. * rendering/RenderLayer.cpp:
  49150. (WebCore::Marquee::Marquee):
  49151. (WebCore::Marquee::start):
  49152. (WebCore::Marquee::updateMarqueePosition):
  49153. (WebCore::Marquee::updateMarqueeStyle):
  49154. (WebCore::Marquee::timerFired):
  49155. * rendering/RenderLayer.h:
  49156. * rendering/RenderPartObject.cpp:
  49157. (WebCore::RenderPartObject::viewCleared):
  49158. * rendering/RenderStyle.h:
  49159. (WebCore::):
  49160. * rendering/bidi.cpp:
  49161. (WebCore::RenderBlock::findNextLineBreak):
  49162. 2007-01-13 David Hyatt <hyatt@apple.com>
  49163. While optimizing form controls and fixing their clipping, I caused this text zoom regression. The layout
  49164. of text is necessary because it needs to recalc minmaxwidth. This is still a really unfortunate
  49165. bit of code... since a lot of properties don't apply to text (e.g., borders), we're marking text renderers
  49166. as dirty when we don't have to.
  49167. Reviewed by mitz
  49168. * rendering/RenderObject.cpp:
  49169. (WebCore::RenderObject::setStyle):
  49170. 2007-01-13 Lars Knoll <lars@trolltech.com>
  49171. Reviewed by Alexey
  49172. String::format() was relying on undefined behaviour, which
  49173. happened to work on lots of systems (Mac and 32bit Linux at least)
  49174. but broke badly on 64bit Linux.
  49175. * platform/String.cpp:
  49176. (WebCore::String::format):
  49177. 2007-01-13 Martin Reddy <reddy@pixar.com>
  49178. Fix for bug 11924: WebCore would crash on any HTML content
  49179. with a non-empty <table> tag in it on a 64-bit machine. The
  49180. size_t (64bit) vs int (32bit) cast is now fixed in ensureRows,
  49181. and the clients of this function have been updated to check
  49182. for a false return code.
  49183. Reviewed by Darin, landed by Lars
  49184. * rendering/RenderTableSection.cpp:
  49185. (WebCore::RenderTableSection::addChild):
  49186. (WebCore::RenderTableSection::ensureRows):
  49187. (WebCore::RenderTableSection::recalcCells):
  49188. 2007-01-13 Alexey Proskuryakov <ap@webkit.org>
  49189. Reviewed by Darin.
  49190. http://bugs.webkit.org/show_bug.cgi?id=12165
  49191. REGRESSION: text encoding problem at jn.sapo.pt
  49192. Test: fast/encoding/script-in-head.html
  49193. * loader/TextResourceDecoder.cpp:
  49194. (WebCore::TextResourceDecoder::checkForHeadCharset):
  49195. Ignore tags within <script> elements in head, just like we do for <title>.
  49196. 2007-01-13 Lars Knoll <lars@trolltech.com>
  49197. Reviewed by Maciej
  49198. Don't crash when constructing a GraphicsContext with a 0
  49199. PlatformGraphicsContext and don't do anything if painting
  49200. is disabled.
  49201. * platform/graphics/qt/GraphicsContextQt.cpp:
  49202. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  49203. (WebCore::GraphicsContext::origin):
  49204. (WebCore::GraphicsContext::setPlatformFont):
  49205. (WebCore::GraphicsContext::setPlatformStrokeColor):
  49206. (WebCore::GraphicsContext::setPlatformStrokeStyle):
  49207. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  49208. (WebCore::GraphicsContext::setPlatformFillColor):
  49209. 2007-01-13 Eric Seidel <eric@webkit.org>
  49210. Reviewed by hyatt.
  49211. RichDraw demo does not live-update in Safari
  49212. (SVG elements should ignore CSS position)
  49213. http://bugs.webkit.org/show_bug.cgi?id=10364
  49214. * css/cssstyleselector.cpp:
  49215. (WebCore::CSSStyleSelector::adjustRenderStyle): ignore position for everything but <svg>
  49216. * ksvg2/svg/SVGStyledElement.cpp:
  49217. (WebCore::SVGStyledElement::rebuildRenderer): move path generation into layout()
  49218. * rendering/RenderContainer.cpp:
  49219. (WebCore::RenderContainer::layout): ASSERT kids marked as having completed layout
  49220. * rendering/RenderPath.cpp:
  49221. (WebCore::RenderPath::layout): move path generation into layout()
  49222. * rendering/RenderSVGContainer.cpp:
  49223. (WebCore::RenderSVGContainer::layout): ASSERT kids marked as having completed layout
  49224. 2007-01-12 David Hyatt <hyatt@apple.com>
  49225. Add support for column rules.
  49226. Reviewed by bdash
  49227. fast/multicol/column-rules.html
  49228. * rendering/RenderBlock.cpp:
  49229. (WebCore::RenderBlock::paintColumns):
  49230. * rendering/RenderStyle.h:
  49231. (WebCore::RenderStyle::columnRuleIsTransparent):
  49232. 2007-01-12 David Hyatt <hyatt@apple.com>
  49233. Make multicolumn layout work with floats.
  49234. Reviewed by andersca
  49235. Added fast/multicol/float-multicol.html
  49236. * rendering/RenderBlock.cpp:
  49237. (WebCore::RenderBlock::layoutBlock):
  49238. (WebCore::RenderBlock::paintColumns):
  49239. (WebCore::RenderBlock::paintObject):
  49240. * rendering/RenderBlock.h:
  49241. 2007-01-12 David Kilzer <ddkilzer@kilzer.net>
  49242. Reviewed by Maciej.
  49243. - fix http://bugs.webkit.org/show_bug.cgi?id=12239
  49244. REGRESSION (r18816-r18818): Assertion failure in
  49245. WebCore::Length::Length[in-charge](int, WebCore::LengthType, bool)
  49246. Test: fast/css/line-height.html
  49247. * rendering/RenderTextControl.cpp:
  49248. (WebCore::RenderTextControl::createInnerTextStyle): Use a float to create a percent Length.
  49249. 2007-01-12 Anders Carlsson <acarlsson@apple.com>
  49250. Reviewed by Darin.
  49251. Use unsigned long for identifiers instead of Objective-C objects.
  49252. * loader/FrameLoader.cpp:
  49253. (WebCore::FrameLoader::loadResourceSynchronously):
  49254. (WebCore::FrameLoader::startLoadingMainResource):
  49255. (WebCore::FrameLoader::startLoading):
  49256. (WebCore::FrameLoader::assignIdentifierToInitialRequest):
  49257. (WebCore::FrameLoader::opened):
  49258. (WebCore::FrameLoader::sendRemainingDelegateMessages):
  49259. (WebCore::FrameLoader::requestFromDelegate):
  49260. (WebCore::FrameLoader::loadedResourceFromMemoryCache):
  49261. * loader/FrameLoader.h:
  49262. * loader/FrameLoaderClient.h:
  49263. * loader/ResourceLoader.cpp:
  49264. (WebCore::ResourceLoader::ResourceLoader):
  49265. (WebCore::ResourceLoader::willSendRequest):
  49266. * loader/ResourceLoader.h:
  49267. (WebCore::ResourceLoader::setIdentifier):
  49268. (WebCore::ResourceLoader::identifier):
  49269. * page/Page.cpp:
  49270. (WebCore::Page::Page):
  49271. (WebCore::Page::createUniqueIdentifier):
  49272. * page/Page.h:
  49273. * platform/graphics/svg/SVGImageEmptyClients.h:
  49274. (WebCore::SVGEmptyFrameLoaderClient::assignIdentifierToInitialRequest):
  49275. (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSendRequest):
  49276. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  49277. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  49278. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveResponse):
  49279. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveContentLength):
  49280. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFinishLoading):
  49281. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailLoading):
  49282. (WebCore::SVGEmptyFrameLoaderClient::incrementProgress):
  49283. (WebCore::SVGEmptyFrameLoaderClient::completeProgress):
  49284. 2007-01-12 Mitz Pettel <mitz@webkit.org>
  49285. Reviewed by Darin.
  49286. - fix http://bugs.webkit.org/show_bug.cgi?id=12235
  49287. REGRESSION (r18815): Marquees do not scroll
  49288. * css/cssstyleselector.cpp:
  49289. (WebCore::CSSStyleSelector::applyProperty): Apply the '-webkit-marquee' value
  49290. of 'overflow-x' and 'overflow-y'.
  49291. 2007-01-12 Justin Garcia <justin.garcia@apple.com>
  49292. Reviewed by hyatt
  49293. <rdar://problem/4875425>
  49294. EBay, GMail, and GoogleDocs RTEs font size popups don't work
  49295. Changed execCommand("FontSize", ...) to match the spec
  49296. and the behavior of other browsers. It expects a number,
  49297. n, which, the spec says can be 1 through 7. Other browsers
  49298. perform the font size change by creating a font element
  49299. wrapper with size="n". We convert n into one of the absolute
  49300. size CSS keywords (x-small, medium, etc.).
  49301. * editing/JSEditor.cpp: Call cssValueFromFontSizeNumber. If
  49302. successful, perform the style change.
  49303. * html/HTMLFontElement.cpp:
  49304. (WebCore::HTMLFontElement::cssValueFromFontSizeNumber): Added.
  49305. Moved this code from parsedMappedAttribute so that it could be
  49306. called from the Editor.
  49307. (WebCore::HTMLFontElement::parseMappedAttribute): Moved code into
  49308. cssValueFromFontSizeNumber.
  49309. * html/HTMLFontElement.h:
  49310. 2007-01-12 David Hyatt <hyatt@apple.com>
  49311. Fix for bug 11598, implement lightweight control clipping mechanism for
  49312. buttons, list boxes, and dropdown lists. Make sure list box respects
  49313. scrollLeft/Top/Width/Height as well as clientWidth/Height.
  49314. Fix bugs in RenderStyle::diff. CursorData was not being compared properly.
  49315. vertical-align had a non-inline display check that was wrong (preventing
  49316. dynamic changes to keyword-based vertical-align from working).
  49317. Reviewed by mitz
  49318. * page/EventHandler.cpp:
  49319. (WebCore::EventHandler::selectClosestWordFromMouseEvent):
  49320. * rendering/RenderBlock.cpp:
  49321. (WebCore::RenderBlock::layout):
  49322. (WebCore::RenderBlock::layoutBlock):
  49323. (WebCore::RenderBlock::determineHorizontalPosition):
  49324. (WebCore::RenderBlock::layoutBlockChildren):
  49325. (WebCore::RenderBlock::paint):
  49326. (WebCore::RenderBlock::fillHorizontalSelectionGap):
  49327. (WebCore::RenderBlock::nodeAtPoint):
  49328. (WebCore::RenderBlock::layoutColumns):
  49329. * rendering/RenderBox.cpp:
  49330. (WebCore::RenderBox::computeAbsoluteRepaintRect):
  49331. * rendering/RenderBox.h:
  49332. * rendering/RenderButton.cpp:
  49333. (WebCore::RenderButton::setStyle):
  49334. (WebCore::RenderButton::controlClipRect):
  49335. * rendering/RenderButton.h:
  49336. (WebCore::RenderButton::hasControlClip):
  49337. * rendering/RenderFlexibleBox.cpp:
  49338. (WebCore::RenderFlexibleBox::layoutBlock):
  49339. (WebCore::RenderFlexibleBox::layoutHorizontalBox):
  49340. (WebCore::RenderFlexibleBox::layoutVerticalBox):
  49341. * rendering/RenderFlow.cpp:
  49342. (WebCore::RenderFlow::addFocusRingRects):
  49343. * rendering/RenderListBox.cpp:
  49344. (WebCore::RenderListBox::itemBoundingBoxRect):
  49345. (WebCore::RenderListBox::paintObject):
  49346. (WebCore::RenderListBox::itemHeight):
  49347. (WebCore::RenderListBox::verticalScrollbarWidth):
  49348. (WebCore::RenderListBox::scrollWidth):
  49349. (WebCore::RenderListBox::scrollHeight):
  49350. (WebCore::RenderListBox::scrollLeft):
  49351. (WebCore::RenderListBox::setScrollLeft):
  49352. (WebCore::RenderListBox::scrollTop):
  49353. (WebCore::RenderListBox::setScrollTop):
  49354. (WebCore::RenderListBox::controlClipRect):
  49355. * rendering/RenderListBox.h:
  49356. (WebCore::RenderListBox::hasControlClip):
  49357. * rendering/RenderMenuList.cpp:
  49358. (WebCore::RenderMenuList::setStyle):
  49359. (WebCore::RenderMenuList::controlClipRect):
  49360. * rendering/RenderMenuList.h:
  49361. (WebCore::RenderMenuList::hasControlClip):
  49362. * rendering/RenderObject.cpp:
  49363. (WebCore::RenderObject::verticalScrollbarWidth):
  49364. (WebCore::RenderObject::horizontalScrollbarHeight):
  49365. (WebCore::RenderObject::clientWidth):
  49366. (WebCore::RenderObject::clientHeight):
  49367. (WebCore::RenderObject::setStyle):
  49368. * rendering/RenderObject.h:
  49369. (WebCore::RenderObject::hasControlClip):
  49370. (WebCore::RenderObject::controlClipRect):
  49371. (WebCore::RenderObject::contentWidth):
  49372. (WebCore::RenderObject::contentHeight):
  49373. * rendering/RenderStyle.cpp:
  49374. (WebCore::StyleVisualData::StyleVisualData):
  49375. (WebCore::cursorDataEqvuialent):
  49376. (WebCore::StyleInheritedData::operator==):
  49377. (WebCore::CursorList::operator==):
  49378. (WebCore::RenderStyle::diff):
  49379. * rendering/RenderStyle.h:
  49380. (WebCore::LengthBox::operator!=):
  49381. (WebCore::StyleVisualData::operator==):
  49382. (WebCore::CursorData::operator==):
  49383. (WebCore::CursorData::operator!=):
  49384. (WebCore::CursorList::operator!=):
  49385. (WebCore::RenderStyle::setTableLayout):
  49386. * rendering/bidi.cpp:
  49387. (WebCore::RenderBlock::layoutInlineChildren):
  49388. 2007-01-12 David Hyatt <hyatt@apple.com>
  49389. Fix for bug 9934, smaller line heights should not be allowed on
  49390. text fields.
  49391. Reviewed by darin
  49392. * rendering/RenderTextControl.cpp:
  49393. (WebCore::RenderTextControl::createInnerTextStyle):
  49394. 2007-01-12 Mitz Pettel <mitz@webkit.org>
  49395. Reviewed by Hyatt.
  49396. - http://bugs.webkit.org/show_bug.cgi?id=12215
  49397. Treat 'overflow' and '-webkit-border-radius' as shorthands when parsing and
  49398. when removing.
  49399. Test: fast/css/remove-shorthand.html (updated)
  49400. * css/CSSMutableStyleDeclaration.cpp:
  49401. (WebCore::initShorthandMap):
  49402. * css/cssparser.cpp:
  49403. (WebCore::CSSParser::parseValue):
  49404. 2007-01-12 Rob Buis <buis@kde.org>
  49405. Reviewed by Mitz.
  49406. Do not mix up JSSVGPolygonElement and JSSVGPolylineElement.
  49407. * bindings/js/JSSVGElementWrapperFactory.cpp:
  49408. 2007-01-12 Kevin Decker <kdecker@apple.com>
  49409. Reviewed by andersca.
  49410. Fixed: <rdar://problem/4701326>21.2 ms launch time regression spent in +[WebPluginDatabase installedPlugins]
  49411. * dom/DOMImplementation.cpp:
  49412. (WebCore::DOMImplementation::createDocument): Added a guard clause for text/html which used to be in WebKit before a lot of the
  49413. loader plumbing was moved to WebCore. Pinging the plug-in database to ask it if it supports a given mime type has the side
  49414. effect of reading from disk on first call, therefore such a check should be a last resort.
  49415. 2007-01-12 Mitz Pettel <mitz@webkit.org>
  49416. Reviewed by Darin.
  49417. - fix http://bugs.webkit.org/show_bug.cgi?id=12223
  49418. REGRESSION: Leaks under CSSStyleSelector::applyProperty
  49419. No test possible (no change to functionality).
  49420. * rendering/RenderObject.h: Removed unused forward declaration.
  49421. * rendering/RenderStyle.cpp:
  49422. (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
  49423. Delete shadow data.
  49424. 2007-01-12 Anders Carlsson <acarlsson@apple.com>
  49425. Build fix.
  49426. * WebCore.xcodeproj/project.pbxproj:
  49427. Remove SubresourceLoaderMac.mm.
  49428. 2007-01-12 Lars Knoll <lars@trolltech.com>
  49429. Reviewed by Darin and Anders.
  49430. Make some more of the loader code platform independent.
  49431. * loader/FrameLoader.cpp:
  49432. (WebCore::FrameLoader::clear):
  49433. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  49434. (WebCore::FrameLoader::urlSelected):
  49435. (WebCore::FrameLoader::createEmptyDocument):
  49436. (WebCore::FrameLoader::setTitle):
  49437. (WebCore::FrameLoader::originalRequestURL):
  49438. (WebCore::FrameLoader::referrer):
  49439. * loader/SubresourceLoader.cpp:
  49440. (WebCore::SubresourceLoader::SubresourceLoader):
  49441. (WebCore::SubresourceLoader::load):
  49442. (WebCore::SubresourceLoader::create):
  49443. (WebCore::SubresourceLoader::willSendRequest):
  49444. (WebCore::SubresourceLoader::didReceiveResponse):
  49445. (WebCore::SubresourceLoader::didReceiveData):
  49446. (WebCore::SubresourceLoader::didFinishLoading):
  49447. (WebCore::SubresourceLoader::didFail):
  49448. (WebCore::SubresourceLoader::didCancel):
  49449. (WebCore::SubresourceLoader::stopLoading):
  49450. * loader/SubresourceLoader.h:
  49451. * loader/mac/FrameLoaderMac.mm:
  49452. * loader/mac/SubresourceLoaderMac.mm: Removed.
  49453. * loader/qt/FrameLoaderQt.cpp:
  49454. 2007-01-12 Lars Knoll <lars@trolltech.com>
  49455. Reviewed by Zack
  49456. Valgrind reported uninitialized variable.
  49457. * platform/network/qt/ResourceHandleManagerQt.cpp:
  49458. (WebCore::FileLoader::request):
  49459. 2007-01-12 Mitz Pettel <mitz@webkit.org>
  49460. Reviewed by rwlbuis.
  49461. - add missing null check in new fixed table layout code
  49462. * rendering/FixedTableLayout.cpp:
  49463. (WebCore::FixedTableLayout::calcWidthArray):
  49464. 2007-01-12 Lars Knoll <lars@trolltech.com>
  49465. Fix the Qt build after the Authenitcation changes.
  49466. * WebCore.pro:
  49467. * platform/network/ResourceHandleInternal.h:
  49468. 2007-01-12 David Hyatt <hyatt@apple.com>
  49469. Fix for bug 9569. Make sure the selection offset for selection roots excludes border and padding.
  49470. Reviewed by Eric
  49471. * rendering/RenderBlock.cpp:
  49472. (WebCore::RenderBlock::leftSelectionOffset):
  49473. (WebCore::RenderBlock::rightSelectionOffset):
  49474. 2007-01-11 David Hyatt <hyatt@apple.com>
  49475. Fix for bug 8705, readonly text fields should not get focus rings. Add a rule to that effect to
  49476. html4.css and then also add readonly as a special case for style sharing so that we can retain the
  49477. performance boost from sharing styles on inputs.
  49478. Reviewed by bdash
  49479. * css/cssstyleselector.cpp:
  49480. (WebCore::CSSStyleSelector::canShareStyleWithElement):
  49481. (WebCore::CSSStyleSelector::checkOneSelector):
  49482. * css/html4.css:
  49483. 2007-01-11 David Hyatt <hyatt@apple.com>
  49484. Fix for bug 11595. Autoscrolling of layers didn't really work at all unless the layer was coincidentally
  49485. in the root layer's coordinate space. The event point was an absolute position within the document, but
  49486. the layer's rect was only local coords. This patch makes sure to use absolute bounds for the layer
  49487. when comparing it with the point.
  49488. This is covered by the scrollRevealButton test case already in the tree... the results change to be more
  49489. correct.
  49490. Reviewed by ggaren
  49491. * rendering/RenderLayer.cpp:
  49492. (WebCore::RenderLayer::scrollRectToVisible):
  49493. 2007-01-11 Brady Eidson <beidson@apple.com>
  49494. Reviewed by Oliver
  49495. -Move more HTTP Auth handling towards ResourceHandle, away from ResourceHandleClient
  49496. -Make more of ResourceLoader cross-platform
  49497. * loader/ResourceLoader.cpp:
  49498. (WebCore::ResourceLoader::ResourceLoader):
  49499. (WebCore::ResourceLoader::releaseResources):
  49500. (WebCore::ResourceLoader::didCancel):
  49501. (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
  49502. (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
  49503. (WebCore::ResourceLoader::receivedCancellation):
  49504. * loader/ResourceLoader.h:
  49505. (WebCore::ResourceLoader::willStopBufferingData):
  49506. (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
  49507. (WebCore::ResourceLoader::willCacheResponse):
  49508. * loader/mac/ResourceLoaderMac.mm:
  49509. * platform/network/ResourceHandle.h:
  49510. * platform/network/ResourceHandleClient.h:
  49511. (WebCore::ResourceHandleClient::willStopBufferingData):
  49512. * platform/network/ResourceHandleInternal.h:
  49513. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  49514. * platform/network/mac/ResourceHandleMac.mm:
  49515. (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
  49516. (WebCore::ResourceHandle::didCancelAuthenticationChallenge):
  49517. (WebCore::ResourceHandle::receivedCredential):
  49518. (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
  49519. (WebCore::ResourceHandle::receivedCancellation):
  49520. (WebCore::ResourceHandle::clearAuthentication):
  49521. (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
  49522. (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]):
  49523. (-[WebCoreResourceHandleAsDelegate useCredential:forAuthenticationChallenge:]):
  49524. (-[WebCoreResourceHandleAsDelegate continueWithoutCredentialForAuthenticationChallenge:]):
  49525. (-[WebCoreResourceHandleAsDelegate cancelAuthenticationChallenge:]):
  49526. 2007-01-11 David Hyatt <hyatt@apple.com>
  49527. A hit test is returning a null renderer. Make sure to null-check it in the autoscroll code.
  49528. This really shouldn't happen, but I'm just going to bullet proof for now given that it's happening
  49529. on the front page of yahoo.com!
  49530. Reviewed by mark
  49531. * rendering/RenderLayer.cpp:
  49532. (WebCore::RenderLayer::autoscroll):
  49533. 2007-01-11 David Hyatt <hyatt@apple.com>
  49534. Force column-width to parse in strict mode so that there is no confusion when it is used in the columns
  49535. shorthand (it can be mistaken for column-count otherwise).
  49536. Reviewed by Mark
  49537. fast/multicol/columns-shorthand-parsing.html
  49538. * css/cssparser.cpp:
  49539. (WebCore::CSSParser::parseValue):
  49540. 2007-01-11 Mitz Pettel <mitz@webkit.org>
  49541. Reviewed by Hyatt.
  49542. - fix http://bugs.webkit.org/show_bug.cgi?id=12124
  49543. RenderTable::section{Above,Below}() can return the wrong answer for the {footer,header}
  49544. * rendering/RenderTable.cpp:
  49545. (WebCore::resetSectionPointerIfNotBefore): Added this function to help with
  49546. checking if a section being inserted is the going to be the first of its kind.
  49547. (WebCore::RenderTable::addChild): Changed to maintain the pointers to the
  49548. header, the footer, the caption and the first table body properly when objects
  49549. are inserted in the middle. Also changed to make the first caption win over
  49550. any other captions. This matches Firefox and what already used to happen when a
  49551. section recalc took place.
  49552. (WebCore::RenderTable::layout): Changed to use sectionBelow() for iterating
  49553. over the sections from top to bottom.
  49554. (WebCore::RenderTable::calcBorderLeft): Changed to really find the section
  49555. containing the first row.
  49556. (WebCore::RenderTable::calcBorderRight): Ditto.
  49557. (WebCore::RenderTable::sectionAbove): Fixed a bug when the last section was
  49558. skipped if the input was the footer.
  49559. (WebCore::RenderTable::sectionBelow): Ditto for "first" and "header"
  49560. respectively.
  49561. 2007-01-11 Mitz Pettel <mitz@webkit.org>
  49562. Reviewed by Hyatt.
  49563. - fix http://bugs.webkit.org/show_bug.cgi?id=12115
  49564. RTL text is jumbled on display
  49565. Fixed fixed table layout. Implemented an algorithm that matches the behavior
  49566. of Firefox, up to rounding errors.
  49567. Fixes three existing table tests.
  49568. * rendering/FixedTableLayout.cpp:
  49569. Undid accidental search-and-replace of "width" to "m_width" in the comments.
  49570. Removed an outdated comment, since WebKit no longer honors table-layout:fixed
  49571. for variable-width tables.
  49572. (WebCore::FixedTableLayout::calcWidthArray): Fixed the logic that finds the
  49573. first row. Changed to divide the width specified for a cell that spans multiple
  49574. columns between the columns rather than assign its entire width to each column.
  49575. (WebCore::FixedTableLayout::calcMinMaxWidth):
  49576. (WebCore::FixedTableLayout::layout): Implemented the behavior observed in
  49577. Firefox.
  49578. * rendering/FixedTableLayout.h:
  49579. 2007-01-11 Mitz Pettel <mitz@webkit.org>
  49580. Reviewed by Hyatt.
  49581. - fix http://bugs.webkit.org/show_bug.cgi?id=8438
  49582. iExploder(#460): Assertion failure in RenderObject::drawBorder()
  49583. Test: fast/block/basic/fieldset-stretch-to-legend.html
  49584. * rendering/RenderBox.cpp:
  49585. (WebCore::RenderBox::calcWidth): Stretch to the minimum intrinsic
  49586. width if the object requires it.
  49587. (WebCore::RenderBox::calcHorizontalMargins): Some style cleanup.
  49588. (WebCore::RenderBox::calcAbsoluteHorizontal): Stretch to the minimum
  49589. intrinsic width if the object requires it.
  49590. * rendering/RenderBox.h:
  49591. (WebCore::RenderBox::stretchesToMinIntrinsicWidth): Added. Returns false.
  49592. * rendering/RenderFieldset.cpp:
  49593. (WebCore::RenderFieldset::calcMinMaxWidth): Overloaded RenderBlock's
  49594. implementation to ensure that the legend's will fit in the fieldset's
  49595. minimum intrinsic width.
  49596. (WebCore::RenderFieldset::findLegend): Made const.
  49597. (WebCore::RenderFieldset::paintBoxDecorations):
  49598. (WebCore::RenderFieldset::paintBorderMinusLegend): Fixed the behavior when
  49599. the legend does overflow the fieldset. This is the part of the fix that
  49600. prevents the assertion failure. If the legend intersects with a corner of
  49601. the fieldset's border, that corner will not be painted, even if it is not
  49602. completely occluded. This edge case can be improved with clipping in the
  49603. future. Added FIXME to implement border-radius.
  49604. * rendering/RenderFieldset.h:
  49605. (WebCore::RenderFieldset::stretchesToMinIntrinsicWidth): Overloaded to
  49606. return true.
  49607. 2007-01-11 Brady Eidson <beidson@apple.com>
  49608. Reviewed by Build Fix Karma
  49609. I broke the release build (debug build passed)
  49610. * platform/network/mac/AuthenticationMac.mm:
  49611. (WebCore::core):
  49612. 2007-01-11 Brady Eidson <beidson@apple.com>
  49613. Reviewed by Anders
  49614. Rewrites HTTP Authentication setting up a more platform-independent structure
  49615. * WebCore.exp:
  49616. * WebCore.xcodeproj/project.pbxproj:
  49617. * loader/FrameLoader.cpp:
  49618. (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
  49619. (WebCore::FrameLoader::didCancelAuthenticationChallenge):
  49620. * loader/FrameLoader.h:
  49621. * loader/FrameLoaderClient.h:
  49622. * loader/ResourceLoader.cpp:
  49623. (WebCore::ResourceLoader::ResourceLoader):
  49624. (WebCore::ResourceLoader::didCancel):
  49625. * loader/ResourceLoader.h:
  49626. (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
  49627. (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
  49628. (WebCore::ResourceLoader::receivedCredential):
  49629. (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
  49630. (WebCore::ResourceLoader::receivedCancellation):
  49631. * loader/mac/FrameLoaderMac.mm:
  49632. * loader/mac/ResourceLoaderMac.mm:
  49633. (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
  49634. (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
  49635. (WebCore::ResourceLoader::receivedCredential):
  49636. (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
  49637. (WebCore::ResourceLoader::receivedCancellation):
  49638. * platform/graphics/svg/SVGImageEmptyClients.h:
  49639. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  49640. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  49641. * platform/network/ResourceHandleClient.h:
  49642. (WebCore::ResourceHandleClient::willSendRequest):
  49643. (WebCore::ResourceHandleClient::didReceiveAuthenticationChallenge):
  49644. (WebCore::ResourceHandleClient::didCancelAuthenticationChallenge):
  49645. (WebCore::ResourceHandleClient::receivedCredential):
  49646. (WebCore::ResourceHandleClient::receivedRequestToContinueWithoutCredential):
  49647. (WebCore::ResourceHandleClient::receivedCancellation):
  49648. (WebCore::ResourceHandleClient::willCacheResponse):
  49649. * platform/network/ResourceResponse.h:
  49650. (WebCore::operator!=):
  49651. * platform/network/URLAuthenticationChallenge.cpp: Added.
  49652. (WebCore::URLAuthenticationChallenge::URLAuthenticationChallenge):
  49653. (WebCore::URLAuthenticationChallenge::previousFailureCount):
  49654. (WebCore::URLAuthenticationChallenge::proposedCredential):
  49655. (WebCore::URLAuthenticationChallenge::protectionSpace):
  49656. (WebCore::URLAuthenticationChallenge::failureResponse):
  49657. (WebCore::URLAuthenticationChallenge::error):
  49658. (WebCore::URLAuthenticationChallenge::isNull):
  49659. (WebCore::URLAuthenticationChallenge::nullify):
  49660. (WebCore::operator==):
  49661. (WebCore::operator!=):
  49662. * platform/network/URLAuthenticationChallenge.h: Added.
  49663. (WebCore::URLAuthenticationChallenge::sender):
  49664. (WebCore::URLAuthenticationChallenge::nsURLAuthenticationChallenge):
  49665. * platform/network/URLCredential.cpp: Added.
  49666. (WebCore::URLCredential::URLCredential):
  49667. (WebCore::URLCredential::user):
  49668. (WebCore::URLCredential::password):
  49669. (WebCore::URLCredential::hasPassword):
  49670. (WebCore::URLCredential::persistence):
  49671. (WebCore::operator==):
  49672. * platform/network/URLCredential.h: Added.
  49673. (WebCore::):
  49674. (WebCore::operator!=):
  49675. * platform/network/URLProtectionSpace.cpp: Added.
  49676. (WebCore::URLProtectionSpace::URLProtectionSpace):
  49677. (WebCore::URLProtectionSpace::host):
  49678. (WebCore::URLProtectionSpace::port):
  49679. (WebCore::URLProtectionSpace::serverType):
  49680. (WebCore::URLProtectionSpace::realm):
  49681. (WebCore::URLProtectionSpace::authenticationScheme):
  49682. (WebCore::operator==):
  49683. * platform/network/URLProtectionSpace.h: Added.
  49684. (WebCore::):
  49685. (WebCore::operator!=):
  49686. * platform/network/mac/AuthenticationMac.h: Added.
  49687. * platform/network/mac/AuthenticationMac.mm: Added.
  49688. (WebCore::URLAuthenticationChallenge::URLAuthenticationChallenge):
  49689. (WebCore::mac):
  49690. (WebCore::core):
  49691. * platform/network/mac/ResourceHandleMac.mm:
  49692. (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
  49693. (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]):
  49694. (-[WebCoreResourceHandleAsDelegate useCredential:forAuthenticationChallenge:]):
  49695. (-[WebCoreResourceHandleAsDelegate continueWithoutCredentialForAuthenticationChallenge:]):
  49696. (-[WebCoreResourceHandleAsDelegate cancelAuthenticationChallenge:]):
  49697. * platform/network/mac/ResourceResponseMac.mm:
  49698. (WebCore::operator==):
  49699. 2007-01-11 Geoffrey Garen <ggaren@apple.com>
  49700. Reviewed by Anders Carlsson.
  49701. Even more cleanup in preparation for fixing <rdar://problem/4608404>
  49702. WebScriptObject's _executionContext lack of ownership policy causes
  49703. crashes (e.g., in Dashcode)
  49704. Layout tests pass.
  49705. Renames:
  49706. findRootObjectForNativeHandleFunction => createRootObject
  49707. FindRootObjectForNativeHandleFunctionPtr => createRootObjectFunction
  49708. rootForView => createRootObject
  49709. getInstanceForView => getPluginInstanceForWidget
  49710. * page/mac/FrameMac.mm:
  49711. (WebCore::FrameMac::getAppletInstanceForWidget): Put the NSView * in a void*
  49712. variable named "nativeHandle" to be more explicit about the fact that JavaScript's
  49713. "nativeHandle" is just an NSView *.
  49714. (WebCore::getPluginInstanceForWidget): This function now does the NSView *
  49715. fetching that its callers used to do.
  49716. (WebCore::FrameMac::getEmbedInstanceForWidget): Updated for rename.
  49717. (WebCore::FrameMac::getObjectInstanceForWidget): ditto
  49718. * page/mac/WebCoreFrameBridge.mm: Killed the WebCoreBridgeInternal category,
  49719. which was really more of a shmategory.
  49720. (createRootObject): Removed rootObjectForView, folding it into its only
  49721. caller, the similarly named rootForView. Renamed the pair to "createRootObject"
  49722. because that's what they do.
  49723. (-[WebCoreFrameBridge init]): Updated for renames
  49724. 2007-01-11 Anders Carlsson <acarlsson@apple.com>
  49725. Reviewed by Darin.
  49726. Fix crash on platforms that don't use the new loader yet.
  49727. * loader/DocLoader.cpp:
  49728. (WebCore::DocLoader::requestResource):
  49729. 2007-01-11 Mitz Pettel <mitz@webkit.org>
  49730. Reviewed by Adam.
  49731. - fix http://bugs.webkit.org/show_bug.cgi?id=11449
  49732. Type-to-select in unopened popups doesn't work with Hebrew
  49733. Test: fast/forms/select-type-ahead-non-latin.html
  49734. * html/HTMLSelectElement.cpp:
  49735. (WebCore::HTMLSelectElement::defaultEventHandler): Changed locale-specific
  49736. isprint() condition to a Unicode isPrintableChar().
  49737. 2007-01-09 Justin Garcia <justin.garcia@apple.com>
  49738. Reviewed by geoff
  49739. <rdar://problem/4889140>
  49740. GMail Editor: List creation fails in new message
  49741. * editing/InsertListCommand.cpp:
  49742. (WebCore::InsertListCommand::doApply): Inserting the list
  49743. into an empty paragraph not held open by a br or a '\n',
  49744. will invalidate start and end. Insert a placeholder and
  49745. then recompute start and end.
  49746. 2007-01-11 Lars Knoll <lars@trolltech.com>
  49747. Rubberstamped by Anders
  49748. This one is not needed any longer neither.
  49749. * ChangeLog:
  49750. * WebCore.pro:
  49751. * loader/qt/NavigationActionQt.cpp: Removed.
  49752. 2007-01-11 Lars Knoll <lars@trolltech.com>
  49753. Reviewed by Anders
  49754. Remove now unused file
  49755. * WebCore.pro:
  49756. * loader/qt/LoaderFunctionsQt.cpp: Removed.
  49757. 2007-01-11 David Kilzer <ddkilzer@webkit.org>
  49758. Reviewed by NOBODY (build fix).
  49759. * loader/mac/FrameLoaderMac.mm: Removed import of LoaderNSURLRequestExtras.h.
  49760. * loader/mac/SubresourceLoaderMac.mm: Ditto.
  49761. 2007-01-11 George Staikos <staikos@kde.org>
  49762. Fix compile.
  49763. * page/qt/FrameQtClient.cpp:
  49764. 2007-01-11 Anders Carlsson <acarlsson@apple.com>
  49765. Fix build.
  49766. * dom/XMLTokenizer.cpp:
  49767. * loader/CachedCSSStyleSheet.cpp:
  49768. * loader/CachedImage.cpp:
  49769. * loader/DocLoader.cpp:
  49770. * loader/loader.cpp:
  49771. * xml/XSLTProcessor.cpp:
  49772. * xml/xmlhttprequest.cpp:
  49773. 2007-01-11 Anders Carlsson <acarlsson@apple.com>
  49774. Reviewed by Adam.
  49775. Loader cleanup, get rid of unused code.
  49776. * WebCore.xcodeproj/project.pbxproj:
  49777. * loader/CachedResource.h:
  49778. * loader/DocLoader.cpp:
  49779. (WebCore::DocLoader::requestResource):
  49780. (WebCore::DocLoader::checkCacheObjectStatus):
  49781. * loader/DocLoader.h:
  49782. * loader/LoaderFunctions.h: Removed.
  49783. * loader/mac/CachedResourceMac.mm: Removed.
  49784. * loader/mac/LoaderFunctionsMac.mm: Removed.
  49785. * loader/mac/LoaderNSURLRequestExtras.h: Removed.
  49786. * loader/mac/LoaderNSURLRequestExtras.m: Removed.
  49787. * loader/mac/SubresourceLoaderMac.mm:
  49788. * page/mac/WebCoreFrameBridge.mm:
  49789. * platform/network/ResourceHandle.cpp:
  49790. 2007-01-11 Beth Dakin <bdakin@apple.com>
  49791. Reviewed by Adam.
  49792. Fix for http://bugs.webkit.org/show_bug.cgi?id=12135 REGRESSION:
  49793. <input> and <textarea> not focused on right click (4908884 in
  49794. Radar)
  49795. * page/EventHandler.cpp:
  49796. (WebCore::EventHandler::sendContextMenuEvent): Since WebcCore now
  49797. handles the context menu event, we want to ask if we *have*
  49798. swallowed the event instead of if we *haven't* when deciding to
  49799. perform a selection. In the past, WebKit handled the event, so
  49800. swallowEvent was false in the case where we want to pop up a menu.
  49801. 2007-01-11 Darin Adler <darin@apple.com>
  49802. Reviewed by Anders.
  49803. - fix http://bugs.webkit.org/show_bug.cgi?id=12189
  49804. REGRESSION(r18614-18640): Crash in WebCore::SharedBuffer::hasPlatformData()
  49805. * loader/mac/LoaderFunctionsMac.mm: (WebCore::CheckCacheObjectStatus):
  49806. Added null check.
  49807. 2007-01-11 Darin Adler <darin@apple.com>
  49808. * platform/CharacterNames.h: Oops! horizontalEllipsis != zeroWidthSpace!
  49809. 2007-01-11 Lars Knoll <lars@trolltech.com>
  49810. Reviewed by Darin.
  49811. Start using the loader in the Qt port.
  49812. * loader/FrameLoader.cpp:
  49813. (WebCore::FrameLoader::clear):
  49814. (WebCore::FrameLoader::URL):
  49815. (WebCore::FrameLoader::createEmptyDocument):
  49816. * loader/qt/FrameLoaderQt.cpp:
  49817. (WebCore::FrameLoader::setTitle):
  49818. (WebCore::FrameLoader::originalRequestURL):
  49819. (WebCore::FrameLoader::referrer):
  49820. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  49821. * page/qt/FrameQtClient.cpp:
  49822. (WebCore::FrameQtClient::openURL):
  49823. 2007-01-11 Darin Adler <darin@apple.com>
  49824. Reviewed by Hyatt.
  49825. - removed a couple Mac bridging classes; put the code in WebKit instead
  49826. * WebCore.exp: Updated for new WebKit uses.
  49827. * WebCore.xcodeproj/project.pbxproj: Removed files.
  49828. * bridge/mac/WebCoreEncodings.h: Removed.
  49829. * bridge/mac/WebCoreEncodings.mm: Removed.
  49830. * bridge/mac/WebMimeTypeRegistryBridge.h: Removed.
  49831. * bridge/mac/WebMimeTypeRegistryBridge.mm: Removed.
  49832. * platform/mac/WebNSAttributedStringExtras.h: Removed.
  49833. * platform/mac/WebNSAttributedStringExtras.mm: Removed.
  49834. * platform/mac/PasteboardMac.mm:
  49835. (WebCore::stripAttachmentCharacters): Added. Moved code from
  49836. WebNSAttributedStringExtras.mm, and fixed a garbage collection problem
  49837. (a global with a plain old retain rather than HardRetain).
  49838. (WebCore::Pasteboard::writeSelection): Updated to use stripAttachmentCharacters.
  49839. - removed some DeprecatedCString use
  49840. * loader/FrameLoader.cpp: Changed to use String more to eliminate use of
  49841. DeprecatedCString here in the mailto form support. But maybe we can remove
  49842. this entirely. Do we really care about mailto forms any more?
  49843. * platform/Pasteboard.h: Removed unneeded DeprecatedCString declaration.
  49844. * platform/PlatformString.h: Added replace that takes two strings.
  49845. * platform/StringImpl.h: Ditto.
  49846. * platform/StringImpl.cpp: (WebCore::StringImpl::replace): Ditto.
  49847. * platform/TextStream.h: Remove DeprecatedCString case.
  49848. * platform/TextStream.cpp: Ditto.
  49849. - made a few more files use CharacterNames.h
  49850. * platform/CharacterNames.h: Added some more character names and
  49851. sorted alphabetically.
  49852. * bridge/mac/WebCoreStringTruncator.mm:
  49853. (centerTruncateToBuffer): Use character name from CharacterNames.h.
  49854. (rightTruncateToBuffer): Ditto.
  49855. (truncateString): Ditto.
  49856. * platform/mac/FontMac.mm: (WebCore::addDirectionalOverride): Ditto.
  49857. * rendering/RenderFlexibleBox.cpp:
  49858. (WebCore::RenderFlexibleBox::layoutVerticalBox): Ditto.
  49859. * rendering/bidi.cpp:
  49860. (WebCore::RenderBlock::checkLinesForTextOverflow): Ditto.
  49861. 2007-01-11 David Hyatt <hyatt@apple.com>
  49862. Fix two bugs in positionForCoordinates. (Make it work when you have a margin in between your border and
  49863. your first child block.)
  49864. Rewrite column rebalancing to have two modes: constrained and unconstrained. In unconstrained mode,
  49865. the system will dynamically rebalance as it loses space to breaks and compute a final intrinsic height
  49866. for the overall block. In constrained mode, columns flow into the fixed height block, and extra columns
  49867. spill out horizontally in the appropriate direction (RTL/LTR).
  49868. Make columns work properly with both LTR and RTL overflow blocks.
  49869. Initial column test suite coming soon now that the basic layout is right.
  49870. Reviewed by darin
  49871. * rendering/RenderBlock.cpp:
  49872. (WebCore:::RenderFlow):
  49873. (WebCore::RenderBlock::layoutBlock):
  49874. (WebCore::RenderBlock::paintColumns):
  49875. (WebCore::RenderBlock::lowestPosition):
  49876. (WebCore::RenderBlock::rightmostPosition):
  49877. (WebCore::RenderBlock::leftmostPosition):
  49878. (WebCore::RenderBlock::hitTestColumns):
  49879. (WebCore::RenderBlock::positionForCoordinates):
  49880. (WebCore::RenderBlock::availableWidth):
  49881. (WebCore::RenderBlock::calcColumnWidth):
  49882. (WebCore::RenderBlock::layoutColumns):
  49883. (WebCore::RenderBlock::adjustPointToColumnContents):
  49884. * rendering/RenderBlock.h:
  49885. (WebCore::RenderBlock::hasColumns):
  49886. 2007-01-10 Rob Buis <buis@kde.org>
  49887. Reviewed by Eric.
  49888. http://bugs.webkit.org/show_bug.cgi?id=12201
  49889. Fix image dragging issues with http://www.carto.net/papers/svg/gui/scrollbar/index.svg
  49890. Fix calculation of absolute transform so that viewport x,y
  49891. translation is always done, also when viewBox is set.
  49892. * rendering/RenderSVGContainer.cpp:
  49893. (WebCore::RenderSVGContainer::paint):
  49894. (WebCore::RenderSVGContainer::viewportTransform):
  49895. (WebCore::RenderSVGContainer::absoluteTransform):
  49896. 2007-01-10 David Hyatt <hyatt@apple.com>
  49897. Rework positionForCoordinates to be more efficient and to handle multi-column content. This entailed
  49898. adding a new field to HitTestResult called localPoint that cached the mouse coordinate in the coordinate
  49899. space of the renderer.
  49900. positionForCoordinates now takes local coordinates and so no longer needs to waste time recomputing
  49901. absolute positions over and over again.
  49902. Reviewed by darin
  49903. * bridge/mac/WebCoreAXObject.mm:
  49904. (-[WebCoreAXObject value]):
  49905. (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
  49906. (-[WebCoreAXObject doAXTextMarkerForPosition:]):
  49907. * dom/Document.cpp:
  49908. (WebCore::Document::prepareMouseEvent):
  49909. * editing/SelectionController.cpp:
  49910. (WebCore::SelectionController::contains):
  49911. * editing/visible_units.cpp:
  49912. (WebCore::previousLinePosition):
  49913. (WebCore::nextLinePosition):
  49914. * page/EventHandler.cpp:
  49915. (WebCore::EventHandler::selectClosestWordFromMouseEvent):
  49916. (WebCore::EventHandler::handleMousePressEventDoubleClick):
  49917. (WebCore::EventHandler::handleMousePressEventTripleClick):
  49918. (WebCore::EventHandler::handleMousePressEventSingleClick):
  49919. (WebCore::EventHandler::handleMouseMoveEvent):
  49920. (WebCore::EventHandler::handleMouseReleaseEvent):
  49921. (WebCore::EventHandler::sendContextMenuEvent):
  49922. * page/EventHandler.h:
  49923. * page/MouseEventWithHitTestResults.cpp:
  49924. (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
  49925. * page/MouseEventWithHitTestResults.h:
  49926. (WebCore::MouseEventWithHitTestResults::localPoint):
  49927. * page/mac/WebCoreFrameBridge.mm:
  49928. (-[WebCoreFrameBridge _visiblePositionForPoint:]):
  49929. * rendering/EllipsisBox.cpp:
  49930. (WebCore::EllipsisBox::nodeAtPoint):
  49931. * rendering/HitTestResult.h:
  49932. (WebCore::HitTestResult::localPoint):
  49933. (WebCore::HitTestResult::setLocalPoint):
  49934. * rendering/InlineFlowBox.cpp:
  49935. (WebCore::InlineFlowBox::nodeAtPoint):
  49936. * rendering/InlineTextBox.cpp:
  49937. (WebCore::InlineTextBox::nodeAtPoint):
  49938. * rendering/RenderBlock.cpp:
  49939. (WebCore::RenderBlock::nodeAtPoint):
  49940. (WebCore::RenderBlock::hitTestContents):
  49941. (WebCore::RenderBlock::positionForCoordinates):
  49942. * rendering/RenderBox.cpp:
  49943. (WebCore::RenderBox::nodeAtPoint):
  49944. * rendering/RenderContainer.cpp:
  49945. (WebCore::RenderContainer::positionForCoordinates):
  49946. * rendering/RenderFlow.cpp:
  49947. (WebCore::RenderFlow::hitTestLines):
  49948. * rendering/RenderInline.cpp:
  49949. (WebCore::RenderInline::positionForCoordinates):
  49950. * rendering/RenderLayer.cpp:
  49951. (WebCore::RenderLayer::autoscroll):
  49952. (WebCore::RenderLayer::hitTestLayer):
  49953. * rendering/RenderObject.cpp:
  49954. (WebCore::RenderObject::updateHitTestResult):
  49955. * rendering/RenderObject.h:
  49956. * rendering/RenderPath.cpp:
  49957. (WebCore::RenderPath::nodeAtPoint):
  49958. * rendering/RenderReplaced.cpp:
  49959. (WebCore::RenderReplaced::positionForCoordinates):
  49960. * rendering/RenderTableRow.cpp:
  49961. (WebCore::RenderTableRow::nodeAtPoint):
  49962. * rendering/RenderTableSection.cpp:
  49963. (WebCore::RenderTableSection::nodeAtPoint):
  49964. * rendering/RenderText.cpp:
  49965. (WebCore::RenderText::positionForCoordinates):
  49966. * rendering/RootInlineBox.cpp:
  49967. (WebCore::RootInlineBox::nodeAtPoint):
  49968. (WebCore::RootInlineBox::closestLeafChildForXPos):
  49969. * rendering/RootInlineBox.h:
  49970. 2007-01-11 George Staikos <staikos@kde.org>
  49971. Reviewed by Maciej.
  49972. Fix Qt Build.
  49973. * loader/qt/DocumentLoaderQt.cpp:
  49974. (WebCore::DocumentLoader::getResponseModifiedHeader):
  49975. 2007-01-10 Pam Greene <pam@chromium.org>
  49976. Reviewed by Darin.
  49977. Fixes for http://bugs.webkit.org/show_bug.cgi?id=11841
  49978. Set image size to fit alt text when image or input-image element
  49979. has no src attribute, so that those images show their alt text instead
  49980. of showing nothing at all.
  49981. * html/HTMLImageElement.cpp:
  49982. (WebCore::HTMLImageElement::attach):
  49983. * html/HTMLInputElement.cpp:
  49984. (WebCore::HTMLInputElement::attach):
  49985. * rendering/RenderImage.cpp:
  49986. (WebCore::RenderImage::setImageSizeForAltText):
  49987. (WebCore::RenderImage::imageChanged):
  49988. * rendering/RenderImage.h:
  49989. 2007-01-11 Mark Rowe <mrowe@apple.com>
  49990. Build fix.
  49991. * rendering/RenderView.cpp:
  49992. (WebCore::RenderView::printing):
  49993. 2007-01-10 Mitz Pettel <mitz@webkit.org>
  49994. Reviewed by Darin.
  49995. - fix http://bugs.webkit.org/show_bug.cgi?id=9284
  49996. Quirksmode (CSS1): Removing inline border styles is impossible
  49997. Test: fast/css/remove-shorthand.html
  49998. * css/CSSMutableStyleDeclaration.cpp:
  49999. (WebCore::PropertyLonghand::PropertyLonghand): Added this structure
  50000. containing a pointer to an array if properties and the array's length.
  50001. (WebCore::PropertyLonghand::properties):
  50002. (WebCore::PropertyLonghand::length):
  50003. (WebCore::initShorthandMap): Initialize the mapping from shorthand
  50004. properties to their dependent properties.
  50005. (WebCore::CSSMutableStyleDeclaration::removeProperty): Changed to check
  50006. if the property being removed is a shorthand, and if so, to remove all
  50007. of its dependent properties.
  50008. (WebCore::CSSMutableStyleDeclaration::removePropertiesInSet): Added a
  50009. 'notifyChanged' boolean parameter which controls whether this method
  50010. calls setChanged() if it actually removes any property.
  50011. * css/CSSMutableStyleDeclaration.h:
  50012. 2007-01-10 Steve Falkenburg <sfalken@apple.com>
  50013. Reviewed by Kevin.
  50014. Removed unnecessary printing state
  50015. * page/FrameView.cpp:
  50016. (WebCore::FrameView::layout):
  50017. * page/mac/WebCoreFrameBridge.mm:
  50018. (-[WebCoreFrameBridge forceLayoutAdjustingViewSize:]):
  50019. (-[WebCoreFrameBridge forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
  50020. (-[WebCoreFrameBridge drawRect:]):
  50021. (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
  50022. (-[WebCoreFrameBridge adjustPageHeightNew:top:bottom:limit:]):
  50023. * rendering/RenderLayer.cpp:
  50024. (WebCore::RenderLayer::updateLayerPositions):
  50025. * rendering/RenderObject.cpp:
  50026. (WebCore::RenderObject::repaint):
  50027. (WebCore::RenderObject::repaintRectangle):
  50028. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  50029. * rendering/RenderView.cpp:
  50030. (WebCore::RenderView::RenderView):
  50031. (WebCore::RenderView::calcHeight):
  50032. (WebCore::RenderView::calcWidth):
  50033. (WebCore::RenderView::layout):
  50034. (WebCore::RenderView::paint):
  50035. (WebCore::RenderView::repaintViewRectangle):
  50036. (WebCore::RenderView::computeAbsoluteRepaintRect):
  50037. (WebCore::RenderView::printing):
  50038. (WebCore::RenderView::viewRect):
  50039. (WebCore::RenderView::docHeight):
  50040. (WebCore::RenderView::docWidth):
  50041. * rendering/RenderView.h:
  50042. * rendering/RenderWidget.cpp:
  50043. (WebCore::RenderWidget::updateWidgetPosition):
  50044. * rendering/bidi.cpp:
  50045. (WebCore::RenderBlock::layoutInlineChildren):
  50046. 2007-01-10 Anders Carlsson <acarlsson@apple.com>
  50047. Reviewed by Maciej.
  50048. Get the Refresh header directly from the ResourceResponse.
  50049. * loader/DocumentLoader.h:
  50050. * loader/FrameLoader.cpp:
  50051. (WebCore::FrameLoader::commitProvisionalLoad):
  50052. * loader/mac/DocumentLoaderMac.mm:
  50053. (WebCore::DocumentLoader::getResponseModifiedHeader):
  50054. 2007-01-10 Beth Dakin <bdakin@apple.com>
  50055. Reviewed by John.
  50056. Fix for <rdar://problem/4914258> REGRESSION: Search in Google now
  50057. operates on the current WebView instead of invoking Safari's
  50058. service
  50059. * page/ContextMenuClient.h: New call to the client to search in
  50060. google.
  50061. * page/ContextMenuController.cpp:
  50062. (WebCore::ContextMenuController::contextMenuItemSelected): Call
  50063. into the client instead of forming a new url string and loading it.
  50064. * platform/graphics/svg/SVGImageEmptyClients.h:
  50065. (WebCore::SVGEmptyContextMenuClient::searchWithGoogle): New call.
  50066. 2007-01-10 Adam Roben <aroben@apple.com>
  50067. Rubberstamped by Darin.
  50068. * page/ContextMenuController.cpp:
  50069. (WebCore::ContextMenuController::contextMenuItemSelected): Pass 0
  50070. instead of an empty Event to FrameLoader::load and
  50071. FrameLoader::urlSelected.
  50072. 2007-01-10 Anders Carlsson <acarlsson@apple.com>
  50073. * loader/ResourceLoader.cpp:
  50074. (WebCore::ResourceLoader::~ResourceLoader):
  50075. Disable assertion (I forgot to do this even though I added the comment!)
  50076. 2007-01-10 Ross Burton <ross@burtonini.com>
  50077. Reviewed and landed by Anders.
  50078. Fix case in vcproj file (the GTK+ port uses the vcproj file).
  50079. * WebCore.vcproj/WebCore/WebCore.vcproj:
  50080. 2007-01-10 Lars Knoll <lars@trolltech.com>
  50081. Make the Qt build compile again after
  50082. the ResourceLoader was made platform
  50083. independent.
  50084. * WebCore.pro:
  50085. * loader/FrameLoader.cpp:
  50086. (WebCore::FrameLoader::didFirstLayout):
  50087. * loader/qt/FrameLoaderQt.cpp:
  50088. * loader/qt/MainResourceLoaderQt.cpp: Removed.
  50089. * loader/qt/ResourceLoaderQt.cpp: Removed.
  50090. * page/qt/FrameQtClient.cpp:
  50091. (WebCore::FrameQtClient::openURL):
  50092. * platform/network/qt/ResourceHandleQt.cpp:
  50093. (WebCore::ResourceHandle::setDefersLoading):
  50094. 2007-01-10 Anders Carlsson <acarlsson@apple.com>
  50095. Rubber-stamped by Maciej.
  50096. Move most of ResourceLoader and MainResourceLoader into the platform-independent files.
  50097. * WebCore.xcodeproj/project.pbxproj:
  50098. * loader/FrameLoader.cpp:
  50099. (WebCore::FrameLoader::didFinishLoad):
  50100. * loader/MainResourceLoader.cpp:
  50101. (WebCore::MainResourceLoader::MainResourceLoader):
  50102. (WebCore::MainResourceLoader::~MainResourceLoader):
  50103. (WebCore::MainResourceLoader::create):
  50104. (WebCore::MainResourceLoader::receivedError):
  50105. (WebCore::MainResourceLoader::didCancel):
  50106. (WebCore::MainResourceLoader::interruptionForPolicyChangeError):
  50107. (WebCore::MainResourceLoader::stopLoadingForPolicyChange):
  50108. (WebCore::MainResourceLoader::callContinueAfterNavigationPolicy):
  50109. (WebCore::MainResourceLoader::continueAfterNavigationPolicy):
  50110. (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
  50111. (WebCore::MainResourceLoader::addData):
  50112. (WebCore::MainResourceLoader::willSendRequest):
  50113. (WebCore::shouldLoadAsEmptyDocument):
  50114. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  50115. (WebCore::MainResourceLoader::callContinueAfterContentPolicy):
  50116. (WebCore::MainResourceLoader::didReceiveResponse):
  50117. (WebCore::MainResourceLoader::didReceiveData):
  50118. (WebCore::MainResourceLoader::didFinishLoading):
  50119. (WebCore::MainResourceLoader::didFail):
  50120. (WebCore::MainResourceLoader::loadNow):
  50121. (WebCore::MainResourceLoader::load):
  50122. (WebCore::MainResourceLoader::setDefersLoading):
  50123. * loader/MainResourceLoader.h:
  50124. * loader/ResourceLoader.cpp:
  50125. (WebCore::ResourceLoader::ResourceLoader):
  50126. (WebCore::ResourceLoader::~ResourceLoader):
  50127. (WebCore::ResourceLoader::releaseResources):
  50128. (WebCore::ResourceLoader::load):
  50129. (WebCore::ResourceLoader::setDefersLoading):
  50130. (WebCore::ResourceLoader::frameLoader):
  50131. (WebCore::ResourceLoader::addData):
  50132. (WebCore::ResourceLoader::clearResourceData):
  50133. (WebCore::ResourceLoader::willSendRequest):
  50134. (WebCore::ResourceLoader::didReceiveResponse):
  50135. (WebCore::ResourceLoader::didReceiveData):
  50136. (WebCore::ResourceLoader::willStopBufferingData):
  50137. (WebCore::ResourceLoader::didFinishLoading):
  50138. (WebCore::ResourceLoader::didFinishLoadingOnePart):
  50139. (WebCore::ResourceLoader::didFail):
  50140. (WebCore::ResourceLoader::didCancel):
  50141. (WebCore::ResourceLoader::cancel):
  50142. (WebCore::ResourceLoader::response):
  50143. (WebCore::ResourceLoader::cancelledError):
  50144. * loader/ResourceLoader.h:
  50145. (WebCore::ResourceLoader::willStopBufferingData):
  50146. (WebCore::ResourceLoader::setRequest):
  50147. * loader/mac/FrameLoaderMac.mm:
  50148. * loader/mac/MainResourceLoaderMac.mm: Removed.
  50149. * loader/mac/ResourceLoaderMac.mm:
  50150. 2007-01-10 Lars Knoll <lars@trolltech.com>
  50151. Move files to the correct location,
  50152. and remove a few unused methods from
  50153. LoaderFunctionsQt.cpp
  50154. * WebCore.pro:
  50155. * loader/qt/LoaderFunctionsQt.cpp: Added.
  50156. (WebCore::CheckCacheObjectStatus):
  50157. * page/qt/FrameQt.cpp: Added.
  50158. (WebCore::doScroll):
  50159. (WebCore::FrameQt::FrameQt):
  50160. (WebCore::FrameQt::~FrameQt):
  50161. (WebCore::FrameQt::passMouseDownEventToWidget):
  50162. (WebCore::FrameQt::isLoadTypeReload):
  50163. (WebCore::FrameQt::markedTextRange):
  50164. (WebCore::FrameQt::mimeTypeForFileName):
  50165. (WebCore::FrameQt::unfocusWindow):
  50166. (WebCore::FrameQt::focusWindow):
  50167. (WebCore::FrameQt::getEmbedInstanceForWidget):
  50168. (WebCore::FrameQt::getObjectInstanceForWidget):
  50169. (WebCore::FrameQt::getAppletInstanceForWidget):
  50170. (WebCore::FrameQt::issueCutCommand):
  50171. (WebCore::FrameQt::issueCopyCommand):
  50172. (WebCore::FrameQt::issuePasteCommand):
  50173. (WebCore::FrameQt::issuePasteAndMatchStyleCommand):
  50174. (WebCore::FrameQt::issueTransposeCommand):
  50175. (WebCore::FrameQt::respondToChangedSelection):
  50176. (WebCore::FrameQt::shouldChangeSelection):
  50177. (WebCore::FrameQt::print):
  50178. (WebCore::FrameQt::shouldInterruptJavaScript):
  50179. (WebCore::FrameQt::keyEvent):
  50180. (WebCore::FrameQt::setFrameGeometry):
  50181. (WebCore::FrameQt::client):
  50182. (WebCore::FrameQt::createNewWindow):
  50183. (WebCore::FrameQt::goBackOrForward):
  50184. (WebCore::FrameQt::historyURL):
  50185. (WebCore::FrameQt::runJavaScriptAlert):
  50186. (WebCore::FrameQt::runJavaScriptConfirm):
  50187. (WebCore::FrameQt::runJavaScriptPrompt):
  50188. (WebCore::FrameQt::bindingRootObject):
  50189. (WebCore::FrameQt::addPluginRootObject):
  50190. * page/qt/FrameQt.h: Added.
  50191. (WebCore::QtFrame):
  50192. * page/qt/FrameQtClient.cpp: Added.
  50193. (WebCore::FrameQtClient::FrameQtClient):
  50194. (WebCore::FrameQtClient::~FrameQtClient):
  50195. (WebCore::FrameQtClient::setFrame):
  50196. (WebCore::FrameQtClient::openURL):
  50197. (WebCore::FrameQtClient::submitForm):
  50198. (WebCore::FrameQtClient::didReceiveResponse):
  50199. (WebCore::FrameQtClient::didFinishLoading):
  50200. (WebCore::FrameQtClient::didFail):
  50201. (WebCore::FrameQtClient::didReceiveData):
  50202. (WebCore::FrameQtClient::traverseNextFrameStayWithin):
  50203. (WebCore::numRequests):
  50204. (WebCore::FrameQtClient::numPendingOrLoadingRequests):
  50205. * page/qt/FrameQtClient.h: Added.
  50206. * platform/qt/FrameQt.cpp: Removed.
  50207. * platform/qt/FrameQt.h: Removed.
  50208. * platform/qt/FrameQtClient.cpp: Removed.
  50209. * platform/qt/FrameQtClient.h: Removed.
  50210. * platform/qt/LoaderFunctionsQt.cpp: Removed.
  50211. 2007-01-10 Adam Roben <aroben@apple.com>
  50212. Reviewed by Geoff.
  50213. Fix: <rdar://problem/4917054> ContextMenuController leaks Events
  50214. No layout tests possible.
  50215. * page/ContextMenuController.cpp:
  50216. (WebCore::ContextMenuController::contextMenuItemSelected): Use RefPtr
  50217. to manage the lifetime of Shared objects.
  50218. 2007-01-10 Rob Buis <buis@kde.org>
  50219. Reviewed by Sam.
  50220. http://bugs.webkit.org/show_bug.cgi?id=12196
  50221. SVGPatternElement should not be locatable
  50222. Replace SVGStyledLocatableElement derivation with
  50223. SVGStyledElement.
  50224. * ksvg2/svg/SVGPatternElement.cpp:
  50225. (WebCore::SVGPatternElement::SVGPatternElement):
  50226. * ksvg2/svg/SVGPatternElement.h:
  50227. 2007-01-10 Nikolas Zimmermann <zimmermann@kde.org>
  50228. Build fix, not reviewed.
  50229. * rendering/RenderSVGText.cpp: Use correct method name.
  50230. (WebCore::RenderSVGText::relativeBBox):
  50231. 2007-01-10 Nikolas Zimmermann <zimmermann@kde.org>
  50232. Reviewed by Eric.
  50233. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10262 (SVG fails to redraw top 20 pixels)
  50234. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10263 (SVG seems to repaint way too many times during load)
  50235. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10404 (Invalidation issues with text skew)
  50236. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10407 (bad SVG text invalidation issues on mouseover/mouseout)
  50237. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10806 (failing manual-tests/svg-repaint-group.svg)
  50238. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10913 (SVG charts from plotkit fail to render unless you scroll them offscreen)
  50239. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10964 (inclusion of svg into svg leave a ghost invisible rectangle)
  50240. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11680 (DojoKit SVG test chart fails to render (clipping issue?))
  50241. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11883 (SVG Text has updating/repainting issues)
  50242. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11907 (RenderSVGContainer does not mark itself for repaint after setting viewBox, slice or align)
  50243. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11913 (Invalidation issues in SVG javascript-based animation example)
  50244. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11979 (SVG text does not respect font-size scaling in bbox calculation)
  50245. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11984 (SVG <text> does not calculate the correct absoluteRepaintRect)
  50246. Partly fixes: http://bugs.webkit.org/show_bug.cgi?id=10745 (SVG layout needs to move out of DOM and into rendering tree during layout() call)
  50247. Fixes text redrawing issues seen in svg/carto.net (when actually playing with those files, manually)
  50248. Fixes svg/carto.net/window.svg (moving "Navigation Window" caused artefacts)
  50249. Fixes svg/W3C-SVG-1.1/types-basicDOM-01-b.svg (bbox calculations had one pixel offset)
  50250. Large SVG dynamic update rework/optimization. Also fixes SVG printing.
  50251. Rename updateCanvasItem() to rebuildRenderer(), as this is what it really does.
  50252. Do NOT call rebuildRenderer() in notifyAttributeChange() anymore,
  50253. but override notifyAttributeChange() in SVGPathElement/SVGCircleElement/etc..
  50254. (as only primitives using RenderPath as rendering object need this logic!)
  50255. This should clarify what really happens, as discussed with Eric.
  50256. Remove the invocations of notifyAttributeChange() in SVGLength. It's already
  50257. handled by the JS bindings, and we do double updating work. Fixed.
  50258. Because SVG dynamic updates have been flaky in the past, there was a hack introduced
  50259. in RenderPath causing the updateCanvasItem() function to be called _on every layout_ (!!!).
  50260. Finally this hack is gone. Offer RenderSVGContainer::absoluteRects() function to be able
  50261. to use WebInspector for <g> elements (very handy!).
  50262. Remove the unneeded "m_updateVectorial" bool from SVGStyledElement.
  50263. Remove computeAbsoluteRepaintRect() from RenderSVGContainer/RenderSVGImage/RenderSVGText,
  50264. as dicussed with David (we only need to reimplement getAbsoluteRepaintRect there).
  50265. Make RenderSVGText::absoluteRects just use the getAbsoluteRepaintRect() function, instead of
  50266. code duplication. Remove unneeded RenderSVGImage::layout() function (RenderImage does the same).
  50267. Add new function SVGStyledElement::renderStyleForElement, which centralizes the manual style
  50268. resolving needed for gradient stops.
  50269. * ksvg2/svg/SVGCircleElement.cpp:
  50270. (WebCore::SVGCircleElement::notifyAttributeChange):
  50271. (WebCore::SVGCircleElement::hasRelativeValues):
  50272. * ksvg2/svg/SVGCircleElement.h:
  50273. * ksvg2/svg/SVGEllipseElement.cpp:
  50274. (WebCore::SVGEllipseElement::notifyAttributeChange):
  50275. (WebCore::SVGEllipseElement::hasRelativeValues):
  50276. * ksvg2/svg/SVGEllipseElement.h:
  50277. * ksvg2/svg/SVGImageElement.cpp:
  50278. (WebCore::SVGImageElement::notifyAttributeChange):
  50279. * ksvg2/svg/SVGImageElement.h:
  50280. * ksvg2/svg/SVGLength.cpp:
  50281. (WebCore::SVGLength::setValue):
  50282. (WebCore::SVGLength::setValueInSpecifiedUnits):
  50283. * ksvg2/svg/SVGLength.h:
  50284. (WebCore::SVGLength::isRelative):
  50285. * ksvg2/svg/SVGLineElement.cpp:
  50286. (WebCore::SVGLineElement::notifyAttributeChange):
  50287. (WebCore::SVGLineElement::hasRelativeValues):
  50288. * ksvg2/svg/SVGLineElement.h:
  50289. * ksvg2/svg/SVGLocatable.cpp:
  50290. (WebCore::SVGLocatable::getBBox):
  50291. * ksvg2/svg/SVGPathElement.cpp:
  50292. (WebCore::SVGPathElement::notifyAttributeChange):
  50293. * ksvg2/svg/SVGPathElement.h:
  50294. * ksvg2/svg/SVGPolyElement.cpp:
  50295. (WebCore::SVGPolyElement::notifyAttributeChange):
  50296. * ksvg2/svg/SVGPolyElement.h:
  50297. (WebCore::SVGPolyElement::rendererIsNeeded):
  50298. * ksvg2/svg/SVGRectElement.cpp:
  50299. (WebCore::SVGRectElement::notifyAttributeChange):
  50300. (WebCore::SVGRectElement::hasRelativeValues):
  50301. * ksvg2/svg/SVGRectElement.h:
  50302. * ksvg2/svg/SVGSVGElement.cpp:
  50303. (WebCore::SVGSVGElement::hasRelativeValues):
  50304. * ksvg2/svg/SVGSVGElement.h:
  50305. * ksvg2/svg/SVGStyledElement.cpp:
  50306. (WebCore::SVGStyledElement::SVGStyledElement):
  50307. (WebCore::SVGStyledElement::createRenderer):
  50308. (WebCore::SVGStyledElement::notifyAttributeChange):
  50309. (WebCore::SVGStyledElement::rebuildRenderer):
  50310. * ksvg2/svg/SVGStyledElement.h:
  50311. (WebCore::SVGStyledElement::hasRelativeValues):
  50312. * rendering/RenderPath.cpp:
  50313. (WebCore::RenderPath::setLocalTransform):
  50314. (WebCore::RenderPath::fillContains):
  50315. (WebCore::RenderPath::relativeBBox):
  50316. (WebCore::RenderPath::layout):
  50317. (WebCore::RenderPath::getAbsoluteRepaintRect):
  50318. (WebCore::RenderPath::paint):
  50319. (WebCore::RenderPath::nodeAtPoint):
  50320. (WebCore::drawMarkerWithData):
  50321. (WebCore::updateMarkerDataForElement):
  50322. (WebCore::drawStartAndMidMarkers):
  50323. (WebCore::RenderPath::drawMarkersIfNeeded):
  50324. (WebCore::RenderPath::hasRelativeValues):
  50325. * rendering/RenderPath.h:
  50326. * rendering/RenderSVGContainer.cpp:
  50327. (WebCore::RenderSVGContainer::layout):
  50328. (WebCore::RenderSVGContainer::paint):
  50329. (WebCore::RenderSVGContainer::calcViewport):
  50330. (WebCore::RenderSVGContainer::setViewBox):
  50331. (WebCore::RenderSVGContainer::setAlign):
  50332. (WebCore::RenderSVGContainer::viewportTransform):
  50333. (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
  50334. (WebCore::RenderSVGContainer::absoluteRects):
  50335. (WebCore::RenderSVGContainer::fillContains):
  50336. (WebCore::RenderSVGContainer::strokeContains):
  50337. (WebCore::RenderSVGContainer::relativeBBox):
  50338. (WebCore::RenderSVGContainer::setSlice):
  50339. * rendering/RenderSVGContainer.h:
  50340. * rendering/RenderSVGImage.cpp:
  50341. (WebCore::RenderSVGImage::RenderSVGImage):
  50342. (WebCore::RenderSVGImage::adjustRectsForAspectRatio):
  50343. (WebCore::RenderSVGImage::relativeBBox):
  50344. (WebCore::RenderSVGImage::imageChanged):
  50345. (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
  50346. (WebCore::RenderSVGImage::absoluteRects):
  50347. * rendering/RenderSVGImage.h:
  50348. * rendering/RenderSVGText.cpp:
  50349. (WebCore::RenderSVGText::getAbsoluteRepaintRect):
  50350. (WebCore::RenderSVGText::layout):
  50351. (WebCore::RenderSVGText::createInlineBox):
  50352. (WebCore::RenderSVGText::absoluteRects):
  50353. (WebCore::RenderSVGText::relativeBBox):
  50354. * rendering/RenderSVGText.h:
  50355. * rendering/SVGInlineFlowBox.cpp:
  50356. (WebCore::placePositionedBoxesHorizontally):
  50357. 2007-01-10 David Hyatt <hyatt@apple.com>
  50358. Make the selectionRect() method of RenderText better by reusing computeAbsoluteRepaintRect. This enables
  50359. the method to be multi-column aware and also to understand when the selection is clipped out by overflow.
  50360. Reviewed by bdash
  50361. * rendering/RenderText.cpp:
  50362. (WebCore::RenderText::selectionRect):
  50363. 2007-01-10 David Hyatt <hyatt@apple.com>
  50364. Make the absolutePosition method multi-column aware. Note that there is now a real problem with the
  50365. absoluteRects method, since an object can split across multiple columns and break into multiple rects.
  50366. absolutePosition just returns the top-left corner of the element's box in the first column in which it
  50367. appears.
  50368. Reviewed by bdash
  50369. * rendering/RenderBlock.cpp:
  50370. (WebCore::RenderBlock::adjustRectForColumns):
  50371. * rendering/RenderBlock.h:
  50372. * rendering/RenderBox.cpp:
  50373. (WebCore::RenderBox::absolutePosition):
  50374. (WebCore::RenderBox::computeAbsoluteRepaintRect):
  50375. * rendering/RenderFlow.cpp:
  50376. (WebCore::RenderFlow::getAbsoluteRepaintRect):
  50377. 2007-01-09 David Hyatt <hyatt@apple.com>
  50378. Avoid crashing when repainting multiple columns... make sure to use the current vector's size and
  50379. not the newly-computed column count.
  50380. * rendering/RenderBlock.cpp:
  50381. (WebCore::RenderBlock::layoutColumns):
  50382. (WebCore::RenderBlock::adjustRepaintRectForColumns):
  50383. 2007-01-09 David Hyatt <hyatt@apple.com>
  50384. Break up painting and hit testing of children into helper methods and add multi-column versions for both.
  50385. Make incremental repainting able to invalidate the right spot in multiple column layouts so that e.g., link
  50386. hover works.
  50387. Turn off selection gap filling in columns for now until it can be made to work correctly.
  50388. Improve the column balancing heuristic by adding in the block's lineHeight/2 to each column initially to
  50389. account for column break adjustments that shrink the columns slightly. Avoid clipping of the last column's
  50390. contents by ensuring it gets all the remaining available height.
  50391. Reviewed by mitz
  50392. * rendering/RenderBlock.cpp:
  50393. (WebCore::RenderBlock::paintColumns):
  50394. (WebCore::RenderBlock::paintContents):
  50395. (WebCore::RenderBlock::paintObject):
  50396. (WebCore::RenderBlock::fillSelectionGaps):
  50397. (WebCore::RenderBlock::nodeAtPoint):
  50398. (WebCore::RenderBlock::hitTestColumns):
  50399. (WebCore::RenderBlock::layoutColumns):
  50400. (WebCore::RenderBlock::adjustRepaintRectForColumns):
  50401. * rendering/RenderBlock.h:
  50402. * rendering/RenderBox.cpp:
  50403. (WebCore::RenderBox::computeAbsoluteRepaintRect):
  50404. * rendering/RenderFlow.cpp:
  50405. (WebCore::RenderFlow::getAbsoluteRepaintRect):
  50406. 2007-01-09 Remi Zara <remi_zara@mac.com>
  50407. Reviewed by Darin and Eric.
  50408. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12150
  50409. Don't use memset to set float to 0
  50410. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  50411. (WebCore::cgGradientCallback):
  50412. 2007-01-09 Anders Carlsson <acarlsson@apple.com>
  50413. Reviewed by Brady.
  50414. Add default constructor to SharedBuffer.
  50415. * platform/SharedBuffer.cpp:
  50416. (WebCore::SharedBuffer::SharedBuffer):
  50417. * platform/SharedBuffer.h:
  50418. 2007-01-09 David Hyatt <hyatt@apple.com>
  50419. This patch gets rudimentary column layout working. Normal flow content only gets laid out into
  50420. columns properly and painted correctly initially. What doesn't work: hit testing, incremental repainting,
  50421. column rule painting, child layers.
  50422. Some work needs to be done on the render tree dumper before column tests will be
  50423. meaningful.
  50424. Also reworked overflow and fixed a bunch of bugs with the computation of overflow. These include an error
  50425. in the height calculations caused by not adding in the horizontal scrollbar height and other errors caused
  50426. by not checking overflow in lowest/rightmostPosition. Existing tests improve their rendering to match
  50427. Firefox with this change.
  50428. Fixed a bug where a table cell incorrectly expanded to encompass floats inside an overflow:auto block.
  50429. This should not have happened. Covered by new test fast/overflow/table-overflow-float.html.
  50430. Reviewed by mitz
  50431. * page/Frame.cpp:
  50432. * rendering/RenderBlock.cpp:
  50433. (WebCore:::RenderFlow):
  50434. (WebCore::RenderBlock::layoutBlock):
  50435. (WebCore::RenderBlock::paintContents):
  50436. (WebCore::RenderBlock::paintChildren):
  50437. (WebCore::RenderBlock::paintObject):
  50438. (WebCore::RenderBlock::lowestPosition):
  50439. (WebCore::RenderBlock::rightmostPosition):
  50440. (WebCore::RenderBlock::leftmostPosition):
  50441. (WebCore::RenderBlock::avoidsFloats):
  50442. (WebCore::RenderBlock::nodeAtPoint):
  50443. (WebCore::RenderBlock::hitTestContents):
  50444. (WebCore::RenderBlock::layoutColumns):
  50445. * rendering/RenderBlock.h:
  50446. (WebCore::RenderBlock::hasOverhangingFloats):
  50447. (WebCore::RenderBlock::hasColumns):
  50448. * rendering/RenderFlexibleBox.cpp:
  50449. (WebCore::RenderFlexibleBox::layoutBlock):
  50450. (WebCore::RenderFlexibleBox::layoutHorizontalBox):
  50451. (WebCore::RenderFlexibleBox::layoutVerticalBox):
  50452. * rendering/RenderFlow.cpp:
  50453. (WebCore::RenderFlow::paintLines):
  50454. (WebCore::RenderFlow::lowestPosition):
  50455. (WebCore::RenderFlow::rightmostPosition):
  50456. (WebCore::RenderFlow::leftmostPosition):
  50457. * rendering/RenderFlow.h:
  50458. (WebCore::RenderFlow::hasColumns):
  50459. * rendering/RenderListMarker.cpp:
  50460. (WebCore::RenderListMarker::paint):
  50461. * rendering/RenderObject.h:
  50462. (WebCore::RenderObject::expandsToEncloseOverflow):
  50463. * rendering/RenderTableCell.h:
  50464. (WebCore::RenderTableCell::expandsToEncloseOverflow):
  50465. * rendering/RenderView.cpp:
  50466. (WebCore::RenderView::paint):
  50467. 2007-01-09 Darin Adler <darin@apple.com>
  50468. - update all 2007 Apple copyrights for the new company name
  50469. * css/cssstyleselector.cpp:
  50470. * html/HTMLLIElement.cpp:
  50471. * platform/CharacterNames.h:
  50472. * platform/TextBreakIterator.h:
  50473. * platform/TextBreakIteratorICU.cpp:
  50474. * platform/graphics/ImageBuffer.h:
  50475. * rendering/CounterNode.cpp:
  50476. * rendering/CounterNode.h:
  50477. * rendering/RenderBox.h:
  50478. * rendering/RenderContainer.cpp:
  50479. * rendering/RenderCounter.cpp:
  50480. * rendering/RenderCounter.h:
  50481. * rendering/RenderImage.h:
  50482. * rendering/RenderListItem.h:
  50483. * rendering/RenderListMarker.h:
  50484. * rendering/RenderObject.cpp:
  50485. * rendering/RenderObject.h:
  50486. * rendering/RenderStyle.cpp:
  50487. * rendering/RenderStyle.h:
  50488. * rendering/RenderTable.cpp:
  50489. * rendering/RenderTableCell.cpp:
  50490. * rendering/RenderTableCell.h:
  50491. * rendering/RenderText.cpp:
  50492. * rendering/RenderText.h:
  50493. * rendering/RenderTreeAsText.cpp:
  50494. * rendering/SVGRenderTreeAsText.cpp:
  50495. * rendering/break_lines.cpp:
  50496. 2007-01-09 Justin Garcia <justin.garcia@apple.com>
  50497. Reviewed by john
  50498. <rdar://problem/4840662>
  50499. REGRESSION: Mail crash when dragging text into a link
  50500. moveParagraphs fails to move content into a display:block
  50501. anchor because of code in positionAvoidingSpecialElementBoundary,
  50502. and so it infinitely recurs.
  50503. * editing/htmlediting.cpp:
  50504. (WebCore::positionAvoidingSpecialElementBoundary): Don't avoid anchors
  50505. that have display:block so that content is inserted in the expected
  50506. paragraph. This fixes the bug and weird behavior when typing before/after
  50507. anchors with display:block.
  50508. 2007-01-09 Rob Buis <buis@kde.org>
  50509. Reviewed by Darin.
  50510. http://bugs.webkit.org/show_bug.cgi?id=12145
  50511. Color parsing is too relaxed in strict mode
  50512. http://bugs.webkit.org/show_bug.cgi?id=12166
  50513. REGRESSION (r18480): "336633" is not parsed as a color
  50514. Fix a regression by using String::format return value.
  50515. Also make strict mode more strict for cases where hexcolors
  50516. lack a #.
  50517. * css/cssparser.cpp:
  50518. (WebCore::CSSParser::parseColor):
  50519. (WebCore::CSSParser::parseColorFromValue):
  50520. * css/cssparser.h:
  50521. 2007-01-09 Darin Adler <darin@apple.com>
  50522. Reviewed by Maciej.
  50523. - fixed regression where redirects did not have user-agent any more
  50524. Showed up as a failure in one of the http tests, so no new test needed.
  50525. * loader/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::willSendRequest):
  50526. Don't use a copy of the ResourceRequest; pass the original so it can be modified.
  50527. 2007-01-09 Mitz Pettel <mitz@webkit.org>
  50528. Reviewed by Darin.
  50529. - fix http://bugs.webkit.org/show_bug.cgi?id=11078
  50530. Forms Don't Submit (ASP Pages)
  50531. Test: fast/dom/collection-namedItem-via-item.html
  50532. * bindings/js/kjs_html.cpp:
  50533. (KJS::JSHTMLCollectionProtoFunc::callAsFunction): Changed item() to fall back
  50534. to namedItem() if its argument does not convert to a number.
  50535. 2007-01-09 Darin Adler <darin@apple.com>
  50536. Reviewed by Maciej.
  50537. - fix http://bugs.webkit.org/show_bug.cgi?id=12174
  50538. improve Unicode use (less WTF::Unicode:: prefix, centralized character names)
  50539. - got rid of namespace prefixes from most uses of WTF::Unicode
  50540. - updated for removal of WTF::Unicode::memcmp
  50541. - updated for renaming of WTF::Unicode::strcasecmp to umemcasecmp.
  50542. - unified constants for special Unicode characters in a new
  50543. CharacterNames.h header
  50544. * WebCore.xcodeproj/project.pbxproj:
  50545. * css/cssparser.cpp:
  50546. (WebCore::ParseString::lower):
  50547. * dom/Document.cpp:
  50548. (WebCore::isValidNameStart):
  50549. (WebCore::isValidNamePart):
  50550. * dom/Position.cpp:
  50551. (WebCore::Position::leadingWhitespacePosition):
  50552. (WebCore::Position::trailingWhitespacePosition):
  50553. * editing/CompositeEditCommand.cpp:
  50554. (WebCore::isWhitespace):
  50555. * editing/HTMLInterchange.cpp:
  50556. * editing/TextIterator.cpp:
  50557. (WebCore::CircularSearchBuffer::CircularSearchBuffer):
  50558. (WebCore::CircularSearchBuffer::append):
  50559. * editing/htmlediting.cpp:
  50560. (WebCore::stringWithRebalancedWhitespace):
  50561. (WebCore::nonBreakingSpaceString):
  50562. * editing/htmlediting.h:
  50563. * html/HTMLFontElement.cpp:
  50564. (WebCore::parseFontSizeNumber):
  50565. * html/HTMLParser.cpp:
  50566. (WebCore::HTMLParser::handleError):
  50567. * html/HTMLSelectElement.cpp:
  50568. (WebCore::stripLeadingWhiteSpace):
  50569. * platform/Font.cpp:
  50570. (WebCore::WidthIterator::advance):
  50571. (WebCore::WidthIterator::normalizeVoicingMarks):
  50572. * platform/GlyphMap.cpp:
  50573. (WebCore::GlyphMap::locatePage):
  50574. * platform/MimeTypeRegistry.h:
  50575. * platform/StringHash.h:
  50576. * platform/StringImpl.cpp:
  50577. (WebCore::isSpace):
  50578. (WebCore::StringImpl::append):
  50579. (WebCore::StringImpl::insert):
  50580. (WebCore::StringImpl::truncate):
  50581. (WebCore::StringImpl::remove):
  50582. (WebCore::parseLength):
  50583. (WebCore::StringImpl::isLower):
  50584. (WebCore::StringImpl::lower):
  50585. (WebCore::StringImpl::upper):
  50586. (WebCore::StringImpl::secure):
  50587. (WebCore::StringImpl::foldCase):
  50588. (WebCore::StringImpl::capitalize):t
  50589. (WebCore::StringImpl::toInt):
  50590. (WebCore::equalIgnoringCase):
  50591. (WebCore::StringImpl::find):
  50592. * platform/TextBoundaries.h:
  50593. * platform/TextCodec.h:
  50594. * platform/TextCodecLatin1.cpp:
  50595. * platform/TextEncoding.h:
  50596. * platform/TextEncodingRegistry.h:
  50597. * platform/mac/PasteboardMac.mm:
  50598. (WebCore::Pasteboard::writeSelection):
  50599. * platform/mac/TextCodecMac.cpp:
  50600. (WebCore::TextCodecMac::decode):
  50601. * rendering/RenderBlock.cpp:
  50602. (WebCore::RenderBlock::updateFirstLetter):
  50603. * rendering/RenderListMarker.cpp:
  50604. (WebCore::listMarkerText):
  50605. (WebCore::RenderListMarker::paint):
  50606. * rendering/RenderText.cpp:
  50607. (WebCore::RenderText::widthFromCache):
  50608. (WebCore::isSpaceAccordingToStyle):
  50609. (WebCore::RenderText::setInternalString):
  50610. * rendering/RenderTreeAsText.cpp:
  50611. (WebCore::quoteAndEscapeNonPrintables):
  50612. (WebCore::operator<<):
  50613. * rendering/bidi.cpp:
  50614. (WebCore::BidiState::BidiState):
  50615. (WebCore::BidiContext::BidiContext):
  50616. (WebCore::bidiNext):
  50617. (WebCore::bidiFirst):
  50618. (WebCore::BidiIterator::direction):
  50619. (WebCore::appendRun):
  50620. (WebCore::embed):
  50621. (WebCore::RenderBlock::bidiReorderLine):
  50622. (WebCore::RenderBlock::layoutInlineChildren):
  50623. (WebCore::skipNonBreakingSpace):
  50624. (WebCore::RenderBlock::findNextLineBreak):
  50625. * rendering/break_lines.cpp:
  50626. (WebCore::nextBreakablePosition):
  50627. * rendering/break_lines.h:
  50628. * xml/XPathParser.cpp:
  50629. (WebCore::XPath::charCat):
  50630. 2007-01-09 Matt Perry <mpcomplete@chromium.org>
  50631. Reviewed by Darin.
  50632. - fix http://bugs.webkit.org/show_bug.cgi?id=12170
  50633. RenderView holds dangling reference to RenderObjects as selection markers
  50634. This fixes the crash seen on Windows -- the underlying problem
  50635. may still exist.
  50636. * rendering/RenderText.h:
  50637. (WebCore::RenderText::selectionState):
  50638. Change the m_selectionState enum-bitfield to an unsigned-bitfield,
  50639. because enums on Windows are signed, which caused it to become
  50640. negative (whereas the valid values are all positive).
  50641. 2007-01-09 Darin Adler <darin@apple.com>
  50642. Reviewed by Hyatt.
  50643. - http://bugs.webkit.org/show_bug.cgi?id=12175
  50644. port break_lines.cpp to be platform independent
  50645. * platform/TextBreakIterator.h: Added lineBreakIterator.
  50646. Removed ICU-specific stuff from the header.
  50647. * platform/TextBreakIteratorICU.cpp:
  50648. (WebCore::setUpIterator): Added helper to be shared by the three different
  50649. creation functions.
  50650. (WebCore::characterBreakIterator): Changed to use setUpIterator.
  50651. (WebCore::wordBreakIterator): Ditto.
  50652. (WebCore::lineBreakIterator): Added.
  50653. * platform/qt/TextBreakIteratorQt.cpp:
  50654. (WebCore::lineBreakIterator): Added a stub.
  50655. * rendering/break_lines.cpp:
  50656. (WebCore::isBreakableSpace): Added.
  50657. (WebCore::shouldBreakAfter): Added.
  50658. (WebCore::needsAdvancedBreakAnalysis): Added.
  50659. (WebCore::nextBreakablePosition): Changed to use TextBreakIterator on platforms
  50660. other than Mac.
  50661. 2007-01-09 Maciej Stachowiak <mjs@apple.com>
  50662. Reviewed by Darin.
  50663. - move WebDataProtocol load handling from ResourceLoader to MainResourceLoader
  50664. (it's only ever used for main resources)
  50665. * loader/ResourceLoader.h:
  50666. (WebCore::ResourceLoader::setRequest):
  50667. * loader/mac/MainResourceLoaderMac.mm:
  50668. (WebCore::MainResourceLoader::willSendRequest):
  50669. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  50670. * loader/mac/ResourceLoaderMac.mm:
  50671. (WebCore::ResourceLoader::willSendRequest):
  50672. (WebCore::ResourceLoader::didReceiveResponse):
  50673. 2007-01-09 Rob Buis <buis@kde.org>
  50674. Reviewed by Eric.
  50675. http://bugs.webkit.org/show_bug.cgi?id=12129
  50676. repaint issue after setting viewBox attribute with ECMAScript
  50677. Make sure RenderSVGContainer updates after setting viewBox from js.
  50678. * ksvg2/svg/SVGSVGElement.cpp:
  50679. (WebCore::SVGSVGElement::parseMappedAttribute):
  50680. * rendering/RenderSVGContainer.cpp:
  50681. (WebCore::RenderSVGContainer::setViewBox):
  50682. 2007-01-09 Lars Knoll <lars@trolltech.com>
  50683. Make the Qt build compile... again!
  50684. * WebCore.pro:
  50685. * loader/qt/FrameLoaderQt.cpp:
  50686. * platform/graphics/qt/GraphicsContextQt.cpp:
  50687. * platform/graphics/qt/ImageBufferQt.cpp:
  50688. (WebCore::ImageBuffer::create):
  50689. * platform/qt/WidgetQt.cpp:
  50690. (WebCore::Widget::focusPolicy):
  50691. 2007-01-09 David Hyatt <hyatt@apple.com>
  50692. Fix for background: inherit bug where background-color wasn't getting properly overridden. This was a
  50693. regression from Safari 1.3 to 2.0.
  50694. Reviewed by bdash
  50695. fast/backgrounds/background-color-inherit-bug.html
  50696. * css/cssstyleselector.cpp:
  50697. (WebCore::CSSStyleSelector::applyProperty):
  50698. 2007-01-08 Brady Eidson <beidson@apple.com>
  50699. Reviewed by Brian Dash
  50700. <rdar://problem/4895178>
  50701. WebCore::BackForwardList vector should be backed by a HashSet to remove
  50702. the potential expense in frequently calling BackForwardList::containsItem()
  50703. * history/BackForwardList.cpp:
  50704. (WebCore::BackForwardList::addItem): Maintain HashSet as well as Vector
  50705. (WebCore::BackForwardList::setCapacity): Ditto
  50706. (WebCore::BackForwardList::close): Ditto
  50707. (WebCore::BackForwardList::removeItem): Ditto
  50708. (WebCore::BackForwardList::containsItem): Make a hash lookup instead of iterate
  50709. through the Vector
  50710. * history/BackForwardList.h:
  50711. 2007-01-08 David Hyatt <hyatt@apple.com>
  50712. Fix a regression where layout is triggering on all recalcStyles, due to a bad comparison
  50713. in the multicol assignment operator.
  50714. * rendering/RenderStyle.cpp:
  50715. (WebCore::StyleMultiColData::operator==):
  50716. 2007-01-08 Darin Adler <darin@apple.com>
  50717. - rolled out Beth's RenderFlow::destroy change, which broke 5 editing tests
  50718. * rendering/InlineBox.cpp: (WebCore::InlineBox::root):
  50719. * rendering/RenderFlow.cpp: (WebCore::RenderFlow::destroy):
  50720. Used svn merge to roll the change out.
  50721. 2007-01-09 Mark Rowe <mrowe@apple.com>
  50722. Reviewed by Tim H.
  50723. Build fix for 64-bit platforms.
  50724. * platform/graphics/svg/SVGPaintServerGradient.h:
  50725. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  50726. (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
  50727. 2007-01-08 Anders Carlsson <acarlsson@apple.com>
  50728. Reviewed by Brady.
  50729. Move some history related functions off the bridge and into FrameLoader directly.
  50730. * loader/FrameLoader.cpp:
  50731. (WebCore::FrameLoader::canGoBackOrForward):
  50732. (WebCore::FrameLoader::getHistoryLength):
  50733. (WebCore::FrameLoader::historyURL):
  50734. * loader/mac/FrameLoaderMac.mm:
  50735. * page/mac/WebCoreFrameBridge.h:
  50736. 2007-01-08 Sam Weinig <sam@webkit.org>
  50737. Reviewed by Mark.
  50738. Adds outline-color to list of computable styles.
  50739. * css/CSSComputedStyleDeclaration.cpp:
  50740. (WebCore::):
  50741. 2007-01-08 Beth Dakin <bdakin@apple.com>
  50742. Reviewed by Hyatt.
  50743. Fix for a bug that Adam, Hyatt, and I noticed when debugging
  50744. another problem.
  50745. * rendering/InlineBox.cpp:
  50746. (WebCore::InlineBox::root): Added assertion. If we are casting to a
  50747. root, we should make sure we are root.
  50748. * rendering/RenderFlow.cpp:
  50749. (WebCore::RenderFlow::destroy): It is not enough to remove the
  50750. child boxes for anonymous blocks. We need to be more thorough when
  50751. cleaning these up. Adam's test case illustrates the problem well.
  50752. 2007-01-08 John Sullivan <sullivan@apple.com>
  50753. Tweak to previous checkin
  50754. * page/ContextMenuController.cpp:
  50755. (WebCore::ContextMenuController::contextMenuItemSelected):
  50756. Adam suggested I should nil-check frame->page()
  50757. 2007-01-08 John Sullivan <sullivan@apple.com>
  50758. Reviewed by Brady and Beth
  50759. - fixed <rdar://problem/4912541> GMAIL: With selected text in a rich text message, choosing
  50760. "Search in Google" displays search results in the message body field
  50761. * page/ContextMenuController.cpp:
  50762. (WebCore::ContextMenuController::contextMenuItemSelected):
  50763. Visit google URL in main frame rather than in current frame
  50764. 2007-01-08 David Hyatt <hyatt@apple.com>
  50765. Fix computed style errors for color properties that had invalid colors.
  50766. They should return the value of the 'color' property when their colors
  50767. are not valid.
  50768. Fixed the computed style value for border-top-color (a typo was causing it to
  50769. use border-left-color instead).
  50770. Implement outline-color computed style.
  50771. Reviewed by harrison
  50772. * css/CSSComputedStyleDeclaration.cpp:
  50773. (WebCore::currentColorOrValidColor):
  50774. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  50775. 2007-01-08 Remi Zara <remi_zara@mac.com>
  50776. Reviewed by Darin and Eric.
  50777. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12150
  50778. Handle correctly cases where no stops are defined, cases where a
  50779. stop offset value is less than previous stops offset value, and cases
  50780. where a stop offset value is greater than 1.0.
  50781. * platform/graphics/svg/SVGPaintServerGradient.cpp:
  50782. (WebCore::SVGPaintServerGradient::setGradientStops): Don't sort stops
  50783. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  50784. (WebCore::cgGradientCallback): When there are no stops, use a transparent
  50785. fill
  50786. (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
  50787. a stop offset must always be considered at greater or equal to all
  50788. preceding stop offsets, but no more than 1.0
  50789. 2007-01-08 Timothy Hatcher <timothy@apple.com>
  50790. Reviewed by Geoff.
  50791. <rdar://problem/4865325> please re-add auto font activation support in WebKit
  50792. * platform/mac/WebFontCache.mm:
  50793. (+[WebFontCache fontWithFamily:traits:size:]):
  50794. 2007-01-08 Darin Adler <darin@apple.com>
  50795. Reviewed by Adam.
  50796. - http://bugs.webkit.org/show_bug.cgi?id=12143
  50797. remove Widget code unneeded now that form elements do not use Widget
  50798. * bindings/objc/DOMHTML.mm: (-[DOMHTMLSelectElement _activateItemAtIndex:]):
  50799. Removed useless implementation that would only work with NSView-based
  50800. <select> elements, and added a FIXME about the fact that this function
  50801. doesn't do anything any more. I think it's used by Safari forms auto-fill.
  50802. * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject rendererForView:]):
  50803. Removed code that depends on elementForView:, since that always returns
  50804. nil now.
  50805. * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::~HTMLFormElement):
  50806. Use a formDestroyed() function rather than clearing m_form directly so that
  50807. this class doesn't have to be a friend of HTMLGenericFormElement.
  50808. * html/HTMLGenericFormElement.h: Removed now-unneeded friend declaration
  50809. for HTMLFormElement. Moved definition of supportsFocus into the .cpp file.
  50810. Added a public formDestroyed function for use by HTMLFormElement.
  50811. * html/HTMLGenericFormElement.cpp:
  50812. (WebCore::HTMLGenericFormElement::attach): Removed widget-specific code.
  50813. (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
  50814. (WebCore::HTMLGenericFormElement::isMouseFocusable): Ditto.
  50815. (WebCore::HTMLGenericFormElement::supportsFocus): Added this here; it was
  50816. in the header file before, for no good reason.
  50817. * page/EventHandler.h: Removed unused Mac-specific
  50818. currentEventIsMouseDownInWidget.
  50819. * page/mac/EventHandlerMac.mm: Ditto.
  50820. * page/Frame.cpp: (WebCore::Frame::frameForWidget): Changed to use
  50821. RenderWidget to find the frame rather than the WigetClient element()
  50822. function.
  50823. * page/mac/FrameMac.h: Removed unused bridgeForWidget.
  50824. * page/mac/FrameMac.mm: Ditto.
  50825. * page/mac/WebCoreFrameBridge.h: Removed elementForView.
  50826. * page/mac/WebCoreFrameBridge.mm: Ditto. While the scroll bar still did
  50827. implement WebCoreWidgetHolder, it does not correspond to a DOM element,
  50828. so this method was always returning nil.
  50829. * platform/Widget.h: Moved unused types and functions that are still
  50830. in the platform-specific implementations into a "to be deleted" section:
  50831. FocusPolicy, NoFocus, TabFocus, ClickFocus, StrongFocus, WheelFocus,
  50832. lockDrawingFocus, font, focusPolicy, hasFocus, clearFocus, setFont,
  50833. disableFlushDrawing, enableFlushDrawing, unlockDrawingFocus.
  50834. Removed unused functions that are not in platform-specific implementations:
  50835. sizeHint, baselinePosition, checksDescendantsForFocus.
  50836. * platform/Widget.cpp: Removed functions.
  50837. * platform/WidgetClient.h: Emptied out the class. Soon we can delete it.
  50838. * platform/mac/PlatformScrollBarMac.mm: (-[WebCoreScrollBar mouseDown:]):
  50839. Got rid of unneeded includes, removed use of the WebCoreWidgetHolder
  50840. protocol and the one method in it, and changed the calls to beforeMouseDown
  50841. and afterMouseDown to pass the widget pointer in.
  50842. * platform/mac/WebCoreWidgetHolder.h: Emptied out the file -- to be deleted
  50843. later.
  50844. * platform/mac/WidgetMac.mm:
  50845. (WebCore::Widget::~Widget): Removed code to manage deferredFirstResponder.
  50846. (WebCore::Widget::hasFocus): Removed body of function and replaced with
  50847. an assertion that it's never called. Later we'll remove it.
  50848. (WebCore::Widget::setFocus): Tweaked a bit to work given changes to the
  50849. FrameMac class. Also added a FIXME. Given how this works, it does not
  50850. belong in the platform layer.
  50851. (WebCore::Widget::clearFocus): Removed body of function and replaced with
  50852. an assertion that it's never called. Later we'll remove it.
  50853. (WebCore::Widget::focusPolicy): Ditto.
  50854. (WebCore::Widget::font): Ditto.
  50855. (WebCore::Widget::setFont): Ditto.
  50856. (WebCore::Widget::lockDrawingFocus): Ditto.
  50857. (WebCore::Widget::unlockDrawingFocus): Ditto.
  50858. (WebCore::Widget::disableFlushDrawing): Ditto.
  50859. (WebCore::Widget::enableFlushDrawing): Ditto.
  50860. (WebCore::Widget::paint): Removed obsolete comment.
  50861. (WebCore::Widget::sendConsumedMouseUp): Removed body of function and replaced with
  50862. an assertion that it's never called. Later we'll remove it.
  50863. (WebCore::Widget::setIsSelected): Tweaked a bit to work given changes to the
  50864. FrameMac class. Also added a FIXME. Given how this works, it does not
  50865. belong in the platform layer.
  50866. (WebCore::Widget::beforeMouseDown): Changed to take an explicit Widget parameter.
  50867. (WebCore::Widget::afterMouseDown): Ditto.
  50868. * rendering/RenderApplet.cpp:
  50869. (WebCore::RenderApplet::intrinsicWidth): Changed to not call sizeHint() any more.
  50870. I didn't change the values returned by the function, but they make no sense and
  50871. this should probably be fixed later.
  50872. (WebCore::RenderApplet::intrinsicHeight): Ditto.
  50873. * rendering/RenderWidget.h: Removed unneeded WidgetClient.h include. Changed
  50874. RenderWidget to no longer inherit from WidgetClient. Added a find function to find
  50875. a RenderWidget given a Widget. Removed all the virtual functions that override
  50876. WidgetClient hooks.
  50877. * rendering/RenderWidget.cpp: Removed all the WidgetClient functions.
  50878. (WebCore::widgetRendererMap): Added. Map that gives the RenderWidget for each
  50879. Widget that is owned by a RenderWidget.
  50880. (WebCore::RenderWidget::destroy): Removed the setClient call and added a call to
  50881. remove the widget from the widgetRendererMap.
  50882. (WebCore::RenderWidget::setWidget): Ditto.
  50883. (WebCore::RenderWidget::setStyle): Removed the call to Widget::setFont.
  50884. (WebCore::RenderWidget::find): Added. Returns the RenderWidget for a Widget, if any.
  50885. - other changes
  50886. * dom/Node.cpp:
  50887. (WebCore::Node::dump): Removed unnecessary use of DeprecatedString.
  50888. (WebCore::appendAttributeDesc): Ditto.
  50889. (WebCore::Node::showNode): Ditto.
  50890. (WebCore::Node::formatForDebugger): Ditto.
  50891. * loader/CachedImage.cpp: (WebCore::CachedImage::createImage): Cleaned up
  50892. conditional compilation so adding more MIME types here doesn't make the
  50893. function more and more difficult to read.
  50894. * page/Frame.h: Removed unneeded includes and declarations.
  50895. Tweaked formatting.
  50896. * page/Page.h: Removed unneeded declarations.
  50897. * platform/ScrollView.h: Removed unneeded includes.
  50898. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::renderName): Tweaked formatting.
  50899. 2007-01-08 Mitz Pettel <mitz@webkit.org>
  50900. Reviewed by Darin.
  50901. - fix http://bugs.webkit.org/show_bug.cgi?id=12162
  50902. The inheritableProperties array is duplicated
  50903. No test possible (no change to functionality).
  50904. * css/CSSComputedStyleDeclaration.cpp:
  50905. (WebCore::CSSComputedStyleDeclaration::removeComputedInheritablePropertiesFrom): Added.
  50906. Removes the inheritable properties that CSSComputedStyleDeclaration knows how to compute
  50907. from the given mutable declaration.
  50908. * css/CSSComputedStyleDeclaration.h:
  50909. * css/CSSMutableStyleDeclaration.cpp: Removed one copy of the inheritableProperties array.
  50910. * css/CSSMutableStyleDeclaration.h:
  50911. * editing/ReplaceSelectionCommand.cpp:
  50912. (WebCore::ReplaceSelectionCommand::removeRedundantStyles): Changed to call
  50913. CSSComputedStyleDeclaration::removeComputedInheritablePropertiesFrom.
  50914. 2007-01-08 Alexey Proskuryakov <ap@webkit.org>
  50915. Reviewed by Darin.
  50916. http://bugs.webkit.org/show_bug.cgi?id=12099
  50917. XMLHttpRequest shouldn't honor a charset specified via setRequestHeader
  50918. Test: http/tests/xmlhttprequest/request-encoding.html
  50919. * xml/xmlhttprequest.cpp:
  50920. (WebCore::XMLHttpRequest::send): Don't try to get the charset from Content-Type. Keep checking
  50921. for unknown charsets, because that will be needed again when we start using document.xmlEncoding.
  50922. 2007-01-08 Alexey Proskuryakov <ap@webkit.org>
  50923. Reviewed by Darin.
  50924. http://bugs.webkit.org/show_bug.cgi?id=7640
  50925. Menu items are displayed as "undefined"
  50926. * bindings/js/kjs_dom.cpp:
  50927. (KJS::DOMNodeProtoFunc::callAsFunction):
  50928. * bindings/js/kjs_domnode.h:
  50929. (KJS::DOMNode::):
  50930. Removed Node::item. No idea why it was there in the first place.
  50931. * bindings/js/kjs_html.cpp:
  50932. (KJS::HTMLElementFunction::callAsFunction):
  50933. * bindings/js/kjs_html.h:
  50934. (KJS::JSHTMLElement::):
  50935. Added HTMLSelectElement::item. It is not in DOM2 IDL, but the spec seems to mentions it anyway:
  50936. "The contained options can be directly accessed through the select element as a collection."
  50937. * html/HTMLSelectElement.cpp:
  50938. (WebCore::HTMLSelectElement::namedItem):
  50939. (WebCore::HTMLSelectElement::item):
  50940. * html/HTMLSelectElement.h:
  50941. * html/HTMLSelectElement.idl:
  50942. Added this method to DOM and IDL, too. Made namedItem() non-virtual.
  50943. 2007-01-08 Beth Dakin <bdakin@apple.com>
  50944. Reviewed by Maciej.
  50945. Fix for <rdar://problem/4912254> REGRESSION: After copying text to
  50946. the clipboard, the paste contextual remains dimmed when it should
  50947. be active
  50948. No layout test for context menu problems.
  50949. * platform/ContextMenu.cpp:
  50950. (WebCore::ContextMenu::checkOrEnableIfNeeded): Remove check to see
  50951. if the content is richly editable; it only has to be regular
  50952. editable and the call to canPaste() takes care of that.
  50953. 2007-01-08 Sam Weinig <sam@webkit.org>
  50954. Reviewed by Mitz.
  50955. Attempt to fix build for buildbots.
  50956. * rendering/RenderBlock.cpp:
  50957. (WebCore::RenderBlock::columnGap):
  50958. (WebCore::RenderBlock::calcColumnWidth):
  50959. 2007-01-08 Darin Adler <darin@apple.com>
  50960. Reviewed by Maciej.
  50961. - fix http://bugs.webkit.org/show_bug.cgi?id=3232
  50962. CSS2: Web Kit does not support all list style types
  50963. Test case showed problems in cjk-ideographic and hebrew
  50964. Test: fast/lists/w3-list-styles.html
  50965. * rendering/RenderListMarker.cpp:
  50966. (WebCore::toCJKIdeographic): Fix the algorithm so it doesn't include leading zeroes.
  50967. I had misread the part that says you start with the decimal form of the number.
  50968. Fix an assertion that was too stringent. Fix the code to collapse consecutive zeroes
  50969. so that it doesn't get confused by intervening "noChar" characters.
  50970. (WebCore::RenderListMarker::paint): Reverse the text before painting if the first character's
  50971. direction is right to left.
  50972. 2007-01-08 Darin Adler <darin@apple.com>
  50973. Reviewed by Beth.
  50974. - http://bugs.webkit.org/show_bug.cgi?id=12142
  50975. render tree dump for test results should include the value of list markers
  50976. * rendering/RenderTreeAsText.cpp:
  50977. (WebCore::getTagName): Changed to use String instead of DeprecatedString.
  50978. (WebCore::quoteAndEscapeNonPrintables): Ditto. Also moved up so it can be used
  50979. in the operator below.
  50980. (WebCore::operator<<): Added clause for RenderListMarker that dumps the value
  50981. of the list marker's text.
  50982. (WebCore::nodePosition): Changed to use String instead of DeprecatedString.
  50983. * rendering/SVGRenderTreeAsText.cpp:
  50984. (WebCore::TextStreamSeparator::TextStreamSeparator): Changed to use String
  50985. instead of DeprecatedString.
  50986. (WebCore::getTagName): Ditto.
  50987. (WebCore::write): Ditto.
  50988. 2007-01-08 Sam Weinig <sam@webkit.org>
  50989. Reviewed by ap and the rubber stamp of Maciej.
  50990. Patch for http://bugs.webkit.org/show_bug.cgi?id=12164
  50991. Cleanup Tokenizers
  50992. - Moves Tokenizer class into its own file.
  50993. - Move XMLTokenizer declaration from XMLTokenizer.cpp to XMLTokenizer.h
  50994. - Fixup #includes.
  50995. * WebCore.xcodeproj/project.pbxproj:
  50996. * dom/Document.cpp:
  50997. (WebCore::Document::createTokenizer):
  50998. * dom/Tokenizer.h: Added.
  50999. (WebCore::Tokenizer::Tokenizer):
  51000. (WebCore::Tokenizer::~Tokenizer):
  51001. (WebCore::Tokenizer::stopParsing):
  51002. (WebCore::Tokenizer::processingData):
  51003. (WebCore::Tokenizer::executingScript):
  51004. (WebCore::Tokenizer::wantsRawData):
  51005. (WebCore::Tokenizer::writeRawData):
  51006. (WebCore::Tokenizer::inViewSourceMode):
  51007. (WebCore::Tokenizer::setInViewSourceMode):
  51008. (WebCore::Tokenizer::wellFormed):
  51009. (WebCore::Tokenizer::lineNumber):
  51010. (WebCore::Tokenizer::columnNumber):
  51011. * dom/XMLTokenizer.cpp:
  51012. * dom/XMLTokenizer.h:
  51013. (WebCore::XMLTokenizer::):
  51014. (WebCore::XMLTokenizer::setIsXHTMLDocument):
  51015. (WebCore::XMLTokenizer::isXHTMLDocument):
  51016. (WebCore::XMLTokenizer::wellFormed):
  51017. * html/HTMLElement.cpp:
  51018. * html/HTMLTokenizer.h:
  51019. (WebCore::Token::reset):
  51020. (WebCore::HTMLTokenizer::checkBuffer):
  51021. (WebCore::HTMLTokenizer::checkScriptBuffer):
  51022. (WebCore::HTMLTokenizer::State::State):
  51023. (WebCore::HTMLTokenizer::State::setBit):
  51024. * xml/XSLTProcessor.cpp:
  51025. 2007-01-08 Sam Weinig <sam@webkit.org>
  51026. Reviewed by Tim H.
  51027. Adds -webkit-box-shadow to list of computable styles.
  51028. * css/CSSComputedStyleDeclaration.cpp:
  51029. (WebCore::):
  51030. 2007-01-08 Rob Buis <buis@kde.org>
  51031. Reviewed by bdash.
  51032. Initialize the member vars, fixes testcases
  51033. pointer-events-path.svg and pointer-events-text.svg
  51034. on the PPC build.
  51035. * ksvg2/misc/PointerEventsHitRules.cpp:
  51036. (WebCore::PointerEventsHitRules::PointerEventsHitRules):
  51037. 2007-01-08 David Hyatt <hyatt@apple.com>
  51038. This patch computes the correct column width and column count. It ensures that content lays out constrained
  51039. to the column width in one long strip. It does not yet balance the long strip into multiple columns.
  51040. Reviewed by Mark
  51041. * rendering/RenderBlock.cpp:
  51042. (WebCore:::RenderFlow):
  51043. (WebCore::RenderBlock::layoutBlock):
  51044. (WebCore::RenderBlock::rightOffset):
  51045. (WebCore::RenderBlock::availableWidth):
  51046. (WebCore::RenderBlock::columnGap):
  51047. (WebCore::RenderBlock::calcColumnWidth):
  51048. * rendering/RenderBlock.h:
  51049. * rendering/RenderStyle.h:
  51050. (WebCore::RenderStyle::setColumnWidth):
  51051. 2007-01-08 David Hyatt <hyatt@apple.com>
  51052. Fix column-count so that it supports auto just like column-width does.
  51053. Add a new function, availableWidth(), that will be used to return the width available to content placed inside
  51054. a block. For now it still returns contentWidth(), so no behavioral change has occurred yet.
  51055. Subclass calcWidth() in RenderBlock, but don't change anything yet. This is where RenderBlock will calc the
  51056. correct column width.
  51057. Reviewed by mark
  51058. * css/CSSComputedStyleDeclaration.cpp:
  51059. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  51060. * css/cssstyleselector.cpp:
  51061. (WebCore::CSSStyleSelector::applyProperty):
  51062. * rendering/RenderBlock.cpp:
  51063. (WebCore::RenderBlock::leftRelOffset):
  51064. (WebCore::RenderBlock::rightRelOffset):
  51065. (WebCore::RenderBlock::getClearDelta):
  51066. (WebCore::RenderBlock::availableWidth):
  51067. (WebCore::RenderBlock::calcWidth):
  51068. * rendering/RenderBlock.h:
  51069. * rendering/RenderBox.cpp:
  51070. (WebCore::RenderBox::containingBlockWidth):
  51071. * rendering/RenderObject.cpp:
  51072. (WebCore::RenderObject::containingBlockWidth):
  51073. (WebCore::RenderObject::paddingTop):
  51074. (WebCore::RenderObject::paddingBottom):
  51075. (WebCore::RenderObject::paddingLeft):
  51076. (WebCore::RenderObject::paddingRight):
  51077. * rendering/RenderObject.h:
  51078. (WebCore::RenderObject::availableWidth):
  51079. * rendering/RenderStyle.cpp:
  51080. (WebCore::StyleMultiColData::StyleMultiColData):
  51081. (WebCore::StyleMultiColData::operator==):
  51082. * rendering/RenderStyle.h:
  51083. (WebCore::RenderStyle::hasAutoColumnCount):
  51084. (WebCore::RenderStyle::setColumnCount):
  51085. (WebCore::RenderStyle::setHasAutoColumnCount):
  51086. * rendering/RenderTable.cpp:
  51087. (WebCore::RenderTable::calcWidth):
  51088. 2007-01-08 David Hyatt <hyatt@apple.com>
  51089. Fix z-index:inherit so that it works properly when inheriting from z-index:auto.
  51090. Reviewed by eric
  51091. fast/layers/zindex-inherit.html
  51092. * css/cssstyleselector.cpp:
  51093. (WebCore::CSSStyleSelector::applyProperty):
  51094. 2007-01-08 David Hyatt <hyatt@apple.com>
  51095. Add support for all of the CSS3 multi-column properties in preparation for implementing the
  51096. feature.
  51097. Reviewed by eric
  51098. * css/CSSComputedStyleDeclaration.cpp:
  51099. (WebCore::):
  51100. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  51101. * css/CSSMutableStyleDeclaration.cpp:
  51102. (WebCore::):
  51103. * css/CSSPropertyNames.in:
  51104. * css/cssparser.cpp:
  51105. (WebCore::CSSParser::parseValue):
  51106. * css/cssstyleselector.cpp:
  51107. (WebCore::CSSStyleSelector::applyProperty):
  51108. * rendering/RenderStyle.cpp:
  51109. (WebCore::StyleMultiColData::StyleMultiColData):
  51110. (WebCore::StyleMultiColData::operator==):
  51111. (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
  51112. (WebCore::StyleRareNonInheritedData::operator==):
  51113. (WebCore::RenderStyle::RenderStyle):
  51114. (WebCore::RenderStyle::diff):
  51115. * rendering/RenderStyle.h:
  51116. (WebCore::StyleMultiColData::operator!=):
  51117. (WebCore::StyleMultiColData::ruleWidth):
  51118. (WebCore::RenderStyle::columnWidth):
  51119. (WebCore::RenderStyle::hasAutoColumnWidth):
  51120. (WebCore::RenderStyle::columnCount):
  51121. (WebCore::RenderStyle::columnGap):
  51122. (WebCore::RenderStyle::hasAutoColumnGap):
  51123. (WebCore::RenderStyle::columnRuleColor):
  51124. (WebCore::RenderStyle::columnRuleStyle):
  51125. (WebCore::RenderStyle::columnRuleWidth):
  51126. (WebCore::RenderStyle::columnBreakBefore):
  51127. (WebCore::RenderStyle::columnBreakInside):
  51128. (WebCore::RenderStyle::columnBreakAfter):
  51129. (WebCore::RenderStyle::setColumnWidth):
  51130. (WebCore::RenderStyle::setHasAutoColumnWidth):
  51131. (WebCore::RenderStyle::setColumnCount):
  51132. (WebCore::RenderStyle::setColumnGap):
  51133. (WebCore::RenderStyle::setHasAutoColumnGap):
  51134. (WebCore::RenderStyle::setColumnRuleColor):
  51135. (WebCore::RenderStyle::setColumnRuleStyle):
  51136. (WebCore::RenderStyle::setColumnRuleWidth):
  51137. (WebCore::RenderStyle::resetColumnRule):
  51138. (WebCore::RenderStyle::setColumnBreakBefore):
  51139. (WebCore::RenderStyle::setColumnBreakInside):
  51140. (WebCore::RenderStyle::setColumnBreakAfter):
  51141. (WebCore::RenderStyle::initialColumnCount):
  51142. (WebCore::RenderStyle::initialColumnWidth):
  51143. 2007-01-07 Rob Buis <buis@kde.org>
  51144. Reviewed by Eric.
  51145. http://bugs.webkit.org/show_bug.cgi?id=10587
  51146. pointer-events is not implemented for RenderSVGImage or RenderSVGText
  51147. Implement pointer-events for raster images and svg text.
  51148. * WebCore.xcodeproj/project.pbxproj:
  51149. * ksvg2/misc/PointerEventsHitRules.cpp: Added.
  51150. (WebCore::PointerEventsHitRules::PointerEventsHitRules):
  51151. * ksvg2/misc/PointerEventsHitRules.h: Added.
  51152. (WebCore::PointerEventsHitRules::):
  51153. * rendering/RenderPath.cpp:
  51154. (WebCore::RenderPath::nodeAtPoint):
  51155. * rendering/RenderPath.h:
  51156. * rendering/RenderSVGImage.cpp:
  51157. (WebCore::RenderSVGImage::nodeAtPoint):
  51158. * rendering/RenderSVGImage.h:
  51159. * rendering/RenderSVGText.cpp:
  51160. (WebCore::RenderSVGText::nodeAtPoint):
  51161. * rendering/RenderSVGText.h:
  51162. 2007-01-07 David Hyatt <hyatt@apple.com>
  51163. Fix a regression where border-radius was not clipping the background when border was set to none.
  51164. Fix multi-line inline flow painting to properly apply border-radius to the background only at the
  51165. beginning of the first line and end of the last line.
  51166. Reviewed by eric
  51167. * rendering/InlineFlowBox.cpp:
  51168. (WebCore::InlineFlowBox::paintBackground):
  51169. * rendering/RenderBox.cpp:
  51170. (WebCore::RenderBox::paintBackground):
  51171. (WebCore::RenderBox::paintBackgroundExtended):
  51172. * rendering/RenderBox.h:
  51173. * rendering/RenderObject.h:
  51174. (WebCore::RenderObject::paintBackgroundExtended):
  51175. 2007-01-07 David Hyatt <hyatt@apple.com>
  51176. Add support for the CSS3 box-shadow property.
  51177. Reviewed by olliej
  51178. fast/box-shadow/ contains the tests for this feature.
  51179. * platform/graphics/GraphicsContext.cpp:
  51180. (WebCore::GraphicsContext::clipOutRoundedRect):
  51181. * platform/graphics/GraphicsContext.h:
  51182. * platform/graphics/cg/GraphicsContextCG.cpp:
  51183. (WebCore::GraphicsContext::fillRoundedRect):
  51184. (WebCore::GraphicsContext::clipOut):
  51185. (WebCore::GraphicsContext::clipOutEllipseInRect):
  51186. * platform/graphics/qt/GraphicsContextQt.cpp:
  51187. (WebCore::GraphicsContext::fillRoundedRect):
  51188. (WebCore::GraphicsContext::clipOut):
  51189. (WebCore::GraphicsContext::clipOutEllipseInRect):
  51190. * rendering/InlineFlowBox.cpp:
  51191. (WebCore::InlineFlowBox::paint):
  51192. (WebCore::InlineFlowBox::paintBoxShadow):
  51193. (WebCore::InlineFlowBox::paintBoxDecorations):
  51194. (WebCore::shouldDrawTextDecoration):
  51195. (WebCore::InlineFlowBox::paintTextDecorations):
  51196. * rendering/InlineFlowBox.h:
  51197. * rendering/InlineRunBox.h:
  51198. (WebCore::InlineRunBox::paintBoxDecorations):
  51199. (WebCore::InlineRunBox::paintTextDecorations):
  51200. * rendering/RenderBlock.cpp:
  51201. (WebCore::RenderBlock::paintObject):
  51202. * rendering/RenderBox.cpp:
  51203. (WebCore::RenderBox::setStyle):
  51204. (WebCore::RenderBox::paintBoxDecorations):
  51205. (WebCore::RenderBox::paintBackgroundExtended):
  51206. * rendering/RenderFieldset.cpp:
  51207. (WebCore::RenderFieldset::paintBoxDecorations):
  51208. * rendering/RenderHTMLCanvas.cpp:
  51209. (WebCore::RenderHTMLCanvas::paint):
  51210. * rendering/RenderImage.cpp:
  51211. (WebCore::RenderImage::paint):
  51212. * rendering/RenderImage.h:
  51213. * rendering/RenderListMarker.cpp:
  51214. (WebCore::RenderListMarker::paint):
  51215. * rendering/RenderObject.cpp:
  51216. (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
  51217. (WebCore::RenderObject::paintBoxShadow):
  51218. (WebCore::RenderObject::dump):
  51219. (WebCore::RenderObject::setStyle):
  51220. * rendering/RenderObject.h:
  51221. (WebCore::RenderObject::hasBoxDecorations):
  51222. (WebCore::RenderObject::setHasBoxDecorations):
  51223. * rendering/RenderSVGContainer.cpp:
  51224. (WebCore::RenderSVGContainer::paint):
  51225. * rendering/RenderTable.cpp:
  51226. (WebCore::RenderTable::paint):
  51227. (WebCore::RenderTable::paintBoxDecorations):
  51228. * rendering/RenderTableCell.cpp:
  51229. (WebCore::RenderTableCell::RenderTableCell):
  51230. (WebCore::RenderTableCell::setStyle):
  51231. (WebCore::RenderTableCell::paintBoxDecorations):
  51232. * rendering/RenderWidget.cpp:
  51233. (WebCore::RenderWidget::paint):
  51234. 2007-01-07 Rob Buis <buis@kde.org>
  51235. Reviewed by weinig.
  51236. http://bugs.webkit.org/show_bug.cgi?id=10362
  51237. SVG needs to support SVGError events and some form of "error state"
  51238. Report SVG warnings and errors on (JS) console.
  51239. Expose line and column number getters in Tokenizer in
  51240. order to display them with the error message.
  51241. * dom/XMLTokenizer.cpp:
  51242. * dom/XMLTokenizer.h:
  51243. (WebCore::Tokenizer::lineNumber):
  51244. (WebCore::Tokenizer::columnNumber):
  51245. * html/HTMLTokenizer.h:
  51246. (WebCore::HTMLTokenizer::lineNumber):
  51247. (WebCore::HTMLTokenizer::columnNumber):
  51248. * ksvg2/misc/SVGDocumentExtensions.cpp:
  51249. (WebCore::SVGDocumentExtensions::reportWarning):
  51250. (WebCore::SVGDocumentExtensions::reportError):
  51251. * ksvg2/misc/SVGDocumentExtensions.h:
  51252. * ksvg2/svg/SVGCircleElement.cpp:
  51253. (WebCore::SVGCircleElement::parseMappedAttribute):
  51254. * ksvg2/svg/SVGElement.h:
  51255. * ksvg2/svg/SVGEllipseElement.cpp:
  51256. (WebCore::SVGEllipseElement::parseMappedAttribute):
  51257. * ksvg2/svg/SVGFitToViewBox.cpp:
  51258. (WebCore::SVGFitToViewBox::parseViewBox):
  51259. * ksvg2/svg/SVGFitToViewBox.h:
  51260. * ksvg2/svg/SVGImageElement.cpp:
  51261. (WebCore::SVGImageElement::parseMappedAttribute):
  51262. * ksvg2/svg/SVGParserUtilities.cpp:
  51263. (WebCore::SVGPolyParser::parsePoints):
  51264. * ksvg2/svg/SVGParserUtilities.h:
  51265. * ksvg2/svg/SVGPathElement.cpp:
  51266. (WebCore::SVGPathElement::parseMappedAttribute):
  51267. * ksvg2/svg/SVGPatternElement.cpp:
  51268. (WebCore::SVGPatternElement::parseMappedAttribute):
  51269. * ksvg2/svg/SVGPolyElement.cpp:
  51270. (WebCore::SVGPolyElement::parseMappedAttribute):
  51271. * ksvg2/svg/SVGRadialGradientElement.cpp:
  51272. (WebCore::SVGRadialGradientElement::parseMappedAttribute):
  51273. * ksvg2/svg/SVGRectElement.cpp:
  51274. (WebCore::SVGRectElement::parseMappedAttribute):
  51275. * ksvg2/svg/SVGSVGElement.cpp:
  51276. (WebCore::SVGSVGElement::parseMappedAttribute):
  51277. * ksvg2/svg/SVGTextContentElement.cpp:
  51278. (WebCore::SVGTextContentElement::parseMappedAttribute):
  51279. * ksvg2/svg/SVGUseElement.cpp:
  51280. (WebCore::SVGUseElement::parseMappedAttribute):
  51281. 2007-01-07 Nikolas Zimmermann <zimmermann@kde.org>
  51282. Reviewed by Sam.
  51283. Cleanup code & fix InlineBox positioning when text-anchor is used.
  51284. * rendering/RenderSVGText.cpp: Cleanup code.
  51285. (WebCore::RenderSVGText::nodeAtPoint):
  51286. (WebCore::RenderSVGText::absoluteRects):
  51287. (WebCore::RenderSVGText::paint):
  51288. * rendering/RenderText.cpp: Remove unused function posOfChar()
  51289. * rendering/RenderText.h: Ditto.
  51290. * rendering/SVGInlineFlowBox.cpp:
  51291. (WebCore::translateBox):
  51292. (WebCore::placePositionedBoxesHorizontally):
  51293. 2007-01-06 George Staikos <staikos@kde.org>
  51294. Reviewed by Brady.
  51295. Make the Qt build work.... again.
  51296. * WebCore.pro:
  51297. * loader/FrameLoader.cpp:
  51298. (WebCore::FrameLoader::requestFromDelegate):
  51299. * loader/qt/DocumentLoaderQt.cpp:
  51300. * loader/qt/FrameLoaderQt.cpp:
  51301. * loader/qt/MainResourceLoaderQt.cpp: Added.
  51302. (WebCore::MainResourceLoader::create):
  51303. * loader/qt/ResourceLoaderQt.cpp:
  51304. (WebCore::ResourceLoader::load):
  51305. (WebCore::ResourceLoader::cancel):
  51306. (WebCore::ResourceLoader::releaseResources):
  51307. (WebCore::ResourceLoader::addData):
  51308. * platform/network/qt/ResourceHandleQt.cpp:
  51309. (WebCore::ResourceHandle::supportsBufferedData):
  51310. (WebCore::ResourceHandle::bufferedData):
  51311. (WebCore::ResourceHandle::loadResourceSynchronously):
  51312. * platform/qt/LoaderFunctionsQt.cpp:
  51313. * platform/qt/TemporaryLinkStubs.cpp: implemented some functions
  51314. (WebCore::screenDepth):
  51315. (WebCore::screenDepthPerComponent):
  51316. (WebCore::screenIsMonochrome):
  51317. (WebCore::screenRect):
  51318. (WebCore::screenAvailableRect):
  51319. 2007-01-07 Mitz Pettel <mitz@webkit.org>
  51320. Reviewed by Mark Rowe.
  51321. - fix http://bugs.webkit.org/show_bug.cgi?id=11133
  51322. Test: fast/forms/listbox-clip.html
  51323. * platform/mac/PlatformScrollBarMac.mm:
  51324. (-[WebCoreScrollBar initWithPlatformScrollbar:]): Get the correct scrollbar
  51325. width/height based on control size.
  51326. * rendering/RenderListBox.cpp:
  51327. Renamed optionsSpacingLeft to optionsSpacingHorizontal since it is applied
  51328. on both sides.
  51329. (WebCore::RenderListBox::calcMinMaxWidth): Account for optionsSpacingHorizontal.
  51330. Not including the spacing before went unnoticed since the scrollbar was lying
  51331. about its width by exactly the same amount.
  51332. (WebCore::RenderListBox::paintObject): Clip out the scrollbar.
  51333. (WebCore::RenderListBox::paintItemForeground): Changed for the rename.
  51334. 2007-01-07 Mitz Pettel <mitz@webkit.org>
  51335. Reviewed by Hyatt.
  51336. - fix http://bugs.webkit.org/show_bug.cgi?id=11935
  51337. REGRESSION: Changing the overflow style dynamically does not force repaint
  51338. Test: fast/repaint/erase-overflow.html
  51339. * rendering/RenderBox.cpp:
  51340. (WebCore::RenderBox::setStyle): Added a repaint before changing hasOverflowClip
  51341. to true, to ensure that the current overflow is erased.
  51342. 2007-01-07 Graham Dennis <graham.dennis@gmail.com>
  51343. Reviewed by Darin.
  51344. Patch for http://bugs.webkit.org/show_bug.cgi?id=12106
  51345. Changed URL from WebResourceLoadDelegate's webView:resource:willSendRequest:... is ignored
  51346. * loader/mac/SubresourceLoaderMac.mm:
  51347. (WebCore::SubresourceLoader::willSendRequest): Use m_originalURL instead of request().url()
  51348. as m_request is not set until the end of ResourceLoader::willSendRequest. Also, ensure that
  51349. the request is updated if the frame's client changes it, and that the SubresourceLoader's client
  51350. gets the new request and not the old one.
  51351. 2007-01-07 Alexey Proskuryakov <ap@webkit.org>
  51352. Reviewed by Darin.
  51353. http://bugs.webkit.org/show_bug.cgi?id=10313
  51354. xsl:import doesn't work in stylesheets loaded via XMLHttpRequest
  51355. This is a partial fix that makes a couple more steps towards fixing the problem.
  51356. Test: fast/xsl/transform-xhr-doc.xhtml
  51357. * xml/XSLTProcessor.cpp:
  51358. (WebCore::xsltStylesheetPointer): Pass an URL for the stylesheet. I'm not sure why this constructor even needs it,
  51359. given that it has a Node, but this is a small modifications that makes XSLImportRule try to load from a correct URL.
  51360. (WebCore::XSLTProcessor::transformToString): Fix the crash for real this time.
  51361. 2007-01-06 Rob Buis <buis@kde.org>
  51362. Reviewed by Darin.
  51363. http://bugs.webkit.org/show_bug.cgi?id=12125
  51364. overflow attribute of the symbol element not respected
  51365. Copy the attribute map to the cloned node so the overflow on
  51366. the symbol is respected.
  51367. * ksvg2/svg/SVGUseElement.cpp:
  51368. (WebCore::SVGUseElement::closeRenderer):
  51369. 2007-01-06 Eric Seidel <eric@webkit.org>
  51370. Reviewed and significantly tweaked by Darin.
  51371. - fix http://bugs.webkit.org/show_bug.cgi?id=12103
  51372. LEAK: Fix the leaking ImageBuffer buffers on TOT
  51373. * ksvg2/svg/SVGMaskElement.h:
  51374. * ksvg2/svg/SVGMaskElement.cpp:
  51375. (WebCore::SVGMaskElement::drawMaskerContent):
  51376. Changed to return auto_ptr since it returns a newly-created ImageBuffer.
  51377. * ksvg2/svg/SVGPatternElement.cpp:
  51378. (WebCore::SVGPatternElement::buildPattern):
  51379. Changed to use auto_ptr since ImageBuffer::create now returns one.
  51380. * platform/graphics/GraphicsContext.h: Removed the include of ImageBuffer.h,
  51381. which was never needed, and the declaration of createImageBuffer, which is
  51382. now a class member function of ImageBuffer.
  51383. * platform/graphics/ImageBuffer.h: Replaced the constructor with a create
  51384. function. Added a comment about the need to move renderSubtreeToImage
  51385. elsewhere. Added an m_data member to store the data so it can be deleted
  51386. when the object is done, made the m_size member non-platform-specific.
  51387. Added a private constructor for use to create the CG version.
  51388. * platform/graphics/cg/GraphicsContextCG.cpp: Removed
  51389. GraphicsContext::createImageBuffer.
  51390. * platform/graphics/cg/ImageBufferCG.cpp:
  51391. (WebCore::ImageBuffer::create): Added. Replaces the old
  51392. GraphicsContext::createImageBuffer function.
  51393. (WebCore::ImageBuffer::ImageBuffer): Added m_data and m_context.
  51394. (WebCore::ImageBuffer::~ImageBuffer): Added a fastFree of the data and got
  51395. rid of the unneeded null check before calling CGImageRelease.
  51396. * platform/graphics/svg/SVGPaintServerGradient.h: Removed the include of
  51397. ImageBuffer.h and declared the ImageBuffer class instead.
  51398. * platform/graphics/svg/SVGPaintServerPattern.h: Removed the include of
  51399. ImageBuffer.h and declared the ImageBuffer class instead, and changed setTile
  51400. to take an auto_ptr since it takes ownership of the ImageBuffer.
  51401. * platform/graphics/svg/SVGPaintServerPattern.cpp:
  51402. (WebCore::SVGPaintServerPattern::setTile): Ditto.
  51403. * platform/graphics/svg/SVGResourceMasker.h: Removed the include of
  51404. ImageBuffer.h and declared the ImageBuffer class instead, and changed setMask
  51405. to take an auto_ptr since it takes ownership of the ImageBuffer.
  51406. * platform/graphics/svg/SVGResourceMasker.cpp:
  51407. (WebCore::SVGResourceMasker::setMask): Ditto.
  51408. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  51409. (WebCore::SVGPaintServerGradient::setup): Updated to use auto_ptr.
  51410. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Updated includes.
  51411. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  51412. (WebCore::SVGResourceMasker::applyMask): Updated to use auto_ptr.
  51413. - other changes
  51414. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  51415. (WebCore::SVGAnimateTransformElement::handleStartCondition):
  51416. Remove unused variables.
  51417. 2007-01-06 Mitz Pettel <mitz@webkit.org>
  51418. Reviewed by Maciej.
  51419. - fix http://bugs.webkit.org/show_bug.cgi?id=12136
  51420. REGRESSION: Counters-related leaks
  51421. * rendering/RenderCounter.cpp:
  51422. (WebCore::destroyCounterNodeChildren): Delete the child counter nodes.
  51423. 2007-01-05 Adele Peterson <adele@apple.com>
  51424. Release build fix.
  51425. * rendering/RenderListItem.cpp: (WebCore::RenderListItem::explicitValueChanged): Initialize listRenderer.
  51426. 2007-01-05 Darin Adler <darin@apple.com>
  51427. Reviewed by Hyatt.
  51428. - eliminated use of DeprecatedString for list item markers
  51429. - eliminated use of DeprecatedValueList for border style collapsing
  51430. - made many members private instead of protected or public
  51431. - reworked counter implementation to fix most of the CSS 2.1 counter tests;
  51432. made CounterNode be a simple non-polymorphic class, moved most counter-
  51433. specific code out of RenderObject into RenderCounter, changed the data
  51434. structure in RenderStyle to be more speed-efficient but less space-
  51435. efficient for nodes with counter styles
  51436. - fixed http://bugs.webkit.org/show_bug.cgi?id=11557
  51437. Tests: css2.1
  51438. - fixed a bug where counter text did not have text transform or text security
  51439. applied to it
  51440. Test: fast/css/counters/counter-text-security.html
  51441. Test: fast/css/counters/counter-text-transform.html
  51442. - improved handling of CSS content property values with data of the wrong
  51443. type; this probably needs a bit more refinement
  51444. Test: fast/css-generated-content/reset-content-to-initial-expected.txt
  51445. - fixed a bug where removing the value attribute from an HTMLLIElement would
  51446. set the list item's value to 0 instead of restoring it to normal
  51447. Test: fast/lists/li-values.html
  51448. - fixed a bug where changing the text security style from one style to another
  51449. would not change the displayed text
  51450. Test: fast/css/text-security.html
  51451. - fixed some problems handling long sequences of counter-related styles;
  51452. still needs more work and some super-large test cases to check if
  51453. recursive algorithms for these that will overflow stack remain
  51454. - added support for list styles decimal-leading-zero, hiragana, hirigana-iroha,
  51455. katakana, katakana-iroha, cjk-ideographic, armenian, and georgian
  51456. Test: fast/lists/decimal-leading-zero.html
  51457. - minor tweaks and bug fixes for other list styles, including range checking
  51458. * WebCore.exp: Updated for RenderListItem change.
  51459. * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject value]): Updated to use
  51460. String instead of DeprecatedString.
  51461. * css/CSSComputedStyleDeclaration.cpp:
  51462. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Removed
  51463. implementation for counter styles for now. We should probably restore it
  51464. later, but we need to make sure the returned list is separate from the
  51465. original list in the DOM -- modifying the list should not change the element
  51466. it was computed from.
  51467. * css/Counter.h: Removed unneeded empty constructor and destructor.
  51468. * css/cssstyleselector.cpp:
  51469. (WebCore::applyCounterList): Added. Stores counter directives in hash tables
  51470. that should allow us to efficiently implement dynamic counter changes. Full
  51471. support will have to wait for a future check-in.
  51472. (WebCore::CSSStyleSelector::applyProperty): Changed counter properties to
  51473. call applyCounterList. Reformatted the code to parse the content property for
  51474. changes to RenderStyle and to handle the case where some the items in the
  51475. content list don't generate any content.
  51476. * editing/visible_units.cpp:
  51477. * rendering/RenderBox.cpp:
  51478. * rendering/RenderFlexibleBox.cpp:
  51479. * rendering/RenderFlow.cpp:
  51480. * rendering/RenderSlider.cpp:
  51481. Added includes needed because of header changes.
  51482. * html/HTMLLIElement.H: Removed unneeded m_isValued.
  51483. * html/HTMLLIElement.cpp:
  51484. (WebCore::HTMLLIElement::parseMappedAttribute): To match test results seen
  51485. in WinIE, ignore values that are 0 or negative, and use new functions in
  51486. RenderListItem to communicate the lack of a valid value.
  51487. (WebCore::HTMLLIElement::attach): More of the same.
  51488. * rendering/CounterNode.h: Made CounterNode be a non-polymorphic class,
  51489. removing all the subclasses. Merged in CounterResetNode. Removed
  51490. m_total from CounterResetNode, because it isn't needed for any of
  51491. the styles (decimal-leading-zero always uses two digits). Removed
  51492. m_hasSeparator and m_willNeedLayout since they aren't needed any more.
  51493. Renamed m_count to m_countInParent for clarify, and named the list
  51494. links the same as their associated functions. Removed many functions
  51495. as well.
  51496. * rendering/CounterNode.cpp:
  51497. (WebCore::CounterNode::CounterNode): Added new fields.
  51498. (WebCore::CounterNode::computeCountInParent): Added. Used by recount.
  51499. (WebCore::CounterNode::recount): Simplified by removing unused parameter and the
  51500. "get next" idiom. Changed to be iterative instead of recursive so we can handle
  51501. arbitrarily long lists.
  51502. (WebCore::CounterNode::insertAfter): Moved here from CounterResetNode. Updated
  51503. for field name changes. Corrected rule for when to recount.
  51504. (WebCore::CounterNode::removeChild): Moved here from CounterResetNode. Changed
  51505. to only work on nodes without children. Corrected rule for when to recount.
  51506. (WebCore::nextInPreOrderAfterChildren): Added. For debugging only.
  51507. (WebCore::nextInPreOrder): Ditto.
  51508. (WebCore::showTreeAndMark): Ditto.
  51509. (showTree): Ditto.
  51510. * rendering/CounterListItem.h:
  51511. * rendering/CounterResetNode.h:
  51512. * rendering/CounterResetNode.cpp:
  51513. Marked ready to remove. I'll do the remove in a separate patch, since I have
  51514. to update a lot of different make files when I do.
  51515. * rendering/ListMarkerBox.cpp: (WebCore::ListMarkerBox::isText): Changed for the
  51516. change to RenderListMarker.
  51517. * rendering/RenderBlock.cpp:
  51518. (WebCore::RenderBlock::addChildToFlow): Changed to use functions instead of
  51519. direct field access so the fields can be private and we don't need to be friends.
  51520. (WebCore::RenderBlock::getBaselineOfFirstLineBox): Ditto.
  51521. (WebCore::RenderBlock::getBaselineOfLastLineBox): Ditto.
  51522. * rendering/RenderBlock.h:
  51523. (WebCore::RenderBlock::initMaxMarginValues): Ditto.
  51524. (WebCore::RenderBlock::firstRootBox): Ditto.
  51525. (WebCore::RenderBlock::lastRootBox): Ditto.
  51526. * rendering/RenderBox.h:
  51527. (WebCore::RenderBox::setWidth): Ditto.
  51528. (WebCore::RenderBox::setHeight): Ditto.
  51529. * rendering/RenderButton.cpp:
  51530. (WebCore::RenderButton::addChild): Ditto.
  51531. * rendering/bidi.cpp:
  51532. (WebCore::RenderBlock::determineStartPosition): Ditto.
  51533. * rendering/RenderContainer.h: Renamed m_first and m_last to m_firstChild
  51534. and m_lastChild. Made them private instead of proected. Removed the
  51535. setFirstChild and setLastChild functions.
  51536. * rendering/RenderContainer.cpp:
  51537. (WebCore::RenderContainer::RenderContainer): Updated for field name change.
  51538. Changed all calls to get at fields directly instead of using functions.
  51539. (WebCore::RenderContainer::destroyLeftoverChildren): Ditto.
  51540. (WebCore::updateListMarkerNumbers): Updated for RenderListItem change.
  51541. (WebCore::RenderContainer::addChild): Changed to get at fields directly
  51542. instead of using functions. Also used release() since RenderText::setText
  51543. now takes PassRefPtr.
  51544. (WebCore::RenderContainer::removeChildNode): Changed to get at fields directly
  51545. instead of using functions.
  51546. (WebCore::RenderContainer::updatePseudoChildForObject): Create the anonymous
  51547. box only if at least one of of the items in the content list actually
  51548. generates content. Since a RenderCounter is a RenderText, don't bother making
  51549. a new style for it -- it just shares the style with its parent. Changed code
  51550. to use RenderImage::setCachedImage() instead of of setContentObject().
  51551. Added a call to setIsAnonymousImage() here, which was the only special thing
  51552. that setContentObject() used to do. Pass a reference to the counter to the
  51553. RenderCounter rather than a pointer. Pass document() as the node instead of
  51554. passing the element to RenderCounter, which makes it anonymous automatically,
  51555. and removed the setIsAnonymous call.
  51556. (WebCore::RenderContainer::appendChildNode): Chagned to get at fields directly
  51557. instead of using functions.
  51558. (WebCore::RenderContainer::insertChildNode): Ditto.
  51559. (WebCore::RenderContainer::layout): Ditto.
  51560. (WebCore::RenderContainer::removeLeftoverAnonymousBoxes): Ditto.
  51561. (WebCore::RenderContainer::positionForCoordinates): Ditto.
  51562. (WebCore::RenderContainer::addLineBoxRects): Ditto.
  51563. * rendering/RenderCounter.h: Removed unneeded layout override, never called on a
  51564. text node. Added override of originalString. Replaced CounterData* with a copy of
  51565. the CounterContent -- it's two atomic strings and an integer so it's efficient
  51566. enough to store all three in the render object, and this eliminates the lifetime
  51567. problems we could have if we used a pointer.
  51568. * rendering/RenderCounter.cpp: Removed duplicate copy of list marker code.
  51569. (WebCore::counterMaps): Moved these maps here from RenderObject.
  51570. (WebCore::previousSiblingOrParent): Added.
  51571. (WebCore::lastDescendant): Added.
  51572. (WebCore::previousInPreOrder): Added.
  51573. (WebCore::planCounter): Added.
  51574. (WebCore::findPlaceForCounter): Added.
  51575. (WebCore::counter): New name of function that was named RenderObject::findCounter.
  51576. Also uses a new algorithm that passes all the CSS 2.1 tests.
  51577. (WebCore::RenderCounter::RenderCounter): Changed to take a Document* instead of a
  51578. Node*, since at the moment counters are always anonymous.
  51579. (WebCore::RenderCounter::originalString): Added. This overrides the originalString
  51580. in the RenderText base class so that any text transforms will use the counter's
  51581. value. This code was previously in calcMinMaxWidth.
  51582. (WebCore::RenderCounter::calcMinMaxWidth): Changed to call setInternalString and
  51583. pass originalString -- this uses the counter's value from the counter tree.
  51584. (WebCore::destroyCounterNodeChildren): Added.
  51585. (WebCore::RenderCounter::destroyCounterNodes): Added. Called as needed from
  51586. RenderObject::destroy for objects that have counter nodes.
  51587. * rendering/RenderFlow.h: Made m_continuation private instead of protected.
  51588. * rendering/RenderImage.h: Removed unneeded includes, and unnecessary element()
  51589. function that casts to HTMLElement*. Made image() protected, and made the two
  51590. calcAspectRatio functions private. Removed setContentObject(). Renamed the
  51591. errorOccured() function to isErrorImage() and made it private.
  51592. * rendering/RenderImage.cpp:
  51593. (WebCore::RenderImage::RenderImage): Removed initialization of removed
  51594. m_selectionState field.
  51595. (WebCore::RenderImage::setCachedImage): Rearrange code so it won't try to
  51596. call isErrorImage() on a null image.
  51597. (WebCore::RenderImage::paint): Updated for name change.
  51598. * rendering/RenderListBox.h: Removed unneeded forward declarations.
  51599. * rendering/RenderListItem.h:
  51600. Renamed markerStringValue() to markerText() and made it return a String instead of
  51601. a DeprecatedString. Renamed m_prededfVal to m_explicitValue. Added booleans named
  51602. m_hasExplicitValue and m_isValueUpToDate and marked m_value mutable so it can be
  51603. computed in const member functions.
  51604. (WebCore::RenderListItem::value): Changed to update value on demand at the time
  51605. you ask for it.
  51606. (WebCore::RenderListItem::hasExplicitValue): Added. Use instead of magic -1 value
  51607. to indicate that the item does or does not have an explicit value.
  51608. (WebCore::RenderListItem::explicitValue): Added.
  51609. (WebCore::RenderListItem::setExplicitValue): Added.
  51610. (WebCore::RenderListItem::clearExplicitValue): Added.
  51611. * rendering/RenderListItem.cpp:
  51612. (WebCore::RenderListItem::RenderListItem): Updated to not use magic -1 values.
  51613. (WebCore::RenderListItem::setStyle): Removed call to RenderListMarker::setListItem
  51614. since it's not needed any more, and instead pass the list item to the constructor.
  51615. (WebCore::previousListItem): Made parameter const.
  51616. (WebCore::RenderListItem::calcValue): Restructed the function a bit.
  51617. (WebCore::RenderListItem::updateValueNow): Added. Calls calcValue.
  51618. (WebCore::RenderListItem::updateValue): Added. New name for resetValue(). Unlike
  51619. the old version, this no longer calculates the value until it's asked-for later.
  51620. (WebCore::RenderListItem::markerText): Changed to return String rather than a
  51621. DeprecatedString and to return a null string rather than empty string when there
  51622. is no marker.
  51623. * rendering/RenderListMarker.h: Added listMarkerText function -- common code shared
  51624. with anyone who needs to convert a value into text given a list style.
  51625. Changed constructor to take a RenderListItem and figure out the document from that.
  51626. Added isImage() and isText() functions and removed listImage() function. Changed the
  51627. type of the text() function from DeprecatedString to String. Removed the listItem()
  51628. and seListeItem() functions. Made the getRelativeMarkerRect() function private.
  51629. Renamed m_item to m_text and chagned it from DeprecatedString to String. Renamed
  51630. m_listImage to m_image.
  51631. * rendering/RenderListMarker.cpp:
  51632. (WebCore::toRoman): Added range checking to fix buffer overrun for large or negative
  51633. numbers. Rewrote to use a local UChar array and String rather than prepending to a
  51634. DeprecatedString.
  51635. (WebCore::toAlphabetic): Replaces toLetterString, and is more flexible since it takes
  51636. an alphabet array. Changed to match CSS 3 specification by using decimal numbering for
  51637. 0 and negative numbers. Rewrote to use a local UChar array and String rather than
  51638. prepending to a DeprecatedString.
  51639. (WebCore::toHebrewUnder1000): Added. Helper function for Hebrew numbers so we can
  51640. handle numbers up to a million.
  51641. (WebCore::toHebrew): Changed to use toHebrewUnder1000, added a special case for
  51642. zero, negative, and too-large numbers.
  51643. (WebCore::toArmenianUnder10000): Added. Used by toArmenian.
  51644. (WebCore::toArmenian): Added.
  51645. (WebCore::toGeorgian): Added.
  51646. (WebCore::toCJKIdeographic): Added.
  51647. (WebCore::listMarkerText): Added. Moved the code here from calcMinMaxWidth, but added
  51648. support for text for the styles disc, circle, square, decimal-leading-zero, hiragana,
  51649. hirigana-iroha, katakana, katakana-iroha, cjk-ideographic, armenian, and georgian.
  51650. Also changed some of the styles to share the new toAlphabetic function.
  51651. (WebCore::RenderListMarker::RenderListMarker): Updated for name changes and list
  51652. item parameter.
  51653. (WebCore::RenderListMarker::~RenderListMarker): Updated for name changes.
  51654. (WebCore::RenderListMarker::setStyle): Updated for name changes.
  51655. (WebCore::RenderListMarker::isImage): Added. Useful helper that unifies the check
  51656. for no image and the error image.
  51657. (WebCore::RenderListMarker::paint): Updated for name changes to to use isImage()
  51658. and rearranged the code a bit.
  51659. (WebCore::RenderListMarker::imageChanged): Updated for name change
  51660. (WebCore::RenderListMarker::calcMinMaxWidth): Updated for name change, fixed a bug
  51661. where we'd leave the old text around if we were using an image-based marker. Also
  51662. changed the code to use isImage() instead of checking m_listImage.
  51663. (WebCore::RenderListMarker::calcWidth): Changed to use isImage().
  51664. (WebCore::RenderListMarker::lineHeight): Changed to use isImage().
  51665. (WebCore::RenderListMarker::baselinePosition): Changed to use isImage().
  51666. (WebCore::RenderListMarker::getRelativeMarkerRect): Changed to use isImage(),
  51667. restructured the code a little.
  51668. * rendering/RenderObject.h: Removed now-uneeded includes. Removed collectBorders()
  51669. and isFormElement(). Made remove() function and m_hasCounterNodeMap public so
  51670. we could remove friend declarations for RenderListItem and RenderView.
  51671. Moved findCounter() to become a private function inside RenderCounter.cpp.
  51672. * rendering/RenderObject.cpp:
  51673. (WebCore::RenderObject::createObject): Fix bug where a contentData() with
  51674. CONTENT_NONE is treated as image content -- only look at the content property
  51675. if it has exactly one entry which is a CONTENT_OBJECT.
  51676. (WebCore::RenderObject::selectionStartEnd): Add const.
  51677. (WebCore::RenderObject::destroy): Moved counter-specific code to
  51678. RenderCounter::destroyCounterNodes.
  51679. (WebCore::RenderObject::recalcMinMaxWidths): Changed code to set m_recalcMinMax
  51680. near the top of the function -- the old code would potentially reset it after it
  51681. was set by the calcMinMaxWidths functions, and possibly skip a future needed
  51682. recalc. That came up in counter test cases. Removed unneeded boolean check right
  51683. after an assertion.
  51684. * rendering/RenderPart.h: Marked two virtual functions virtual for clarity.
  51685. * rendering/RenderReplaced.h: Made shouldPaint be protected, and made
  51686. m_intrinsicWidth, m_intrinsicHeight, and m_selectionState be private.
  51687. Also marked isSelected() const.
  51688. * rendering/RenderReplaced.cpp: Added newly-needed include.
  51689. (WebCore::RenderReplaced::RenderReplaced): Use constructor syntax.
  51690. (WebCore::RenderReplaced::isSelected): Made const and changed to call the
  51691. selectionStartEnd function in the straightforward way.
  51692. * rendering/RenderSVGText.cpp:
  51693. (WebCore::RenderSVGText::absoluteRects): Use functions instead of direct field
  51694. access so the fields can be private.
  51695. (WebCore::RenderSVGText::relativeBBox): Ditto.
  51696. * rendering/RenderStyle.h: Tweaked formatting. Changed names of CSS3 holders
  51697. to say "rare" instead, since it's not all CSS 3. Renamed CounterData to
  51698. CounterContent, since it's used inside ContentData. Changed names of fields in
  51699. ContentData to have m prefix. Moved content and counter fields into the rare
  51700. non-inherited data object. Removed unneeded assignment operator from a class
  51701. that already inherits from Shared which makes it start out noncopyable.
  51702. * rendering/RenderStyle.cpp: Name changes, plus:
  51703. (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
  51704. Updated for added fields (content, counter-reset, counter-increment).
  51705. (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData): Ditto.
  51706. (WebCore::StyleRareNonInheritedData::operator==): Reformatted and sorted so it's
  51707. easy to see if any fields are missing.
  51708. (WebCore::operator!=): Added. Compares two CounterContent objects.
  51709. (WebCore::RenderStyle::arenaDelete): Removed code to handle content, which is
  51710. now in the rareNonInheritedData structure.
  51711. (WebCore::RenderStyle::RenderStyle): Ditto.
  51712. (WebCore::RenderStyle::inheritFrom): Ditto.
  51713. (WebCore::RenderStyle::operator==): Ditto.
  51714. (WebCore::RenderStyle::inheritedNotEqual):
  51715. (WebCore::RenderStyle::diff):
  51716. (WebCore::RenderStyle::contentDataEquivalent): Added case for counter,
  51717. which previously would be ignored when determining if content is equivalent.
  51718. (WebCore::RenderStyle::clearContent): Added.
  51719. (WebCore::RenderStyle::setContent): Updated for change in content location.
  51720. (WebCore::ContentData::clear): Changed algorithm so that it's not recursive
  51721. and thus can handle a very long list of ContentData.
  51722. (WebCore::operator==): Added. Compares two CounterDirective objects.
  51723. (WebCore::RenderStyle::counterDirectives): Added.
  51724. (WebCore::RenderStyle::accessCounterDirectives): Added.
  51725. * rendering/RenderTable.h: Made m_currentBorder const to better reflect the
  51726. paint algorithm.
  51727. * rendering/RenderTable.cpp: (WebCore::RenderTable::paint): Changed to use
  51728. Vector instead of DeprecatedValueList for the border styles, and to sort
  51729. rather than inserting in sorted order as we go. Put the code to loop through
  51730. the nodes and collect border styles here instead of in a RenderObject virtual
  51731. function. Also set m_currentBorder to 0 after the loop for greater clarity.
  51732. * rendering/RenderTableCell.h: Added a typedef for a vector of border values.
  51733. Removed the virtual collectBorders and replaced with the non-virtual named
  51734. collectBorderStyles. Also added a static member function named sortBorderStyles.
  51735. * rendering/RenderTableCell.cpp:
  51736. (WebCore::CollapsedBorders::CollapsedBorders): Removed unneeded constructor
  51737. parameter.
  51738. (WebCore::addBorderStyle): Changed to use a vector instead of a
  51739. DeprecatedValueList. Wrote out a loop since Vector doesn't have a contains
  51740. member function. Removed the code to insert the border at a sorted location;
  51741. instead we have a separate call to sort the border styles
  51742. (WebCore::RenderTableCell::collectBorderStyles): Renamed, and changed the
  51743. parameter type.
  51744. (WebCore::compareBorderStylesForQSort): Added.
  51745. (WebCore::RenderTableCell::sortBorderStyles): Added.
  51746. * rendering/RenderText.h: Changed StringImpl parameters in setText functions
  51747. to be PassRefPtr; added a new setInternalString function. Made a bunch of the
  51748. member functions private and made all the data members private instead of
  51749. protected.
  51750. * rendering/RenderText.cpp:
  51751. (WebCore::RenderText::setStyle): Restructure a bit for clarity. Fix case where
  51752. the old style has a different security than the new style. Use release() since
  51753. RenderText::setText now takes PassRefPtr. Always call cacheWidths here.
  51754. (WebCore::RenderText::setTextWithOffset): Changed to take the string as a
  51755. PassRefPtr instead of a raw pointer.
  51756. (WebCore::isInlineFlowOrEmptyText): Added.
  51757. (WebCore::RenderText::setInternalString): Refactored core of setText into a
  51758. separate protected member function that can be used RenderCounter. Changed
  51759. the text security square character to match what's used in list markers.
  51760. Changed the text transform switch statement so that gcc will warn us if we add
  51761. a new value and don't add a case for it.
  51762. (WebCore::RenderText::setText): Refactored most of the function into
  51763. setInternalString. Removed the call to cacheWidths -- that's now done in the
  51764. setStyle function only.
  51765. * rendering/RenderView.h:
  51766. * rendering/RenderView.cpp: (WebCore::RenderView::selectionStartEnd): Now const.
  51767. * rendering/RenderWidget.cpp: Added newly-needed include.
  51768. (WebCore::RenderWidget::setSelectionState): Don't bother setting m_selectionState
  51769. here since RenderReplaced::setSelectionState already does that.
  51770. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  51771. Rubber stamped by Adam.
  51772. Move even more code to .cpp files.
  51773. * WebCore.xcodeproj/project.pbxproj:
  51774. * loader/FrameLoader.cpp:
  51775. (WebCore::FrameLoader::createWindow):
  51776. (WebCore::FrameLoader::load):
  51777. (WebCore::FrameLoader::canLoad):
  51778. (WebCore::FrameLoader::initialRequest):
  51779. (WebCore::FrameLoader::receivedData):
  51780. (WebCore::FrameLoader::setRequest):
  51781. (WebCore::FrameLoader::setResponse):
  51782. (WebCore::FrameLoader::willUseArchive):
  51783. (WebCore::FrameLoader::handleUnimplementablePolicy):
  51784. (WebCore::FrameLoader::cannotShowMIMEType):
  51785. (WebCore::FrameLoader::interruptionForPolicyChangeError):
  51786. (WebCore::FrameLoader::checkNavigationPolicy):
  51787. (WebCore::FrameLoader::checkContentPolicy):
  51788. (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
  51789. (WebCore::FrameLoader::reloadAllowingStaleData):
  51790. (WebCore::FrameLoader::reload):
  51791. (WebCore::FrameLoader::finishedLoading):
  51792. (WebCore::FrameLoader::continueAfterWillSubmitForm):
  51793. (WebCore::FrameLoader::submitForm):
  51794. (WebCore::FrameLoader::post):
  51795. (WebCore::FrameLoader::isReloading):
  51796. (WebCore::FrameLoader::loadEmptyDocumentSynchronously):
  51797. (WebCore::FrameLoader::loadResourceSynchronously):
  51798. (WebCore::FrameLoader::startLoadingMainResource):
  51799. (WebCore::FrameLoader::startLoading):
  51800. (WebCore::FrameLoader::cancelMainResourceLoad):
  51801. (WebCore::FrameLoader::identifierForInitialRequest):
  51802. (WebCore::FrameLoader::willSendRequest):
  51803. (WebCore::FrameLoader::didReceiveResponse):
  51804. (WebCore::FrameLoader::didReceiveData):
  51805. (WebCore::FrameLoader::didFailToLoad):
  51806. (WebCore::FrameLoader::originalRequest):
  51807. (WebCore::FrameLoader::receivedMainResourceError):
  51808. (WebCore::FrameLoader::callContinueFragmentScrollAfterNavigationPolicy):
  51809. (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
  51810. (WebCore::FrameLoader::opened):
  51811. (WebCore::FrameLoader::dataURLBaseFromRequest):
  51812. (WebCore::FrameLoader::checkNewWindowPolicy):
  51813. (WebCore::FrameLoader::continueAfterNewWindowPolicy):
  51814. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  51815. (WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy):
  51816. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  51817. (WebCore::FrameLoader::callContinueLoadAfterNewWindowPolicy):
  51818. (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
  51819. (WebCore::FrameLoader::sendRemainingDelegateMessages):
  51820. (WebCore::FrameLoader::requestFromDelegate):
  51821. (WebCore::FrameLoader::loadedResourceFromMemoryCache):
  51822. (WebCore::FrameLoader::applyUserAgent):
  51823. (WebCore::PolicyCheck::PolicyCheck):
  51824. (WebCore::PolicyCheck::clear):
  51825. (WebCore::PolicyCheck::set):
  51826. (WebCore::PolicyCheck::call):
  51827. (WebCore::PolicyCheck::clearRequest):
  51828. * loader/FrameLoader.h:
  51829. * loader/FrameLoaderClient.h:
  51830. * loader/MainResourceLoader.h:
  51831. * loader/ResourceLoader.h:
  51832. (WebCore::ResourceLoader::setIdentifier):
  51833. (WebCore::ResourceLoader::identifier):
  51834. * loader/mac/FrameLoaderMac.mm:
  51835. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  51836. (WebCore::FrameLoader::referrer):
  51837. (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
  51838. (WebCore::FrameLoader::didCancelAuthenticationChallenge):
  51839. (WebCore::FrameLoader::didChangeTitle):
  51840. * platform/graphics/svg/SVGImageEmptyClients.h:
  51841. (WebCore::SVGEmptyFrameLoaderClient::dispatchCreatePage):
  51842. 2007-01-05 Mitz Pettel <mitz@webkit.org>
  51843. Reviewed by Hyatt.
  51844. - fix http://bugs.webkit.org/show_bug.cgi?id=12079
  51845. Nested tables don't repaint properly when a certain row is added
  51846. Tests: fast/repaint/table-section-repaint.html
  51847. fast/repaint/table-section-overflow.html
  51848. Fixed repainting when table sections move during layout.
  51849. Made table cells' overflows propagate to table sections and gave tables
  51850. overflows.
  51851. * rendering/RenderTable.cpp:
  51852. (WebCore::RenderTable::layout): Added computation of horizontal and vertical overflows
  51853. based on the caption's and the table sections' overflows.
  51854. Added checks for table sections that change position during layout. When that happens,
  51855. we assume all sections below the first section that moved also moved, and repaint
  51856. everything downwards from there.
  51857. Added calls to repaintDuringLayoutIfMoved() for the caption.
  51858. Changed the way table sections are iterated over and added a FIXME to change it again
  51859. once bug 12124 is fixed.
  51860. (WebCore::RenderTable::paint): Changed to paint overflow.
  51861. (WebCore::RenderTable::outerBorderBottom):
  51862. * rendering/RenderTableSection.cpp:
  51863. (WebCore::RenderTableSection::RenderTableSection):
  51864. (WebCore::RenderTableSection::layoutRows): Added code to compute the section's overflow
  51865. and a flag saying whether any cells in this section overflow.
  51866. (WebCore::RenderTableSection::paint): Changed to paint overflow. If any cell
  51867. in the section has overflow, then all cells are given a chance to paint. This is needed
  51868. because there can be internal overflow, and external overflow can be coming from any
  51869. cell inside.
  51870. * rendering/RenderTableSection.h:
  51871. (WebCore::RenderTableSection::overflowWidth):
  51872. (WebCore::RenderTableSection::overflowLeft):
  51873. 2007-01-05 Beth Dakin <bdakin@apple.com>
  51874. Reviewed by Adam.
  51875. Fix for <rdar://problem/4863434> Wrong contextual menu appears for
  51876. textarea and input elements at http://www.apple.com/feedback/
  51877. ical.html
  51878. No test cases added since context menus are not in DRT.
  51879. * page/ContextMenuController.cpp:
  51880. (WebCore::ContextMenuController::handleContextMenuEvent): Call
  51881. EventHandler's hitTestResultAtPoint() instead of just hit testing
  51882. the layer.
  51883. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  51884. Rubber-stamped by Adam.
  51885. Move a bunch of platform independent code over to DocumentLoader.cpp
  51886. * WebCore.xcodeproj/project.pbxproj:
  51887. * loader/DocumentLoader.cpp:
  51888. (WebCore::canonicalizedTitle):
  51889. (WebCore::DocumentLoader::DocumentLoader):
  51890. (WebCore::DocumentLoader::frameLoader):
  51891. (WebCore::DocumentLoader::~DocumentLoader):
  51892. (WebCore::DocumentLoader::setMainResourceData):
  51893. (WebCore::DocumentLoader::mainResourceData):
  51894. (WebCore::DocumentLoader::originalRequest):
  51895. (WebCore::DocumentLoader::originalRequestCopy):
  51896. (WebCore::DocumentLoader::request):
  51897. (WebCore::DocumentLoader::initialRequest):
  51898. (WebCore::DocumentLoader::actualRequest):
  51899. (WebCore::DocumentLoader::URL):
  51900. (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
  51901. (WebCore::DocumentLoader::setRequest):
  51902. (WebCore::DocumentLoader::setMainDocumentError):
  51903. (WebCore::DocumentLoader::clearErrors):
  51904. (WebCore::DocumentLoader::mainReceivedError):
  51905. (WebCore::DocumentLoader::stopLoading):
  51906. (WebCore::DocumentLoader::setupForReplace):
  51907. (WebCore::DocumentLoader::commitIfReady):
  51908. (WebCore::DocumentLoader::finishedLoading):
  51909. (WebCore::DocumentLoader::setCommitted):
  51910. (WebCore::DocumentLoader::isCommitted):
  51911. (WebCore::DocumentLoader::setLoading):
  51912. (WebCore::DocumentLoader::isLoading):
  51913. (WebCore::DocumentLoader::commitLoad):
  51914. (WebCore::DocumentLoader::doesProgressiveLoad):
  51915. (WebCore::DocumentLoader::receivedData):
  51916. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  51917. (WebCore::DocumentLoader::updateLoading):
  51918. (WebCore::DocumentLoader::setFrame):
  51919. (WebCore::DocumentLoader::attachToFrame):
  51920. (WebCore::DocumentLoader::detachFromFrame):
  51921. (WebCore::DocumentLoader::prepareForLoadStart):
  51922. (WebCore::DocumentLoader::setIsClientRedirect):
  51923. (WebCore::DocumentLoader::isClientRedirect):
  51924. (WebCore::DocumentLoader::setPrimaryLoadComplete):
  51925. (WebCore::DocumentLoader::isLoadingInAPISense):
  51926. (WebCore::DocumentLoader::addResponse):
  51927. (WebCore::DocumentLoader::stopRecordingResponses):
  51928. (WebCore::DocumentLoader::title):
  51929. (WebCore::DocumentLoader::setLastCheckedRequest):
  51930. (WebCore::DocumentLoader::lastCheckedRequest):
  51931. (WebCore::DocumentLoader::triggeringAction):
  51932. (WebCore::DocumentLoader::setTriggeringAction):
  51933. (WebCore::DocumentLoader::responses):
  51934. (WebCore::DocumentLoader::setOverrideEncoding):
  51935. (WebCore::DocumentLoader::overrideEncoding):
  51936. (WebCore::DocumentLoader::setTitle):
  51937. (WebCore::DocumentLoader::urlForHistory):
  51938. * loader/DocumentLoader.h:
  51939. * loader/FrameLoader.cpp:
  51940. (WebCore::FrameLoader::load):
  51941. (WebCore::FrameLoader::committedLoad):
  51942. (WebCore::FrameLoader::setMainDocumentError):
  51943. (WebCore::FrameLoader::mainReceivedCompleteError):
  51944. (WebCore::FrameLoader::mainReceivedError):
  51945. (WebCore::FrameLoader::cancelledError):
  51946. (WebCore::FrameLoader::fileDoesNotExistError):
  51947. (WebCore::FrameLoader::mainResourceData):
  51948. * loader/FrameLoader.h:
  51949. * loader/FrameLoaderClient.h:
  51950. * loader/mac/DocumentLoaderMac.mm:
  51951. (WebCore::DocumentLoader::unreachableURL):
  51952. * loader/mac/FrameLoaderMac.mm:
  51953. 2007-01-05 Brady Eidson <beidson@apple.com>
  51954. Reviewed by Eric Seidel
  51955. http://bugs.webkit.org/show_bug.cgi?id=12117
  51956. Fixes null deref when opening links from a gmail account
  51957. * loader/FrameLoader.cpp:
  51958. (WebCore::FrameLoader::updateHistoryForStandardLoad): Null check m_currentHistoryItem
  51959. (WebCore::FrameLoader::updateHistoryForClientRedirect): Ditto
  51960. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  51961. Move some now cross platform functions over to ResourceLoader.cpp in an attempt to fix the non Mac builds.
  51962. * loader/CachedResource.h:
  51963. (WebCore::CachedResource::setAllData):
  51964. * loader/ResourceLoader.cpp:
  51965. (WebCore::ResourceLoader::resourceData):
  51966. * loader/ResourceLoader.h:
  51967. * loader/SubresourceLoader.cpp:
  51968. (WebCore::SubresourceLoader::didFinishLoading):
  51969. * loader/mac/LoaderFunctionsMac.mm:
  51970. * loader/mac/ResourceLoaderMac.mm:
  51971. * platform/SharedBuffer.cpp:
  51972. (WebCore::SharedBuffer::platformDataSize):
  51973. * platform/network/ResourceHandle.h:
  51974. 2007-01-05 David Hyatt <hyatt@apple.com>
  51975. Back out fix for 12114. I missed rule #5 in the float positioning part of the CSS2.1 spec. Keep all
  51976. the code cleanup though.
  51977. Reviewed by mitz
  51978. * rendering/RenderBlock.cpp:
  51979. (WebCore::RenderBlock::positionNewFloats):
  51980. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  51981. Reviewed by Maciej.
  51982. Add a shared buffer class which is backed by either a vector or an NSData object. This object can also
  51983. be held in a custom NSData subclass. Use this in the loader wherever NSData was used.
  51984. * WebCore.exp:
  51985. * WebCore.xcodeproj/project.pbxproj:
  51986. * loader/CachedResource.h:
  51987. (WebCore::CachedResource::allData):
  51988. * loader/DocumentLoader.h:
  51989. * loader/FrameLoader.h:
  51990. * loader/ResourceLoader.h:
  51991. * loader/SubresourceLoaderClient.h:
  51992. (WebCore::SubresourceLoaderClient::didFail):
  51993. * loader/loader.cpp:
  51994. (WebCore::Loader::didFinishLoading):
  51995. * loader/loader.h:
  51996. * loader/mac/DocumentLoaderMac.mm:
  51997. (WebCore::DocumentLoader::setMainResourceData):
  51998. (WebCore::DocumentLoader::mainResourceData):
  51999. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  52000. * loader/mac/FrameLoaderMac.mm:
  52001. (WebCore::FrameLoader::mainResourceData):
  52002. * loader/mac/ImageDocumentMac.mm:
  52003. (WebCore::finishImageLoad):
  52004. * loader/mac/LoaderFunctionsMac.mm:
  52005. (WebCore::CheckCacheObjectStatus):
  52006. (WebCore::CachedResource::setAllData):
  52007. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  52008. (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
  52009. * loader/mac/ResourceLoaderMac.mm:
  52010. (WebCore::ResourceLoader::addData):
  52011. (WebCore::ResourceLoader::resourceData):
  52012. (WebCore::ResourceLoader::clearResourceData):
  52013. (WebCore::ResourceLoader::didReceiveData):
  52014. (WebCore::ResourceLoader::willStopBufferingData):
  52015. * loader/mac/SubresourceLoaderMac.mm:
  52016. (WebCore::SubresourceLoader::didReceiveResponse):
  52017. (WebCore::SubresourceLoader::didFinishLoading):
  52018. * page/mac/WebCoreFrameBridge.mm:
  52019. (-[WebCoreFrameBridge getData:andResponse:forURL:]):
  52020. (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
  52021. * platform/KURL.h:
  52022. * platform/SharedBuffer.cpp: Added.
  52023. (WebCore::SharedBuffer::SharedBuffer):
  52024. (WebCore::SharedBuffer::size):
  52025. (WebCore::SharedBuffer::data):
  52026. (WebCore::SharedBuffer::append):
  52027. (WebCore::SharedBuffer::clear):
  52028. (WebCore::SharedBuffer::clearPlatformData):
  52029. (WebCore::SharedBuffer::maybeTransferPlatformData):
  52030. (WebCore::SharedBuffer::hasPlatformData):
  52031. (WebCore::SharedBuffer::platformData):
  52032. * platform/SharedBuffer.h: Added.
  52033. * platform/mac/SharedBufferMac.mm: Added.
  52034. (-[SharedBufferData dealloc]):
  52035. (-[SharedBufferData finalize]):
  52036. (-[SharedBufferData initWithSharedBuffer:]):
  52037. (-[SharedBufferData length]):
  52038. (-[SharedBufferData bytes]):
  52039. (WebCore::SharedBuffer::wrapNSData):
  52040. (WebCore::SharedBuffer::SharedBuffer):
  52041. (WebCore::SharedBuffer::createNSData):
  52042. (WebCore::SharedBuffer::hasPlatformData):
  52043. (WebCore::SharedBuffer::platformData):
  52044. (WebCore::SharedBuffer::platformDataSize):
  52045. (WebCore::SharedBuffer::maybeTransferPlatformData):
  52046. (WebCore::SharedBuffer::clearPlatformData):
  52047. * platform/network/ResourceHandle.h:
  52048. * platform/network/ResourceHandleClient.h:
  52049. * platform/network/mac/ResourceHandleMac.mm:
  52050. (WebCore::ResourceHandle::bufferedData):
  52051. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  52052. Reviewed by Adam.
  52053. http://bugs.webkit.org/show_bug.cgi?id=12120
  52054. REGRESSION(r18605): Safari snippet editor no longer works
  52055. * loader/mac/ResourceLoaderMac.mm:
  52056. (WebCore::ResourceLoader::willSendRequest):
  52057. Put back the code change in r18607.
  52058. * platform/mac/KURLMac.mm:
  52059. (WebCore::KURL::KURL):
  52060. Convert nil NSURLs to null KURLs.
  52061. 2007-01-04 Alexey Proskuryakov <ap@webkit.org>
  52062. Reviewed by Geoff.
  52063. http://bugs.webkit.org/show_bug.cgi?id=7296
  52064. Disable JavaScript exceptions when dynamically changing CSS properties.
  52065. * bindings/js/kjs_css.cpp:
  52066. (KJS::DOMCSSStyleDeclaration::put): Removed the Dashboard quirk logic.
  52067. * css/CSSMutableStyleDeclaration.cpp:
  52068. (WebCore::CSSMutableStyleDeclaration::setProperty): Don't raise an exception if parsing fails.
  52069. 2007-01-05 Antti Koivisto <koivisto@iki.fi>
  52070. Reviewed by hyatt.
  52071. http://bugs.webkit.org/show_bug.cgi?id=12109
  52072. Fix layer visibility in some cases with nested layers.
  52073. * rendering/RenderLayer.cpp:
  52074. (WebCore::RenderLayer::updateVisibilityStatus):
  52075. 2007-01-05 Lars Knoll <lars@trolltech.com>
  52076. Make it compile with gcc 4.1
  52077. * rendering/RenderTableSection.h:
  52078. 2007-01-04 Adam Roben <aroben@apple.com>
  52079. Reviewed by Geoff, cheered by others.
  52080. Dead code elimination.
  52081. All layout tests pass.
  52082. * page/EventHandler.h:
  52083. * page/mac/EventHandlerMac.mm:
  52084. * page/mac/WebCoreFrameBridge.h:
  52085. * page/mac/WebCoreFrameBridge.mm:
  52086. 2007-01-04 Adam Roben <aroben@apple.com>
  52087. Reviewed by Geoff.
  52088. Fix: <rdar://4800335> REGRESSION: shift-tabbing from location field
  52089. goes to first field rather than last (businessweek.com)
  52090. Fix: <rdar://4800373> REGRESSION: tabbing from last control focuses
  52091. nothing visible (busniessweek.com)
  52092. Handle tabbing into/out of subframes in WebCore instead of letting
  52093. AppKit do the dirty work. This change also fixes a number of bugs and
  52094. changes some behavior to match other browsers:
  52095. - No frames receive a focus event when the page is first loaded.
  52096. - When a frame is clicked or focused with the keyboard, it receives
  52097. a focus event and all other frames receive a blur event.
  52098. - tabindex values are clamped to the range of a signed short, rather
  52099. than overflowing within an unsigned short.
  52100. - tabindex is respected on frame owner elements, even though HTML4
  52101. says it shouldn't be.
  52102. - Subframes will be focused when tabbing if they don't contain any
  52103. focusable elements within them (it would be nice to only focus the
  52104. frame if it has scrollbars).
  52105. Renamed SelectionDirection to FocusDirection and put it in its own file.
  52106. * page/FocusDirection.h: Added.
  52107. (WebCore::):
  52108. * page/mac/WebCoreFrameBridge.mm: Updated for renames.
  52109. (-[WebCoreFrameBridge nextKeyView]):
  52110. (-[WebCoreFrameBridge previousKeyView]):
  52111. (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
  52112. (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
  52113. Moved advanceFocus from EventHandler to FocusController and added
  52114. support for moving into/out of subframes..
  52115. * page/EventHandler.cpp: Moved advanceFocus to FocusController.
  52116. * page/EventHandler.h: Ditto.
  52117. * page/FocusController.cpp:
  52118. (WebCore::deepFocusableNode): Static helper function to find focusable
  52119. nodes nested within frames.
  52120. (WebCore::FocusController::advanceFocus): Moved from EventHandler and
  52121. rewritten to handle subframes.
  52122. * page/FocusController.h: Added advanceFocus declaration.
  52123. * dom/EventTargetNode.cpp:
  52124. (WebCore::EventTargetNode::defaultEventHandler): Updated for the move
  52125. of advanceFocus to FocusController.
  52126. * html/HTMLFrameOwnerElement.h:
  52127. (WebCore::HTMLFrameOwnerElement::isFrameOwnerElement): New method.
  52128. (WebCore::HTMLFrameOwnerElement::isKeyboardFocusable): New virtual
  52129. implementation used to trick Document::nextFocusableNode so that we
  52130. can focus frames.
  52131. Rewrote/renamed
  52132. Document::nextFocusableNode/Document::previousFocusableNode.
  52133. * dom/Document.cpp:
  52134. (WebCore::nextNodeWithExactTabIndex): New static helper
  52135. function.
  52136. (WebCore::previousNodeWithExactTabIndex): Ditto.
  52137. (WebCore::nextNodeWithGreaterTabIndex): Ditto.
  52138. (WebCore::previousNodeWithLowerTabIndex): Ditto.
  52139. (WebCore::Document::nextFocusableNode): Renamed from nextFocusedNode,
  52140. and rewritten with much simpler logic.
  52141. (WebCore::Document::previousFocusableNode): Ditto.
  52142. * dom/Document.h: Updated declarations for renames.
  52143. * page/mac/EventHandlerMac.mm: Updated for rename of SelectionDirection
  52144. to FocusDirection.
  52145. (WebCore::EventHandler::nextKeyViewInFrame): Updated for renames.
  52146. (WebCore::EventHandler::nextKeyViewInFrameHierarchy): Ditto.
  52147. (WebCore::EventHandler::nextKeyView): Ditto.
  52148. (WebCore::EventHandler::focusDocumentView): Added call to
  52149. setFocusedFrame when focusing the document view.
  52150. (WebCore::EventHandler::passMouseDownEventToWidget): Removed LOG_ERROR
  52151. when a nil NSView is returned from AppKit, as this is a fairly common
  52152. occurrence when a RenderWidget has a border.
  52153. (WebCore::EventHandler::passWheelEventToWidget): Added a nil-check of
  52154. the hit-tested NSView.
  52155. Changed storage of tabIndex to a signed short, and added clamping of
  52156. tabindex attribute values to match Firefox's behavior.
  52157. * dom/Node.h: Use a signed short to store m_tabIndex.
  52158. (WebCore::Node::isFrameOwnerElement): New method.
  52159. (WebCore::Node::tabIndex): Updated for signedness.
  52160. (WebCore::Node::setTabIndex): Ditto.
  52161. * html/HTMLAnchorElement.cpp: Remove implementation of tabIndex() so
  52162. that Node::tabIndex() will be called instead and return the clamped
  52163. value (which matches Firefox's behavior).
  52164. * html/HTMLAnchorElement.h: Ditto.
  52165. * html/HTMLAreaElement.cpp: Ditto.
  52166. * html/HTMLAreaElement.h: Ditto.
  52167. * html/HTMLGenericFormElement.cpp: Ditto.
  52168. * html/HTMLGenericFormElement.h: Ditto.
  52169. * html/HTMLObjectElement.cpp: Ditto.
  52170. * html/HTMLObjectElement.h: Ditto.
  52171. * html/HTMLElement.cpp:
  52172. (WebCore::HTMLElement::parseMappedAttribute): Clamp tabIndex to the
  52173. range of a signed short to match Firefox.
  52174. Added two new Chrome methods for transferring focus out of the
  52175. WebView.
  52176. * page/Chrome.cpp:
  52177. (WebCore::Chrome::canTakeFocus):
  52178. (WebCore::Chrome::takeFocus):
  52179. * page/Chrome.h:
  52180. * page/ChromeClient.h:
  52181. * platform/graphics/svg/SVGImageEmptyClients.h: Fixed typo "CromeClient" -> "ChromeClient".
  52182. (WebCore::SVGEmptyChromeClient::~SVGEmptyChromeClient):
  52183. (WebCore::SVGEmptyChromeClient::canTakeFocus):
  52184. (WebCore::SVGEmptyChromeClient::takeFocus):
  52185. * platform/graphics/svg/SVGImage.cpp:
  52186. (WebCore::SVGImage::setData): Fixed typo.
  52187. Miscellaneous:
  52188. * WebCore.exp: Updated/sorted symbols.
  52189. * WebCore.xcodeproj/project.pbxproj: Made FocusController.h Private so
  52190. WebKit can access it.
  52191. 2007-01-04 Brady Eidson <beidson@apple.com>
  52192. Reverted Anders' change to fix the world
  52193. * loader/mac/ResourceLoaderMac.mm:
  52194. (WebCore::ResourceLoader::willSendRequest):
  52195. (WebCore::ResourceLoader::didReceiveResponse):
  52196. 2007-01-04 Mitz Pettel <mitz@webkit.org>
  52197. Reviewed by Sam Weinig.
  52198. - http://bugs.webkit.org/show_bug.cgi?id=12078
  52199. Clean up RenderTable*
  52200. - Coding style cleanup.
  52201. - Canceled AutoTableLayout and FixedTableLayout being friend classes of
  52202. RenderTable. Instead, added public accessors to RenderTable for what
  52203. the table layout classes need and changed TableLayout::calcMinMaxWidth()
  52204. to take references to the caller's min and max widths.
  52205. - Made RenderTableSection's grid protected and moved code that accessed it
  52206. from RenderTable into RenderTableSection.
  52207. No test possible (no change to functionality).
  52208. * rendering/AutoTableLayout.cpp:
  52209. (WebCore::AutoTableLayout::calcMinMaxWidth):
  52210. (WebCore::AutoTableLayout::layout):
  52211. * rendering/AutoTableLayout.h:
  52212. * rendering/FixedTableLayout.cpp:
  52213. (WebCore::FixedTableLayout::calcWidthArray):
  52214. (WebCore::FixedTableLayout::calcMinMaxWidth):
  52215. (WebCore::FixedTableLayout::layout):
  52216. * rendering/FixedTableLayout.h:
  52217. * rendering/RenderTable.cpp:
  52218. (WebCore::RenderTable::RenderTable):
  52219. (WebCore::RenderTable::~RenderTable):
  52220. (WebCore::RenderTable::setStyle):
  52221. (WebCore::RenderTable::addChild):
  52222. (WebCore::RenderTable::calcWidth):
  52223. (WebCore::RenderTable::layout):
  52224. (WebCore::RenderTable::setCellWidths):
  52225. (WebCore::RenderTable::paint):
  52226. (WebCore::RenderTable::paintBoxDecorations):
  52227. (WebCore::RenderTable::calcMinMaxWidth):
  52228. (WebCore::RenderTable::splitColumn): Factored out the section work
  52229. to RenderTableSection::splitColumn().
  52230. (WebCore::RenderTable::appendColumn): Factored out the section work
  52231. to RenderTableSection::appendColumn().
  52232. (WebCore::RenderTable::colElement):
  52233. (WebCore::RenderTable::recalcSections):
  52234. (WebCore::RenderTable::removeChildNode):
  52235. (WebCore::RenderTable::calcBorderLeft):
  52236. (WebCore::RenderTable::calcBorderRight):
  52237. (WebCore::RenderTable::outerBorderTop):
  52238. (WebCore::RenderTable::outerBorderBottom):
  52239. (WebCore::RenderTable::outerBorderLeft):
  52240. (WebCore::RenderTable::outerBorderRight):
  52241. (WebCore::RenderTable::sectionAbove):
  52242. (WebCore::RenderTable::sectionBelow):
  52243. (WebCore::RenderTable::cellAbove):
  52244. (WebCore::RenderTable::cellBelow):
  52245. (WebCore::RenderTable::cellBefore):
  52246. (WebCore::RenderTable::getOverflowClipRect):
  52247. (WebCore::RenderTable::dump):
  52248. * rendering/RenderTable.h:
  52249. (WebCore::RenderTable::getColumnPos):
  52250. (WebCore::RenderTable::hBorderSpacing):
  52251. (WebCore::RenderTable::vBorderSpacing):
  52252. (WebCore::RenderTable::getRules):
  52253. (WebCore::RenderTable::cellPadding):
  52254. (WebCore::RenderTable::setCellPadding):
  52255. (WebCore::RenderTable::ColumnStruct::ColumnStruct):
  52256. (WebCore::RenderTable::columns): Added this accessor.
  52257. (WebCore::RenderTable::columnPositions): Added this accessor.
  52258. (WebCore::RenderTable::header):
  52259. (WebCore::RenderTable::footer):
  52260. (WebCore::RenderTable::firstBody):
  52261. (WebCore::RenderTable::numEffCols):
  52262. (WebCore::RenderTable::spanOfEffCol):
  52263. (WebCore::RenderTable::colToEffCol):
  52264. (WebCore::RenderTable::effColToCol):
  52265. (WebCore::RenderTable::bordersPaddingAndSpacing):
  52266. (WebCore::RenderTable::needsSectionRecalc):
  52267. (WebCore::RenderTable::setNeedsSectionRecalc): Renamed setNeedSectionRecalc()
  52268. to this.
  52269. (WebCore::RenderTable::hasSections):
  52270. (WebCore::RenderTable::recalcSectionsIfNeeded):
  52271. * rendering/RenderTableCell.cpp:
  52272. (WebCore::RenderTableCell::RenderTableCell):
  52273. (WebCore::RenderTableCell::destroy):
  52274. (WebCore::RenderTableCell::updateFromElement):
  52275. (WebCore::RenderTableCell::styleOrColWidth):
  52276. (WebCore::RenderTableCell::computeAbsoluteRepaintRect):
  52277. (WebCore::RenderTableCell::absolutePosition):
  52278. (WebCore::RenderTableCell::baselinePosition):
  52279. (WebCore::RenderTableCell::setStyle):
  52280. (WebCore::compareBorders):
  52281. (WebCore::RenderTableCell::collapsedTopBorder):
  52282. (WebCore::RenderTableCell::paint):
  52283. (WebCore::collapsedBorderStyle):
  52284. (WebCore::CollapsedBorder::CollapsedBorder):
  52285. (WebCore::CollapsedBorders::CollapsedBorders):
  52286. (WebCore::CollapsedBorders::addBorder):
  52287. (WebCore::CollapsedBorders::nextBorder):
  52288. (WebCore::RenderTableCell::paintCollapsedBorder):
  52289. (WebCore::RenderTableCell::paintBackgroundsBehindCell):
  52290. (WebCore::RenderTableCell::paintBoxDecorations):
  52291. (WebCore::RenderTableCell::dump):
  52292. * rendering/RenderTableCell.h:
  52293. (WebCore::RenderTableCell::colSpan):
  52294. (WebCore::RenderTableCell::setColSpan):
  52295. (WebCore::RenderTableCell::rowSpan):
  52296. (WebCore::RenderTableCell::setRowSpan):
  52297. (WebCore::RenderTableCell::col):
  52298. (WebCore::RenderTableCell::setCol):
  52299. (WebCore::RenderTableCell::row):
  52300. (WebCore::RenderTableCell::setRow):
  52301. (WebCore::RenderTableCell::section):
  52302. (WebCore::RenderTableCell::table):
  52303. (WebCore::RenderTableCell::yPos):
  52304. (WebCore::RenderTableCell::setCellTopExtra):
  52305. (WebCore::RenderTableCell::setCellBottomExtra):
  52306. (WebCore::RenderTableCell::borderTopExtra):
  52307. (WebCore::RenderTableCell::borderBottomExtra):
  52308. * rendering/RenderTableRow.cpp:
  52309. (WebCore::RenderTableRow::destroy):
  52310. (WebCore::RenderTableRow::setStyle):
  52311. (WebCore::RenderTableRow::addChild):
  52312. (WebCore::RenderTableRow::layout):
  52313. (WebCore::RenderTableRow::getAbsoluteRepaintRect):
  52314. (WebCore::RenderTableRow::paint):
  52315. * rendering/RenderTableRow.h:
  52316. (WebCore::RenderTableRow::section):
  52317. (WebCore::RenderTableRow::table):
  52318. (WebCore::RenderTableRow::lineHeight):
  52319. * rendering/RenderTableSection.cpp:
  52320. (WebCore::RenderTableSection::RenderTableSection):
  52321. (WebCore::RenderTableSection::destroy):
  52322. (WebCore::RenderTableSection::setStyle):
  52323. (WebCore::RenderTableSection::addChild):
  52324. (WebCore::RenderTableSection::ensureRows):
  52325. (WebCore::RenderTableSection::addCell):
  52326. (WebCore::RenderTableSection::setCellWidths):
  52327. (WebCore::RenderTableSection::calcRowHeight):
  52328. (WebCore::RenderTableSection::layoutRows):
  52329. (WebCore::RenderTableSection::lowestPosition):
  52330. (WebCore::RenderTableSection::rightmostPosition):
  52331. (WebCore::RenderTableSection::leftmostPosition):
  52332. (WebCore::RenderTableSection::calcOuterBorderTop):
  52333. (WebCore::RenderTableSection::calcOuterBorderBottom):
  52334. (WebCore::RenderTableSection::calcOuterBorderLeft):
  52335. (WebCore::RenderTableSection::calcOuterBorderRight):
  52336. (WebCore::RenderTableSection::paint):
  52337. (WebCore::RenderTableSection::recalcCells):
  52338. (WebCore::RenderTableSection::clearGrid):
  52339. (WebCore::RenderTableSection::numColumns):
  52340. (WebCore::RenderTableSection::appendColumn): Added. Moved code from
  52341. RenderTable::appendColumn() into here.
  52342. (WebCore::RenderTableSection::splitColumn): Added. Moved code from
  52343. RenderTable::splitColumn() into here.
  52344. (WebCore::RenderTableSection::removeChildNode):
  52345. (WebCore::RenderTableSection::dump):
  52346. * rendering/RenderTableSection.h:
  52347. (WebCore::RenderTableSection::renderName):
  52348. (WebCore::RenderTableSection::isTableSection):
  52349. (WebCore::RenderTableSection::lineHeight):
  52350. (WebCore::RenderTableSection::table):
  52351. (WebCore::RenderTableSection::cellAt):
  52352. (WebCore::RenderTableSection::numRows):
  52353. (WebCore::RenderTableSection::recalcCellsIfNeeded):
  52354. (WebCore::RenderTableSection::needsCellRecalc):
  52355. (WebCore::RenderTableSection::setNeedsCellRecalc):
  52356. (WebCore::RenderTableSection::getBaseline):
  52357. * rendering/TableLayout.h:
  52358. 2007-01-04 Anders Carlsson <acarlsson@apple.com>
  52359. Reviewed by Adam.
  52360. http://bugs.webkit.org/show_bug.cgi?id=12120
  52361. REGRESSION(r18605): Safari snippet editor no longer works
  52362. * loader/mac/ResourceLoaderMac.mm:
  52363. (WebCore::ResourceLoader::willSendRequest):
  52364. Fix logic so applewebdata: URLs no longer cause the underlying URL to be fetched .
  52365. 2007-01-04 Anders Carlsson <acarlsson@apple.com>
  52366. Reviewed by Adam.
  52367. Move all remaining instances of NSURLRequest over to ResourceRequest (well, pretty much all).
  52368. * loader/MainResourceLoader.h:
  52369. * loader/ResourceLoader.h:
  52370. * loader/SubresourceLoader.h:
  52371. * loader/mac/FrameLoaderMac.mm:
  52372. (WebCore::FrameLoader::startLoadingMainResource):
  52373. * loader/mac/MainResourceLoaderMac.mm:
  52374. (WebCore::MainResourceLoader::loadNow):
  52375. (WebCore::MainResourceLoader::load):
  52376. (WebCore::MainResourceLoader::setDefersLoading):
  52377. * loader/mac/ResourceLoaderMac.mm:
  52378. (WebCore::ResourceLoader::load):
  52379. * loader/mac/SubresourceLoaderMac.mm:
  52380. (WebCore::SubresourceLoader::load):
  52381. (WebCore::SubresourceLoader::create):
  52382. * platform/graphics/svg/SVGImage.cpp:
  52383. (WebCore::SVGImage::setData):
  52384. * platform/network/mac/ResourceRequestMac.mm:
  52385. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  52386. 2007-01-04 Anders Carlsson <acarlsson@apple.com>
  52387. Reviewed by Brady.
  52388. Move more NSURLRequests over to ResourceRequests.
  52389. * loader/DocumentLoader.h:
  52390. * loader/FrameLoader.h:
  52391. * loader/FrameLoaderClient.h:
  52392. * loader/MainResourceLoader.h:
  52393. * loader/ResourceLoader.h:
  52394. (WebCore::ResourceLoader::request):
  52395. * loader/SubresourceLoader.h:
  52396. * loader/mac/FrameLoaderMac.mm:
  52397. (WebCore::FrameLoader::willSendRequest):
  52398. (WebCore::FrameLoader::opened):
  52399. (WebCore::FrameLoader::requestFromDelegate):
  52400. (WebCore::FrameLoader::loadedResourceFromMemoryCache):
  52401. (WebCore::FrameLoader::loadResourceSynchronously):
  52402. * loader/mac/MainResourceLoaderMac.mm:
  52403. (WebCore::MainResourceLoader::willSendRequest):
  52404. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  52405. (WebCore::MainResourceLoader::loadNow):
  52406. (WebCore::MainResourceLoader::setDefersLoading):
  52407. * loader/mac/ResourceLoaderMac.mm:
  52408. (WebCore::ResourceLoader::load):
  52409. (WebCore::ResourceLoader::willSendRequest):
  52410. (WebCore::ResourceLoader::didReceiveResponse):
  52411. (WebCore::ResourceLoader::cancelledError):
  52412. * loader/mac/SubresourceLoaderMac.mm:
  52413. (WebCore::SubresourceLoader::willSendRequest):
  52414. * platform/graphics/svg/SVGImageEmptyClients.h:
  52415. (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSendRequest):
  52416. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  52417. * platform/network/ResourceRequest.cpp:
  52418. (WebCore::ResourceRequest::isNull):
  52419. * platform/network/ResourceRequest.h:
  52420. 2007-01-04 Brady Eidson <beidson@apple.com>
  52421. Reviewed by Mark Rowe
  52422. http://bugs.webkit.org/show_bug.cgi?id=12119
  52423. Changing the behavior of HistoryItem::pageCache() this morning also necessitated
  52424. changing the behavior of HistoryItem::hasPageCache()
  52425. * history/HistoryItem.cpp:
  52426. (WebCore::HistoryItem::hasPageCache): Add the same pendingRelease check pageCache() has
  52427. 2007-01-04 Mitz Pettel <mitz@webkit.org>
  52428. Reviewed by Sam Weinig.
  52429. - fix http://bugs.webkit.org/show_bug.cgi?id=12043
  52430. Another assertion failure in WebCore::RenderObject::drawBorder
  52431. Test: fast/borders/border-radius-huge-assert.html
  52432. * platform/graphics/cg/GraphicsContextCG.cpp:
  52433. (WebCore::GraphicsContext::addRoundedRectClip): Fixed the check for border radii
  52434. that do not fit in the given width or height to work with radii that sum up to
  52435. more than MAX_INT.
  52436. * rendering/RenderObject.cpp:
  52437. (WebCore::RenderObject::paintBorder): Ditto.
  52438. 2007-01-04 Justin Garcia <justin.garcia@apple.com>
  52439. Reviewed by john
  52440. <rdar://problem/4861080>
  52441. GMail Editor: Crash when dropping content into certain list items
  52442. A rendering bug (4907469) creates unwanted space at the top of a
  52443. list item when its contents are wrapped in span. Dropping content
  52444. inside that space causes a crash because positionForCoordinates
  52445. fails there and the code that creates drag carets can't handle it.
  52446. * page/mac/WebCoreFrameBridge.mm:
  52447. (-[WebCoreFrameBridge _visiblePositionForPoint:]): Added the
  52448. that's inside click handling for the case where
  52449. positionForCoordinates returns null. We should also fix
  52450. positionForCoordinates but that's less important: now its only side
  52451. effect is that a no-op drop is performed instead of a snap back
  52452. when you drop the contents of one of these list items its own
  52453. unwanted space.
  52454. 2007-01-04 Beth Dakin <bdakin@apple.com>
  52455. Reviewed by Adam.
  52456. Fix for http://bugs.webkit.org/show_bug.cgi?id=12118 REGRESSION
  52457. (Context menus): No context menu displayed when clicking outside a
  52458. short document
  52459. No test case added since we do not currently have a way to automate
  52460. context menus.
  52461. * page/ContextMenuController.cpp:
  52462. (WebCore::ContextMenuController::handleContextMenuEvent): If the
  52463. hit test does not find a node, use the document node.
  52464. 2007-01-04 Anders Carlsson <acarlsson@apple.com>
  52465. Reviewed by Adam.
  52466. Convert NSURLRequest to ResourceRequest in a few places
  52467. * loader/FrameLoader.h:
  52468. * loader/FrameLoaderClient.h:
  52469. * loader/MainResourceLoader.h:
  52470. * loader/mac/FrameLoaderMac.mm:
  52471. (WebCore::FrameLoader::identifierForInitialRequest):
  52472. (WebCore::FrameLoader::willUseArchive):
  52473. * loader/mac/MainResourceLoaderMac.mm:
  52474. (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
  52475. * platform/graphics/svg/SVGImageEmptyClients.h:
  52476. (WebCore::SVGEmptyFrameLoaderClient::download):
  52477. (WebCore::SVGEmptyFrameLoaderClient::willUseArchive):
  52478. 2007-01-04 David Hyatt <hyatt@apple.com>
  52479. Bug 12114 fix, make sure left/right floats are allowed to go above
  52480. other floats of opposite alignment.
  52481. Reviewed by aroben
  52482. fast/block/float/independent-align-positioning.html
  52483. * rendering/RenderBlock.cpp:
  52484. (WebCore::RenderBlock::positionNewFloats):
  52485. 2007-01-04 Anders Carlsson <acarlsson@apple.com>
  52486. Reviewed by Brady.
  52487. http://bugs.webkit.org/show_bug.cgi?id=12116
  52488. REGRESSION: ASSERTION FAILED: URL in +[WebDataProtocol _webIsDataProtocolURL:]
  52489. <rdar://problem/4908910>
  52490. REGRESSION: After switching to Bookmarks view, the browser window is completely empty (no bookmarks are displayed)
  52491. * platform/network/ResourceResponse.h:
  52492. (WebCore::ResourceResponse::ResourceResponse):
  52493. Initialize m_isNull
  52494. 2007-01-04 Beth Dakin <bdakin@apple.com>
  52495. Reviewed by Adam.
  52496. Turn on WebCore context menus.
  52497. * dom/EventTargetNode.cpp:
  52498. (WebCore::EventTargetNode::defaultEventHandler): Turn on WebCore
  52499. menus.
  52500. * page/ContextMenuClient.h: Name change and have the
  52501. former getCustomMenuFromDefaultItems function return the
  52502. PlatformMenuDescription since it feels funny to have the client set
  52503. the new platform description.
  52504. * page/ContextMenuController.cpp:
  52505. (WebCore::ContextMenuController::handleContextMenuEvent): Above
  52506. name change.
  52507. (WebCore::ContextMenuController::contextMenuItemSelected): Use
  52508. local variable.
  52509. * platform/ContextMenu.cpp:
  52510. (WebCore::createAndAppendSpeechSubMenu): Fix silly mistake -- make
  52511. "Stop speaking" actually stop speaking.
  52512. * platform/graphics/svg/SVGImageEmptyClients.h: Name change and
  52513. have the former getCustomMenuFromDefaultItems function return the
  52514. PlatformMenuDescription since it feels funny to have the client set
  52515. the new platform description.
  52516. (WebCore::SVGEmptyContextMenuClient::getCustomMenuFromDefaultItems):
  52517. 2007-01-04 Mitz Pettel <mitz@webkit.org>
  52518. Reviewed and landed by Brady
  52519. - fix http://bugs.webkit.org/show_bug.cgi?id=12087
  52520. REGRESSION: Reproducible crash going back in Back/Forward history
  52521. Allow a PageCache that is pending release to be resurrected by its
  52522. HistoryItem instead of creating a new PageCache. This avoids the
  52523. the condition of having two PageCaches for the same HistoryItem, one
  52524. current and one pending release but not yet released, which was causing
  52525. this and other bugs before.
  52526. Replaced the vector of PageCaches pending release with a set of
  52527. HistoryItems that are pending release of their PageCache.
  52528. * history/HistoryItem.cpp:
  52529. (WebCore::HistoryItem::HistoryItem):
  52530. (WebCore::HistoryItem::setHasPageCache): Check for an existing PageCache
  52531. pending release, and if found, resurrect it by canceling the release.
  52532. (WebCore::HistoryItem::pageCache): Return 0 if the PageCache is pending
  52533. release.
  52534. (WebCore::itemsWithPendingPageCacheToRelease): Renamed pendingPageCacheToRelease
  52535. to this. This method now returns a HashSet of HistoryItems that have scheduled
  52536. their PageCaches for release.
  52537. (WebCore::HistoryItem::releasePageCachesOrReschedule): Renamed releasePageCache
  52538. to this.
  52539. (WebCore::HistoryItem::releasePageCache): Added. Actually closes and releases
  52540. the PageCache.
  52541. (WebCore::HistoryItem::releaseAllPendingPageCaches): Rolled closeObjectsInPendingPageCaches
  52542. into this method.
  52543. (WebCore::HistoryItem::scheduleRelease):
  52544. (WebCore::HistoryItem::cancelRelease): Added.
  52545. * history/HistoryItem.h: Removed unused declaration of scheduleReleaseTimer()
  52546. * history/HistoryItemTimer.cpp:
  52547. (WebCore::HistoryItemTimer::HistoryItemTimer):
  52548. (WebCore::HistoryItemTimer::callReleasePageCachesOrReschedule):
  52549. * history/HistoryItemTimer.h:
  52550. 2007-01-04 David Hyatt <hyatt@apple.com>
  52551. Just make the synthetic bold offset always be 1.0. This fixes bug
  52552. 9534, synthetic bold looks doubled.
  52553. Reviewed by olliej
  52554. * platform/mac/FontDataMac.mm:
  52555. (WebCore::FontData::platformInit):
  52556. 2007-01-04 Anders Carlsson <acarlsson@apple.com>
  52557. Reviewed by Brady.
  52558. Convert almost all occurrences of NSURLResponse to ResourceResponse.
  52559. * WebCore.exp:
  52560. * loader/DocumentLoader.h:
  52561. * loader/FrameLoader.h:
  52562. * loader/FrameLoaderClient.h:
  52563. * loader/MainResourceLoader.h:
  52564. * loader/NetscapePlugInStreamLoader.h:
  52565. * loader/ResourceLoader.h:
  52566. * loader/SubresourceLoader.h:
  52567. * loader/loader.h:
  52568. * loader/mac/FrameLoaderMac.mm:
  52569. (WebCore::FrameLoader::willSendRequest):
  52570. (WebCore::FrameLoader::didReceiveResponse):
  52571. (WebCore::FrameLoader::opened):
  52572. (WebCore::FrameLoader::sendRemainingDelegateMessages):
  52573. (WebCore::FrameLoader::loadedResourceFromMemoryCache):
  52574. (WebCore::FrameLoader::loadResourceSynchronously):
  52575. * loader/mac/LoaderFunctionsMac.mm:
  52576. (WebCore::CheckCacheObjectStatus):
  52577. * loader/mac/MainResourceLoaderMac.mm:
  52578. (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
  52579. (WebCore::MainResourceLoader::willSendRequest):
  52580. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  52581. (WebCore::MainResourceLoader::didReceiveResponse):
  52582. (WebCore::MainResourceLoader::loadNow):
  52583. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  52584. (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
  52585. * loader/mac/ResourceLoaderMac.mm:
  52586. (WebCore::ResourceLoader::willSendRequest):
  52587. (WebCore::ResourceLoader::didReceiveResponse):
  52588. (WebCore::ResourceLoader::response):
  52589. * loader/mac/SubresourceLoaderMac.mm:
  52590. (WebCore::SubresourceLoader::willSendRequest):
  52591. (WebCore::SubresourceLoader::didReceiveResponse):
  52592. * platform/graphics/svg/SVGImageEmptyClients.h:
  52593. (WebCore::SVGEmptyFrameLoaderClient::download):
  52594. (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSendRequest):
  52595. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveResponse):
  52596. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  52597. (WebCore::SVGEmptyFrameLoaderClient::incrementProgress):
  52598. * platform/network/ResourceHandle.h:
  52599. * platform/network/ResourceHandleClient.h:
  52600. * platform/network/ResourceResponse.cpp:
  52601. (WebCore::ResourceResponse::isHTTP):
  52602. * platform/network/ResourceResponse.h:
  52603. (WebCore::ResourceResponse::ResourceResponse):
  52604. (WebCore::ResourceResponse::isNull):
  52605. * platform/network/mac/ResourceResponseMac.mm:
  52606. (WebCore::ResourceResponse::nsURLResponse):
  52607. (WebCore::ResourceResponse::doUpdateResourceResponse):
  52608. 2007-01-03 Adele Peterson <adele@apple.com>
  52609. Reviewed by Darin.
  52610. - Fix for <rdar://problem/4887422>
  52611. http://bugs.webkit.org/show_bug.cgi?id=11848
  52612. REGRESSION (SearchField): Search field on developer.apple.com not drawn with top/bottom borders (11848)
  52613. Test: fast/forms/searchfield-heights.html
  52614. Override the border and the height for search fields that use -webkit-appearance: searchfield.
  52615. * css/html4.css: Use box-sizing: border-box for search fields. We don't need to have the border-box quirk
  52616. that we use for the other text fields for this control.
  52617. * rendering/RenderThemeMac.h:
  52618. * rendering/RenderThemeMac.mm:
  52619. (WebCore::RenderThemeMac::searchFieldSizes): Added.
  52620. (WebCore::RenderThemeMac::setSearchFieldSize): Added.
  52621. (WebCore::RenderThemeMac::adjustSearchFieldStyle): Override the border and the height of the search field.
  52622. 2007-01-04 Lars Knoll <lars@trolltech.com>
  52623. * platform/qt/TemporaryLinkStubs.cpp:
  52624. (WebCore::inputElementAltText):
  52625. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  52626. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  52627. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  52628. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  52629. (WebCore::contextMenuItemTagDownloadImageToDisk):
  52630. (WebCore::contextMenuItemTagCopyImageToClipboard):
  52631. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  52632. (WebCore::contextMenuItemTagCopy):
  52633. (WebCore::contextMenuItemTagGoBack):
  52634. (WebCore::contextMenuItemTagGoForward):
  52635. (WebCore::contextMenuItemTagStop):
  52636. (WebCore::contextMenuItemTagReload):
  52637. (WebCore::contextMenuItemTagCut):
  52638. (WebCore::contextMenuItemTagPaste):
  52639. (WebCore::contextMenuItemTagNoGuessesFound):
  52640. (WebCore::contextMenuItemTagIgnoreSpelling):
  52641. (WebCore::contextMenuItemTagLearnSpelling):
  52642. (WebCore::contextMenuItemTagSearchWeb):
  52643. (WebCore::contextMenuItemTagLookUpInDictionary):
  52644. (WebCore::contextMenuItemTagOpenLink):
  52645. (WebCore::contextMenuItemTagIgnoreGrammar):
  52646. (WebCore::contextMenuItemTagSpellingMenu):
  52647. (WebCore::contextMenuItemTagShowSpellingPanel):
  52648. (WebCore::contextMenuItemTagCheckSpelling):
  52649. (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
  52650. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  52651. (WebCore::contextMenuItemTagFontMenu):
  52652. (WebCore::contextMenuItemTagBold):
  52653. (WebCore::contextMenuItemTagItalic):
  52654. (WebCore::contextMenuItemTagUnderline):
  52655. (WebCore::contextMenuItemTagOutline):
  52656. (WebCore::contextMenuItemTagWritingDirectionMenu):
  52657. (WebCore::contextMenuItemTagDefaultDirection):
  52658. (WebCore::contextMenuItemTagLeftToRight):
  52659. (WebCore::contextMenuItemTagRightToLeft):
  52660. Added missing stubs.
  52661. 2007-01-04 Peter Kasting <pkasting@google.com>
  52662. Reviewed by Alexey.
  52663. http://bugs.webkit.org/show_bug.cgi?id=11900:
  52664. Windows build bustage
  52665. * WebCore.vcproj/WebCore/WebCore.vcproj:
  52666. * bridge/win/FrameWin.cpp:
  52667. (WebCore::FrameWin::FrameWin):
  52668. * platform/graphics/BitmapImage.h:
  52669. * platform/graphics/GraphicsContext.cpp:
  52670. (WebCore::GraphicsContext::setPlatformStrokeColor):
  52671. * platform/graphics/Image.h:
  52672. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  52673. (WebCore::GraphicsContext::drawRect):
  52674. (WebCore::adjustLineToPixelBoundaries):
  52675. (WebCore::GraphicsContext::drawLine):
  52676. (WebCore::GraphicsContext::drawEllipse):
  52677. (WebCore::GraphicsContext::strokeArc):
  52678. (WebCore::GraphicsContext::drawConvexPolygon):
  52679. * platform/graphics/cairo/ImageCairo.cpp:
  52680. (WebCore::BitmapImage::checkForSolidColor):
  52681. (WebCore::BitmapImage::draw):
  52682. (WebCore::BitmapImage::drawTiled):
  52683. * platform/graphics/win/ImageWin.cpp:
  52684. (WebCore::BitmapImage::initPlatformData):
  52685. (WebCore::BitmapImage::invalidatePlatformData):
  52686. (WebCore::Image::loadPlatformResource):
  52687. * platform/win/FontWin.cpp:
  52688. (WebCore::Font::drawGlyphs):
  52689. * platform/win/TemporaryLinkStubs.cpp:
  52690. (WebCore::userIdleTime):
  52691. (WebCore::BitmapImage::drawTiled):
  52692. (WebCore::BitmapImage::getHBITMAP):
  52693. (WebCore::ContextMenu::~ContextMenu):
  52694. (WebCore::ContextMenu::appendItem):
  52695. (WebCore::ContextMenuItem::ContextMenuItem):
  52696. (WebCore::ContextMenuItem::releasePlatformDescription):
  52697. (WebCore::ContextMenuItem::type):
  52698. (WebCore::ContextMenuItem::setType):
  52699. (WebCore::ContextMenuItem::setAction):
  52700. (WebCore::ContextMenuItem::setTitle):
  52701. (WebCore::ContextMenuItem::setSubMenu):
  52702. (WebCore::ContextMenuItem::setChecked):
  52703. (WebCore::ContextMenuItem::setEnabled):
  52704. (WebCore::DocumentLoader::originalRequest):
  52705. (WebCore::DocumentLoader::request):
  52706. (WebCore::DocumentLoader::unreachableURL):
  52707. (WebCore::DocumentLoader::getResponseRefreshAndModifiedHeaders):
  52708. (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
  52709. (WebCore::DocumentLoader::setCommitted):
  52710. (WebCore::DocumentLoader::isLoading):
  52711. (WebCore::DocumentLoader::prepareForLoadStart):
  52712. (WebCore::DocumentLoader::isClientRedirect):
  52713. (WebCore::DocumentLoader::title):
  52714. (WebCore::DocumentLoader::urlForHistory):
  52715. (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  52716. (WebCore::FrameLoader::load):
  52717. (WebCore::FrameLoader::referrer):
  52718. (WebCore::FrameLoader::dataURLBaseFromRequest):
  52719. (WebCore::FrameLoader::opened):
  52720. (WebCore::FrameLoader::applyUserAgent):
  52721. (WebCore::GraphicsContext::strokeRect):
  52722. (WebCore::IconDatabase::iconForPageURL):
  52723. (WebCore::IconDatabase::defaultIcon):
  52724. (WebCore::IconDatabase::retainIconForPageURL):
  52725. (WebCore::IconDatabase::releaseIconForPageURL):
  52726. (WebCore::PageCache::close):
  52727. (WebCore::ResourceHandle::willLoadFromCache):
  52728. (WebCore::SearchPopupMenu::saveRecentSearches):
  52729. (WebCore::SearchPopupMenu::loadRecentSearches):
  52730. (WebCore::SearchPopupMenu::SearchPopupMenu):
  52731. 2007-01-04 Alexey Proskuryakov <ap@webkit.org>
  52732. Reviewed by Darin.
  52733. http://bugs.webkit.org/show_bug.cgi?id=11611
  52734. REGRESSION: No http referer header sent on XMLHttpRequest
  52735. Test: http/tests/xmlhttprequest/referer.html
  52736. * loader/FrameLoader.h: Removed FrameLoader::addExtraFieldsToRequest(NSMutableURLRequest*, bool, bool),
  52737. which is no longer used.
  52738. * loader/mac/FrameLoaderMac.mm: Ditto.
  52739. * WebCore.exp: Do not export this method (WebKit doesn't use it).
  52740. * loader/mac/SubresourceLoaderMac.mm:
  52741. (WebCore::SubresourceLoader::create): Rewrote to create the request with ResourceRequest::nsURLRequest.
  52742. * platform/PlatformString.h:
  52743. (WebCore::operator!): Added. Previously, attempts to use operator! on a String would result
  52744. with an NSString* conversion, which never returns nil. This was causing a problem in SubresourceLoader::create().
  52745. 2007-01-04 Lars Knoll <lars@trolltech.com>
  52746. Make the Qt build compile again.
  52747. * platform/ContextMenu.cpp:
  52748. (WebCore::ContextMenu::populate):
  52749. 2007-01-03 Mitz Pettel <mitz@webkit.org>
  52750. Reviewed by Hyatt.
  52751. - fix http://bugs.webkit.org/show_bug.cgi?id=5164
  52752. Non-integer percentages are incorrectly rounded down in Safari
  52753. Test: fast/css/percentage-non-integer.html
  52754. Added floating point constructor and accessors to Length for use with
  52755. Percent lengths only. The raw value of a percent length is the integer
  52756. part of a constant multiple of the original double value. The constant
  52757. is percentScaleFactor, which is currently 128.
  52758. Added assertions that the correct constructors and accessors are used
  52759. depending on the type: the double-based percent(), setValue() and Length()
  52760. for the Percent type, and the integer-based value(), setValue() and Length()
  52761. for all other types.
  52762. calcValue() and calcMinValue() work the same as before, regardless of the
  52763. type.
  52764. Added helpers for testing if the value is 0, positive, negative or undefined
  52765. without having to check the type first.
  52766. Added raw value accessors. These are useful for doing integer math and
  52767. comparisons with scaled percent values or doing Length type-agnostic math.
  52768. Changed the rest of the code to use the appropriate accessors and helpers.
  52769. * css/CSSComputedStyleDeclaration.cpp:
  52770. (WebCore::valueForLength):
  52771. (WebCore::primitiveValueFromLength):
  52772. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  52773. * css/cssstyleselector.cpp:
  52774. (WebCore::convertToLength):
  52775. (WebCore::CSSStyleSelector::applyProperty):
  52776. (WebCore::CSSStyleSelector::mapBackgroundSize):
  52777. (WebCore::CSSStyleSelector::mapBackgroundXPosition):
  52778. (WebCore::CSSStyleSelector::mapBackgroundYPosition):
  52779. * platform/StringImpl.cpp:
  52780. (WebCore::parseLength):
  52781. * rendering/AutoTableLayout.cpp:
  52782. (WebCore::AutoTableLayout::recalcColumn):
  52783. (WebCore::AutoTableLayout::fullRecalc):
  52784. (WebCore::AutoTableLayout::calcMinMaxWidth):
  52785. (WebCore::AutoTableLayout::calcEffectiveWidth):
  52786. (WebCore::AutoTableLayout::layout):
  52787. (WebCore::AutoTableLayout::calcPercentages):
  52788. * rendering/FixedTableLayout.cpp:
  52789. (WebCore::FixedTableLayout::calcWidthArray):
  52790. (WebCore::FixedTableLayout::layout):
  52791. * rendering/Length.h:
  52792. (WebCore::Length::Length):
  52793. (WebCore::Length::value):
  52794. (WebCore::Length::rawValue):
  52795. (WebCore::Length::percent):
  52796. (WebCore::Length::setValue):
  52797. (WebCore::Length::setRawValue):
  52798. (WebCore::Length::calcValue):
  52799. (WebCore::Length::calcMinValue):
  52800. (WebCore::Length::isUndefined):
  52801. (WebCore::Length::isZero):
  52802. (WebCore::Length::isPositive):
  52803. (WebCore::Length::isNegative):
  52804. * rendering/RenderBR.cpp:
  52805. (WebCore::RenderBR::lineHeight):
  52806. * rendering/RenderBlock.cpp:
  52807. (WebCore::RenderBlock::isSelfCollapsingBlock):
  52808. * rendering/RenderBox.cpp:
  52809. (WebCore::cacluateBackgroundSize):
  52810. (WebCore::RenderBox::calcWidth):
  52811. (WebCore::RenderBox::calcHeight):
  52812. (WebCore::RenderBox::calcReplacedWidth):
  52813. (WebCore::RenderBox::calcReplacedHeight):
  52814. (WebCore::RenderBox::calcAbsoluteHorizontal):
  52815. (WebCore::RenderBox::calcAbsoluteVertical):
  52816. * rendering/RenderFlexibleBox.cpp:
  52817. (WebCore::RenderFlexibleBox::allowedChildFlex):
  52818. * rendering/RenderFlow.cpp:
  52819. (WebCore::RenderFlow::lineHeight):
  52820. * rendering/RenderImage.cpp:
  52821. (WebCore::RenderImage::calcReplacedWidth):
  52822. (WebCore::RenderImage::calcReplacedHeight):
  52823. * rendering/RenderLayer.cpp:
  52824. (WebCore::Marquee::direction):
  52825. (WebCore::Marquee::start):
  52826. * rendering/RenderObject.cpp:
  52827. (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
  52828. (WebCore::RenderObject::lineHeight):
  52829. * rendering/RenderSlider.cpp:
  52830. (WebCore::RenderSlider::layout): Added FIXMEs.
  52831. * rendering/RenderStyle.h:
  52832. (WebCore::LengthBox::nonZero):
  52833. (WebCore::RenderStyle::initialLineHeight):
  52834. * rendering/RenderTable.cpp:
  52835. (WebCore::RenderTable::calcWidth):
  52836. * rendering/RenderTableSection.cpp:
  52837. (WebCore::RenderTableSection::addCell):
  52838. (WebCore::RenderTableSection::layoutRows):
  52839. 2007-01-03 Mitz Pettel <mitz@webkit.org>
  52840. Reviewed by Hyatt.
  52841. - fix http://bugs.webkit.org/show_bug.cgi?id=11744
  52842. Setting the 'content' property dynamically has no effect
  52843. Test: fast/css/content-dynamic.html
  52844. * dom/Node.cpp:
  52845. (WebCore::Node::diff): Changed to return 'Detach' if the styles' content
  52846. data are not equivalent.
  52847. 2007-01-03 Mitz Pettel <mitz@webkit.org>
  52848. Reviewed by Darin.
  52849. - fix http://bugs.webkit.org/show_bug.cgi?id=12082
  52850. REGRESSION (r18333): Crash in RenderFrameSet::layOutAxis()
  52851. Test: fast/frames/negative-remaining-length-crash.html
  52852. * rendering/RenderFrameSet.cpp:
  52853. (WebCore::RenderFrameSet::layOutAxis): Treat negative availableLength
  52854. as zero.
  52855. 2007-01-03 John Sullivan <sullivan@apple.com>
  52856. Written by Darin over my shoulder; reviewed by me
  52857. - fixed <rdar://problem/4907437> Find doesn't work if invoked when a form field is focused
  52858. * page/Frame.cpp:
  52859. (WebCore::isInShadowTree):
  52860. new helper function used by findString
  52861. (WebCore::Frame::findString):
  52862. when deciding whether to start from the selection, ignore selections that are in
  52863. a shadow tree (i.e. in a form control)
  52864. 2007-01-03 Brady Eidson <beidson@apple.com>
  52865. Reviewed by Mark Rowe
  52866. Fixes http://bugs.webkit.org/show_bug.cgi?id=12089
  52867. * loader/FrameLoader.cpp:
  52868. (WebCore::FrameLoader::updateHistoryForCommit): Null check the documentLoader
  52869. 2007-01-03 David Hyatt <hyatt@apple.com>
  52870. Relax the display type restriction a little bit for generated content inside
  52871. inlines. We still don't allow block display types like we should (since this
  52872. will cause a crash), but we at least handle inline-table and inline-block now.
  52873. Reviewed by beth
  52874. fast/css-generated-content/inline-display-types.html
  52875. * rendering/RenderContainer.cpp:
  52876. (WebCore::RenderContainer::updatePseudoChildForObject):
  52877. 2007-01-03 Justin Garcia <justin.garcia@apple.com>
  52878. Reviewed by john
  52879. <rdar://problem/4663571> Spell checking won't cross boundary of individual To-Do item
  52880. No layout tests because advanceToNextMisspelling isn't yet exposed to automated tests.
  52881. * editing/mac/EditorMac.mm:
  52882. (WebCore::Editor::advanceToNextMisspelling): Confine spell checking to
  52883. the highest editable root, instead of the lowest. Use firstEditablePosition...
  52884. to look for an editable position.
  52885. 2007-01-03 Beth Dakin <bdakin@apple.com>
  52886. Fixing silly mistake.
  52887. * platform/ContextMenu.cpp:
  52888. (WebCore::ContextMenu::checkOrEnableIfNeeded): Called wrong string
  52889. function.
  52890. 2007-01-03 Brady Eidson <beidson@apple.com>
  52891. Reviewed by Anders
  52892. http://bugs.webkit.org/show_bug.cgi?id=12093 - Assertion in certain SVG layout tests
  52893. I can't really think of a cleaner way to fix this then to help these SVG cases avoid
  52894. the ASSERT - hopefully we can clean up the svg-as-image situation as the loader stabilizes
  52895. and we find better ways to handle it...
  52896. * loader/mac/DocumentLoaderMac.mm:
  52897. (WebCore::DocumentLoader::urlForHistory): empty-check the url before passing it to the
  52898. ASSERTing method
  52899. 2007-01-03 Darin Adler <darin@apple.com>
  52900. Reviewed by Adele.
  52901. - removed some obsolete source files
  52902. * CMakeLists.txt: Removed obsolete files.
  52903. * WebCore.pro: Ditto.
  52904. * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
  52905. * WebCore.xcodeproj/project.pbxproj: Ditto.
  52906. * WebCoreSources.bkl: Ditto.
  52907. * html/HTMLGenericFormElement.h: Removed reference to RenderFormElement.
  52908. * platform/qt/ComboBoxQt.cpp: Removed.
  52909. * platform/qt/LineEditQt.cpp: Removed.
  52910. * platform/qt/ListBoxQt.cpp: Removed.
  52911. * platform/qt/TextEditQt.cpp: Removed.
  52912. * rendering/RenderFormElement.cpp: Removed.
  52913. * rendering/RenderFormElement.h: Removed.
  52914. * rendering/RenderLabel.cpp: Removed.
  52915. * rendering/RenderLabel.h: Removed.
  52916. 2007-01-03 Darin Adler <darin@apple.com>
  52917. Reviewed by Hyatt.
  52918. - fix bug where :after content appears backwards
  52919. Test: fast/css-generated-content/after-order.html
  52920. * rendering/RenderBlock.cpp:
  52921. (WebCore::isAfterContent): Added.
  52922. (WebCore::RenderBlock::addChildToFlow): Use isAfterContent.
  52923. * rendering/RenderInline.cpp:
  52924. (WebCore::isAfterContent): Added.
  52925. (WebCore::RenderInline::addChildToFlow): Use isAfterContent.
  52926. 2007-01-03 David Hyatt <hyatt@apple.com>
  52927. Implement box-shadow parsing... getting it all into the RenderStyle.
  52928. Reviewed by beth
  52929. * css/CSSComputedStyleDeclaration.cpp:
  52930. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  52931. * css/CSSPropertyNames.in:
  52932. * css/cssparser.cpp:
  52933. (WebCore::CSSParser::parseValue):
  52934. * css/cssstyleselector.cpp:
  52935. (WebCore::CSSStyleSelector::applyProperty):
  52936. * rendering/RenderStyle.cpp:
  52937. (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
  52938. (WebCore::StyleCSS3NonInheritedData::operator==):
  52939. (WebCore::StyleCSS3NonInheritedData::shadowDataEquivalent):
  52940. (WebCore::RenderStyle::diff):
  52941. (WebCore::RenderStyle::setBoxShadow):
  52942. * rendering/RenderStyle.h:
  52943. (WebCore::RenderStyle::boxShadow):
  52944. 2007-01-03 Beth Dakin <bdakin@apple.com>
  52945. Reviewed by John.
  52946. Call into WebKit to get localized strings for all of the context
  52947. menu item titles.
  52948. * page/mac/WebCoreViewFactory.h:
  52949. * platform/ContextMenu.cpp:
  52950. (WebCore::createAndAppendFontSubMenu):
  52951. (WebCore::createAndAppendSpellingAndGrammarSubMenu):
  52952. (WebCore::createAndAppendSpellingSubMenu):
  52953. (WebCore::createAndAppendSpeechSubMenu):
  52954. (WebCore::createAndAppendWritingDirectionSubMenu):
  52955. (WebCore::ContextMenu::populate):
  52956. (WebCore::ContextMenu::checkOrEnableIfNeeded):
  52957. * platform/LocalizedStrings.h:
  52958. * platform/mac/LocalizedStringsMac.mm:
  52959. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  52960. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  52961. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  52962. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  52963. (WebCore::contextMenuItemTagDownloadImageToDisk):
  52964. (WebCore::contextMenuItemTagCopyImageToClipboard):
  52965. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  52966. (WebCore::contextMenuItemTagCopy):
  52967. (WebCore::contextMenuItemTagGoBack):
  52968. (WebCore::contextMenuItemTagGoForward):
  52969. (WebCore::contextMenuItemTagStop):
  52970. (WebCore::contextMenuItemTagReload):
  52971. (WebCore::contextMenuItemTagCut):
  52972. (WebCore::contextMenuItemTagPaste):
  52973. (WebCore::contextMenuItemTagNoGuessesFound):
  52974. (WebCore::contextMenuItemTagIgnoreSpelling):
  52975. (WebCore::contextMenuItemTagLearnSpelling):
  52976. (WebCore::contextMenuItemTagSearchInSpotlight):
  52977. (WebCore::contextMenuItemTagSearchWeb):
  52978. (WebCore::contextMenuItemTagLookUpInDictionary):
  52979. (WebCore::contextMenuItemTagOpenLink):
  52980. (WebCore::contextMenuItemTagIgnoreGrammar):
  52981. (WebCore::contextMenuItemTagSpellingMenu):
  52982. (WebCore::contextMenuItemTagShowSpellingPanel):
  52983. (WebCore::contextMenuItemTagCheckSpelling):
  52984. (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
  52985. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  52986. (WebCore::contextMenuItemTagFontMenu):
  52987. (WebCore::contextMenuItemTagShowFonts):
  52988. (WebCore::contextMenuItemTagBold):
  52989. (WebCore::contextMenuItemTagItalic):
  52990. (WebCore::contextMenuItemTagUnderline):
  52991. (WebCore::contextMenuItemTagOutline):
  52992. (WebCore::contextMenuItemTagStyles):
  52993. (WebCore::contextMenuItemTagShowColors):
  52994. (WebCore::contextMenuItemTagSpeechMenu):
  52995. (WebCore::contextMenuItemTagStartSpeaking):
  52996. (WebCore::contextMenuItemTagStopSpeaking):
  52997. (WebCore::contextMenuItemTagWritingDirectionMenu):
  52998. (WebCore::contextMenuItemTagDefaultDirection):
  52999. (WebCore::contextMenuItemTagLeftToRight):
  53000. (WebCore::contextMenuItemTagRightToLeft):
  53001. 2007-01-03 Brady Eidson <beidson@apple.com>
  53002. Reviewed by Darin and Geoff
  53003. http://bugs.webkit.org/show_bug.cgi?id=12105 - Crash visiting Acid2 test page
  53004. -Replace lost "free nil checking" in the WebKit->WebCore conversion of the BackForwardList
  53005. -Changed ::createItem and ::createItemTree to ::createHistoryItem and ::createHistoryItemTree
  53006. * loader/FrameLoader.cpp:
  53007. (WebCore::FrameLoader::createHistoryItem):
  53008. (WebCore::FrameLoader::addBackForwardItemClippedAtTarget):
  53009. (WebCore::FrameLoader::createHistoryItemTree):
  53010. (WebCore::FrameLoader::updateHistoryForInternalLoad):
  53011. * loader/FrameLoader.h:
  53012. 2007-01-03 Anders Carlsson <acarlsson@apple.com>
  53013. Reviewed by Geoff.
  53014. Allow plugin elements to handle off events to their widgets.
  53015. * html/HTMLPlugInElement.cpp:
  53016. (WebCore::HTMLPlugInElement::defaultEventHandler):
  53017. * html/HTMLPlugInElement.h:
  53018. * platform/Widget.h:
  53019. (WebCore::Widget::handleEvent):
  53020. 2007-01-03 Lars Knoll <lars@trolltech.com>
  53021. Fix the Qt build
  53022. * WebCore.pro:
  53023. * history/qt/PageCacheQt.cpp: Added.
  53024. (WebCore::PageCache::close):
  53025. * loader/qt/DocumentLoaderQt.cpp:
  53026. (WebCore::DocumentLoader::getResponseRefreshAndModifiedHeaders):
  53027. (WebCore::DocumentLoader::urlForHistory):
  53028. * loader/qt/FrameLoaderQt.cpp:
  53029. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  53030. (WebCore::FrameLoader::didFirstLayout):
  53031. (WebCore::FrameLoader::load):
  53032. (WebCore::FrameLoader::opened):
  53033. (WebCore::FrameLoader::dataURLBaseFromRequest):
  53034. (WebCore::FrameLoader::applyUserAgent):
  53035. * platform/network/qt/ResourceHandleQt.cpp:
  53036. (WebCore::ResourceHandle::loadsBlocked):
  53037. (WebCore::ResourceHandle::willLoadFromCache):
  53038. 2007-01-02 Brady Eidson <beidson@apple.com>
  53039. Reviewed extensively and repeatedly by Darin
  53040. <rdar://problem/4887137> - WebCore Back/Forward Cache
  53041. * WebCore.exp:
  53042. * WebCore.xcodeproj/project.pbxproj:
  53043. * bridge/mac/WebCorePageState.h: Removed.
  53044. * bridge/mac/WebCorePageState.mm: Removed.
  53045. * history/BackForwardList.cpp: Added - This largely emulates the design of WebBackForwardList
  53046. (WebCore::BackForwardList::BackForwardList):
  53047. (WebCore::BackForwardList::~BackForwardList):
  53048. (WebCore::BackForwardList::addItem):
  53049. (WebCore::BackForwardList::goBack):
  53050. (WebCore::BackForwardList::goForward):
  53051. (WebCore::BackForwardList::goToItem):
  53052. (WebCore::BackForwardList::backItem):
  53053. (WebCore::BackForwardList::currentItem):
  53054. (WebCore::BackForwardList::forwardItem):
  53055. (WebCore::BackForwardList::backListWithLimit):
  53056. (WebCore::BackForwardList::forwardListWithLimit):
  53057. (WebCore::BackForwardList::capacity):
  53058. (WebCore::BackForwardList::setCapacity):
  53059. (WebCore::BackForwardList::setPageCacheSize):
  53060. (WebCore::BackForwardList::pageCacheSize):
  53061. (WebCore::BackForwardList::clearPageCache):
  53062. (WebCore::BackForwardList::usesPageCache):
  53063. (WebCore::BackForwardList::backListCount):
  53064. (WebCore::BackForwardList::forwardListCount):
  53065. (WebCore::BackForwardList::itemAtIndex):
  53066. (WebCore::BackForwardList::entries):
  53067. (WebCore::BackForwardList::close):
  53068. (WebCore::BackForwardList::closed):
  53069. (WebCore::BackForwardList::removeItem):
  53070. (WebCore::BackForwardList::containsItem):
  53071. (WebCore::BackForwardList::setDefaultPageCacheSize):
  53072. (WebCore::BackForwardList::defaultPageCacheSize):
  53073. * history/BackForwardList.h: Added.
  53074. * history/HistoryItem.cpp: Added - This largely emulates the design of WebBackForwardList
  53075. (WebCore::defaultNotifyHistoryItemChanged):
  53076. (WebCore::HistoryItem::HistoryItem):
  53077. (WebCore::HistoryItem::~HistoryItem):
  53078. (WebCore::HistoryItem::copy):
  53079. (WebCore::HistoryItem::setHasPageCache):
  53080. (WebCore::HistoryItem::retainIconInDatabase):
  53081. (WebCore::HistoryItem::urlString):
  53082. (WebCore::HistoryItem::originalURLString):
  53083. (WebCore::HistoryItem::title):
  53084. (WebCore::HistoryItem::alternateTitle):
  53085. (WebCore::HistoryItem::icon):
  53086. (WebCore::HistoryItem::lastVisitedTime):
  53087. (WebCore::HistoryItem::url):
  53088. (WebCore::HistoryItem::originalURL):
  53089. (WebCore::HistoryItem::target):
  53090. (WebCore::HistoryItem::parent):
  53091. (WebCore::HistoryItem::setAlternateTitle):
  53092. (WebCore::HistoryItem::setURLString):
  53093. (WebCore::HistoryItem::setURL):
  53094. (WebCore::HistoryItem::setOriginalURLString):
  53095. (WebCore::HistoryItem::setTitle):
  53096. (WebCore::HistoryItem::setTarget):
  53097. (WebCore::HistoryItem::setParent):
  53098. (WebCore::HistoryItem::setLastVisitedTime):
  53099. (WebCore::HistoryItem::visitCount):
  53100. (WebCore::HistoryItem::setVisitCount):
  53101. (WebCore::HistoryItem::scrollPoint):
  53102. (WebCore::HistoryItem::setScrollPoint):
  53103. (WebCore::HistoryItem::clearScrollPoint):
  53104. (WebCore::HistoryItem::setDocumentState):
  53105. (WebCore::HistoryItem::documentState):
  53106. (WebCore::HistoryItem::clearDocumentState):
  53107. (WebCore::HistoryItem::isTargetItem):
  53108. (WebCore::HistoryItem::setIsTargetItem):
  53109. (WebCore::HistoryItem::alwaysAttemptToUsePageCache):
  53110. (WebCore::HistoryItem::setAlwaysAttemptToUsePageCache):
  53111. (WebCore::HistoryItem::addChildItem):
  53112. (WebCore::HistoryItem::childItemWithName):
  53113. (WebCore::HistoryItem::recurseToFindTargetItem):
  53114. (WebCore::HistoryItem::targetItem):
  53115. (WebCore::HistoryItem::pageCache):
  53116. (WebCore::HistoryItem::children):
  53117. (WebCore::HistoryItem::hasChildren):
  53118. (WebCore::HistoryItem::formContentType):
  53119. (WebCore::HistoryItem::formReferrer):
  53120. (WebCore::HistoryItem::rssFeedReferrer):
  53121. (WebCore::HistoryItem::setRSSFeedReferrer):
  53122. (WebCore::HistoryItem::setFormInfoFromRequest):
  53123. (WebCore::HistoryItem::formData):
  53124. (WebCore::HistoryItem::mergeAutoCompleteHints):
  53125. (WebCore::HistoryItem::hasPageCache):
  53126. (WebCore::timer): Function to manage the global release timer
  53127. (WebCore::pendingPageCacheToRelease): Function to manage the global queue of caches to be released
  53128. (WebCore::HistoryItem::releasePageCache):
  53129. (WebCore::closeObjectsInPendingPageCaches):
  53130. (WebCore::HistoryItem::releaseAllPendingPageCaches):
  53131. (WebCore::HistoryItem::scheduleRelease):
  53132. (WebCore::HistoryItem::print):
  53133. * history/HistoryItem.h: Added.
  53134. * history/mac/HistoryItemMac.mm: Added.
  53135. (WebCore::HistoryItem::viewState): In the future we need a platform agnostic way to manage the view state
  53136. (WebCore::HistoryItem::setViewState):
  53137. (WebCore::HistoryItem::getTransientProperty): Transient properties are, for now, only a Mac concept
  53138. (WebCore::HistoryItem::setTransientProperty):
  53139. * history/HistoryItemTimer.cpp: Added
  53140. (WebCore::HistoryItemTimer::HistoryItemTimer): We need a specific class to be the history item timer because
  53141. WebCore::Timers only work when you have an instance of an object, but the caches pending release is a static concept
  53142. (WebCore::HistoryItemTimer::isActive):
  53143. (WebCore::HistoryItemTimer::schedule):
  53144. (WebCore::HistoryItemTimer::invalidate):
  53145. (WebCore::HistoryItemTimer::callReleasePageCache):
  53146. * history/HistoryItemTimer.h: Added.
  53147. * history/PageCache.cpp Added - This is a class that contains the fields that used to be in an NSDictionary in WebKit
  53148. (WebCore::PageCache::PageCache):
  53149. (WebCore::PageCache::setPageState):
  53150. (WebCore::PageCache::~PageCache):
  53151. (WebCore::PageCache::pageState):
  53152. (WebCore::PageCache::setDocumentLoader):
  53153. (WebCore::PageCache::documentLoader):
  53154. (WebCore::PageCache::setTimeStamp):
  53155. (WebCore::PageCache::setTimeStampToNow):
  53156. (WebCore::PageCache::timeStamp):
  53157. * history/PageCache.h: Added.
  53158. * history/mac/PageCacheMac.mm: Added.
  53159. (WebCore::PageCache::close):
  53160. (WebCore::PageCache::setDocumentView): In the future we need a platform agnostic way to manage the documentView
  53161. (WebCore::PageCache::documentView):
  53162. * loader/DocumentLoader.cpp:
  53163. (WebCore::DocumentLoader::loadFromPageCache):
  53164. (WebCore::DocumentLoader::setLoadingFromPageCache):
  53165. (WebCore::DocumentLoader::isLoadingFromPageCache):
  53166. (WebCore::DocumentLoader::originalURL):
  53167. (WebCore::DocumentLoader::requestURL):
  53168. (WebCore::DocumentLoader::responseURL):
  53169. (WebCore::DocumentLoader::responseMIMEType):
  53170. * loader/DocumentLoader.h:
  53171. * loader/FrameLoader.cpp: Responsibilities previously scattered in WebKit but concentrated in WebView and WebFrame
  53172. are now here, where they should be.
  53173. (WebCore::FrameLoader::clear):
  53174. (WebCore::FrameLoader::restoreDocumentState):
  53175. (WebCore::FrameLoader::goBackOrForward):
  53176. (WebCore::FrameLoader::provisionalLoadStarted):
  53177. (WebCore::FrameLoader::canCachePage):
  53178. (WebCore::FrameLoader::commitProvisionalLoad):
  53179. (WebCore::FrameLoader::transitionToCommitted):
  53180. (WebCore::FrameLoader::open):
  53181. (WebCore::FrameLoader::didFirstLayout):
  53182. (WebCore::FrameLoader::dispatchDidChangeLocationWithinPage):
  53183. (WebCore::FrameLoader::dispatchDidFinishLoadToClient):
  53184. (WebCore::FrameLoader::updateGlobalHistoryForStandardLoad): Marked for usage in future GlobalHistory (uses client for now)
  53185. (WebCore::FrameLoader::updateGlobalHistoryForReload): Ditto
  53186. (WebCore::FrameLoader::shouldGoToHistoryItem):
  53187. (WebCore::FrameLoader::addExtraFieldsToRequest):
  53188. (WebCore::FrameLoader::addHistoryItemForFragmentScroll):
  53189. (WebCore::FrameLoader::loadProvisionalItemFromPageCache):
  53190. (WebCore::FrameLoader::createPageCache):
  53191. (WebCore::FrameLoader::shouldTreatURLAsSameAsCurrent):
  53192. (WebCore::FrameLoader::createItem):
  53193. (WebCore::FrameLoader::addBackForwardItemClippedAtTarget):
  53194. (WebCore::FrameLoader::createItemTree):
  53195. (WebCore::FrameLoader::saveScrollPositionAndViewStateToItem):
  53196. (WebCore::FrameLoader::restoreScrollPositionAndViewState):
  53197. (WebCore::FrameLoader::purgePageCache):
  53198. (WebCore::FrameLoader::invalidateCurrentItemPageCache):
  53199. (WebCore::FrameLoader::saveDocumentState):
  53200. (WebCore::FrameLoader::loadItem):
  53201. (WebCore::FrameLoader::urlsMatchItem):
  53202. (WebCore::FrameLoader::goToItem):
  53203. (WebCore::FrameLoader::recursiveGoToItem):
  53204. (WebCore::FrameLoader::childFramesMatchItem):
  53205. (WebCore::FrameLoader::updateHistoryForStandardLoad):
  53206. (WebCore::FrameLoader::updateHistoryForClientRedirect):
  53207. (WebCore::FrameLoader::updateHistoryForBackForwardNavigation):
  53208. (WebCore::FrameLoader::updateHistoryForReload):
  53209. (WebCore::FrameLoader::updateHistoryForInternalLoad):
  53210. (WebCore::FrameLoader::updateHistoryForCommit):
  53211. (WebCore::FrameLoader::saveDocumentAndScrollState):
  53212. (WebCore::FrameLoader::currentHistoryItem):
  53213. (WebCore::FrameLoader::previousHistoryItem):
  53214. (WebCore::FrameLoader::provisionalHistoryItem):
  53215. (WebCore::FrameLoader::setCurrentHistoryItem):
  53216. (WebCore::FrameLoader::setPreviousHistoryItem):
  53217. (WebCore::FrameLoader::setProvisionalHistoryItem):
  53218. * loader/FrameLoader.h:
  53219. * loader/FrameLoaderClient.h:
  53220. * loader/mac/DocumentLoaderMac.mm:
  53221. (WebCore::DocumentLoader::DocumentLoader):
  53222. (WebCore::DocumentLoader::getResponseRefreshAndModifiedHeaders):
  53223. (WebCore::DocumentLoader::commitIfReady):
  53224. (WebCore::DocumentLoader::urlForHistory):
  53225. * loader/mac/FrameLoaderMac.mm:
  53226. (WebCore::FrameLoader::load):
  53227. (WebCore::FrameLoader::startLoading):
  53228. (WebCore::FrameLoader::receivedMainResourceError):
  53229. (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
  53230. (WebCore::FrameLoader::opened):
  53231. (WebCore::FrameLoader::dataURLBaseFromRequest):
  53232. (WebCore::FrameLoader::didChangeTitle):
  53233. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  53234. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  53235. * page/FrameTree.cpp:
  53236. (WebCore::FrameTree::removeChild):
  53237. * page/Page.cpp: Transfered a handful of concepts from WebView
  53238. (WebCore::Page::Page):
  53239. (WebCore::Page::~Page):
  53240. (WebCore::Page::backForwardList):
  53241. (WebCore::Page::goBack):
  53242. (WebCore::Page::goForward):
  53243. (WebCore::Page::goToItem):
  53244. * page/Page.h:
  53245. * page/PageState.h:
  53246. * page/mac/FrameMac.h:
  53247. * page/mac/FrameMac.mm:
  53248. * page/mac/WebCoreFrameBridge.h:
  53249. * page/mac/WebCoreFrameBridge.mm:
  53250. * platform/KURL.cpp:
  53251. (WebCore::KURL::print): Added debug only method for debugging convenience
  53252. * platform/KURL.h:
  53253. * platform/Logging.cpp:
  53254. (WebCore::): Added some logging channels
  53255. * platform/Logging.h:
  53256. * platform/PlatformString.h:
  53257. (WebCore::nsStringNilIfEmpty): Added for WebKit use
  53258. * platform/SystemTime.h: Added userIdleTime()
  53259. * platform/graphics/svg/SVGImage.cpp:
  53260. * platform/graphics/svg/SVGImageEmptyClients.h: Updated for new FrameLoaderClient methods
  53261. (WebCore::SVGEmptyFrameLoaderClient::setDocumentViewFromPageCache):
  53262. (WebCore::SVGEmptyFrameLoaderClient::updateGlobalHistoryForStandardLoad):
  53263. (WebCore::SVGEmptyFrameLoaderClient::updateGlobalHistoryForReload):
  53264. (WebCore::SVGEmptyFrameLoaderClient::shouldGoToHistoryItem):
  53265. (WebCore::SVGEmptyFrameLoaderClient::saveScrollPositionAndViewStateToItem):
  53266. (WebCore::SVGEmptyFrameLoaderClient::saveDocumentViewToPageCache):
  53267. (WebCore::SVGEmptyFrameLoaderClient::canCachePage):
  53268. (WebCore::SVGEmptyEditorClient::~SVGEmptyEditorClient):
  53269. * platform/mac/LoggingMac.mm:
  53270. (WebCore::InitializeLoggingChannelsIfNecessary):
  53271. * platform/mac/SystemTimeMac.cpp:
  53272. (WebCore::userIdleTime):
  53273. * platform/mac/WebCoreSystemInterface.h: Added wkSecondsSinceLastInput for use in userIdleTime
  53274. * platform/mac/WebCoreSystemInterface.mm:
  53275. * platform/network/FormData.cpp:
  53276. (WebCore::FormData::FormData):
  53277. (WebCore::FormData::copy):
  53278. * platform/network/FormData.h:
  53279. * platform/network/ResourceHandle.h:
  53280. * platform/network/mac/ResourceHandleMac.mm:
  53281. (WebCore::ResourceHandle::willLoadFromCache): For "are you sure you want to resubmit?" nag
  53282. * platform/qt/TemporaryLinkStubs.cpp:
  53283. (WebCore::userIdleTime):
  53284. * rendering/RenderPart.h:
  53285. 2007-01-02 Darin Adler <darin@apple.com>
  53286. Rubber stamped by Mitz.
  53287. Rename isRenderSVGContainer to isSVGContainer.
  53288. * platform/graphics/ImageBuffer.cpp:
  53289. (WebCore::ImageBuffer::renderSubtreeToImage):
  53290. * rendering/RenderObject.cpp:
  53291. (WebCore::RenderObject::containingBlock):
  53292. * rendering/RenderObject.h:
  53293. (WebCore::RenderObject::isSVGContainer):
  53294. * rendering/RenderSVGContainer.cpp:
  53295. (WebCore::RenderSVGContainer::viewportTransform):
  53296. * rendering/RenderSVGContainer.h:
  53297. (WebCore::RenderSVGContainer::isSVGContainer):
  53298. * rendering/RenderTreeAsText.cpp:
  53299. (WebCore::write):
  53300. 2007-01-03 Nikolas Zimmermann <zimmermann@kde.org>
  53301. Reviewed by Mitz.
  53302. Rename isKCanvasContainer to isRenderSVGContainer.
  53303. * platform/graphics/ImageBuffer.cpp:
  53304. (WebCore::ImageBuffer::renderSubtreeToImage):
  53305. * rendering/RenderObject.cpp:
  53306. (WebCore::RenderObject::containingBlock):
  53307. * rendering/RenderObject.h:
  53308. (WebCore::RenderObject::isRenderSVGContainer):
  53309. * rendering/RenderSVGContainer.cpp:
  53310. (WebCore::RenderSVGContainer::viewportTransform):
  53311. * rendering/RenderSVGContainer.h:
  53312. (WebCore::RenderSVGContainer::isRenderSVGContainer):
  53313. * rendering/RenderTreeAsText.cpp:
  53314. (WebCore::write):
  53315. 2007-01-02 Beth Dakin <bdakin@apple.com>
  53316. Reviewed by Darin.
  53317. Fix assertion failure with WebCore context menus by getting "Copy
  53318. Image" item added in.
  53319. * platform/ContextMenu.cpp:
  53320. (WebCore::ContextMenu::populate): Check if the image url is a local
  53321. file or if we have an image in the cache.
  53322. 2007-01-02 Sam Weinig <sam@webkit.org>
  53323. Reviewed by Anders.
  53324. Patch for http://bugs.webkit.org/show_bug.cgi?id=12072
  53325. select with align attribute should not affect contained text
  53326. Don't map align for select elements.
  53327. Test: fast/forms/select-align.html
  53328. * html/HTMLSelectElement.cpp:
  53329. (WebCore::HTMLSelectElement::parseMappedAttribute):
  53330. 2007-01-02 Sam Weinig <sam@webkit.org>
  53331. Reviewed by Mitz.
  53332. Patch for http://bugs.webkit.org/show_bug.cgi?id=12071
  53333. button with align attribute should not affect contained text
  53334. Don't map align for button elements.
  53335. Test: fast/forms/button-align.html
  53336. * html/HTMLButtonElement.cpp:
  53337. (WebCore::HTMLButtonElement::parseMappedAttribute):
  53338. 2007-01-02 Sam Weinig <sam@webkit.org>
  53339. Reviewed by Mitz and Anders.
  53340. Patch for http://bugs.webkit.org/show_bug.cgi?id=7075
  53341. textarea with align=right should not cause contained text to
  53342. be right-justified
  53343. Don't map align for textarea elements.
  53344. Test: fast/forms/textarea-align.html
  53345. * html/HTMLTextAreaElement.cpp:
  53346. (WebCore::HTMLTextAreaElement::parseMappedAttribute):
  53347. 2007-01-02 Eric Seidel <eric@webkit.org>
  53348. Reviewed by mitz.
  53349. Implement SVGSVGElement::deselectAll()
  53350. * ksvg2/svg/SVGAnimationElement.h:
  53351. (WebCore::SVGAnimationElement::updateLastValueWithCurrent): add comment
  53352. * ksvg2/svg/SVGSVGElement.cpp:
  53353. (WebCore::SVGSVGElement::deselectAll): implement
  53354. (WebCore::SVGSVGElement::setCurrentTime): add comment about bug
  53355. * ksvg2/svg/SVGSVGElement.idl: remove unnecessary comment
  53356. 2007-01-02 Sam Weinig <sam@webkit.org>
  53357. Reviewed by Darin.
  53358. Patch for http://bugs.webkit.org/show_bug.cgi?id=3360
  53359. align="right" on a text input aligns the input field to the right
  53360. Don't map align if input type is not 'image'.
  53361. Test: fast/forms/input-align-image.html
  53362. Test: fast/forms/input-align.html
  53363. * WebCore.xcodeproj/project.pbxproj:
  53364. * html/HTMLInputElement.cpp:
  53365. (WebCore::HTMLInputElement::setInputType):
  53366. (WebCore::HTMLInputElement::mapToEntry):
  53367. (WebCore::HTMLInputElement::parseMappedAttribute):
  53368. 2007-01-02 Nikolas Zimmermann <zimmermann@kde.org>
  53369. Reviewed by Eric.
  53370. Fixes: http://bugs.webkit.org/show_bug.cgi?id=12013
  53371. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11980
  53372. Partly fixes: http://bugs.webkit.org/show_bug.cgi?id=6000 (pattern/gradient recursion works now)
  53373. Fixed testcases:
  53374. coords-units-01-b.svg (<pattern> in objectBoundingBoxMode were broken.)
  53375. pattern-in-defs.svg (clip pattern size against target size, to avoid excessive mallocs)
  53376. js-update-pattern.svg (live updating really works now!)
  53377. js-late-gradient-and-object-creation.svg (objectBoundingBoxMode gradients-on-text work now)
  53378. js-late-gradient-creation.svg (same)
  53379. Added testcases:
  53380. js-late-pattern-and-object-creation.svg (objectBoundingBoxMode patterns-on-text work now)
  53381. js-late-pattern-creation.svg (same)
  53382. gradient-cycle-detection.svg (tests that cyclic gradients are ignored)
  53383. gradient-deep-referencing.svg
  53384. pattern-cycle-detection.svg (tests that cyclic patterns are ignored)
  53385. pattern-deep-referencing.svg
  53386. Rewrite gradient & pattern code, fixing all known bugs & regressions.
  53387. -> Remove SVGResourceListener completly (the ugly resourceNotification() hack is gone now)
  53388. -> Make patterns operate in all possible combinations of patternUnits / patternContentunits
  53389. The SVGPaintServerPattern now asks the SVGPatternElement to build the pattern tile, passing
  53390. the target object's bbox rectangle -> objectBoundingBox calculations can be done, so SVGPaintServerPattern
  53391. itself doesn't need to know anything about "bounding box mode". Same could be done for gradients.
  53392. -> SVGLength::valueAsPercentage() returns again fractional values, saves some "/ 100.0" statements.
  53393. -> Deep references (gradientA -> gradientB -> gradientC...) work now. Previously only one reference worked.
  53394. Adding GradientAttributes.h / PatternAttributes.h helper structures for the property collection.
  53395. Cycle detection is implemented and won't kill us anymore :-)
  53396. JS updates on gradients/patterns only cause one repaint of the client's now. Gradient drawing
  53397. does not cause the target object to be redrawn immediately afterwards anymore.
  53398. * WebCore.xcodeproj/project.pbxproj:
  53399. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  53400. (WebCore::KSVGPainterFactory::fillPaintServer):
  53401. (WebCore::KSVGPainterFactory::strokePaintServer):
  53402. * ksvg2/misc/KCanvasRenderingStyle.h:
  53403. * ksvg2/misc/SVGDocumentExtensions.cpp:
  53404. (WebCore::SVGDocumentExtensions::addPendingResource):
  53405. (WebCore::SVGDocumentExtensions::isPendingResource):
  53406. (WebCore::SVGDocumentExtensions::removePendingResource):
  53407. * ksvg2/misc/SVGDocumentExtensions.h:
  53408. * ksvg2/svg/GradientAttributes.h: Added.
  53409. (WebCore::GradientAttributes::GradientAttributes):
  53410. (WebCore::GradientAttributes::spreadMethod):
  53411. (WebCore::GradientAttributes::boundingBoxMode):
  53412. (WebCore::GradientAttributes::gradientTransform):
  53413. (WebCore::GradientAttributes::stops):
  53414. (WebCore::GradientAttributes::setSpreadMethod):
  53415. (WebCore::GradientAttributes::setBoundingBoxMode):
  53416. (WebCore::GradientAttributes::setGradientTransform):
  53417. (WebCore::GradientAttributes::setStops):
  53418. (WebCore::GradientAttributes::hasSpreadMethod):
  53419. (WebCore::GradientAttributes::hasBoundingBoxMode):
  53420. (WebCore::GradientAttributes::hasGradientTransform):
  53421. (WebCore::GradientAttributes::hasStops):
  53422. * ksvg2/svg/LinearGradientAttributes.h: Added.
  53423. (WebCore::LinearGradientAttributes::LinearGradientAttributes):
  53424. (WebCore::LinearGradientAttributes::x1):
  53425. (WebCore::LinearGradientAttributes::y1):
  53426. (WebCore::LinearGradientAttributes::x2):
  53427. (WebCore::LinearGradientAttributes::y2):
  53428. (WebCore::LinearGradientAttributes::setX1):
  53429. (WebCore::LinearGradientAttributes::setY1):
  53430. (WebCore::LinearGradientAttributes::setX2):
  53431. (WebCore::LinearGradientAttributes::setY2):
  53432. (WebCore::LinearGradientAttributes::hasX1):
  53433. (WebCore::LinearGradientAttributes::hasY1):
  53434. (WebCore::LinearGradientAttributes::hasX2):
  53435. (WebCore::LinearGradientAttributes::hasY2):
  53436. * ksvg2/svg/PatternAttributes.h: Added.
  53437. (WebCore::PatternAttributes::PatternAttributes):
  53438. (WebCore::PatternAttributes::x):
  53439. (WebCore::PatternAttributes::y):
  53440. (WebCore::PatternAttributes::width):
  53441. (WebCore::PatternAttributes::height):
  53442. (WebCore::PatternAttributes::boundingBoxMode):
  53443. (WebCore::PatternAttributes::boundingBoxModeContent):
  53444. (WebCore::PatternAttributes::patternTransform):
  53445. (WebCore::PatternAttributes::patternContentElement):
  53446. (WebCore::PatternAttributes::setX):
  53447. (WebCore::PatternAttributes::setY):
  53448. (WebCore::PatternAttributes::setWidth):
  53449. (WebCore::PatternAttributes::setHeight):
  53450. (WebCore::PatternAttributes::setBoundingBoxMode):
  53451. (WebCore::PatternAttributes::setBoundingBoxModeContent):
  53452. (WebCore::PatternAttributes::setPatternTransform):
  53453. (WebCore::PatternAttributes::setPatternContentElement):
  53454. (WebCore::PatternAttributes::hasX):
  53455. (WebCore::PatternAttributes::hasY):
  53456. (WebCore::PatternAttributes::hasWidth):
  53457. (WebCore::PatternAttributes::hasHeight):
  53458. (WebCore::PatternAttributes::hasBoundingBoxMode):
  53459. (WebCore::PatternAttributes::hasBoundingBoxModeContent):
  53460. (WebCore::PatternAttributes::hasPatternTransform):
  53461. (WebCore::PatternAttributes::hasPatternContentElement):
  53462. * ksvg2/svg/RadialGradientAttributes.h: Added.
  53463. (WebCore::RadialGradientAttributes::RadialGradientAttributes):
  53464. (WebCore::RadialGradientAttributes::cx):
  53465. (WebCore::RadialGradientAttributes::cy):
  53466. (WebCore::RadialGradientAttributes::r):
  53467. (WebCore::RadialGradientAttributes::fx):
  53468. (WebCore::RadialGradientAttributes::fy):
  53469. (WebCore::RadialGradientAttributes::setCx):
  53470. (WebCore::RadialGradientAttributes::setCy):
  53471. (WebCore::RadialGradientAttributes::setR):
  53472. (WebCore::RadialGradientAttributes::setFx):
  53473. (WebCore::RadialGradientAttributes::setFy):
  53474. (WebCore::RadialGradientAttributes::hasCx):
  53475. (WebCore::RadialGradientAttributes::hasCy):
  53476. (WebCore::RadialGradientAttributes::hasR):
  53477. (WebCore::RadialGradientAttributes::hasFx):
  53478. (WebCore::RadialGradientAttributes::hasFy):
  53479. * ksvg2/svg/SVGGradientElement.cpp:
  53480. (WebCore::SVGGradientElement::notifyAttributeChange):
  53481. (WebCore::SVGGradientElement::canvasResource):
  53482. (WebCore::SVGGradientElement::buildStops):
  53483. (WebCore::SVGGradientElement::insertedIntoDocument):
  53484. * ksvg2/svg/SVGGradientElement.h:
  53485. * ksvg2/svg/SVGLength.cpp:
  53486. (WebCore::SVGLength::valueAsPercentage):
  53487. * ksvg2/svg/SVGLinearGradientElement.cpp:
  53488. (WebCore::SVGLinearGradientElement::buildGradient):
  53489. (WebCore::SVGLinearGradientElement::collectGradientProperties):
  53490. * ksvg2/svg/SVGLinearGradientElement.h:
  53491. * ksvg2/svg/SVGLocatable.cpp:
  53492. (WebCore::SVGLocatable::getScreenCTM):
  53493. * ksvg2/svg/SVGPatternElement.cpp:
  53494. (WebCore::SVGPatternElement::SVGPatternElement):
  53495. (WebCore::SVGPatternElement::buildPattern):
  53496. (WebCore::SVGPatternElement::notifyAttributeChange):
  53497. (WebCore::SVGPatternElement::canvasResource):
  53498. (WebCore::SVGPatternElement::insertedIntoDocument):
  53499. (WebCore::SVGPatternElement::collectPatternProperties):
  53500. * ksvg2/svg/SVGPatternElement.h:
  53501. * ksvg2/svg/SVGRadialGradientElement.cpp:
  53502. (WebCore::SVGRadialGradientElement::buildGradient):
  53503. (WebCore::SVGRadialGradientElement::collectGradientProperties):
  53504. * ksvg2/svg/SVGRadialGradientElement.h:
  53505. * platform/graphics/svg/SVGPaintServerGradient.cpp:
  53506. (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
  53507. (WebCore::SVGPaintServerGradient::externalRepresentation):
  53508. * platform/graphics/svg/SVGPaintServerGradient.h:
  53509. (WebCore::):
  53510. * platform/graphics/svg/SVGPaintServerLinearGradient.cpp:
  53511. (WebCore::SVGPaintServerLinearGradient::SVGPaintServerLinearGradient):
  53512. * platform/graphics/svg/SVGPaintServerLinearGradient.h:
  53513. * platform/graphics/svg/SVGPaintServerPattern.cpp:
  53514. (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
  53515. (WebCore::SVGPaintServerPattern::patternBoundaries):
  53516. (WebCore::SVGPaintServerPattern::setPatternBoundaries):
  53517. (WebCore::SVGPaintServerPattern::setTile):
  53518. (WebCore::SVGPaintServerPattern::externalRepresentation):
  53519. * platform/graphics/svg/SVGPaintServerPattern.h:
  53520. * platform/graphics/svg/SVGPaintServerRadialGradient.cpp:
  53521. (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient):
  53522. * platform/graphics/svg/SVGPaintServerRadialGradient.h:
  53523. * platform/graphics/svg/SVGResource.cpp:
  53524. (WebCore::SVGResource::invalidate):
  53525. (WebCore::SVGResource::repaintClients):
  53526. * platform/graphics/svg/SVGResource.h:
  53527. * platform/graphics/svg/SVGResourceListener.h:
  53528. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  53529. (WebCore::cgGradientCallback):
  53530. (WebCore::CGShadingRefForRadialGradient):
  53531. (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
  53532. (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
  53533. (WebCore::SVGPaintServerGradient::teardown):
  53534. (WebCore::SVGPaintServerGradient::renderPath):
  53535. (WebCore::SVGPaintServerGradient::handleBoundingBoxModeAndGradientTransformation):
  53536. (WebCore::SVGPaintServerGradient::setup):
  53537. (WebCore::SVGPaintServerGradient::invalidate):
  53538. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  53539. (WebCore::SVGPaintServerPattern::setup):
  53540. (WebCore::SVGPaintServerPattern::teardown):
  53541. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
  53542. (WebCore::SVGPaintServerLinearGradient::setup):
  53543. * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
  53544. (WebCore::SVGPaintServerPattern::setup):
  53545. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
  53546. (WebCore::SVGPaintServerRadialGradient::setup):
  53547. 2007-01-02 Zack Rusin <zack@kde.org>
  53548. Compilation fix. File names are case-sensitive.
  53549. * ksvg2/svg/SVGPathSegList.cpp:
  53550. 2007-01-02 Zack Rusin <zack@kde.org>
  53551. Compilation fixes for the Qt port.
  53552. * WebCore.pro:
  53553. * platform/qt/FrameQt.cpp:
  53554. (WebCore::FrameQt::bindingRootObject):
  53555. (WebCore::FrameQt::addPluginRootObject):
  53556. 2007-01-02 Eric Seidel <eric@webkit.org>
  53557. Reviewed by rwlbuis.
  53558. Refactor more animation code for better sharing between SVGAnimate*Element classes.
  53559. - replace handleEndCondition with resetValues() and updateLastValueWithCurrent()
  53560. - move initialTransform() function down into SVGTimer (eventually to AnimationCompositor)
  53561. Add non-functional (only parses) SVGAnimateMotionElement
  53562. Improve precision of getPointAtLength calculations and add support for "getNormalAtLength" functionality (needed for rotate='auto' support in animateMotion)
  53563. Move add getSegmentAtLength functionality to SVGPathSegList, move toPathData into SVGPathSegList as well.
  53564. Add SVGAnimationElement::hasValidTarget() for future better/simpler ASSERT checking
  53565. change transformMatrix() to currentTransform() to match AffineTransform class name
  53566. * WebCore.xcodeproj/project.pbxproj:
  53567. * ksvg2/misc/SVGTimer.cpp:
  53568. (WebCore::SVGTimer::animationsByElement):
  53569. (WebCore::baseValueTransformList):
  53570. (WebCore::SVGTimer::applyAnimations):
  53571. * ksvg2/svg/SVGAnimateColorElement.cpp:
  53572. (WebCore::SVGAnimateColorElement::updateLastValueWithCurrent):
  53573. * ksvg2/svg/SVGAnimateColorElement.h:
  53574. * ksvg2/svg/SVGAnimateMotionElement.cpp: Added.
  53575. (WebCore::SVGAnimateMotionElement::SVGAnimateMotionElement):
  53576. (WebCore::SVGAnimateMotionElement::~SVGAnimateMotionElement):
  53577. (WebCore::SVGAnimateMotionElement::hasValidTarget): added.
  53578. (WebCore::SVGAnimateMotionElement::parseMappedAttribute):
  53579. (WebCore::SVGAnimateMotionElement::animationPath): fetch path from <mpath> or d attribute
  53580. (WebCore::SVGAnimateMotionElement::updateCurrentValue):
  53581. (WebCore::SVGAnimateMotionElement::handleStartCondition):
  53582. (WebCore::SVGAnimateMotionElement::applyAnimationToValue):
  53583. * ksvg2/svg/SVGAnimateMotionElement.h: Added.
  53584. (WebCore::SVGAnimateMotionElement::contextElement):
  53585. (WebCore::SVGAnimateMotionElement::):
  53586. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  53587. (WebCore::SVGAnimateTransformElement::hasValidTarget): added.
  53588. (WebCore::SVGAnimateTransformElement::storeInitialValue):
  53589. (WebCore::SVGAnimateTransformElement::updateCurrentValue):
  53590. (WebCore::SVGAnimateTransformElement::updateLastValueWithCurrent):
  53591. (WebCore::SVGAnimateTransformElement::applyAnimationToValue):
  53592. (WebCore::SVGAnimateTransformElement::currentTransform):
  53593. * ksvg2/svg/SVGAnimateTransformElement.h:
  53594. * ksvg2/svg/SVGAnimationElement.cpp:
  53595. (WebCore::SVGAnimationElement::hasValidTarget): added.
  53596. (WebCore::SVGAnimationElement::parseMappedAttribute):
  53597. (WebCore::SVGAnimationElement::isAdditive):
  53598. (WebCore::SVGAnimationElement::isAccumulated):
  53599. (WebCore::SVGAnimationElement::handleTimerEvent):
  53600. * ksvg2/svg/SVGAnimationElement.h:
  53601. (WebCore::SVGAnimationElement::updateLastValueWithCurrent):
  53602. (WebCore::SVGAnimationElement::resetValues):
  53603. * ksvg2/svg/SVGPathElement.cpp:
  53604. (WebCore::SVGPathElement::getPointAtLength):
  53605. (WebCore::SVGPathElement::getPathSegAtLength):
  53606. (WebCore::SVGPathElement::parseMappedAttribute):
  53607. (WebCore::SVGPathElement::toPathData):
  53608. * ksvg2/svg/SVGPathSegList.cpp:
  53609. (WebCore::SVGPathSegList::getPathSegAtLength): added.
  53610. (WebCore::SVGPathSegList::toPathData): added.
  53611. * ksvg2/svg/SVGPathSegList.h:
  53612. * ksvg2/svg/svgtags.in: add animateMotion
  53613. * platform/graphics/Path.cpp:
  53614. (WebCore::pathLengthApplierFunction): add support for TraversalNormalAngleAtLength
  53615. * platform/graphics/PathTraversalState.cpp:
  53616. (WebCore::curveLength): support higher precision pointAtLength calculations, and add normalAtLength support
  53617. (WebCore::PathTraversalState::quadraticBezierTo):
  53618. (WebCore::PathTraversalState::cubicBezierTo):
  53619. * platform/graphics/PathTraversalState.h:
  53620. (WebCore::PathTraversalState::): add TraversalNormalAngleAtLength mode
  53621. 2007-01-01 Mitz Pettel <mitz@webkit.org>
  53622. Reviewed by Darin.
  53623. - WebCore changes for http://bugs.webkit.org/show_bug.cgi?id=11849
  53624. REGRESSION (r18182): Google Calendar is broken (a regular expression containing a null character is not parsed correctly)
  53625. * platform/RegularExpression.cpp:
  53626. (WebCore::RegularExpression::Private::compile): Changed to not null-terminate
  53627. the pattern string and instead pass its length to pcre_compile.
  53628. 2007-01-01 Mitz Pettel <mitz@webkit.org>
  53629. Reviewed by Darin.
  53630. - fix http://bugs.webkit.org/show_bug.cgi?id=11359
  53631. Incomplete repaint of table cell's collapsed border when changing only the cell
  53632. Test: fast/repaint/table-cell-collapsed-border.html
  53633. * rendering/RenderTable.h:
  53634. Added needsSectionRecalc() accessor.
  53635. * rendering/RenderTableCell.cpp:
  53636. (WebCore::RenderTableCell::getAbsoluteRepaintRect): Overloaded to add the
  53637. outer half of any collapsed borders. This function checks the cell's borders'
  53638. widths but also the widths of the adjoining cells' borders, since they can
  53639. contribute to the length of this cell's borders perpendicular to them, making
  53640. such a border overflow the cell in both dimensions.
  53641. (WebCore::RenderTableCell::borderLeft): Split the collapsing borders case off to
  53642. borderHalfLeft().
  53643. (WebCore::RenderTableCell::borderRight): Ditto.
  53644. (WebCore::RenderTableCell::borderTop): Ditto.
  53645. (WebCore::RenderTableCell::borderBottom): Ditto.
  53646. (WebCore::RenderTableCell::borderHalfLeft): Added. Takes an 'outer' boolean
  53647. parameter. When true, this function returns the width of the part of the border
  53648. that is outside the cell (different from the inner width when the total width is odd).
  53649. (WebCore::RenderTableCell::borderHalfRight): Ditto.
  53650. (WebCore::RenderTableCell::borderHalfTop): Ditto.
  53651. (WebCore::RenderTableCell::borderHalfBottom): Ditto.
  53652. * rendering/RenderTableCell.h:
  53653. 2007-01-01 David Kilzer <ddkilzer@webkit.org>
  53654. WebCore.vcproj change reviewed by Darin. Additional build files updated by ddkilzer.
  53655. * CMakeLists.txt: Removed RenderLineEdit.cpp.
  53656. * WebCore.vcproj/WebCore/WebCore.vcproj: Removed RenderLineEdit.cpp and RenderLineEdit.h.
  53657. * WebCoreSources.bkl: Removed RenderLineEdit.cpp.
  53658. 2007-01-01 Mitz Pettel <mitz@webkit.org>
  53659. Reviewed by Mark Rowe.
  53660. - fix http://bugs.webkit.org/show_bug.cgi?id=12042
  53661. Assertion failure in WebCore::RenderObject::drawBorder
  53662. Test: fast/borders/outline-offset-min-assert.html
  53663. * rendering/RenderObject.cpp:
  53664. (WebCore::RenderObject::paintOutline): Bail out if the width or height is
  53665. smaller than twice the outline inset.
  53666. 2007-01-01 Mark Rowe <bdash@webkit.org>
  53667. Reviewed by Eric.
  53668. http://bugs.webkit.org/show_bug.cgi?id=12061
  53669. Bug 12061: Crash in WebCore::Shared<WebCore::StringImpl>::deref
  53670. * rendering/RenderStyle.cpp:
  53671. (WebCore::ContentData::clearContent): Reset _contentType to CONTENT_NONE to ensure repeated calls to clearContent
  53672. do not result in derefing deallocated members.
  53673. 2007-01-01 Eric Seidel <eric@webkit.org>
  53674. Reviewed by andersca.
  53675. Begin pushing code down into SVGAnimateElement
  53676. * ksvg2/svg/SVGAnimateColorElement.cpp:
  53677. (WebCore::SVGAnimateColorElement::handleStartCondition):
  53678. * ksvg2/svg/SVGAnimateColorElement.h:
  53679. * ksvg2/svg/SVGAnimateElement.h:
  53680. (WebCore::SVGAnimateElement::updateCurrentValue):
  53681. (WebCore::SVGAnimateElement::handleStartCondition):
  53682. (WebCore::SVGAnimateElement::handleEndCondition):
  53683. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  53684. (WebCore::SVGAnimateTransformElement::handleStartCondition):
  53685. * ksvg2/svg/SVGAnimateTransformElement.h:
  53686. * ksvg2/svg/SVGAnimationElement.cpp:
  53687. (WebCore::SVGAnimationElement::handleTimerEvent):
  53688. * ksvg2/svg/SVGAnimationElement.h:
  53689. * ksvg2/svg/SVGSetElement.cpp:
  53690. (WebCore::SVGSetElement::updateCurrentValue):
  53691. (WebCore::SVGSetElement::handleStartCondition):
  53692. (WebCore::SVGSetElement::handleEndCondition):
  53693. * ksvg2/svg/SVGSetElement.h:
  53694. 2007-01-01 Eric Seidel <eric@webkit.org>
  53695. Reviewed by andersca.
  53696. Add static function SVGColor::colorFromRGBColorString to allow parsing Colors from SVG color strings w/o creating an SVGColor object.
  53697. * ksvg2/svg/SVGAnimateColorElement.cpp:
  53698. (WebCore::SVGAnimateColorElement::storeInitialValue): use colorFromRGBColorString
  53699. (WebCore::SVGAnimateColorElement::startIfNecessary): use colorFromRGBColorString
  53700. * ksvg2/svg/SVGColor.cpp:
  53701. (WebCore::SVGColor::setRGBColor): use colorFromRGBColorString
  53702. (WebCore::parseNumberOrPercent): new color parsing helper
  53703. (WebCore::SVGColor::colorFromRGBColorString): cleaned up version of setRGBColor parsing logic
  53704. * ksvg2/svg/SVGColor.h:
  53705. 2007-01-01 Eric Seidel <eric@webkit.org>
  53706. Reviewed by andersca.
  53707. Split handleTimerEvent logic into separate functions in preparation for moving down into SVGAnimationElement
  53708. * ksvg2/svg/SVGAnimateColorElement.cpp:
  53709. (WebCore::SVGAnimateColorElement::storeInitialValue):
  53710. (WebCore::SVGAnimateColorElement::resetValues):
  53711. (WebCore::SVGAnimateColorElement::updateCurrentValue):
  53712. (WebCore::SVGAnimateColorElement::startIfNecessary):
  53713. (WebCore::SVGAnimateColorElement::handleEndCondition):
  53714. (WebCore::SVGAnimateColorElement::handleTimerEvent):
  53715. * ksvg2/svg/SVGAnimateColorElement.h:
  53716. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  53717. (WebCore::SVGAnimateTransformElement::storeInitialValue):
  53718. (WebCore::SVGAnimateTransformElement::resetValues):
  53719. (WebCore::SVGAnimateTransformElement::updateCurrentValue):
  53720. (WebCore::SVGAnimateTransformElement::startIfNecessary):
  53721. (WebCore::SVGAnimateTransformElement::handleEndCondition):
  53722. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  53723. * ksvg2/svg/SVGAnimateTransformElement.h:
  53724. 2007-01-01 Rob Buis <buis@kde.org>
  53725. Reviewed by Eric.
  53726. Simple cleanups, removing unused color table, copyright and include guard fixes.
  53727. * ksvg2/svg/SVGColor.cpp:
  53728. * ksvg2/svg/SVGColor.h:
  53729. 2007-01-01 Eric Seidel <eric@webkit.org>
  53730. Reviewed by andersca.
  53731. More animation code cleanup.
  53732. * ksvg2/svg/SVGAnimateColorElement.cpp:
  53733. (WebCore::SVGAnimateColorElement::handleTimerEvent):
  53734. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  53735. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  53736. * ksvg2/svg/SVGAnimationElement.cpp:
  53737. (WebCore::SVGAnimationElement::SVGAnimationElement):
  53738. (WebCore::SVGAnimationElement::connectedToTimer):
  53739. (WebCore::SVGAnimationElement::connectTimer):
  53740. (WebCore::SVGAnimationElement::disconnectTimer):
  53741. (WebCore::SVGAnimationElement::updateForElapsedSeconds):
  53742. * ksvg2/svg/SVGAnimationElement.h:
  53743. * ksvg2/svg/SVGSetElement.cpp:
  53744. (WebCore::SVGSetElement::handleTimerEvent):
  53745. * ksvg2/svg/SVGSetElement.h:
  53746. 2007-01-01 Eric Seidel <eric@webkit.org>
  53747. Reviewed by mitz.
  53748. More clean-up to animation code.
  53749. * ksvg2/svg/SVGAnimateColorElement.cpp:
  53750. (WebCore::SVGAnimateColorElement::handleTimerEvent):
  53751. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  53752. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  53753. (WebCore::SVGAnimateTransformElement::parseTransformValue):
  53754. (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
  53755. 2007-01-01 Eric Seidel <eric@webkit.org>
  53756. Reviewed by olliej.
  53757. Begin pushing more animation logic out of SVGTimer and into the SVGAnimate* classes.
  53758. * ksvg2/misc/SVGTimer.cpp:
  53759. (WebCore::SVGTimer::animationsByElement): add comment
  53760. (WebCore::SVGTimer::notifyAll): push logic into SVGAnimte* classes
  53761. * ksvg2/svg/SVGAnimateColorElement.cpp:
  53762. (WebCore::SVGAnimateColorElement::applyAnimationToValue): added.
  53763. * ksvg2/svg/SVGAnimateColorElement.h:
  53764. * ksvg2/svg/SVGAnimateElement.cpp:
  53765. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  53766. (WebCore::SVGAnimateTransformElement::applyAnimationToValue): added.
  53767. * ksvg2/svg/SVGAnimateTransformElement.h:
  53768. * ksvg2/svg/SVGAnimationElement.cpp:
  53769. (WebCore::calculateTimePercentage): logic moved from SVGTimer
  53770. (WebCore::SVGAnimationElement::updateForElapsedSeconds): logic moved from SVGTimer
  53771. * ksvg2/svg/SVGAnimationElement.h:
  53772. * ksvg2/svg/SVGTransformList.cpp:
  53773. (SVGTransformList::concatenate): fixed spacing
  53774. 2007-01-01 Eric Seidel <eric@webkit.org>
  53775. Reviewed by olliej.
  53776. Split out animationsByElement() logic in preparation for adding AnimationCompositor class
  53777. Add addColorsAndClamp helper (since adding and clamping is the common case)
  53778. * ksvg2/misc/SVGTimer.cpp:
  53779. (WebCore::SVGTimer::animationsByElement): split out from notifyAll
  53780. (WebCore::SVGTimer::notifyAll):
  53781. * ksvg2/misc/SVGTimer.h:
  53782. * ksvg2/svg/SVGAnimateColorElement.cpp:
  53783. (WebCore::SVGAnimateColorElement::addColorsAndClamp): added.
  53784. * ksvg2/svg/SVGAnimateColorElement.h:
  53785. 2006-12-31 Eric Seidel <eric@webkit.org>
  53786. Reviewed by olliej.
  53787. Split KSVGTimeScheduler into SVGTimer and TimeScheduler.
  53788. (Basic clean-up before re-working animation system)
  53789. * WebCore.xcodeproj/project.pbxproj:
  53790. * ksvg2/misc/KSVGTimeScheduler.cpp: Removed.
  53791. * ksvg2/misc/KSVGTimeScheduler.h: Removed.
  53792. * ksvg2/misc/SVGTimer.cpp: Added.
  53793. (WebCore::SVGTimer::SVGTimer):
  53794. (WebCore::SVGTimer::calculateTimePercentage):
  53795. (WebCore::SVGTimer::notifyAll):
  53796. * ksvg2/misc/SVGTimer.h: Added.
  53797. * ksvg2/misc/TimeScheduler.cpp: Added.
  53798. (WebCore::TimeScheduler::TimeScheduler):
  53799. 2006-12-31 Eric Seidel <eric@webkit.org>
  53800. Reviewed by olliej.
  53801. Re-enable animateTransform (now that SVGList is fixed)
  53802. (Things are only "less broken" not totally fixed yet.)
  53803. * ksvg2/misc/KSVGTimeScheduler.cpp:
  53804. (WebCore::SVGTimer::notifyAll):
  53805. 2006-12-31 Mitz Pettel <mitz@webkit.org>
  53806. Reviewed by Hyatt.
  53807. - http://bugs.webkit.org/show_bug.cgi?id=12049
  53808. RenderBlock::calcMinMaxWidth() should not examine children of fixed-width blocks
  53809. No test possible (no change to functionality).
  53810. * rendering/RenderBlock.cpp:
  53811. (WebCore::RenderBlock::calcMinMaxWidth): Call calc{Inline,Block}MinMaxWidth()
  53812. only if their result is needed.
  53813. == Rolled over to ChangeLog-2006-12-31 ==