ChangeLog-2007-10-14 1.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507
  1. === Start merge of feature-branch 2007-10-12 ===
  2. 2007-10-03 Andrew Wellington <proton@wiretapped.net>
  3. Reviewed by Mark Rowe.
  4. Mac build fix for issue introduced in r26027
  5. * WebCoreSupport/WebSystemInterface.m:
  6. (InitWebCoreSystemInterface):
  7. 2007-10-01 Eric Seidel <eric@webkit.org>
  8. Reviewed by Oliver Hunt.
  9. SVG Subresources will not be saved when creating WebArchives
  10. http://bugs.webkit.org/show_bug.cgi?id=15280
  11. Implement _subresourceURLs methods for more SVGElement types
  12. more such methods will be needed as we add support for other
  13. external references (such as use, mpath, tref, etc.)
  14. * DOM/WebDOMOperations.mm:
  15. (-[DOMSVGScriptElement _subresourceURLs]): added.
  16. (-[DOMSVGCursorElement _subresourceURLs]): added.
  17. (-[DOMSVGFEImageElement _subresourceURLs]): added.
  18. 2007-10-01 Eric Seidel <eric@webkit.org>
  19. Reviewed by Oliver Hunt.
  20. WebArchives do not embed stylesheets referenced by xml-stylesheeet
  21. http://bugs.webkit.org/show_bug.cgi?id=15320
  22. * DOM/WebDOMOperations.mm:
  23. (-[DOMProcessingInstruction _stylesheetURL]): needed to access [[self sheet] href]
  24. (-[DOMProcessingInstruction _subresourceURLs]): call and return _stylesheetURL
  25. 2007-10-01 Eric Seidel <eric@webkit.org>
  26. Reviewed by Oliver Hunt.
  27. * DOM/WebDOMOperations.mm: added DOMSVGElementImage _subresources implementation
  28. (-[DOMNode _URLsFromSelectors:]): now handles DOMSVGAnimatedString return values
  29. (-[DOMSVGImageElement _subresourceURLs]): added.
  30. * MigrateHeaders.make: copies DOMSVG* headers into WebKit/PrivateHeaders
  31. 2007-10-01 Oliver Hunt <oliver@apple.com>
  32. Reviewed by Mark.
  33. Enable Experimental SVG features by default when building from Xcode
  34. * Configurations/WebKit.xcconfig:
  35. === End merge of feature-branch 2007-10-12 ===
  36. 2007-10-11 Mark Rowe <mrowe@apple.com>
  37. Reviewed by Tim Hatcher.
  38. Fix for <rdar://problem/5488678>. Disable debugging symbols in production builds for 10.4
  39. PowerPC to prevent a huge STABS section from being generated.
  40. * Configurations/Base.xcconfig:
  41. 2007-10-10 Alice Liu <alice.liu@apple.com>
  42. Reviewed by Geoff Garen.
  43. Fixed <rdar://5464402> Crash when running fast/frames/onload-remove-iframe-crash.html in DRT
  44. createFrame() now returns a RefPtr instead of a raw Frame pointer.
  45. Making this change improves the way we handle frames on Windows WebKit.
  46. * WebCoreSupport/WebFrameLoaderClient.h:
  47. * WebCoreSupport/WebFrameLoaderClient.mm:
  48. (WebFrameLoaderClient::createFrame):
  49. 2007-10-04 Beth Dakin <bdakin@apple.com>
  50. Reviewed by John Sullivan.
  51. Fix for <rdar://problem/5441823> REGRESSION (r25142, Tiger only):
  52. Vertical scroll bar not redrawn properly when going back in history
  53. (15033)
  54. This fix if-defs r25142 to be Leopard-only since it causes
  55. correctness issues on Tiger and does not seem to have any
  56. performance impact on Tiger either.
  57. * WebView/WebDynamicScrollBarsView.m:
  58. (-[WebDynamicScrollBarsView setScrollBarsSuppressed:repaintOnUnsuppress:]):
  59. (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
  60. 2007-10-04 Mark Rowe <mrowe@apple.com>
  61. Reviewed by Oliver.
  62. Switch to default level of debugging symbols to resolve <rdar://problem/5488678>.
  63. The "full" level appears to offer no observable benefits even though the documentation
  64. suggests it be used for dead code stripping. This should also decrease link times.
  65. * Configurations/Base.xcconfig:
  66. 2007-10-04 Adele Peterson <adele@apple.com>
  67. Reviewed by Darin.
  68. WebKit part of fix for <rdar://problem/5369017> REGRESSION: Can't tab to webview that doesn't have editable content
  69. * WebView/WebHTMLView.mm: (-[WebHTMLView becomeFirstResponder]): Pass in the FocusDirection.
  70. 2007-10-04 Darin Adler <darin@apple.com>
  71. * WebView/WebHTMLView.mm: (-[WebHTMLView _updateActiveState]):
  72. Removed a bogus comment.
  73. 2007-10-02 Kevin Decker <kdecker@apple.com>
  74. Reviewed by Mark Rowe.
  75. Re-added _minimumRequiredSafariBuildNumber. It turns out older version of Safari still rely
  76. on this method, so we need to keep it around at least until the next major Safari release.
  77. * StringsNotToBeLocalized.txt:
  78. * WebView/WebView.mm:
  79. (+[WebView _minimumRequiredSafariBuildNumber]):
  80. * WebView/WebViewPrivate.h:
  81. 2007-10-02 Kevin Decker <kdecker@apple.com>
  82. Reviewed by John Sullivan.
  83. <rdar://problem/5517710>
  84. * WebView/WebView.mm: Removed -[WebView _minimumRequiredSafariBuildNumber] because newer
  85. versions of Safari no longer use this method. This won't break existing Safaris because
  86. they always use a respondsToSelector check before calling this.
  87. * WebView/WebViewPrivate.h: Ditto.
  88. 2007-09-27 John Sullivan <sullivan@apple.com>
  89. Reviewed by Ollie
  90. - fixed <rdar://problem/5408186> REGRESSION (5522-5523.9): Safari leaks every browser window
  91. The leak started occurring when we removed the code to clear the delegates and the host window
  92. from Safari as part of the fix for 5479443. But it turns out that Safari code was masking a
  93. bug here in WebView: setHostWindow:nil needs to be called before setting _private->closed to
  94. YES, or it will do nothing at all, causing a world leak due to a circular reference between
  95. the window and the WebView.
  96. I toyed with a more complex fix, but this is the simplest one that retains the fix for 5479443
  97. while otherwise restoring the code order to be as close as possible to what it was before
  98. 5479443 was fixed.
  99. * WebView/WebView.mm:
  100. (-[WebView _close]):
  101. Moved the call that sets _private->closed to YES to be after the code that clears the delegates
  102. and the host window. Added a comment about this order.
  103. 2007-09-27 Kevin Decker <kdecker@apple.com>
  104. Rubber stamped by Darin.
  105. <rdar://problem/5493093>
  106. * WebKit.order: Added.
  107. * WebKit.xcodeproj/project.pbxproj: We're changing from using an order file built by
  108. another team to using one we actually check into our project repository. Linker settings for
  109. Symbol Ordering Flags have been updated accordingly.
  110. 2007-09-26 Geoffrey Garen <ggaren@apple.com>
  111. Reviewed by Adele Peterson.
  112. Fixed <rdar://problem/5507476> Promote cache model SPI to API
  113. Promoted cache model SPI to API. This was just a move, with some small
  114. edits to the documentation (changing 'application' to 'WebView' in
  115. some cases, since the interface is now per-WebView).
  116. * WebView/WebPreferences.h:
  117. * WebView/WebPreferences.m:
  118. (-[WebPreferences setCacheModel:]):
  119. (-[WebPreferences cacheModel]):
  120. * WebView/WebPreferencesPrivate.h:
  121. 2007-09-24 Timothy Hatcher <timothy@apple.com>
  122. Reviewed by Darin.
  123. <rdar://problem/5498016> Photoshop CS3: Adobe Help Viewer 1.1 crashes in 9A553
  124. WebKit started calling the mouseDidMoveOverElement delegate method with a nil dictionary in r14982.
  125. We originally intended to call this delegate method sometimes with a nil dictionary, but due to
  126. a bug dating back to WebKit 1.0 this delegate was never called with nil! Unfortunately we can't
  127. start calling this with nil since it will break Adobe Help Viewer, and possibly other clients.
  128. * WebView/WebView.mm:
  129. (-[WebView _mouseDidMoveOverElement:modifierFlags:]):
  130. 2007-09-21 Kevin Decker <kdecker@apple.com>
  131. * Plugins/WebBaseNetscapePluginView.mm: Build fix.
  132. The first argument of aglChoosePixelFormat() has changed from const AGLDevice *gdevs on Tiger to
  133. const void *gdevs on Leopard.
  134. 2007-09-20 Kevin Decker <kdecker@apple.com>
  135. Reviewed by Darin Adler.
  136. <rdar://problem/5493093>
  137. Reduced launch time by lazily linking both the AGL and OpenGL frameworks until they are really needed.
  138. * Plugins/WebBaseNetscapePluginView.mm: Soft link all AGL and OpenGL functions used by
  139. WebBaseNetscapePluginView.
  140. * WebKit.xcodeproj/project.pbxproj: Removed AGL and OpenGL from the project.
  141. 2007-09-20 John Sullivan <sullivan@apple.com>
  142. Build fix for stoooopid old PPC gcc compiler
  143. * WebCoreSupport/WebEditorClient.mm:
  144. (WebEditorClient::checkSpellingOfString):
  145. replace perfectly valid ?: syntax with if/else
  146. 2007-09-19 John Sullivan <sullivan@apple.com>
  147. Reviewed by Darin Adler.
  148. - WebKit part of speculative fix for <rdar://problem/5490627>, about crashes constructing a
  149. String using the values filled in by checkSpellingOfString()
  150. * WebCoreSupport/WebEditorClient.mm:
  151. (WebEditorClient::checkSpellingOfString):
  152. convert NSNotFound to -1, since WebCore code expects -1 for this purpose. We already do this
  153. in checkGrammarOfString.
  154. 2007-09-19 Kevin Decker <kdecker@apple.com>
  155. Reviewed by Darin Adler.
  156. <rdar://problem/5491066> soft link Accelerate.framework
  157. * Misc/WebGraphicsExtras.c:
  158. (WebConvertBGRAToARGB): Improve launch time performance and reduce vsize
  159. footprint by soft linking the Accelerate.framework.
  160. * WebKit.xcodeproj/project.pbxproj: Remove no longer needed frameworks.
  161. 2007-09-18 Geoffrey Garen <ggaren@apple.com>
  162. Reviewed by Darin Adler.
  163. Fixed <rdar://problem/5490204> In some cases, WebKit can make the
  164. Foundation disk cache way too big or way too small
  165. Use the actual location of the foundation disk cache, rather than
  166. the user's home directory, when determining how big to make it.
  167. * WebView/WebView.mm:
  168. (+[WebView _setCacheModel:]):
  169. 2007-09-17 Geoffrey Garen <ggaren@apple.com>
  170. Reviewed by Darin Adler.
  171. Fixed a hang due to an infinite script running in the window's unload
  172. event handler, which may be the cause of <rdar://problem/5479443>
  173. REGRESSION: Hang due to infinite JS recursion on close @ engadget.com
  174. (onunload-based ad)
  175. * WebView/WebUIDelegatePrivate.h: Added FIXME.
  176. * WebView/WebView.h: Clarified headerdoc ambiguity about when delegate
  177. methods stop firing.
  178. * WebView/WebView.mm:
  179. (-[WebView _close]): The fix: don't nil out our delegates until after
  180. detaching the FrameLoader, because the act of detaching the FrameLoader
  181. might fire important delegate methods, like webViewShouldInterruptJavaScript:.
  182. Don't do other tear-down either, because the unload event handler needs
  183. to run in a fully constructed page.
  184. This change is fairly low risk because niling out our delegates is a
  185. very recent, never-shipped feature in WebKit, so it's unlikely that any
  186. apps rely on it in a crazy way.
  187. 2007-09-15 Darin Adler <darin@apple.com>
  188. Reviewed by John Sullivan.
  189. - fix <rdar://problem/5391540> REGRESSION: Can't drag images from Safari to applications
  190. in the dock (Tiger Preview, others in Leopard)
  191. * Misc/WebNSPasteboardExtras.mm:
  192. (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
  193. Re-implement code here that has been missing for the last couple of years since we
  194. did some image refactoring. Was pretty easy now that we can freely call C++ code
  195. in WebKit.
  196. 2007-09-14 Mark Rowe <mrowe@apple.com>
  197. Build fix for Tiger.
  198. * WebView/WebArchive.m:
  199. (-[WebArchive initWithCoder:]): Use @catch(id) rather than @catch(...).
  200. * WebView/WebPreferences.m:
  201. (-[WebPreferences initWithCoder:]): Ditto.
  202. * WebView/WebResource.mm:
  203. (-[WebResource initWithCoder:]): Ditto.
  204. (-[WebResource _initWithPropertyList:]): Ditto.
  205. 2007-09-14 Darin Adler <darin@apple.com>
  206. Reviewed by Geoff Garen and Tim Hatcher.
  207. - fixed <rdar://problem/5482745> initFromCoder: and initWithPropertyList: functions
  208. should guard against incorrect types
  209. * WebView/WebArchive.m:
  210. (isArrayOfClass): Added helper function.
  211. (-[WebArchive _initWithPropertyList:]): Tweaked function to remove the need for a
  212. type cast.
  213. (-[WebArchive initWithCoder:]): Added type checking for the main resource,
  214. subresources array, and subframe archives array. Also replaced NS_DURING with @try.
  215. * WebView/WebPreferences.m: (-[WebPreferences initWithCoder:]): Added type checking
  216. for the identifier and the values dictionary, including ensuring that it's a mutable
  217. dictionary.
  218. * WebView/WebResource.mm:
  219. (-[WebResource initWithCoder:]): Added type checking for all the fields.
  220. (-[WebResource _initWithPropertyList:]): Added type checking for the NSURLResponse.
  221. * WebKit.exp: Removed accidentally exported internal symbol; I checked and it's not
  222. used anywhere.
  223. 2007-09-13 Darin Adler <darin@apple.com>
  224. Reviewed by Oliver.
  225. - fix <rdar://problem/5470457> REGRESSION: Input method inline hole is mishandled in text
  226. <input> elements with maxlength limit
  227. * WebView/WebHTMLView.mm:
  228. (-[WebHTMLView _selectionChanged]): Tweaked code a bit.
  229. (-[WebHTMLView markedRange]): Simplified logic, since markedTextNSRange works when there's
  230. no composition range.
  231. (-[WebHTMLView hasMarkedText]): Call directly to Editor instead of bridge.
  232. (-[WebHTMLView unmarkText]): Call new confirmComposition to make it clear that this is
  233. confirming text, not just unmarking it to discard it.
  234. (extractUnderlines): Added. Converts directly from an NSAttributedString to the
  235. CompositionUnderline vector that's used by WebCore.
  236. (-[WebHTMLView setMarkedText:selectedRange:]): Changed to use the new setComposition.
  237. (-[WebHTMLView insertText:]): Changed to use confirmComposition when appropriate, instead
  238. of relying on special behavior of Editor::insertText.
  239. (-[WebHTMLView _updateSelectionForInputManager]): Rewrote to use getCompositionSelection
  240. and confirmCompositionWithoutDisturbingSelection.
  241. * WebCoreSupport/WebEditorClient.h:
  242. * WebCoreSupport/WebEditorClient.mm:
  243. Removed obsolete markedTextAbandoned function.
  244. 2007-09-12 David Kilzer <ddkilzer@apple.com>
  245. Rubber-stamped by Darin and reviewed by Adam.
  246. Removed import of unused icon database headers.
  247. * WebCoreSupport/WebFrameBridge.mm:
  248. 2007-09-11 Timothy Hatcher <timothy@apple.com>
  249. Reviewed by Darin.
  250. Remove the unused class_getMethodImplementation function.
  251. * Misc/WebNSObjectExtras.h:
  252. 2007-09-11 Geoffrey Garen <ggaren@apple.com>
  253. Reviewed by Oliver Hunt.
  254. Fixed CFNetwork version check so it actually works.
  255. * Misc/WebKitVersionChecks.h:
  256. * WebView/WebView.mm:
  257. (+[WebView _setCacheModel:]): Don't use NSVersionOfLinkTimeLibrary because
  258. we don't link against CFNetwork directly, so it returns -1. Also, use
  259. the proper hex encoding instead of decimal numbers.
  260. 2007-09-11 Darin Adler <darin@apple.com>
  261. - redo fix for <rdar://problem/5472899> REGRESSION (TOT): Crash in FrameLoadDelegate loading stationery
  262. * WebView/WebView.mm:
  263. (getMethod): Added.
  264. (-[WebView _cacheResourceLoadDelegateImplementations]): Use getMethod.
  265. (-[WebView _cacheFrameLoadDelegateImplementations]): Ditto.
  266. 2007-09-11 Darin Adler <darin@apple.com>
  267. Rubber-stamped by Dave Harrison.
  268. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
  269. Removed wkCreateURLPasteboardFlavorTypeName and wkCreateURLNPasteboardFlavorTypeName.
  270. 2007-09-11 Darin Adler <darin@apple.com>
  271. Reviewed by Mark Rowe.
  272. - fix <rdar://problem/5472899> REGRESSION (TOT): Crash in FrameLoadDelegate loading stationery
  273. * Misc/WebNSObjectExtras.h:
  274. (class_getMethodImplementation): Added.
  275. (method_setImplementation): Added.
  276. * WebView/WebHTMLView.mm: (+[WebHTMLViewPrivate initialize]):
  277. * Carbon/HIViewAdapter.m: (+[HIViewAdapter bindHIViewToNSView:nsView:]):
  278. Remove old-ObjC code path, since WebNSObjectExtras.h now implements everything we need.
  279. * WebView/WebView.mm:
  280. (-[WebView _cacheResourceLoadDelegateImplementations]): Don't bother doing a separate
  281. respondsToSelector call, since class_getMethodImplementation will return 0 for selectors
  282. that we don't respond to. The bug fix is to actually set the cached pointer to 0.
  283. Also get rid of the unnecessary use of a macro; instead use the functions from
  284. WebNSObjectExtras.h on Tiger and the appropriate function directly on Leopard.
  285. (-[WebView _cacheFrameLoadDelegateImplementations]): Ditto.
  286. 2007-09-11 Darin Adler <darin@apple.com>
  287. Reviewed by Sam, Ollie.
  288. * WebView/WebView.mm: (+[WebView _setCacheModel:]): A slightly cleaner 64-bit
  289. fix for the NSURLCache capacity code in this file.
  290. 2007-09-11 Darin Adler <darin@apple.com>
  291. Rubber-stamped by Mark Rowe.
  292. * Misc/WebNSPasteboardExtras.mm: Fix incorrect strings in my last check-in.
  293. The strings I checked in were wrong and were breaking layout tests too.
  294. These new ones match what WebKitSystemInterface was returning.
  295. 2007-09-10 Geoffrey Garen <ggaren@apple.com>
  296. Fixed 64-bit build (I think).
  297. * WebView/WebView.mm:
  298. (max): Added. In 64-bit land, -diskCapacity magically starts returning
  299. unsigned long instead of unsigned, so we define a custom max() that's
  300. willing to compare unsigned to unsigned long.
  301. 2007-09-10 Darin Adler <darin@apple.com>
  302. Reviewed by Tim Hatcher.
  303. - <rdar://problem/5471082> Removing WebURLPboardType from headers broke SPI-using applications
  304. Rolled out my fix for bug 4582212 and fixed it in a much simpler way.
  305. * Misc/WebNSPasteboardExtras.h:
  306. * Misc/WebNSPasteboardExtras.mm:
  307. * WebCoreSupport/WebPasteboardHelper.mm:
  308. * WebKit.exp:
  309. * WebView/WebHTMLView.mm:
  310. * WebView/WebView.mm:
  311. Rolled out the new PasteboardType functions and changed the PboardType globals to be initialized
  312. with constant values.
  313. 2007-09-10 Timothy Hatcher <timothy@apple.com>
  314. Reviewed by Darin.
  315. Always animate when calling _scrollTo.
  316. * WebView/WebFrameView.mm:
  317. (-[WebFrameView _scrollVerticallyBy:]):
  318. (-[WebFrameView _scrollHorizontallyBy:]):
  319. 2007-09-08 Brady Eidson <beidson@apple.com>
  320. Reviewed by Darin
  321. <rdar://problem/5434431> - Asynchronous Icon Database
  322. WebKit side of things
  323. Mainly, there are Notifications WebKit has to listen for now that tell it when to either call back into WebCore
  324. for some purpose or to send the webView:didReceiveIcon: delegate call
  325. Many smaller tweaks as well.
  326. * Misc/WebIconDatabase.h:
  327. * Misc/WebIconDatabase.mm:
  328. (defaultClient):
  329. (-[WebIconDatabase init]):
  330. (+[WebIconDatabase delayDatabaseCleanup]): Accessor so clients can prevent the thread from cleaning up the database
  331. before they've done all their necessary retaining of icons.
  332. (+[WebIconDatabase allowDatabaseCleanup]):
  333. (-[WebIconDatabase removeAllIcons]):
  334. (-[WebIconDatabase _isEnabled]):
  335. (-[WebIconDatabase _sendNotificationForURL:]):
  336. (-[WebIconDatabase _sendDidRemoveAllIconsNotification]):
  337. (-[WebIconDatabase _databaseDirectory]):
  338. (-[ThreadEnabler threadEnablingSelector:]): Quick and dirty class to enabled Cocoa multithreading
  339. (+[ThreadEnabler enableThreading]):
  340. (importToWebCoreFormat):
  341. * Misc/WebIconDatabaseInternal.h: Expose the internal methods of WebIconDatabase that are required by WebIconDatabaseClient
  342. * Misc/WebNSNotificationCenterExtras.h: Added. - Great utility class whose design was borrowed from Colloquy
  343. that allows the posting of a Cocoa notification on the main thread from *any* thread
  344. * Misc/WebNSNotificationCenterExtras.m: Added.
  345. (-[NSNotificationCenter postNotificationOnMainThreadWithName:object:]):
  346. (-[NSNotificationCenter postNotificationOnMainThreadWithName:object:userInfo:]):
  347. (-[NSNotificationCenter postNotificationOnMainThreadWithName:object:userInfo:waitUntilDone:]):
  348. (+[NSNotificationCenter _postNotificationName:]):
  349. * WebCoreSupport/WebFrameLoaderClient.h:
  350. * WebCoreSupport/WebFrameLoaderClient.mm:
  351. (WebFrameLoaderClient::dispatchDidReceiveIcon): Send the webView:didReceiveIcon: delegate call
  352. (WebFrameLoaderClient::registerForIconNotification):
  353. * WebCoreSupport/WebIconDatabaseClient.h: Added.
  354. * WebCoreSupport/WebIconDatabaseClient.mm: Added.
  355. (WebIconDatabaseClient::performImport): Perform the Safari 2 icon import
  356. (WebIconDatabaseClient::dispatchDidRemoveAllIcons): Send the NSNotification
  357. (WebIconDatabaseClient::dispatchDidAddIconForPageURL): Ditto
  358. * WebView/WebView.mm:
  359. (-[WebView _receivedIconChangedNotification:]): Check and see if this notification is for this WebView's current URL by
  360. calling back into the IconDatabase
  361. (-[WebView _registerForIconNotification:]): Support for WebIconDatabaseClient
  362. (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Dispatch this delegate call as well as unregister for the notification
  363. * WebView/WebViewInternal.h:
  364. * WebKit.xcodeproj/project.pbxproj:
  365. 2007-09-07 Geoffrey Garen <ggaren@apple.com>
  366. Suggested by Maciej Stachowiak.
  367. Added wKiosk Browser to the browser list. Pretty sweet app.
  368. * WebView/WebPreferences.m:
  369. (cacheModelForMainBundle):
  370. 2007-09-07 Geoffrey Garen <ggaren@apple.com>
  371. Build fix.
  372. * WebView/WebView.mm:
  373. (+[WebView _setCacheModel:]):
  374. 2007-09-05 Geoffrey Garen <ggaren@apple.com>
  375. Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
  376. Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
  377. memory cache, or a very tiny one
  378. High level explanation:
  379. - Added SPI for specifying a cache model on a per-WebView basis.
  380. (Hopefully, this will become API soon.) We balance competing
  381. cache models simply by using the largest one that pertains at a
  382. given time.
  383. - Added heuristic for guessing a default cache model in WebViews
  384. that don't specify one:
  385. 1) Default to DocumentViewer for apps linked on or after this
  386. WebKit. Default to DocumentBrowser otherwise.
  387. 2) Assign specific defaults to well-known clients based on
  388. bundle ID.
  389. 3) Grow the default to DocumentBrowser if a navigation takes
  390. place.
  391. - As a part of the DocumentBrowser & PrimaryWebBrowser settings:
  392. 1) Make the Foundation disk cache much much bigger than the
  393. default 20MB, if space allows. (This is a hedge against a small
  394. WebCore cache in DocumentBrowser mode, but also an all-around
  395. win for page load speed.)
  396. 2) Scaled the Foundation memory cache's capacity with physical
  397. RAM, just like we do with other caches. This is a small win on
  398. low memory systems.
  399. * Misc/WebKitSystemBits.h:
  400. * Misc/WebKitSystemBits.m:
  401. (WebMemorySize): Renamed from "WebSystemMainMemory."
  402. (WebHomeDirectoryFreeSize): Added function to measure the free space
  403. on the user's home directory. We use this as a factor in determining
  404. the disk cache's cacpacity.
  405. * Misc/WebKitVersionChecks.h: Support for linked on or after check.
  406. * WebCoreSupport/WebFrameLoaderClient.h:
  407. * WebCoreSupport/WebFrameLoaderClient.mm:
  408. (WebFrameLoaderClient::didPerformFirstNavigation): Implementation of
  409. heuristic rule #3.
  410. * WebView/WebPreferenceKeysPrivate.h:
  411. * WebView/WebPreferences.m:
  412. (cacheModelForMainBundle): Implementation of heuristic rule #2.
  413. (-[NSMutableDictionary _web_checkLastReferenceForIdentifier:]): Added
  414. notification for when a WebPreferences instance becomes inert. We use
  415. this to shrink the cache model back down if possible. Moved this code
  416. into a WebPreferences method, since it's not really a feature of
  417. NSDictionary.
  418. * WebView/WebPreferencesPrivate.h: SPI declarations.
  419. * WebView/WebView.mm: Replaced manual notification posts with calls to
  420. the _postPreferencesChangesNotification convenience method.
  421. (-[WebView _preferencesChangedNotification:]): Merged dispersed code
  422. for updating preferences-related settings into this one function. This
  423. was needed for an earlier version of the patch, even though the
  424. current version could probably do without it.
  425. (+[WebView _preferencesChangedNotification:]): Added a class-level
  426. listener for WebPreferences changes. This listener takes care of
  427. modifying the class-level global cache model setting if necessary.
  428. (+[WebPreferences standardPreferences]): Removed call to
  429. _postPreferencesChangesNotification because the notification already
  430. posts when you create the WebPreferences object. (I noticed this
  431. inefficiency because my new _preferencesChangedNotification: method was
  432. called excessively at startup.)
  433. Also Added explicit tracking of WebPreferences clients, so we know when
  434. a WebPreferences instance becomes inert:
  435. (-[WebPreferences didRemoveFromWebView]):
  436. (-[WebPreferences willAddToWebView]):
  437. (+[WebView _setCacheModel:]): Translates a cache model into actual
  438. settings in various APIs. Caches that have unbounded value grow
  439. linearly relative to available space. Caches that have bounded value
  440. grow inverse-squaredly relative to available space.
  441. 2007-09-05 Timothy Hatcher <timothy@apple.com>
  442. Reviewed by Darin.
  443. <rdar://problem/5443883> Uncaught Objective-C exceptions in WebKit clients lead to hard-to-diagnose crashes
  444. Changed all the direct delegate calls to use helper functions that have direct access to
  445. WebView's delegate objects. These helper methods will catch any ObjC exceptions and call
  446. ReportDiscardedDelegateException to log the discarded exception. WebView's that have
  447. catchesDelegateExceptions set to NO will not pay the cost of a @try/@catch. The delegate
  448. forwarders also have the same behavior.
  449. * Misc/WebKitLogging.h:
  450. * Misc/WebKitLogging.m:
  451. (ReportDiscardedDelegateException):
  452. * Plugins/WebBaseNetscapePluginView.mm:
  453. (-[WebBaseNetscapePluginView loadPluginRequest:]):
  454. * Plugins/WebNullPluginView.mm:
  455. (-[WebNullPluginView viewDidMoveToWindow]):
  456. * WebCoreSupport/WebChromeClient.mm:
  457. (WebChromeClient::createWindow):
  458. (WebChromeClient::createModalDialog):
  459. (WebChromeClient::runModal):
  460. (WebChromeClient::toolbarsVisible):
  461. (WebChromeClient::statusbarVisible):
  462. (WebChromeClient::addMessageToConsole):
  463. (WebChromeClient::canRunBeforeUnloadConfirmPanel):
  464. (WebChromeClient::runBeforeUnloadConfirmPanel):
  465. (WebChromeClient::runJavaScriptAlert):
  466. (WebChromeClient::runJavaScriptConfirm):
  467. (WebChromeClient::runJavaScriptPrompt):
  468. (WebChromeClient::shouldInterruptJavaScript):
  469. (WebChromeClient::setStatusbarText):
  470. (WebChromeClient::print):
  471. * WebCoreSupport/WebContextMenuClient.mm:
  472. (WebContextMenuClient::getCustomMenuFromDefaultItems):
  473. (WebContextMenuClient::contextMenuItemSelected):
  474. * WebCoreSupport/WebDragClient.mm:
  475. (WebDragClient::startDrag):
  476. * WebCoreSupport/WebEditorClient.mm:
  477. (WebEditorClient::textFieldDidBeginEditing):
  478. (WebEditorClient::textFieldDidEndEditing):
  479. (WebEditorClient::textDidChangeInTextField):
  480. (WebEditorClient::doTextFieldCommandFromEvent):
  481. (WebEditorClient::textWillBeDeletedInTextField):
  482. (WebEditorClient::textDidChangeInTextArea):
  483. * WebCoreSupport/WebFrameBridge.mm:
  484. (-[WebFrameBridge viewForPluginWithFrame:URL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  485. * WebCoreSupport/WebFrameLoaderClient.mm:
  486. (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  487. (WebFrameLoaderClient::assignIdentifierToInitialRequest):
  488. (WebFrameLoaderClient::dispatchWillSendRequest):
  489. (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  490. (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  491. (WebFrameLoaderClient::dispatchDidReceiveResponse):
  492. (WebFrameLoaderClient::willCacheResponse):
  493. (WebFrameLoaderClient::dispatchDidReceiveContentLength):
  494. (WebFrameLoaderClient::dispatchDidFinishLoading):
  495. (WebFrameLoaderClient::dispatchDidFailLoading):
  496. (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
  497. (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
  498. (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
  499. (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
  500. (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
  501. (WebFrameLoaderClient::dispatchWillClose):
  502. (WebFrameLoaderClient::dispatchDidReceiveIcon):
  503. (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
  504. (WebFrameLoaderClient::dispatchDidReceiveTitle):
  505. (WebFrameLoaderClient::dispatchDidCommitLoad):
  506. (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
  507. (WebFrameLoaderClient::dispatchDidFailLoad):
  508. (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
  509. (WebFrameLoaderClient::dispatchDidFinishLoad):
  510. (WebFrameLoaderClient::dispatchDidFirstLayout):
  511. (WebFrameLoaderClient::dispatchCreatePage):
  512. (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
  513. (WebFrameLoaderClient::dispatchWillSubmitForm):
  514. (WebFrameLoaderClient::dispatchDidLoadMainResource):
  515. * WebView/WebHTMLView.mm:
  516. (-[WebHTMLView callDelegateDoCommandBySelectorIfNeeded:]):
  517. (-[WebHTMLView validateUserInterfaceItem:]):
  518. * WebView/WebPDFView.mm:
  519. (-[WebPDFView validateUserInterfaceItem:]):
  520. (-[WebPDFView PDFViewSavePDFToDownloadFolder:]):
  521. * WebView/WebView.mm:
  522. (-[WebView _openNewWindowWithRequest:]):
  523. (-[WebView _menuForElement:defaultItems:]):
  524. (-[WebView _mouseDidMoveOverElement:modifierFlags:]):
  525. (-[WebView _cacheResourceLoadDelegateImplementations]):
  526. (-[WebView _cacheFrameLoadDelegateImplementations]):
  527. (-[WebView _policyDelegateForwarder]):
  528. (-[WebView _UIDelegateForwarder]):
  529. (-[WebView _editingDelegateForwarder]):
  530. (-[WebView _scriptDebugDelegateForwarder]):
  531. (-[WebView _setCatchesDelegateExceptions:]):
  532. (-[WebView _catchesDelegateExceptions]):
  533. (-[_WebSafeForwarder initWithTarget:defaultTarget:]):
  534. (-[_WebSafeForwarder forwardInvocation:]):
  535. (-[_WebSafeForwarder methodSignatureForSelector:]):
  536. (-[WebView _commonInitializationWithFrameName:groupName:]):
  537. (-[WebView validateUserInterfaceItem:]):
  538. (-[WebView _headerHeight]):
  539. (-[WebView _footerHeight]):
  540. (-[WebView _drawHeaderInRect:]):
  541. (-[WebView _drawFooterInRect:]):
  542. (-[WebView _shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
  543. (CallDelegate):
  544. (CallDelegateReturningFloat):
  545. (CallDelegateReturningBoolean):
  546. (CallUIDelegate):
  547. (CallUIDelegateReturningFloat):
  548. (CallUIDelegateReturningBoolean):
  549. (CallFrameLoadDelegate):
  550. (CallResourceLoadDelegate):
  551. (CallFormDelegate):
  552. (CallFormDelegateReturningBoolean):
  553. * WebView/WebViewInternal.h:
  554. * WebView/WebViewPrivate.h:
  555. 2007-09-04 Timothy Hatcher <timothy@apple.com>
  556. Reviewed by Darin.
  557. <rdar://problem/5452908> NIBs saved in the Pre-10.2 format while Safari 3 installed do not work without Safari 3
  558. This happened because we encoded a new field that the old WebKit does not know how to read.
  559. And NSCoder throws an exception if initWithCoder finishes while there is still unread data in the archive.
  560. The WebViewVersion is now 4 to distinguish that we do not encode/decode allowsUndo.
  561. * WebView/WebView.mm:
  562. (-[WebView initWithCoder:]): Only try to read allowsUndo if the version is 3.
  563. (-[WebView encodeWithCoder:]): No longer encode allowsUndo.
  564. 2007-09-04 David Hyatt <hyatt@apple.com>
  565. Fix for <rdar://problem/5271213>, resizing iChat window is slower than in
  566. Tiger. This patch implements a fast scaling mode that can be used by
  567. WebViews, e.g., during window resizing.
  568. Reviewed by John Sullivan
  569. * WebView/WebView.mm:
  570. (-[WebView _setUseFastImageScalingMode:]):
  571. (-[WebView _inFastImageScalingMode]):
  572. * WebView/WebViewPrivate.h:
  573. 2007-09-04 Darin Adler <darin@apple.com>
  574. Reviewed by Hyatt.
  575. * WebView/WebView.mm:
  576. (-[WebView _loadBackForwardListFromOtherView:]): Added missing null check.
  577. (-[WebView _setInitiatedDrag:]): Ditto.
  578. (-[WebView _clearUndoRedoOperations]): Ditto.
  579. (-[WebView encodeWithCoder:]): Ditto.
  580. (-[WebView backForwardList]): Ditto.
  581. (-[WebView setMaintainsBackForwardList:]): Ditto.
  582. 2007-09-04 Tristan O'Tierney <tristan@apple.com>
  583. Reviewed by John Sullivan.
  584. <rdar://problem/5454935> Can't reply to this message in Mail -- -[DOMRange webArchive] is throwing an exception
  585. * WebView/WebArchiver.mm:
  586. (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
  587. Guard the creation of WebResource by ensuring that the passed in
  588. responseURL is never nil.
  589. 2007-09-03 Mark Rowe <mrowe@apple.com>
  590. Reviewed by Tim Hatcher.
  591. <rdar://problem/5452164> Production build with in symbols directory has no debug info
  592. Enable debug symbol generation on all build configurations. Production builds are stripped
  593. of symbols by Xcode during deployment post-processing.
  594. * Configurations/Base.xcconfig:
  595. * WebKit.xcodeproj/project.pbxproj:
  596. 2007-09-02 Brady Eidson <beidson@apple.com>
  597. Reviewed by John Sullivan and Mark Rowe
  598. Groundwork for support for monitoring IconDatabase in-memory statistics
  599. * Misc/WebCoreStatistics.h:
  600. * Misc/WebCoreStatistics.mm:
  601. (+[WebCoreStatistics iconPageURLMappingCount]):
  602. (+[WebCoreStatistics iconRetainedPageURLCount]):
  603. (+[WebCoreStatistics iconRecordCount]):
  604. (+[WebCoreStatistics iconsWithDataCount]):
  605. 2007-09-01 Oliver Hunt <oliver@apple.com>
  606. Reviewed by Sam.
  607. <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
  608. EditorClient::setInputMethodState stub
  609. * WebCoreSupport/WebEditorClient.h:
  610. * WebCoreSupport/WebEditorClient.mm:
  611. (WebEditorClient::setInputMethodState):
  612. 2007-08-30 Maciej Stachowiak <mjs@apple.com>
  613. Reviewed by Tim.
  614. <rdar://problem/5439953> REGRESSION: Cannot load feeds in widgets in Dashcode due to change in WebKit delegate methods
  615. * WebView/WebFrame.mm:
  616. (-[WebFrame _attachScriptDebugger]): Don't create the debugger object if the frame has not yet
  617. created its script interpreter, to avoid premature dispatch of windowScriptObjectAvailable/Cleared
  618. delegate methods. The script debugger will be created in any case when the window object does appear.
  619. 2007-08-29 Darin Adler <darin@apple.com>
  620. Reviewed by Tim Hatcher.
  621. - fix <rdar://problem/4582212> WebKit inappropriately adds +initialize to
  622. NSPasteboard via a category, prevents AppKit initialize
  623. http://bugs.webkit.org/show_bug.cgi?id=9417
  624. * Misc/WebNSPasteboardExtras.h: Got rid of the global data objects and replaced
  625. them with global functions.
  626. * Misc/WebNSPasteboardExtras.mm:
  627. (initializePasteboardTypes): Changed the initialize method to be this function.
  628. (WebURLPasteboardType): Added, calls the initialize function and then returns
  629. the value of the global.
  630. (WebURLNamePasteboardType): Ditto.
  631. (+[NSPasteboard _web_writableTypesForURL]): Changed to call the new function instead
  632. of getting at the global directly.
  633. (+[NSPasteboard _web_dragTypesForURL]): Ditto.
  634. (-[NSPasteboard _web_writeURL:andTitle:types:]): Ditto.
  635. * WebCoreSupport/WebPasteboardHelper.mm:
  636. (WebPasteboardHelper::urlFromPasteboard): Ditto.
  637. * WebView/WebHTMLView.mm:
  638. (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]): Ditto.
  639. * WebView/WebView.mm:
  640. (+[WebView initialize]): Added a call to one of the functions to take advantage
  641. of the side effect that initializes the globals; this is to help out old versions
  642. of Safari.
  643. (+[WebView URLTitleFromPasteboard:]): Changed to call the new function instead
  644. of getting at the global directly.
  645. * WebKit.exp: Add exports of the new functions.
  646. 2007-08-29 Adele Peterson <adele@apple.com>
  647. Reviewed by Darin.
  648. Fix for http://bugs.webkit.org/show_bug.cgi?id=15098
  649. <rdar://problem/5440319> REGRESSION (9A530-9A534): Double scroll bar on pdfs
  650. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::makeDocumentView):
  651. Don't suppress scrollbars before the view creation if we're making the view for a non-html view
  652. * WebView/WebFrameViewInternal.h: Make _scrollView return a WebDynamicScrollBarsView since so many clients were relying on it being that type anyway.
  653. * WebView/WebFrameView.mm:
  654. (-[WebFrameView _setDocumentView:]):
  655. (-[WebFrameView _scrollView]):
  656. (-[WebFrameView setAllowsScrolling:]):
  657. (-[WebFrameView allowsScrolling]):
  658. * WebView/WebView.mm:
  659. (-[WebView setAlwaysShowVerticalScroller:]):
  660. (-[WebView alwaysShowVerticalScroller]):
  661. (-[WebView setAlwaysShowHorizontalScroller:]):
  662. (-[WebView alwaysShowHorizontalScroller]):
  663. 2007-08-29 David Hyatt <hyatt@apple.com>
  664. The method that was swizzled to fix 5441281 does not exist on Tiger.
  665. Tiger has to do a double swizzle instead (of resetCursorRects and NSCursor's
  666. set method) in order to roughly achieve the same effect.
  667. Reviewed by darin
  668. * WebView/WebHTMLView.mm:
  669. (resetCursorRects):
  670. (setCursor):
  671. (+[WebHTMLViewPrivate initialize]):
  672. 2007-08-29 Anders Carlsson <andersca@apple.com>
  673. Fix 64-bit build.
  674. * WebCoreSupport/WebFrameBridge.mm:
  675. 2007-08-29 David Hyatt <hyatt@apple.com>
  676. Fix for 5441281, remove our dependency on cursor rects and drag margins
  677. in AppKit for a large performance boost on the PLT and iBench.
  678. Reviewed by darin
  679. * Plugins/WebBaseNetscapePluginView.h:
  680. * Plugins/WebBaseNetscapePluginView.mm:
  681. (-[WebBaseNetscapePluginView sendNullEvent]):
  682. (-[WebBaseNetscapePluginView mouseEntered:]):
  683. (-[WebBaseNetscapePluginView mouseExited:]):
  684. (-[WebBaseNetscapePluginView stop]):
  685. Clean up cursor setting from Netscape plugins. Don't unconditionally mutate
  686. the cursor when a plugin stops.
  687. * WebView/WebFrameView.mm:
  688. (-[WebFrameView _setDocumentView:]):
  689. Suppress the resetting of drag margins while the new document view is being
  690. added to the view hierarchy.
  691. * WebView/WebHTMLView.mm:
  692. (-[NSWindow _web_borderView]):
  693. Expose the border view of the NSWindow so that it can be hit tested.
  694. (setCursorForMouseLocation):
  695. Apply a method swizzle to override the private AppKit method, _setCursorForMouseLocation.
  696. We have to do this to suppress the cursor rect invalidation handling from resetting
  697. the cursor for no reason.
  698. The swizzle will do a hit test and allow the cursor set to occur if the mouse ends up
  699. being over a plugin or over a view other than a WebHTMLView.
  700. (+[WebHTMLViewPrivate initialize]):
  701. The swizzle for setCursorForMouseLocation is set up here.
  702. (-[WebHTMLView _frameOrBoundsChanged]):
  703. Add a 100ms delay to the fake mouse moved event that fires when the view moves
  704. under the mouse (without the mouse moving). This happens on iBench when the
  705. pages get scrolled. By adding a delay we ensure that even with the mouse inside
  706. the window, we don't experience cursor thrashing when pages are updating and
  707. scrolling rapidly.
  708. 2007-08-28 Anders Carlsson <andersca@apple.com>
  709. Reviewed by Darin.
  710. <rdar://problem/5424866> Bottom portion of any Web Clip widget appears transparent
  711. * WebCoreSupport/WebFrameBridge.mm:
  712. Use the enum from FrameLoaderTypes.h.
  713. * WebCoreSupport/WebFrameLoaderClient.mm:
  714. (WebFrameLoaderClient::objectContentType):
  715. Return ObjectContentNetscapePlugin and ObjectContentOtherPlugin depending on the plug-in type.
  716. 2007-08-28 Mark Rowe <mrowe@apple.com>
  717. Reviewed by Maciej Stachowiak.
  718. Fix fallout from the fix for <rdar://problem/5437983> (Loading history containing 100,000 entries adds 20s to Safari's startup)
  719. in r25275. The array of entries for each day was being maintained in the reverse of the order that was expected.
  720. * History/WebHistory.mm:
  721. (-[WebHistoryPrivate insertItem:forDateKey:]): Maintain the array of entries in descending order.
  722. 2007-08-28 Mark Rowe <mrowe@apple.com>
  723. Fix the buildbot build.
  724. * History/WebHistory.mm:
  725. (timeIntervalForBeginningOfDay): Explicitly cast to silence compiler warning.
  726. 2007-08-28 Mark Rowe <mrowe@apple.com>
  727. Reviewed by Darin Adler.
  728. <rdar://problem/5437983> Loading history containing 100,000 entries adds 20s to Safari's startup
  729. Move WebHistoryItemPrivate from using a sorted array of NSCalendarDate's that map to a sorted array of arrays
  730. of WebHistoryItem's over to using a HashMap of NSTimeIntervals and arrays of WebHistoryItems. NSTimeInterval
  731. uses less memory and is substantially cheaper during comparisons than NSCalendarDate. The use of the HashMap
  732. avoids the needs to repeatedly search within an array to locate the array that corresponds to the given days
  733. history items.
  734. The result of these changes is that loading 100,000 history items drops from around 25s to 1.6s. Loading
  735. 100 items drops from 0.003s to 0.002s.
  736. * History/WebHistory.mm:
  737. (-[WebHistoryPrivate init]):
  738. (-[WebHistoryPrivate dealloc]):
  739. (timeIntervalForBeginningOfDay): Return the NSTimeInterval representing the beginning of the specified day.
  740. (-[WebHistoryPrivate findKey:forDay:]):
  741. (-[WebHistoryPrivate insertItem:forDateKey:]): Perform a binary search within the day's history items rather than a linear search.
  742. (-[WebHistoryPrivate _removeItemFromDateCaches:]):
  743. (-[WebHistoryPrivate _addItemToDateCaches:]):
  744. (-[WebHistoryPrivate removeAllItems]):
  745. (-[WebHistoryPrivate orderedLastVisitedDays]): Generate and cache the sorted NSArray of NSCalendarDate's exposed in the API.
  746. This cache is invalidated by _removeItemFromDateCaches: and _addItemToDateCaches: when needed.
  747. (-[WebHistoryPrivate orderedItemsLastVisitedOnDay:]):
  748. (-[WebHistoryPrivate arrayRepresentation]):
  749. (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]): Use an autorelease pool to keep the
  750. number of live autoreleased objects generated to a reasonable level.
  751. * History/WebHistoryItem.mm:
  752. (-[WebHistoryItem initWithURLString:title:displayTitle:lastVisitedTimeInterval:]):
  753. (-[WebHistoryItem initFromDictionaryRepresentation:]): Use the new HistoryItem constructor that accepts the alternate title
  754. rather than setting it after construction. This prevents a modification notification from being sent for each WebHistoryItem that is loaded.
  755. * History/WebHistoryItemInternal.h:
  756. * History/WebHistoryPrivate.h:
  757. * Misc/WebNSCalendarDateExtras.h: Removed as _webkit_compareDay: is no longer used.
  758. * Misc/WebNSCalendarDateExtras.m: Removed.
  759. * WebKit.xcodeproj/project.pbxproj:
  760. 2007-08-28 Anders Carlsson <andersca@apple.com>
  761. Reviewed by Darin.
  762. <rdar://problem/5298296> XMLHttpRequest readyState 3 & responseText buffer issues
  763. Expose WKSetNSURLRequestShouldContentSniff to WebCore.
  764. * WebCoreSupport/WebSystemInterface.m:
  765. (InitWebCoreSystemInterface):
  766. 2007-08-24 Kevin McCullough <kmccullough@apple.com>
  767. Reviewed by Darin.
  768. <rdar://problem/5437038> 1 credential object leaked for each call to credentialWithUser:password:persistence
  769. - Use initWithUser instead of credentialWithUser because credentialWithUser leaks.
  770. * Panels/WebAuthenticationPanel.m:
  771. (-[WebAuthenticationPanel runAsModalDialogWithChallenge:]):
  772. (-[WebAuthenticationPanel sheetDidEnd:returnCode:contextInfo:]):
  773. 2007-08-24 Adele Peterson <adele@apple.com>
  774. Fix by Darin, reviewed by Adele.
  775. Fix for <rdar://problem/5433422> Upon quitting, WebKit loads the WebPlugin shared database and immediately closes it
  776. * Plugins/WebPluginDatabase.h: Added closeSharedDatabase, which won't create a new database if we're just trying to close it.
  777. * Plugins/WebPluginDatabase.m: (+[WebPluginDatabase closeSharedDatabase]): Added.
  778. * WebView/WebView.mm:
  779. (-[WebView _close]): Call closeSharedDatabase.
  780. (+[WebView _applicationWillTerminate]): Call closeSharedDatabase.
  781. 2007-08-24 Timothy Hatcher <timothy@apple.com>
  782. Reviewed by John Sullivan.
  783. <rdar://problem/5410937> HIWebView in SimpleCarbonWeb doesn't seem to be getting adequate invalidation when window is resized
  784. This is a more localized fix for yesterday's change. Now explicitly call _web_layoutIfNeededRecursive inside the
  785. HIWebView Draw() function. Adds a FIXME to explain that we need to do layout before Carbon has decided what regions to draw.
  786. Doing layout in Draw() will potentially cause drawing to happen in two passes, but this has always been a problem in Carbon.
  787. * Carbon/HIWebView.m:
  788. (Draw): Call _web_layoutIfNeededRecursive on the main WebHTMLView.
  789. (SetFocusPart): Fix to work in ObjC++ (now that HIWebView.m is treated as a ObjC++ file.)
  790. * WebView/WebView.mm: Removes the 4 displayIfNeeded methods from yesterday's change.
  791. * WebKit.xcodeproj/project.pbxproj: Force the file type of HIWebView.m to ObjC++ so WebHTMLViewInternal.h can be included.
  792. 2007-08-23 Timothy Hatcher <timothy@apple.com>
  793. Reviewed by Dave Hyatt.
  794. <rdar://problem/5410937> HIWebView in SimpleCarbonWeb doesn't seem to be getting adequate invalidation when window is resized
  795. The Carbon HIWebView was relying on layout happening when displayIfNeededInRect: was called on the WebView.
  796. This would happen on Tiger because _recursiveDisplayRectIfNeededIgnoringOpacity: would always do a layout if needed.
  797. Doing a layout in _recursiveDisplayRectIfNeededIgnoringOpacity was removed in Leopard in favor of viewWillDraw, and
  798. the fact that adding new dirty rects inside _recursiveDisplayRectIfNeededIgnoringOpacity on Leopard will not
  799. cause a drawRect in the same display loop.
  800. So any client on Leopard calling displayIfNeeded* on the WebView would get a layout and any new dirty rects. So
  801. _web_layoutIfNeededRecursive needs to be called on the main frame's WebHTMLView to make sure we layout and
  802. display anything that is really needed.
  803. * WebView/WebHTMLView.mm:
  804. (-[WebHTMLView _layoutIfNeeded]):
  805. (-[WebHTMLView _web_layoutIfNeededRecursive]):
  806. * WebView/WebHTMLViewInternal.h:
  807. * WebView/WebView.mm:
  808. (-[WebView displayIfNeeded]): Call _web_layoutIfNeededRecursive on the main WebHTMLView.
  809. (-[WebView displayIfNeededIgnoringOpacity]): Ditto.
  810. (-[WebView displayIfNeededInRect:]): Ditto.
  811. (-[WebView displayIfNeededInRectIgnoringOpacity:]): Ditto.
  812. 2007-08-22 Timothy Hatcher <timothy@apple.com>
  813. Rolling out r25102 for <rdar://problem/5410937> until
  814. <rdar://problem/5429920> is resolved.
  815. * Carbon/CarbonUtils.m:
  816. (WebInitForCarbon):
  817. (PoolCleaner):
  818. * Carbon/CarbonWindowAdapter.h:
  819. * Carbon/CarbonWindowAdapter.m:
  820. * Carbon/CarbonWindowContentView.h:
  821. * Carbon/CarbonWindowContentView.m:
  822. * Carbon/CarbonWindowFrame.h:
  823. * Carbon/CarbonWindowFrame.m:
  824. * Carbon/HIViewAdapter.h:
  825. * Carbon/HIViewAdapter.m:
  826. * Carbon/HIWebView.h:
  827. * Carbon/HIWebView.m:
  828. 2007-08-20 John Sullivan <sullivan@apple.com>
  829. Reviewed by Adam Roben
  830. WebKit part of fix for:
  831. <rdar://problem/5417777> WebKit focus ring color no longer matches system focus rings
  832. * Misc/WebNSAttributedStringExtras.mm:
  833. now includes <WebCore/ColorMac.h> to account for moved declaration
  834. * WebView/WebFrame.mm:
  835. ditto
  836. * WebView/WebViewPrivate.h:
  837. * WebView/WebView.mm:
  838. (+[WebView _setUsesTestModeFocusRingColor:]):
  839. new SPI, calls through to new WebCore function. This is used by DumpRenderTree to make sure the
  840. focus ring color is always the same when performing layout tests, regardless of OS X version.
  841. (+[WebView _usesTestModeFocusRingColor]):
  842. new SPI, calls through to new WebCore function
  843. 2007-08-20 Antti Koivisto <antti@apple.com>
  844. Reviewed by John.
  845. Fix <rdar://problem/5378390>
  846. Crash at Range::startContainer() when creating multiple ToDos on the same line
  847. Null check range.
  848. No layout test, this only happens with ObjC API.
  849. * WebView/WebHTMLView.mm:
  850. (-[WebHTMLView _expandSelectionToGranularity:]):
  851. 2007-08-20 Maciej Stachowiak <mjs@apple.com>
  852. Not reviewed, fix for crash on launch bug in last patch.
  853. * WebView/WebHTMLView.mm:
  854. (-[WebHTMLView setDataSource:]): Remove an assertion, fix code to work right in the
  855. face of that condition.
  856. 2007-08-18 Maciej Stachowiak <mjs@apple.com>
  857. Reviewed by Darin.
  858. - fixed <rdar://problem/5198272> REGRESSION: PLT 1.5% slower due to r21367 (change to start frames with empty documents)
  859. There were three main cuases of extra time due to creating the initial empty document:
  860. 1) Creating an extra WebHTMLView and swapping it for a new one for each frame created.
  861. 2) Parsing the minimal markup for the initial document's contents.
  862. 3) Clearing the Window object an extra time and dispatching the corresponding delegate method.
  863. The WebKit part of the fixes addresses 1.
  864. * WebCoreSupport/WebFrameLoaderClient.mm:
  865. (WebFrameLoaderClient::makeDocumentView): When switching from the initial
  866. empty document to the first real document, reuse the WebHTMLView.
  867. It might actually be a significant performance improvement to always
  868. reuse the WebHTMLView, but that is a much riskier change and not
  869. needed to fix the regression right now.
  870. 2007-08-17 Maciej Stachowiak <mjs@apple.com>
  871. Reviewed by Darin.
  872. - WebKit part of fix to scrollbar suppression hack for Leopard
  873. * WebView/WebDynamicScrollBarsView.m:
  874. (-[WebDynamicScrollBarsView reflectScrolledClipView:]): Don't call the superclass method
  875. when scrollbars are suppressed.
  876. (-[WebDynamicScrollBarsView setScrollBarsSuppressed:repaintOnUnsuppress:]): Instead call it
  877. here, when unsuppressing.
  878. 2007-08-17 Darin Adler <darin@apple.com>
  879. Reviewed by Maciej.
  880. - fix <rdar://problem/5414518> Use root URL as origin URL when quarantining downloads
  881. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::setOriginalURLForDownload):
  882. Extract only the scheme and host name and make the originating URL from that.
  883. * WebKit/StringsNotToBeLocalized.txt: Updated for recent changes.
  884. 2007-08-17 Timothy Hatcher <timothy@apple.com>
  885. Reviewed by Darin.
  886. <rdar://problem/5398301> Xcode threw mutation exception while enumerating subviews (GC only)
  887. I was never able to reproduce this exception. But there can be cases where layout will
  888. trigger JavaScript or plugin code that can modify the WebView view hierarchy during a
  889. recursive enumeration of all the subviews.
  890. This patch does two things:
  891. 1) Adds a check in debug builds that will LOG when any view is added or removed during layout.
  892. Noting that added views will not recieve layout this round and might paint without first recieving layout.
  893. 2) Recursivly builds up an array of descendant WebHTMLViews before calling layout on them.
  894. This matches the behavior of makeObjectsPerformSelector: in the non-GC case (making a copy
  895. before enumerating.)
  896. * WebView/WebHTMLView.mm:
  897. (-[WebHTMLView _web_setPrintingModeRecursive]): Use _web_addDescendantWebHTMLViewsToArray to build up an array
  898. of WebHTMLViews to enumerate.
  899. (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
  900. (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
  901. (-[WebHTMLView _web_layoutIfNeededRecursive]): Ditto.
  902. (-[WebHTMLView _layoutIfNeeded]): Moved to WebHTMLViewFileInternal category.
  903. (-[WebHTMLView didAddSubview:]): LOG in debug builds.
  904. (-[WebHTMLView willRemoveSubview:]): Ditto.
  905. (-[NSView _web_addDescendantWebHTMLViewsToArray:]): Recursivly build an array of descendant WebHTMLViews.
  906. * WebView/WebHTMLViewInternal.h: Added a BOOL in WebHTMLViewPrivate to track subview changes (debug only.)
  907. 2007-08-17 Anders Carlsson <andersca@apple.com>
  908. Reviewed by Dave Hyatt.
  909. <rdar://problem/5379040>
  910. REGRESSION (Tiger-Leopard): ADOBE: Safari calls NPP_SetWindow with bad values sometimes
  911. Pass the right size when creating the views.
  912. * WebCoreSupport/WebFrameBridge.mm:
  913. (-[WebFrameBridge viewForPluginWithFrame:URL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  914. * WebCoreSupport/WebFrameLoaderClient.h:
  915. * WebCoreSupport/WebFrameLoaderClient.mm:
  916. (WebFrameLoaderClient::createPlugin):
  917. 2007-08-13 Geoffrey Garen <ggaren@apple.com>
  918. Reviewed by Dave Hyatt.
  919. WebKit changes to support new cache eviction model in WebCore.
  920. * WebView/WebPreferences.m:
  921. (+[WebPreferences initialize]): Modified to reflect new API in WebCore.
  922. * WebView/WebView.mm:
  923. (+[WebView _initializeCacheSizesIfNecessary]): Slightly increased cache
  924. size on low memory systems to avoid affecting the PLT for now.
  925. 2007-08-15 Timothy Hatcher <timothy@apple.com>
  926. Reviewed by Darin.
  927. <rdar://problem/5410937> HIWebView in SimpleCarbonWeb doesn't seem to be getting adequate invalidation when window is resized
  928. HIWebViewCreate now just returns a HIViewRef created with HICocoaViewCreate. This eliminates lots of old code and
  929. makes HIWebView a better citizen starting with Leopard. The old code paths are still needed for Tiger, so now
  930. most of the files in the WebKit/Carbon directory are #ifdef BUILDING_ON_TIGER.
  931. The Tiger code is unchanged and dosen't exhibit the invalidation problem when the window resizes.
  932. * Carbon/CarbonUtils.m:
  933. (WebInitForCarbon): #ifdef BUILDING_ON_TIGER portions of this code that is not needed on Leopard.
  934. * Carbon/CarbonWindowAdapter.h: #ifdef BUILDING_ON_TIGER
  935. * Carbon/CarbonWindowAdapter.m: Ditto.
  936. * Carbon/CarbonWindowContentView.h: Ditto.
  937. * Carbon/CarbonWindowContentView.m: Ditto.
  938. * Carbon/CarbonWindowFrame.h: Ditto.
  939. * Carbon/CarbonWindowFrame.m: Ditto.
  940. * Carbon/HIViewAdapter.h: Ditto.
  941. * Carbon/HIViewAdapter.m: Ditto.
  942. * Carbon/HIWebView.h: Consolidate two #ifdef __OBJC__ blocks into one.
  943. * Carbon/HIWebView.m: Implement Leopard specific HIWebViewCreate, HIWebViewCreateWithClass and HIWebViewGetWebView.
  944. (HIWebViewCreate): Call HIWebViewCreateWithClass passing [WebView class].
  945. (HIWebViewCreateWithClass): Call HICocoaViewCreate with an instance of the class passed in.
  946. (HIWebViewGetWebView): Call HICocoaViewGetView.
  947. 2007-08-14 Brady Eidson <beidson@apple.com>
  948. Reviewed by Darin, John, Maciej, Oliver, and Tim
  949. <rdar://problem/5394708> - Crash on launch with corrupt icon database
  950. Expose some new SPI to help recover from this case should it happen again
  951. * Misc/WebIconDatabase.mm:
  952. (-[WebIconDatabase init]): Use the new _databaseDirectory to determine where to open the database on disk
  953. (+[WebIconDatabase _checkIntegrityBeforeOpening]): Tell the icon database to check integrity when it opens
  954. (-[WebIconDatabase _databaseDirectory]): Moved the database-directory-determining logic here as it's now used in two places
  955. * Misc/WebIconDatabasePrivate.h: Added _checkIntegrityBeforeOpening SPI for clients to give hints about when the
  956. integrity check should run
  957. 2007-08-12 Alexey Proskuryakov <ap@webkit.org>
  958. Reviewed by Darin.
  959. http://bugs.webkit.org/show_bug.cgi?id=4648
  960. Shockwave unable to load GZip'd text resources when server sends Content-Length header
  961. * Plugins/WebBaseNetscapePluginStream.mm:
  962. (-[WebBaseNetscapePluginStream startStreamWithResponse:]): Don't trust
  963. -[NSURLResponse expectedContentLength] if Content-Encoding is not identity.
  964. 2007-08-10 Timothy Hatcher <timothy@apple.com>
  965. Reviewed by Mark Rowe.
  966. <rdar://problem/5403302> HIWebView.h should be #ifdefed out for 64-bit
  967. * Carbon/HIWebView.h: #ifdef out the header in 64-bit. Adds a comment about 32-bit only.
  968. * Carbon/CarbonUtils.h: Ditto.
  969. 2007-08-10 Timothy Hatcher <timothy@apple.com>
  970. Reviewed by Adam.
  971. <rdar://problem/5394449> Stop using some Carbon UI APIs for 64 bit
  972. Disable NPObject use in 64-bit on Mac OS X. Also generate the 64-bit export file.
  973. * Configurations/WebKit.xcconfig: Point to the generated 64-bit export file.
  974. * Plugins/WebBasePluginPackage.h:
  975. * Plugins/npfunctions.h: #ifdef out this header in 64-bit on Mac OS X.
  976. * WebKit.LP64.exp: Removed.
  977. * WebKit.xcodeproj/project.pbxproj: Generate the the 64-bit export file.
  978. * WebKitPrefix.h: Define WTF_USE_NPOBJECT.
  979. 2007-08-10 Anders Carlsson <andersca@apple.com>
  980. Reviewed by Geoff.
  981. <rdar://problem/5390568>
  982. REGRESSION: -[WebFrame loadHTMLString:baseURL:] leaks the data source
  983. If the identifier is not in the map, just bail out instead of asserting. This is a better fix for
  984. <rdar://problem/5133420> because WebCore shouldn't have to worry about the lifetime of WebKit objects.
  985. * WebView/WebDocumentLoaderMac.mm:
  986. (WebDocumentLoaderMac::decreaseLoadCount):
  987. 2007-08-10 Oliver Hunt <oliver@apple.com>
  988. Reviewed by Darin.
  989. Fixed <rdar://problem/5000470> REGRESSION: ATOK IM: reconvert returns incorrect symbol due to inconsistent range domains in TSM by working around <rdar://problem/5400551> [NSAttributedString(WebKitExtras) _web_attributedStringFromRange:] adds whitespace to the requested range
  990. We truncate the returned string to the expected length.
  991. * WebView/WebHTMLView.mm:
  992. (-[WebHTMLView attributedSubstringFromRange:]):
  993. 2007-08-09 Mark Rowe <mrowe@apple.com>
  994. Reviewed by Antti.
  995. <rdar://problem/5400709> Versioning in debug and release builds should include minor and tiny version before +
  996. * Configurations/Version.xcconfig:
  997. * WebKit.xcodeproj/project.pbxproj: Add a shell script phase to make to dependency between
  998. Version.xcconfig and Info.plist explicit to Xcode.
  999. 2007-08-08 Kevin Decker <kdecker@apple.com>
  1000. Reviewed by Anders Carlsson.
  1001. Fixed: <rdar://problem/5394449> Stop using some Carbon UI APIs for 64 bit
  1002. #ifdef'd out Netscape style plug-ins on 64-bit because Mac OS X doesn't support 64-bit Carbon UI.
  1003. * Plugins/WebBaseNetscapePluginStream.h:
  1004. * Plugins/WebBaseNetscapePluginStream.mm:
  1005. * Plugins/WebBaseNetscapePluginView.h:
  1006. * Plugins/WebBaseNetscapePluginView.mm:
  1007. (+[WebBaseNetscapePluginView getCarbonEvent:]):
  1008. (TSMEventHandler):
  1009. * Plugins/WebBaseNetscapePluginViewInternal.h:
  1010. * Plugins/WebBaseNetscapePluginViewPrivate.h:
  1011. * Plugins/WebBasePluginPackage.m:
  1012. (+[WebBasePluginPackage pluginWithPath:]):
  1013. * Plugins/WebNetscapePluginEmbeddedView.h:
  1014. * Plugins/WebNetscapePluginEmbeddedView.mm:
  1015. * Plugins/WebNetscapePluginPackage.h:
  1016. * Plugins/WebNetscapePluginPackage.m:
  1017. * Plugins/WebNetscapePluginStream.h:
  1018. * Plugins/WebNetscapePluginStream.mm:
  1019. * Plugins/WebPluginDatabase.m:
  1020. (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
  1021. * Plugins/npapi.m:
  1022. * WebCoreSupport/WebFrameBridge.mm:
  1023. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  1024. * WebView/WebFrame.mm:
  1025. * WebView/WebFramePrivate.h:
  1026. * WebView/WebHTMLView.mm:
  1027. (-[NSArray _web_makePluginViewsPerformSelector:withObject:]):
  1028. * WebView/WebHTMLViewInternal.h:
  1029. 2007-08-07 David Hyatt <hyatt@apple.com>
  1030. Fix a botched backout of the Quicktime plugin clipping fix that broke Java. The plugin view should not
  1031. be set to autosize with the parent view. Also, cleanup of script objects was removed accidentally as
  1032. well.
  1033. Reviewed by olliej
  1034. * Plugins/WebPluginController.mm:
  1035. (-[WebPluginController destroyPlugin:]):
  1036. (-[WebPluginController destroyAllPlugins]):
  1037. * WebCoreSupport/WebFrameBridge.mm:
  1038. (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
  1039. 2007-08-03 Brady Eidson <beidson@apple.com>
  1040. Reviewed by Oliver
  1041. Fix for http://bugs.webkit.org/show_bug.cgi?id=14824 and <rdar://problem/5372989>
  1042. When unregistering a MIMEType, remove it from the WebCore registry unconditionally
  1043. When registrying a MIMEType whose view class is WebHTMLView, add it to the WebCore registry
  1044. * WebView/WebView.mm:
  1045. (+[WebView _unregisterViewClassAndRepresentationClassForMIMEType:]):
  1046. (+[WebView _registerViewClass:representationClass:forURLScheme:]):
  1047. (+[WebView registerViewClass:representationClass:forMIMEType:]):
  1048. 2007-08-03 Timothy Hatcher <timothy@apple.com>
  1049. Reviewed by Mark Rowe.
  1050. Correct the bundle version check to work in Debug and Release builds too.
  1051. * WebKit.xcodeproj/project.pbxproj:
  1052. 2007-08-02 Brady Eidson <beidson@apple.com>
  1053. Reviewed by Tim
  1054. <rdar://problem/5381463> - setMIMETypesShownAsHTML mutates while enumerating
  1055. * WebView/WebView.mm:
  1056. (+[WebView setMIMETypesShownAsHTML:]): Copy the dictionary before we work with it.
  1057. 2007-08-02 Alice Liu <alice.liu@apple.com>
  1058. Reviewed by Kevin McCullough.
  1059. fixed <rdar://problem/5310312> REGRESSION: javascript is mis-escaped at http://labs.zarate.org/passwd causing bookmarklet to break
  1060. * Misc/WebNSURLExtras.mm:
  1061. (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
  1062. (-[NSURL _web_userVisibleString]):
  1063. (-[NSURL _web_URLWithLowercasedScheme]):
  1064. (-[NSURL _web_dataForURLComponentType:]):
  1065. These 4 changes are just casting changes.
  1066. (-[NSString _webkit_stringByReplacingValidPercentEscapes]):
  1067. This change replaces the call to an NSURL method with a webcore one that doesn't abort the escaping effort once an illegal character is encountered.
  1068. 2007-08-01 Anders Carlsson <andersca@apple.com>
  1069. Fix build.
  1070. * Misc/WebNSURLExtras.mm:
  1071. (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
  1072. (-[NSURL _web_userVisibleString]):
  1073. (-[NSURL _web_URLWithLowercasedScheme]):
  1074. (-[NSURL _web_dataForURLComponentType:]):
  1075. 2007-08-01 Alice Liu <alice.liu@apple.com>
  1076. Reviewed by .
  1077. Making WebNSURLExtras objc++
  1078. * Misc/WebNSURLExtras.m: Removed.
  1079. * Misc/WebNSURLExtras.mm: Copied from WebKit/Misc/WebNSURLExtras.m.
  1080. * WebKit.xcodeproj/project.pbxproj:
  1081. 2007-08-01 Darin Adler <darin@apple.com>
  1082. Reviewed by Anders Carlsson and Kevin Decker.
  1083. - fix <rdar://problem/5377432> Removal of MakeDataExecutable from 64-bit breaks WebKit build
  1084. The trick was to ifdef out more of the code that's only needed to support CFM, which exists
  1085. only for 32-bit PowerPC.
  1086. * Plugins/WebNetscapePluginPackage.h: Define a SUPPORT_CFM symbol in this internal header when
  1087. we support CFM. We support it only on 32-bit PowerPC. Only define the isBundle, isCFM, and
  1088. connID fields when SUPPORT_CFM is on. Also use ResFileRefNum instead of SInt16.
  1089. * Plugins/WebNetscapePluginPackage.m: Only compile the function pointer and transition vector
  1090. functions when SUPPORT_CFM is on.
  1091. (-[WebNetscapePluginPackage openResourceFile]): Put the non-bundle case inside a SUPPORT_CFM
  1092. ifdef, since all non-CFM plug-ins are bundles.
  1093. (-[WebNetscapePluginPackage closeResourceFile:]): Ditto.
  1094. (-[WebNetscapePluginPackage _initWithPath:]): Use SUPPORT_CFM to compile out the code for
  1095. non-bundle and bundle-based CFM plug-ins, and code that sets isBundle and isCFM.
  1096. (-[WebNetscapePluginPackage executableType]): Put the CFM case inside SUPPORT_CFM.
  1097. (-[WebNetscapePluginPackage load]): Put the non-bundle and CFM cases inside SUPPORT_CFM.
  1098. There was a bit of dead code here.
  1099. (-[WebNetscapePluginPackage _unloadWithShutdown:]): Put the non-bundle case inside
  1100. SUPPORT_CFM.
  1101. 2007-07-31 Timothy Hatcher <timothy@apple.com>
  1102. Reviewed by Oliver and Beth.
  1103. <rdar://problem/5211271> ADOBE Leopard 9A410: At the first Launching InDesign after deactivate, EULA page gets blanked.
  1104. Check for more Adobe applications that need the frame reload quirk. Also cache the answer
  1105. so the version check dosen't happen more than once.
  1106. * WebView/WebView.mm:
  1107. (-[WebView _needsAdobeFrameReloadingQuirk]):
  1108. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  1109. 2007-07-30 Adele Peterson <adele@apple.com>
  1110. Reviewed by Oliver.
  1111. Fix for <rdar://problem/5308020> REGRESSION: Command-N with Dvorak-Qwerty keyboard layout stopped working inside web page text fields
  1112. * WebView/WebHTMLView.mm: (-[WebHTMLView _handleStyleKeyEquivalent:]):
  1113. The input method may have modified the character we get, so don't use charactersIgnoringModifiers to interpret the character we get.
  1114. 2007-07-30 John Sullivan <sullivan@apple.com>
  1115. Reviewed by Darin
  1116. - fixed <rdar://problem/5216176> Need WebKit SPI to allow clients using embedded WebViews to avoid
  1117. clipping ends of some printed pages
  1118. This provides Mail, and other clients that print views that embed WebViews, a way to ensure that
  1119. the HTML is laid out for printing before pagination occurs.
  1120. * WebView/WebHTMLViewPrivate.h:
  1121. new SPI method -_layoutForPrinting
  1122. * WebView/WebHTMLView.mm:
  1123. (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
  1124. new method, just like existing _web_setPrintingModeRecursive except passes YES for adjustViewSize
  1125. (-[WebHTMLView _layoutForPrinting]):
  1126. new SPI method, sets printing mode temporarily to adjust the view size for printing
  1127. (-[NSView _web_setPrintingModeRecursiveAndAdjustViewSize]):
  1128. new helper method to do the recursion
  1129. 2007-07-30 Adele Peterson <adele@apple.com>
  1130. Reviewed by Darin.
  1131. Fix for <rdar://problem/5367919> A crash occurs at WebCore::Frame::isFrameSet() when attempting to print a iframe before it loads at http://www.monster.com/
  1132. * WebView/WebHTMLView.mm: (-[WebHTMLView knowsPageRange:]): Nil check for frame.
  1133. 2007-07-30 Anders Carlsson <andersca@apple.com>
  1134. Reviewed by Darin.
  1135. <rdar://problem/5370710>
  1136. REGRESSION: After switching from Bookmark view, the Find Banner won't appear while displaying a PDF file
  1137. Implement hasHTMLView.
  1138. * WebCoreSupport/WebFrameLoaderClient.h:
  1139. * WebCoreSupport/WebFrameLoaderClient.mm:
  1140. (WebFrameLoaderClient::hasHTMLView):
  1141. 2007-07-30 Justin Garcia <justin.garcia@apple.com>
  1142. Reviewed by Tristan.
  1143. <rdar://problem/5098931> Attachments are lost when they are moved into a ToDo after a delete
  1144. Mail needs to be asked if it is OK to do the content movement that happens
  1145. after a deleting in a situation like this one:
  1146. <div contenteditable="plaintext-only">foo</div><div>^bar</div>
  1147. so that they can prevent the move or so that they can save content that
  1148. will be stripped by the move. This could have been done with shouldInsertNode
  1149. and a new WebViewInsertAction for "moves", but WebKit clients like Mail and
  1150. DashCode think that a shouldInsert* means that the user pasted something and
  1151. perform actions only appropriate for pastes. This change is less risky because
  1152. it won't require those clients to change their code.
  1153. * DefaultDelegates/WebDefaultEditingDelegate.m:
  1154. (-[WebDefaultEditingDelegate webView:shouldMoveRangeAfterDelete:replacingRange:]):
  1155. * WebCoreSupport/WebEditorClient.h:
  1156. * WebCoreSupport/WebEditorClient.mm:
  1157. (WebEditorClient::shouldMoveRangeAfterDelete):
  1158. * WebView/WebEditingDelegatePrivate.h:
  1159. 2007-07-29 Adele Peterson <adele@apple.com>
  1160. Reviewed by John.
  1161. WebKit part of fix for <rdar://problem/5102522> REGRESSION: Can't tab to webview that doesn't have editable content
  1162. * WebView/WebHTMLView.mm: (-[WebHTMLView becomeFirstResponder]): Call new setInitialFocus method instead of advanceFocus.
  1163. 2007-07-27 Darin Adler <darin@apple.com>
  1164. - fix build
  1165. * WebKitPrefix.h: Removed the USING_WEBCORE_XXX definitions.
  1166. * WebView/WebHTMLView.mm:
  1167. (-[WebHTMLView delete:]): Fixed this to use WebCore again; I accidentally revived a dead
  1168. code path that didn't work in the last patch!
  1169. (-[WebHTMLView deleteToMark:]): Ditto.
  1170. (-[WebHTMLView copy:]): Removed the unused side of the ifdef.
  1171. (-[WebHTMLView cut:]): Ditto.
  1172. (-[WebHTMLView paste:]): Ditto.
  1173. 2007-07-27 Darin Adler <darin@apple.com>
  1174. Reviewed by Tim Hatcher and Oliver Hunt.
  1175. - fix <rdar://problem/5355815> webView:doCommandBySelector: isn't getting called for copy:
  1176. Added code so that webView:doCommandBySelector: is called for every command.
  1177. * WebView/WebHTMLView.mm: Made 44 of the commands use the WEBCORE_COMMAND macro instead
  1178. of being handwritten. For all the others, added invocation of COMMAND_PROLOGUE macro at
  1179. the start of the command.
  1180. (-[WebHTMLView callDelegateDoCommandBySelectorIfNeeded:]): Added.
  1181. (-[WebHTMLView callWebCoreCommand:]): Added.
  1182. (-[WebHTMLView delete:]): Removed unused code path -- easy to bring back some day, but
  1183. we don't need it compiled in.
  1184. (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]): Changed so this doesn't
  1185. call deleteBackward: any more so we don't call the delegate two times.
  1186. (-[WebHTMLView deleteToMark:]): Changed so this doesn't call delete: any more so we don't
  1187. call the delegate two times.
  1188. (-[WebHTMLView selectToMark:]): Changed so this doesn't call setMark: any more so we don't
  1189. call the delegate two times.
  1190. (-[WebHTMLView doCommandBySelector:]): Added code to set the private variable
  1191. selectorForDoCommandBySelector. This allows callDelegateDoCommandBySelectorIfNeeded to
  1192. detect that we've already called the delegate and avoids calling it twice.
  1193. * WebView/WebHTMLViewInternal.h: Added the selectorForDoCommandBySelector field.
  1194. 2007-07-26 Alexey Proskuryakov <ap@webkit.org>
  1195. Reviewed by Oliver.
  1196. http://bugs.webkit.org/show_bug.cgi?id=14733
  1197. Add a logging channel for text input
  1198. <rdar://problem/5364667>
  1199. * Misc/WebKitLogging.h:
  1200. * Misc/WebKitLogging.m:
  1201. (WebKitInitializeLoggingChannelsIfNecessary):
  1202. * WebView/WebHTMLView.mm:
  1203. (-[WebHTMLView validAttributesForMarkedText]):
  1204. (-[WebHTMLView textStorage]):
  1205. (-[WebHTMLView characterIndexForPoint:]):
  1206. (-[WebHTMLView firstRectForCharacterRange:]):
  1207. (-[WebHTMLView selectedRange]):
  1208. (-[WebHTMLView markedRange]):
  1209. (-[WebHTMLView attributedSubstringFromRange:]):
  1210. (-[WebHTMLView hasMarkedText]):
  1211. (-[WebHTMLView unmarkText]):
  1212. (-[WebHTMLView setMarkedText:selectedRange:]):
  1213. (-[WebHTMLView doCommandBySelector:]):
  1214. (-[WebHTMLView insertText:]):
  1215. 2007-07-26 Darin Adler <darin@apple.com>
  1216. - fix Tiger build
  1217. * Misc/WebTypesInternal.h: For use inside the library, use NSInteger and
  1218. NSUInteger, just like on Leopard. WebNSInteger and WebNSUInteger are still
  1219. present, but they are used in public and private headers only.
  1220. * Carbon/CarbonWindowAdapter.m:
  1221. * Carbon/CarbonWindowFrame.m:
  1222. * DefaultDelegates/WebScriptDebugServer.m:
  1223. * History/WebBackForwardList.mm:
  1224. * Misc/WebDownload.m:
  1225. * Misc/WebSearchableTextView.m:
  1226. * Plugins/WebBaseNetscapePluginView.mm:
  1227. * WebCoreSupport/WebFrameLoaderClient.mm:
  1228. * WebView/WebHTMLView.mm:
  1229. * WebView/WebPDFView.mm:
  1230. * WebView/WebView.mm:
  1231. * WebView/WebViewInternal.h:
  1232. Update all implementation files and internal headers to use NSInteger and
  1233. NSUInteger rather than WebNSInteger and WebNSUInteger.
  1234. 2007-07-26 John Sullivan <sullivan@apple.com>
  1235. Reviewed by Kevin Decker
  1236. - fixed <rdar://problem/5362989> Searching a pdf in some modes shows hilights for all instances
  1237. of the word, even those not on the current page
  1238. It turns out that there were three different issues here, all contributing to incorrect display
  1239. of multiple matches for PDF pages in certain display modes. (1) in non-continuous display modes,
  1240. we weren't updating the match rects when the displayed page is changed with page up/down (e.g.);
  1241. (2) the mechanism to update the match rects on scrolling was busted except for the first scroll
  1242. away from 0,0; (3) the PDFKit API returns selection bounds for non-displayed pages in non-continuous
  1243. modes just as if they were the displayed pages. This patch fixes all three issues.
  1244. * WebView/WebPDFView.h:
  1245. made ivar name even longer
  1246. * WebView/WebPDFView.mm:
  1247. (-[WebPDFView setPDFDocument:]):
  1248. updated for ivar name change
  1249. (-[WebPDFView viewDidMoveToWindow]):
  1250. observe page-change notifications as well as the others; this is necessary because in the
  1251. non-continuous modes the view can be completely updated without any scrolling involved (problem 1)
  1252. (-[WebPDFView viewWillMoveToWindow:]):
  1253. stop observing page-change notifications
  1254. (-[WebPDFView rectsForTextMatches]):
  1255. skip any pages that aren't visible; this avoids treating matches on non-displayed non-continous
  1256. modes as if they were on the displayed page (problem 3)
  1257. (-[WebPDFView _PDFDocumentViewMightHaveScrolled:]):
  1258. after checking whether scroll position has changed since we last checked it, remember the new
  1259. one (d'oh!) (problem 2)
  1260. (-[WebPDFView _scaleOrDisplayModeOrPageChanged:]):
  1261. renamed to include page changes
  1262. (-[WebPDFView _visiblePDFPages]):
  1263. new method, returns the set of pages that are at least partly visible
  1264. 2007-07-24 Oliver Hunt <oliver@apple.com>
  1265. Reviewed by Adam and Justin.
  1266. <rdar://problem/5141779> WebView editableDOMRangeForPoint: & moveDragCaretToPoint: returns last position in DOMText range
  1267. editableDOMRangeForPoint:, moveDragCaretToPoint:, and removeDragCaret now call directly into
  1268. WebCore without relying on bridge look up through the now removed _bridgeAtPoint:.
  1269. * WebKit.xcodeproj/project.pbxproj:
  1270. * WebView/WebView.mm:
  1271. (-[WebView moveDragCaretToPoint:]):
  1272. (-[WebView removeDragCaret]):
  1273. (-[WebView editableDOMRangeForPoint:]):
  1274. 2007-07-24 Kevin Decker <kdecker@apple.com>
  1275. Reviewed by Anders.
  1276. <rdar://problem/4699455> REGRESSION (Safari 2->Safari 3): Adobe Reader 7.0.8 plug-in doesn't work
  1277. * Plugins/WebNetscapePluginEmbeddedView.h: Added a #define that renames this class to "WebNetscapePluginDocumentView"
  1278. This is necessary because the Adobe 7.x Acrobat plug-in has a hard coded check for a view named "WebNetscapePluginDocumentView"
  1279. and will not function correctly if it doesn't find a view in the hierarchy without the old class name.
  1280. 2007-07-24 Mark Rowe <mrowe@apple.com>
  1281. Reviewed by Antti.
  1282. <rdar://problem/5356666> NSMenuItem's seen leaking on buildbot
  1283. * WebCoreSupport/WebContextMenuClient.mm:
  1284. (WebContextMenuClient::contextMenuItemSelected): Release platformItem as we were transferred its ownership by releasePlatformDescription.
  1285. 2007-07-23 Oliver Hunt <oliver@apple.com>
  1286. Reviewed by Darin.
  1287. We have to be able to support insertText: followed by doCommandBySelector: in
  1288. order to support the 2- and 3-Set Korean and RuSwitcher IMs at least.
  1289. * WebView/WebHTMLView.mm:
  1290. (-[WebHTMLView insertText:]):
  1291. 2007-07-23 Alice Liu <alice.liu@apple.com>
  1292. Reverting change 24535 now that a solution has been found that doesn't
  1293. involve exposing an interface unnecessarily.
  1294. * WebView/WebHTMLView.mm:
  1295. * WebView/WebHTMLViewPrivate.h:
  1296. 2007-07-23 Alice Liu <alice.liu@apple.com>
  1297. Reviewed by Oliver Hunt.
  1298. Expose [WebHTMLView hasMarkedText] to
  1299. fix <rdar://problem/4830074> autocomplete breaks Japanese typing
  1300. * WebView/WebHTMLView.mm:
  1301. * WebView/WebHTMLViewPrivate.h:
  1302. 2007-07-22 Darin Adler <darin@apple.com>
  1303. * StringsNotToBeLocalized.txt: Updated for recent changes.
  1304. 2007-07-21 Adam Roben <aroben@apple.com>
  1305. Fix REGRESSION: Right-click/control-click broken
  1306. http://bugs.webkit.org/show_bug.cgi?id=14658
  1307. <rdar://problem/5346830>
  1308. Reviewed by Mitz.
  1309. * WebCoreSupport/WebContextMenuClient.mm:
  1310. (fixMenusToSendToOldClients): Update defaultItemsCount after removing
  1311. items from the defaultItems array.
  1312. 2007-07-20 Oliver Hunt <oliver@apple.com>
  1313. Reviewed by Adele.
  1314. <rdar://problem/5319438> REGRESSION: Cannot paste into an active inline input area (14522)
  1315. http://bugs.webkit.org/show_bug.cgi?id=14522
  1316. AppKit sends noop: to -[WebHTMLView doCommandBySelector:] when an IM does not handle event,
  1317. we now check this as it is necessary to work around some IMs that do send messages
  1318. (such as insertText: rather than unmarkText: to confirm a composition)
  1319. * WebView/WebHTMLView.mm:
  1320. (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
  1321. (-[WebHTMLView doCommandBySelector:]):
  1322. * WebView/WebHTMLViewInternal.h:
  1323. 2007-07-20 Brady Eidson <beidson@apple.com>
  1324. Reviewed by Adele and Andersca
  1325. <rdar://problem/5336105> - WebBackForwardList created from scratch is unusable (always leads to crash)
  1326. * History/WebBackForwardList.mm:
  1327. (-[WebBackForwardList init]): Have a default initializer that uses an empty BackFowardList not associated with a page.
  1328. * WebView/WebFrame.mm:
  1329. (kit): For clarity's sake, this should return nil, not 0
  1330. 2007-07-20 Justin Garcia <justin.garcia@apple.com>
  1331. Reviewed by Darin.
  1332. <rdar://problem/5109817> Ctrl-click on word in non-editable text doesn't select it
  1333. * WebCoreSupport/WebEditorClient.h:
  1334. * WebCoreSupport/WebEditorClient.mm: Removed the method
  1335. for enabling/disabling word selection on right click.
  1336. * WebView/WebView.mm: Ditto.
  1337. * WebView/WebViewPrivate.h: Removed the getter/setter entirely,
  1338. it was in a private Category for Mail, but wasn't used by Mail
  1339. on Tiger or Leopard, they apparently implement word selection on
  1340. their own.
  1341. 2007-07-20 Timothy Hatcher <timothy@apple.com>
  1342. Reviewed by Darin.
  1343. <rdar://problem/5199812> WebView needs to adopt viewWillDraw (moving off of _propagateDirtyRectsToOpaqueAncestors)
  1344. <rdar://problem/5017301> REGRESSION: Scroller in Widget Manager splits down the middle while scrolling
  1345. On Leopard _propagateDirtyRectsToOpaqueAncestors is no longer called by AppKit. Also marking new dirty rects
  1346. underneath _recursiveDisplayRectIfNeededIgnoringOpacity will wait until the next runloop to draw them,
  1347. causing rendering to happen in two steps instead of one as WebCore expected.
  1348. * WebView/WebHTMLView.mm:
  1349. (-[WebHTMLView _topHTMLView]): Move to the file internal category so we can use it in viewWillDraw.
  1350. (-[WebHTMLView _isTopHTMLView]): Ditto.
  1351. (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): #ifdef for Tiger only.
  1352. (-[WebHTMLView viewWillDraw]): Do a recursive layout if this is the top WebHTMLView.
  1353. (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
  1354. Don't do layout here on Leopard since viewWillDraw handled it.
  1355. (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]): Ditto.
  1356. 2007-07-20 Beth Dakin <bdakin@apple.com>
  1357. Reviewed by Tim and Geoff.
  1358. Fix for <rdar://problem/5346855> Mail crashes at
  1359. WebCore::RenderTableSection:paint + 846 when attempting to display
  1360. a HTML based message
  1361. After reapplying styles, the RenderView needs layout. However,
  1362. layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize used to
  1363. return early if the WebHTMLView itself does not need layout.
  1364. Because the WebHTMLView is not necessarily in synch with the
  1365. RenderTree, returning early here can get us into a bad situation
  1366. where we paint before laying out the Render Tree. This patch checks
  1367. both the WebHTMLView and the bridge (which checks the RenderView,
  1368. etc), so that we do not return early without laying out the Render
  1369. Tree.
  1370. Some day, we should phase out WebHTMLView keeping track of
  1371. needsLayout at all. But that is a bit beyond the scope of this fix.
  1372. * WebView/WebHTMLView.mm:
  1373. (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
  1374. 2007-07-20 John Sullivan <sullivan@apple.com>
  1375. Reviewed by Darin Adler and David Harrison
  1376. - fixed <rdar://problem/5307075> REGRESSION: Bottom of some printed pages are truncated
  1377. The "avoid orphan" code I added a year ago was causing the page to be imaged to a larger
  1378. height (good), but not shrinking everything to compensate (bad). Bad one-year-ago me!
  1379. * WebView/WebHTMLViewInternal.h:
  1380. added avoidingPrintOrphan boolean
  1381. * WebView/WebHTMLView.mm:
  1382. (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
  1383. clear _private->avoidingPrintOrphan when clearing _private->printing
  1384. (-[WebHTMLView _scaleFactorForPrintOperation:]):
  1385. take _private->avoidingPrintOrphan into account when computing the scale factor
  1386. (-[WebHTMLView knowsPageRange:]):
  1387. set _private->avoidingPrintOrphan when we're shrinking to avoid an orphan
  1388. 2007-07-19 Adam Roben <aroben@apple.com>
  1389. Fix <rdar://problem/5344972> REGRESSION: A error dialog occurs when
  1390. attempting to ctrl-click in a iChat message window (webview)
  1391. Reviewed by Oliver.
  1392. * WebCoreSupport/WebContextMenuClient.mm:
  1393. (fixMenusToSendToOldClients): Don't check for the Inspect Element item
  1394. if we have fewer than 2 items.
  1395. 2007-07-18 Geoffrey Garen <ggaren@apple.com>
  1396. Reviewed by Dave Hyatt.
  1397. <rdar://problem/5345099>
  1398. Reduced default WebCore cache size from 32 MB to 23 MB on systems below
  1399. 512 MB RAM. This improves RPRVT usage in the Safari pageout test by
  1400. ~10% on a system with 384 MB RAM.
  1401. At 23 MB, no extra resources are evicted from the cache during a PLT
  1402. run, so this is a safe change PLT-wise. 23 MB is also seems to be a
  1403. generous number in real world usage.
  1404. * WebView/WebPreferences.m:
  1405. (+[WebPreferences initialize]):
  1406. 2007-07-18 Anders Carlsson <andersca@apple.com>
  1407. Reviewed by Geoff.
  1408. <rdar://problem/5341133> REGRESSION (Safari 2->Safari 3): DjVu plug-in doesn't load in Safari 3
  1409. The DjVu plug-in uses the size of the passed in NPNetscapeFuncs struct to copy it over to a NPNetscapeFuncs struct
  1410. whose size was determined when DjVu was compiled. This means that when we add extra functions to the vtable,
  1411. DjVu will segfault copying it into the (too small) destination struct.
  1412. Fix this by special-casing the DjVu plug-in and setting the NPNetscapeFuncs size to be the same size as what DjVu expects.
  1413. * Plugins/WebNetscapePluginPackage.m:
  1414. (-[WebNetscapePluginPackage _applyDjVuWorkaround]):
  1415. (-[WebNetscapePluginPackage load]):
  1416. 2007-07-18 Timothy Hatcher <timothy@apple.com>
  1417. Reviewed by Adam.
  1418. <rdar://problem/5343767> Should have a way to disable the Web Inspector
  1419. Adds a new DisableWebKitDeveloperExtras default that will force the Web Inspector to be disabled.
  1420. This overrides the WebKitDeveloperExtras and IncludeDebugMenu default. It also disables
  1421. the Web Inspector in Debug builds.
  1422. * WebView/WebView.mm:
  1423. (+[WebView _developerExtrasEnabled]): Check for the DisableWebKitDeveloperExtras default.
  1424. (-[WebView _commonInitializationWithFrameName:groupName:]): Make a new WebInspectorClient when making the Page.
  1425. 2007-07-18 Anders Carlsson <andersca@apple.com>
  1426. Build fix.
  1427. * Misc/WebNSAttributedStringExtras.mm:
  1428. 2007-07-18 Sam Weinig <sam@webkit.org>
  1429. Rubber-stamped by Adam Roben.
  1430. Update after renaming MimeTypeRegistry to MIMETypeRegistry.
  1431. * Misc/WebNSPasteboardExtras.mm:
  1432. (-[NSPasteboard _web_writePromisedRTFDFromArchive:containsImage:]):
  1433. * WebCoreSupport/WebFrameBridge.mm:
  1434. (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
  1435. * WebView/WebDataSource.mm:
  1436. (-[WebDataSource _documentFragmentWithArchive:]):
  1437. * WebView/WebHTMLRepresentation.mm:
  1438. (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
  1439. (+[WebHTMLRepresentation supportedImageMIMETypes]):
  1440. * WebView/WebHTMLView.mm:
  1441. (-[WebHTMLView _imageExistsAtPaths:]):
  1442. 2007-07-18 Tristan O'Tierney <tristan@apple.com>
  1443. Reviewed by Maciej Stachowiak.
  1444. <rdar://problem/5341334> Alt-clicking a link in Safari does not register original URL info with gatekeeper
  1445. <rdar://problem/5342570> REGRESSION: A hang occurs when attempting to open a attached file from a .Mac web mail message
  1446. * WebCoreSupport/WebFrameLoaderClient.h:
  1447. Added a new method, setOriginalURLForDownload, for both download()
  1448. and startDownload() to share.
  1449. * WebCoreSupport/WebFrameLoaderClient.mm:
  1450. (WebFrameLoaderClient::download):
  1451. Moved all the gatekeeper code into setOriginalURLForDownload.
  1452. (WebFrameLoaderClient::setOriginalURLForDownload):
  1453. Same code that was in download() but moved into a single place for both
  1454. startDownload and download to use. Also returned the boolean logic
  1455. for detecting _wasUserGesture back to it's previous state, since my prior change
  1456. was incorrect. Additionally I found a loop index bug with backListCount and fixed it.
  1457. (WebFrameLoaderClient::startDownload):
  1458. Calls out to setOriginalURLForDownload after a download is created.
  1459. * WebView/WebView.mm:
  1460. (-[WebView _downloadURL:]):
  1461. Changed to return the WebDownload object created inside _downloadURL
  1462. * WebView/WebViewInternal.h:
  1463. Changed _downloadURL to return the WebDownload it creates.
  1464. 2007-07-17 Timothy Hatcher <timothy@apple.com>
  1465. Reviewed by Geoff.
  1466. <rdar://problem/5336267> loadData:MIMEType:textEncodingName:baseURL: doesn't like relative URLs
  1467. Get the absoluteURL from any user supplied NSURL before we pass it down to WebCore.
  1468. * WebView/WebFrame.mm:
  1469. (-[WebFrame _loadURL:referrer:intoChild:]):
  1470. (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
  1471. * WebView/WebView.mm:
  1472. (-[WebView userAgentForURL:]):
  1473. 2007-07-17 Adam Roben <aroben@apple.com>
  1474. Fix Bug 14324: Cannot remove/customize the "Inspect Element" contextual menu item
  1475. http://bugs.webkit.org/show_bug.cgi?id=14324
  1476. Only clients linking against new versions of WebKit will see the item.
  1477. I've maintained our behavior for old clients of not including the
  1478. Inspect Element item in the menu items passed to the UI delegate.
  1479. Reviewed by Tim.
  1480. * Misc/WebKitVersionChecks.h: Added a new constant.
  1481. * WebCoreSupport/WebContextMenuClient.mm:
  1482. (isPreInspectElementTagClient): Added.
  1483. (fixMenusToSendToOldClients): Return an array of items that should be
  1484. appended to the menu received from the delegate.
  1485. (fixMenusReceivedFromOldClients): Append the saved items to the array.
  1486. (WebContextMenuClient::getCustomMenuFromDefaultItems): Retain/release
  1487. the saved items.
  1488. 2007-07-17 Adam Roben <aroben@apple.com>
  1489. Remove WebContextMenuClient::shouldIncludeInspectElementItem
  1490. Reviewed by Tim.
  1491. * WebCoreSupport/WebContextMenuClient.h:
  1492. * WebCoreSupport/WebContextMenuClient.mm:
  1493. 2007-07-17 Adam Roben <aroben@apple.com>
  1494. Initialize Settings::developerExtrasEnabled
  1495. Reviewed by Tim.
  1496. * WebView/WebView.mm:
  1497. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  1498. 2007-07-17 Geoffrey Garen <ggaren@apple.com>
  1499. Build fix.
  1500. * WebView/WebFrame.mm:
  1501. (-[WebFrame _loadURL:referrer:intoChild:]):
  1502. * WebView/WebFramePrivate.h:
  1503. 2007-07-17 Tristan O'Tierney <tristan@apple.com>
  1504. Reviewed by Maciej Stachowiak.
  1505. <rdar://problem/5294691> Source of file is misrepresented if downloaded by typing in URL in Safari address bar
  1506. * WebCoreSupport/WebFrameLoaderClient.h:
  1507. * WebCoreSupport/WebFrameLoaderClient.mm:
  1508. (WebFrameLoaderClient::download):
  1509. Revised code to check the initial request's referrer before assuming it has a history to check.
  1510. 2007-07-16 Brady Eidson <beidson@apple.com>
  1511. Reviewed by Adam
  1512. Begin the arduous task of localizing FTP directory listings while removing a global initializer!
  1513. * English.lproj/Localizable.strings:
  1514. * WebCoreSupport/WebViewFactory.mm:
  1515. (-[WebViewFactory unknownFileSizeText]):
  1516. 2007-07-16 Adam Roben <aroben@apple.com>
  1517. Move printing from WebFrameBridge to WebChromeClient
  1518. Reviewed by Darin.
  1519. * WebCoreSupport/WebChromeClient.h: Updated for ChromeClient changes.
  1520. * WebCoreSupport/WebChromeClient.mm:
  1521. (WebChromeClient::print): Moved code from WebFrameBridge.
  1522. * WebCoreSupport/WebFrameBridge.mm: Removed -print.
  1523. 2007-07-16 Darin Adler <darin@apple.com>
  1524. * StringsNotToBeLocalized.txt: Update for recent changes.
  1525. 2007-07-16 John Sullivan <sullivan@apple.com>
  1526. Reviewed by Kevin Decker and Darin Adler
  1527. - fixed <rdar://problem/5337529> Holes in Find banner overlay on PDF pages are left in wrong place after changing scale
  1528. * WebView/WebPDFView.mm:
  1529. (-[WebPDFView _scaleOrDisplayModeChanged:]):
  1530. tell UI delegate that the entire PDF view has been redrawn
  1531. 2007-07-14 Brady Eidson <beidson@apple.com>
  1532. Reviewed by Sam Weinig
  1533. Initial check-in for <rdar://problem/3154486> - Supporting FTP directory listings in the browser
  1534. * WebView/WebPreferenceKeysPrivate.h: Added preference keys for the FTP template location, as well as to force
  1535. FTP directory listings, bypassing the policy delegate. This is necessary to test the new feature until browser
  1536. policy delegate support is added.
  1537. * WebView/WebPreferences.m:
  1538. (-[WebPreferences _setFTPDirectoryTemplatePath:]):
  1539. (-[WebPreferences _ftpDirectoryTemplatePath]):
  1540. (-[WebPreferences _setForceFTPDirectoryListings:]):
  1541. (-[WebPreferences _forceFTPDirectoryListings]):
  1542. * WebView/WebPreferencesPrivate.h:
  1543. * WebView/WebView.mm:
  1544. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  1545. 2007-07-13 Anders Carlsson <andersca@apple.com>
  1546. Reviewed by Maciej.
  1547. <rdar://problem/5290103> Assert failure when loading page with multipart resource
  1548. Don't try to call the delegate method if the resource object doesn't exist in the
  1549. identifier map. When a multipart resource has finished loading one part, it is removed from the
  1550. web view identifier map.
  1551. This is not an ideal fix, a better fix would be to special-case multipart resources and not remove
  1552. them when the first part has finished loading. I've filed <rdar://problem/5335034> to track doing that.
  1553. * WebCoreSupport/WebFrameLoaderClient.mm:
  1554. (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  1555. (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  1556. (WebFrameLoaderClient::dispatchDidReceiveResponse):
  1557. (WebFrameLoaderClient::willCacheResponse):
  1558. (WebFrameLoaderClient::dispatchDidReceiveContentLength):
  1559. (WebFrameLoaderClient::dispatchDidFinishLoading):
  1560. (WebFrameLoaderClient::dispatchDidFailLoading):
  1561. 2007-07-13 Timothy Hatcher <timothy@apple.com>
  1562. Reviewed by Oliver Hunt.
  1563. <rdar://problem/5333766> Can't include WebEditingDelegatePrivate.h
  1564. * WebView/WebEditingDelegatePrivate.h: Changed the include to be a framework include,
  1565. so other projects can use this header.
  1566. 2007-07-12 Anders Carlsson <andersca@apple.com>
  1567. Reviewed by Darin and Maciej.
  1568. <rdar://problem/5271096> panic after Safari stress test, caused by port leak
  1569. Replace uses of -[NSObject performSelector:withObject:afterDelay:] with CFRunLoopTimer. performSelector
  1570. causes the target (the WebHTMLView in this case) to be retained until the timer fires. Furthermore, when
  1571. running the PLT or iBench, the timers will not fire until the main loop is entered (usually after running all tests).
  1572. This means that the timers and ports will not be released until after the test has finished running.
  1573. * WebView/WebHTMLView.mm:
  1574. (-[WebHTMLViewPrivate dealloc]):
  1575. (-[WebHTMLView _cancelUpdateMouseoverTimer]):
  1576. (-[WebHTMLView _updateMouseoverWithFakeEvent]):
  1577. (-[WebHTMLView _updateMouseoverTimerCallback:]):
  1578. (-[WebHTMLView _frameOrBoundsChanged]):
  1579. (-[WebHTMLView _updateActiveState]):
  1580. (-[WebHTMLView _updateActiveStateTimerCallback:]):
  1581. (-[WebHTMLView viewWillMoveToWindow:]):
  1582. (-[WebHTMLView viewDidMoveToWindow]):
  1583. (-[WebHTMLView mouseDown:]):
  1584. (-[WebTextCompleteController dealloc]):
  1585. * WebView/WebHTMLViewInternal.h:
  1586. 2007-07-13 Mark Rowe <mrowe@apple.com>
  1587. Reviewed by Mitz.
  1588. Build fix. Stub out WebChromeClient::print.
  1589. * WebCoreSupport/WebChromeClient.h:
  1590. * WebCoreSupport/WebChromeClient.mm:
  1591. (WebChromeClient::print):
  1592. 2007-07-11 Timothy Hatcher <timothy@apple.com>
  1593. Reviewed by Oliver.
  1594. <rdar://problem/5108789> WEBVIEW: Drawing artifacts when dragging in IB
  1595. Interface Builder 3 is relying on KVO notifications for frameOrigin and frameSize,
  1596. among other standard NSView keys. Change automaticallyNotifiesObserversForKey to
  1597. return NO only for keys WebView manually fires notifications for.
  1598. * WebView/WebView.mm:
  1599. (+[WebView automaticallyNotifiesObserversForKey:]): Selectivly return NO for keys we manually fire.
  1600. (-[WebView _declaredKeys]): Code clean up.
  1601. 2007-07-10 Antti Koivisto <antti@apple.com>
  1602. Reviewed by John.
  1603. Fix <rdar://problem/4570550>
  1604. Hang in layout/layoutBlock/layoutBlockChildren preparing to print certain Mail messages
  1605. When printing from Mail, WebHTMLView is a subview of the view that is actually printed and does not
  1606. receive calls that would set it to printing mode. Method adjustPageHeightNew is called repeatedly (for each page) during
  1607. printing and it enables printing mode temporarily for each call. This triggers two full style recalcs and layouts
  1608. each time making printing at least O(n^2).
  1609. Instead of enabling printing mode and resetting it back immediatly do the resetting asynchronously, after
  1610. all adjustPageHeightNew calls are done. Normal Safari printing is not affected as adjustPageHeightNew is only
  1611. called in case WebHTMLView is embedded in the view that is being printed.
  1612. No automatic test possible, requires printing and non-Safari client.
  1613. * WebView/WebHTMLView.mm:
  1614. (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
  1615. 2007-07-10 Geoffrey Garen <ggaren@apple.com>
  1616. Reviewed by Maciej Stachowiak.
  1617. - Fixed <rdar://problem/5049509> REGRESSION(10.4.9-9A377a): REAP Suite
  1618. installer shows empty modal alert window (hangs) if user cancels during
  1619. "installing shared components" phase
  1620. Added Adobe installers to the family of apps that need a data load
  1621. loading quirk.
  1622. Added a linked-on-or-after check because this code is no longer
  1623. Tiger-only.
  1624. I tested this code on Tiger and Leopard.
  1625. * Misc/WebKitVersionChecks.h:
  1626. * WebKit.xcodeproj/project.pbxproj:
  1627. * WebView/WebDocumentLoaderMac.mm:
  1628. (needsDataLoadWorkaround):
  1629. (WebDocumentLoaderMac::setDataSource):
  1630. 2007-07-10 Darin Adler <darin@apple.com>
  1631. - fix build
  1632. * WebView/WebHTMLView.mm: Add include of ContextMenu.h.
  1633. 2007-07-10 Darin Adler <darin@apple.com>
  1634. Reviewed by John Sullivan.
  1635. - <rdar://problem/5321953> remove workaround for fixed AppKit mouse moved bug
  1636. * WebView/WebHTMLView.mm: Put the workaround for bug 3429631 inside an
  1637. ifdef BUILDING_ON_TIGER.
  1638. 2007-07-09 Anders Carlsson <andersca@apple.com>
  1639. Reviewed by Oliver.
  1640. <rdar://problem/4954319>
  1641. Acrobat 7 / Safari crash: CrashTracer: 99 crashes in Safari at
  1642. com.apple.WebCore: WebCore::NetscapePlugInStreamLoader::isDone const + 0
  1643. Add a new initWithFrameLoader: method to WebNetscapePluginStream which is to be used when
  1644. the stream is a "fake" stream for full frame plug-ins.
  1645. * Plugins/WebBaseNetscapePluginView.mm:
  1646. (-[WebBaseNetscapePluginView pluginView:receivedResponse:]):
  1647. * Plugins/WebNetscapePluginStream.h:
  1648. * Plugins/WebNetscapePluginStream.mm:
  1649. (-[WebNetscapePluginStream initWithFrameLoader:]):
  1650. (-[WebNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]):
  1651. (-[WebNetscapePluginStream start]):
  1652. (-[WebNetscapePluginStream cancelLoadWithError:]):
  1653. (-[WebNetscapePluginStream stop]):
  1654. * WebCoreSupport/WebFrameLoaderClient.mm:
  1655. (WebFrameLoaderClient::createFrame):
  1656. 2007-07-09 John Sullivan <sullivan@apple.com>
  1657. Reviewed by Darin
  1658. - fixed <rdar://problem/5320208> WebKit should prevent Time Machine from backing up WebKit clients' icon databases
  1659. * Misc/WebIconDatabase.mm:
  1660. (-[WebIconDatabase init]):
  1661. Re-added the code to exclude the icon database from backups. We now do this at the same time we (try to) import
  1662. the old icon database format, which happens only once per icon database's lifetime.
  1663. (-[WebIconDatabase _importToWebCoreFormat]):
  1664. Assert that we haven't imported yet rather than bailing out. It's now the caller's responsibility to check
  1665. whether we've imported yet.
  1666. 2007-07-08 John Sullivan <sullivan@apple.com>
  1667. * Misc/WebIconDatabase.mm:
  1668. (-[WebIconDatabase init]):
  1669. Removed the code to exclude the icon database from backups. We still want to do this, but in a way
  1670. that only runs once ever, instead of once per launch, due to performance concerns.
  1671. 2007-07-07 Darin Adler <darin@apple.com>
  1672. Reviewed by Maciej.
  1673. - fix <rdar://problem/5124665> WebCore secondary-thread assertion should use linked-on-or-after check instead of building on Tiger check
  1674. * Misc/WebKitVersionChecks.h: Added WEBKIT_FIRST_VERSION_WITH_MAIN_THREAD_EXCEPTIONS.
  1675. * WebView/WebFrameView.mm: (-[WebFrameView initWithFrame:]): In first-time initialization block,
  1676. check for binaries linked against older versions of WebKit, and set the default thread violation
  1677. behavior to LogOnFirstThreadViolation.
  1678. * WebView/WebView.mm: (+[WebView initialize]): Improved comments.
  1679. 2007-07-06 Oliver Hunt <oliver@apple.com>
  1680. Reviewed by Maciej.
  1681. <rdar://problem/5318756> Need to refactor IM/Marked text code to share logic with windows.
  1682. Moved a number of methods from WebHTMLView into WebCore.
  1683. Replaced bridge methods with calls directly into WebCore objects.
  1684. * WebKit.xcodeproj/project.pbxproj:
  1685. * WebView/WebHTMLView.mm:
  1686. (-[WebHTMLView setMarkedText:selectedRange:]):
  1687. Now calls WebCore object methods directly, rather than calling
  1688. via the bridge.
  1689. 2007-07-06 John Sullivan <sullivan@apple.com>
  1690. Reviewed by Brady
  1691. - WebKit part of fix for:
  1692. <rdar://problem/5310739> Time Machine shouldn't back up WebKit's icon database files
  1693. * Misc/WebIconDatabase.mm:
  1694. (-[WebIconDatabase init]):
  1695. Use CSBackupSetItemExcluded to tell Time Machine not to back up the icon database file
  1696. 2007-07-07 Mark Rowe <mrowe@apple.com>
  1697. Build fix. Update WebDynamicScrollBarsView.h to include methods added and used in r24060.
  1698. * WebView/WebDynamicScrollBarsView.h:
  1699. 2007-07-05 Timothy Hatcher <timothy@apple.com>
  1700. Reviewed by John.
  1701. <rdar://problem/5236277> REGRESSION-9A458: SPI for setting scroll bar behavior doesn't work
  1702. Calling setHorizontalScrollingMode: calls updateScrollers before returning, this will cause
  1703. WebCore to reset the scrolling mode based on the CSS overflow rules. So the setAlwaysShowHorizontalScroller:
  1704. and setAlwaysShowVerticalScroller: methods needed a way to lock the scrolling mode before
  1705. calling updateScrollers.
  1706. * WebView/WebDynamicScrollBarsView.m:
  1707. (-[WebDynamicScrollBarsView updateScrollers]):
  1708. (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
  1709. (-[WebDynamicScrollBarsView setHorizontalScrollingMode:andLock:]):
  1710. (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
  1711. (-[WebDynamicScrollBarsView setVerticalScrollingMode:andLock:]):
  1712. (-[WebDynamicScrollBarsView setScrollingMode:]):
  1713. (-[WebDynamicScrollBarsView setScrollingMode:andLock:]):
  1714. * WebView/WebView.mm:
  1715. (-[WebView setAlwaysShowVerticalScroller:]):
  1716. (-[WebView setAlwaysShowHorizontalScroller:]):
  1717. 2007-07-06 Mitz Pettel <mitz@webkit.org>
  1718. Reviewed by Maciej.
  1719. - fix http://bugs.webkit.org/show_bug.cgi?id=10267
  1720. Can't scroll page downwards with scroll wheel, when pointer is on top of non-scrolling iframe
  1721. * WebView/WebDynamicScrollBarsView.m:
  1722. (-[WebDynamicScrollBarsView scrollWheel:]): Override the superclass
  1723. implementation to forward the wheel event to the next responder if this view
  1724. does not allow scrolling in the event's direction.
  1725. 2007-07-05 John Sullivan <sullivan@apple.com>
  1726. Reviewed by Adam
  1727. - WebKit part of fix for <rdar://problem/5315033>
  1728. * WebView/WebDocumentPrivate.h:
  1729. new selectionImageForcingBlackText: method. selectionImageForcingWhiteText: is no longer used and was never
  1730. in an official release of WebKit, so it could be removed, except that doing so would cause trouble for people
  1731. using nightly WebKit with Safari 3.0 beta. So I left it in, but made it just force black text instead of
  1732. white text, which will look different for those nightly WebKit/Safari 3.0 beta people but not break anything.
  1733. * Misc/WebSearchableTextView.m:
  1734. (-[WebSearchableTextView selectionImageForcingBlackText:]):
  1735. new unimplemented protocol method for this obsolete class
  1736. * WebView/WebHTMLView.mm:
  1737. (-[WebHTMLView selectionImageForcingBlackText:]):
  1738. calls through to WebCore the way selectionImageForcingWhiteText: used to
  1739. (-[WebHTMLView selectionImageForcingWhiteText:]):
  1740. now just calls selectionImageForcingBlackText:, thus not working as you would expect from the name
  1741. * WebView/WebPDFView.mm:
  1742. (-[WebPDFView selectionImageForcingBlackText:]):
  1743. guts of old selectionImageForcingWhiteText:, but with black substituted for white
  1744. (-[WebPDFView selectionImageForcingWhiteText:]):
  1745. now just calls selectionImageForcingBlackText:, thus not working as you would expect from the name
  1746. 2007-07-05 Timothy Hatcher <timothy@apple.com>
  1747. Reviewed by John.
  1748. <rdar://problem/5314993> Shiira 2.1 throws an exception open a new window: -[WebInspector window]: unrecognized selector
  1749. Add an empty implementation of this method to prevent Shiira from throwing an exception.
  1750. Also log that this method is obsolete and the class will be removed.
  1751. * WebInspector/WebInspector.mm:
  1752. (-[WebInspector window]):
  1753. 2007-07-04 Adam Roben <aroben@apple.com>
  1754. Move tooltip logic down into WebCore so that it can be shared cross-platform
  1755. Reviewed by Sam.
  1756. * WebCoreSupport/WebChromeClient.h:
  1757. * WebCoreSupport/WebChromeClient.mm:
  1758. (WebChromeClient::setToolTip): Added.
  1759. * WebView/WebHTMLView.mm: Removed _resetCachedWebPreferences.
  1760. (-[WebHTMLView _updateMouseoverWithEvent:]): Removed tooltip code.
  1761. (-[WebHTMLView initWithFrame:]): Removed call to
  1762. _resetCachedWebPreferences.
  1763. (-[WebHTMLView setDataSource:]): Ditto.
  1764. * WebView/WebHTMLViewInternal.h: Removed showsURLsInToolTips ivar.
  1765. * WebView/WebHTMLViewPrivate.h: Added declaration for _setTooltip so
  1766. that WebChromeClient can call it.
  1767. 2007-07-04 Adam Roben <aroben@apple.com>
  1768. Initialize Settings::showsURLsInToolTips
  1769. Reviewed by Sam.
  1770. * WebView/WebView.mm:
  1771. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  1772. 2007-07-04 Adam Roben <aroben@apple.com>
  1773. Removed call to mouseDidMoveOverElement now that WebCore handles it
  1774. Reviewed by Sam.
  1775. * WebView/WebHTMLView.mm:
  1776. (-[WebHTMLView _updateMouseoverWithEvent:]):
  1777. 2007-07-04 Adam Roben <aroben@apple.com>
  1778. Add WebChromeClient::mouseDidMoveOverElement
  1779. This is not called yet.
  1780. Reviewed by Sam.
  1781. * WebCoreSupport/WebChromeClient.h:
  1782. * WebCoreSupport/WebChromeClient.mm:
  1783. 2007-07-03 Darin Adler <darin@apple.com>
  1784. * StringsNotToBeLocalized.txt: Updated for recent changes.
  1785. 2007-07-03 Timothy Hatcher <timothy@apple.com>
  1786. Reviewed by Darin.
  1787. Remove HIWebView in 64-bit.
  1788. Also disable a few calls that are now gone in 64-bit and filed these bugs:
  1789. <rdar://problem/5311653> WebKit needs to adopt HIGetMousePosition where we used GetGlobalMouse before
  1790. <rdar://problem/5311648> WebKit needs to move off of CopyEvent in WebBaseNetscapePluginView
  1791. <rdar://problem/5311640> WebKit needs a new solution for HISearchWindowShow on 64-bit
  1792. * Carbon/CarbonUtils.m:
  1793. * Carbon/CarbonWindowAdapter.m:
  1794. * Carbon/CarbonWindowContentView.m:
  1795. * Carbon/CarbonWindowFrame.m:
  1796. * Carbon/HIViewAdapter.m:
  1797. (SetViewNeedsDisplay):
  1798. * Carbon/HIWebView.m:
  1799. (Draw):
  1800. (SyncFrame):
  1801. * Configurations/WebKit.xcconfig:
  1802. * Plugins/WebBaseNetscapePluginView.mm:
  1803. (+[WebBaseNetscapePluginView getCarbonEvent:]):
  1804. (TSMEventHandler):
  1805. * WebKit.LP64.exp: Added.
  1806. * WebView/WebView.mm:
  1807. (-[WebView _searchWithSpotlightFromMenu:]):
  1808. 2007-07-03 Adam Roben <aroben@apple.com>
  1809. Merge the Windows and Mac localized strings and exceptions files
  1810. Reviewed by Darin and Anders.
  1811. * English.lproj/Localizable.strings: Added Windows strings.
  1812. * StringsNotToBeLocalized.txt: Renamed from WebKit/English.lproj/StringsNotToBeLocalized.txt.
  1813. 2007-07-03 Adele Peterson <adele@apple.com>
  1814. Removed printf I accidently left in.
  1815. * Misc/WebNSURLExtras.m: (mapHostNames):
  1816. 2007-07-03 Adele Peterson <adele@apple.com>
  1817. Reviewed by Darin.
  1818. Fix for: <rdar://problem/5292988> domain names shouldn't contain ignorable characters
  1819. * Misc/WebNSURLExtras.m:
  1820. (isLookalikeCharacter): Renamed. Also excludes any non-printable character,
  1821. any character considered as whitespace that isn't already converted to a space by ICU, any ignorable character,
  1822. and any character excluded in Mozilla's blacklist: http://kb.mozillazine.org/Network.IDN.blacklist_chars
  1823. (allCharactersInIDNScriptWhiteList):
  1824. 2007-07-03 Darin Adler <darin@apple.com>
  1825. Reviewed by Maciej.
  1826. - fix <rdar://problem/5310848> WebDataSource lifetime problem -- may be cause of the leaks seen on the buildbot
  1827. * WebView/WebDataSource.mm:
  1828. (-[WebDataSourcePrivate dealloc]): Added a call to the new detachDataSource function.
  1829. (-[WebDataSourcePrivate finalize]): Ditto.
  1830. * WebView/WebDocumentLoaderMac.h: Added detachDataSource function to be used when the
  1831. WebDataSource is deallocated. Added retain/releaseDataSource helper functions to be
  1832. used to retain and release the data source object. Replaced the m_hasEverBeenDetached
  1833. boolean with a more primitive and hence easier to understand m_isDataSourceRetained boolean.
  1834. * WebView/WebDocumentLoaderMac.mm:
  1835. (WebDocumentLoaderMac::WebDocumentLoaderMac): Initialize m_isDataSourceRetained to false.
  1836. (WebDocumentLoaderMac::setDataSource): Call retainDataSource instead of calling HardRetain
  1837. on the dataSource parameter. Also updated a comment.
  1838. (WebDocumentLoaderMac::attachToFrame): Call retainDataSource unconditionally rather than
  1839. trying to use m_hasEverBeenDetached to decide if a retain is needed. Also got rid of an
  1840. assertion that m_loadingResources is empty -- not important any more.
  1841. (WebDocumentLoaderMac::detachFromFrame): Call releaseDataSource instead of using
  1842. HardRelease, but only if m_loadingResources is empty. If it's non-empty, then we'll
  1843. do the releaseDataSource later in decreaseLoadCount.
  1844. (WebDocumentLoaderMac::increaseLoadCount): Call retainDataSource unconditionally
  1845. rather than calling HardRetain only if the old set of resources was empty.
  1846. (WebDocumentLoaderMac::decreaseLoadCount): Call releaseDataSource if m_loadingResources
  1847. is empty and we're not attached to a frame. If we are attached to a frame, then
  1848. we'll do the releaseDataSource later in detachFromFrame.
  1849. (WebDocumentLoaderMac::retainDataSource): Added. Calls CFRetain, but only if the data
  1850. source is not already retained (according to the boolean).
  1851. (WebDocumentLoaderMac::releaseDataSource): Added. Calls CFRelease, but only if the data
  1852. source is currently retained (according to the boolean).
  1853. (WebDocumentLoaderMac::detachDataSource): Added. Sets m_dataSource to nil. Since this
  1854. is only called from WebDataSource's dealloc and finalize methods, it won't ever be called
  1855. when the m_isDataSourceRetained boolean is true.
  1856. 2007-07-03 Darin Adler <darin@apple.com>
  1857. - forgot to check in one file in the fix for <rdar://problem/5307880>
  1858. some classes need finalize methods because of non-trivial work done in dealloc methods
  1859. * WebView/WebView.mm: (-[WebViewPrivate finalize]): Delete identifierMap so it doesn't leak.
  1860. 2007-07-03 Anders Carlsson <andersca@apple.com>
  1861. Reviewed by Darin.
  1862. * WebView/WebView.mm:
  1863. (-[WebView stringByEvaluatingJavaScriptFromString:]):
  1864. ASSERT that the value returned isn't nil. It can't be nil when invoked on the main frame.
  1865. 2007-07-04 Mark Rowe <mrowe@apple.com>
  1866. Unreviewed 64-bit build fixes.
  1867. * WebCoreSupport/WebInspectorClient.mm: Let the compiler know that WebFrameView is a subclass of NSView.
  1868. * WebView/WebDocumentInternal.h: Remove our preprocessor macro once we're done with it.
  1869. * WebView/WebHTMLView.mm:
  1870. (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]): Fix argument types.
  1871. 2007-07-02 Darin Adler <darin@apple.com>
  1872. Reviewed by Kevin Decker and Tim Hatcher.
  1873. - fix <rdar://problem/5307880> some classes need finalize methods
  1874. because of non-trivial work done in dealloc methods
  1875. * DefaultDelegates/WebScriptDebugServer.m:
  1876. (-[WebScriptDebugServer dealloc]): Added a comment about how this probably won't
  1877. work under GC.
  1878. * WebInspector/WebNodeHighlight.m:
  1879. (-[WebNodeHighlight dealloc]): Ditto.
  1880. * WebView/WebDataSource.mm:
  1881. (+[WebDataSourcePrivate initialize]): Added. Makes finalize run on main thread.
  1882. (-[WebDataSourcePrivate finalize]): Added. Calls deref on the document loader.
  1883. * WebView/WebHTMLView.mm:
  1884. (+[WebHTMLViewPrivate initialize]): Added. Makes finalize run on main thread.
  1885. (-[WebHTMLViewPrivate finalize]): Added. Calls deref on promisedDragTIFFDataSource.
  1886. * WebKit.xcodeproj/project.pbxproj: Let Xcode be Xcode.
  1887. 2007-07-02 Oliver Hunt <oliver@apple.com>
  1888. Reviewed by Justin.
  1889. Fix for
  1890. <rdar://problem/5290113> WebKit does not correctly handle replacement ranges from the IM in -[WebHTMLView insertText:]
  1891. http://bugs.webkit.org/show_bug.cgi?id=13664
  1892. We replicate the logic of -[WebHTMLView setMarkedText:selectedRange:] to handle the Input Method
  1893. feeding us a replacement string through insertText: so we can handle IMs that use insertText to
  1894. replace text.
  1895. * WebView/WebHTMLView.mm:
  1896. (-[WebHTMLView insertText:]):
  1897. 2007-07-01 Oliver Hunt <oliver@apple.com>
  1898. Reviewed by Alexey.
  1899. Fix for <rdar://problem/5306210> Some events are still passed to WebCore despite being handled by the IM
  1900. http://bugs.webkit.org/show_bug.cgi?id=14457
  1901. We have to assume that the IM will consume all events, so we remove the dependency
  1902. on -[WebHTMLView hasMarkedText].
  1903. * WebView/WebHTMLView.mm:
  1904. (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
  1905. 2007-06-29 John Sullivan <sullivan@apple.com>
  1906. Reviewed by Oliver Hunt.
  1907. - WebKit support for accessing the set of rectangles that encompass the selected text
  1908. * WebView/WebDocumentPrivate.h:
  1909. added -selectionTextRects to WebDocumentSelection protocol; tweaked comments
  1910. * WebView/WebHTMLView.mm:
  1911. (-[WebHTMLView _selectionDraggingRect]):
  1912. use selectionRect instead of selectionImageRect since they're the same and maybe we can get
  1913. rid of selectionImageRect someday
  1914. (-[WebHTMLView selectionTextRects]):
  1915. added implementation of new protocol method, which calls through to WebCore
  1916. * WebView/WebPDFView.mm:
  1917. (-[WebPDFView selectionTextRects]):
  1918. added simple implementation of new protocol method, which just returns the single selection rect.
  1919. PDFKit doesn't support obtaining multiple rects to describe a multi-line selection.
  1920. (-[WebPDFView selectionImageForcingWhiteText:]):
  1921. use selectionRect instead of selectionImageRect since they're the same and maybe we can get
  1922. rid of selectionImageRect someday
  1923. * Misc/WebSearchableTextView.m:
  1924. (-[WebSearchableTextView selectionTextRects]):
  1925. added no-op implementation of new protocol method to this obsolete class
  1926. 2007-06-28 Timothy Hatcher <timothy@apple.com>
  1927. Reviewed by Darin.
  1928. <rdar://problem/5287569> WEBVIEW: Creating a webview in IB 3.0 (v2.0) NIB later crashes Interface Builder 2.5.4 on Tiger
  1929. Prevent encoding any of the WebView subviews. The subviews are ignored by -[WebView initWithCoder:] and will be recreated.
  1930. The Tiger 2.0 code crashed when the WebView released the subviews in initWithCoder:, so now there are no subviews to release.
  1931. This never happened before because the Tiger 2.0 code and IB wouldn't encode a WebView that has a WebHTMLView.
  1932. * WebView/WebView.mm:
  1933. (-[WebView encodeWithCoder:]):
  1934. 2007-06-26 John Sullivan <sullivan@apple.com>
  1935. Reviewed by Darin
  1936. - WebKit support for displaying multiple text matches in PDF views (<rdar://problem/4601967>)
  1937. * WebView/WebPDFView.h:
  1938. new ivars textMatches and lastScrollPosition; now conforms to WebMultipleTextMatches protocol
  1939. * WebView/WebPDFView.mm:
  1940. (-[WebPDFView dealloc]):
  1941. release textMatches
  1942. (-[WebPDFView viewDidMoveToWindow]):
  1943. start observing bounds changes in the PDF document's enclosing clip view, so we can notice when
  1944. scrolling takes place
  1945. (-[WebPDFView viewWillMoveToWindow:]):
  1946. stop observing bounds changes in the PDF document's enclosing clip view
  1947. (-[WebPDFView searchFor:direction:caseSensitive:wrap:startInSelection:]):
  1948. most of the code here has been moved into the new method _nextMatchFor::::, which this now calls
  1949. (-[WebPDFView setMarkedTextMatchesAreHighlighted:]):
  1950. implementation of WebMultipleTextMatches protocol method, does nothing useful here because we don't
  1951. support inline highlighting of matches in PDF documents
  1952. (-[WebPDFView markedTextMatchesAreHighlighted]):
  1953. implementation of WebMultipleTextMatches protocol method
  1954. (-[WebPDFView markAllMatchesForText:caseSensitive:limit:]):
  1955. implementation of WebMultipleTextMatches protocol method; calls _nextMatchFor:::: in a loop until
  1956. entire document is searched or limit is hit; records results by saving PDFSelections in textMatches ivar
  1957. (-[WebPDFView unmarkAllTextMatches]):
  1958. implementation of WebMultipleTextMatches protocol method; clears saved textMatches
  1959. (-[WebPDFView rectsForTextMatches]):
  1960. implementation of WebMultipleTextMatches protocol method; converts saved PDFSelections into NSValue
  1961. objects that represent NSRects
  1962. (-[WebPDFView _clipViewForPDFDocumentView]):
  1963. new helper method to find the clip view whose bounds determine the current scroll position
  1964. (-[WebPDFView _nextMatchFor:direction:caseSensitive:wrap:fromSelection:startInSelection:]):
  1965. new helper method, extracted from searchFor:::::
  1966. (-[WebPDFView _PDFDocumentViewMightHaveScrolled:]):
  1967. new notification callback; tells webView's delegate when document has scrolled
  1968. (-[WebPDFView _setTextMatches:]):
  1969. new helper method, stores value in ivar
  1970. 2007-06-26 Oliver Hunt <oliver@apple.com>
  1971. Reviewed by Maciej.
  1972. Hopefully fix remainder of the IME issues on Mac.
  1973. We now assume that the IME silently consumes any event given
  1974. to it during text composition, and only override this assumption
  1975. if the NSTextInput or NSResponder callbacks are made.
  1976. This prevents us from treating those events that the IME has
  1977. consumed internally (eg. candidate window navigation) as unhandled
  1978. events that should be bubbled.
  1979. This fixes:
  1980. <rdar://problem/5107538> Major problems handling key press event with non-english Input Methods
  1981. <rdar://problem/4196249> REGRESSION: Mail: Inputting space (U+0020) with IM deletes subsequent line breaks on Mail.app
  1982. <rdar://problem/5015544> REGRESSION: Reverse conversion keyboard command does not work in Safari.
  1983. <rdar://problem/5045121> REGRESSION: Inline is confirmed after press left/right arrow keys, happens in Mail but not in TextEdit.
  1984. <rdar://problem/5076807> REGRESSION: Can't undo conversion of inline text (by hitting ESC)
  1985. <rdar://problem/5085781> REGRESSION: Active input area lost "selected" highlight
  1986. <rdar://problem/5094200> space key pressed to close the associated words candidate window gets inserted as text
  1987. <rdar://problem/5228294> Candidate item for character matrix is sometimes skipped
  1988. * WebKit.xcodeproj/project.pbxproj:
  1989. * WebView/WebHTMLView.mm:
  1990. (-[WebHTMLView launchKeyEvent:]):
  1991. (-[WebHTMLView keyDown:]):
  1992. (-[WebHTMLView keyUp:]):
  1993. (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
  1994. (-[WebHTMLView unmarkText]):
  1995. (-[WebHTMLView setMarkedText:selectedRange:]):
  1996. (-[WebHTMLView doCommandBySelector:]):
  1997. (-[WebHTMLView insertText:]):
  1998. 2007-06-26 Jim Correia <jim.correia@pobox.com>
  1999. Reviewed by Darin.
  2000. Fix http://bugs.webkit.org/show_bug.cgi?id=14411
  2001. Bug 14411: WebNetscapePluginPackage overagressively sets CurApRefNum, which affects shipping versions of BBEdit.
  2002. <rdar://problem/5297268>
  2003. * Plugins/WebNetscapePluginPackage.m:
  2004. (+[WebNetscapePluginPackage initialize]): Force the Resource Manager to
  2005. lazy initialize, and only set CurApRefNum to the system file if
  2006. CurApRefNum is still -1 after that forced lazy initialization.
  2007. 2007-06-25 Kevin Decker <kdecker@apple.com>
  2008. Reviewed by Darin.
  2009. <rdar://problem/5294036> -[WebView customTextEncodingName] API may return empty string instead of nil
  2010. * WebView/WebView.mm:
  2011. (-[WebView _mainFrameOverrideEncoding]): Addded the nsStringNilIfEmpty() inline to the data being returned because
  2012. our API says "The custom text encoding name or nil if no custom text encoding name has been set." I also verified
  2013. the standing Tiger WebKit behavior for this method and it does indeed return nil if a custom encoding wasn't set.
  2014. 2007-06-25 John Sullivan <sullivan@apple.com>
  2015. Reviewed by Darin
  2016. - WebKit part of <rdar://problem/5293820>, needed to support multiple matches in PDFs
  2017. * WebView/WebDocumentInternal.h:
  2018. Added WebMultipleTextMatches protocol, containing five methods that were formerly implemented in WebHTMLView
  2019. * WebView/WebHTMLViewPrivate.h:
  2020. Removed declarations for the methods that are now in WebMultipleTextMatches protocol
  2021. * WebView/WebHTMLView.mm:
  2022. (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
  2023. moved this method into the WebDocumentInternalProtocols portion of the file
  2024. (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
  2025. ditto
  2026. (-[WebHTMLView markedTextMatchesAreHighlighted]):
  2027. ditto
  2028. (-[WebHTMLView unmarkAllTextMatches]):
  2029. ditto
  2030. (-[WebHTMLView rectsForTextMatches]):
  2031. ditto
  2032. * WebView/WebView.mm:
  2033. (-[WebView canMarkAllTextMatches]):
  2034. new method, returns YES only if the documentView of every frame implements WebMultipleTextMatches
  2035. (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
  2036. check for WebMultipleTextMatches protocol instead of checking for WebHTMLView class
  2037. (-[WebView unmarkAllTextMatches]):
  2038. ditto
  2039. (-[WebView rectsForTextMatches]):
  2040. ditto
  2041. * WebView/WebViewPrivate.h:
  2042. declared new method canMarkAllTextMatches
  2043. 2007-06-25 John Sullivan <sullivan@apple.com>
  2044. Reviewed by Darin
  2045. Fixed <rdar://problem/5292259> Find on Page doesn't work (throws exception) on page that includes PDF in a subframe
  2046. * WebView/WebView.mm:
  2047. (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
  2048. We were testing whether the view was an HTMLView, but then running code that assumed it was an HTMLView outside of
  2049. that test. That's a bad idea.
  2050. 2007-06-22 Adele Peterson <adele@apple.com>
  2051. Reviewed by Geoff and Darin.
  2052. Fix for: <rdar://problem/5239236> Other slash characters should not be permitted as part of a domain name
  2053. * Misc/WebNSURLExtras.m:
  2054. (isSlashOrPeriodLookalike):
  2055. (allCharactersInIDNScriptWhiteList):
  2056. 2007-06-21 Sam Weinig <sam@webkit.org>
  2057. Reviewed by Antti.
  2058. Remove empty directories
  2059. * WebInspector/webInspector: directory removed.
  2060. * WebInspector/webInspector/Images: directory removed
  2061. 2007-06-21 Justin Garcia <justin.garcia@apple.com>
  2062. Reviewed by Tim.
  2063. <rdar://problem/5237524>
  2064. REGRESSION: Keyboard commands don't work in a message window until you click inside the message
  2065. When you open a message in its own window, Mail creates an empty
  2066. WebView, makes that WebView firstResponder and then sets off a
  2067. load inside that WebView.
  2068. When we're asked to create the empty WebView, we put an empty
  2069. WebHTMLView inside it (in r21367 we began creating a document
  2070. for empty frames). When Mail makes the WebView first responder
  2071. we make that empty WebHTMLView firstResponder. Then when the
  2072. load finishes we create a new WebHTMLView and set it as the
  2073. document view.
  2074. Inside _setDocumentView, if the old document view or one of its
  2075. descendants was the first responder, we'd makeFirstResponder:nil
  2076. so that the window wouldn't be left with a firstResponder that
  2077. was no longer inside of it. This change fixes the bug by instead
  2078. transferring firstResponder status to the new document view.
  2079. We could also fix this by not allowing the WebHTMLView to become
  2080. firstResponder when it's in the provisional state mentioned above.
  2081. * WebView/WebFrameView.mm:
  2082. (-[WebFrameView _setDocumentView:]):
  2083. 2007-06-21 John Sullivan <sullivan@apple.com>
  2084. Reviewed by Adele
  2085. - fixed <rdar://problem/5268673> REGRESSION: Context menu missing for PDF in frame when there's no selection
  2086. This was surprisingly interesting. It turns out that at least for Safari, the method [WebDefaultUIDelegate
  2087. webView:contextMenuItemsForElement:defaultMenuItems:] is only exercised from WebPDFView these days. It mimics
  2088. some of the code that was moved to WebCore as part of the Great Context Menu Refactoring of 2006, but is
  2089. independent of that code. And it was partly broken/incomplete, probably as a result of said refactoring.
  2090. * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
  2091. (localizedMenuTitleFromAppKit()):
  2092. deleted this function since I removed all callers
  2093. (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
  2094. Handle WebMenuItemTagOpenFrameInNewWindow tag, since code later in this file was relying on it. Added
  2095. ASSERT_NOT_REACHED to the default case, since returning nil from this method is bad.
  2096. Also, use WebKit versions of menu title strings rather than AppKit versions. We added these strings to WebKit
  2097. a while back so we don't need to sneakily find them in AppKit anymore.
  2098. (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
  2099. make the WebView be the target of the Open Frame in New Window item; previously it was self, but that was
  2100. just silly (probably a leftover from some code shuffling when context menus were reimplemented)
  2101. * WebView/WebView.mm:
  2102. (-[WebView _openFrameInNewWindowFromMenu:]):
  2103. new method, used by Open Frame in New Window menu item.
  2104. * WebView/WebViewInternal.h:
  2105. Declare new method used by menu item. This isn't necessary for compilation, but could prevent the accidental
  2106. deletion of the method implementation.
  2107. 2007-06-20 Mark Rowe <mrowe@apple.com>
  2108. Reviewed by Adam.
  2109. Fix http://bugs.webkit.org/show_bug.cgi?id=14255.
  2110. Bug 14255: Reproducible crash opening web inspector from debug menu
  2111. Reinstate the WebInspector class so WebKit clients that currently depend on it
  2112. will build and run correctly.
  2113. * WebInspector/WebInspector.h: Added.
  2114. * WebInspector/WebInspector.mm: Added.
  2115. (+[WebInspector webInspector]):
  2116. (-[WebInspector dealloc]):
  2117. (-[WebInspector setWebFrame:]):
  2118. (-[WebInspector showWindow:]):
  2119. * WebKit.exp:
  2120. * WebKit.xcodeproj/project.pbxproj:
  2121. 2007-06-20 Adam Roben <aroben@apple.com>
  2122. Land the new Inspector.
  2123. Co-written with Tim Hatcher.
  2124. Reviewed by Anders, Adele, Hyatt, and Sam.
  2125. Implement the InspectorClient interface.
  2126. * WebCoreSupport/WebInspectorClient.h: Added.
  2127. * WebCoreSupport/WebInspectorClient.mm: Added.
  2128. (WebInspectorClient::WebInspectorClient):
  2129. (WebInspectorClient::inspectorDestroyed):
  2130. (WebInspectorClient::createPage):
  2131. (WebInspectorClient::showWindow):
  2132. (WebInspectorClient::closeWindow):
  2133. (WebInspectorClient::attachWindow):
  2134. (WebInspectorClient::detachWindow):
  2135. (WebInspectorClient::highlight):
  2136. (WebInspectorClient::hideHighlight):
  2137. (WebInspectorClient::inspectedURLChanged):
  2138. (WebInspectorClient::updateWindowTitle):
  2139. (-[WebInspectorWindowController init]):
  2140. (-[WebInspectorWindowController initWithInspectedWebView:]):
  2141. (-[WebInspectorWindowController dealloc]):
  2142. (-[WebInspectorWindowController inspectorVisible]):
  2143. (-[WebInspectorWindowController webView]):
  2144. (-[WebInspectorWindowController window]):
  2145. (-[WebInspectorWindowController windowShouldClose:]):
  2146. (-[WebInspectorWindowController close]):
  2147. (-[WebInspectorWindowController showWindow:]):
  2148. (-[WebInspectorWindowController attach]):
  2149. (-[WebInspectorWindowController detach]):
  2150. (-[WebInspectorWindowController highlightAndScrollToNode:]):
  2151. (-[WebInspectorWindowController highlightNode:]):
  2152. (-[WebInspectorWindowController hideHighlight]):
  2153. (-[WebInspectorWindowController animationDidEnd:]):
  2154. Add an easier-to-see highlight.
  2155. * Misc/WebNSViewExtras.h:
  2156. * Misc/WebNSViewExtras.m:
  2157. (-[NSView _web_convertRect:toView:]):
  2158. * WebInspector/WebNodeHighlight.h:
  2159. * WebInspector/WebNodeHighlight.m:
  2160. (-[WebNodeHighlightFadeInAnimation setCurrentProgress:]):
  2161. (-[WebNodeHighlight initWithTargetView:]):
  2162. (-[WebNodeHighlight setHighlightedNode:]):
  2163. (-[WebNodeHighlight highlightedNode]):
  2164. (-[WebNodeHighlight dealloc]):
  2165. (-[WebNodeHighlight attachHighlight]):
  2166. (-[WebNodeHighlight delegate]):
  2167. (-[WebNodeHighlight detachHighlight]):
  2168. (-[WebNodeHighlight show]):
  2169. (-[WebNodeHighlight hide]):
  2170. (-[WebNodeHighlight animationDidEnd:]):
  2171. (-[WebNodeHighlight ignoresMouseEvents]):
  2172. (-[WebNodeHighlight highlightView]):
  2173. (-[WebNodeHighlight setDelegate:]):
  2174. (-[WebNodeHighlight setHolesNeedUpdateInTargetViewRect:]):
  2175. (-[WebNodeHighlight setIgnoresMouseEvents:]):
  2176. (-[WebNodeHighlight targetView]):
  2177. (-[WebNodeHighlight _computeHighlightWindowFrame]):
  2178. (-[WebNodeHighlight _repositionHighlightWindow]):
  2179. * WebInspector/WebNodeHighlightView.h:
  2180. * WebInspector/WebNodeHighlightView.m:
  2181. (-[WebNodeHighlightView initWithWebNodeHighlight:]):
  2182. (-[WebNodeHighlightView dealloc]):
  2183. (-[WebNodeHighlightView detachFromWebNodeHighlight]):
  2184. (-[WebNodeHighlightView drawRect:]):
  2185. (-[WebNodeHighlightView webNodeHighlight]):
  2186. (-[WebNodeHighlightView fractionFadedIn]):
  2187. (-[WebNodeHighlightView setFractionFadedIn:]):
  2188. (-[WebNodeHighlightView setHolesNeedUpdateInRect:]):
  2189. (-[WebNodeHighlightView _holes]):
  2190. WebView changes needed for the new Inspector.
  2191. * WebView/WebView.mm: Remove the old _inspectElement method now that
  2192. this is handled by WebCore.
  2193. (-[WebView _isClosed]): Added.
  2194. (-[WebView initWithFrame]): Give each Page an InspectorClient to
  2195. enable the Inspector.
  2196. * WebView/WebViewPrivate.h:
  2197. Updates needed for WebCore changes.
  2198. * WebCoreSupport/WebContextMenuClient.h:
  2199. * WebCoreSupport/WebContextMenuClient.mm:
  2200. * WebCoreSupport/WebViewFactory.mm:
  2201. (-[WebViewFactory contextMenuItemTagInspectElement]):
  2202. * WebView/WebUIDelegatePrivate.h:
  2203. Remove old Inspector code.
  2204. * WebCoreSupport/WebFrameLoaderClient.mm:
  2205. (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  2206. (WebFrameLoaderClient::assignIdentifierToInitialRequest):
  2207. (WebFrameLoaderClient::dispatchDidFinishLoading):
  2208. * WebInspector/WebInspector.m: Removed.
  2209. * WebInspector/WebInspectorPanel.h: Removed.
  2210. * WebInspector/WebInspectorPanel.m: Removed.
  2211. * WebInspector/webInspector/Images/button.png: Removed.
  2212. * WebInspector/webInspector/Images/buttonDivider.png: Removed.
  2213. * WebInspector/webInspector/Images/buttonPressed.png: Removed.
  2214. * WebInspector/webInspector/Images/close.png: Removed.
  2215. * WebInspector/webInspector/Images/closePressed.png: Removed.
  2216. * WebInspector/webInspector/Images/downTriangle.png: Removed.
  2217. * WebInspector/webInspector/Images/menu.png: Removed.
  2218. * WebInspector/webInspector/Images/menuPressed.png: Removed.
  2219. * WebInspector/webInspector/Images/popup.png: Removed.
  2220. * WebInspector/webInspector/Images/popupPressed.png: Removed.
  2221. * WebInspector/webInspector/Images/resize.png: Removed.
  2222. * WebInspector/webInspector/Images/rightTriangle.png: Removed.
  2223. * WebInspector/webInspector/Images/scrollThumbBottom.png: Removed.
  2224. * WebInspector/webInspector/Images/scrollThumbMiddle.png: Removed.
  2225. * WebInspector/webInspector/Images/scrollTrackBottom.png: Removed.
  2226. * WebInspector/webInspector/Images/upTriangle.png: Removed.
  2227. * WebInspector/webInspector/inspector.css: Removed.
  2228. * WebInspector/webInspector/inspector.html: Removed.
  2229. * WebInspector/webInspector/inspector.js: Removed.
  2230. * WebInspector/webInspector/scrollarea.js: Removed.
  2231. * WebInspector/webInspector/scrollbar.js: Removed.
  2232. * WebInspector/webInspector/utilities.js: Removed.
  2233. * WebView/WebFrame.mm:
  2234. (-[WebFramePrivate dealloc]):
  2235. * WebView/WebFrameInternal.h:
  2236. * WebView/WebHTMLView.mm:
  2237. (-[WebHTMLView menuForEvent:]):
  2238. Build-fu:
  2239. * WebKit.exp:
  2240. * WebKit.xcodeproj/project.pbxproj:
  2241. 2007-06-20 Justin Garcia <justin.garcia@apple.com>
  2242. Reviewed by Darin.
  2243. <rdar://problem/5263541> REGRESSION (Safari 3 Beta 1): Pressing Delete doesn't delete an HTML message in Mail
  2244. Mail wasn't receiving the keyDown event because WebFrameView was blocking it.
  2245. It blocks the event and moves back/forward on Delete/Shift+Delete if the
  2246. back/forward list is enabled.
  2247. * WebView/WebFrameView.mm:
  2248. (-[WebFrameView keyDown:]): Check to see if the BackForwardList is
  2249. enabled. It always exists.
  2250. 2007-06-19 Anders Carlsson <andersca@apple.com>
  2251. Reviewed by Kevin Decker.
  2252. <rdar://problem/5266289> REGRESSION (Safari 3 Beta 1): Incoming iChat messages are delayed
  2253. * WebView/WebDocumentLoaderMac.mm:
  2254. (needsAppKitWorkaround):
  2255. New function which checks if the frame load delegate belongs to AppKit.
  2256. (WebDocumentLoaderMac::setDataSource):
  2257. If the frame load delegate belongs to AppKit, set m_deferMainResourceDataLoad to false.
  2258. 2007-06-19 John Sullivan <sullivan@apple.com>
  2259. Reviewed by Tim Hatcher
  2260. - fixed <rdar://problem/5272011> Hole for find-on-page match in subframe isn't clipped by frame bounds
  2261. * WebView/WebView.mm:
  2262. (-[WebView rectsForTextMatches]):
  2263. intersect the HTMLView's computed rect with the visible rect for that view
  2264. 2007-06-19 Jim Correia <jim.correia@pobox.com>
  2265. Reviewed by Kevin Decker
  2266. * Carbon/HIWebView.m:
  2267. (WindowHandler): HIObjectIsOfClass requires non-NULL input on Tiger. Reworked Kevin Decker's patch to remove the conditional compilation for Tiger, yet still avoid crashing BBEdit.
  2268. 2007-06-18 Sam Weinig <sam@webkit.org>
  2269. Reviewed by Beth.
  2270. Build fix.
  2271. * WebCoreSupport/WebChromeClient.mm:
  2272. 2007-06-18 Kevin Decker <kdecker@apple.com>
  2273. * Carbon/HIWebView.m:
  2274. (WindowHandler): Fixed the Tiger build; ControlKind wasn't defined.
  2275. 2007-06-18 Kevin Decker <kdecker@apple.com>
  2276. Reviewed by Tim Hatcher.
  2277. Fixed: <rdar://problem/5276135> With Safari 3 Tiger Beta installed, a crash occurs in BBEdit while mousing down and dragging outside of HTML preview window
  2278. * Carbon/HIWebView.m:
  2279. (WindowHandler): Because the fix for 5051616 causes Tiger to crash in HIToolbox (but not on Leopard), I reverted back to using GetControlKind
  2280. on Tiger only, instead of HIObjectIsOfClass.
  2281. 2007-06-16 David Hyatt <hyatt@apple.com>
  2282. Back out fix for 13972. Quicktime will no longer clip correctly. :(
  2283. Too many regressions in Mail caused by inserting an extra view into the
  2284. hierarchy. Can revisit later.
  2285. Reviewed by olliej
  2286. * Plugins/WebPluginController.mm:
  2287. (-[WebPluginController destroyPlugin:]):
  2288. (-[WebPluginController destroyAllPlugins]):
  2289. * WebCoreSupport/WebFrameBridge.mm:
  2290. (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
  2291. * WebView/WebHTMLView.mm:
  2292. (-[WebHTMLView addSubview:]):
  2293. (-[WebHTMLView willRemoveSubview:]):
  2294. 2007-06-15 Sam Weinig <sam@webkit.org>
  2295. Reviewed by Darin.
  2296. Patch for http://bugs.webkit.org/show_bug.cgi?id=14053
  2297. Autogenerate JS binding for Rect
  2298. - Fix conflicts by using ::Rect instead of Rect.
  2299. * Plugins/WebBaseNetscapePluginView.mm:
  2300. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  2301. (-[WebBaseNetscapePluginView sendEvent:]):
  2302. (-[WebBaseNetscapePluginView tellQuickTimeToChill]):
  2303. (-[WebBaseNetscapePluginView invalidateRegion:]):
  2304. (-[WebBaseNetscapePluginView _printedPluginBitmap]):
  2305. 2007-06-15 Anders Carlsson <andersca@apple.com>
  2306. Reviewed by Kevin.
  2307. A better fix for <rdar://problem/5271774>. Only try to access the element if the
  2308. view has an associated window. This also works with GC. (Fix suggested by Kevin.)
  2309. * Plugins/WebKitPluginContainerView.mm:
  2310. (-[WebKitPluginContainerView dealloc]):
  2311. (-[WebKitPluginContainerView visibleRect]):
  2312. 2007-06-15 Anders Carlsson <andersca@apple.com>
  2313. Reviewed by Kevin.
  2314. <rdar://problem/5271774> REGRESSION: A crash occurs when closing a window that contains a QT movie
  2315. In some cases, calling [super dealloc] might end up calling visibleRect, so make sure to
  2316. set _element to 0 so we won't send a message to a freed object and crash.
  2317. * Plugins/WebKitPluginContainerView.mm:
  2318. (-[WebKitPluginContainerView dealloc]):
  2319. (-[WebKitPluginContainerView visibleRect]):
  2320. 2007-06-14 Anders Carlsson <andersca@apple.com>
  2321. Reviewed by Geoff.
  2322. Call cleanupScriptObjectsForPlugin on the frame after destroying the plug-in.
  2323. * Plugins/WebBaseNetscapePluginView.mm:
  2324. (-[WebBaseNetscapePluginView _destroyPlugin]):
  2325. * Plugins/WebPluginController.mm:
  2326. (-[WebPluginController destroyPlugin:]):
  2327. (-[WebPluginController destroyAllPlugins]):
  2328. 2007-06-13 John Sullivan <sullivan@apple.com>
  2329. Reviewed by Adele Peterson
  2330. - fixed <rdar://problem/5267607> Clicking the "Save to Downloads" button in
  2331. PDF overlay too soon results in corrupt file
  2332. * WebView/WebPDFView.mm:
  2333. (-[WebPDFView PDFViewSavePDFToDownloadFolder:]):
  2334. Just beep if the document isn't available yet, since trying to save it as a file
  2335. really isn't a good idea.
  2336. 2007-06-12 Oliver Hunt <oliver@apple.com>
  2337. Reviewed by Darin.
  2338. Use correct size for BITMAPINFOHEADER -- whoops.
  2339. * win/WebIconDatabase.cpp:
  2340. (createDIB):
  2341. (WebIconDatabase::getOrCreateDefaultIconBitmap):
  2342. 2007-06-10 David Hyatt <hyatt@apple.com>
  2343. Fix for bug 14037, make sure respondsToSelector does the write thing
  2344. when invoked on a WebKit plugin's container view.
  2345. Reviewed by Mark Rowe
  2346. * Plugins/WebKitPluginContainerView.mm:
  2347. (-[WebKitPluginContainerView respondsToSelector:]):
  2348. 2007-06-08 John Sullivan <sullivan@apple.com>
  2349. * WebView/WebViewPrivate.h:
  2350. Added a FIXME
  2351. 2007-06-07 Justin Garcia <justin.garcia@apple.com>
  2352. Reviewed by Tristan.
  2353. <rdar://problem/5250997> A crash occurs when selecting Undo Typing for a page that has been closed in tab
  2354. * WebView/WebView.mm:
  2355. (-[WebView _clearUndoRedoOperations]): Added.
  2356. * WebView/WebViewPrivate.h:
  2357. 2007-06-07 Oliver Hunt <oliver@apple.com>
  2358. Reviewed by Sam "The Intern" Weinig.
  2359. Don't be overzealous with the input checks, firstRectForCharacterRange
  2360. can be determined even when there is not an active editable region.
  2361. This unbreaks editing/input/range-for-empty-document which was broken
  2362. by aforementioned overzealousness.
  2363. * WebView/WebHTMLView.mm:
  2364. (-[WebHTMLView firstRectForCharacterRange:]):
  2365. 2007-06-07 Oliver Hunt <oliver@apple.com>
  2366. Reviewed by Justin.
  2367. Add checks to make sure we don't try to create, use
  2368. or return invalid ranges to TSM when it calls us despite
  2369. not currently being in an editable region.
  2370. * WebView/WebHTMLView.mm:
  2371. (isTextInput):
  2372. (-[WebHTMLView textStorage]):
  2373. (-[WebHTMLView firstRectForCharacterRange:]):
  2374. (-[WebHTMLView selectedRange]):
  2375. (-[WebHTMLView attributedSubstringFromRange:]):
  2376. 2007-06-06 David Hyatt <hyatt@apple.com>
  2377. Make sure to hand back a script object for webkit plugins (the container
  2378. view forwards to its plugin child).
  2379. Reviewed by sullivan
  2380. * Plugins/WebKitPluginContainerView.h:
  2381. * Plugins/WebKitPluginContainerView.mm:
  2382. (-[WebKitPluginContainerView objectForWebScript]):
  2383. 2007-06-06 David Hyatt <hyatt@apple.com>
  2384. Fix for bug 13972, quicktime doesn't respect CSS clip and overflow properties.
  2385. Make sure that calls to [NSView visibleRect] will do the right thing for both
  2386. Netscape plugins and WebKit plugins.
  2387. Reviewed by olliej
  2388. * Plugins/WebBaseNetscapePluginView.mm:
  2389. (-[WebBaseNetscapePluginView visibleRect]):
  2390. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  2391. (-[WebBaseNetscapePluginView isOpaque]):
  2392. * Plugins/WebKitPluginContainerView.h: Added.
  2393. * Plugins/WebKitPluginContainerView.mm: Added.
  2394. (-[WebKitPluginContainerView initWithFrame:DOMElement:]):
  2395. (-[WebKitPluginContainerView dealloc]):
  2396. (-[WebKitPluginContainerView visibleRect]):
  2397. * Plugins/WebPluginController.mm:
  2398. (-[WebPluginController destroyAllPlugins]):
  2399. * WebCoreSupport/WebFrameBridge.mm:
  2400. (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
  2401. * WebKit.xcodeproj/project.pbxproj:
  2402. * WebView/WebHTMLView.mm:
  2403. (-[WebHTMLView addSubview:]):
  2404. (-[WebHTMLView willRemoveSubview:]):
  2405. 2007-06-04 Oliver Hunt <oliver@apple.com>
  2406. Reviewed by Geoff and Justin.
  2407. Fix for <rdar://problem/5246941> Clicking URL field on
  2408. Safari causes halt for a minute when using input methods.
  2409. and <rdar://problem/5245964> Safari hangs for several
  2410. seconds when trying to select text using mouse
  2411. This is a by product of the textStorage hack used to fix
  2412. rdar://problem/5000470 -- TSM calls textStorage repeatedly
  2413. when changing focus, on certain mouse events, etc. If there
  2414. is no selection/editable region we repeatedly create an
  2415. NSAttributedString from the full document. If the document is
  2416. sufficiently long this starts consuming an inordinate amount of
  2417. time.
  2418. This check should really have been present in the original
  2419. patch.
  2420. * WebKit.xcodeproj/project.pbxproj:
  2421. * WebView/WebHTMLView.mm:
  2422. (-[WebHTMLView textStorage]):
  2423. 2007-05-31 David Hyatt <hyatt@apple.com>
  2424. Fix for 11768, Flash plugin does not respect clips set by CSS.
  2425. Reviewed by olliej
  2426. * Plugins/WebBaseNetscapePluginView.mm:
  2427. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  2428. 2007-05-30 Mark Rowe <mrowe@apple.com>
  2429. Build fixes after r21889.
  2430. * ForwardingHeaders/kjs/function.h: Added.
  2431. 2007-05-29 Mark Rowe <mrowe@apple.com>
  2432. Reviewed by Geoff.
  2433. 64-bit build fix. Ensure that use of WebNSUInteger in headers is matched by WebNSUInteger in implementations.
  2434. * DefaultDelegates/WebScriptDebugServer.h:
  2435. * DefaultDelegates/WebScriptDebugServer.m:
  2436. (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
  2437. (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
  2438. * DefaultDelegates/WebScriptDebugServerPrivate.h:
  2439. * History/WebBackForwardList.mm:
  2440. (-[WebBackForwardList setPageCacheSize:]):
  2441. (-[WebBackForwardList pageCacheSize]):
  2442. * WebView/WebView.mm:
  2443. (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
  2444. 2007-05-26 Darin Adler <darin@apple.com>
  2445. Reviewed by Tim Hatcher.
  2446. * MigrateHeaders.make: Added dependency on this makefile itself, which is
  2447. useful when you change the sed command or other aspect of this file. My build
  2448. failed until I made this fix.
  2449. 2007-05-25 Geoffrey Garen <ggaren@apple.com>
  2450. Reviewed by Darin Adler.
  2451. Fixed <rdar://problem/5055182> The page cache has no global cap.
  2452. The main WebKit changes are:
  2453. 1. Changed -[WebBackForwardList setPageCacheSize] and -[WebBackForwardList
  2454. pageCacheSize] to accomodate the new global page cache model, updating
  2455. their documentation.
  2456. 2. Added -[WebPreferences setShouldUsePageCache] and -[WebPreferences
  2457. shouldUsePageCache] as pending public API.
  2458. 3. Centralized calculation of object cache and page cache sizes inside
  2459. WebPreferences.
  2460. Cchanged our old behavior of reading a preference and applying a fudge
  2461. factor with a new behavior of just using the preference directly. The
  2462. old behavior was confusing and often inappropriate. (For example, if
  2463. you set a page cache size of 100, a 256MB machine would somewhat
  2464. arbitrarily reduce that number to 98. ???)
  2465. * WebView/WebView.mm: Added support for two flags to determine whether
  2466. to use the page cache. If either -[WebBackForwardList setPageCacheSize:0]
  2467. or -[WebPreferences setShouldUsePageCache:NO] is called, we don't use
  2468. the page cache.
  2469. 2007-05-25 Timothy Hatcher <timothy@apple.com>
  2470. Reviewed by Kevin Decker.
  2471. <rdar://problem/5219089> Changes for migration of DictionaryServices
  2472. * WebView/WebHTMLView.mm:
  2473. (-[WebHTMLView _lookUpInDictionaryFromMenu:]): look for the HIDictionaryWindowShow symbol in HIToolbox
  2474. 2007-05-25 Geoffrey Garen <ggaren@apple.com>
  2475. Reviewed by Oliver Hunt.
  2476. Fixed global initializer (like you fix a dog).
  2477. I'm not sure how our script missed this. I tested, and it generally doesn't
  2478. seem to work very well.
  2479. * WebView/WebHTMLView.mm: Allocate lazily to avoid the performance hit of
  2480. a global initializer.
  2481. (promisedDataClient):
  2482. (-[WebHTMLViewPrivate dealloc]):
  2483. (-[WebHTMLViewPrivate clear]):
  2484. (-[WebHTMLView setPromisedDragTIFFDataSource:WebCore::]):
  2485. 2007-05-25 Brady Eidson <beidson@apple.com>
  2486. Reviewed by Darin
  2487. <rdar://problem/5228371> - REGRESSION - Certain mail message bodies display as empty
  2488. This is due to http://trac.webkit.org/projects/webkit/changeset/21480 which unintentionally
  2489. made applewebdata urls result in check.call(false) instead of check.call(true)
  2490. Best place for a fix is to have the FrameLoaderClient::canHandleRequest() call return true, which
  2491. really is rooted in WebView
  2492. <rdar://problem/5229587> tracks adding a layout test
  2493. * WebView/WebView.mm:
  2494. (+[WebView _canHandleRequest:]): Return true for applewebdata URLs
  2495. 2007-05-25 Geoffrey Garen <ggaren@apple.com>
  2496. Reviewed by Darin Adler, Tim Hatcher.
  2497. "unsigned" => "WebNSUInteger" in public API.
  2498. * History/WebBackForwardList.h:
  2499. * WebView/WebScriptDebugDelegate.h:
  2500. * WebView/WebUIDelegate.h:
  2501. * WebView/WebViewPrivate.h:
  2502. 2007-05-25 Geoffrey Garen <ggaren@apple.com>
  2503. Reviewed by Darin Adler.
  2504. Moved JavaScriptCore-related pending public API to public API.
  2505. * MigrateHeaders.make: Hack to prevent <JavaScriptCore/JSBase.h> from
  2506. automatically converting to <WebKit/JSBase.h>
  2507. Moved -windowObject and -globalContext
  2508. * WebView/WebFramePrivate.h: from here
  2509. * WebView/WebFrame.h: to here
  2510. * WebView/WebFrame.mm: and out of its temporary category
  2511. Moved -didClearWindowObject:forFrame:
  2512. * WebView/WebViewPrivate.h: from here
  2513. * WebView/WebFrameLoadDelegate.h: to here
  2514. 2007-05-25 John Sullivan <sullivan@apple.com>
  2515. Reviewed by Anders and Tim
  2516. - fixed <rdar://problem/5226000> REGRESSION: In Gmail and Mail, a hang occurs when attempting
  2517. to grammar/spellcheck a word in a reply
  2518. * WebCoreSupport/WebEditorClient.mm:
  2519. (WebEditorClient::checkGrammarOfString):
  2520. Fixed recently-introduced false assumption that NSNotFound == -1
  2521. 2007-05-24 dethbakin <bdakin@apple.com>
  2522. Reviewed by Geoff.
  2523. Fix for <rdar://problem/5023545> QuickBooks Pro 2007:hang/crash
  2524. after closing QuickBooks Tutorial Center with Leopard9A377
  2525. We can hit a race condition where drawRect will be called after the
  2526. WebView has closed. Quickbooks does not properly close the WebView
  2527. and set the UIDelegate to nil, so the UIDelegate is stale and we
  2528. crash. This is a regression because the code that uses the
  2529. UIDelegate in the drawRect code path was only added recently. The
  2530. method that the UIDelegate calls into is new -- it does not exist
  2531. on Tiger -- so there is no harm in not running this code for
  2532. applications linked against older WebKits. Other applications may
  2533. run into this same bug so I am not doing a bundle
  2534. check...particularly because, as I mentioned, the new UIDelegate
  2535. call would not be implemented by older clients anyway.
  2536. * Misc/WebKitVersionChecks.h:
  2537. * WebView/WebHTMLView.mm:
  2538. (-[WebHTMLView drawSingleRect:]):
  2539. 2007-05-24 Darin Adler <darin@apple.com>
  2540. * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
  2541. 2007-05-24 Oliver Hunt <oliver@apple.com>
  2542. Reviewed by Adam, Darin, and Geoff.
  2543. Fix for <rdar://problem/5000470> REGRESSION: The IM reconvert
  2544. function returns incorrect symbol due to inconsistent range
  2545. domains in TSM
  2546. Text Services Management uses ranges provided by the
  2547. NSTextInput API to index into the string return by
  2548. -[WebHTMLView string]. As a result some input methods
  2549. incorrectly get their candidate text from the beginning
  2550. of the document instead of from the input element.
  2551. TSM prefers to query -textStorage over -string so as a
  2552. workaround we provide an implementation of -textStorage that
  2553. returns the content of the current text input. TSM only ever
  2554. queries the result of textStorage as an NSAttributedString so
  2555. we do not need to implement a fake NSTextStorage class
  2556. This should not cause harm to anything else as textStorage is
  2557. actually a method on NSTextView, which we clearly are not. TSM
  2558. only queries the method because it uses respondsToSelector to
  2559. control behaviour.
  2560. * WebView/WebHTMLView.mm:
  2561. (-[WebHTMLView textStorage]):
  2562. 2007-05-24 David Harrison <harrison@apple.com>
  2563. Reviewed by Tim Hatcher.
  2564. <rdar://problem/5225343> REGRESSION: With View Source window opened, navigating to a different URL in the browser window results in a crash at WebCore::FrameLoader::frameHasLoaded()
  2565. _private->loader->frameLoader() was not being nil checked.
  2566. * WebView/WebDataSource.mm:
  2567. (-[WebDataSource request]):
  2568. Add nil check for _private->loader->frameLoader()
  2569. 2007-05-23 Anders Carlsson <andersca@apple.com>
  2570. Reviewed by Geoff.
  2571. <rdar://problem/3663808> Resize large images to fit in the browser window
  2572. Add new WebPreferences SPI.
  2573. * WebView/WebPreferenceKeysPrivate.h:
  2574. * WebView/WebPreferences.m:
  2575. (+[WebPreferences initialize]):
  2576. (-[WebPreferences enableAutomaticImageResizing]):
  2577. (-[WebPreferences setEnableAutomaticImageResizing:]):
  2578. * WebView/WebPreferencesPrivate.h:
  2579. * WebView/WebView.mm:
  2580. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  2581. 2007-05-23 Sam Weinig <sam@webkit.org>
  2582. Reviewed by Darin.
  2583. Patch for http://bugs.webkit.org/show_bug.cgi?id=13830
  2584. Auto-generate JS DOM bindings for HTMLDocument and most of the rest
  2585. of HTMLElement
  2586. * MigrateHeaders.make: add DOMHTMLDocumentPrivate.h
  2587. * WebKit.xcodeproj/project.pbxproj:
  2588. 2007-05-23 Oliver Hunt <oliver@apple.com>
  2589. Reviewed by Geoff.
  2590. Fix for <rdar://problem/5223782> REGRESSION: Can't drag and drop a standalone image
  2591. The main resource for a standalone image webarchive has the same mimetype as the
  2592. underlying image.
  2593. * Misc/WebNSPasteboardExtras.mm:
  2594. (-[NSPasteboard _web_writePromisedRTFDFromArchive:containsImage:]):
  2595. 2007-05-22 Sam Weinig <sam@webkit.org>
  2596. Reviewed by Adam.
  2597. Patch for http://bugs.webkit.org/show_bug.cgi?id=13833
  2598. Add ObjC DOM binding for HTMLMarqeeElement
  2599. - Also adds missing DOMHTMLFramePrivate.
  2600. * MigrateHeaders.make:
  2601. 2007-05-22 Darin Adler <darin@apple.com>
  2602. Reviewed by Geoff.
  2603. * WebInspector/webInspector/treeoutline.js: Use ownerDocument instead of non-standard
  2604. document property.
  2605. 2007-05-22 Adele Peterson <adele@apple.com>
  2606. Reviewed by Darin.
  2607. Adding some asserts to help detect other cases of <rdar://problem/5171145>
  2608. * WebCoreSupport/WebFrameBridge.mm: (-[WebFrameBridge makeFirstResponder:]):
  2609. 2007-05-22 Brady Eidson <beidson@apple.com>
  2610. Reviewed by Kevin (Sarge)
  2611. <rdar://problem/5219885> - Crash after closing a inline popup ad at http://news.yahoo.com/
  2612. This regressed in http://trac.webkit.org/projects/webkit/changeset/21618
  2613. * WebView/WebFrame.mm:
  2614. (-[WebFrame dataSource]): Null check the frameloader
  2615. 2007-05-21 Adele Peterson <adele@apple.com>
  2616. Fix by Darin, reviewed by me.
  2617. Fix for <rdar://problem/5171145> Safari crashed closing tab in NSInputContext updateInputContexts
  2618. * WebView/WebFrameView.mm: (-[WebFrameView _setDocumentView:]): If the old view is the first responder,
  2619. then 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.
  2620. 2007-05-21 Brady Eidson <beidson@apple.com>
  2621. Making the importance of my last change more clear
  2622. * WebView/WebViewPrivate.h: "Leave for Dashboard, people!"
  2623. 2007-05-21 Brady Eidson <beidson@apple.com>
  2624. Reviewed by Kevin (Sarge)
  2625. <rdar://problem/5217124> - Re-add mistakenly removed SPI
  2626. * WebView/WebView.mm:
  2627. (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]):
  2628. * WebView/WebViewPrivate.h:
  2629. 2007-05-21 Anders Carlsson <andersca@apple.com>
  2630. Reviewed by Ada.
  2631. <rdar://problem/5200816> REGRESSION: With Shiira 1.2.2 , I can't open embedded link in flash object by clicking (http:/www.adobe.com )
  2632. Null check the request.
  2633. * WebView/WebView.mm:
  2634. (+[WebView _canHandleRequest:]):
  2635. 2007-05-19 Maciej Stachowiak <mjs@apple.com>
  2636. Reviewed by Geoff.
  2637. <rdar://problem/5205358> REGRESSION (r21367): All messages appear entirely blank when running Mail off of tip of tree WebKit
  2638. The fix is to return nil from [WebFrame dataSource] when it has not loaded anything but the fake
  2639. empty initial document. However, WebKit still needs the real data source internally, so I also
  2640. added a [WebFrame _dataSource] method that skips this check, and made WebKit use it throughout.
  2641. * Misc/WebNSAttributedStringExtras.mm:
  2642. (fileWrapperForElement):
  2643. * Plugins/WebBaseNetscapePluginView.mm:
  2644. (-[WebBaseNetscapePluginView dataSource]):
  2645. * Plugins/WebNullPluginView.mm:
  2646. (-[WebNullPluginView viewDidMoveToWindow]):
  2647. * Plugins/WebPluginController.mm:
  2648. (-[WebPluginController URLPolicyCheckReferrer]):
  2649. * WebCoreSupport/WebFrameBridge.mm:
  2650. (-[WebFrameBridge dataSource]):
  2651. (-[WebFrameBridge redirectDataToPlugin:]):
  2652. * WebCoreSupport/WebFrameLoaderClient.mm:
  2653. (WebFrameLoaderClient::makeDocumentView):
  2654. (WebFrameLoaderClient::forceLayoutForNonHTML):
  2655. (WebFrameLoaderClient::prepareForDataSourceReplacement):
  2656. (WebFrameLoaderClient::canCachePage):
  2657. * WebCoreSupport/WebViewFactory.mm:
  2658. (-[WebViewFactory bridgeForView:]):
  2659. * WebKit.xcodeproj/project.pbxproj:
  2660. * WebView/WebArchiver.mm:
  2661. (+[WebArchiver archiveFrame:]):
  2662. (+[WebArchiver archiveMainResourceForFrame:]):
  2663. (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
  2664. (+[WebArchiver archiveSelectionInFrame:]):
  2665. * WebView/WebFrame.mm:
  2666. (-[WebFrame _loadURL:referrer:intoChild:]):
  2667. (-[WebFrame _addChild:]):
  2668. (-[WebFrame _dataSource]):
  2669. (-[WebFrame DOMDocument]):
  2670. (-[WebFrame dataSource]):
  2671. * WebView/WebFrameInternal.h:
  2672. * WebView/WebHTMLView.mm:
  2673. (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
  2674. * WebView/WebRenderNode.mm:
  2675. (-[WebRenderNode initWithWebFrameView:]):
  2676. * WebView/WebView.mm:
  2677. (-[WebView _mainFrameOverrideEncoding]):
  2678. (-[WebView mainFrameURL]):
  2679. (-[WebView mainFrameTitle]):
  2680. (-[WebView mainFrameIcon]):
  2681. (-[WebView validateUserInterfaceItemWithoutDelegate:]):
  2682. (-[WebView replaceSelectionWithArchive:]):
  2683. (-[WebView _isLoading]):
  2684. (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
  2685. (-[WebView _notifyTextSizeMultiplierChanged]):
  2686. 2007-05-18 Oliver Hunt <oliver@apple.com>
  2687. Reviewed by Sam.
  2688. Fix for http://bugs.webkit.org/show_bug.cgi?id=13782
  2689. REGRESSION (r21528-r21533): Failing editing/selection/drag-in-iframe in pixel mode
  2690. r21533 made used a DOMElement as the source for promise data, this meant it had to
  2691. clear the dragging pasteboard following the drag. In DRT a drag is non-blocking
  2692. so this resulted in us prematurely clearing the pasteboard.
  2693. This patch avoids this problem by referencing the source CachedImage rather than the
  2694. DOMElement, so we don't need to worry about retaining an entire document forever, so
  2695. we don't need to clear the dragging pasteboard following the drag.
  2696. * Misc/WebNSPasteboardExtras.mm:
  2697. (imageFromElement):
  2698. Extract the underlying CachedImage from a DOMElement
  2699. (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:source:]):
  2700. Use a CachedImage instead of a DOMElement
  2701. * WebCoreSupport/WebDragClient.mm:
  2702. (WebDragClient::startDrag):
  2703. * WebKit.xcodeproj/project.pbxproj:
  2704. * WebView/WebHTMLView.mm:
  2705. (-[WebHTMLViewPrivate dealloc]):
  2706. (-[WebHTMLViewPrivate clear]):
  2707. (-[WebHTMLView pasteboardChangedOwner:]):
  2708. (-[WebHTMLView pasteboard:provideDataForType:]):
  2709. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
  2710. (-[WebHTMLView WebCore::]):
  2711. (-[WebHTMLView setPromisedDragTIFFDataSource:WebCore::]):
  2712. Use CachedImage rather than DOMElement as promised data source
  2713. * WebView/WebHTMLViewInternal.h:
  2714. * WebView/WebHTMLViewPrivate.h:
  2715. 2007-05-18 Tristan O'Tierney <tristan@apple.com>
  2716. Reviewed by Brady E.
  2717. * WebCoreSupport/WebFrameLoaderClient.mm:
  2718. (WebFrameLoaderClient::download):
  2719. asked the webframeloaderclient for its webview's history and
  2720. injected the originated url into the created WebDownload
  2721. 2007-05-18 John Sullivan <sullivan@apple.com>
  2722. Reviewed by Kevin Decker
  2723. Improvement to WebKit part of fix for 5201499 based on more modern understanding. (That is,
  2724. a couple of hours more modern.)
  2725. * WebView/WebUIDelegatePrivate.h:
  2726. add showPanel: parameter to just-introduced delegate method webView:saveFrameView:
  2727. * WebView/WebPDFView.mm:
  2728. (-[WebPDFView PDFViewSavePDFToDownloadFolder:]):
  2729. pass NO for new showPanel: parameter, and update comment
  2730. 2007-05-18 Maciej Stachowiak <mjs@apple.com>
  2731. Reviewed by John.
  2732. <rdar://problem/5204792> REGRESSION (r21367): System widgets are drawn with vertical/horizontal scroll bars
  2733. No test because the bug requires calling setAllowsScrolling: to reproduce.
  2734. * WebView/WebFrameView.mm:
  2735. (-[WebFrameView setAllowsScrolling:]): Update the FrameView's scroll state as well as the one
  2736. on WebDynamicScrollBarsView, otherwise this setting won't stick if the frame has already loaded
  2737. a document.
  2738. 2007-05-18 Geoffrey Garen <ggaren@apple.com>
  2739. Fixed spelling error.
  2740. * WebView/WebViewPrivate.h:
  2741. 2007-05-18 John Sullivan <sullivan@apple.com>
  2742. Reviewed by Kevin Decker
  2743. WebKit part of fix for 5201499 (support for PDFKit UI for saving PDFs to disk)
  2744. Also, the PDFKit mechanism for notifying clients about "Open File Externally" was
  2745. changed from a notification to a delegate method. The notification was new to
  2746. Leopard, so removing it doesn't affect clients in the field.
  2747. * WebView/WebUIDelegatePrivate.h:
  2748. Declared new UI delegate method webView:saveFrameView:, analogous to the existing
  2749. webView:printFrameView:
  2750. * WebView/WebPDFView.mm:
  2751. removed declaration of _webkit_PDFKitLaunchNotification
  2752. (-[WebPDFView viewDidMoveToWindow]):
  2753. don't observe _webkit_PDFKitLaunchNotification
  2754. (-[WebPDFView viewWillMoveToWindow:]):
  2755. ditto
  2756. (-[WebPDFView PDFViewOpenPDFInNativeApplication:]):
  2757. new PDFKit delegate method, replaces our use of _webkit_PDFKitLaunchNotification
  2758. (-[WebPDFView PDFViewSavePDFToDownloadFolder:]):
  2759. new PDFKit delegate method, calls through to new WebKit UI delegate method
  2760. 2007-05-17 Oliver Hunt <oliver@apple.com>
  2761. Reviewed by Justin.
  2762. Fix for <rdar://problem/4244861> Safari fails to create image file
  2763. after releasing dragged image that has changed on source page
  2764. This patch fixes this bug by manually creating an NSFileWrapper from
  2765. the TIFF promise data for a drag if it is available. This bypasses
  2766. the problem of the required resource no longer being held due to page
  2767. loads or other constraints.
  2768. We need to leave the old path in place to allow for the case where
  2769. the promised data is not available.
  2770. * WebCoreSupport/WebDragClient.mm:
  2771. (WebDragClient::declareAndWriteDragImage):
  2772. Always use the top WebHTMLView as the pasteboard owner, this is
  2773. safe as we only use the owner for resolving promised types.
  2774. * WebView/WebHTMLView.mm:
  2775. (-[WebHTMLView _writeSelectionToPasteboard:]):
  2776. (-[WebHTMLView writeSelectionToPasteboard:types:]):
  2777. Always use the top WebHTMLView as the pasteboard owner.
  2778. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
  2779. Add path to create NSFileWrapper from promise data.
  2780. 2007-05-17 Oliver Hunt <oliver@apple.com>
  2781. Reviewed by Adam.
  2782. Fix for <rdar://problem/4343832> Trying to drag a large 6.2MB jpeg image
  2783. out of Safari is unexpectedly slow (4 copies of image plus RTF document on pasteboard)
  2784. This patch causes the construction of the RTF and TIFF data to be delayed until requested.
  2785. We delay TIFF construction from a DOMElement as this may require generating TIFF data
  2786. from the CachedImage, which is slow. To allow the TIFF data to be created later the
  2787. it's necessary to add a reference to the source DOMElement to the view.
  2788. * Misc/WebNSPasteboardExtras.h:
  2789. * Misc/WebNSPasteboardExtras.mm:
  2790. (-[NSPasteboard _web_writePromisedRTFDFromArchive:containsImage:]):
  2791. Implements the delayed write of RTF data
  2792. (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:source:]):
  2793. Set up the pasteboard to allow the data writing to be delayed
  2794. (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
  2795. Now we need to pass the WebHTMLView on to _web_writeImage:element:URL:title:archive:types:source:
  2796. * WebCoreSupport/WebDragClient.mm:
  2797. (WebDragClient::startDrag):
  2798. Clear the dragging pasteboard once the drag has ended to ensure we don't hold references
  2799. to anything longer than we need to.
  2800. (WebDragClient::declareAndWriteDragImage):
  2801. * WebView/WebHTMLView.mm:
  2802. (-[WebHTMLViewPrivate dealloc]):
  2803. (-[WebHTMLViewPrivate clear]):
  2804. (-[WebHTMLView pasteboardChangedOwner:]):
  2805. Make sure we clear out the DOMElement reference once it is no longer needed
  2806. (-[WebHTMLView pasteboard:provideDataForType:]):
  2807. Provide delayed data
  2808. (-[WebHTMLView _writeSelectionToPasteboard:]):
  2809. Make sure we set pasteboard ownership correctly
  2810. (-[WebHTMLView promisedDragTIFFDataSource]):
  2811. (-[WebHTMLView setPromisedDragTIFFDataSource:]):
  2812. (-[WebHTMLView writeSelectionToPasteboard:types:]):
  2813. * WebView/WebHTMLViewInternal.h:
  2814. * WebView/WebHTMLViewPrivate.h:
  2815. * WebView/WebView.mm:
  2816. (-[WebView _writeImageForElement:withPasteboardTypes:toPasteboard:]):
  2817. 2007-05-16 Anders Carlsson <andersca@apple.com>
  2818. Reviewed by Darin.
  2819. <rdar://problem/5207156> Hamachi test tool causes assertion in FormCompletionController in Safari
  2820. Update for WebCore changes.
  2821. * WebView/WebFrame.mm:
  2822. (-[WebFrame _loadURL:referrer:intoChild:]):
  2823. 2007-05-15 Oliver Hunt <oliver@apple.com>
  2824. Reviewed by Sam and Geoff.
  2825. Removing dead code left behind from drag and drop refactoring.
  2826. * WebCoreSupport/WebFrameBridge.mm:
  2827. * WebView/WebHTMLView.mm:
  2828. * WebView/WebHTMLViewPrivate.h:
  2829. 2007-05-15 Bruce Q Hammond <bruceq@apple.com>
  2830. Reviewed by Darin.
  2831. Correction of previous patch for http://bugs.webkit.org/show_bug.cgi?id=13578
  2832. This corrects the sign of the Y-Axis origin adjustment.
  2833. * Plugins/WebBaseNetscapePluginView.mm:
  2834. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  2835. 2007-05-15 Geoffrey Garen <ggaren@apple.com>
  2836. Reviewed by Maciej Stachowiak.
  2837. Patch: fixed <rdar://problem/5198890> .5% performance regression caused
  2838. by r21307
  2839. The only code r21307 added that runs during the PLT is a frame load delegate
  2840. -respondsToSelector: call inside windowObjectCleared(), so it seems like
  2841. our message dispatch overhead for the frame load delegate is significant.
  2842. This patch is a straight port of Maciej's fix for the same problem in the
  2843. resource load delegate. The solution is simple enough: don't use Objective-C.
  2844. Instead, use a special structure that caches which methods the delegate
  2845. implements, along with pointers to those methods.
  2846. I verified each frame load delegate callback in the debugger, except for
  2847. -webView:didFailLoadWithError:forFrame:, which is not implemented by Safari
  2848. or DumpRenderTree.
  2849. * WebKit/DefaultDelegates/WebDefaultFrameLoadDelegate.h: Removed.
  2850. * WebKit/DefaultDelegates/WebDefaultFrameLoadDelegate.m: Removed.
  2851. * WebCoreSupport/WebFrameBridge.mm:
  2852. (-[WebFrameBridge windowObjectCleared]): I also removed a misleading
  2853. comment here. The JS debugger caches the windowScriptObject, so you do
  2854. need to re-create the debugger every time you invalidate the old
  2855. WebScriptObject wrapper for the window object and create a new one, or
  2856. the debugger will stop working. We could fix this in a number of ways,
  2857. but <rdar://problem/4608404> is not the key issue.
  2858. 2007-05-15 Maciej Stachowiak <mjs@apple.com>
  2859. Reviewed by Hyatt and Lars.
  2860. - fixed <rdar://problem/5201758> REGRESSION: Stop button enabled and other problems caused by [WebView currentURL] returning non-nil for empty window
  2861. * WebView/WebDataSource.mm:
  2862. (-[WebDataSource request]): Return nil when we are still showing the initial empty doc
  2863. 2007-05-14 Geoffrey Garen <ggaren@apple.com>
  2864. Reviewed by Darin Adler.
  2865. Updated for WebCore move to PageCache singleton. Also removed some WebCore::
  2866. prefixes and replaced them with 'using namespace WebCore'.
  2867. * History/WebHistoryItem.mm:
  2868. (+[WebHistoryItem _releaseAllPendingPageCaches]):
  2869. (-[WebWindowWatcher windowWillClose:]):
  2870. 2007-05-13 Darin Adler <darin@apple.com>
  2871. - one more retain/release for a tiny bit more robustness
  2872. * WebView/WebPDFView.mm:
  2873. (-[WebPDFView _updatePreferences:]): [prefs release]
  2874. (-[WebPDFView _updatePreferencesSoon]): [prefs retain]
  2875. 2007-05-13 Darin Adler <darin@apple.com>
  2876. Reviewed by Geoff.
  2877. - fix <rdar://problem/5188400> Webkit crashes going back from PDF at perl.org site
  2878. * WebView/WebPDFView.h: Replace _updatePreferencesTimer with _willUpdatePreferencesSoon BOOL.
  2879. Also remove unneeded @public that gives other classes access to our dataSource member.
  2880. * WebView/WebPDFView.mm: Rearrange top of file a bit, remove forward declaration of the
  2881. _cancelUpdatePreferencesTimer method.
  2882. (-[WebPDFView dealloc]): Removed call to _cancelUpdatePreferencesTimer.
  2883. (-[WebPDFView _updatePreferencesNow:]): Added WebPreferences parameter. This sidesteps problems
  2884. where the dataSource is no longer present by not looking at the dataSource field at all.
  2885. Also removed the call to _cancelUpdatePreferencesTimer, added code to set _willUpdatePreferencesSoon
  2886. to NO and added a release to balance a retain I did in _updatePreferencesSoon.
  2887. (-[WebPDFView _updatePreferencesSoon]): Changed to use performSelectorAfterDelay instead of
  2888. an NSTimer. Pass in the preferences object as a parameter, since we might not be able to get to
  2889. the dataSource when the timer fires.
  2890. 2007-05-10 Geoffrey Garen <ggaren@apple.com>
  2891. Reviewed by Darin Adler.
  2892. "IconDatabase::sharedIconDatabase()" => "iconDatabase()" for terseness.
  2893. 2007-05-10 Adele Peterson <adele@apple.com>
  2894. Reviewed by Hyatt.
  2895. WebKit part of fix for <rdar://problem/4100616> Doing a "find" in RSS doesn't scroll to result
  2896. Updated to use selectionRect instead of visibleSelectionRect. selectionRect() now returns the visible rect by default.
  2897. * WebView/WebHTMLView.mm:
  2898. (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
  2899. (-[WebHTMLView selectionImageRect]):
  2900. 2007-05-10 dethbakin <bdakin@apple.com>
  2901. Reviewed by Darin.
  2902. Fix for <rdar://problem/5191941> Leopard: Adobe Acrobat 8:
  2903. Distiller 8 needs same check fix as 4992521
  2904. * WebView/WebView.mm:
  2905. (-[WebView _updateWebCoreSettingsFromPreferences:]): Adobe
  2906. Distiller needs the same quirk.
  2907. 2007-05-10 Maciej Stachowiak <mjs@apple.com>
  2908. Reviewed by Oliver.
  2909. - WebKit part of fix for:
  2910. <rdar://problem/5063277> blank screen after login to Citibank Online (accessing document before frame starts loading cancels load)
  2911. <rdar://problem/5159541> REGRESSION (r20972): Wall Street Journal pages replaced by advertisements (13465)
  2912. The basic approach is to have Frames start out containing an empty document instead of absolutely nothing,
  2913. so there is no need to initialize them on demand. Various side effects of that cause both of these bugs.
  2914. However, this caused many regressions so I had to fix the fallout.
  2915. * WebCoreSupport/WebChromeClient.mm:
  2916. (WebChromeClient::takeFocus): Avoid focus cycle problems (can happen in DumpRenderTree
  2917. with initial empty document now).
  2918. * WebCoreSupport/WebFrameBridge.mm:
  2919. (-[WebFrameBridge finishInitializingWithPage:frameName:frameView:ownerElement:]): init the frame.
  2920. (-[WebFrameBridge determineObjectFromMIMEType:URL:]): return image type when appropriate
  2921. * WebView/WebFrame.mm:
  2922. (-[WebFrame stopLoading]): use stopForUserCancel().
  2923. * WebView/WebFrameView.mm:
  2924. (-[WebFrameView _makeDocumentViewForDataSource:]): assume html when no mime type available.
  2925. * WebView/WebView.mm:
  2926. (-[WebView becomeFirstResponder]): Track whether we are becoming first responder from
  2927. outside the view.
  2928. (-[WebView _becomingFirstResponderFromOutside]): Return this value.
  2929. * WebView/WebViewInternal.h:
  2930. 2007-05-09 Oliver Hunt <oliver@apple.com>
  2931. rs=Adele.
  2932. The previous patch (r21346) broke editing, rolling out
  2933. * WebView/WebHTMLView.mm:
  2934. (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
  2935. (-[WebHTMLView doCommandBySelector:]):
  2936. 2007-05-09 Adele Peterson <adele@apple.com>
  2937. Reviewed by Oliver.
  2938. Re-applying fix for <rdar://problem/5107538> REGRESSION: Page scroll when selecting characters from inline input candidate window by arrow buttons
  2939. http://bugs.webkit.org/show_bug.cgi?id=13263
  2940. We don't need to call interpretKeyEvents for cmd-key events as
  2941. they events will be interpreted by performKeyEquivalent.
  2942. * WebView/WebHTMLView.mm:
  2943. (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
  2944. (-[WebHTMLView doCommandBySelector:]):
  2945. 2007-05-09 Mark Rowe <mrowe@apple.com>
  2946. Build fix to keep the buildbot happy.
  2947. * Plugins/WebBaseNetscapePluginView.mm:
  2948. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  2949. 2007-05-08 Bruce Q Hammond <bruceq@apple.com>
  2950. Reviewed by Darin.
  2951. http://bugs.webkit.org/show_bug.cgi?id=13578
  2952. Bug 13578: When QD plugins draw to an offscreen bitmap the origin is not correct
  2953. Now we have correct handling of the origin when QD plugins draw to
  2954. offscreen bitmaps.
  2955. Also the clipping code for this path was doing unnecessary work which
  2956. caused incorrect results; it has been removed.
  2957. This change should not affect Safari and in general will only affect
  2958. plugins (e.g. Flash) drawing to a CGBitmapContext.
  2959. * Plugins/WebBaseNetscapePluginView.mm:
  2960. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  2961. 2007-05-08 Steve Falkenburg <sfalken@apple.com>
  2962. Reviewed by Darin.
  2963. Implemented spelling/grammar related WebEditorClient methods.
  2964. * WebCoreSupport/WebEditorClient.h:
  2965. * WebCoreSupport/WebEditorClient.mm:
  2966. (WebEditorClient::ignoreWordInSpellDocument): Added. Call through to NSSpellChecker.
  2967. (WebEditorClient::learnWord): Added. Call through to NSSpellChecker.
  2968. (WebEditorClient::checkSpellingOfString): Added. Call through to NSSpellChecker.
  2969. (WebEditorClient::checkGrammarOfString): Added. Call through to NSSpellChecker.
  2970. (WebEditorClient::updateSpellingUIWithGrammarString): Added. Call through to NSSpellChecker.
  2971. (WebEditorClient::updateSpellingUIWithMisspelledWord): Added. Call through to NSSpellChecker.
  2972. (WebEditorClient::showSpellingUI): Added. Call through to NSSpellChecker.
  2973. (WebEditorClient::spellingUIIsShowing): Added. Call through to NSSpellChecker.
  2974. (WebEditorClient::getGuessesForWord): Added. Call through to NSSpellChecker.
  2975. 2007-05-08 Steve Falkenburg <sfalken@apple.com>
  2976. Reviewed by Ada.
  2977. Slight modification to last editor method fix.
  2978. * WebCoreSupport/WebEditorClient.h:
  2979. (WebEditorClient::updateSpellingUIWithGrammarString):
  2980. 2007-05-07 Geoffrey Garen <ggaren@apple.com>
  2981. Reviewed by Maciej Stachowiak.
  2982. Fixed <rdar://problem/5140447> API for fetching JSGlobalContextRef from
  2983. WebView or WebFrame
  2984. Added -[WebFrame windowObject] and -[WebFrame globalContext], along with
  2985. a new frame load delegate method, - (void)webView:(WebView *)webView
  2986. didClearWindowObject:(WebScriptObject *)windowObject forFrame:(WebFrame *)frame.
  2987. This is all to support briding between the WebScriptObject and JavaScriptCore
  2988. APIs.
  2989. Also fixed more of <rdar://problem/4395622> API: WebScriptObject.h incorrectly
  2990. reports that -isSelectorExcludedFromWebScript returns NO by default, and
  2991. generally cleaned up the WebScriptObject headerdoc.
  2992. * WebCoreSupport/WebFrameBridge.mm:
  2993. (-[WebFrameBridge windowObjectCleared]):
  2994. * WebView/WebFrame.mm:
  2995. (-[WebFrame windowObject]):
  2996. (-[WebFrame globalContext]):
  2997. * WebView/WebFramePrivate.h:
  2998. * WebView/WebViewPrivate.h:
  2999. 2007-05-07 Timothy Hatcher <timothy@apple.com>
  3000. Reviewed by Darin.
  3001. <rdar://problem/5180384> webView:validateUserInterfaceItem:defaultValidation: does not get called on WebUIDelegates
  3002. Call the delegate when the one of our views gets a validateUserInterfaceItem: call.
  3003. * WebView/WebHTMLView.mm:
  3004. (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Validate without the delegate.
  3005. (-[WebHTMLView validateUserInterfaceItem:]): Call the delegate with the result of validateUserInterfaceItemWithoutDelegate:.
  3006. * WebView/WebPDFView.mm:
  3007. (-[WebPDFView validateUserInterfaceItemWithoutDelegate:]): Validate without the delegate.
  3008. (-[WebPDFView validateUserInterfaceItem:]): Call the delegate with the result of validateUserInterfaceItemWithoutDelegate:.
  3009. * WebView/WebView.mm:
  3010. (-[WebView _responderValidateUserInterfaceItem:]): Call validateUserInterfaceItemWithoutDelegate: to prevent asking the delegate twice.
  3011. (-[WebView validateUserInterfaceItemWithoutDelegate:]): Validate without the delegate.
  3012. (-[WebView validateUserInterfaceItem:]): Call the delegate with the result of validateUserInterfaceItemWithoutDelegate:.
  3013. 2007-05-07 Brady Eidson <beidson@apple.com>
  3014. Actually finish the code move from my last checkin
  3015. * History/WebHistoryItem.mm:
  3016. (-[WebHistoryItem _transientPropertyForKey:]):
  3017. (-[WebHistoryItem _setTransientProperty:forKey:]):
  3018. 2007-05-07 Brady Eidson <beidson@apple.com>
  3019. Rubberstamped by Kevin (Sarge)
  3020. Make _transientPropertyForKey: and _setTransientProperty:forKey: SPI
  3021. * History/WebHistoryItemInternal.h:
  3022. * History/WebHistoryItemPrivate.h:
  3023. 2007-05-04 Geoffrey Garen <ggaren@apple.com>
  3024. Reviewed by Tim Hatcher.
  3025. First step in fixing <rdar://problem/5055182> The back cache has no global cap
  3026. Stop giving SnapBack infinite cache-ability. Instead, make SnapBack rely
  3027. on the underlying back cache.
  3028. I left -setAlwaysAttemptToUsePageCache: as an empty stub because we don't
  3029. want to break Safari 2.0, but I removed its header declaration so nobody
  3030. else starts using it.
  3031. * History/WebHistoryItem.mm:
  3032. (-[WebHistoryItem setAlwaysAttemptToUsePageCache:]):
  3033. * History/WebHistoryItemPrivate.h:
  3034. 2007-05-04 Geoffrey Garen <ggaren@apple.com>
  3035. Reviewed by Brady Eidson.
  3036. Some cleanup in preparation for fixing <rdar://problem/5055182> The
  3037. back/forward cache has no global cap
  3038. Unified naming of WebKit/WebCore b/f lists -- instead of the potpourri
  3039. of webBackForwardList, backForwardList, list, kitList, coreList, listWrapper,
  3040. and webCoreBackForwardList, we use webBackForwardList for WebKit and
  3041. backForwardList for WebCore, matching their respective class names.
  3042. Removed "private" versions of kit() and core() -- kit() and core() are
  3043. canonically used for converting between WebKit API objects and WebCore
  3044. API objects. I think it's clearer to have only one way to do this.
  3045. Removed COMPUTE_DEFAULT_PAGE_CACHE_SIZE, since it was unused.
  3046. Removed _clearPageCache, since it was unused and it duplicated -setPageCacheSize:0.
  3047. Removed _usesPageCache, since it was unused and it duplicated -pageCacheSize.
  3048. 2007-05-04 Brady Eidson <beidson@apple.com>
  3049. Reviewed by Mark Rowe
  3050. Added main thread assertion to WebHTMLView to help make sure 3rd party clients aren't trying
  3051. to draw on secondary threads
  3052. * WebView/WebHTMLView.mm:
  3053. (-[WebHTMLView drawRect:]): Added ASSERT_MAIN_THREAD()
  3054. 2007-05-04 Anders Carlsson <andersca@apple.com>
  3055. Reviewed by Antti.
  3056. <rdar://problem/5179977> Use the correct URLs when dispatching delegate methods for data loads.
  3057. * WebView/WebFrame.mm:
  3058. (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
  3059. If the base URL is nil, set it to "about:blank", and set the response URL to a generated applewebdata URL.
  3060. * WebView/WebView.mm:
  3061. (+[WebView _canHandleRequest:]):
  3062. No need to special-case applewebdata URLs here anymore, they're only used in responses.
  3063. 2007-05-03 Steve Falkenburg <sfalken@apple.com>
  3064. Reviewed by Oliver.
  3065. Add missing user description parameter to spelling-related editor client method.
  3066. * WebCoreSupport/WebEditorClient.h:
  3067. (WebEditorClient::updateSpellingUIWithGrammarString):
  3068. 2007-05-03 TImothy Hatcher <timothy@apple.com>
  3069. Reviewed by Kevin.
  3070. <rdar://problem/4975212> REGRESSION: With NetNewsWire 2.1.1, the contextual menu shows extra menu items when focus
  3071. is placed in input or textarea field
  3072. The NetNewsWire UI delegate isn't expecting calls for form controls, so we need to do a linked-on-or-after check.
  3073. If the application was linked against Tiger or earlier and the element is a text form control, just return the
  3074. default menu items and bypass the delegate call completely.
  3075. * WebCoreSupport/WebContextMenuClient.mm:
  3076. (isPreVersion3Client): Cache the result of the WebKitLinkedOnOrAfter call
  3077. (fixMenusToSendToOldClients): Call the new isPreVersion3Client()
  3078. (fixMenusReceivedFromOldClients): Ditto.
  3079. (WebContextMenuClient::getCustomMenuFromDefaultItems): Return the default menu items if the element is a text form control.
  3080. 2007-05-03 Mark Rowe <mrowe@apple.com>
  3081. Reviewed by Geoff and Kevin.
  3082. <rdar://problem/5141290> WebAssertions.h is still needed by some internal clients
  3083. Second shot at fixing this error. Stub out the macros rather than forwarding to JavaScriptCore, which would
  3084. leave clients using this header trying to resolve JavaScriptCore symbols against WebKit when linking. This
  3085. should only happen in production builds when assertions should be disabled anyway as anyone building a
  3086. development configuration should be in a position to move away from using this header.
  3087. * Misc/WebAssertions.h:
  3088. 2007-05-03 Timothy Hatcher <timothy@apple.com>
  3089. Reviewed by Kevin.
  3090. <rdar://problem/5067707> REGRESSION: "Open Link" contextual menu item appears twice in Mail
  3091. Remove the check for Mail in fixMenusToSendToOldClients and fixMenusReceivedFromOldClients
  3092. when linked on or after Leopard. The isAppleMail() function is still used for Tiger Mail fixups.
  3093. * WebCoreSupport/WebContextMenuClient.mm:
  3094. (fixMenusToSendToOldClients):
  3095. (fixMenusReceivedFromOldClients):
  3096. 2007-05-02 Anders Carlsson <andersca@apple.com>
  3097. Reviewed by Brady.
  3098. <rdar://problem/5151113> Assertion firing in [FrameProgressEntry addChild:forDataSource:] when navigating cnn.com
  3099. The assertion fired because a plug-in was trying to load a subresource when a new load had started but not yet
  3100. committed. The check that would have prevented this was removed in order to fix <rdar://problem/5085897>.
  3101. This puts back the check but changes it to allow loads where the target is the same frame as the plugin's parent frame.
  3102. * Plugins/WebBaseNetscapePluginView.mm:
  3103. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
  3104. 2007-04-27 Timothy Hatcher <timothy@apple.com>
  3105. Reviewed by Darin.
  3106. There were only a couple calls to ResourceLoadDelegate forwarder left,
  3107. this removes the calls and adds a new cached method for didFailLoad.
  3108. * WebKit/DefaultDelegates/WebDefaultResourceLoadDelegate.h: Removed.
  3109. * WebKit/DefaultDelegates/WebDefaultResourceLoadDelegate.m: Removed.
  3110. * WebKit/Plugins/WebNullPluginView.mm: Call the resource load delegate directly.
  3111. * WebKit/WebCoreSupport/WebFrameLoaderClient.mm: Call the cached didFailLoad delegate function.
  3112. * WebKit/WebKit.xcodeproj/project.pbxproj: Remove WebDefaultResourceLoadDelegate.
  3113. * WebKit/WebView/WebDataSource.mm: Remove the #import for WebDefaultResourceLoadDelegate.h
  3114. * WebKit/WebView/WebView.mm: Remove the ResourceLoadDelegate forwarder, and remove a method that isn't used.
  3115. * WebKit/WebView/WebViewInternal.h: Ditto.
  3116. * WebKit/WebView/WebViewPrivate.h: Remove a method that is no longer used.
  3117. 2007-04-27 David Harrison <harrison@apple.com>
  3118. Reviewed by Darin.
  3119. <rdar://problem/5160627> Export JS list creation support as ObjC SPI for Mail
  3120. * WebKit.xcodeproj/project.pbxproj:
  3121. * WebView/WebHTMLView.mm:
  3122. (-[WebHTMLView _selectedRange]):
  3123. (-[WebHTMLView _shouldDeleteRange:]):
  3124. (-[WebHTMLView _canEdit]):
  3125. (-[WebHTMLView _canEditRichly]):
  3126. (-[WebHTMLView _hasSelection]):
  3127. (-[WebHTMLView _hasSelectionOrInsertionPoint]):
  3128. (-[WebHTMLView _hasInsertionPoint]):
  3129. (-[WebHTMLView _isEditable]):
  3130. Condense the check for nil [self frame].
  3131. Remove canEditRichly checks and rely on the editor to do the check instead.
  3132. (-[WebHTMLView _insertOrderedList]):
  3133. (-[WebHTMLView _insertUnorderedList]):
  3134. New.
  3135. (-[WebHTMLView _canIncreaseSelectionListLevel]):
  3136. (-[WebHTMLView _canDecreaseSelectionListLevel]):
  3137. (-[WebHTMLView _increaseSelectionListLevel]):
  3138. (-[WebHTMLView _increaseSelectionListLevelOrdered]):
  3139. (-[WebHTMLView _increaseSelectionListLevelUnordered]):
  3140. (-[WebHTMLView _decreaseSelectionListLevel]):
  3141. Moved from bridge to frame editor.
  3142. * WebView/WebHTMLViewPrivate.h:
  3143. Add _insertOrderedList and _insertUnorderedList to WebHTMLView(WebPrivate)
  3144. 2007-04-27 Brady Eidson <beidson@apple.com>
  3145. Rubberstamped by Mark
  3146. Remove default implementation of UIDelegate method that was removed
  3147. I have also been instructed to give Tim a hard time about this one - apparently
  3148. it was his job to clean it out and he failed... failed miserably.
  3149. :)
  3150. * DefaultDelegates/WebDefaultUIDelegate.m: Removed webViewPrint:
  3151. 2007-04-27 Maciej Stachowiak <mjs@apple.com>
  3152. Reviewed by Mark.
  3153. <rdar://problem/5154113> Repro ASSERT (would be crash) in KJS::GCLock::GCLock (13462)
  3154. http://bugs.webkit.org/show_bug.cgi?id=13462
  3155. * WebInspector/WebInspector.m:
  3156. (-[WebInspectorPrivate dealloc]): Delay release of WebView to avoid GC re-entrancy.
  3157. 2007-04-27 Anders Carlsson <andersca@apple.com>
  3158. Reviewed by Mitz.
  3159. <rdar://problem/5165755>
  3160. View Source is broken; empty window is shown
  3161. Return YES for applewebdata URLs.
  3162. * WebView/WebView.mm:
  3163. (+[WebView _canHandleRequest:]):
  3164. 2007-04-26 Oliver Hunt <oliver@apple.com>
  3165. Reviewed by Adam.
  3166. Fix <rdar://problem/5061252> REGRESSION: In Gmail, image fails
  3167. to be inserted into message field after dragging
  3168. Don't try to create <img> tags for local image files as it results
  3169. in the potential to submit forms that look like they have an image,
  3170. when in reality they don't.
  3171. * WebView/WebHTMLView.mm:
  3172. (-[WebHTMLView _documentFragmentWithPaths:]):
  3173. 2007-04-26 Anders Carlsson <andersca@apple.com>
  3174. Reviewed by Maciej.
  3175. <rdar://problem/5049099> documents no longer have a default base URL
  3176. If the base URL is nil, then create a unique applewebdata URL to match what Tiger WebKit does.
  3177. * WebView/WebFrame.mm:
  3178. (createUniqueWebDataURL):
  3179. (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
  3180. 2007-04-25 Oliver Hunt <oliver@apple.com>
  3181. Rubber stamped by Adele.
  3182. Roll out WebKit changes from from r21052 to fix regression noted in
  3183. <rdar://problem/5159556> REGRESSION: In Mail, pressing option-command- ' doesn't decrease block quote in selection
  3184. * WebView/WebHTMLView.mm:
  3185. (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
  3186. (-[WebHTMLView doCommandBySelector:]):
  3187. 2007-04-25 Steve Falkenburg <sfalken@apple.com>
  3188. Reviewed by Adam.
  3189. Mac callbacks for new spelling methods in WebEditorClient.
  3190. Not used yet.
  3191. * WebCoreSupport/WebEditorClient.h:
  3192. (WebEditorClient::ignoreWordInSpellDocument):
  3193. (WebEditorClient::learnWord):
  3194. (WebEditorClient::checkSpellingOfString):
  3195. (WebEditorClient::checkGrammarOfString):
  3196. (WebEditorClient::updateSpellingUIWithGrammarString):
  3197. (WebEditorClient::updateSpellingUIWithMisspelledWord):
  3198. (WebEditorClient::showSpellingUI):
  3199. (WebEditorClient::spellingUIIsShowing):
  3200. (WebEditorClient::getGuessesForWord):
  3201. 2007-04-24 Geoffrey Garen <ggaren@apple.com>
  3202. Reviewed by Darin Adler, Tim Hatcher.
  3203. Fixed a few NSAutoreleasePool issues I noticed while reviewing Brady's patch.
  3204. * Carbon/CarbonUtils.m:
  3205. (PoolCleaner): Call -drain instead of -release, since -release is a
  3206. no-op in a GC world.
  3207. * Misc/WebKitErrors.m:
  3208. (registerErrors): Condensed onto one line.
  3209. * Plugins/WebPluginDatabase.m:
  3210. (-[WebPluginDatabase refresh]): Call -drain instead of -release, since
  3211. -release is a no-op in a GC world.
  3212. * WebCoreSupport/WebChromeClient.mm:
  3213. (WebChromeClient::setStatusbarText):
  3214. * WebInspector/WebNodeHighlightView.m:
  3215. (-[WebNodeHighlightView initWithHighlight:andRects:forView:]): Don't drain
  3216. and then release because drain deallocates the receiver, so the release
  3217. is an over-release.
  3218. * WebView/WebView.mm:
  3219. (-[WebView rectsForTextMatches]): Re-allocate the pool after draining it,
  3220. because drain deallocates the receiver, so the drain would leave you without
  3221. any autorelease pool, causing a leak and then an over-release at the bottom
  3222. of the loop.
  3223. 2007-04-24 Brady Eidson <beidson@apple.com>
  3224. Reviewed by Beth, Hyatt, Ada, and Darin
  3225. <rdar://problem/5011477> and <rdar://problem/5011514>
  3226. Provide support for the icon.db to be moved to a different directory from the old WebKit-style
  3227. icons, and remove the old directory if that is the case
  3228. * Misc/WebIconDatabase.mm:
  3229. (-[WebIconDatabase init]):
  3230. (-[WebIconDatabase _importToWebCoreFormat]): Check "imported()" to determine if a conversion is needed
  3231. - Look for WebIconDatabaseImportDirectoryDefaultsKey for the source location for the conversion
  3232. - Set "imported" to true in the Icons.db
  3233. - If the new Icons.db isn't in the same patch as the old icons, delete the entire directory when finished
  3234. - Move old icon.db to Icons.db to reflect rename
  3235. * Misc/WebIconDatabasePrivate.h: Add WebIconDatabaseImportDirectoryDefaultsKey so a WebKit client can tell WebKit
  3236. where to look for the old icons if their location is different from the icon.db
  3237. * WebKit.exp:
  3238. 2007-04-24 Mitz Pettel <mitz@webkit.org>
  3239. Reviewed by Oliver Hunt.
  3240. Changed an apostrophe (') into a right single quotation mark (U+2019).
  3241. * WebInspector/webInspector/inspector.js:
  3242. 2007-04-24 Mitz Pettel <mitz@webkit.org>
  3243. Reviewed by Timothy Hatcher.
  3244. - fix http://bugs.webkit.org/show_bug.cgi?id=13459
  3245. The "mapped style" link next to an attribute doesn't work
  3246. * WebInspector/webInspector/inspector.js: Added a check that the rule is
  3247. mapped from an attribute.
  3248. 2007-04-23 Adele Peterson <adele@apple.com>
  3249. Fixed and reviewed by Darin, Adele, and Oliver.
  3250. WebKit part of fix for <rdar://problem/5107538> REGRESSION: Page scroll when selecting characters from inline input candidate window by arrow buttons
  3251. http://bugs.webkit.org/show_bug.cgi?id=13263
  3252. * WebView/WebHTMLView.mm:
  3253. (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]): If we have no command after calling interpretKeyEvents, we assume the input method handled the key.
  3254. (-[WebHTMLView doCommandBySelector:]): Add noop: to the command vector, but then when actually performing actions, ignore it.
  3255. 2007-04-23 Timothy Hatcher <timothy@apple.com>
  3256. Reviewed by Darin.
  3257. <rdar://problem/5124364> IB3 crashes when loading a nib containing a WebView that has a WebHTMLView encoded inside
  3258. Since WebView's initWithCoder throws away all the decoded subviews, the WebHTMLView gets dealoced while it has a nil _private pointer.
  3259. Checking for a nil _private in WehHTMLView's close fixes this crash. No need to implement a full initWithCoder for WebHTMLView since
  3260. it will be thrown away by the WebView anyway.
  3261. * WebView/WebHTMLView.mm:
  3262. (-[WebHTMLView close]): Return earily if _priviate is nil.
  3263. (-[WebHTMLView initWithFrame:]): Unrelated change that removes an AppKit version check that predates Tiger.
  3264. 2007-04-23 Timothy Hatcher <timothy@apple.com>
  3265. Reviewed by Mark Rowe.
  3266. Remove the "No Selection" message after leaving search mode.
  3267. This was a regression caused by the inspector refresh.
  3268. * WebInspector/webInspector/inspector.js:
  3269. 2007-04-23 Timothy Hatcher <timothy@apple.com>
  3270. Reviewed by Darin.
  3271. Bug 6658: World leak when closing inspected window
  3272. http://bugs.webkit.org/show_bug.cgi?id=6658 and <rdar://problem/4411863>
  3273. Removes over-retains of the inspector WebView, WebInspector and WebInspectorPanel.
  3274. * WebInspector/WebInspector.m:
  3275. (+[WebInspector sharedWebInspector]): Return the global sharedWebInspector variable.
  3276. (-[WebInspector window]): Release the window after calling setWindow:.
  3277. (-[WebInspector windowWillClose:]): Set the JavaScript Inspector variable to null and expire the current highlight.
  3278. Also clear the global sharedWebInspector variable and release it if self equals sharedWebInspector.
  3279. (-[WebInspector showWindow:]): Set the JavaScript Inspector variable back to self.
  3280. * WebInspector/WebInspectorInternal.h: Remove the isSharedInspector member variable.
  3281. * WebView/WebView.mm:
  3282. (-[WebView windowScriptObject]): Return nil if core([self mainFrame]) is NULL.
  3283. 2007-04-23 Darin Adler <darin@apple.com>
  3284. Reviewed by Hyatt.
  3285. - rename box-sizing to -webkit-box-sizing
  3286. * WebInspector/webInspector/inspector.css: Here.
  3287. * WebInspector/webInspector/inspector.js: And here, in the expected default CSS values list.
  3288. 2007-04-22 Timothy Hatcher <timothy@apple.com>
  3289. Reviewed by Darin.
  3290. The fix for <rdar://problem/4976681> ASSERTION failure on quit @ talkcrunch.com in _NPN_ReleaseObject
  3291. was #ifdefed out in Production builds.
  3292. * WebView/WebView.mm:
  3293. (+[WebView initialize]): Move the #ifdef REMOVE_SAFARI_DOM_TREE_DEBUG_ITEM inside initialize around the specific code
  3294. (+[WebView _applicationWillTerminate]): Moved outside the #ifdef REMOVE_SAFARI_DOM_TREE_DEBUG_ITEM block
  3295. 2007-04-22 Timothy Hatcher <timothy@apple.com>
  3296. Reviewed by Mitz.
  3297. Bug 13436: Make Option-clicking a disclosure triangle expand the entire subtree
  3298. http://bugs.webkit.org/show_bug.cgi?id=13436
  3299. Makes option-click recursively expand and collapse the sub-tree. Pressing option-left
  3300. and -right also recursively expands and collapses the sub-tree.
  3301. * WebInspector/webInspector/treeoutline.js:
  3302. 2007-04-22 Timothy Hatcher <timothy@apple.com>
  3303. Reviewed by Mitz.
  3304. Bug 13437: Inspector does not update when navigating to a different page
  3305. http://bugs.webkit.org/show_bug.cgi?id=13437
  3306. * WebInspector/webInspector/inspector.js: Correctly update to a new root node
  3307. if the new focus node and the old focus node don't have a common ancestor.
  3308. 2007-04-22 Darin Adler <darin@apple.com>
  3309. Reviewed by Adele.
  3310. - fix for <rdar://problem/5100240> REGRESSION: Control-O broken
  3311. * WebView/WebHTMLView.mm:
  3312. (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]): Update to handle a vector of
  3313. command names instead of a single command.
  3314. (-[WebHTMLView doCommandBySelector:]): Change logic so that we add the command to a vector
  3315. and also so that the interpretKeyEvents parameters are still intact for a second call to
  3316. doCommandBySelector:, since the key bindings mechanism can do more than one.
  3317. (-[WebHTMLView insertText:]): Added comment.
  3318. 2007-04-21 Darin Adler <darin@apple.com>
  3319. Reviewed by Oliver.
  3320. - fix some problems I ran into using the inspector
  3321. * WebInspector/webInspector/inspector.js: Add some null checks.
  3322. 2007-04-20 Timothy Hatcher <timothy@apple.com>
  3323. Reviewed by Darin.
  3324. Merge over the WebInspectorRefresh branch. This change removes the NSOutlineView and
  3325. is replaced with a HTML/JavaScript tree. Most of the inspector logic is now in the JavaScript.
  3326. A few bugs are fixed by these changes:
  3327. Bug 6615: Parent node drop-down list is upside-down
  3328. http://bugs.webkit.org/show_bug.cgi?id=6615
  3329. Bug 6643: REGRESSION: Tree view repaints lines without erasing them first
  3330. http://bugs.webkit.org/show_bug.cgi?id=6643
  3331. Bug 6650: Web Inspector HTML Hierarchy can't be scrolled with scrollwheel
  3332. http://bugs.webkit.org/show_bug.cgi?id=6650
  3333. Bug 6677: Can't drag inspector when tree view has focus
  3334. http://bugs.webkit.org/show_bug.cgi?id=6677
  3335. Bug 7326: Web Inspector tree scrollbar always shows up when resizing the top pane down
  3336. http://bugs.webkit.org/show_bug.cgi?id=7326
  3337. * WebInspector/WebInspector.h: Removed the searchQuery methods.
  3338. * WebInspector/WebInspector.m: Removed the DOMNode category and code for the old outline view.
  3339. * WebInspector/WebInspectorOutlineView.h: Removed.
  3340. * WebInspector/WebInspectorOutlineView.m: Removed.
  3341. * WebInspector/WebInspectorInternal.h: Remove some methods and instance variables.
  3342. * WebInspector/webInspector/Images/resize.png: Added.
  3343. * WebInspector/webInspector/inspector.css:
  3344. * WebInspector/webInspector/inspector.html: Include the new classes and remove the plugin.
  3345. * WebInspector/webInspector/inspector.js: Changes to use the new tree outline and other fixes.
  3346. * WebInspector/webInspector/scrollarea.js: Copied from the Dashboard widget resources.
  3347. * WebInspector/webInspector/scrollbar.js: Ditto.
  3348. * WebInspector/webInspector/treeoutline.js: New tree outline class.
  3349. * WebInspector/webInspector/utilities.js: DOM and String prototype additions.
  3350. * WebKit.xcodeproj/project.pbxproj: Remove WebInspectorOutlineView.
  3351. 2007-04-20 Brady Eidson <beidson@apple.com>
  3352. Reviewed by Oliver (Black Sheep)
  3353. <rdar://problem/3559794>
  3354. [WebView setMaintainsBackForwardList:] doesn't actually flush out the current page caches
  3355. * WebView/WebView.mm: Remove _private->useBackForwardList
  3356. (-[WebView _setInitiatedDrag:]): Use _private->page instead of [self page]
  3357. (-[WebView initWithCoder:]): Manipulate the flag that is now in WebCore::BackForwardList
  3358. (-[WebView encodeWithCoder:]): Ditto
  3359. (-[WebView backForwardList]): Use _private->page instead of [self page]
  3360. (-[WebView setMaintainsBackForwardList:]): Manipulate the flag that is now in WebCore::BackForwardList
  3361. 2007-04-20 Anders Carlsson <andersca@apple.com>
  3362. Reviewed by Maciej.
  3363. <rdar://problem/5085897> REGRESSION: Some Flash links at www.jumpskyhigh.com just reload the page
  3364. Get rid of the check that would prevent plugin requests from being loaded if a new page load was underway.
  3365. www.jumpskyhigh.com had a flash movie that was embedded inside an <a> tag and clicking on the plug-in would cause the
  3366. URL pointed to by the <a> tag to start loading and thus preventing the plug-in from loading the real URL.
  3367. This check was added by Maciej and we should be able to remove it with the loader changes that have happened now,
  3368. (mainly the fact that resource loaders are handled by the document loader instead of the frame loader).
  3369. * Plugins/WebBaseNetscapePluginView.mm:
  3370. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
  3371. 2007-04-19 Oliver Hunt <oliver@apple.com>
  3372. Reviewed by Adam.
  3373. Fix for <rdar://problem/4960912> -- REGRESSION: Content-Disposition:
  3374. filename is ignored for drag-and-drop.
  3375. * WebView/WebResource.mm:
  3376. (-[WebResource _fileWrapperRepresentation]):
  3377. When creating the NSFileWrapper check the response for a preferred
  3378. filename, rather than just blindly hoping for the best.
  3379. 2007-04-19 Anders Carlsson <andersca@apple.com>
  3380. Reviewed by John.
  3381. <rdar://problem/5137002>
  3382. REGRESSION (r20812): [WebFrame DOMDocument] is returning non-nil value in bookmarks view, causing trouble in Safari
  3383. Put back the MIME type check as a workaround.
  3384. * WebView/WebFrame.mm:
  3385. (-[WebFrame DOMDocument]):
  3386. 2007-04-19 Mark Rowe <mrowe@apple.com>
  3387. Reviewed by Oliver and Adam.
  3388. <rdar://problem/5141290> WebAssertions.h is still needed by some internal clients.
  3389. * Misc/WebAssertions.h: Added.
  3390. * WebKit.xcodeproj/project.pbxproj:
  3391. 2007-04-17 Brady Eidson <beidson@apple.com>
  3392. Reviewed by Tim
  3393. <rdar://problem/5008925>
  3394. Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate
  3395. * WebCoreSupport/WebFrameLoaderClient.h:
  3396. * WebCoreSupport/WebFrameLoaderClient.mm:
  3397. (WebFrameLoaderClient::willCacheResponse): Call
  3398. [WebResourceLoadDelegate webView:resource:willCacheResponse:fromDataSource:];
  3399. * WebView/WebView.mm:
  3400. (-[WebView _cacheResourceLoadDelegateImplementations]): Pull out the willCacheResponse impl
  3401. * WebView/WebViewPrivate.h: Add WebResourceLoadDelegatePrivate category for this new SPI
  3402. 2007-04-18 John Sullivan <sullivan@apple.com>
  3403. Reviewed by Adam
  3404. - fixed <rdar://problem/5103009> REGRESSION: Activity window shows blank name for untitled pages
  3405. * WebView/WebHTMLRepresentation.mm:
  3406. (-[WebHTMLRepresentation title]):
  3407. return nil for empty string, to match old behavior
  3408. 2007-04-17 John Sullivan <sullivan@apple.com>
  3409. Reviewed by Tim Hatcher
  3410. - fixed <rdar://problem/5138492> Safari doesn't remember some changes to the PDF scale and display mode
  3411. Some of the user interactions that could change the PDF scale and display mode were not going through
  3412. the proxy mechanism in WebPDFView that updates preferences. Now we also listen to PDFKit notifications
  3413. in order to catch the other cases.
  3414. * WebView/WebPDFView.h:
  3415. new _ignoreScaleAndDisplayModeNotifications and _updatePreferencesTimer ivars
  3416. * WebView/WebPDFView.mm:
  3417. (-[WebPDFView setPDFDocument:]):
  3418. ignore scale and display mode notifications while we're setting up a fresh document
  3419. (-[WebPDFView dealloc]):
  3420. cancel the new timer (which releases it)
  3421. (-[WebPDFView viewDidMoveToWindow]):
  3422. listen for two PDFKit notifications
  3423. (-[WebPDFView viewWillMoveToWindow:]):
  3424. stop listening to the two PDFKit notifications
  3425. (-[WebPDFView _applyPDFDefaults]):
  3426. white space change
  3427. (-[WebPDFView _cancelUpdatePreferencesTimer]):
  3428. invalidate, release, and nil out the timer
  3429. (-[WebPDFView _scaleOrDisplayModeChanged:]):
  3430. update preferences soon, unless deliberately ignoring these notifications
  3431. (-[WebPDFView _updatePreferencesNow]):
  3432. cancel timer, then save data to preferences (code for saving the data was extracted from
  3433. -[PDFPrefUpdatingProxy forwardInvocation:])
  3434. (-[WebPDFView _updatePreferencesSoon]):
  3435. use timer to consolidate multiple calls into one action; formerly we were setting preferences
  3436. multiple times for some atomic user actions
  3437. (-[PDFPrefUpdatingProxy forwardInvocation:]):
  3438. call _updatePreferencesSoon where we used to immediately set preferences
  3439. 2007-04-17 John Sullivan <sullivan@apple.com>
  3440. Reviewed by Kevin Decker
  3441. - fixed <rdar://problem/4184640> "Look Up in Dictionary" item is always disabled for PDF pages
  3442. * WebView/WebPDFView.mm:
  3443. (-[WebPDFView validateUserInterfaceItem:]):
  3444. enable "Look Up in Dictionary" only if we're using a version of PDFKit that knows how to do so
  3445. (-[WebPDFView _canLookUpInDictionary]):
  3446. use respondsToSelector to test whether the current version of PDFKit supports this non-API feature
  3447. (-[WebPDFView _lookUpInDictionaryFromMenu:]):
  3448. implement this method, which WebKit includes in the context menu when there's selected text
  3449. (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
  3450. updated comment for this change
  3451. 2007-04-16 Darin Adler <darin@apple.com>
  3452. Rubber stamped by Tim Hatcher.
  3453. * WebKit.xcodeproj/project.pbxproj: Added Radar bug number to the error message
  3454. for the "version number ending in 4" check so folks from Apple can find the
  3455. original bug that motivated for this. To summarize what's in that bug, it says that
  3456. <http://my.fedex.com> was failing, that it was because of the OpenCube DHTML Menu,
  3457. and that some other affected sites were not using OpenCube (so the error is presumably
  3458. more widespread).
  3459. 2007-04-16 Darin Adler <darin@apple.com>
  3460. Reviewed by John Sullivan.
  3461. - fix http://bugs.webkit.org/show_bug.cgi?id=13303
  3462. <rdar://problem/5126341> REGRESSION: controls in a background Safari window
  3463. maintain active appearance if the address bar has focus (13303)
  3464. * WebView/WebHTMLView.mm: (-[WebHTMLView _windowChangedKeyState]):
  3465. Added. Calls FrameView::updateControlTints.
  3466. 2007-04-13 Oliver Hunt <oliver@apple.com>
  3467. Reviewed by Adam.
  3468. Due to rdar://problem/5133910 -- WebArchives should not be constructed
  3469. using resource from the cache -- We may try to create a potentially
  3470. incorrect WebArchive when dragging an image multiple times.
  3471. This patch retains the assertion for invalid behaviour, but adds a
  3472. branch to make sure we don't try to do anything with the WebArchive
  3473. in release builds.
  3474. * Misc/WebNSPasteboardExtras.mm:
  3475. (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]):
  3476. 2007-04-13 Timothy Hatcher <timothy@apple.com>
  3477. Reviewed by Dave Harrison.
  3478. <rdar://problem/5132727> Soho Mail build fails because of renamed SPI
  3479. * WebView/WebUIDelegatePrivate.h: define WebMenuItemTagSearchInGoogle as OldWebMenuItemTagSearchWeb
  3480. 2007-04-13 Mark Rowe <mrowe@apple.com>
  3481. Reviewed by Oliver.
  3482. <rdar://problem/5130686> Using WebPreferencesPrivate.h requires modifying framework search path
  3483. * WebView/WebPreferencesPrivate.h: Remove unneeded #ifdef.
  3484. 2007-04-12 Deneb Meketa <dmeketa@adobe.com>
  3485. Reviewed by Darin Adler.
  3486. http://bugs.webkit.org/show_bug.cgi?id=13029
  3487. rdar://problem/4994849
  3488. Bug 13029: Permit NPAPI plug-ins to see HTTP response headers.
  3489. * Plugins/WebBaseNetscapePluginStream.h: declarations.
  3490. * Plugins/WebBaseNetscapePluginStream.mm: main implementation.
  3491. (-[WebBaseNetscapePluginStream dealloc]): cleanup.
  3492. (-[WebBaseNetscapePluginStream finalize]): cleanup.
  3493. (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:headers:]):
  3494. Pass headers along.
  3495. (-[WebBaseNetscapePluginStream startStreamWithResponse:]):
  3496. Main work is here. Extract headers from NSHTTPURLResponse object into a byte sequence.
  3497. See comments here about how it would be nice to have low-level access to the HTTP response.
  3498. (-[WebBaseNetscapePluginStream _destroyStream]): cleanup.
  3499. * Plugins/WebBaseNetscapePluginView.mm:
  3500. (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
  3501. Conform to new startStream params. Not applicable here, pass nil.
  3502. 2007-04-12 Brady Eidson <beidson@apple.com>
  3503. Build fix for case sensitive file systems
  3504. * Misc/WebNSPasteboardExtras.mm:
  3505. * WebCoreSupport/WebPasteboardHelper.mm:
  3506. 2007-04-11 John Sullivan <sullivan@apple.com>
  3507. Reviewed by Anders
  3508. - WebKit part of fix for:
  3509. <rdar://problem/5128697> REGRESSION: At least one PDF context menu item isn't appearing on Leopard
  3510. * Misc/WebNSArrayExtras.h: Added.
  3511. * Misc/WebNSArrayExtras.m: Added.
  3512. (-[NSMutableArray _webkit_removeUselessMenuItemSeparators]):
  3513. New file, includes this method to strip leading, trailing, and duplicate separators from arrays
  3514. of NSMenuItems (copied from Safari)
  3515. * WebView/WebUIDelegatePrivate.h:
  3516. new MenuItemTag enum values for new PDFKit context menu items
  3517. * WebKit.xcodeproj/project.pbxproj:
  3518. updated for new files
  3519. * WebView/WebPDFView.mm:
  3520. (-[WebPDFView _anyPDFTagsFoundInMenu:]):
  3521. check for new PDFKit context menu items
  3522. (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
  3523. associate new PDFKit context menu item selectors with the new tags; skip certain selectors that
  3524. correspond to menu items that WebKit already includes; remove useless menu item separators when
  3525. we're done, since we might have removed arbitrarily-placed menu items
  3526. 2007-04-11 Oliver Hunt <oliver@apple.com>
  3527. Reviewed by Maciej.
  3528. Adding RetainPtr to the many global obj-c pointers we use in
  3529. C/C++ methods. This is necessary to prevent GC from collecting
  3530. globals we want to keep around.
  3531. We use RetainPtr in obj-c++ and c++ files, and CFRetain/Release in pure
  3532. obj-c.
  3533. This fixes <rdar://problem/5058731> -- Crash in
  3534. WebCore::DragData::containsCompatibleContent due to early release
  3535. of types array
  3536. * Misc/WebLocalizableStrings.m:
  3537. (WebLocalizedString):
  3538. * Misc/WebNSPasteboardExtras.mm:
  3539. (+[NSPasteboard _web_writableTypesForURL]):
  3540. (_writableTypesForImageWithoutArchive):
  3541. (_writableTypesForImageWithArchive):
  3542. * Misc/WebNSURLExtras.m:
  3543. (applyHostNameFunctionToMailToURLString):
  3544. (applyHostNameFunctionToURLString):
  3545. * Misc/WebStringTruncator.m:
  3546. (defaultMenuFont):
  3547. (fontFromNSFont):
  3548. * WebCoreSupport/WebPasteboardHelper.mm:
  3549. (WebPasteboardHelper::insertablePasteboardTypes):
  3550. 2007-04-11 MorganL <morganl.webkit@yahoo.com>
  3551. Reviewed by Maciej.
  3552. Add a Frame pointer to ChromeClient methods:
  3553. http://bugs.webkit.org/show_bug.cgi?id=13127
  3554. * COM/ChromeClientWin.cpp:
  3555. (ChromeClientWin::createWindow):
  3556. (ChromeClientWin::createModalDialog):
  3557. * COM/ChromeClientWin.h:
  3558. * WebCoreSupport/WebChromeClient.h:
  3559. * WebCoreSupport/WebChromeClient.mm:
  3560. (WebChromeClient::createWindow):
  3561. (WebChromeClient::createModalDialog):
  3562. 2007-04-10 Brady Eidson <beidson@apple.com>
  3563. Reviewed by Darin
  3564. <rdar://problem/4887095> - PageCache and PageState should be combined
  3565. WebKit side of the change to reflect the new object name of CachedPage and new Client method names
  3566. * History/WebHistoryItem.mm:
  3567. (-[WebHistoryItem setAlwaysAttemptToUsePageCache:]):
  3568. (+[WebHistoryItem _releaseAllPendingPageCaches]):
  3569. (-[WebWindowWatcher windowWillClose:]):
  3570. * WebCoreSupport/WebFrameLoaderClient.h:
  3571. * WebCoreSupport/WebFrameLoaderClient.mm:
  3572. (WebFrameLoaderClient::setDocumentViewFromCachedPage):
  3573. (WebFrameLoaderClient::loadedFromCachedPage):
  3574. (WebFrameLoaderClient::saveDocumentViewToCachedPage):
  3575. 2007-04-09 Geoffrey Garen <ggaren@apple.com>
  3576. Reviewed by Maciej Stachowiak.
  3577. Support for fixing fast/forms/textarea-paste-newline.html.
  3578. Added SPI for specifying whether a WebView should allow pasting through the
  3579. DOM API.
  3580. * ChangeLog:
  3581. * WebKit.xcodeproj/project.pbxproj:
  3582. * WebView/WebPreferenceKeysPrivate.h:
  3583. * WebView/WebPreferences.m:
  3584. (+[WebPreferences standardPreferences]):
  3585. (-[WebPreferences isDOMPasteAllowed]):
  3586. (-[WebPreferences setDOMPasteAllowed:]):
  3587. * WebView/WebPreferencesPrivate.h:
  3588. * WebView/WebView.mm:
  3589. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  3590. 2007-04-09 Anders Carlsson <andersca@apple.com>
  3591. Reviewed by John.
  3592. <rdar://problem/5081860>
  3593. REGRESSION: Select All for standalone image has no visible effect but does change state
  3594. <rdar://problem/5081840>
  3595. REGRESSION: context menu in white space beyond standalone image is different after Select All
  3596. Have validateUserInterface emulate the old behavior for full-frame images and plugins, which is:
  3597. - For full-frame plugins, always return false.
  3598. - For images, only return true if the selector is copy: and the image has finished loading.
  3599. * WebView/WebHTMLView.mm:
  3600. (-[WebHTMLView validateUserInterfaceItem:]):
  3601. 2007-04-09 Anders Carlsson <andersca@apple.com>
  3602. Reviewed by Darin.
  3603. <rdar://problem/5026893>
  3604. REGRESSION: "Mail Contents of this Page" for standalone image in Safari results in a broken image in Mail
  3605. * WebView/WebFrame.mm:
  3606. (-[WebFrame DOMDocument]):
  3607. We can't check for _isHTMLDocument here since image and plugin documents inherit from HTMLDocument. Instead,
  3608. check for those two document types explicitly.
  3609. 2007-04-09 Anders Carlsson <andersca@apple.com>
  3610. Reviewed by Geoff, Ada and John.
  3611. <rdar://problem/4600978> Would like a way to test whether a WebView is displaying a standalone image
  3612. * WebView/WebFrame.mm:
  3613. (-[WebFrame _isDisplayingStandaloneImage]):
  3614. * WebView/WebFramePrivate.h:
  3615. Add _isDisplayingStandaloneImage SPI.
  3616. 2007-04-06 Timothy Hatcher <timothy@apple.com>
  3617. Reviewed by Mark Rowe.
  3618. Adds a build phase script that ensures WebKit's version dosen't end in a 4.
  3619. If our version ends in 4, some sites might think we are Netscape 4 in their
  3620. user agent checks.
  3621. * Configurations/Version.xcconfig:
  3622. * WebKit.xcodeproj/project.pbxproj:
  3623. 2007-04-05 Anders Carlsson <andersca@apple.com>
  3624. Reviewed by Adam.
  3625. <rdar://problem/5083023>
  3626. REGRESSION: In Real Player (10.1.0), video continues to play after closing window
  3627. This broke in revision 18422 because now the plugin isn't stopped when the window is closed. Since the window is retained
  3628. by the plugin view for as long as it is running (so that removeTrackingRect works even though the window has been closed),
  3629. we would end up with a reference cycle (NSWindow -> WebView -> PluginView -> NSWindow) and stopping the plug-in when the window
  3630. was closed would break that cycle.
  3631. Applications that call -[WebView close] when closing aren't affected, but RealPlayer doesn't do this.
  3632. The bug that 18422 was supposed to fix was fixed by 19275, which is why it's safe to add back the check.
  3633. * Plugins/WebBaseNetscapePluginView.mm:
  3634. (-[WebBaseNetscapePluginView addWindowObservers]):
  3635. (-[WebBaseNetscapePluginView removeWindowObservers]):
  3636. (-[WebBaseNetscapePluginView windowWillClose:]):
  3637. 2007-04-05 Kevin McCullough <kmccullough@apple.com>
  3638. Reviewed by Darin.
  3639. - Moved registerURLSchemeAsLocal to the public API.
  3640. * WebView/WebView.h:
  3641. * WebView/WebView.mm:
  3642. (+[WebView registerURLSchemeAsLocal:]):
  3643. * WebView/WebViewPrivate.h:
  3644. === Safari-5522.6 ===
  3645. 2007-04-04 Anders Carlsson <andersca@apple.com>
  3646. Reviewed by John.
  3647. <rdar://problem/5107536>
  3648. http://bugs.webkit.org/show_bug.cgi?id=13264
  3649. REGRESSION: Crash when canceling about:blank in Activity viewer
  3650. * WebView/WebFrame.mm:
  3651. (-[WebFrame stopLoading]):
  3652. Add a null check for the frame loader - it can be null when the frame has been disconnected
  3653. from the web page.
  3654. 2007-04-03 Anders Carlsson <andersca@apple.com>
  3655. Reviewed by Darin.
  3656. <rdar://problem/5028178>
  3657. Crash occurs at WebCore::FrameLoader::activeDocumentLoader() after loading Froggster widget
  3658. * Plugins/WebNetscapePluginStream.mm:
  3659. (-[WebNetscapePluginStream start]):
  3660. If load returns no the plugin loader has already been removed by the didFail callback.
  3661. 2007-04-02 Anders Carlsson <andersca@apple.com>
  3662. Reviewed by Geoff.
  3663. Fix crash when running plugins/destroy-stream-twice.html under GuardMalloc
  3664. * Plugins/WebBaseNetscapePluginStream.h:
  3665. * Plugins/WebBaseNetscapePluginStream.mm:
  3666. (+[WebBaseNetscapePluginStream ownerForStream:]):
  3667. (-[WebBaseNetscapePluginStream initWithRequestURL:plugin:notifyData:sendNotification:]):
  3668. (-[WebBaseNetscapePluginStream dealloc]):
  3669. (-[WebBaseNetscapePluginStream finalize]):
  3670. Change the streams hash map to contain an NPStream*, and change ownerForStream to take an NPStream*.
  3671. * Plugins/WebBaseNetscapePluginView.mm:
  3672. (-[WebBaseNetscapePluginView destroyStream:reason:]):
  3673. Check that the NPStream pointer is valid before accessing stream->ndata.
  3674. 2007-04-02 Darin Adler <darin@apple.com>
  3675. Reviewed by Geoff.
  3676. - fix http://bugs.webkit.org/show_bug.cgi?id=13026
  3677. <rdar://problem/5061026> incomplete render of menu
  3678. (assertion failing in -[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:])
  3679. - fix http://bugs.webkit.org/show_bug.cgi?id=13120
  3680. <rdar://problem/5080339> Plug-ins that draw through the QuickDraw interface may crash
  3681. by hanging onto old GWorlds.
  3682. - set clip path for CoreGraphics plug-ins in the same way we do for QuickDraw plug-ins
  3683. this is a better fix for <rdar://problem/4939511> WebKit should set the the CG clip
  3684. path for plug-ins that draw using Core Graphics
  3685. Incorporates changes from a patch by Mark Ambachtsheer.
  3686. Here are the changes:
  3687. 1) Don't try to use the offscreen code path if GGBitmapContextGetData returns 0.
  3688. 2) Handle kCGBitmapByteOrderDefault when computing the QD pixel format, even though
  3689. we don't have any evidence that this happens in practice.
  3690. 3) Keep the GWorld around until we create a new one or the plug-in is destroyed.
  3691. 4) Use the GWorld pointer itself as a flag to indicate whether we are using an
  3692. offscreen GWorld.
  3693. 5) Set up clipping for CoreGraphics in the same way we do for QuickDraw; remove an
  3694. earlier attempt that handled CoreGraphics differently.
  3695. * Plugins/WebBaseNetscapePluginView.h: Added a field named offscreenGWorld to hold
  3696. the GWorld until it's needed.
  3697. * Plugins/WebBaseNetscapePluginView.mm:
  3698. (getQDPixelFormatForBitmapContext): Replaced QDPixelFormatFromCGBitmapInfo. Used the
  3699. "get" prefix so we don't intrude on the QD namespace. Added code to handle the
  3700. kCGBitmapByteOrderDefault case, although I'm not sure it will really come up in
  3701. practice -- it wasn't really coming up in the buggy case.
  3702. (getNPRect): Added helper functions. Used to make the code below clearer.
  3703. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): Use getNPRect to
  3704. streamline code. Use GetGWorld to save the port since we use SetGWorld to restore
  3705. it later. Store the GWorld we create in the offscreenGWorld field and dispose the
  3706. existing one. Don't treat the CGBitmapContext as an offscreen bitmap if it
  3707. has a data pointer of 0. Set up the clip based on the result of
  3708. -[NSView getRectsBeingDrawn:count] when setting up the port for CoreGraphics
  3709. (after saving the port state).
  3710. (-[WebBaseNetscapePluginView restorePortState:]): Remove now-unneeded code to
  3711. destroy the offscreen GWorld, and simplified the code that restores the port so we
  3712. don't need a separate case for offscreen.
  3713. (-[WebBaseNetscapePluginView fini]): Renamed from freeAttributeKeysAndValues, since
  3714. this method now does more than just the attributes. This is the shared method that
  3715. does things needed in both dealloc and finalize. Added a call to DisposeGWorld here.
  3716. (-[WebBaseNetscapePluginView dealloc]): Updated for name change.
  3717. (-[WebBaseNetscapePluginView finalize]): Ditto.
  3718. (-[WebBaseNetscapePluginView drawRect:]): Removed code to set clip. This is done in
  3719. the saveAndSetNewPortStateForUpdate: method instead.
  3720. 2007-03-30 Adele Peterson <adele@apple.com>
  3721. Reviewed by Darin.
  3722. Call execCommand for deleteWordForward and deleteWordBackward instead of calling
  3723. deleteWithDirection directly.
  3724. * WebView/WebHTMLView.mm:
  3725. (-[WebHTMLView deleteWordForward:]):
  3726. (-[WebHTMLView deleteWordBackward:]):
  3727. 2007-03-30 Anders Carlsson <andersca@apple.com>
  3728. Reviewed by Geoff.
  3729. * Plugins/WebNetscapePluginPackage.m:
  3730. (-[WebNetscapePluginPackage load]):
  3731. Initialize pushpopupsenabledstate, poppopupsenabledstate and enumerate.
  3732. * Plugins/npapi.m:
  3733. (NPN_PushPopupsEnabledState):
  3734. (NPN_PopPopupsEnabledState):
  3735. Add stubs for these functions.
  3736. * Plugins/npfunctions.h:
  3737. Add new methods to NPNetscapeFuncs.
  3738. 2007-03-29 Geoffrey Garen <ggaren@apple.com>
  3739. Reviewed by Beth Dakin, reviewed by Maciej Stachowiak.
  3740. Layout test for <rdar://problem/5091330> REGRESSION: Repro crash in
  3741. -[WebBaseNetscapePluginView(WebNPPCallbacks) destroyStream:reason:]
  3742. navigating away from page with DivX movie plug-in (13203)
  3743. Changed LOG_ERROR to LOG so the layout test doesn't produce console spew
  3744. every time you run it.
  3745. * Plugins/WebBaseNetscapePluginView.mm:
  3746. (-[WebBaseNetscapePluginView destroyStream:reason:]):
  3747. 2007-03-29 Beth Dakin <bdakin@apple.com>
  3748. Reviewed by Brady.
  3749. Fix for <rdar://problem/4674537> REGRESSION: Adobe Acrobat 8 - Text
  3750. blinks when mouse is moved, and is invisible otherwise
  3751. -and-
  3752. <rdar://problem/4992521> Please adjust WebKit's Acrobat-workaround
  3753. methodology
  3754. The fix for the first bug is to compare against the bundle
  3755. identifiers for Adobe Reader and the non-Pro Adobe Acrobat in
  3756. addition to Adobe Acrobat Pro. The fix for the second bug is to
  3757. check the version number of Acrobat/Reader through
  3758. WebKitSystemInterface instead of checking which version of WebKit
  3759. it has been linked against.
  3760. * English.lproj/StringsNotToBeLocalized.txt: Two new bundle
  3761. identifiers.
  3762. * Misc/WebKitVersionChecks.h: Remove Acrobat quirk constant.
  3763. * WebView/WebView.mm:
  3764. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  3765. 2007-03-29 Geoffrey Garen <ggaren@apple.com>
  3766. Rubber stamped by Beth Dakin.
  3767. WebBaseNetscapePluginStream.m => WebBaseNetscapePluginStream.mm, since
  3768. it's ObjC++ now.
  3769. * Plugins/WebBaseNetscapePluginStream.m: Removed.
  3770. * WebKit.xcodeproj/project.pbxproj:
  3771. 2007-03-27 Geoffrey Garen <ggaren@apple.com>
  3772. Reluctantly tolerated by Darin Adler.
  3773. Fixed <rdar://problem/5091330> REGRESSION: Repro crash in
  3774. -[WebBaseNetscapePluginView(WebNPPCallbacks) destroyStream:reason:]
  3775. navigating away from page with DivX movie plug-in (13203)
  3776. The problem was that the DivX plug-in would ask us to destroy an NPStream
  3777. that had already been destroyed, causing us to wander off into freed
  3778. memory. (I believe the reason this was a regression was that we never used
  3779. to destroy plug-in streams, period.)
  3780. The solution here is to track the NPStreams belonging to a plug-in, and
  3781. guard against plug-ins making calls with NPStreams that don't belong to
  3782. them. (It turns out that NPN_DestroyStream is the only stream-based
  3783. plug-in call we support.)
  3784. (CarbonPathFromPOSIXPath): Fixed up a cast to be C++ compatible.
  3785. * Plugins/WebBaseNetscapePluginView.mm:
  3786. (-[WebBaseNetscapePluginView destroyStream:reason:]): The actual fix.
  3787. Use helper method to guard against a plug-in using an NPStream that doesn't
  3788. belong to it.
  3789. * WebKit.xcodeproj/project.pbxproj: Made WebBaseNetscapePluginView ObjC++
  3790. so I could use HashMap.
  3791. 2007-03-28 Adele Peterson <adele@apple.com>
  3792. Reviewed by Brady.
  3793. Update to last fix.
  3794. * Misc/WebKitVersionChecks.h: Added WEBKIT_FIRST_VERSION_WITHOUT_VITALSOURCE_QUIRK.
  3795. * WebView/WebView.mm: (-[WebView stringByEvaluatingJavaScriptFromString:]):
  3796. Added check to only use the VitalSource workaround if the app is not linked on or after
  3797. the defined WEBKIT_FIRST_VERSION_WITHOUT_VITALSOURCE_QUIRK version number.
  3798. 2007-03-28 Adele Peterson <adele@apple.com>
  3799. Reviewed by Kevin M.
  3800. WebKit part of fix for <rdar://problem/5095515> VitalSource Bookshelf should not pass return statements into stringByEvaluatingJavaScriptFromString
  3801. Added an app specific workaround for VitalSource Bookshelf that strips "return" from the beginning of their script strings. We used to allow this
  3802. but now we throw a JavaScript exception for return statements that aren't in functions.
  3803. Filed this evangelism bug so we can notify VitalSource of the problem:
  3804. <rdar://problem/5095515> VitalSource Bookshelf should not pass return statements into stringByEvaluatingJavaScriptFromString
  3805. * WebView/WebView.mm: (-[WebView stringByEvaluatingJavaScriptFromString:]):
  3806. 2007-03-27 John Sullivan <sullivan@apple.com>
  3807. Reviewed by Tim
  3808. - fixed <rdar://problem/5092556> Default UA spoofing is always off until explicitly toggled
  3809. * WebView/WebView.mm:
  3810. (-[WebView _commonInitializationWithFrameName:groupName:]):
  3811. initialize the cached value of _private->useSiteSpecificSpoofing here; formerly it would not
  3812. be initialized correctly in the common case of WebViews that use [WebPreferences standardPreferences]
  3813. 2007-03-27 Mark Rowe <mrowe@apple.com>
  3814. Reviewed by Dave Harrison.
  3815. * Configurations/WebKit.xcconfig: Include UMBRELLA_FRAMEWORKS_DIR in framework search path.
  3816. 2007-03-26 Antti Koivisto <antti@apple.com>
  3817. Reviewed by Darin.
  3818. On Mac, support fine grained wheel events generated by trackpad and Mighty Mouse.
  3819. http://bugs.webkit.org/show_bug.cgi?id=13134
  3820. <rdar://problem/5076249>
  3821. * WebCoreSupport/WebSystemInterface.m:
  3822. (InitWebCoreSystemInterface): Expose GetWheelEventDeltas()
  3823. 2007-03-26 John Sullivan <sullivan@apple.com>
  3824. Reviewed by Dave Harrison
  3825. - fixed <rdar://problem/4769772> Problem with Find on certain PDF page
  3826. * WebView/WebPDFView.mm:
  3827. (-[WebPDFView _scaledAttributedString:]):
  3828. We were hitting an exception trying to set the font attribute to nil, which was happening because
  3829. the result of -[PDFSelection attributedString] had no attributes. That PDFSelection bug is now
  3830. filed separately, but this works around the exception.
  3831. 2007-03-24 David Hyatt <hyatt@apple.com>
  3832. Amend the statistics reporting for the WebCore cache to include XSL and to report live/decoded sizes.
  3833. * Misc/WebCache.mm:
  3834. (+[WebCache statistics]):
  3835. 2007-03-24 Brady Eidson <beidson@apple.com>
  3836. Reviewed by Adam
  3837. RetainPtr is no longer in the WebCore namespace
  3838. * History/WebBackForwardList.mm:
  3839. * WebCoreSupport/WebEditorClient.h:
  3840. * WebCoreSupport/WebFrameLoaderClient.h:
  3841. * WebView/WebDocumentLoaderMac.h:
  3842. 2007-03-24 Brady Eidson <beidson@apple.com>
  3843. Reviewed by Adam
  3844. <rdar://problem/5086210> - Move RetainPtr to WTF
  3845. * ForwardingHeaders/wtf/RetainPtr.h: Added.
  3846. * History/WebBackForwardList.mm: Changed #import to <wtf/RetainPtr.h>
  3847. * WebCoreSupport/WebEditorClient.h: Ditto
  3848. * WebCoreSupport/WebFrameLoaderClient.h: Ditto
  3849. * WebView/WebDocumentLoaderMac.h: Ditto
  3850. 2007-03-24 John Sullivan <sullivan@apple.com>
  3851. Reviewed by Adele
  3852. - fixed <rdar://problem/5084872> Need to add flickr to spoof list in WebKit
  3853. - only do site-specific spoofing if a preference is set
  3854. * WebView/WebPreferenceKeysPrivate.h:
  3855. added WebKitUseSiteSpecificSpoofingPreferenceKey
  3856. * WebView/WebPreferences.m:
  3857. (+[WebPreferences initialize]):
  3858. initialize WebKitUseSiteSpecificSpoofingPreferenceKey to false
  3859. (-[WebPreferences _useSiteSpecificSpoofing]):
  3860. get value of WebKitUseSiteSpecificSpoofingPreferenceKey
  3861. (-[WebPreferences _setUseSiteSpecificSpoofing:]):
  3862. set value of WebKitUseSiteSpecificSpoofingPreferenceKey
  3863. * WebView/WebPreferencesPrivate.h:
  3864. declare _useSiteSpecificSpoofing and _setUseSiteSpecificSpoofing
  3865. * WebView/WebView.mm:
  3866. cache the value of WebKitUseSiteSpecificSpoofingPreferenceKey in a bool in _private
  3867. (-[WebView _preferencesChangedNotification:]):
  3868. update the cached value
  3869. (-[WebView setPreferences:]):
  3870. ditto
  3871. (-[WebView WebCore::_userAgentForURL:WebCore::]):
  3872. Only spoof here if the new site-specific spoofing preference is enabled. If it is, pass
  3873. Safari 2.0.4's user agent string for flickr.com. We can remove this case when 5081617 is addressed.
  3874. 2007-03-24 Mark Rowe <mrowe@apple.com>
  3875. Rubber-stamped by Darin.
  3876. * Configurations/WebKit.xcconfig: Remove unnecessary INFOPLIST_PREPROCESS.
  3877. 2007-03-23 Mark Rowe <mrowe@apple.com>
  3878. Build fix for when BUILDING_ON_TIGER is not defined.
  3879. * Misc/WebTypesInternal.h:
  3880. * WebView/WebHTMLView.mm:
  3881. 2007-03-22 David Kilzer <ddkilzer@apple.com>
  3882. Reviewed by Darin.
  3883. Use BUILDING_ON_TIGER from WebKitPrefix.h instead of local
  3884. MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4 tests.
  3885. * Misc/WebTypesInternal.h:
  3886. * WebView/WebHTMLView.mm:
  3887. 2007-03-22 Darin Adler <darin@apple.com>
  3888. Reviewed by Adele.
  3889. - fix <rdar://problem/5074630> detachChildren call should move from WebKit to WebCore
  3890. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::prepareForDataSourceReplacement):
  3891. Remove call to detachChildren. This should be a WebCore responsibility.
  3892. 2007-03-19 Anders Carlsson <acarlsson@apple.com>
  3893. Reviewed by Dave Hyatt.
  3894. <rdar://problem/5067983>
  3895. iSale: Crash occurs at WebFrameLoaderClient::dispatchDecidePolicyForMIMEType() when attempting to load a HTML template
  3896. Restore old behavior (broke in r14533) where the resource load and download delegates are retained for as long as the
  3897. data source is loading.
  3898. * WebCoreSupport/WebFrameLoaderClient.mm:
  3899. (WebFrameLoaderClient::createDocumentLoader):
  3900. * WebView/WebDocumentLoaderMac.h:
  3901. * WebView/WebDocumentLoaderMac.mm:
  3902. (WebDocumentLoaderMac::setDataSource):
  3903. (WebDocumentLoaderMac::decreaseLoadCount):
  3904. 2007-03-19 Geoffrey Garen <ggaren@apple.com>
  3905. Speculative fix for why ASSERT_MAIN_THREAD didn't work for me. (The
  3906. documentation says "non-zero," not "1."
  3907. * Misc/WebKitLogging.m:
  3908. (WebKitRunningOnMainThread):
  3909. 2007-03-19 Andrew Wellington <proton@wiretapped.net>
  3910. Reviewed by Maciej.
  3911. Really set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
  3912. * WebKit.xcodeproj/project.pbxproj:
  3913. 2007-03-19 Darin Adler <darin@apple.com>
  3914. * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
  3915. 2007-03-19 John Sullivan <sullivan@apple.com>
  3916. Reviewed by Justin
  3917. - fixed <rdar://problem/5071238> REGRESSION: opt-cmd-B to show Bookmarks view does
  3918. nothing when form field has focus
  3919. * WebView/WebHTMLView.mm:
  3920. (-[WebHTMLView _handleStyleKeyEquivalent:]):
  3921. we were counting any set of modifiers plus 'b' as the standard key equivalent for
  3922. toggling Bold; now we only accept command+'b'
  3923. 2007-03-19 Adam Roben <aroben@apple.com>
  3924. Reviewed by Hyatt and Maciej.
  3925. Updated WebCoreStatistics for the conversion of WebCoreJavaScript to
  3926. C++.
  3927. * Misc/WebCoreStatistics.mm:
  3928. (+[WebCoreStatistics javaScriptObjectsCount]):
  3929. (+[WebCoreStatistics javaScriptInterpretersCount]):
  3930. (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
  3931. (+[WebCoreStatistics javaScriptRootObjectTypeCounts]): Moved
  3932. conversion to NSCountedSet here from WebCore.
  3933. (+[WebCoreStatistics garbageCollectJavaScriptObjects]):
  3934. (+[WebCoreStatistics garbageCollectJavaScriptObjectsOnAlternateThread:]):
  3935. (+[WebCoreStatistics shouldPrintExceptions]):
  3936. (+[WebCoreStatistics setShouldPrintExceptions:]):
  3937. (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
  3938. (+[WebCoreStatistics javaScriptRootObjectClasses]):
  3939. 2007-03-18 Andrew Wellington <proton@wiretapped.net>
  3940. Reviewed by Mark Rowe
  3941. Set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
  3942. * WebKit.xcodeproj/project.pbxproj:
  3943. 2007-03-19 Mark Rowe <mrowe@apple.com>
  3944. Rubber-stamped by Brady.
  3945. Update references to bugzilla.opendarwin.org with bugs.webkit.org.
  3946. * WebInspector/webInspector/inspector.css:
  3947. * WebView/WebHTMLView.mm:
  3948. (-[WebHTMLView firstRectForCharacterRange:]):
  3949. * WebView/WebView.mm:
  3950. (-[WebView initWithFrame:frameName:groupName:]):
  3951. 2007-03-18 David Hyatt <hyatt@apple.com>
  3952. Move frame borders out of WebKit and into WebCore.
  3953. Reviewed by aroben, olliej
  3954. * WebCoreSupport/WebFrameBridge.mm:
  3955. * WebKit.xcodeproj/project.pbxproj:
  3956. * WebView/WebFrameView.mm:
  3957. (-[WebFrameView drawRect:]):
  3958. (-[WebFrameView setFrameSize:]):
  3959. * WebView/WebFrameViewInternal.h:
  3960. 2007-03-17 John Sullivan <sullivan@apple.com>
  3961. Reviewed by Tim Hatcher
  3962. Discovered while working on <rdar://problem/5070334> that many WebView calls will crash if called
  3963. after -[WebView close] has executed because _private->page is deferenced after it's been set to 0.
  3964. It might be silly/wrong to call these methods after -close, but obviously it shouldn't crash. Made
  3965. each use of _private->page robust against nil-dereferencing.
  3966. * WebView/WebView.mm:
  3967. (-[WebView _loadBackForwardListFromOtherView:]):
  3968. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  3969. (-[WebView _setDashboardBehavior:to:]):
  3970. (-[WebView _dashboardBehavior:]):
  3971. (-[WebView goBack]):
  3972. (-[WebView goForward]):
  3973. (-[WebView goToBackForwardItem:]):
  3974. (-[WebView canGoBack]):
  3975. (-[WebView canGoForward]):
  3976. (-[WebView setTabKeyCyclesThroughElements:]):
  3977. (-[WebView tabKeyCyclesThroughElements]):
  3978. (-[WebView setEditable:]):
  3979. 2007-03-17 Timothy Hatcher <timothy@apple.com>
  3980. Reviewed by Mark Rowe.
  3981. Made Version.xcconfig smarter when building for different configurations.
  3982. Now uses the 522+ OpenSource version for Debug and Release, while using the
  3983. full 522.4 version for Production builds. The system prefix is also computed
  3984. based on the current system, so 4522.4 on Tiger and 5522.4 on Leopard.
  3985. * Configurations/Version.xcconfig:
  3986. * Configurations/WebKit.xcconfig:
  3987. 2007-03-16 Oliver Hunt <oliver@apple.com>
  3988. Reviewed by Hyatt.
  3989. The old canSaveAsWebArchive call was necessary as stand alone
  3990. images used to be rendered by ImageDocument.
  3991. Fixes rdar://problem/5061252
  3992. * WebCoreSupport/WebDragClient.h:
  3993. * WebCoreSupport/WebDragClient.mm:
  3994. (WebDragClient::declareAndWriteDragImage):
  3995. * WebKit.xcodeproj/project.pbxproj:
  3996. 2007-03-15 Brady Eidson <beidson@apple.com>
  3997. Reviewed by Maciej
  3998. <rdar://problem/4429701>
  3999. Implements a port blocking black list that matches Firefox's
  4000. * English.lproj/Localizable.strings: Added localizable string for port blocked error code
  4001. * Misc/WebKitErrors.h:
  4002. * Misc/WebKitErrors.m:
  4003. (registerErrors): Add new port blocked error code to WebKitErrorDomain
  4004. * WebCoreSupport/WebFrameLoaderClient.h:
  4005. * WebCoreSupport/WebFrameLoaderClient.mm:
  4006. (WebFrameLoaderClient::cancelledError): Fixed coding style
  4007. (WebFrameLoaderClient::blockedError): Return a ResourceError with the new custom error code
  4008. 2007-03-15 Timothy Hatcher <timothy@apple.com>
  4009. Reviewed by John.
  4010. * Fixes: <rdar://problem/4927747> WebKit's Current Library Version number should match the Info.plist Version
  4011. * Factored out most of our common build settings into .xcconfig files. Anything that was common in
  4012. each build configuration was factored out into the shared .xcconfig file.
  4013. * Adds a Version.xcconfig file to define the current framework version, to be used in other places.
  4014. * Use the new $(BUNDLE_VERSION) (defined in Version.xcconfig) in the preprocessed Info.plist.
  4015. * Use the versions defined in Version.xcconfig to set $(DYLIB_CURRENT_VERSION).
  4016. * Make WebKit use the same warning flags as the other projects. This required two casts to be added to fix new warnings.
  4017. * Configurations/Base.xcconfig: Added.
  4018. * Configurations/DebugRelease.xcconfig: Added.
  4019. * Configurations/Version.xcconfig: Added.
  4020. * Configurations/WebKit.xcconfig: Added.
  4021. * Info.plist:
  4022. * Misc/WebKitVersionChecks.h:
  4023. * Plugins/WebBaseNetscapePluginStream.m:
  4024. (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
  4025. * WebKit.xcodeproj/project.pbxproj:
  4026. 2007-03-15 Kevin Decker <kdecker@apple.com>
  4027. Reviewed by Anders.
  4028. Fixed: <rdar://problem/5001428> stationery background images do not display
  4029. Change 19244 fixed the method -[WebResource _shouldIgnoreWhenUnarchiving], but also broke Mail stationery.
  4030. The problem was that with archivedResourceForURL now fixed, the engine will try to decode the images. These images wouldn't decode because
  4031. Mail re-encodes and directly manipulates the image data in such a way that prevented WebKit from decoding the image. Because Mail was giving
  4032. us bad data, the images wouldn't render. This was never an issue before because archivedResourceForURL (broken) always returned nil, thus the
  4033. engine would never attempt to decode the resource, therefore the responsibility was delegated to Mail's protocol handler, which would do the
  4034. right thing and load the image.
  4035. Since Mail is relying on the fact it can store arbitrary data in WebArchives, I've introduced SPI that acts as a hint for us to ignore certain
  4036. subresources while unarchiving. This SPI is -[WebResource _shouldIgnoreWhenUnarchiving].
  4037. * WebView/WebResource.mm: Addd private ivar shouldIgnoreWhenUnarchiving.
  4038. (-[WebResource _ignoreWhenUnarchiving]): Added.
  4039. (-[WebResource _shouldIgnoreWhenUnarchiving]): Added.
  4040. * WebView/WebResourcePrivate.h: Added two methods to private header.
  4041. * WebView/WebUnarchivingState.m:
  4042. (-[WebUnarchivingState archivedResourceForURL:]): Check if we should ignore the resource.
  4043. 2007-03-15 Mark Rowe <mrowe@apple.com>
  4044. Reviewed by Antti.
  4045. Fix for <rdar://problem/5065060> ASSERTION FAILURE: newUsername && newPassword
  4046. when submitting an authentication form without password.
  4047. * WebCoreSupport/WebFrameLoaderClient.mm:
  4048. (WebFrameLoaderClient::dispatchWillSubmitForm): Don't omit form fields with empty values from the dictionary
  4049. passed to the delegate.
  4050. 2007-03-14 Anders Carlsson <acarlsson@apple.com>
  4051. Reviewed by Dave Hyatt.
  4052. Don't add the data twice, it's also done by didReceiveData.
  4053. * WebCoreSupport/WebFrameLoaderClient.mm:
  4054. (WebFrameLoaderClient::deliverArchivedResources):
  4055. 2007-03-14 Anders Carlsson <acarlsson@apple.com>
  4056. Fix segmentation fault when running layout tests.
  4057. Remove bogus check that that I added on purpose to see how good Geoff is at spotting mistakes when reviewing code.
  4058. (Turns out he's not that good!)
  4059. * WebView/WebDocumentLoaderMac.mm:
  4060. (WebDocumentLoaderMac::increaseLoadCount):
  4061. 2007-03-14 Anders Carlsson <acarlsson@apple.com>
  4062. Reviewed by Geoff.
  4063. http://bugs.webkit.org/show_bug.cgi?id=13076
  4064. REGRESSION: Multiple loading tabs cause assertion in WebDocumentLoaderMac::decreaseLoadCount(unsigned long)
  4065. Store the identifier set in the document loader since identifiers are per-webview and not global.
  4066. * WebView/WebDocumentLoaderMac.h:
  4067. * WebView/WebDocumentLoaderMac.mm:
  4068. (WebDocumentLoaderMac::WebDocumentLoaderMac):
  4069. (WebDocumentLoaderMac::attachToFrame):
  4070. (WebDocumentLoaderMac::increaseLoadCount):
  4071. (WebDocumentLoaderMac::decreaseLoadCount):
  4072. 2007-03-14 David Harrison <harrison@apple.com>
  4073. Reviewed by Maciej.
  4074. <rdar://problem/5009625> REGRESSION: Aperture 1.5: Can't select entire line of text after correcting a misspelled word
  4075. * WebCoreSupport/WebEditorClient.mm:
  4076. (WebEditorClient::respondToChangedSelection):
  4077. * WebCoreSupport/WebFrameBridge.mm:
  4078. Provide compatibility by not sending WebViewDidChangeSelectionNotification if
  4079. the app is Aperture and is linked against WebKit 2.0.
  4080. === Safari-5522.4 ===
  4081. 2007-03-14 Anders Carlsson <acarlsson@apple.com>
  4082. Reviewed by Geoff.
  4083. <rdar://problem/5058714>
  4084. http://bugs.webkit.org/show_bug.cgi?id=13050
  4085. World leaks seen on Leopard after opening then closing tab (13050)
  4086. Add a hash set to prevent the load count to be increased twice for the same resource.
  4087. * WebCoreSupport/WebFrameLoaderClient.mm:
  4088. (WebFrameLoaderClient::dispatchWillSendRequest):
  4089. (WebFrameLoaderClient::dispatchDidFinishLoading):
  4090. (WebFrameLoaderClient::dispatchDidFailLoading):
  4091. * WebView/WebDocumentLoaderMac.h:
  4092. * WebView/WebDocumentLoaderMac.mm:
  4093. (loadingResources):
  4094. (WebDocumentLoaderMac::increaseLoadCount):
  4095. (WebDocumentLoaderMac::decreaseLoadCount):
  4096. 2007-03-14 Adele Peterson <adele@apple.com>
  4097. Reviewed by Darin.
  4098. Removed _insertTextWithEvent, _insertNewlineWithEvent, and _insertTextWithEvent.
  4099. Instead, use execCommand and insertText methods on the Editor.
  4100. * WebView/WebHTMLView.mm:
  4101. (-[WebHTMLView insertTab:]):
  4102. (-[WebHTMLView insertBacktab:]):
  4103. (-[WebHTMLView insertNewline:]):
  4104. (-[WebHTMLView insertLineBreak:]):
  4105. (-[WebHTMLView insertParagraphSeparator:]):
  4106. (-[WebHTMLView insertNewlineIgnoringFieldEditor:]):
  4107. (-[WebHTMLView insertTabIgnoringFieldEditor:]):
  4108. (-[WebHTMLView yank:]):
  4109. (-[WebHTMLView yankAndSelect:]):
  4110. (-[WebHTMLView doCommandBySelector:]):
  4111. (-[WebHTMLView insertText:]):
  4112. 2007-03-14 David Hyatt <hyatt@apple.com>
  4113. Fixes to ensure that the resource loader's shared buffer can always be used.
  4114. Reviewed by olliej, mjs
  4115. * Misc/WebIconDatabase.mm:
  4116. (-[WebIconDatabase _convertToWebCoreFormat]):
  4117. * WebCoreSupport/WebFrameLoaderClient.mm:
  4118. (WebFrameLoaderClient::deliverArchivedResources):
  4119. 2007-03-13 Oliver Hunt <oliver@apple.com>
  4120. Reviewed by Brady.
  4121. Modify subresourceForURL to take NSString argument
  4122. so we can avoid [NSURL absoluteString]
  4123. * WebView/WebDataSource.mm:
  4124. (-[WebDataSource subresourceForURL:]):
  4125. 2007-03-13 Brady Eidson <beidson@apple.com>
  4126. Rubberstamped by Alice
  4127. Meant to be part of my previous checkin... pruning unused code from WebKit
  4128. * WebView/WebFrame.mm: Removed _canCachePage
  4129. * WebView/WebFrameInternal.h: Ditto
  4130. 2007-03-13 Beth Dakin <bdakin@apple.com>
  4131. Reviewed by Maciej.
  4132. Fix for <rdar://problem/4277074> 8F32: Help Viewer crashed on
  4133. clicking link - KHTMLView::viewportMouseReleaseEvent (12647)
  4134. Re-set the DocumentLoader's frame when loading it from the page
  4135. cache before setting the document view.
  4136. * WebCoreSupport/WebFrameLoaderClient.mm:
  4137. (WebFrameLoaderClient::setDocumentViewFromPageCache):
  4138. 2007-03-13 Timothy Hatcher <timothy@apple.com>
  4139. Reviewed by Geoff.
  4140. <rdar://problem/5057117> Spoof user agent on Yahoo.com with Safari and WebKit as version 4xx
  4141. * Plugins/WebBaseNetscapePluginView.mm:
  4142. (-[WebBaseNetscapePluginView userAgent]): Stop using the deprecated lossyCString method.
  4143. * WebCoreSupport/WebFrameBridge.mm: Removed dead code, userAgentForURL: wasn't used.
  4144. * WebCoreSupport/WebFrameLoaderClient.mm:
  4145. (WebFrameLoaderClient::userAgent): Call WebView's _userAgentForURL:.
  4146. * WebView/WebView.mm:
  4147. (-[WebView _cachedResponseForURL:]): Call userAgentForURL: instead of _userAgent.
  4148. (-[WebView userAgentForURL:]): Call _userAgentForURL:.
  4149. (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): New method to construct a UA.
  4150. (-[WebView _computeUserAgent]): Ractored out into _userAgentWithApplicationName:andWebKitVersion:
  4151. (-[WebView _userAgentForURL:]): Tail compare for Yahoo.com, and return a UA with an older WebKit version.
  4152. * WebView/WebViewInternal.h: Declare _userAgentForURL:.
  4153. 2007-03-12 David Harrison <harrison@apple.com>
  4154. Reviewed by Darin.
  4155. <rdar://problem/4743256> ctrl-y key binding (yank) should do nothing when kill ring is empty
  4156. Test updated:
  4157. * editing/pasteboard/emacs-cntl-y-001.html:
  4158. * WebView/WebHTMLView.mm:
  4159. (-[WebHTMLView yank:]):
  4160. (-[WebHTMLView yankAndSelect:]):
  4161. Do nothing if the killring is empty.
  4162. 2007-03-12 Darin Adler <darin@apple.com>
  4163. Reviewed by Tim Hatcher.
  4164. - update for the new naming scheme for the Objective-C wrapper-creation
  4165. functions: _wrapElement: instead of _elementWith:, etc.
  4166. * WebCoreSupport/WebEditorClient.mm:
  4167. (WebEditorClient::textFieldDidBeginEditing):
  4168. (WebEditorClient::textFieldDidEndEditing):
  4169. (WebEditorClient::textDidChangeInTextField):
  4170. (WebEditorClient::doTextFieldCommandFromEvent):
  4171. (WebEditorClient::textWillBeDeletedInTextField):
  4172. (WebEditorClient::textDidChangeInTextArea):
  4173. * WebCoreSupport/WebFrameLoaderClient.mm:
  4174. (WebFrameLoaderClient::createPlugin):
  4175. (WebFrameLoaderClient::createJavaAppletWidget):
  4176. * WebView/WebFrame.mm: (kit):
  4177. Use the _wrapElement-style functions.
  4178. 2007-03-12 Anders Carlsson <acarlsson@apple.com>
  4179. Reviewed by Maciej.
  4180. <rdar://problem/5057575>
  4181. REGRESSION: Repro Crash in FrameLoader::frame loading about:blank in PLT
  4182. Always get the web view from the current web frame, since the document loader's frame can have been zeroed out
  4183. (for example when detaching the document loader).
  4184. * WebCoreSupport/WebFrameLoaderClient.mm:
  4185. (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  4186. (WebFrameLoaderClient::assignIdentifierToInitialRequest):
  4187. (WebFrameLoaderClient::dispatchWillSendRequest):
  4188. (WebFrameLoaderClient::dispatchDidReceiveResponse):
  4189. (WebFrameLoaderClient::dispatchDidReceiveContentLength):
  4190. (WebFrameLoaderClient::dispatchDidFinishLoading):
  4191. 2007-03-11 Oliver Hunt <oliver@apple.com>
  4192. Reviewed by Adele.
  4193. Moved respondToChangedSelection from FrameBridge to EditorClient
  4194. * WebCoreSupport/WebEditorClient.h:
  4195. * WebCoreSupport/WebEditorClient.mm:
  4196. (WebEditorClient::respondToChangedSelection):
  4197. * WebCoreSupport/WebFrameBridge.mm:
  4198. Removed respondToChangedSelection from bridge
  4199. 2007-03-11 Darin Adler <darin@apple.com>
  4200. Reviewed by Adele.
  4201. - fix http://bugs.webkit.org/show_bug.cgi?id=12964
  4202. <rdar://problem/5045717> REGRESSION: crash in -[WebBaseNetscapePluginStream _deliverData]
  4203. at simpsonsmovie.com (12964)
  4204. * Plugins/WebBaseNetscapePluginStream.m:
  4205. (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
  4206. At every place we call the plug-in, since it could destroy the stream, get pluginView into a local
  4207. variable; it will be set to nil if the stream is destroyed.
  4208. (-[WebBaseNetscapePluginStream _destroyStream]): Added calls to retain/release to handle the case where
  4209. one of the calls to the plug-in destroys the stream. Added a call to cancelPreviousPerformRequestsWithTarget
  4210. in case _deliverData has been scheduled but not yet delivered. Also get pluginView into a local variable
  4211. as mentioned above, and check at strategic points and exit if the stream was already destroyed to avoid
  4212. multiple calls to NPP_DestroyStream or NPP_URLNotify.
  4213. (-[WebBaseNetscapePluginStream _deliverData]): Ditto.
  4214. 2007-03-10 Geoffrey Garen <ggaren@apple.com>
  4215. Reviewed by Darin Adler.
  4216. Fixed <rdar://problem/4587763> PAC file: lock inversion between QT and
  4217. JSCore causes a hang @ www.panoramas.dk
  4218. See JavaScriptCore ChangeLog for details.
  4219. Drop the JSLock before making calls through the plug-in API from functions
  4220. that may have been called by JavaScript.
  4221. * Plugins/WebBaseNetscapePluginView.mm:
  4222. (-[WebBaseNetscapePluginView sendEvent:]):
  4223. (-[WebBaseNetscapePluginView setWindowIfNecessary]):
  4224. (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
  4225. (-[WebBaseNetscapePluginView createPluginScriptableObject]):
  4226. (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
  4227. (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
  4228. (-[WebBaseNetscapePluginView loadPluginRequest:]):
  4229. (-[WebBaseNetscapePluginView _printedPluginBitmap]):
  4230. * Plugins/WebPluginController.mm:
  4231. (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
  4232. (-[WebPluginController startAllPlugins]):
  4233. (-[WebPluginController stopAllPlugins]):
  4234. (-[WebPluginController addPlugin:]):
  4235. (-[WebPluginController destroyPlugin:]):
  4236. (-[WebPluginController destroyAllPlugins]):
  4237. 2007-03-10 David Kilzer <ddkilzer@webkit.org>
  4238. Reviewed by Darin.
  4239. - fix http://bugs.webkit.org/show_bug.cgi?id=9609
  4240. REGRESSION: Missing image icon needs to be moved back to WebKit
  4241. * WebView/WebHTMLView.mm:
  4242. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  4243. Use WebCore::Image::loadPlatformResource(const char*) to load the missingImage image.
  4244. 2007-03-10 Mark Rowe <mrowe@apple.com>
  4245. Reviewed by John.
  4246. <rdar://problem/5051827> HIWebView handling of kEventControlGetData is broken in 64-bit
  4247. On Leopard the kEventParamControlDataBufferSize event parameter is of type typeByteCount.
  4248. The 32-bit implementation of GetEventParameter will coerce between integer types and
  4249. typeByteCount while the 64-bit version will return a failure. As typeByteCount is new
  4250. in Leopard we must continue using typeSInt32 when building for Tiger.
  4251. * Carbon/HIWebView.m:
  4252. (HIWebViewEventHandler):
  4253. 2007-03-09 Timothy Hatcher <timothy@apple.com>
  4254. Reviewed by Darin.
  4255. <rdar://problem/4976254> Please get off _NSSoftLinkingGetFrameworkFuncPtr
  4256. Use dlopen and dlsym to access the DCSShowDictionaryServiceWindow function.
  4257. * WebView/WebHTMLView.mm:
  4258. (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
  4259. 2007-03-09 Darin Adler <darin@apple.com>
  4260. Reviewed by Justin.
  4261. - fix http://bugs.webkit.org/show_bug.cgi?id=8928
  4262. <rdar://problem/5045708> REPRODUCIBLE ASSERT: Cannot paste HTML into a
  4263. contenteditable region in an XHTML document (8928)
  4264. * WebView/WebHTMLView.mm:
  4265. (-[WebHTMLView _hasHTMLDocument]): Added.
  4266. (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
  4267. Don't call AppKit's conversion from the DOM to an attributed string if the document
  4268. is not an HTML document, to work around an AppKit limitation (Radar 5052390).
  4269. 2007-03-09 Darin Adler <darin@apple.com>
  4270. * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
  4271. 2007-03-08 Mark Rowe <mrowe@apple.com>
  4272. Reviewed by Tim Hatcher.
  4273. <rdar://problem/5051616> Mouse clicks and movement are ignored in HIWebView on 64-bit
  4274. Mouse events are not being handled correctly as GetControlKind is returning an error
  4275. on 64-bit. The more modern HIObjectIsOfClass behaves correctly for this use.
  4276. * Carbon/HIWebView.m:
  4277. (HIWebViewDestructor):
  4278. (WindowHandler): Use HIObjectIsOfClass in place of GetControlKind.
  4279. (HIWebViewEventHandler): Don't leak the NSEvent.
  4280. 2007-03-08 Bruce Q Hammond <bruceq@apple.com>
  4281. Reviewed by Darin.
  4282. Fix for http://bugs.webkit.org/show_bug.cgi?id=13009
  4283. Console spews "CGContextGetType: invalid context" non-stop on web site
  4284. * Plugins/WebBaseNetscapePluginView.mm:
  4285. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  4286. (-[WebBaseNetscapePluginView restorePortState:]):
  4287. 2007-03-08 Mark Rowe <mrowe@apple.com>
  4288. Reviewed by Tim Hatcher.
  4289. <rdar://problem/4561772> HIWebView does not exist for 64-bit
  4290. Update HIWebView and friends to work without QuickDraw.
  4291. Changes are gleaned from the 64-bit support inside HICocoaView. The main
  4292. fact of interest are that all Carbon windows must have compositing enabled
  4293. so the code paths that aren't accessible are #ifdef'd out. Conveniently
  4294. these are the exact code paths that make use of QuickDraw.
  4295. There are currently minor event-handling and invalidation issues running as
  4296. 64-bit that are not present in 32-bit.
  4297. * Carbon/CarbonUtils.m:
  4298. * Carbon/CarbonWindowAdapter.m:
  4299. * Carbon/CarbonWindowFrame.m:
  4300. * Carbon/HIViewAdapter.m:
  4301. (SetViewNeedsDisplay):
  4302. * Carbon/HIWebView.m:
  4303. (Draw):
  4304. (Click):
  4305. (SyncFrame):
  4306. (StartUpdateObserver):
  4307. (StopUpdateObserver):
  4308. (UpdateObserver):
  4309. * WebKit.LP64.exp: Removed.
  4310. * WebKit.xcodeproj/project.pbxproj: Always use WebKit.exp.
  4311. 2007-03-08 Timothy Hatcher <timothy@apple.com>
  4312. Reviewed by John.
  4313. <rdar://problem/4664697> highlighter SPI needs a node parameter to give more context
  4314. Added new methods to the WebHTMLHighlighter protocol that include the DOMNode being painted.
  4315. * WebCoreSupport/WebFrameBridge.mm:
  4316. (-[WebFrameBridge customHighlightRect:forLine:representedNode:WebCore::]):
  4317. (-[WebFrameBridge paintCustomHighlight:forBox:onLine:behindText:entireLine:representedNode:WebCore::]):
  4318. * WebKit.xcodeproj/project.pbxproj:
  4319. * WebView/WebHTMLViewPrivate.h:
  4320. 2007-03-08 Anders Carlsson <acarlsson@apple.com>
  4321. Try fixing the buildbot build.
  4322. * Plugins/WebBaseNetscapePluginView.mm:
  4323. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  4324. 2007-03-07 Anders Carlsson <acarlsson@apple.com>
  4325. Leopard build fix.
  4326. * Plugins/WebBaseNetscapePluginView.mm:
  4327. 2007-03-07 Bruce Q Hammond <bruceq@apple.com>
  4328. Reviewed by Darin.
  4329. - fix http://bugs.webkit.org/show_bug.cgi?id=12515
  4330. Plug-ins that draw through the Quickdraw interface fail in a CGBitmapContex.
  4331. <rdar://problem/4975122>
  4332. This fixes a problem with Netscape-style Plug-ins which draw through the Quickdraw APIs
  4333. being unable to render into offscreen bitmap contexts.
  4334. This patches both saveAndSetNewPortStateForUpdate: and restorePortState:
  4335. These methods now check the current context and see if appropriate setup/cleanup needs to be done
  4336. for offscreen rendering.
  4337. * Plugins/WebBaseNetscapePluginView.mm:
  4338. (QDPixelFormatFromCGBitmapInfo):
  4339. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  4340. (-[WebBaseNetscapePluginView restorePortState:]):
  4341. 2007-03-07 Anders Carlsson <acarlsson@apple.com>
  4342. Reviewed by Darin.
  4343. Use HardRetain/HardRelease.
  4344. * WebView/WebDocumentLoaderMac.mm:
  4345. (WebDocumentLoaderMac::setDataSource):
  4346. (WebDocumentLoaderMac::attachToFrame):
  4347. (WebDocumentLoaderMac::detachFromFrame):
  4348. (WebDocumentLoaderMac::increaseLoadCount):
  4349. (WebDocumentLoaderMac::decreaseLoadCount):
  4350. 2007-03-07 Anders Carlsson <acarlsson@apple.com>
  4351. Reviewed by Maciej.
  4352. <rdar://problem/4961259>
  4353. REGRESSION: Bumper Car 2.1.1 - Crash at WebCore::FrameLoader::receivedMainResourceError when encountering a invalid URL address
  4354. (The crash was already fixed, this actually makes Bumper Car load the error page correctly.)
  4355. This adds a "load counter" to the document loader and keeps the data source retained for as long as something is loading.
  4356. * WebCoreSupport/WebFrameLoaderClient.mm:
  4357. (WebFrameLoaderClient::dispatchWillSendRequest):
  4358. Increase the load counter.
  4359. (WebFrameLoaderClient::dispatchDidFinishLoading):
  4360. (WebFrameLoaderClient::dispatchDidFailLoading):
  4361. Decrease the load counter,
  4362. * WebView/WebDocumentLoaderMac.h:
  4363. * WebView/WebDocumentLoaderMac.mm:
  4364. (WebDocumentLoaderMac::WebDocumentLoaderMac):
  4365. (WebDocumentLoaderMac::attachToFrame):
  4366. If the document loader has been detached, make sure to retain its data source here.
  4367. (WebDocumentLoaderMac::detachFromFrame):
  4368. Release the data source.
  4369. (WebDocumentLoaderMac::increaseLoadCount):
  4370. Retain the data source if load count was 0.
  4371. (WebDocumentLoaderMac::decreaseLoadCount):
  4372. Release the data source if load count becomes 0
  4373. 2007-03-07 Adele Peterson <adele@apple.com>
  4374. Reviewed by Darin.
  4375. WebKit part of fix for:
  4376. http://bugs.webkit.org/show_bug.cgi?id=10871
  4377. http://bugs.webkit.org/show_bug.cgi?id=12677
  4378. <rdar://problem/4823129> REGRESSION: IME key events different in nightly
  4379. <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri
  4380. * WebView/WebHTMLView.mm:
  4381. (-[WebHTMLView _interceptEditingKeyEvent: shouldSaveCommand:]): Added shouldSaveCommand field to WebHTMLViewInterpretKeyEventsParameters.
  4382. When shouldSaveCommand is true, we call interpretKeyEvents and in doCommandBySelector and insertText, we just save the information without performing any action.
  4383. When shouldSaveCommand is false, we used the saved information and call doCommandBySelector and insertText directly.
  4384. If there's no saved command data in the KeyboardEvent, call interpretKeyEvents, and honor the shouldSaveCommand argument. This allows repeating keypress events
  4385. to function normally.
  4386. (-[WebHTMLView doCommandBySelector:]): If the WebHTMLViewInterpretKeyEventsParameters shouldSaveCommand field is set, then
  4387. just save the selector information in the KeyboardEvent, and don't perform the action.
  4388. (-[WebHTMLView insertText:]): ditto.
  4389. insertText can be called from an input method or from normal key event processing
  4390. If its from an input method, then we should go ahead and insert the text now.
  4391. The only way we know if its from an input method is to check hasMarkedText. There might be a better way to do this.
  4392. * WebView/WebHTMLViewInternal.h: Added shouldSaveCommand argument.
  4393. * WebView/WebViewInternal.h: ditto.
  4394. * WebCoreSupport/WebEditorClient.h:
  4395. * WebCoreSupport/WebEditorClient.mm:
  4396. (WebEditorClient::handleKeypress): Changed handleKeyPress to handleKeypress. Call _interceptEditingKeyEvent with shouldSaveCommand:NO.
  4397. (WebEditorClient::handleInputMethodKeypress): Call _interceptEditingKeyEvent with shouldSaveCommand:YES.
  4398. 2007-03-07 Anders Carlsson <acarlsson@apple.com>
  4399. Reviewed by Brady.
  4400. Update to match WebCore.
  4401. * Plugins/WebNetscapePluginStream.mm:
  4402. (-[WebNetscapePluginStream start]):
  4403. 2007-03-07 Jim Correia <jim.correia@pobox.com>
  4404. Reviewed by Darin.
  4405. - WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=12463
  4406. WebArchiver - attempt to insert nil exception when archive empty iframe
  4407. When dealing with an iframe element with no src attribute, the element contains
  4408. a src attribute in the DOM with a URL of "about:blank" and some HTML to implement
  4409. the blank page. In the original page source, however, the iframe element does
  4410. not include a src attribute, which caused a nil archive to be returned for the
  4411. childFrameArchive and thus caused the bug. The fix is a simple nil check.
  4412. Test: webarchive/archive-empty-frame-source.html
  4413. * WebView/WebArchiver.mm:
  4414. (+ (NSArray *)_subframeArchivesForFrame:(WebFrame *)frame): Don't add childFrameArchive
  4415. to the subframeArchives array if it is nil.
  4416. 2007-03-06 John Sullivan <sullivan@apple.com>
  4417. Reviewed by Darin
  4418. Made WebAuthenticationHandler.h SPI so Safari can call it directly.
  4419. * WebKit.exp:
  4420. added .objc_class_name_WebPanelAuthenticationHandler
  4421. * WebKit.xcodeproj/project.pbxproj:
  4422. changed status of WebAuthenticationHandler.h from "project" to "private"
  4423. 2007-03-06 Kevin McCullough <kmccullough@apple.com>
  4424. Reviewed by Darin.
  4425. - Rename a function to clarify its purpose.
  4426. * WebView/WebView.mm:
  4427. (+[WebView registerURLSchemeAsLocal:]):
  4428. * WebView/WebViewPrivate.h:
  4429. 2007-03-06 Anders Carlsson <acarlsson@apple.com>
  4430. Reviewed by Adam.
  4431. Update for WebCore changes.
  4432. * WebCoreSupport/WebFrameLoaderClient.h:
  4433. * WebCoreSupport/WebFrameLoaderClient.mm:
  4434. (WebFrameLoaderClient::userAgent):
  4435. 2007-03-05 Anders Carlsson <acarlsson@apple.com>
  4436. Reviewed by Adam, Darin.
  4437. <rdar://problem/5025212>
  4438. In Mail, a crash occurs at WebCore::Frame::tree() when clicking on embedded flash object
  4439. * Plugins/WebBaseNetscapePluginView.mm:
  4440. (-[WebBaseNetscapePluginView loadPluginRequest:]):
  4441. Handle the case where the web view returned from the delegate method is null. Also, send out an error notification
  4442. in that case so we can catch it.
  4443. 2007-03-05 John Sullivan <sullivan@apple.com>
  4444. Reviewed by Darin and Kevin D
  4445. - fixed <rdar://problem/5038087> Header and footer on printed page are too large after certain steps
  4446. * WebView/WebView.mm:
  4447. (-[WebView _adjustPrintingMarginsForHeaderAndFooter]):
  4448. This method was modifying the margins in the NSPrintInfo object without any sort of check whether
  4449. this had already been done. In some cases this can be called multiple times with the same
  4450. NSPrintInfo, so now we stash information in the NSPrintInfo's dictionary such that we always
  4451. start with a fresh copy of the original margins.
  4452. 2007-03-02 Kevin McCullough <kmccullough@apple.com>
  4453. Reviewed by Geoff.
  4454. - rdar://problem/4922454
  4455. - This fixes a security issue by making remote referrers not able to access local
  4456. resources, unless they register their schemes to be treated as local. The result is
  4457. that those schemes can access local resources and cannot be accessed by remote
  4458. referrers.
  4459. Because this behavior is new a link-on-or-after check is made to determine if the
  4460. app should use the older, less safe, behavior.
  4461. * Misc/WebKitVersionChecks.h: added linked-on-or-after check
  4462. * Misc/WebNSAttributedStringExtras.mm: Moved functionalit into the base class.
  4463. (fileWrapperForElement):
  4464. * Plugins/WebNetscapePluginStream.mm: uses new canLoad functions
  4465. * Plugins/WebPluginContainerCheck.mm: uses new canLoad functions
  4466. (-[WebPluginContainerCheck _isForbiddenFileLoad]):
  4467. * WebView/WebView.mm: make linked-on-or-after check and cache value, exposes SPI
  4468. for registering a scheme as local.
  4469. (-[WebView _commonInitializationWithFrameName:groupName:]):
  4470. (+[WebView registerSchemeAsLocal:]):
  4471. * WebView/WebViewPrivate.h: exposes SPI for registering a scheme as local.
  4472. 2007-03-01 Justin Garcia <justin.garcia@apple.com>
  4473. Reviewed by harrison
  4474. <rdar://problem/4838199>
  4475. Integrate Mail and WebKit paste operations
  4476. Provide subresources used to create the fragment as a
  4477. convenience.
  4478. * WebView/WebHTMLView.mm:
  4479. (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
  4480. Update the calls to the changed method.
  4481. (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
  4482. Give the caller the subresources in the WebArchive and RTF cases.
  4483. * WebView/WebHTMLViewPrivate.h:
  4484. 2007-02-28 Oliver Hunt <oliver@apple.com>
  4485. Reviewed by Maciej.
  4486. Fixes <rdar://problem/5012009>
  4487. When looking for a requested resource we should also check
  4488. the set of manually added subresources if WebCore can't find it.
  4489. * WebView/WebDataSource.mm:
  4490. (-[WebDataSource subresourceForURL:]):
  4491. 2007-02-28 Brady Eidson <beidson@apple.com>
  4492. Reviewed by Beth
  4493. Start using the Thread Safety Check implemented in WebCore for the DOM bindings in the rest of
  4494. the WebKit API instead of the ASSERT_MAIN_THREAD() hack
  4495. * History/WebBackForwardList.mm:
  4496. (-[WebBackForwardList initWithWebCoreBackForwardList:]):
  4497. (-[WebBackForwardList init]):
  4498. (-[WebBackForwardList dealloc]):
  4499. (-[WebBackForwardList finalize]):
  4500. * History/WebHistoryItem.mm:
  4501. (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
  4502. (-[WebHistoryItem dealloc]):
  4503. (-[WebHistoryItem finalize]):
  4504. (-[WebHistoryItem copyWithZone:]):
  4505. (-[WebHistoryItem initWithWebCoreHistoryItem:]):
  4506. * Misc/WebIconDatabase.mm:
  4507. (-[WebIconDatabase init]):
  4508. 2007-02-28 Adele Peterson <adele@apple.com>
  4509. Reviewed by Beth.
  4510. Fix for <rdar://problem/4887423> REGRESSION: search results popup menu strings are not localized
  4511. and <rdar://problem/3517227> accessibility-related strings in WebCore are not localized
  4512. * WebCoreSupport/WebViewFactory.mm:
  4513. (-[WebViewFactory searchMenuNoRecentSearchesText]):
  4514. (-[WebViewFactory searchMenuRecentSearchesText]):
  4515. (-[WebViewFactory searchMenuClearRecentSearchesText]):
  4516. (-[WebViewFactory AXWebAreaText]):
  4517. (-[WebViewFactory AXLinkText]):
  4518. (-[WebViewFactory AXListMarkerText]):
  4519. (-[WebViewFactory AXImageMapText]):
  4520. (-[WebViewFactory AXHeadingText]):
  4521. 2007-02-28 Mark Rowe <mrowe@apple.com>
  4522. Reviewed by Maciej.
  4523. <rdar://problem/5028473> WebKit allocates a huge number of NSCalendarDates while loading history file
  4524. * History/WebHistory.mm:
  4525. (-[WebHistoryPrivate insertItem:atDateIndex:]): Use lastVisitedTimeInterval rather than _lastVisitedDate to avoid allocating NSCalendarDates.
  4526. 2007-02-28 Mark Rowe <mrowe@apple.com>
  4527. Reviewed by Tim Hatcher.
  4528. <rdar://problem/4985524> Problem with Blot and ToT WebKit (decoding WebCoreScrollView)
  4529. References to WebCoreScrollView as a subview of a WebHTMLView may be present in some NIB
  4530. files, so NSUnarchiver must be still able to look up the WebCoreScrollView class.
  4531. * WebKit.exp: Export WebCoreScrollView symbol.
  4532. * WebView/WebHTMLView.mm: Add empty WebCoreScrollView class.
  4533. 2007-02-27 Adam Roben <aroben@apple.com>
  4534. Reviewed by Beth.
  4535. Fix <rdar://problem/5011905> REGRESSION: "Open Link" contextual menu
  4536. item appears twice
  4537. * WebCoreSupport/WebContextMenuClient.mm:
  4538. (fixMenusToSendToOldClients): Remove the "Open Link" item from the
  4539. default menu items array before sending it off to Tiger Mail.
  4540. (WebContextMenuClient::getCustomMenuFromDefaultItems): Set the
  4541. representedObject on every NSMenuItem to match our old (correct) API
  4542. behavior.
  4543. 2007-02-27 Mitz Pettel <mitz@webkit.org>
  4544. Reviewed by Darin.
  4545. - http://bugs.webkit.org/show_bug.cgi?id=12906
  4546. REGRESSION: Canvas is pixelated when the page is opened in a background tab
  4547. * WebCoreSupport/WebChromeClient.mm:
  4548. (WebChromeClient::scaleFactor): If the view is not in a window, use the main
  4549. screen's scale factor as a best guess.
  4550. 2007-02-26 John Sullivan <sullivan@apple.com>
  4551. Reviewed by Darin and Geoff
  4552. * WebView/WebHTMLView.mm:
  4553. (coreGraphicsScreenPointForAppKitScreenPoint):
  4554. This method was copied from WebBrowser, and it was wrong. Fixed it. This only
  4555. affects the Dictionary pop-up panel.
  4556. 2007-02-26 David Hyatt <hyatt@apple.com>
  4557. Update web inspector to account for border-fit.
  4558. Reviewed by darin
  4559. * WebInspector/webInspector/inspector.js:
  4560. 2007-02-26 Geoffrey Garen <ggaren@apple.com>
  4561. Reviewed by Darin Adler.
  4562. Re-arranged things to put deprecated methods at the bottom.
  4563. * Misc/WebCoreStatistics.h:
  4564. * Misc/WebCoreStatistics.mm:
  4565. (+[WebCoreStatistics javaScriptNoGCAllowedObjectsCount]):
  4566. (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
  4567. (+[WebCoreStatistics javaScriptRootObjectClasses]):
  4568. * WebKit.xcodeproj/project.pbxproj:
  4569. 2007-02-26 Maciej Stachowiak <mjs@apple.com>
  4570. Rubber stamped by Mitz.
  4571. - fix layout tests by fixing discrepancy in feature macros.
  4572. * WebInspector/WebInspector.m:
  4573. (-[WebInspector _highlightNode:]):
  4574. * WebKit.xcodeproj/project.pbxproj:
  4575. 2007-02-23 Mitz Pettel <mitz@webkit.org>
  4576. Reviewed by Maciej.
  4577. - fix http://bugs.webkit.org/show_bug.cgi?id=11573
  4578. REGRESSION: pressing option-left arrow while in suggestion popup moves the insertion point to the left
  4579. * WebView/WebHTMLView.mm:
  4580. (-[WebTextCompleteController endRevertingChange:moveLeft:]):
  4581. 2007-02-23 Timothy Hatcher <timothy@apple.com>
  4582. Reviewed by Brady.
  4583. <rdar://problem/5016395> _recursive_pauseNullEventsForAllNetscapePlugins still gone
  4584. * WebView/WebFrameInternal.h: Remove _recursive_pauseNullEventsForAllNetscapePlugins
  4585. * WebView/WebFramePrivate.h: Add _recursive_pauseNullEventsForAllNetscapePlugins
  4586. * WebView/WebFrame.mm: More _recursive_pauseNullEventsForAllNetscapePlugins
  4587. 2007-02-22 Adele Peterson <adele@apple.com>
  4588. Reviewed by John.
  4589. Updating this image to match the one in WebCore.
  4590. * WebKit.vcproj/textAreaResizeCorner.png:
  4591. 2007-02-22 Beth Dakin <bdakin@apple.com>
  4592. Reviewed by Adam.
  4593. Fix for http://bugs.webkit.org/show_bug.cgi?id=12399 REGRESSION:
  4594. Unable to prevent default context menu from appearing. <rdar://
  4595. problem/5017416>
  4596. * WebView/WebHTMLView.mm:
  4597. (-[WebHTMLView menuForEvent:]): Clear the controller's context menu
  4598. before propagating a new context menu event through the DOM.
  4599. 2007-02-22 John Sullivan <sullivan@apple.com>
  4600. Reviewed by Darin
  4601. Removed some unused keyView-related code that I happened to run across.
  4602. Replacement code is now in WebChromeClient.
  4603. * WebCoreSupport/WebFrameBridge.h:
  4604. * WebCoreSupport/WebFrameBridge.mm:
  4605. removed unused stuff
  4606. 2007-02-22 Mitz Pettel <mitz@webkit.org>
  4607. Reviewed by Maciej.
  4608. - fix http://bugs.webkit.org/show_bug.cgi?id=12804
  4609. REGRESSION (r19043-r19063): suggestion popup doesn't work after pressing Option+Esc
  4610. This patch also fixes a bug where using the arrow keys while
  4611. the suggestion popup is open moves the caret instead of changing the
  4612. selection in the popup (for up/down) or accepting the selection and
  4613. closing the popup (for left/right).
  4614. * WebView/WebHTMLView.mm:
  4615. (-[WebHTMLView keyDown:]): Changed to close the popup only if it was open
  4616. before the current event, so that the Option-Esc that opens the popup will
  4617. not close it immediately.
  4618. (-[WebHTMLView _interceptEditingKeyEvent:]): Give the completion popup a
  4619. chance to intercept keydown events.
  4620. (-[WebTextCompleteController popupWindowIsOpen]): Added. Returns whether the
  4621. suggestion popup is open.
  4622. 2007-02-22 Mitz Pettel <mitz@webkit.org>
  4623. Reviewed by Mark (age 21).
  4624. - fix http://bugs.webkit.org/show_bug.cgi?id=12805
  4625. REGRESSION: suggestion popup has a disabled scroll bar
  4626. * WebView/WebHTMLView.mm:
  4627. (-[WebTextCompleteController _buildUI]): Uncommented the call to the NSWindow
  4628. SPI that forces the scroll bar to look active. Also replaced a call to
  4629. the deprecated NSTableView method setAutoresizesAllColumnsToFit: with
  4630. the new method setColumnAutoresizingStyle: to eliminate console spew.
  4631. 2007-02-20 Beth Dakin <bdakin@apple.com>
  4632. Reviewed by Maciej.
  4633. WebKit changes needed to implement writeImage() in WebCore's
  4634. Pasteboard class.
  4635. * Misc/WebKitNSStringExtras.m: Call into WebCore for these
  4636. implementations.
  4637. (-[NSString _webkit_hasCaseInsensitiveSuffix:]):
  4638. (-[NSString _webkit_hasCaseInsensitiveSubstring:]):
  4639. (-[NSString _webkit_filenameByFixingIllegalCharacters]):
  4640. * Misc/WebNSURLExtras.m: Same.
  4641. (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
  4642. * WebCoreSupport/WebContextMenuClient.h: Remove
  4643. copyImageToClipboard()
  4644. * WebCoreSupport/WebContextMenuClient.mm:
  4645. * WebCoreSupport/WebSystemInterface.m: Expose
  4646. GetExtensionsForMIMEType and GetPreferredExtensionForMIMEType to
  4647. WebCore.
  4648. (InitWebCoreSystemInterface):
  4649. * WebCoreSupport/WebViewFactory.mm: New localized string for
  4650. WebCore.
  4651. (-[WebViewFactory copyImageUnknownFileLabel]):
  4652. 2007-02-20 Adam Roben <aroben@apple.com>
  4653. Reviewed by Darin and Anders.
  4654. Update WebKit for WebCore fix for <rdar://problem/4736215> Make
  4655. WebCoreStringTruncator use WebCore types.
  4656. * Misc/WebStringTruncator.m:
  4657. (defaultMenuFont): Moved from WebCoreStringTruncator.mm.
  4658. (core): Added.
  4659. (+[WebStringTruncator centerTruncateString:toWidth:]):
  4660. (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
  4661. (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
  4662. (+[WebStringTruncator widthOfString:font:]):
  4663. * WebKit.xcodeproj/project.pbxproj: Changed WebStringTruncator to ObjC++.
  4664. 2007-02-20 Timothy Hatcher <timothy@apple.com>
  4665. Reviewed by John.
  4666. Fixes the version number returned when using a CFBundleVersion of "420+".
  4667. * WebView/WebView.mm:
  4668. (-[WebView _userVisibleBundleVersionFromFullVersion:]): Check the length up to the first
  4669. non-decimal digit, so this works with versions that have "." and "+".
  4670. 2007-02-20 John Sullivan <sullivan@apple.com>
  4671. Reviewed by Kevin Decker
  4672. - fixed <rdar://problem/4989344> REGRESSION: After clicking on page, Find
  4673. won't find anything if all hits are before the clicked point
  4674. This was caused by a mismatch between WebCore's search code's notion of "selection" and
  4675. WebView's search code's notion of "selection". WebCore's search code was starting
  4676. just before or just after the "selection", which included collapsed, zero-length
  4677. selections. WebKit's search code was only considering non-zero-length selections,
  4678. and would not search all of the content when there was a zero-length selection.
  4679. The fix was to make WebKit ignore the selection. This has a side effect of increasing
  4680. the amount of redundantly-searched content in the case where no matches are found. To
  4681. compensate for that, I special-cased the most common case of WebViews with a single frame,
  4682. to avoid ever searching redundantly in those.
  4683. * WebView/WebView.mm:
  4684. (-[WebView searchFor:direction:caseSensitive:wrap:startInSelection:]):
  4685. remove startHasSelection ivar; special-case WebViews with only one frame; clarify the
  4686. code that leads to redundant searching with comments.
  4687. 2007-02-20 Timothy Hatcher <timothy@apple.com>
  4688. Reviewed by Darin.
  4689. <rdar://problem/4900579> WebKit -finalize methods are not thread-safe; design change needed
  4690. Call WebCoreObjCFinalizeOnMainThread from the initialize method of all the classes
  4691. that have a finalizer that needs called on the main thread. Assert in finalize that we
  4692. are on the main thread.
  4693. * Carbon/CarbonWindowAdapter.m:
  4694. (+[CarbonWindowAdapter initialize]):
  4695. (-[CarbonWindowAdapter finalize]):
  4696. * History/WebBackForwardList.mm:
  4697. (+[WebBackForwardList initialize]):
  4698. (-[WebBackForwardList finalize]):
  4699. * History/WebHistoryItem.mm:
  4700. (+[WebHistoryItem initialize]):
  4701. * Misc/WebElementDictionary.mm:
  4702. (+[WebElementDictionary initialize]):
  4703. (-[WebElementDictionary finalize]):
  4704. * Plugins/WebBaseNetscapePluginStream.m:
  4705. (+[WebBaseNetscapePluginStream initialize]):
  4706. (-[WebBaseNetscapePluginStream finalize]):
  4707. * Plugins/WebBaseNetscapePluginView.mm:
  4708. (+[WebBaseNetscapePluginView initialize]):
  4709. (-[WebBaseNetscapePluginView finalize]):
  4710. * Plugins/WebBasePluginPackage.m:
  4711. (+[WebBasePluginPackage initialize]):
  4712. (-[WebBasePluginPackage finalize]):
  4713. * Plugins/WebNetscapePluginStream.mm:
  4714. (-[WebNetscapePluginStream finalize]):
  4715. * WebCoreSupport/WebEditorClient.mm:
  4716. (+[WebEditCommand initialize]):
  4717. (-[WebEditCommand finalize]):
  4718. * WebCoreSupport/WebFrameBridge.mm:
  4719. (+[WebFrameBridge initialize]):
  4720. (-[WebFrameBridge finalize]):
  4721. * WebCoreSupport/WebFrameLoaderClient.mm:
  4722. (+[WebFramePolicyListener initialize]):
  4723. (-[WebFramePolicyListener finalize]):
  4724. * WebView/WebHTMLView.mm:
  4725. (+[WebHTMLView initialize]):
  4726. (-[WebHTMLView finalize]):
  4727. * WebView/WebView.mm:
  4728. (+[WebViewPrivate initialize]):
  4729. (-[WebViewPrivate finalize]):
  4730. 2007-02-20 Justin Garcia <justin.garcia@apple.com>
  4731. Reviewed by darin
  4732. <rdar://problem/4838199>
  4733. Integrate Mail and WebKit paste operations
  4734. Mail overrides paste: because it has different
  4735. preferred pasteboard types, but it should use our
  4736. fragment creation code.
  4737. * WebView/WebHTMLView.mm:
  4738. (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
  4739. Moved fragment creation code into a new method.
  4740. (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:]):
  4741. Moved fragment creation code here.
  4742. * WebView/WebHTMLViewPrivate.h: Exposed
  4743. _documentFragmentFromPasteboard:forType:inContext: as SPI.
  4744. 2007-02-20 John Sullivan <sullivan@apple.com>
  4745. Reviewed by Tim Hatcher
  4746. * Misc/WebKitNSStringExtras.h:
  4747. * Misc/WebKitNSStringExtras.m:
  4748. removed _webkit_userVisibleBundleVersionFromFullVersion; we decided to do this without
  4749. adding SPI for it.
  4750. * WebView/WebView.mm:
  4751. (-[WebView _userVisibleBundleVersionFromFullVersion:]):
  4752. new method, moved here from WebKitNSStringExtras, and is now a WebView method rather than
  4753. an NSString method
  4754. (-[WebView _computeUserAgent]):
  4755. updated for method signature change
  4756. 2007-02-20 Timothy Hatcher <timothy@apple.com>
  4757. Reviewed by John.
  4758. * Misc/WebKitNSStringExtras.h: Added _webkit_userVisibleBundleVersionFromFullVersion.
  4759. * Misc/WebKitNSStringExtras.m:
  4760. (-[NSString _webkit_userVisibleBundleVersionFromFullVersion]): If the version is 4 digits long or longer,
  4761. then the first digit represents the version of the OS. Our user agent string should not
  4762. include this first digit, so strip it off and report the rest as the version.
  4763. * WebView/WebView.mm:
  4764. (-[WebView _computeUserAgent]): Call _webkit_userVisibleBundleVersionFromFullVersion on the CFBundleVersion.
  4765. 2007-02-20 Darin Adler <darin@apple.com>
  4766. Reviewed by Anders.
  4767. * Plugins/WebPluginController.mm: (-[WebPluginController pluginView:receivedResponse:]):
  4768. Call cancelMainResourceLoad on the document loader instead of the frame loader.
  4769. 2007-02-20 Anders Carlsson <acarlsson@apple.com>
  4770. Reviewed by Mitz.
  4771. <rdar://problem/5009627> REGRESSION: Repro overrelease of WebView in failed load, seen in DumpRenderTree
  4772. * WebView/WebView.mm:
  4773. (-[WebView _removeObjectForIdentifier:]):
  4774. Return early if the identifier can't be found in the map.
  4775. 2007-02-19 Timothy Hatcher <timothy@apple.com>
  4776. Reviewed by Darin Adler.
  4777. <rdar://problem/4841078> Remove the Mail.app editable link clicking behavior workaround when it is no longer needed
  4778. * WebKit.xcodeproj/project.pbxproj:
  4779. * WebView/WebView.mm:
  4780. (-[WebView setPreferences:]):
  4781. 2007-02-19 Anders Carlsson <acarlsson@apple.com>
  4782. Reviewed by Adam.
  4783. <rdar://problem/4868242>
  4784. http://bugs.webkit.org/show_bug.cgi?id=12670
  4785. REGRESSION: Many 3rd Party Apps crash in WebCore::DocumentLoader::frameLoader() (12670)
  4786. Bring back the semantic we had that a web view should be retained for as long as something is loading. Use the identifier
  4787. to object hash map for this.
  4788. * WebView/WebView.mm:
  4789. (-[WebView _addObject:forIdentifier:]):
  4790. (-[WebView _removeObjectForIdentifier:]):
  4791. 2007-02-18 Brady Eidson <beidson@apple.com>
  4792. Reviewed by Oliver
  4793. <rdar://problem/4985321> - Can't edit templates for Web Gallery/Web Page Export in Aperture
  4794. * Misc/WebKitVersionChecks.h: Add a #define for this APERTURE quirk
  4795. * WebView/WebView.mm:
  4796. (-[WebView _shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
  4797. If the current app is Aperture and it was linked against Tiger WebKit, always allow selection change
  4798. 2007-02-17 Lars Knoll <lars@trolltech.com>
  4799. Reviewed by Maciej.
  4800. Additional coding by Maciej, additional review by Oliver.
  4801. Added implementations for the new callbacks in EditorClient
  4802. and ChromeClient (basically moved from WebFrameBridge).
  4803. Cleaned up some code paths that are not called anymore
  4804. and done fully inside WebCore now.
  4805. * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
  4806. * Misc/WebElementDictionary.mm:
  4807. * Misc/WebNSAttributedStringExtras.mm:
  4808. * Plugins/WebBaseNetscapePluginView.mm:
  4809. (-[WebBaseNetscapePluginView getVariable:value:]):
  4810. * Plugins/WebNetscapePluginEmbeddedView.mm:
  4811. * Plugins/WebNetscapePluginStream.mm:
  4812. * Plugins/WebPluginContainerCheck.mm:
  4813. * WebCoreSupport/WebChromeClient.h:
  4814. * WebCoreSupport/WebChromeClient.mm:
  4815. (WebChromeClient::shouldInterruptJavaScript):
  4816. * WebCoreSupport/WebEditorClient.h:
  4817. * WebCoreSupport/WebEditorClient.mm:
  4818. (WebEditorClient::shouldChangeSelectedRange):
  4819. * WebCoreSupport/WebFrameBridge.mm:
  4820. (-[WebFrameBridge finishInitializingWithPage:frameName:frameView:ownerElement:]):
  4821. (-[WebFrameBridge fini]):
  4822. * WebCoreSupport/WebFrameLoaderClient.mm:
  4823. * WebView/WebArchiver.mm:
  4824. * WebView/WebFrame.mm:
  4825. (core):
  4826. (kit):
  4827. (-[WebFrame _updateBackground]):
  4828. * WebView/WebFrameInternal.h:
  4829. * WebView/WebFrameView.mm:
  4830. * WebView/WebHTMLRepresentation.mm:
  4831. * WebView/WebHTMLView.mm:
  4832. (-[WebHTMLView _updateMouseoverWithEvent:]):
  4833. (-[WebHTMLView _isEditable]):
  4834. (-[WebHTMLView validateUserInterfaceItem:]):
  4835. (-[WebHTMLView maintainsInactiveSelection]):
  4836. (-[WebHTMLView scrollWheel:]):
  4837. (-[WebHTMLView acceptsFirstMouse:]):
  4838. (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
  4839. (-[WebHTMLView cut:]):
  4840. (-[WebHTMLView paste:]):
  4841. (-[WebHTMLView selectedAttributedString]):
  4842. * WebView/WebScriptDebugDelegate.mm:
  4843. * WebView/WebView.mm:
  4844. (-[WebView _dashboardRegions]):
  4845. (-[WebView setProhibitsMainFrameScrolling:]):
  4846. (-[WebView _setInViewSourceMode:]):
  4847. (-[WebView _inViewSourceMode]):
  4848. (-[WebView shouldClose]):
  4849. (-[WebView setEditable:]):
  4850. 2007-02-18 Oliver Hunt <oliver@apple.com>
  4851. Reviewed by Adam.
  4852. Moving the drag initiation logic to WebCore.
  4853. The redundant code in webkit will be moved out in a later patch.
  4854. * WebCoreSupport/WebDragClient.h:
  4855. * WebCoreSupport/WebDragClient.mm:
  4856. (getTopHTMLView):
  4857. Helper function
  4858. (WebDragClient::willPerformDragSourceAction):
  4859. (WebDragClient::startDrag):
  4860. (WebDragClient::createDragImageForLink):
  4861. Implemented new DragClient methods
  4862. (WebDragClient::declareAndWriteDragImage):
  4863. Helper function for the Mac to allow new drag and drop
  4864. code to match behaviour
  4865. * WebView/WebHTMLView.mm:
  4866. (-[WebHTMLView _dragImageForURL:withLabel:]):
  4867. (-[WebHTMLView _dragImageForLinkElement:]):
  4868. Refactoring old _dragImageForLinkElement function so that
  4869. the link drag image can be created with just a URL and label,
  4870. rather than requiring the original element
  4871. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
  4872. Removed logic that is no longer necessary
  4873. (-[WebHTMLView _mouseDownEvent]):
  4874. The WebDragClient may need the original mouseDownEvent of a drag when initiating
  4875. a drag
  4876. * WebView/WebHTMLViewInternal.h:
  4877. Declaring _mouseDownEvent
  4878. * WebView/WebHTMLViewPrivate.h:
  4879. Declaring _dragImageForURL
  4880. 2007-02-16 John Sullivan <sullivan@apple.com>
  4881. Reviewed by Tim Hatcher
  4882. - fixed <rdar://problem/4811446> "Check Grammar" checkbox in Spelling+Grammar window doesn't
  4883. live update with menu change in WebKit
  4884. * WebView/WebView.mm:
  4885. (-[WebView setGrammarCheckingEnabled:]):
  4886. Use sekrit AppKit knowledge to tell NSSpellChecker about the change, since there's no API
  4887. for this yet. Also restructured a little to avoid extra work when the value hasn't changed.
  4888. 2007-02-15 Brady Eidson <beidson@apple.com>
  4889. Reviewed by Adam
  4890. Save scroll state for back/forward navigation in FrameLoader, not the client
  4891. * WebCoreSupport/WebFrameLoaderClient.h: Renamed the save/restore methods
  4892. * WebCoreSupport/WebFrameLoaderClient.mm:
  4893. (WebFrameLoaderClient::saveViewStateToItem): Save viewstate only
  4894. (WebFrameLoaderClient::restoreViewState): Restore viewstate only
  4895. 2007-02-14 Alexey Proskuryakov <ap@webkit.org>
  4896. Reviewed by Darin.
  4897. http://bugs.webkit.org/show_bug.cgi?id=12643
  4898. NPN_Status is using latin-1 encoding for the message instead of UTF-8
  4899. * Plugins/WebBaseNetscapePluginView.mm:
  4900. (-[WebBaseNetscapePluginView status:]): Check for possible conversion failure.
  4901. 2007-02-13 Oliver Hunt <oliver@apple.com>
  4902. Reviewed by John.
  4903. Modify entry point ASSERTs for dragging functions to allow for the case
  4904. where a load has occurred mid-drag. The load may detach the HTMLView
  4905. from the WebView so it is no longer possible to check _isTopHTMLView.
  4906. The assertion changes match that of revision 14897 which fixed the
  4907. more common case ([WebHTMLView draggedImage:endedAt:operation:])
  4908. It's also necessary to check for a null Page now prior to accessing
  4909. the DragController, which is necessary in all of these methods.
  4910. See rdar://problem/4994870
  4911. * WebView/WebHTMLView.mm:
  4912. (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
  4913. (-[WebHTMLView draggedImage:movedTo:]):
  4914. (-[WebHTMLView draggedImage:endedAt:operation:]):
  4915. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
  4916. 2007-02-13 Alexey Proskuryakov <ap@webkit.org>
  4917. Reviewed by Maciej.
  4918. http://bugs.webkit.org/show_bug.cgi?id=12643
  4919. NPN_Status is using latin-1 encoding for the message instead of UTF-8
  4920. * Plugins/WebBaseNetscapePluginView.mm:
  4921. (-[WebBaseNetscapePluginView status:]): Use kCFStringEncodingUTF8.
  4922. 2007-02-13 Mark Rowe <mrowe@apple.com>
  4923. Reviewed by Timothy Hatcher.
  4924. Fix http://bugs.webkit.org/show_bug.cgi?id=12745
  4925. Bug 12745: REGRESSION: Webkit will not load a plugin that Safari can load (symbol missing _objc_msgSend_fpret)
  4926. Treat libobjc as a sub-library of WebKit in Debug/Release so that plugins and applications linked against an
  4927. umbrella framework version of WebKit that expect to find libobjc symbols in WebKit can do so.
  4928. * WebKit.xcodeproj/project.pbxproj:
  4929. 2007-02-12 Kevin McCullough <kmccullough@apple.com>
  4930. Reviewed by .
  4931. - reverting change to not cause regressions and performance problems.
  4932. * Misc/WebNSAttributedStringExtras.mm:
  4933. (fileWrapperForElement):
  4934. 2007-02-12 Darin Adler <darin@apple.com>
  4935. Reviewed by Oliver.
  4936. - fix http://bugs.webkit.org/show_bug.cgi?id=12677
  4937. <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm
  4938. a clause in kotoeri (12677)
  4939. - fix http://bugs.webkit.org/show_bug.cgi?id=12596
  4940. <rdar://problem/4794346> REGRESSION: Tab key shifts form field focus instead of
  4941. navigating prediction window (12596)
  4942. - fix http://bugs.webkit.org/show_bug.cgi?id=10010
  4943. <rdar://problem/4822935> REGRESSION: Pressing Return with unconfirmed text in
  4944. Hangul inserts carriage return (10010)
  4945. - fix http://bugs.webkit.org/show_bug.cgi?id=12531
  4946. <rdar://problem/4975126> REGRESSION: Inline text input types repeated keys in
  4947. latest nightly (r19336) (12531)
  4948. - fix http://bugs.webkit.org/show_bug.cgi?id=12539
  4949. <rdar://problem/4975130> REGRESSION: Pressing Backspace while in inline input
  4950. area moves to the previous page in history (12539)
  4951. * WebCoreSupport/WebEditorClient.h:
  4952. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::markedTextAbandoned):
  4953. Added.
  4954. * WebView/WebHTMLView.mm:
  4955. (-[WebHTMLView menuForEvent:]): Added explicit constructor needed now that the
  4956. function takes a const&.
  4957. (-[WebHTMLView becomeFirstResponder]): Removed fake event code, no longer needed
  4958. since advanceFocus now works fine with 0 for a DOM event.
  4959. (-[WebHTMLView _expandSelectionToGranularity:]): Changed to use the normal
  4960. selection controller function instead of selectRange.
  4961. (-[WebHTMLView insertTab:]): Changed to call bottleneck that receives the DOM
  4962. event.
  4963. (-[WebHTMLView insertBacktab:]): Ditto.
  4964. (-[WebHTMLView insertNewline:]): Ditto.
  4965. (-[WebHTMLView insertLineBreak:]): Ditto.
  4966. (-[WebHTMLView insertParagraphSeparator:]): Ditto.
  4967. (-[WebHTMLView insertNewlineIgnoringFieldEditor:]): Ditto.
  4968. (-[WebHTMLView insertTabIgnoringFieldEditor:]): Ditto.
  4969. (-[WebHTMLView yank:]): Updated to call Editor directly since the insertText
  4970. code now works via a text input event which is not what we want for paste-like
  4971. things such as yank.
  4972. (-[WebHTMLView yankAndSelect:]): Ditto.
  4973. (-[WebHTMLView selectToMark:]): Changed to use the normal selection controller
  4974. function instead of selectRange, which also allows us to remove the ObjC exception
  4975. handling code.
  4976. (-[WebHTMLView swapWithMark:]): Ditto.
  4977. (-[WebHTMLView transpose:]): Ditto.
  4978. (-[WebHTMLView unmarkText]): Since this is one of the calls back from the input
  4979. manager, added code to set the "event was handled" flag. Moved the actual work
  4980. into the Editor class in WebCore and just call that from here.
  4981. (-[WebHTMLView _selectRangeInMarkedText:]): Changed to use the normal selection
  4982. controller function instead of selectRange.
  4983. (-[WebHTMLView setMarkedText:selectedRange:]): Since this is one of the calls
  4984. back from the input manager, added code to set the "event was handled" flag.
  4985. Also changed the ignoreMarkedTextSelectionChange to use the flag over on the
  4986. WebCore side, since we moved it there and to call selectMarkedText over on
  4987. the WebCore side too.
  4988. (-[WebHTMLView doCommandBySelector:]): Added special cases for newline and tab
  4989. selectors so that the event is passed along. These selectors are special because
  4990. they are ones that turn into text input events.
  4991. (-[WebHTMLView _discardMarkedText]): Moved the body of this function into the
  4992. Editor class in WebCore and just call that from here.
  4993. (-[WebHTMLView insertText:]): Added code to send a text input event instead of
  4994. calling the editor to do text insertion. The insertion is then done in the
  4995. default handler for the text input event.
  4996. (-[WebHTMLView _insertNewlineWithEvent:isLineBreak:]): Added. Sends a text
  4997. input event.
  4998. (-[WebHTMLView _insertTabWithEvent:isBackTab:]): Ditto.
  4999. (-[WebHTMLView _updateSelectionForInputManager]): Changed to use the
  5000. ignoreMarkedTextSelectionChange flag in Editor now that the one here is gone.
  5001. * WebView/WebHTMLViewInternal.h: Remove ignoreMarkedTextSelectionChange field.
  5002. * WebView/WebView.mm: (-[WebView setSelectedDOMRange:affinity:]): Changed to
  5003. use the normal selection controller function instead of selectRange.
  5004. 2007-02-11 Sam Weinig <sam@webkit.org>
  5005. Reviewed by Mark.
  5006. Switch the initial value of box-sizing property from "border-box" to "content-box".
  5007. * WebInspector/webInspector/inspector.js:
  5008. 2007-02-10 Mitz Pettel <mitz@webkit.org>
  5009. Reviewed by Maciej.
  5010. - fix http://bugs.webkit.org/show_bug.cgi?id=11847
  5011. REGRESSION (SearchField): Dragging to select in the Web Inspector's search fields drags the inspector window
  5012. * WebInspector/webInspector/inspector.css: Added the search field to the
  5013. undraggable dashboard-region.
  5014. 2007-02-09 Kevin Decker <kdecker@apple.com>
  5015. Reviewed by Darin & Maciej.
  5016. Fixed: <rdar://problem/4930688> REGRESSION: missing images when reloading webarchives (11962)
  5017. * WebCoreSupport/WebFrameLoaderClient.mm:
  5018. (WebFrameLoaderClient::canUseArchivedResource): The bug here is that because a reload sets a cache
  5019. policy of NSURLRequestReloadIgnoringCacheData (rightfully so), this method was refusing to load
  5020. subresources in WebArchives. It's OK to use archive subresources for the NSURLRequestReloadIgnoringCacheData
  5021. cache policy because we're not worried about the actual contents of a WebArchive changing on disk.
  5022. 2007-02-09 Justin Garcia <justin.garcia@apple.com>
  5023. Reviewed by darin
  5024. <rdar://problem/4975120>
  5025. REGRESSION: double-cursor after switching window away/back (11770)
  5026. <http://bugs.webkit.org/show_bug.cgi?id=11328>
  5027. Gmail Editor: Caret can simultaneously appear in both the TO: and message body fields
  5028. * WebCoreSupport/WebFrameBridge.mm: Removed unused methods.
  5029. * WebView/WebHTMLView.mm: Ditto.
  5030. (-[WebHTMLView _web_firstResponderCausesFocusDisplay]): Don't
  5031. appear focused if a descendant view is firstResponder.
  5032. (-[WebHTMLView _updateActiveState]): Removed the check for a BOOL
  5033. that was always false.
  5034. * WebView/WebHTMLViewInternal.h: Removed a BOOL that's always false.
  5035. 2007-02-09 Beth Dakin <bdakin@apple.com>
  5036. Reviewed by Darin.
  5037. Fix for <rdar://problem/4674537> REGRESSION: Adobe Acrobat 8 - Text
  5038. blinks when mouse is moved, and is invisible otherwise
  5039. Allow quirk if the Application was linked before 3.0 and if the
  5040. application is Adobe Acrobat.
  5041. * Misc/WebKitVersionChecks.h:
  5042. * WebView/WebView.mm:
  5043. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  5044. 2007-02-09 Timothy Hatcher <timothy@apple.com>
  5045. Reviewed by Brady.
  5046. * WebKit.exp: Add WebBaseNetscapePluginView to the export list.
  5047. 2007-02-09 John Sullivan <sullivan@apple.com>
  5048. Reviewed by Beth
  5049. - WebKit part of fix for radar 4939636, problems with context menu items and binaries linked
  5050. against WebKit 2.0.
  5051. * WebKit.xcodeproj/project.pbxproj:
  5052. Changed DYLIB_CURRENT_VERSION to 2 (was 1)
  5053. * Misc/WebKitVersionChecks.h:
  5054. Added constant WEBKIT_FIRST_VERSION_WITH_3_0_CONTEXT_MENU_TAGS, which is 2 but in the weird
  5055. format that these version checks use.
  5056. * WebView/WebUIDelegatePrivate.h:
  5057. Tweaked comments; included the old values for three tags for context menu items that changed
  5058. from SPI to API in 3.0; renamed WEBMENUITEMTAG_SPI_START to WEBMENUITEMTAG_WEBKIT_3_0_SPI_START
  5059. for clarity, and bumped its value to avoid conflict with the three old values
  5060. * WebCoreSupport/WebContextMenuClient.mm:
  5061. (isAppleMail):
  5062. new helper function that checks the bundle identifier
  5063. (fixMenusToSendToOldClients):
  5064. Removed return value for clarity; now checks linked-on version and also makes special case
  5065. for Mail; now replaces three API tags with their old SPI values for clients that linked
  5066. against old WebKit version, in addition to replacing new API with WebMenuItemTagOther for
  5067. items that had no specific tag before.
  5068. (fixMenusReceivedFromOldClients):
  5069. Removed return value for clarity; removed defaultMenuItems parameter because it's no longer
  5070. necessary; removed code that tried to recognize menus that got confused by the SPI -> API
  5071. change (we now pass the old SPI values to these clients to avoid confusing them); now
  5072. restores the tags for the items whose tags were replaced in fixMenusToSendToOldClients
  5073. (this used to restore the tags of the default items rather than the new items, which was
  5074. incorrect but happened to work since the clients we tested were using the objects from the
  5075. default items array in their new items array)
  5076. (WebContextMenuClient::getCustomMenuFromDefaultItems):
  5077. Updated to account for the removed return values for the two fix-up methods; moved the
  5078. autorelease of newItems here, which is clearer and was the source of a leak before.
  5079. 2007-02-08 Kevin McCullough <KMcCullough@apple.com>
  5080. Reviewed by
  5081. - fixing a build breakage.
  5082. * Misc/WebNSAttributedStringExtras.mm:
  5083. (fileWrapperForElement):
  5084. 2007-02-07 Charles Ying <charles_ying@yahoo.com>
  5085. Reviewed by Adam.
  5086. Code suggestion by aroben
  5087. Fix http://bugs.webkit.org/show_bug.cgi?id=12688
  5088. REGRESSION (r19469): ASSERT when right clicking on hyperlinks! in TOT webkit
  5089. * WebCoreSupport/WebContextMenuClient.mm:
  5090. (fixMenusReceivedFromOldClients):
  5091. - fixMenusReceivedFromOldClients was hitting an ASSERT incorrectly
  5092. because it could not match [item title] to any of the contentMenuItemTags
  5093. using pointer comparison ==. Instead, it needs to do a string comparison
  5094. between [item title] and the various contentMenuItemTags using
  5095. isEqualToString instead of ==. You would encounter this whenever the
  5096. context menu was activated, e.g., from a hyperlink right click (or
  5097. control click).
  5098. 2007-02-07 Anders Carlsson <acarlsson@apple.com>
  5099. Reviewed by Maciej.
  5100. Move shouldInterruptJavaScript to the Chrome.
  5101. * WebCoreSupport/WebChromeClient.h:
  5102. * WebCoreSupport/WebChromeClient.mm:
  5103. (WebChromeClient::shouldInterruptJavaScript):
  5104. * WebCoreSupport/WebFrameBridge.mm:
  5105. 2007-02-07 John Sullivan <sullivan@apple.com>
  5106. Reviewed by Kevin Decker
  5107. - fixed all places in WebKit where _web_userVisibleString was used where
  5108. _web_originalDataAsString should have been used instead.
  5109. * History/WebURLsWithTitles.m:
  5110. (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]):
  5111. use _web_originalDataAsString when writing since these aren't displayed to the user
  5112. (+[WebURLsWithTitles URLsFromPasteboard:]):
  5113. use _web_URLWithDataAsString when reading, to match what we used when writing
  5114. * Misc/WebNSPasteboardExtras.mm:
  5115. (-[NSPasteboard _web_writeURL:andTitle:types:]):
  5116. use _web_originalDataAsString when writing the NSURL type; continue using
  5117. _web_userVisibleString when writing the plain text type
  5118. * WebView/WebHTMLView.mm:
  5119. (-[WebHTMLView _documentFragmentWithPaths:]):
  5120. added comment about why _web_userVisibleString is appropriate here
  5121. (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
  5122. use _web_originalDataAsString when setting the href attribute of an anchor tag
  5123. 2007-02-07 David Harrison <harrison@apple.com>
  5124. Reviewed by Adam.
  5125. <rdar://problem/4943650> REGRESSION: insertion point blink redraws entire web page, making everything slow
  5126. Problem is that AppKit recently changed NSControl to trigger a full redraw if the control has a focus ring.
  5127. WebHTMLView is a subclass of NSControl, but the focus ring type was the default value, though we actually
  5128. draw no focus ring. Fix is to formally set our focus ring type.
  5129. * WebView/WebHTMLView.mm:
  5130. (-[WebHTMLView initWithFrame:]):
  5131. Send [self setFocusRingType:NSFocusRingTypeNone].
  5132. 2007-02-07 John Sullivan <sullivan@apple.com>
  5133. Undid changes that I hadn't intended to check in
  5134. * WebView/WebHTMLView.mm:
  5135. (-[WebHTMLView _documentFragmentWithPaths:]):
  5136. (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
  5137. 2007-02-07 John Sullivan <sullivan@apple.com>
  5138. Reviewed by Ollie and Geoff
  5139. - fixed <rdar://problem/4982345> KURL::createCFURL leak inside -[WebFrameBridge startDraggingImage...]
  5140. reported by buildbot
  5141. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  5142. don't retain the imageURL we pass to the drag controller -- it's just automagically
  5143. converted to a KURL anyway
  5144. 2007-02-07 John Sullivan <sullivan@apple.com>
  5145. Reviewed by Darin
  5146. - fixed <rdar://problem/4974420> REGRESSION: Dragging a saved image into the browser window
  5147. displays a error (No File exists at the address "null") (12662)
  5148. * WebCoreSupport/WebPasteboardHelper.mm:
  5149. (WebPasteboardHelper::urlFromPasteboard):
  5150. use _web_originalDataAsString instead of _web_userVisibleString, since _web_userVisibleString
  5151. can return a string with non-ASCII characters -- suitable for display but not for code
  5152. 2007-02-07 John Sullivan <sullivan@apple.com>
  5153. Reviewed by Darin
  5154. - added some clarity to some menu-handling shenanigans
  5155. * WebCoreSupport/WebContextMenuClient.mm:
  5156. (fixMenusToSendToOldClients):
  5157. renamed from fixMenusForOldClients; added comments, FIXME, and assertion
  5158. (fixMenusReceivedFromOldClients):
  5159. renamed from fixMenusFromOldClients; added comments, FIXME, and assertion
  5160. (WebContextMenuClient::getCustomMenuFromDefaultItems):
  5161. updated for name changes
  5162. 2007-02-06 Kevin Decker <kdecker@apple.com>
  5163. Fixed: <rdar://problem/4976681> ASSERTION failure on quit @ talkcrunch.com in _NPN_ReleaseObject
  5164. Reviewed by Anders.
  5165. * Plugins/WebPluginDatabase.m:
  5166. (+[WebPluginDatabase sharedDatabase]): Removed NSApplicationWillTerminateNotification observer and thus
  5167. also removed code that would unload the entire plug-in database when receiving that notification.
  5168. The bug here was that this notification callback would happen first before anything else thus unloading
  5169. plug-ins and releasing plug-in memory. That was crash prone because the JavaScriptCore collector would at
  5170. a later time attempt to release its CInstance references (references that point to plug-in memory)
  5171. without knowing WebKit already unloaded the plug-in out from underneath it. The WebPluginDatabase simply
  5172. does not have enough context to make this decision.
  5173. * WebView/WebView.mm: Added two statics: applicationIsTerminating, pluginDatabaseClientCount.
  5174. (+[WebView initialize]): Added NSApplicationWillTerminateNotification observer.
  5175. (+[WebView _applicationWillTerminate]): Added.
  5176. (-[WebView _close]): WebKit has both a global plug-in database and a separate, per WebView plug-in database.
  5177. We need to release both sets of plug-ins because Netscape plug-ins have "destructor functions" that should be
  5178. called when the browser unloads the plug-in. These functions can do important things, such as closing/deleting
  5179. files so it is important to ensure that they are properly called when the application terminates.
  5180. The new change is that on app shutdown, we unload WebKit's global plug-in database if and only if the last WebView
  5181. was closed. To do so otherwise would unload plug-ins out from underneath other WebViews.
  5182. 2007-02-06 Darin Adler <darin@apple.com>
  5183. Reviewed by John Sullivan.
  5184. - fix http://bugs.webkit.org/show_bug.cgi?id=11080
  5185. <rdar://problem/4826648> REGRESSION: Incorrect vertical positioning of Safari
  5186. status bar text containing @ character (11080)
  5187. * Misc/WebKitNSStringExtras.m:
  5188. (canUseFastRenderer): Fix code that mistakenly used the slow renderer for strings
  5189. that have a direction of "other neutral", which includes the "@" character.
  5190. (-[NSString _web_drawAtPoint:font:textColor:]): Add code to make the baseline of
  5191. the text in the status bar right. AppKit's rule for rounding is complicated enough
  5192. that this is obviously not perfectly correct, but it does make both code paths
  5193. use the same baseline in all the places this is currently used in AppKit.
  5194. 2007-02-06 Darin Adler <darin@apple.com>
  5195. Spotted by Steve F.
  5196. * Misc/WebNSURLExtras.m:
  5197. (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
  5198. Fix obvious logic mistake I introduced back in revision 8255.
  5199. I can't see how to exercise this code path, but I also can't
  5200. bear to leave this obviously-broken code as-is.
  5201. 2007-02-05 David Kilzer <ddkilzer@webkit.org>
  5202. Reviewed by Darin.
  5203. http://bugs.webkit.org/show_bug.cgi?id=7266
  5204. Webarchive format saves duplicate WebSubresources to .webarchive file
  5205. Tests: webarchive/test-duplicate-resources.html
  5206. webarchive/test-frameset.html
  5207. * WebView/WebArchiver.mm:
  5208. (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]): Use an NSMutableSet to prevent
  5209. duplicate subresources from being added to the webarchive.
  5210. 2007-02-06 Mark Rowe <mrowe@apple.com>
  5211. Roll out incomplete support for font-stretch (r19350) at Dave Hyatt's request.
  5212. See http://bugs.webkit.org/show_bug.cgi?id=12530#c9 for more info.
  5213. * WebInspector/webInspector/inspector.js:
  5214. * WebView/WebHTMLView.mm:
  5215. (-[WebHTMLView _addToStyle:fontA:fontB:]):
  5216. 2007-02-05 Beth Dakin <bdakin@apple.com>
  5217. Reviewed by Adam.
  5218. Fix for <rdar://problem/4975161> REGRESSION: With BumperCar 2.1.1,
  5219. the contextual menu fails to appear when I ctrl-click on page
  5220. * WebCoreSupport/WebContextMenuClient.mm:
  5221. (WebContextMenuClient::getCustomMenuFromDefaultItems): If the
  5222. delegate does not respond to contextMenuItemsForElement, return the
  5223. default menu instead of nil.
  5224. 2007-02-01 Geoffrey Garen <ggaren@apple.com>
  5225. Reviewed by Maciej Stachowiak.
  5226. Added support for selectively ignoring WebCore::Node leaks during layout
  5227. tests, so that we can ignore known leaks in other components.
  5228. * Misc/WebCoreStatistics.h:
  5229. * Misc/WebCoreStatistics.mm:
  5230. (+[WebCoreStatistics startIgnoringWebCoreNodeLeaks]):
  5231. (+[WebCoreStatistics stopIgnoringWebCoreNodeLeaks]):
  5232. 2007-02-01 Nicholas Shanks <webkit@nickshanks.com>
  5233. Reviewed by Mark.
  5234. Add support for CSS2 font-stretch property.
  5235. * WebInspector/webInspector/inspector.js:
  5236. * WebView/WebHTMLView.mm:
  5237. (-[WebHTMLView _addToStyle:fontA:fontB:]):
  5238. 2007-02-01 Maciej Stachowiak <mjs@apple.com>
  5239. Reviewed by Adam.
  5240. <rdar://problem/4730469> REGRESSION: Assertion failure in -[WebDataSource(WebInternal) _bridge] when forwarding message
  5241. * WebView/WebDataSource.mm:
  5242. (-[WebDataSource subresources]): Check for being uncommitted and return emtpy result.
  5243. (-[WebDataSource subresourceForURL:]): ditto
  5244. 2007-01-31 Oliver Hunt <oliver@apple.com>
  5245. Reviewed by Adam.
  5246. Migrating methods to WebCore
  5247. * WebCoreSupport/WebFrameBridge.mm:
  5248. * WebView/WebHTMLView.mm:
  5249. * WebView/WebHTMLViewPrivate.h:
  5250. 2007-01-31 Anders Carlsson <acarlsson@apple.com>
  5251. Reviewed by Maciej.
  5252. <rdar://problem/4886776>
  5253. REGRESSION: After opening a web archive, location shows the actual URL, not the webarchive file
  5254. "Revert" the change done in 13734.
  5255. * WebView/WebHTMLRepresentation.mm:
  5256. (-[WebHTMLRepresentation loadArchive]):
  5257. Don't do a new load here, as this would cancel the current load and call the resource load
  5258. delegate's didFailLoadingWithError: method. Instead, call continueLoadWithData.
  5259. 2007-02-01 Nikolas Zimmermann <zimmermann@kde.org>
  5260. Reviewed by Maciej.
  5261. Fix run-pageloadtest to actually work again.
  5262. * Misc/WebNSWindowExtras.m:
  5263. (+[NSWindow _webkit_displayThrottledWindows]):
  5264. 2007-01-31 Adele Peterson <adele@apple.com>
  5265. Reviewed by Darin.
  5266. WebKit part of fix for <rdar://problem/4521461> REGRESSION: when keyPress event changes form focus, inserted key goes to wrong control
  5267. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleKeyPress): Instead of using the selected frame, use the
  5268. frame for the target of the keyboard event. Also, don't do the canEdit check here, since the target's frame might not
  5269. have a selection at this point. Do the canEdit check within Editor::insertText, where we determine which selection to use
  5270. for inserting text.
  5271. * WebView/WebEditingDelegatePrivate.h: Added forward declaration of DOMHTMLElement. This is needed after reordering includes in WebEditorClient.mm.
  5272. 2007-01-31 Alice Liu <alice.liu@apple.com>
  5273. Reviewed by Tim Hatcher.
  5274. Turning an accidental API change to an SPI change
  5275. * WebView/WebEditingDelegate.h:
  5276. * WebView/WebEditingDelegatePrivate.h:
  5277. move some declarations into private header.
  5278. 2007-01-31 Darin Adler <darin@apple.com>
  5279. - fix build
  5280. * ForwardingHeaders/wtf/ListHashSet.h: Added.
  5281. 2007-01-31 Maciej Stachowiak <mjs@apple.com>
  5282. Reviewed by Anders.
  5283. - related fix for <rdar://problem/4964407> REGRESSION: Mail hangs when replying, forwarding , or creating a new message
  5284. * WebView/WebFrame.mm:
  5285. (-[WebFrame loadArchive:]): This method also needs to add the lame WebDataRequest property or other things, like
  5286. Mail Contents of Page, break.
  5287. 2007-01-31 Maciej Stachowiak <mjs@apple.com>
  5288. Reviewed by Eric.
  5289. - add back no-op version of silly method so that shipping Safari can still run the PLT
  5290. * Misc/WebNSWindowExtras.m:
  5291. (-[NSWindow _webkit_displayThrottledWindows]):
  5292. 2007-01-31 Mark Rowe <mrowe@apple.com>
  5293. More build fixing.
  5294. * Misc/WebKitLogging.h: Use !defined() rather than !.
  5295. * Plugins/WebNetscapePluginStream.h: Remove #if __cplusplus as this file is only included from Obj-C++ files.
  5296. * WebView/WebHTMLView.mm:
  5297. (-[WebHTMLView _lookUpInDictionaryFromMenu:]): Use #ifdef rather than #if.
  5298. * WebView/WebView.mm:
  5299. (-[WebView isGrammarCheckingEnabled]): Ditto.
  5300. 2007-01-31 Mark Rowe <mrowe@apple.com>
  5301. Build fix.
  5302. * WebView/WebView.mm:
  5303. (-[WebView initWithFrame:frameName:groupName:]):
  5304. 2007-01-31 Mark Rowe <mrowe@apple.com>
  5305. Reviewed by Oliver.
  5306. Enable -Wundef in WebKit, and change misuses of #if to #ifdef or #ifndef as appropriate.
  5307. * Misc/WebKitLogging.h:
  5308. * WebKit.xcodeproj/project.pbxproj:
  5309. * WebView/WebFrame.mm:
  5310. * WebView/WebFrameInternal.h:
  5311. * WebView/WebHTMLView.mm:
  5312. (-[WebHTMLView validateUserInterfaceItem:]):
  5313. (-[WebHTMLView delete:]):
  5314. (-[WebHTMLView showGuessPanel:]):
  5315. (-[WebHTMLView copy:]):
  5316. (-[WebHTMLView cut:]):
  5317. (-[WebHTMLView paste:]):
  5318. * WebView/WebHTMLViewInternal.h:
  5319. * WebView/WebView.mm:
  5320. (-[WebViewPrivate init]):
  5321. (-[WebView validateUserInterfaceItem:]):
  5322. * WebView/WebViewPrivate.h:
  5323. 2007-01-30 Brady Eidson <beidson@apple.com>
  5324. Reviewed by Oliver
  5325. This is a corollary to <rdar://problem/4944887> where certain things happened on an alternate thread.
  5326. To help catch such behavior in the future, add ASSERT_MAIN_THREAD() to key WebKit API points
  5327. * History/WebHistoryItem.mm: Added ASSERT_MAIN_THREAD() to suspected API entry points
  5328. (-[WebHistoryItem dealloc]):
  5329. (-[WebHistoryItem finalize]):
  5330. (-[WebHistoryItem copyWithZone:]):
  5331. (-[WebHistoryItem URLString]):
  5332. (-[WebHistoryItem originalURLString]):
  5333. (-[WebHistoryItem title]):
  5334. (-[WebHistoryItem lastVisitedTimeInterval]):
  5335. (-[WebHistoryItem isEqual:]):
  5336. (-[WebHistoryItem description]):
  5337. (-[WebHistoryItem initWithWebCoreHistoryItem:]):
  5338. (-[WebHistoryItem initFromDictionaryRepresentation:]):
  5339. (-[WebHistoryItem scrollPoint]):
  5340. (-[WebHistoryItem dictionaryRepresentation]):
  5341. (-[WebHistoryItem target]):
  5342. (-[WebHistoryItem visitCount]):
  5343. (-[WebHistoryItem children]):
  5344. (-[WebHistoryItem URL]):
  5345. (-[WebHistoryItem _lastVisitedDate]):
  5346. (-[WebHistoryItem targetItem]):
  5347. * Misc/WebIconDatabase.mm: Added ASSERT_MAIN_THREAD() to suspected API entry points
  5348. (-[WebIconDatabase iconForURL:withSize:cache:]):
  5349. (-[WebIconDatabase iconURLForURL:]):
  5350. (-[WebIconDatabase defaultIconWithSize:]):
  5351. (-[WebIconDatabase retainIconForURL:]):
  5352. (-[WebIconDatabase releaseIconForURL:]):
  5353. (-[WebIconDatabase removeAllIcons]):
  5354. (-[WebIconDatabase _iconForFileURL:withSize:]):
  5355. (webGetNSImage):
  5356. * Misc/WebKitLogging.h: Added ASSERT_MAIN_THREAD()
  5357. * Misc/WebKitLogging.m:
  5358. (WebKitRunningOnMainThread): Added
  5359. * WebKit.xcodeproj/project.pbxproj: Define DISABLE_THREAD_CHECK until it is
  5360. safe to run with ASSERT_MAIN_THREAD() active
  5361. 2007-01-30 Timothy Hatcher <timothy@apple.com>
  5362. Reviewed by Darin.
  5363. <rdar://problem/4961953> Stop using NSString deprecated methods like initWithCString:
  5364. * Misc/WebNSImageExtras.m:
  5365. (-[NSImage _web_saveAndOpen]):
  5366. * WebKit.xcodeproj/project.pbxproj:
  5367. 2007-01-30 Mitz Pettel <mitz@webkit.org>
  5368. Reviewed by Geoff.
  5369. - fix http://bugs.webkit.org/show_bug.cgi?id=12050
  5370. REGRESSION: Assertion failure in -[WebBaseNetscapePluginView willCallPlugInFunction] (plugin)
  5371. Test: plugins/createScriptableObject-before-start.html
  5372. * Plugins/WebBaseNetscapePluginView.mm:
  5373. (-[WebBaseNetscapePluginView createPluginScriptableObject]): Return NULL if
  5374. the plugin is not started.
  5375. 2007-01-30 Maciej Stachowiak <mjs@apple.com>
  5376. Reviewed by Anders.
  5377. <rdar://problem/4964407> REGRESSION: Mail hangs when replying, forwarding , or creating a new message
  5378. * WebView/WebFrame.mm:
  5379. (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Set WebDataRequest property on data
  5380. load requests since Mail specifically checks for this.
  5381. 2007-01-30 Graham Dennis <graham.dennis@gmail.com>
  5382. Reviewed by Maciej.
  5383. Part of fix for http://bugs.webkit.org/show_bug.cgi?id=10725
  5384. Image data in from RTFD clipboard data thrown away
  5385. The URLs for images in RTFD data must not be loaded until the resources
  5386. have been added to the WebUnarchivingState. This can't happen until
  5387. after the RTFD data has been parsed, so we must delay loading while this
  5388. RTFD data is being parsed to a document fragment.
  5389. * WebView/WebHTMLView.mm:
  5390. (uniqueURLWithRelativePart):
  5391. (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]): defer loading the resources while RTFD data is being parsed.
  5392. (+[NSURL _web_uniqueWebDataURL]): Added this back because AppKit uses it.
  5393. * WebView/WebUnarchivingState.m:
  5394. (-[WebUnarchivingState archivedResourceForURL:]): orkaround for workaround for rdar://problem/4699166 so that other people can use archivedResourceForURL: too.
  5395. 2007-01-29 Jim Correia <jim.correia@pobox.com>
  5396. Reviewed by Mark.
  5397. Added support for -allowsUndo/-setAllowsUndo: to allow editable WebView
  5398. clients to completely disable undo registration. This is functionally
  5399. equivalent to the methods with the same names on NSTextView.
  5400. * WebView/WebView.mm:
  5401. (-[WebViewPrivate init]):
  5402. (-[WebView initWithCoder:]):
  5403. (-[WebView encodeWithCoder:]):
  5404. (-[WebView allowsUndo]):
  5405. (-[WebView setAllowsUndo:]):
  5406. (-[WebView undoManager]):
  5407. * WebView/WebViewPrivate.h:
  5408. 2007-01-29 Ada Chan <adachan@apple.com>
  5409. Reviewed by Brady.
  5410. Moved the update of the title of the current entry in the backforward list to WebCore.
  5411. * WebCoreSupport/WebFrameLoaderClient.mm:
  5412. (WebFrameLoaderClient::setTitle):
  5413. 2007-01-29 Adele Peterson <adele@apple.com>
  5414. Reviewed by Darin.
  5415. More preparation for event handling fixes.
  5416. * WebCoreSupport/WebEditorClient.h: Removed EventTargetNode parameter, since you can
  5417. just get this from the KeyboardEvent.
  5418. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleKeyPress): ditto.
  5419. * WebView/WebHTMLViewInternal.h: Added interpretKeyEventsParameters struct.
  5420. * WebView/WebViewInternal.h: Changed parameter from NSEvent to WebCoreKeyboardEvent in _interceptEditingKeyEvent.
  5421. * WebView/WebHTMLView.mm:
  5422. (-[WebHTMLView yankAndSelect:]): Updated for new triggeringEvent parameter.
  5423. (-[WebHTMLView _interceptEditingKeyEvent:]): Set the WebHTMLViewInterpretKeyEventsParameters.
  5424. (-[WebHTMLView doCommandBySelector:]): Access WebHTMLViewInterpretKeyEventsParameters.
  5425. (-[WebHTMLView insertText:]): ditto.
  5426. (-[WebHTMLView _insertText:selectInsertedText:triggeringEvent:]): Added parameter for triggeringEvent.
  5427. 2007-01-29 Oliver Hunt <oliver@apple.com>
  5428. build fix
  5429. * WebView/WebHTMLView.mm:
  5430. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  5431. 2007-01-25 Oliver Hunt <oliver@apple.com>
  5432. Reviewed by Adam.
  5433. Migrated drag state and logic to WebCore, removed superfluous methods
  5434. * ChangeLog:
  5435. * WebCoreSupport/WebDragClient.h:
  5436. * WebCoreSupport/WebDragClient.mm:
  5437. (WebDragClient::dragSourceActionMaskForPoint):
  5438. * WebCoreSupport/WebFrameBridge.mm:
  5439. allowDHTMLDrag move to WebCore::EventHandler
  5440. * WebView/WebHTMLView.mm:
  5441. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  5442. (-[WebHTMLView draggedImage:movedTo:]):
  5443. (-[WebHTMLView draggedImage:endedAt:operation:]):
  5444. dragOffset and dragSourecAction is now stored in WebCore::DragController
  5445. migrated _delegateDragSourceActionMask to WebCore::DragController
  5446. * WebView/WebHTMLViewInternal.h:
  5447. Removed dragOffset declaration, migrated to WebCore::DragController
  5448. * WebView/WebView.mm:
  5449. removed unnecessary method, _loadingDragOperationForDraggingInfo
  5450. 2007-01-29 Maciej Stachowiak <mjs@apple.com>
  5451. Reviewed by Mark.
  5452. - updated for cross-platform data loading support
  5453. * WebCoreSupport/WebFrameLoaderClient.h:
  5454. * WebCoreSupport/WebFrameLoaderClient.mm:
  5455. (WebFrameLoaderClient::createDocumentLoader):
  5456. * WebView/WebDataSource.mm:
  5457. (-[WebDataSource initWithRequest:]):
  5458. * WebView/WebDocumentLoaderMac.h:
  5459. * WebView/WebDocumentLoaderMac.mm:
  5460. (WebDocumentLoaderMac::WebDocumentLoaderMac):
  5461. * WebView/WebFrame.mm:
  5462. (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
  5463. (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]):
  5464. (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
  5465. (-[WebFrame loadArchive:]):
  5466. * WebView/WebFrameInternal.h:
  5467. * WebView/WebHTMLView.mm:
  5468. (uniqueURLWithRelativePart):
  5469. (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
  5470. 2007-01-27 David Kilzer <ddkilzer@webkit.org>
  5471. Reviewed by Adam.
  5472. - fix http://bugs.webkit.org/show_bug.cgi?id=12260
  5473. Windows platform build is not maintained
  5474. * COM/ChromeClientWin.cpp:
  5475. (ChromeClientWin::canTakeFocus):
  5476. (ChromeClientWin::takeFocus):
  5477. * COM/ChromeClientWin.h:
  5478. * COM/ContextMenuClientWin.cpp:
  5479. (ContextMenuClientWin::getCustomMenuFromDefaultItems):
  5480. (ContextMenuClientWin::searchWithGoogle):
  5481. * COM/ContextMenuClientWin.h:
  5482. * COM/WebFrameLoaderClient.cpp:
  5483. (WebFrameLoaderClient::assignIdentifierToInitialRequest):
  5484. (WebFrameLoaderClient::dispatchWillSendRequest):
  5485. (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  5486. (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  5487. (WebFrameLoaderClient::dispatchDidReceiveResponse):
  5488. (WebFrameLoaderClient::dispatchDidReceiveContentLength):
  5489. (WebFrameLoaderClient::dispatchDidFinishLoading):
  5490. (WebFrameLoaderClient::dispatchDidFailLoading):
  5491. (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  5492. (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
  5493. (WebFrameLoaderClient::dispatchDidFailLoad):
  5494. (WebFrameLoaderClient::dispatchCreatePage):
  5495. (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
  5496. (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
  5497. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  5498. (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
  5499. (WebFrameLoaderClient::setMainDocumentError):
  5500. (WebFrameLoaderClient::incrementProgress):
  5501. (WebFrameLoaderClient::completeProgress):
  5502. (WebFrameLoaderClient::startDownload):
  5503. (WebFrameLoaderClient::committedLoad):
  5504. (WebFrameLoaderClient::cancelledError):
  5505. (WebFrameLoaderClient::cannotShowURLError):
  5506. (WebFrameLoaderClient::interruptForPolicyChangeError):
  5507. (WebFrameLoaderClient::cannotShowMIMETypeError):
  5508. (WebFrameLoaderClient::fileDoesNotExistError):
  5509. (WebFrameLoaderClient::shouldFallBack):
  5510. (WebFrameLoaderClient::willUseArchive):
  5511. (WebFrameLoaderClient::createDocumentLoader):
  5512. (WebFrameLoaderClient::download):
  5513. * COM/WebFrameLoaderClient.h:
  5514. 2007-01-27 David Harrison <harrison@apple.com>
  5515. Reviewed by Kevin.
  5516. <rdar://problem/4958902> REGRESSION: Dashboard widgets fail to load
  5517. This was caused by the WebView preferences rework in r18417. Specifically, in
  5518. _updateWebCoreSettingsFromPreferences when calling setUserStyleSheetLocation,
  5519. [NSURL URLWithString:] is now messaged directly with the result of
  5520. [[preferences userStyleSheetLocation] _web_originalDataAsString]], which will
  5521. be nil if the userStyleSheetLocation has not been set yet. [NSURL URLWithString:]
  5522. throws an exception when the string is nil. DashboardClient.app calls
  5523. setUserStyleSheetEnabled *before* calling setUserStyleSheetLocation.
  5524. * WebView/WebView.mm:
  5525. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  5526. Pass empty string instead of nil string to [NSURL URLWithString:].
  5527. 2007-01-26 Darin Adler <darin@apple.com>
  5528. Reviewed by Timothy.
  5529. Fixes crash drawing avatar on mail.yahoo.com.
  5530. * Plugins/WebBaseNetscapePluginStream.m: Retain the object since destroyStreamWithError: might
  5531. release the last reference to it.
  5532. 2007-01-26 Darin Adler <darin@apple.com>
  5533. Reviewed by Beth.
  5534. * WebInspector/webInspector/inspector.js: Updated for new computed style properties.
  5535. 2007-01-26 Kevin Decker <kdecker@apple.com>
  5536. Reviewed by andersca.
  5537. Fixed: <rdar://problem/4946922> WebBaseNetscapePluginView leaks memory
  5538. http://bugs.webkit.org/show_bug.cgi?id=11523
  5539. * Plugins/WebBaseNetscapePluginStream.m:
  5540. (-[WebBaseNetscapePluginStream setPlugin:]): Calls -[WebBaseNetscapePluginView disconnectStream:]
  5541. * Plugins/WebBaseNetscapePluginView.h: Added disconnectStream: to header.
  5542. * Plugins/WebBaseNetscapePluginView.mm:
  5543. (-[WebBaseNetscapePluginView stop]): Make a copy of the streams collection prior to calling stop all streams.
  5544. This is necessary because calling stop has the side effect of removing the stream from this same collection.
  5545. (-[WebBaseNetscapePluginView disconnectStream:]): Added. Removes the stream from the streams collection.
  5546. 2007-01-25 Kevin Decker <kdecker@apple.com>
  5547. Backed out my last patch because it crashes espn.com. Stay tuned for a newer version..
  5548. * Plugins/WebBaseNetscapePluginStream.m:
  5549. (-[WebBaseNetscapePluginStream setPlugin:]): Removed call to streamIsDead.
  5550. * Plugins/WebBaseNetscapePluginView.h: Removed streamIsDead.
  5551. * Plugins/WebBaseNetscapePluginView.mm: Ditto.
  5552. 2007-01-25 Darin Adler <darin@apple.com>
  5553. Reviewed by Beth.
  5554. - fix <rdar://problem/4952766> Safari has a top secret color picker that can be used to... uhh... I don't know
  5555. * Panels/English.lproj/WebAuthenticationPanel.nib/info.nib: Let Interface Builder have its way.
  5556. * Panels/English.lproj/WebAuthenticationPanel.nib/objects.nib: Remove the NSColorWell that was
  5557. in here (for no good reason).
  5558. 2007-01-25 Kevin Decker <kdecker@apple.com>
  5559. Reviewed by andersca.
  5560. A few tweaks with of a fix done by Steve Gehrman.
  5561. Fixed: <rdar://problem/4946922> WebBaseNetscapePluginView leaks memory
  5562. http://bugs.webkit.org/show_bug.cgi?id=11523
  5563. * Plugins/WebBaseNetscapePluginStream.m:
  5564. (-[WebBaseNetscapePluginStream setPlugin:]): Calls -[WebBaseNetscapePluginView streamIsDead:]
  5565. * Plugins/WebBaseNetscapePluginView.h: Added streamIsDead to header.
  5566. * Plugins/WebBaseNetscapePluginView.mm:
  5567. (-[WebBaseNetscapePluginView streamIsDead:]): Added. Removes the stream from the streams collection.
  5568. 2007-01-25 John Sullivan <sullivan@apple.com>
  5569. Reviewed by Kevin, Geoff, Brady, and Darin
  5570. - fixed <rdar://problem/4918446> Safari's temp files (PDF's) should be in a sub-folder when calling Preview
  5571. * WebView/WebPDFView.mm:
  5572. (-[WebPDFView _path]):
  5573. use _temporaryPDFDirectoryPath method instead of #defines for hardwiring strings; stop bad practice
  5574. of modifying the const char* returned by fileSystemRepresentation
  5575. (-[WebPDFView _temporaryPDFDirectoryPath]):
  5576. new method, lazily creates and returns a secure temporary directory created with NSTemporaryDirectory()
  5577. and mkdtemp
  5578. * English.lproj/StringsNotToBeLocalized.txt:
  5579. Updated for these and other recent changes
  5580. 2007-01-24 Oliver Hunt <oliver@apple.com>
  5581. Build fix
  5582. * WebView/WebHTMLView.mm:
  5583. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  5584. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
  5585. 2007-01-24 Oliver Hunt <ioliver@apple.com>
  5586. Reviewed by Maciej.
  5587. Migrating more drag state information to WebCore
  5588. * WebKit.xcodeproj/project.pbxproj:
  5589. * WebView/WebHTMLView.mm:
  5590. (-[WebHTMLViewPrivate dealloc]):
  5591. (-[WebHTMLViewPrivate clear]):
  5592. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  5593. (-[WebHTMLView _mayStartDragAtEventLocation:]):
  5594. (-[WebHTMLView close]):
  5595. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
  5596. (-[WebHTMLView _delegateDragSourceActionMask]):
  5597. * WebView/WebHTMLViewInternal.h:
  5598. 2007-01-24 Adele Peterson <adele@apple.com>
  5599. Reviewed by Darin.
  5600. Small improvement to my last checkin to prevent the keyEventWasInterpreted bool from
  5601. being overwritten by reentrancy.
  5602. * WebView/WebHTMLView.mm:
  5603. (-[WebHTMLView _interceptEditingKeyEvent:]): Point keyEventWasInterpreted pointer to local variable.
  5604. (-[WebHTMLView doCommandBySelector:]):
  5605. (-[WebHTMLView insertText:]):
  5606. * WebView/WebHTMLViewInternal.h: Added BOOL pointer that will point to the local variable on the stack in _interceptEditingKeyEvent
  5607. 2007-01-24 Adele Peterson <adele@apple.com>
  5608. Reviewed by Darin.
  5609. - Fix for <rdar://problem/4950527> REGRESSION: Can't use arrow keys (left/right) to navigate caret in input (type=text) or textarea fields
  5610. Keep track of whether interpretKeyEvents handles the key event based on whether or not we get
  5611. called in insertText or doCommandBySelector.
  5612. Test: fast/events/arrow-navigation.html
  5613. * WebView/WebHTMLView.mm:
  5614. (-[WebHTMLView performKeyEquivalent:]):
  5615. (-[WebHTMLView _interceptEditingKeyEvent:]):
  5616. (-[WebHTMLView doCommandBySelector:]):
  5617. (-[WebHTMLView insertText:]):
  5618. * WebView/WebHTMLViewInternal.h:
  5619. 2007-01-25 Mark Rowe <mrowe@apple.com>
  5620. Reviewed by Maciej.
  5621. * Info.plist: Update copyright string.
  5622. 2007-01-24 Darin Adler <darin@apple.com>
  5623. Reviewed by Mark Rowe.
  5624. * WebKit.xcodeproj/project.pbxproj: Changed to /usr/sbin/sysctl
  5625. so we don't rely on people's paths.
  5626. 2007-01-24 Darin Adler <darin@apple.com>
  5627. Reviewed by Adele.
  5628. - fix small regression and GC problems noticed by code inspection
  5629. * WebView/WebHTMLView.mm: Move global declarations to the start of the file.
  5630. (+[WebHTMLView _excludedElementsForAttributedStringConversion]):
  5631. Add a CFRetain here for GC compatibility.
  5632. (+[WebHTMLView _insertablePasteboardTypes]): Ditto.
  5633. (-[WebHTMLView performKeyEquivalent:]): Fix small logic mistake that prevents
  5634. super from being called if EventHandler::keyEvent returns false. Reformatted
  5635. the code a bit and added a local variable for the frame.
  5636. (-[WebHTMLView _interceptEditingKeyEvent:]): Added some comments.
  5637. (-[WebHTMLView validAttributesForMarkedText]): Add a CFRetain here for
  5638. GC compatibility.
  5639. 2007-01-23 Adele Peterson <adele@apple.com>
  5640. Reviewed by Adam.
  5641. Fixed 2 layout tests that I broke with my last checkin.
  5642. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleKeyPress): Use the selected frame to get the WebHTMLView.
  5643. * WebView/WebHTMLView.mm:
  5644. (-[WebHTMLView performKeyEquivalent:]): Added global to keep track of NSEvent used here.
  5645. (-[WebHTMLView _interceptEditingKeyEvent:]): Check NSEvent against the event used in performKeyEquivalent.
  5646. We don't want to intercept these events.
  5647. 2007-01-23 Adele Peterson <adele@apple.com>
  5648. Reviewed by Darin.
  5649. WebKit part of fix for <rdar://problem/4946753>REGRESSION: Inserting tabs is broken in Mail
  5650. In addition to this fix, I also reorganized some event handling code for keyPress events to
  5651. prepare for another fix.
  5652. * WebCoreSupport/WebEditorClient.h: Added handleKeyPress method.
  5653. * WebCoreSupport/WebEditorClient.mm:
  5654. (WebEditorClient::handleKeyPress): Added. Code moved from WebHTMLView keyDown method.
  5655. This is called from the defaultEventHandler so that in the future, we can make the right
  5656. decision about which selection the keyPress should apply to.
  5657. * WebView/WebHTMLView.mm:
  5658. (-[WebHTMLView keyDown:]): Moved _interceptEditingKeyEvent call to handleKeyPress.
  5659. (-[WebHTMLView _interceptEditingKeyEvent:]): Prevents intercepting keys for cmd-modified events. Removed tabCycling checks
  5660. since this is now handled in WebCore.
  5661. * WebView/WebHTMLViewInternal.h: Made _interceptEditingKeyEvent SPI.
  5662. * WebView/WebView.mm: Use new tabKeyCyclesThroughElements methods on the page.
  5663. (-[WebViewPrivate init]): ditto.
  5664. (-[WebView setTabKeyCyclesThroughElements:]): ditto.
  5665. (-[WebView tabKeyCyclesThroughElements]): ditto.
  5666. (-[WebView setEditable:]): ditto
  5667. 2007-01-23 Lars Knoll <lars@trolltech.com>
  5668. Reviewed by Maciej
  5669. Make the last remaining pieces of the FrameLoader platform
  5670. independent. Move most of the code over to WebFrameLoaderClient.
  5671. Some smaller cleanups in the WebFrameBridge, and moved some
  5672. platform independent functionality over to the shared code
  5673. in WebCore.
  5674. * Webcoresupport/WebFrameBridge.mm:
  5675. (-[WebFrameBridge finishInitializingWithPage:frameName:frameView:ownerElement:]):
  5676. (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
  5677. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  5678. * WebCoreSupport/WebFrameLoaderClient.h:
  5679. * WebCoreSupport/WebFrameLoaderClient.mm:
  5680. (WebFrameLoaderClient::setTitle):
  5681. (WebFrameLoaderClient::createFrame):
  5682. (WebFrameLoaderClient::objectContentType):
  5683. (nsArray):
  5684. (WebFrameLoaderClient::createPlugin):
  5685. (WebFrameLoaderClient::redirectDataToPlugin):
  5686. (nsMutableArray):
  5687. (WebFrameLoaderClient::createJavaAppletWidget):
  5688. (WebFrameLoaderClient::overrideMediaType):
  5689. (WebFrameLoaderClient::windowObjectCleared):
  5690. 2007-01-23 Oliver Hunt <oliver@apple.com>
  5691. Reviewed by Adam.
  5692. Drop logic bindings for WebKit
  5693. * WebCoreSupport/WebDragClient.h: Added.
  5694. * WebCoreSupport/WebDragClient.mm: Added.
  5695. (WebDragClient::WebDragClient):
  5696. (WebDragClient::actionMaskForDrag):
  5697. (WebDragClient::willPerformDragDestinationAction):
  5698. Standard client impl
  5699. * WebCoreSupport/WebFrameBridge.mm:
  5700. (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  5701. Updated to use DragController to track drag state
  5702. * WebCoreSupport/WebPasteboardHelper.h: Added.
  5703. (WebPasteboardHelper::WebPasteboardHelper):
  5704. A *temporary* Helper class to access NSPasteboard access and
  5705. manipulation functions present in WebKit
  5706. * WebCoreSupport/WebPasteboardHelper.mm: Added.
  5707. (WebPasteboardHelper::urlFromPasteboard):
  5708. (WebPasteboardHelper::plainTextFromPasteboard):
  5709. (WebPasteboardHelper::fragmentFromPasteboard):
  5710. (WebPasteboardHelper::insertablePasteboardTypes):
  5711. See header comment
  5712. * WebKit.xcodeproj/project.pbxproj:
  5713. * WebView/WebDocumentInternal.h:
  5714. Remove unnecessary protocol
  5715. * WebView/WebFrameView.mm:
  5716. (-[WebFrameView _setDocumentView:]):
  5717. Updating to use DragController to track drag state
  5718. * WebView/WebHTMLView.mm:
  5719. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  5720. ditto
  5721. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
  5722. ditto
  5723. (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
  5724. ditto
  5725. (-[WebHTMLView draggedImage:endedAt:operation:]):
  5726. ditto
  5727. (-[WebHTMLView _documentFragmentForPasteboard:]):
  5728. Helper method to generate DocumentFragment from NSPasteboard without regressing
  5729. (-[WebHTMLView _canProcessDragWithDraggingInfo:]):
  5730. Updating to use DragController to track drag state
  5731. (-[WebHTMLView _isMoveDrag:]):
  5732. (-[WebHTMLView _isNSColorDrag:]):
  5733. * WebView/WebHTMLViewInternal.h:
  5734. Removing unnecessary fields and methods
  5735. * WebView/WebView.mm:
  5736. (-[WebViewPrivate dealloc]):
  5737. Remove obsolete ASSERT
  5738. (-[WebView _setInitiatedDrag:]):
  5739. Now passes directly through to DragController
  5740. (-[WebView _commonInitializationWithFrameName:groupName:]):
  5741. (-[WebView _loadingDragOperationForDraggingInfo:]):
  5742. Removed
  5743. (-[WebView draggingEntered:]):
  5744. Updated to use DragController
  5745. (-[WebView draggingUpdated:]):
  5746. ditto
  5747. (-[WebView draggingExited:]):
  5748. ditto
  5749. (-[WebView performDragOperation:]):
  5750. ditto
  5751. (-[WebView _hitTest:dragTypes:]):
  5752. * WebView/WebViewInternal.h:
  5753. remove unnecessary method def
  5754. 2007-01-22 John Sullivan <sullivan@apple.com>
  5755. * WebView/WebHTMLView.mm:
  5756. (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
  5757. Tiger build fix: remove unused variable for return value of dictionaryServiceWindowShow
  5758. 2007-01-22 John Sullivan <sullivan@apple.com>
  5759. Reviewed by Adam and Darin
  5760. - fixed <rdar://problem/4794320> "Look Up in Dictionary" does nothing in WebKit
  5761. (need to adopt new API)
  5762. * Misc/WebNSURLExtras.m:
  5763. (-[NSString _web_isUserVisibleURL]):
  5764. random typo correction in comment
  5765. * English.lproj/StringsNotToBeLocalized.txt:
  5766. updated for these changes
  5767. * WebView/WebHTMLView.mm:
  5768. (coreGraphicsScreenPointForAppKitScreenPoint):
  5769. new function to convert an AppKit screen point to a CG screen point
  5770. (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
  5771. on Leopard now uses new API. There's something of an impedance mismatch between
  5772. this API and WebKit, but that was true for the SPI we were using in Tiger also.
  5773. Bug 4945808 covers the ways in which this is not perfect.
  5774. 2007-01-21 Darin Adler <darin@apple.com>
  5775. Reviewed by Tim H.
  5776. * WebInspector/webInspector/inspector.css: Use row-resize for the splitter cursor
  5777. instead of move. It's a horizontal splitter resizer.
  5778. 2007-01-19 Adam Roben <aroben@apple.com>
  5779. Reviewed by Beth.
  5780. Fix <rdar://problem/4942294> REGRESSION: "Spelling and Grammar",
  5781. "Font", "Speech", and "Writing Direction" are missing from contextual
  5782. menu
  5783. * WebCoreSupport/WebContextMenuClient.mm:
  5784. (fixMenusForOldClients): Change our new SPI tags to
  5785. WebMenuItemTagOther because old clients aren't expecting the new tags.
  5786. (fixMenusFromOldClients): Use each menu item's title to figure out its
  5787. correct tag again.
  5788. (WebContextMenuClient::getCustomMenuFromDefaultItems): Call
  5789. fixMenusForOldClients before calling up to the delegate.
  5790. * WebView/WebUIDelegatePrivate.h: Define WEBMENUITEMTAG_SPI_START so
  5791. that we can use it in WebContextMenuClient.
  5792. 2007-01-19 John Sullivan <sullivan@apple.com>
  5793. Reviewed by Darin
  5794. - WebKit part of fix for: <rdar://problem/4451715> REGRESSION: On some sites, have to
  5795. type a character before username/password autofill kicks in
  5796. Added new webView:didFinishDocumentLoadForFrame: SPI and wired it up
  5797. * WebView/WebViewPrivate.h:
  5798. declare new delegate method
  5799. * WebCoreSupport/WebFrameLoaderClient.h:
  5800. declare dispatchDidFinishDocumentLoad()
  5801. * WebCoreSupport/WebFrameLoaderClient.mm:
  5802. (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
  5803. new method, calls new delegate method
  5804. * DefaultDelegates/WebDefaultFrameLoadDelegate.m:
  5805. (-[WebDefaultFrameLoadDelegate webView:didFinishDocumentLoadForFrame:]):
  5806. empty default implementation of new delegate method
  5807. 2007-01-19 Anders Carlsson <acarlsson@apple.com>
  5808. Reviewed by John Sullivan.
  5809. http://bugs.webkit.org/show_bug.cgi?id=12308
  5810. REGRESSION(r18910): Crash in WebBaseNetscapePluginStream cancelLoadAndDestroyStreamWithError
  5811. * Plugins/WebBaseNetscapePluginView.mm:
  5812. (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
  5813. Move code from initWithFrame in here.
  5814. 2007-01-19 Anders Carlsson <acarlsson@apple.com>
  5815. Yet another build fix.
  5816. * WebCoreSupport/WebChromeClient.h:
  5817. * WebCoreSupport/WebChromeClient.mm:
  5818. (WebChromeClient::setStatusbarText):
  5819. 2007-01-18 Anders Carlsson <acarlsson@apple.com>
  5820. Reviewed by Adam.
  5821. Move functions from the bridge to the chrome client.
  5822. * WebCoreSupport/WebChromeClient.h:
  5823. * WebCoreSupport/WebChromeClient.mm:
  5824. (WebChromeClient::runJavaScriptAlert):
  5825. (WebChromeClient::runJavaScriptConfirm):
  5826. (WebChromeClient::runJavaScriptPrompt):
  5827. (WebChromeClient::setStatusBarText):
  5828. * WebCoreSupport/WebFrameBridge.mm:
  5829. 2007-01-18 Adam Roben <aroben@apple.com>
  5830. Reviewed by Beth.
  5831. Fix <rdar://problem/4939672> REGRESSION: With text selected that is
  5832. not a link, the "Remove Link" contextual menu item remains active
  5833. * WebView/WebHTMLView.mm:
  5834. (-[WebHTMLView menuForEvent:]): Leave autoenabling of menu items on so
  5835. that clients can implement validateMenuItem:.
  5836. 2007-01-18 Brady Eidson <beidson@apple.com>
  5837. Reviewed by Adele
  5838. <rdar://problem/4917290> -
  5839. Null deref in WebFrameLoaderClient::restoreScrollPositionAndViewState()
  5840. after regaining network connection
  5841. * WebCoreSupport/WebFrameLoaderClient.mm:
  5842. (WebFrameLoaderClient::restoreScrollPositionAndViewState): Bail early with a null currentItem, preventing
  5843. a crash in release builds. Leave the ASSERT to help find other cases where this might happen in debug builds.
  5844. 2007-01-18 Kevin Decker <kdecker@apple.com>
  5845. Reviewed by John.
  5846. <rdar://problem/4939511> WebKit should set the CG clip path for plug-ins that draw using CoreGraphics
  5847. * Plugins/WebBaseNetscapePluginView.mm:
  5848. (-[WebBaseNetscapePluginView drawRect:]): Set the CG clip path to the plug-in dirty rect. This allows plug-ins to obtain their
  5849. dirty rect using functions like CGContextGetClipBoundingBox().
  5850. 2007-01-17 Alice Liu <alice.liu@apple.com>
  5851. Reviewed by Harrison.
  5852. Fix for <rdar://problem/4894155> REGRESSION: Extra line break is pasted with content into message body after choosing File - Paste
  5853. Migration of some editing code from WebHTMView to WebCore::Editor
  5854. resulted in not calling pasteboardTypesForSelection, which Mail was
  5855. overriding for the special purpose of adding a type to the
  5856. pasteboard after WebKit did. This patch adds 2 separate code paths
  5857. for Tiger and Leopard. On Tiger we give in and call the WebView's
  5858. pasteboardTypesForSelection. On Leopard we call a delegate after
  5859. the pasteboard types are set.
  5860. * DefaultDelegates/WebDefaultEditingDelegate.m:
  5861. (-[WebDefaultEditingDelegate webView:didSetSelectionTypesForPasteboard:]):
  5862. * WebCoreSupport/WebEditorClient.h:
  5863. * WebCoreSupport/WebEditorClient.mm:
  5864. (WebEditorClient::didSetSelectionTypesForPasteboard):
  5865. (WebEditorClient::pasteboardTypesForSelection):
  5866. * WebView/WebEditingDelegate.h:
  5867. 2007-01-17 John Sullivan <sullivan@apple.com>
  5868. Reviewed by Darin
  5869. - WebKit part of fix for <rdar://problem/4462420> REGRESSION: Mail hangs during
  5870. Replace All if the replacement string contains the search string
  5871. * Misc/WebKitVersionChecks.h:
  5872. Added extern "C" so this can be used from .mm files. I don't need this change anymore for
  5873. this fix, but it's still worth fixing now so it doesn't bite anyone later.
  5874. * WebView/WebDocumentPrivate.h:
  5875. Invented new private protocol WebDocumentIncrementalSearching, that has one method. The one
  5876. method is just like the one WebDocumentSearching method, but with an additional parameter.
  5877. We hope to eliminate this dependence on protocols someday, but adding another one as SPI
  5878. seems like it won't make anything worse.
  5879. * WebView/WebHTMLView.mm:
  5880. (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
  5881. now calls through to new method that has one additional parameter, passing NO to match old behavior
  5882. (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
  5883. pass new parameter to bridge
  5884. * WebView/WebPDFView.h:
  5885. Declare conformance to WebDocumentIncrementalSearching protocol
  5886. * WebView/WebPDFView.mm:
  5887. (-[WebPDFView searchFor:direction:caseSensitive:wrap:]):
  5888. now calls through to new method that has one additional parameter, passing NO to match old behavior
  5889. (-[WebPDFView searchFor:direction:caseSensitive:wrap:startInSelection:]):
  5890. new method, former guts of searchFor:direction:caseSensitive:wrap: but now handles startInSelection
  5891. parameter
  5892. * WebView/WebViewPrivate.h:
  5893. Declare new searchFor:direction:caseSensitive:wrap:startInSelection: method, just like existing
  5894. method but with one additional parameter
  5895. * WebView/WebView.mm:
  5896. (-[WebView searchFor:direction:caseSensitive:wrap:]):
  5897. now calls through to new method that has one additional parameter, passing NO to match old behavior
  5898. (-[WebView searchFor:direction:caseSensitive:wrap:startInSelection:]):
  5899. new method, former guts of searchFor:direction:caseSensitive:wrap: but now handles startInSelection
  5900. parameter
  5901. 2007-01-17 Brady Eidson <beidson@apple.com>
  5902. Reviewed by Deth Bakin and Brian Dash
  5903. Drop Panther Support (?!?) and change the comment explaining some SPI forward decls
  5904. * Misc/WebDownload.m:
  5905. 2007-01-17 Darin Adler <darin@apple.com>
  5906. Reviewed by Maciej.
  5907. - fix http://bugs.webkit.org/show_bug.cgi?id=12278
  5908. <rdar://problem/4928705> REGRESSION(r13070): Dragged image size includes padding (12278)
  5909. * Misc/WebElementDictionary.mm: (-[WebElementDictionary _imageRect]):
  5910. Call HitTestResult::imageRect, not HitTestResult::boundingBox.
  5911. 2007-01-17 Anders Carlsson <acarlsson@apple.com>
  5912. Reviewed by John Sullivan.
  5913. Move all code in WebNetscapePluginEmbeddedView down to WebBaseNetscapePluginView.
  5914. * Plugins/WebBaseNetscapePluginView.h:
  5915. * Plugins/WebBaseNetscapePluginView.mm:
  5916. (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
  5917. (-[WebBaseNetscapePluginView didStart]):
  5918. (-[WebBaseNetscapePluginView dataSource]):
  5919. (-[WebBaseNetscapePluginView dealloc]):
  5920. (-[WebBaseNetscapePluginView pluginView:receivedResponse:]):
  5921. (-[WebBaseNetscapePluginView pluginView:receivedData:]):
  5922. (-[WebBaseNetscapePluginView pluginView:receivedError:]):
  5923. (-[WebBaseNetscapePluginView pluginViewFinishedLoading:]):
  5924. (-[WebBaseNetscapePluginView _redeliverStream]):
  5925. * Plugins/WebNetscapePluginEmbeddedView.h:
  5926. * Plugins/WebNetscapePluginEmbeddedView.mm:
  5927. 2007-01-17 Maciej Stachowiak <mjs@apple.com>
  5928. Reviewed by Eric.
  5929. <rdar://problem/4887781> Seed: Repro Safari crash in -[WebHTMLRepresentation receivedData:withDataSource:] (music.aol.com)
  5930. * WebView/WebDataSource.mm:
  5931. (-[WebDataSource _receivedData:]): Protect self against destruction partway through this method.
  5932. 2007-01-16 Alice Liu <alice.liu@apple.com>
  5933. Reviewed by harrison.
  5934. Fixed <rdar://problem/4921134> WebKit needs extensible cut/copy to allow additional types to be written to pasteboard
  5935. * DefaultDelegates/WebDefaultEditingDelegate.m:
  5936. (-[WebDefaultEditingDelegate webView:didWriteSelectionToPasteboard:]):
  5937. * WebCoreSupport/WebEditorClient.h:
  5938. * WebCoreSupport/WebEditorClient.mm:
  5939. (WebEditorClient::didWriteSelectionToPasteboard):
  5940. * WebKit.xcodeproj/project.pbxproj:
  5941. * WebView/WebEditingDelegate.h:
  5942. 2007-01-15 Justin Garcia <justin.garcia@apple.com>
  5943. Reviewed by mjs
  5944. <rdar://problem/4810960>
  5945. Gmail Editor: window.focus() called on keyDown (9640)
  5946. The window's keydown event handler was being called
  5947. instead of the editable subframe's if there was a key binding
  5948. for the key event.
  5949. * WebView/WebHTMLView.mm:
  5950. (-[WebHTMLView performKeyEquivalent:]): Don't send the event
  5951. to WebCore unless this WebHTMLView is the firstResponder.
  5952. 2007-01-15 Anders Carlsson <acarlsson@apple.com>
  5953. Reviewed by Darin.
  5954. Update to match WebCore.
  5955. * WebCoreSupport/WebFrameLoaderClient.h:
  5956. * WebCoreSupport/WebFrameLoaderClient.mm:
  5957. (WebFrameLoaderClient::willChangeEstimatedProgress):
  5958. (WebFrameLoaderClient::didChangeEstimatedProgress):
  5959. (WebFrameLoaderClient::postProgressStartedNotification):
  5960. (WebFrameLoaderClient::postProgressEstimateChangedNotification):
  5961. (WebFrameLoaderClient::postProgressFinishedNotification):
  5962. Post the correct notifications.
  5963. * WebView/WebView.mm:
  5964. (-[WebViewPrivate init]):
  5965. (-[WebViewPrivate dealloc]):
  5966. Get rid of all progress tracking code.
  5967. (-[WebView estimatedProgress]):
  5968. Call ProgressTracker::estimatedProgress()
  5969. 2007-01-15 Adam Roben <aroben@apple.com>
  5970. Reviewed by Darin.
  5971. Fix: http://bugs.webkit.org/show_bug.cgi?id=12134
  5972. REGRESSION: Assertion failure and crash when right clicking selection
  5973. in forms
  5974. * WebCoreSupport/WebContextMenuClient.mm:
  5975. (fixMenusFromOldApps): Static helper to fix up menus from applications
  5976. compiled against Tiger WebKit.
  5977. (WebContextMenuClient::getCustomMenuFromDefaultItems): Call helper to
  5978. fix menus.
  5979. * WebView/WebUIDelegatePrivate.h: Fixed typo.
  5980. 2007-01-14 David Kilzer <ddkilzer@kilzer.net>
  5981. Reviewed by Darin.
  5982. - fix http://bugs.webkit.org/show_bug.cgi?id=12251
  5983. REGRESSION (r18822-r18823): Assertion failure opening document with non-existent resources
  5984. (dom/xhtml/level2/html/HTMLIFrameElement11.xhtml)
  5985. * WebView/WebView.mm:
  5986. (-[WebView _objectForIdentifier:]): Removed assertion.
  5987. (-[WebView _removeObjectForIdentifier:]): Removed assertion.
  5988. 2007-01-12 Anders Carlsson <acarlsson@apple.com>
  5989. Reviewed by Darin.
  5990. Add a HashMap between unsigned longs and Objective-C objects and use it for
  5991. the resource load delegate.
  5992. * WebCoreSupport/WebFrameLoaderClient.h:
  5993. * WebCoreSupport/WebFrameLoaderClient.mm:
  5994. (WebFrameLoaderClient::assignIdentifierToInitialRequest):
  5995. (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
  5996. (WebFrameLoaderClient::dispatchWillSendRequest):
  5997. (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  5998. (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  5999. (WebFrameLoaderClient::dispatchDidReceiveResponse):
  6000. (WebFrameLoaderClient::dispatchDidReceiveContentLength):
  6001. (WebFrameLoaderClient::dispatchDidFinishLoading):
  6002. (WebFrameLoaderClient::dispatchDidFailLoading):
  6003. (WebFrameLoaderClient::incrementProgress):
  6004. (WebFrameLoaderClient::completeProgress):
  6005. * WebView/WebView.mm:
  6006. (-[WebViewPrivate init]):
  6007. (-[WebViewPrivate dealloc]):
  6008. (-[WebView _addObject:forIdentifier:]):
  6009. (-[WebView _objectForIdentifier:]):
  6010. (-[WebView _removeObjectForIdentifier:]):
  6011. * WebView/WebViewInternal.h:
  6012. 2007-01-11 Brady Eidson <beidson@apple.com>
  6013. Reviewed by Anders
  6014. Rewrites HTTP Authentication setting up a more platform-independent structure
  6015. * WebCoreSupport/WebFrameLoaderClient.h:
  6016. * WebCoreSupport/WebFrameLoaderClient.mm:
  6017. (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  6018. (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  6019. * WebKit.xcodeproj/project.pbxproj:
  6020. 2007-01-11 Darin Adler <darin@apple.com>
  6021. Reviewed by Mitz.
  6022. - fix http://bugs.webkit.org/show_bug.cgi?id=12180
  6023. REGRESSION: Double-clicking on JS exception in JS log crashes in -[SharedBufferData initWithSharedBuffer:]
  6024. * WebView/WebDataSource.mm: (-[WebDataSource data]): Added null check.
  6025. 2007-01-11 Darin Adler <darin@apple.com>
  6026. Reviewed by Hyatt.
  6027. - moved code from a couple WebCore bridging classes here instead
  6028. * Misc/WebNSPasteboardExtras.mm:
  6029. (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]):
  6030. Use MimeTypeRegistry instead of WebMimeTypeRegistryBridge.
  6031. * WebView/WebHTMLRepresentation.mm:
  6032. (stringArray): Added. Helper to convert a HashSet to an NSArray.
  6033. (concatenateArrays): Added. Helper to concatenate two NSArray objects.
  6034. (+[WebHTMLRepresentation supportedMIMETypes]): Use MimeTypeRegistry instead of
  6035. WebMimeTypeRegistryBridge. Also fix a potential GC problem by using a RetainPtr
  6036. instead of a [retain] on a global variable.
  6037. (+[WebHTMLRepresentation supportedNonImageMIMETypes]): Ditto.
  6038. (+[WebHTMLRepresentation supportedImageMIMETypes]): Ditto.
  6039. * WebView/WebHTMLView.mm:
  6040. (-[WebHTMLView _imageExistsAtPaths:]): Use MimeTypeRegistry instead of
  6041. WebMimeTypeRegistryBridge.
  6042. (-[WebHTMLView _documentFragmentWithPaths:]): Ditto.
  6043. * WebView/WebView.mm: (+[WebView _decodeData:]): Moved code here from
  6044. the old WebCoreEncodings class.
  6045. * WebKit.xcodeproj/project.pbxproj: Let Xcode have its way with this file.
  6046. Moved WebRenderNode into the appropriate group.
  6047. 2007-01-10 Mitz Pettel <mitz@webkit.org>
  6048. Reviewed by Darin.
  6049. - fix http://bugs.webkit.org/show_bug.cgi?id=11775
  6050. 'Show URLs in Tool Tips' preference is ignored
  6051. * WebView/WebHTMLView.mm:
  6052. (-[WebHTMLView _resetCachedWebPreferences:]):
  6053. (-[WebHTMLView setDataSource:]): Added a call to _resetCachedWebPreferences:.
  6054. Added an assertion that the view is not closed, instead of reopening it.
  6055. Reopening should not occur, now that <http://bugs.webkit.org/show_bug.cgi?id=12087>
  6056. is fixed.
  6057. 2007-01-10 Beth Dakin <bdakin@apple.com>
  6058. Reviewed by John.
  6059. Fix for <rdar://problem/4914258> REGRESSION: Search in Google now
  6060. operates on the current WebView instead of invoking Safari's
  6061. service
  6062. * WebCoreSupport/WebContextMenuClient.h:
  6063. * WebCoreSupport/WebContextMenuClient.mm:
  6064. (WebContextMenuClient::searchWithGoogle): Call into WebView to
  6065. search in Google.
  6066. * WebView/WebViewInternal.h: Make _searchWithGoogleFromMenu
  6067. available.
  6068. 2007-01-09 Timothy Hatcher <timothy@apple.com>
  6069. Reviewed by Darin.
  6070. Rename the now ObjC++ files to be .mm and remove the explicit file types.
  6071. * DOM/WebDOMOperations.m: Removed.
  6072. * DefaultDelegates/WebDefaultContextMenuDelegate.m: Removed.
  6073. * English.lproj/StringsNotToBeLocalized.txt:
  6074. * Misc/WebCoreStatistics.m: Removed.
  6075. * Misc/WebElementDictionary.m: Removed.
  6076. * Misc/WebIconDatabase.m: Removed.
  6077. * Misc/WebNSAttributedStringExtras.m: Removed.
  6078. * Misc/WebNSPasteboardExtras.m: Removed.
  6079. * Plugins/WebNetscapePluginEmbeddedView.m: Removed.
  6080. * Plugins/WebNullPluginView.m: Removed.
  6081. * Plugins/WebPluginContainerCheck.m: Removed.
  6082. * WebCoreSupport/WebViewFactory.m: Removed.
  6083. * WebKit.xcodeproj/project.pbxproj:
  6084. * WebView/WebArchiver.m: Removed.
  6085. * WebView/WebHTMLRepresentation.m: Removed.
  6086. * WebView/WebHTMLView.m: Removed.
  6087. * WebView/WebRenderNode.m: Removed.
  6088. * WebView/WebResource.m: Removed.
  6089. * WebView/WebScriptDebugDelegate.m: Removed.
  6090. 2007-01-09 Maciej Stachowiak <mjs@apple.com>
  6091. Reviewed by Darin.
  6092. - remove window display throttling code; no longer used
  6093. * Misc/WebNSWindowExtras.h:
  6094. * Misc/WebNSWindowExtras.m:
  6095. * WebView/WebFrameView.mm:
  6096. (-[WebFrameView initWithFrame:]):
  6097. * WebView/WebPreferenceKeysPrivate.h:
  6098. 2007-01-08 Anders Carlsson <acarlsson@apple.com>
  6099. Reviewed by Brady.
  6100. Remove bridge functions that are implemented directly in FrameLoader now.
  6101. * WebCoreSupport/WebFrameBridge.mm:
  6102. 2007-01-08 Sam Weinig <sam@webkit.org>
  6103. Reviewed by Mark.
  6104. Adds default value for outline-color and fixes default
  6105. values of the recently fixed *-color properties.
  6106. * WebInspector/webInspector/inspector.js:
  6107. 2007-01-08 Beth Dakin <bdakin@apple.com>
  6108. Reviewed by Adam.
  6109. Fix for http://bugs.webkit.org/show_bug.cgi?id=12161 REGRESSION:
  6110. Crash when control-clicking on an image for contextual menu
  6111. * WebView/WebHTMLView.m:
  6112. (-[WebHTMLView menuForEvent:]): We need to nil-check coreMenu since
  6113. it will be nil if the DOM popped up a menu instead. I cleaned up
  6114. the function to make all the nil checks early returns instead of
  6115. nesting all of the content. Also moved the autorelease to be with
  6116. the creation of the menu instead of at the return.
  6117. 2007-01-08 Sam Weinig <sam@webkit.org>
  6118. Reviewed by Tim H.
  6119. Adds default value for -webkit-box-shadow and fixes default
  6120. value of -webkit-column-count to be "auto". Also sorts the
  6121. list of defaults.
  6122. * WebInspector/webInspector/inspector.js:
  6123. 2007-01-08 Andrew Wellington <proton@wiretapped.net>
  6124. Reviewed by Mark.
  6125. * WebInspector/webInspector/inspector.js: Hide default values of
  6126. -webkit-column styles in WebInspector.
  6127. 2007-01-05 Darin Adler <darin@apple.com>
  6128. Reviewed by Hyatt.
  6129. * Misc/WebNSAttributedStringExtras.m:
  6130. (+[NSAttributedString _web_attributedStringFromRange:]):
  6131. Updated to use new list marker text API that is String rather than
  6132. DeprecatedString. Also removed code to do text form of non-text list
  6133. markers since the list marker class now deals with that.
  6134. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  6135. Reviewed by Darin.
  6136. Fix build.
  6137. * WebCoreSupport/WebFrameLoaderClient.h:
  6138. * WebCoreSupport/WebFrameLoaderClient.mm:
  6139. (WebFrameLoaderClient::dispatchCreatePage):
  6140. 2007-01-05 Anders Carlsson <acarlsson@apple.com>
  6141. Reviewed by Maciej.
  6142. The data returned is now a SharedBuffer so wrap it in an NSData object.
  6143. * WebView/WebDataSource.mm:
  6144. (-[WebDataSource data]):
  6145. 2007-01-04 Adam Roben <aroben@apple.com>
  6146. Reviewed by Geoff, cheered by others.
  6147. Dead code elimination.
  6148. * WebView/WebHTMLView.m:
  6149. 2007-01-04 Adam Roben <aroben@apple.com>
  6150. Boo on me for undoing Beth's hard work.
  6151. * WebView/WebHTMLView.m:
  6152. (-[WebHTMLView menuForEvent:]): Undo a mistaken roll out of r18597.
  6153. 2007-01-04 David Kilzer <ddkilzer@webkit.org>
  6154. Reviewed by Brady.
  6155. - fix http://bugs.webkit.org/show_bug.cgi?id=12111
  6156. Uninitialized variable in -[WebDefaultPolicyDelegate webView:decidePolicyForMIMEType:request:frame:decisionListener:]
  6157. * DefaultDelegates/WebDefaultPolicyDelegate.m: Initialize isDirectory.
  6158. 2007-01-04 Adam Roben <aroben@apple.com>
  6159. Reviewed by Geoff.
  6160. Remove WebKit/AppKit from handling tabbing between subframes.
  6161. * WebCoreSupport/WebChromeClient.h: Added new ChromeClient methods for
  6162. moving focus out of the WebView.
  6163. * WebCoreSupport/WebChromeClient.mm: Ditto.
  6164. (WebChromeClient::canTakeFocus):
  6165. (WebChromeClient::takeFocus):
  6166. * WebCoreSupport/WebFrameBridge.mm:
  6167. (-[WebFrameBridge webView]): Added null-check of m_frame.
  6168. * WebView/WebHTMLView.m: Removed -[WebHTMLView nextValidKeyView].
  6169. (-[WebHTMLView _updateActiveState]): Changed to focus the frame if
  6170. WebCore believes it to be the focused frame.
  6171. (-[WebHTMLView becomeFirstResponder]): Rewrote to call into
  6172. FocusController to place focus correctly within the WebView.
  6173. 2007-01-04 Anders Carlsson <acarlsson@apple.com>
  6174. Reviewed by Brady.
  6175. FrameLoaderClient changed yet again.
  6176. * WebCoreSupport/WebFrameLoaderClient.h:
  6177. * WebCoreSupport/WebFrameLoaderClient.mm:
  6178. (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  6179. (WebFrameLoaderClient::dispatchWillSendRequest):
  6180. 2007-01-04 Anders Carlsson <acarlsson@apple.com>
  6181. Reviewed by Adam.
  6182. FrameLoaderClient changed again.
  6183. * WebCoreSupport/WebFrameLoaderClient.h:
  6184. * WebCoreSupport/WebFrameLoaderClient.mm:
  6185. (WebFrameLoaderClient::download):
  6186. (WebFrameLoaderClient::willUseArchive):
  6187. 2007-01-04 Beth Dakin <bdakin@apple.com>
  6188. Reviewed by Adam.
  6189. No need to hit test twice.
  6190. * WebView/WebHTMLView.m:
  6191. (-[WebHTMLView menuForEvent:]):
  6192. 2007-01-04 Beth Dakin <bdakin@apple.com>
  6193. Reviewed by Adam.
  6194. Turn on WebCore context menus. Delete a bunch of WebKit context
  6195. menu code that is no longer needed.
  6196. * DefaultDelegates/WebDefaultContextMenuDelegate.m: Removed a lot
  6197. of code from this class. This class only still needs to exist for
  6198. PDF context menus, so we only need to deal with the menu items that
  6199. might possibly be added to a PDF context menu.
  6200. (-[WebDefaultUIDelegate
  6201. menuItemWithTag:target:representedObject:]): Same.
  6202. (-[WebDefaultUIDelegate
  6203. webView:contextMenuItemsForElement:defaultMenuItems:]): Same.
  6204. * WebCoreSupport/WebContextMenuClient.h: Name change and have the
  6205. former getCustomMenuFromDefaultItems function return the
  6206. PlatformMenuDescription since it feels funny to have the client set
  6207. the new platform description.
  6208. * WebCoreSupport/WebContextMenuClient.mm: Same.
  6209. (WebContextMenuClient::getCustomMenuFromDefaultItems): Same. Also
  6210. move in some code that used to be in _menuForElement.
  6211. * WebView/WebHTMLView.m: Deleted a bunch of un-used functions
  6212. (-[WebHTMLView menuForEvent:]): Turn on menus, and append the
  6213. Inspect Element item.
  6214. * WebView/WebHTMLViewPrivate.h: Deleted a bunch of un-used
  6215. functions.
  6216. * WebView/WebView.mm:
  6217. (-[WebView _menuForElement:defaultItems:]): Removed a lot of code
  6218. from _menuForElement that now makes more sense elsewhere. Only PDF
  6219. context menus use this function now. Hopefully we can just get rid
  6220. of it soon, too.
  6221. 2007-01-04 Anders Carlsson <acarlsson@apple.com>
  6222. Reviewed by Brady.
  6223. Update for WebCore changes.
  6224. * WebCoreSupport/WebFrameLoaderClient.h:
  6225. * WebCoreSupport/WebFrameLoaderClient.mm:
  6226. (WebFrameLoaderClient::download):
  6227. (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  6228. (WebFrameLoaderClient::dispatchWillSendRequest):
  6229. (WebFrameLoaderClient::dispatchDidReceiveResponse):
  6230. (WebFrameLoaderClient::incrementProgress):
  6231. 2007-01-04 Peter Kasting <pkasting@google.com>
  6232. Reviewed by Alexey.
  6233. http://bugs.webkit.org/show_bug.cgi?id=11900:
  6234. Windows build bustage
  6235. * COM/ChromeClientWin.cpp:
  6236. (ChromeClientWin::addMessageToConsole):
  6237. (ChromeClientWin::runBeforeUnloadConfirmPanel):
  6238. * COM/ChromeClientWin.h:
  6239. * COM/ContextMenuClientWin.cpp:
  6240. (ContextMenuClientWin::contextMenuItemSelected):
  6241. * COM/ContextMenuClientWin.h:
  6242. * COM/WebFrameLoaderClient.cpp:
  6243. (WebFrameLoaderClient::setDocumentViewFromPageCache):
  6244. (WebFrameLoaderClient::forceLayout):
  6245. (WebFrameLoaderClient::forceLayoutForNonHTML):
  6246. (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad):
  6247. (WebFrameLoaderClient::updateGlobalHistoryForReload):
  6248. (WebFrameLoaderClient::shouldGoToHistoryItem):
  6249. (WebFrameLoaderClient::saveScrollPositionAndViewStateToItem):
  6250. (WebFrameLoaderClient::restoreScrollPositionAndViewState):
  6251. (WebFrameLoaderClient::provisionalLoadStarted):
  6252. (WebFrameLoaderClient::saveDocumentViewToPageCache):
  6253. (WebFrameLoaderClient::canCachePage):
  6254. * COM/WebFrameLoaderClient.h:
  6255. * WebKit.vcproj/WebKit.vcproj:
  6256. 2007-01-03 John Sullivan <sullivan@apple.com>
  6257. * WebView/WebPDFView.mm:
  6258. (-[WebPDFView _openWithFinder:]):
  6259. Tiger build fix: use [NSNumber initWithInt:] rather than the new [NSNumber initWithInteger:]
  6260. 2007-01-03 John Sullivan <sullivan@apple.com>
  6261. Reviewed by Kevin Decker
  6262. - fixed <rdar://problem/4145714> WebKit's PDFView's "Open in Preview" puts the
  6263. PDF in /tmp, both group and world-readable
  6264. * WebView/WebPDFView.mm:
  6265. (-[WebPDFView _openWithFinder:]):
  6266. Make the file only readable by the current user
  6267. 2007-01-03 Beth Dakin <bdakin@apple.com>
  6268. Reviewed by John.
  6269. Make localized strings for all of the context menu item titles that
  6270. are accessible to WebCore.
  6271. * English.lproj/Localizable.strings:
  6272. * WebCoreSupport/WebViewFactory.m:
  6273. (-[WebViewFactory contextMenuItemTagOpenLinkInNewWindow]):
  6274. (-[WebViewFactory contextMenuItemTagDownloadLinkToDisk]):
  6275. (-[WebViewFactory contextMenuItemTagCopyLinkToClipboard]):
  6276. (-[WebViewFactory contextMenuItemTagOpenImageInNewWindow]):
  6277. (-[WebViewFactory contextMenuItemTagDownloadImageToDisk]):
  6278. (-[WebViewFactory contextMenuItemTagCopyImageToClipboard]):
  6279. (-[WebViewFactory contextMenuItemTagOpenFrameInNewWindow]):
  6280. (-[WebViewFactory contextMenuItemTagCopy]):
  6281. (-[WebViewFactory contextMenuItemTagGoBack]):
  6282. (-[WebViewFactory contextMenuItemTagGoForward]):
  6283. (-[WebViewFactory contextMenuItemTagStop]):
  6284. (-[WebViewFactory contextMenuItemTagReload]):
  6285. (-[WebViewFactory contextMenuItemTagCut]):
  6286. (-[WebViewFactory contextMenuItemTagPaste]):
  6287. (-[WebViewFactory contextMenuItemTagNoGuessesFound]):
  6288. (-[WebViewFactory contextMenuItemTagIgnoreSpelling]):
  6289. (-[WebViewFactory contextMenuItemTagLearnSpelling]):
  6290. (-[WebViewFactory contextMenuItemTagSearchInSpotlight]):
  6291. (-[WebViewFactory contextMenuItemTagSearchWeb]):
  6292. (-[WebViewFactory contextMenuItemTagLookUpInDictionary]):
  6293. (-[WebViewFactory contextMenuItemTagOpenLink]):
  6294. (-[WebViewFactory contextMenuItemTagIgnoreGrammar]):
  6295. (-[WebViewFactory contextMenuItemTagSpellingMenu]):
  6296. (-[WebViewFactory contextMenuItemTagShowSpellingPanel:]):
  6297. (-[WebViewFactory contextMenuItemTagCheckSpelling]):
  6298. (-[WebViewFactory contextMenuItemTagCheckSpellingWhileTyping]):
  6299. (-[WebViewFactory contextMenuItemTagCheckGrammarWithSpelling]):
  6300. (-[WebViewFactory contextMenuItemTagFontMenu]):
  6301. (-[WebViewFactory contextMenuItemTagShowFonts]):
  6302. (-[WebViewFactory contextMenuItemTagBold]):
  6303. (-[WebViewFactory contextMenuItemTagItalic]):
  6304. (-[WebViewFactory contextMenuItemTagUnderline]):
  6305. (-[WebViewFactory contextMenuItemTagOutline]):
  6306. (-[WebViewFactory contextMenuItemTagStyles]):
  6307. (-[WebViewFactory contextMenuItemTagShowColors]):
  6308. (-[WebViewFactory contextMenuItemTagSpeechMenu]):
  6309. (-[WebViewFactory contextMenuItemTagStartSpeaking]):
  6310. (-[WebViewFactory contextMenuItemTagStopSpeaking]):
  6311. (-[WebViewFactory contextMenuItemTagWritingDirectionMenu]):
  6312. (-[WebViewFactory contextMenuItemTagDefaultDirection]):
  6313. (-[WebViewFactory contextMenuItemTagLeftToRight]):
  6314. (-[WebViewFactory contextMenuItemTagRightToLeft]):
  6315. 2007-01-03 Brady Eidson <beidson@apple.com>
  6316. Reviewed by John Sullivan
  6317. In the Bookmarks View/History View, favicon may be the incorrect size
  6318. * History/WebHistoryItem.mm:
  6319. (-[WebHistoryItem icon]): Call to the WebIconDatabase until a WebCore issue is resolved
  6320. 2007-01-03 Adele Peterson <adele@apple.com>
  6321. Reviewed by Darin.
  6322. - Fix for <rdar://problem/4455147> Safari allows division slash character in URLs, which looks like slash character (not fixed by IDNScriptWhiteList.txt)
  6323. * Misc/WebNSURLExtras.m: (allCharactersInIDNScriptWhiteList): Always disallow the division slash character.
  6324. 2007-01-02 Brady Eidson <beidson@apple.com>
  6325. Controversially reviewed by Tim H. and Maciej
  6326. Fixes http://bugs.webkit.org/show_bug.cgi?id=12086, http://bugs.webkit.org/show_bug.cgi?id=12088,
  6327. possibly http://bugs.webkit.org/show_bug.cgi?id=12087, and probably a slew of others
  6328. WebHistoryItems returned from the WebBackForwardList accessors were being release/retained out-of-order
  6329. by the Safari app. This bug never surfaced before because the WebBackForwardList had a retain on the
  6330. item, preventing deallocation. Since the items are now just temporary wrappers, the list
  6331. is no longer actually retaining them.
  6332. This solution is to simulate the ownership with a [[id retain] autorelease] - gross, but maybe the
  6333. only solution for now... =/
  6334. We can possibly consider reverting this fix at a later date - that task is marked by
  6335. <rdar://problem/4905705>
  6336. * History/WebBackForwardList.mm:
  6337. (-[WebBackForwardList backItem]):
  6338. (-[WebBackForwardList currentItem]):
  6339. (-[WebBackForwardList forwardItem]):
  6340. (-[WebBackForwardList itemAtIndex:]):
  6341. 2007-01-02 Beth Dakin <bdakin@apple.com>
  6342. Reviewed by Geoff.
  6343. Remove un-used function.
  6344. * WebCoreSupport/WebContextMenuClient.h:
  6345. * WebCoreSupport/WebContextMenuClient.mm:
  6346. 2007-01-02 Brady Eidson <beidson@apple.com>
  6347. Reviewed extensively and repeatedly by Darin
  6348. <rdar://problem/4887137> - WebCore Back/Forward Cache
  6349. Most things not specifically commented on in the ChangeLog can be summed up as
  6350. "Do things exactly the same way as we used to, but just stick in WebCore-land as much as possible"
  6351. * History/WebBackForwardList.mm:
  6352. (kitPrivate): Convenience functions to help with subbing "WebBackForwardListPrivate" for WebCore::BackForwardList
  6353. (core):
  6354. (backForwardListWrappers): A HashMap pattern used to map WebCore objects to their WebKit counterpart
  6355. (kit):
  6356. (+[WebBackForwardList setDefaultPageCacheSizeIfNecessary]):
  6357. (-[WebBackForwardList initWithWebCoreBackForwardList:]):
  6358. (-[WebBackForwardList init]):
  6359. (-[WebBackForwardList dealloc]):
  6360. (-[WebBackForwardList finalize]):
  6361. (-[WebBackForwardList _close]):
  6362. (-[WebBackForwardList addItem:]):
  6363. (-[WebBackForwardList removeItem:]):
  6364. (-[WebBackForwardList containsItem:]):
  6365. (-[WebBackForwardList goBack]):
  6366. (-[WebBackForwardList goForward]):
  6367. (-[WebBackForwardList goToItem:]):
  6368. (-[WebBackForwardList backItem]):
  6369. (-[WebBackForwardList currentItem]):
  6370. (-[WebBackForwardList forwardItem]):
  6371. (vectorToNSArray):
  6372. (-[WebBackForwardList backListWithLimit:]):
  6373. (-[WebBackForwardList forwardListWithLimit:]):
  6374. (-[WebBackForwardList capacity]):
  6375. (-[WebBackForwardList setCapacity:]):
  6376. (-[WebBackForwardList description]):
  6377. (-[WebBackForwardList _clearPageCache]):
  6378. (-[WebBackForwardList setPageCacheSize:]):
  6379. (-[WebBackForwardList pageCacheSize]):
  6380. (-[WebBackForwardList _usesPageCache]):
  6381. (-[WebBackForwardList backListCount]):
  6382. (-[WebBackForwardList forwardListCount]):
  6383. (-[WebBackForwardList itemAtIndex:]):
  6384. * History/WebBackForwardListInternal.h: Added.
  6385. * History/WebHistory.m: Removed.
  6386. * History/WebHistory.mm: Added - Needed to be .mm to accept C++ header style
  6387. (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
  6388. (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
  6389. * History/WebHistoryItem.mm:
  6390. (kitPrivate): Same pattern as WebBackForwardList
  6391. (core):
  6392. (historyItemWrappers):
  6393. (WKNotifyHistoryItemChanged):
  6394. (-[WebHistoryItem init]):
  6395. (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
  6396. (-[WebHistoryItem dealloc]):
  6397. (-[WebHistoryItem finalize]):
  6398. (-[WebHistoryItem copyWithZone:]):
  6399. (-[WebHistoryItem URLString]):
  6400. (-[WebHistoryItem originalURLString]):
  6401. (-[WebHistoryItem title]):
  6402. (-[WebHistoryItem setAlternateTitle:]):
  6403. (-[WebHistoryItem alternateTitle]):
  6404. (-[WebHistoryItem icon]):
  6405. (-[WebHistoryItem lastVisitedTimeInterval]):
  6406. (-[WebHistoryItem hash]):
  6407. (-[WebHistoryItem isEqual:]):
  6408. (-[WebHistoryItem description]):
  6409. (kit):
  6410. (+[WebHistoryItem entryWithURL:]):
  6411. (+[WebHistoryItem initWindowWatcherIfNecessary]):
  6412. (-[WebHistoryItem initWithURL:target:parent:title:]):
  6413. (-[WebHistoryItem initWithWebCoreHistoryItem:]):
  6414. (-[WebHistoryItem setTitle:]):
  6415. (-[WebHistoryItem setVisitCount:]):
  6416. (-[WebHistoryItem setViewState:]):
  6417. (-[WebHistoryItem _mergeAutoCompleteHints:]):
  6418. (-[WebHistoryItem initFromDictionaryRepresentation:]):
  6419. (-[WebHistoryItem scrollPoint]):
  6420. (-[WebHistoryItem _transientPropertyForKey:]):
  6421. (-[WebHistoryItem _setTransientProperty:forKey:]):
  6422. (-[WebHistoryItem dictionaryRepresentation]):
  6423. (-[WebHistoryItem target]):
  6424. (-[WebHistoryItem isTargetItem]):
  6425. (-[WebHistoryItem visitCount]):
  6426. (-[WebHistoryItem RSSFeedReferrer]):
  6427. (-[WebHistoryItem setRSSFeedReferrer:]):
  6428. (-[WebHistoryItem children]):
  6429. (-[WebHistoryItem setAlwaysAttemptToUsePageCache:]):
  6430. (-[WebHistoryItem URL]):
  6431. (-[WebHistoryItem _setLastVisitedTimeInterval:]):
  6432. (-[WebHistoryItem _lastVisitedDate]):
  6433. (-[WebHistoryItem targetItem]):
  6434. (+[WebHistoryItem _releaseAllPendingPageCaches]):
  6435. (-[WebWindowWatcher windowWillClose:]):
  6436. * History/WebHistoryItemInternal.h:
  6437. * History/WebHistoryItemPrivate.h:
  6438. * WebCoreSupport/WebFrameBridge.mm:
  6439. * WebCoreSupport/WebFrameLoaderClient.h:
  6440. * WebCoreSupport/WebFrameLoaderClient.mm:
  6441. (WebFrameLoaderClient::setDocumentViewFromPageCache):
  6442. (WebFrameLoaderClient::detachedFromParent1):
  6443. (WebFrameLoaderClient::loadedFromPageCache):
  6444. (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad):
  6445. (WebFrameLoaderClient::updateGlobalHistoryForReload):
  6446. (WebFrameLoaderClient::shouldGoToHistoryItem):
  6447. (WebFrameLoaderClient::frameLoadCompleted):
  6448. (WebFrameLoaderClient::saveScrollPositionAndViewStateToItem):
  6449. (WebFrameLoaderClient::restoreScrollPositionAndViewState):
  6450. (WebFrameLoaderClient::provisionalLoadStarted):
  6451. (WebFrameLoaderClient::setTitle):
  6452. (WebFrameLoaderClient::saveDocumentViewToPageCache):
  6453. (WebFrameLoaderClient::canCachePage):
  6454. * WebCoreSupport/WebSystemInterface.m:
  6455. (InitWebCoreSystemInterface):
  6456. * WebKit.xcodeproj/project.pbxproj:
  6457. * WebView/WebDataSource.mm:
  6458. * WebView/WebDataSourceInternal.h:
  6459. * WebView/WebFrame.mm:
  6460. (-[WebFramePrivate dealloc]):
  6461. (-[WebFrame _canCachePage]):
  6462. (-[WebFrame _loadURL:referrer:intoChild:]):
  6463. * WebView/WebFrameInternal.h:
  6464. * WebView/WebFrameView.mm:
  6465. (-[WebFrameView initWithFrame:]):
  6466. (-[WebFrameView keyDown:]):
  6467. * WebView/WebHTMLView.m:
  6468. (-[WebHTMLView closeIfNotCurrentView]): Added for a dirty hack in WebCore that is marked with a FIXME Radar
  6469. * WebView/WebHTMLViewInternal.h:
  6470. * WebView/WebView.mm:
  6471. (-[WebViewPrivate init]):
  6472. (-[WebViewPrivate dealloc]):
  6473. (-[WebView _close]):
  6474. (-[WebView _loadBackForwardListFromOtherView:]):
  6475. (-[WebView _commonInitializationWithFrameName:groupName:]):
  6476. (-[WebView initWithCoder:]):
  6477. (-[WebView backForwardList]):
  6478. (-[WebView goBack]):
  6479. (-[WebView goForward]):
  6480. (-[WebView goToBackForwardItem:]):
  6481. (-[WebView canGoBack]):
  6482. (-[WebView canGoForward]):
  6483. 2007-01-02 John Sullivan <sullivan@apple.com>
  6484. Reviewed by Kevin Decker
  6485. - fixed <rdar://problem/4892525> Cannot open PDF in Preview if you attempted to
  6486. open it in Preview while PDF was loading
  6487. * WebView/WebPDFView.mm:
  6488. (-[WebPDFView menuForEvent:]):
  6489. added comment
  6490. (-[WebPDFView validateUserInterfaceItem:]):
  6491. disable this menu item when there's no document yet
  6492. (-[WebPDFView _openWithFinder:]):
  6493. If this is invoked when there is no document yet (e.g. via the PDFKit delegate method),
  6494. just beep and return. I should make a nice error message here, but I'll do that separately.
  6495. 2007-01-03 Nikolas Zimmermann <zimmermann@kde.org>
  6496. Reviewed by Timothy.
  6497. Fix inspection of RenderSVGInlineText objects (#text nodes in SVG documents).
  6498. * WebInspector/WebInspector.m:
  6499. (-[WebInspector _highlightNode:]):
  6500. 2007-01-02 Beth Dakin <bdakin@apple.com>
  6501. Reviewed by Darin.
  6502. Fix bug with WebCore context menu item "Copy Image."
  6503. * WebCoreSupport/WebContextMenuClient.mm:
  6504. (WebContextMenuClient::copyImageToClipboard): We must call
  6505. declareTypes on the pasteboard.
  6506. 2006-12-27 Mitz Pettel <mitz@webkit.org>
  6507. Reviewed by Geoff.
  6508. - fix http://bugs.webkit.org/show_bug.cgi?id=9403
  6509. Red outline from Web Inspector appears above all other OS X windows
  6510. Made the window containing the highlight a child window of the window
  6511. containing the view.
  6512. * WebInspector/WebNodeHighlight.m:
  6513. (-[WebNodeHighlight initWithBounds:andRects:forView:]):
  6514. (-[WebNodeHighlight dealloc]):
  6515. (-[WebNodeHighlight expire]):
  6516. 2006-12-27 Matt Lilek <pewtermoose@gmail.com>
  6517. Reviewed by Tim H.
  6518. Bug 11993: REGRESSION(r18320): Web Inspector scroll bars not drawn
  6519. http://bugs.webkit.org/show_bug.cgi?id=11993
  6520. AppleVerticalScrollbar tries to set a NaN value as the scroll height which
  6521. causes DOM Exceptions after r18320. This overrides the _setObjectLength
  6522. method and checks for NaN until a system update can fix this. See rdar://4901491
  6523. * WebInspector/webInspector/inspector.html:
  6524. * WebInspector/webInspector/inspector.js:
  6525. 2006-12-27 Geoffrey Garen <ggaren@apple.com>
  6526. Reviewed by Oliver Hunt.
  6527. Fixed <rdar://problem/4901629> Crash occurs at WebCore::Frame::page()
  6528. after closing window containing flash content
  6529. No testcase because we can't open and close windows in DRT.
  6530. I can't reproduce this crash, but from the backtrace it's clear that it
  6531. occured because of a NULL frame object. Since it's valid for a frame to
  6532. be NULL, I've added NULL checks.
  6533. * Plugins/WebBaseNetscapePluginView.mm:
  6534. (-[WebBaseNetscapePluginView sendEvent:]):
  6535. (-[WebBaseNetscapePluginView requestWithURLCString:]):
  6536. (-[WebBaseNetscapePluginView getVariable:value:]):
  6537. 2006-12-27 Geoffrey Garen <ggaren@apple.com>
  6538. Reviewed by Darin Adler.
  6539. Updated <rdar://problem/4871518> fix based on Darin's comments.
  6540. Instead of searching the frame tree to retrieve the new frame, put it in
  6541. a RefPtr, and then explicitly check for its removal. This option is slightly
  6542. more efficient, and it avoids problems that can occur due to frame name collision.
  6543. * WebCoreSupport/WebFrameBridge.mm:
  6544. (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
  6545. 2006-12-26 Geoffrey Garen <ggaren@apple.com>
  6546. Reviewed by Eric Seidel.
  6547. Fixed <rdar://problem/4740328> Safari crash on quit in _NPN_ReleaseObject
  6548. from KJS::Bindings::CInstance::~CInstance
  6549. The essence of this change is that WebKit shouldn't meddle in plug-in
  6550. lifetime, since WebCore already manages it. The rest is details.
  6551. * Plugins/WebBaseNetscapePluginView.mm:
  6552. (-[WebBaseNetscapePluginView removeTrackingRect]): Autorelease our window
  6553. instead of releasing it, since we might hold the last reference to our window,
  6554. and releasing it immediately would crash AppKit.
  6555. (-[WebBaseNetscapePluginView resetTrackingRect]):
  6556. * Plugins/WebNetscapePluginEmbeddedView.h:
  6557. * Plugins/WebNetscapePluginEmbeddedView.m:
  6558. (-[WebNetscapePluginEmbeddedView dataSource]): Use our DOMElement to access
  6559. our WebFrame, since we don't keep around a direct pointer to our WebFrame
  6560. anymore.
  6561. * Plugins/WebNullPluginView.h:
  6562. * Plugins/WebNullPluginView.m:
  6563. (-[WebNullPluginView initWithFrame:error:DOMElement:]):
  6564. (-[WebNullPluginView dealloc]):
  6565. (-[WebNullPluginView viewDidMoveToWindow]): Use our DOMElement to access
  6566. our WebFrame, as above.
  6567. * WebCoreSupport/WebFrameBridge.mm: Don't call _addPlugInView because it
  6568. doesn't exist anymore. Do pass a DOMElement to WebNullPluginView's initializer,
  6569. so it can access its frame like WebNetscapePluginEmbeddedView does.
  6570. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  6571. (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
  6572. * WebCoreSupport/WebFrameLoaderClient.h:
  6573. * WebCoreSupport/WebFrameLoaderClient.mm: Removed didCloseDocument. It had
  6574. two purposes -- one unnecessary, one harmful:
  6575. (1) NULL out plug-ins' weak references to their frames. Unnecessary. Having
  6576. plug-ins access their frames through their DOM elements solves this problem.
  6577. (2) Unload plug-ins. Harmful. If a plug-in unloads before WebCore is done
  6578. with it, WebCore will access unmapped memory. Also unnecessary. WebCore
  6579. Widgets take care of calling -removeFromSuperview on their NSViews, which
  6580. is sufficient for stopping plug-ins.
  6581. * WebKit.xcodeproj/project.pbxproj: Made WebNullPluginView.m ObjC++.
  6582. * WebView/WebFrame.mm: Removed _addPlugInView, since it was only used to
  6583. call -setWebFrame, which is gone.
  6584. (-[WebFramePrivate dealloc]):
  6585. * WebView/WebFrameInternal.h: Removed plugInViews, since it was only used
  6586. by _addPlugInView, which is gone.
  6587. 2006-12-26 Geoffrey Garen <ggaren@apple.com>
  6588. Reviewed by Eric Seidel.
  6589. Some cleanup in preparation for fixing <rdar://problem/4740328> Safari
  6590. crash on quit in _NPN_ReleaseObject from KJS::Bindings::CInstance::~CInstance
  6591. Renamed "installedPlugins" to "sharedDatabase." This better follows
  6592. the Cocoa naming scheme, and calls out the key attribute that produced this
  6593. crash -- namely, that the database is shared throughout the process.
  6594. -installedPlugins is actually a part of SPI, but a global search showed
  6595. that it had no users.
  6596. * Plugins/WebPluginDatabase.h:
  6597. * Plugins/WebPluginDatabase.m:
  6598. (+[WebPluginDatabase sharedDatabase]):
  6599. (-[WebPluginDatabase refresh]):
  6600. (-[WebPluginDatabase _plugInPaths]):
  6601. (-[WebPluginDatabase _removePlugin:]):
  6602. * WebCoreSupport/WebViewFactory.m:
  6603. (-[WebViewFactory pluginsInfo]):
  6604. (-[WebViewFactory refreshPlugins:]):
  6605. (-[WebViewFactory pluginSupportsMIMEType:]):
  6606. * WebView/WebView.mm:
  6607. (+[WebView _supportedMIMETypes]):
  6608. (+[WebView _viewClass:andRepresentationClass:forMIMEType:]):
  6609. (-[WebView _close]):
  6610. (-[WebView _pluginForMIMEType:]):
  6611. (-[WebView _pluginForExtension:]):
  6612. (-[WebView _isMIMETypeRegisteredAsPlugin:]):
  6613. 2006-12-25 Geoffrey Garen <ggaren@apple.com>
  6614. Reviewed by Adam Roben.
  6615. Fixed <rdar://problem/4778898> REGRESSION: crash in getInstanceForView()
  6616. when quitting from kcbs.com
  6617. No testcase because we can't open and close windows in DRT.
  6618. The crash was caused by deallocating plug-ins that were later referenced
  6619. in the unload event handler.
  6620. * Plugins/WebBaseNetscapePluginView.mm: Don't call stop on ourselves because
  6621. we may destroy our plugin before the unload handler fires. Also, we don't
  6622. need to, since didCloseDocument will do it for us.
  6623. (-[WebBaseNetscapePluginView addWindowObservers]): We don't need to listen
  6624. for windowWillClose anymore, since we don't want to call -stop on ourselves.
  6625. (-[WebBaseNetscapePluginView removeWindowObservers]): ditto.
  6626. * WebCoreSupport/WebFrameLoaderClient.h:
  6627. * WebCoreSupport/WebFrameLoaderClient.mm:
  6628. (WebFrameLoaderClient::didCloseDocument): Renamed from "willCloseDocument."
  6629. 2006-12-25 Geoffrey Garen <ggaren@apple.com>
  6630. More "plugin" => "pluginPackage" renaming that I forgot to check in.
  6631. * Plugins/WebBaseNetscapePluginView.h:
  6632. * Plugins/WebBaseNetscapePluginView.mm:
  6633. (-[WebBaseNetscapePluginView setPluginPackage:]):
  6634. * Plugins/WebNetscapePluginEmbeddedView.h:
  6635. * Plugins/WebNetscapePluginEmbeddedView.m:
  6636. (-[WebNetscapePluginEmbeddedView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
  6637. * WebCoreSupport/WebFrameBridge.mm:
  6638. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  6639. (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
  6640. 2006-12-25 Geoffrey Garen <ggaren@apple.com>
  6641. Reviewed by Eric Seidel.
  6642. Fixed crash when opening view source window.
  6643. * WebView/WebView.mm:
  6644. (-[WebView initWithCoder:]): Don't use the WebView until calling
  6645. _commonInitialization...
  6646. 2006-12-25 Geoffrey Garen <ggaren@apple.com>
  6647. Reviewed by Oliver Hunt.
  6648. Removed WebCoreSettings, cleaned up WebCore::Settings.
  6649. * WebView/WebFrame.mm: Added helper functions for converting between
  6650. WebKitEditableLinkBehavior and WebCore::EditableLinkBehavior. I'm not sure
  6651. that this is the best place for these functions, but it's where all the
  6652. other functions like them reside.
  6653. (core):
  6654. (kit):
  6655. * WebView/WebFrameInternal.h:
  6656. * WebView/WebView.mm: Removed uses of WebCoreSettings. Replaced with direct
  6657. use of underlying page's settings.
  6658. 2006-12-25 Geoffrey Garen <ggaren@apple.com>
  6659. Reviewed by Oliver Hunt.
  6660. Some refactoring in preparation for fixing <rdar://problem/4778898>
  6661. REGRESSION: crash in getInstanceForView() when quitting from kcbs.com
  6662. Two renames:
  6663. - "plugin" => "pluginPackage" (since the type is WebNetscapePluginPackage *)
  6664. - "instance" and/or "pluginPointer" => plugin (since NPP is an opaque handle to a plug-in)
  6665. Removed braces around single-line 'if' statements.
  6666. Made plugin a pointer instead of an inline ivar. This allows us to NULL
  6667. it out once we call NPP_Destroy on it.
  6668. Added helper functions for creating and destroying plugin. The destroy function
  6669. NULLs out plugin, which helps with debugging.
  6670. (-[WebBaseNetscapePluginView willCallPlugInFunction]): Added an ASSERT
  6671. to catch attempts to call functions on destroyed plug-ins.
  6672. (-[WebBaseNetscapePluginView _createPlugin]): New helper function.
  6673. (-[WebBaseNetscapePluginView _destroyPlugin]): New helper function.
  6674. 2006-12-24 David Kilzer <ddkilzer@webkit.org>
  6675. Removed empty directory.
  6676. * WebKit/Loader: Removed.
  6677. 2006-12-22 Geoffrey Garen <ggaren@apple.com>
  6678. Reviewed by Brady Eidson.
  6679. Fixed <rdar://problem/4871518> Leopard9A321: Crash visiting www.audible.com
  6680. (WebCore::FrameLoader::loadSubframe)
  6681. * WebCoreSupport/WebFrameBridge.mm:
  6682. (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
  6683. - The fix:
  6684. Changed to re-fetch the child frame we're trying to load before returning it,
  6685. since its onload handler may have removed it from the document. This
  6686. allows us to treat a removed frame like a frame that never loaded.
  6687. - Plus some cleanup:
  6688. - Changed to return a WebCore::Frame* instead of a WebFrameBridge *,
  6689. to simplify some code.
  6690. - Grouped ObjC objects by usage, and moved calls to -release so that they
  6691. immediately follow the calls that retain.
  6692. 2006-12-21 John Sullivan <sullivan@apple.com>
  6693. Reviewed by Geoff Garen
  6694. - improved concept and implementation of my previous checkin after discussing with Darin
  6695. * WebView/WebViewPrivate.h:
  6696. * WebView/WebView.mm:
  6697. (-[WebView setHoverFeedbackSuspended:]):
  6698. renamed from setIgnoresMouseMovedEvents, and now tells the main WebHTMLView (if any) that this state has
  6699. changed. Telling just the main WebHTMLView is a bit of an implementation hack. Hopefully someday we can
  6700. rework the document architecture and make this kind of thing less hacky (but this is following existing
  6701. customs, so I don't feel too bad)
  6702. (-[WebView isHoverFeedbackSuspended]):
  6703. renamed from ignoresMouseMovedEvents
  6704. * WebView/WebHTMLViewInternal.h:
  6705. declare _hoverFeedbackSuspendedChanged
  6706. * WebView/WebHTMLView.m:
  6707. (-[WebHTMLView _updateMouseoverWithEvent:]):
  6708. test the webView's state of the hit-tested WebHTMLView rather than self
  6709. (-[WebHTMLView _hoverFeedbackSuspendedChanged]):
  6710. generate a fake mouse-moved event, which simulates the mouse moving away from
  6711. the current element or back over it
  6712. 2006-12-21 Darin Adler <darin@apple.com>
  6713. Reviewed by Oliver.
  6714. * WebInspector/webInspector/inspector.js: Added default values for the new CSS
  6715. properties so they don't appear in the inspector when their values are
  6716. uninteresting.
  6717. 2006-12-21 John Sullivan <sullivan@apple.com>
  6718. Reviewed by Geoff Garen
  6719. - added WebKit support for making a web page temporarily ignore mouse movements
  6720. * WebView/WebViewPrivate.h:
  6721. declare ignoresMouseMovedEvents and setIgnoresMouseMovedEvents:
  6722. * WebView/WebView.mm:
  6723. added ignoresMouseMovedEvents boolean field to _private data structure
  6724. (-[WebView setIgnoresMouseMovedEvents:]):
  6725. set new boolean field
  6726. (-[WebView ignoresMouseMovedEvents]):
  6727. return new boolean field
  6728. * WebView/WebHTMLView.m:
  6729. (-[WebHTMLView _updateMouseoverWithEvent:]):
  6730. bail out right away if [[self _webView] ignoresMouseMovedEvents]
  6731. 2006-12-21 Mark Rowe <bdash@webkit.org>
  6732. Reviewed by Geoff.
  6733. http://bugs.webkit.org/show_bug.cgi?id=11888
  6734. Bug 11888: REGRESSION (r18320): Web Inspector panes broken
  6735. * WebInspector/webInspector/inspector.js: Use removeProperty to reset a style property to its
  6736. initial value. Bail out early from updateNodePane if Inspector has not yet been set.
  6737. 2006-12-19 John Sullivan <sullivan@apple.com>
  6738. Reviewed by Darin
  6739. - fix for unrepro infinite recursion bug:
  6740. <rdar://problem/4448181> CrashTracer: 154 crashes in Safari at com.apple.AppKit:
  6741. -[NSView isDescendantOf:] + 24; infinite recursion in makeFirstResponder logic
  6742. * WebView/WebView.mm:
  6743. added becomingFirstResponder BOOL to private struct
  6744. (-[WebView becomeFirstResponder]):
  6745. use _private->becomingFirstResponder to guard against infinite recursion; complain on
  6746. debug builds if we run into this problem
  6747. 2006-12-19 Timothy Hatcher <timothy@apple.com>
  6748. Reviewed by Darin.
  6749. <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features
  6750. * WebKit.xcodeproj/project.pbxproj:
  6751. 2006-12-18 Ada Chan <adachan@apple.com>
  6752. Reviewed by Adam.
  6753. Moved canRunBeforeUnloadConfirmPanel, runBeforeUnloadConfirmPanel, and closeWindowSoon
  6754. from WebCoreFrameBridge to Chrome.
  6755. * COM/ChromeClientWin.cpp:
  6756. (ChromeClientWin::canRunBeforeUnloadConfirmPanel):
  6757. (ChromeClientWin::runBeforeUnloadConfirmPanel):
  6758. (ChromeClientWin::closeWindowSoon):
  6759. * COM/ChromeClientWin.h:
  6760. * WebCoreSupport/WebChromeClient.h:
  6761. * WebCoreSupport/WebChromeClient.mm:
  6762. (WebChromeClient::canRunBeforeUnloadConfirmPanel):
  6763. (WebChromeClient::runBeforeUnloadConfirmPanel):
  6764. (WebChromeClient::closeWindowSoon):
  6765. * WebCoreSupport/WebFrameBridge.mm:
  6766. 2006-12-18 Alice Liu <alice.liu@apple.com>
  6767. Reviewed by Adam.
  6768. Have the Editor handle deletion instead of WebHTMLView
  6769. * WebKitPrefix.h:
  6770. Turned on WebCore deletion
  6771. * WebView/WebHTMLViewInternal.h:
  6772. Moved ownership of startNewKillRingSequence to the WebCore::Editor
  6773. * WebView/WebHTMLView.m:
  6774. (-[NSArray becomeFirstResponder]):
  6775. Use the Editor's startNewKillRingSequence flag
  6776. (-[NSArray deleteForward:]):
  6777. (-[NSArray deleteBackward:]):
  6778. (-[NSArray deleteWordForward:]):
  6779. (-[NSArray deleteWordBackward:]):
  6780. (-[NSArray deleteToBeginningOfLine:]):
  6781. (-[NSArray deleteToEndOfLine:]):
  6782. (-[NSArray deleteToBeginningOfParagraph:]):
  6783. (-[NSArray deleteToEndOfParagraph:]):
  6784. (-[NSArray deleteToMark:]):
  6785. use Editor::deleteWithDirection instead of WebHTMLView's
  6786. 2006-12-16 Adele Peterson <adele@apple.com>
  6787. Reviewed by Adam.
  6788. WebKit part of fix for:
  6789. <rdar://problem/4463829> Switch to use new search field implementation for <input type="search">
  6790. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Initialize WKDrawTextFieldCellFocusRing.
  6791. * WebInspector/webInspector/inspector.css: Set -webkit-user-select:text and text-shadow:none on the search field.
  6792. These are both properties that we didn't honor in the old control, and the inherited values didn't work or look right.
  6793. 2006-12-16 Beth Dakin <bdakin@apple.com>
  6794. Reviewed by Adam.
  6795. WebKit side of making WebCore context menus support state and
  6796. enabled/disabled.
  6797. * WebCoreSupport/WebContextMenuClient.h: contextMenuItemSelected
  6798. takes a pointer to the parentMenu now since menu items no longer
  6799. hold onto it.
  6800. * WebCoreSupport/WebContextMenuClient.mm: Same.
  6801. (WebContextMenuClient::contextMenuItemSelected): Same.
  6802. * WebView/WebHTMLView.m: Must call setAutoenablesItems:NO on our
  6803. menu.
  6804. (-[NSArray menuForEvent:]):
  6805. * WebView/WebUIDelegatePrivate.h: No need for if-def.
  6806. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  6807. Reviewed by Geoff.
  6808. Update for WebCore changes.
  6809. * WebCoreSupport/WebFrameLoaderClient.h:
  6810. * WebCoreSupport/WebFrameLoaderClient.mm:
  6811. (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
  6812. * WebView/WebDataSource.mm:
  6813. (-[WebDataSource response]):
  6814. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  6815. Reviewed by Darin.
  6816. Update for WebCore changes.
  6817. * WebCoreSupport/WebFrameLoaderClient.h:
  6818. * WebCoreSupport/WebFrameLoaderClient.mm:
  6819. (WebFrameLoaderClient::willUseArchive):
  6820. * WebView/WebDataSource.mm:
  6821. (-[WebDataSource _URLForHistory]):
  6822. 2006-12-15 Marvin Decker <marv.decker@gmail.com>
  6823. Reviewed by Darin and Alexey.
  6824. Fix the Windows build, move various Client implementations out of
  6825. WebCore and into WebKit.
  6826. * COM/ChromeClientWin.cpp: Added.
  6827. (ChromeClientWin::~ChromeClientWin):
  6828. (ChromeClientWin::chromeDestroyed):
  6829. (ChromeClientWin::setWindowRect):
  6830. (ChromeClientWin::windowRect):
  6831. (ChromeClientWin::pageRect):
  6832. (ChromeClientWin::scaleFactor):
  6833. (ChromeClientWin::focus):
  6834. (ChromeClientWin::unfocus):
  6835. (ChromeClientWin::createWindow):
  6836. (ChromeClientWin::createModalDialog):
  6837. (ChromeClientWin::show):
  6838. (ChromeClientWin::canRunModal):
  6839. (ChromeClientWin::runModal):
  6840. (ChromeClientWin::setToolbarsVisible):
  6841. (ChromeClientWin::toolbarsVisible):
  6842. (ChromeClientWin::setStatusbarVisible):
  6843. (ChromeClientWin::statusbarVisible):
  6844. (ChromeClientWin::setScrollbarsVisible):
  6845. (ChromeClientWin::scrollbarsVisible):
  6846. (ChromeClientWin::setMenubarVisible):
  6847. (ChromeClientWin::menubarVisible):
  6848. (ChromeClientWin::setResizable):
  6849. (ChromeClientWin::addMessageToConsole):
  6850. * COM/ChromeClientWin.h: Added.
  6851. * COM/ContextMenuClientWin.cpp: Added.
  6852. (ContextMenuClientWin::~ContextMenuClientWin):
  6853. (ContextMenuClientWin::contextMenuDestroyed):
  6854. (ContextMenuClientWin::addCustomContextMenuItems):
  6855. (ContextMenuClientWin::contextMenuItemSelected):
  6856. (ContextMenuClientWin::copyLinkToClipboard):
  6857. (ContextMenuClientWin::downloadURL):
  6858. (ContextMenuClientWin::copyImageToClipboard):
  6859. (ContextMenuClientWin::lookUpInDictionary):
  6860. (ContextMenuClientWin::speak):
  6861. (ContextMenuClientWin::stopSpeaking):
  6862. * COM/ContextMenuClientWin.h: Added.
  6863. * COM/EditorClientWin.cpp: Added.
  6864. (EditorClientWin::~EditorClientWin):
  6865. (EditorClientWin::pageDestroyed):
  6866. (EditorClientWin::shouldDeleteRange):
  6867. (EditorClientWin::shouldShowDeleteInterface):
  6868. (EditorClientWin::smartInsertDeleteEnabled):
  6869. (EditorClientWin::isContinuousSpellCheckingEnabled):
  6870. (EditorClientWin::toggleContinuousSpellChecking):
  6871. (EditorClientWin::isGrammarCheckingEnabled):
  6872. (EditorClientWin::toggleGrammarChecking):
  6873. (EditorClientWin::spellCheckerDocumentTag):
  6874. (EditorClientWin::selectWordBeforeMenuEvent):
  6875. (EditorClientWin::isEditable):
  6876. (EditorClientWin::shouldBeginEditing):
  6877. (EditorClientWin::shouldEndEditing):
  6878. (EditorClientWin::shouldInsertNode):
  6879. (EditorClientWin::shouldInsertText):
  6880. (EditorClientWin::shouldApplyStyle):
  6881. (EditorClientWin::didBeginEditing):
  6882. (EditorClientWin::respondToChangedContents):
  6883. (EditorClientWin::didEndEditing):
  6884. (EditorClientWin::registerCommandForUndo):
  6885. (EditorClientWin::registerCommandForRedo):
  6886. (EditorClientWin::clearUndoRedoOperations):
  6887. (EditorClientWin::canUndo):
  6888. (EditorClientWin::canRedo):
  6889. (EditorClientWin::undo):
  6890. (EditorClientWin::redo):
  6891. * COM/EditorClientWin.h: Added.
  6892. * COM/WebFrame.cpp:
  6893. (WebFrame::WebFrame):
  6894. (WebFrame::initWithName):
  6895. * COM/WebFrame.h:
  6896. * COM/WebFrameLoaderClient.cpp: Added.
  6897. (WebFrameLoaderClient::WebFrameLoaderClient):
  6898. (WebFrameLoaderClient::~WebFrameLoaderClient):
  6899. (WebFrameLoaderClient::frameLoaderDestroyed):
  6900. (WebFrameLoaderClient::hasWebView):
  6901. (WebFrameLoaderClient::hasFrameView):
  6902. (WebFrameLoaderClient::hasBackForwardList):
  6903. (WebFrameLoaderClient::resetBackForwardList):
  6904. (WebFrameLoaderClient::provisionalItemIsTarget):
  6905. (WebFrameLoaderClient::loadProvisionalItemFromPageCache):
  6906. (WebFrameLoaderClient::invalidateCurrentItemPageCache):
  6907. (WebFrameLoaderClient::privateBrowsingEnabled):
  6908. (WebFrameLoaderClient::makeDocumentView):
  6909. (WebFrameLoaderClient::makeRepresentation):
  6910. (WebFrameLoaderClient::forceLayout):
  6911. (WebFrameLoaderClient::forceLayoutForNonHTML):
  6912. (WebFrameLoaderClient::updateHistoryForCommit):
  6913. (WebFrameLoaderClient::updateHistoryForBackForwardNavigation):
  6914. (WebFrameLoaderClient::updateHistoryForReload):
  6915. (WebFrameLoaderClient::updateHistoryForStandardLoad):
  6916. (WebFrameLoaderClient::updateHistoryForInternalLoad):
  6917. (WebFrameLoaderClient::updateHistoryAfterClientRedirect):
  6918. (WebFrameLoaderClient::setCopiesOnScroll):
  6919. (WebFrameLoaderClient::tokenForLoadErrorReset):
  6920. (WebFrameLoaderClient::resetAfterLoadError):
  6921. (WebFrameLoaderClient::doNotResetAfterLoadError):
  6922. (WebFrameLoaderClient::willCloseDocument):
  6923. (WebFrameLoaderClient::detachedFromParent1):
  6924. (WebFrameLoaderClient::detachedFromParent2):
  6925. (WebFrameLoaderClient::detachedFromParent3):
  6926. (WebFrameLoaderClient::detachedFromParent4):
  6927. (WebFrameLoaderClient::loadedFromPageCache):
  6928. (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
  6929. (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
  6930. (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
  6931. (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
  6932. (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
  6933. (WebFrameLoaderClient::dispatchWillClose):
  6934. (WebFrameLoaderClient::dispatchDidReceiveIcon):
  6935. (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
  6936. (WebFrameLoaderClient::dispatchDidReceiveTitle):
  6937. (WebFrameLoaderClient::dispatchDidCommitLoad):
  6938. (WebFrameLoaderClient::dispatchDidFinishLoad):
  6939. (WebFrameLoaderClient::dispatchDidFirstLayout):
  6940. (WebFrameLoaderClient::dispatchShow):
  6941. (WebFrameLoaderClient::cancelPolicyCheck):
  6942. (WebFrameLoaderClient::dispatchWillSubmitForm):
  6943. (WebFrameLoaderClient::dispatchDidLoadMainResource):
  6944. (WebFrameLoaderClient::clearLoadingFromPageCache):
  6945. (WebFrameLoaderClient::isLoadingFromPageCache):
  6946. (WebFrameLoaderClient::revertToProvisionalState):
  6947. (WebFrameLoaderClient::clearUnarchivingState):
  6948. (WebFrameLoaderClient::progressStarted):
  6949. (WebFrameLoaderClient::progressCompleted):
  6950. (WebFrameLoaderClient::setMainFrameDocumentReady):
  6951. (WebFrameLoaderClient::willChangeTitle):
  6952. (WebFrameLoaderClient::didChangeTitle):
  6953. (WebFrameLoaderClient::finishedLoading):
  6954. (WebFrameLoaderClient::finalSetupForReplace):
  6955. (WebFrameLoaderClient::setDefersLoading):
  6956. (WebFrameLoaderClient::isArchiveLoadPending):
  6957. (WebFrameLoaderClient::cancelPendingArchiveLoad):
  6958. (WebFrameLoaderClient::clearArchivedResources):
  6959. (WebFrameLoaderClient::canHandleRequest):
  6960. (WebFrameLoaderClient::canShowMIMEType):
  6961. (WebFrameLoaderClient::representationExistsForURLScheme):
  6962. (WebFrameLoaderClient::generatedMIMETypeForURLScheme):
  6963. (WebFrameLoaderClient::frameLoadCompleted):
  6964. (WebFrameLoaderClient::restoreScrollPositionAndViewState):
  6965. (WebFrameLoaderClient::provisionalLoadStarted):
  6966. (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
  6967. (WebFrameLoaderClient::addHistoryItemForFragmentScroll):
  6968. (WebFrameLoaderClient::didFinishLoad):
  6969. (WebFrameLoaderClient::prepareForDataSourceReplacement):
  6970. (WebFrameLoaderClient::setTitle):
  6971. (WebFrameLoaderClient::userAgent):
  6972. * COM/WebFrameLoaderClient.h: Added.
  6973. * COM/WebKitDLL.h:
  6974. * WebKit.vcproj/WebKit.vcproj:
  6975. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  6976. Reviewed by Darin.
  6977. Include ResourceError.h.
  6978. * Plugins/WebNetscapePluginStream.mm:
  6979. * WebKit.xcodeproj/project.pbxproj:
  6980. 2006-12-14 Anders Carlsson <acarlsson@apple.com>
  6981. Reviewed by Maciej.
  6982. Update for WebCore changes.
  6983. * WebCoreSupport/WebFrameLoaderClient.h:
  6984. * WebCoreSupport/WebFrameLoaderClient.mm:
  6985. (WebFrameLoaderClient::incrementProgress):
  6986. (WebFrameLoaderClient::committedLoad):
  6987. (WebFrameLoaderClient::deliverArchivedResources):
  6988. * WebView/WebView.mm:
  6989. (-[WebView _incrementProgressForIdentifier:length:]):
  6990. * WebView/WebViewInternal.h:
  6991. 2006-12-14 Timothy Hatcher <timothy@apple.com>
  6992. Reviewed by Darin.
  6993. <rdar://problem/4827549> need NSRange-based selection support exposed.
  6994. * WebView/WebFrame.mm:
  6995. (-[WebFrame _selectedNSRange]):
  6996. (-[WebFrame _selectNSRange:]):
  6997. * WebView/WebFramePrivate.h:
  6998. 2006-12-14 Anders Carlsson <acarlsson@apple.com>
  6999. Reviewed by John.
  7000. Update for WebCore changes.
  7001. * WebCoreSupport/WebFrameLoaderClient.h:
  7002. * WebCoreSupport/WebFrameLoaderClient.mm:
  7003. (WebFrameLoaderClient::dispatchDidFailLoading):
  7004. (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
  7005. (WebFrameLoaderClient::dispatchDidFailLoad):
  7006. (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
  7007. (WebFrameLoaderClient::setMainDocumentError):
  7008. (WebFrameLoaderClient::cancelledError):
  7009. (WebFrameLoaderClient::cannotShowURLError):
  7010. (WebFrameLoaderClient::interruptForPolicyChangeError):
  7011. (WebFrameLoaderClient::cannotShowMIMETypeError):
  7012. (WebFrameLoaderClient::fileDoesNotExistError):
  7013. (WebFrameLoaderClient::shouldFallBack):
  7014. 2006-12-13 Maciej Stachowiak <mjs@apple.com>
  7015. Reviewed by Anders.
  7016. - adjusted for changes from NSURLRequest to ResourceRequest
  7017. * Plugins/WebPluginController.mm:
  7018. * WebCoreSupport/WebFrameLoaderClient.h:
  7019. * WebCoreSupport/WebFrameLoaderClient.mm:
  7020. (WebFrameLoaderClient::updateHistoryForReload):
  7021. (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
  7022. (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
  7023. (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
  7024. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  7025. (WebFrameLoaderClient::startDownload):
  7026. (WebFrameLoaderClient::cannotShowURLError):
  7027. (WebFrameLoaderClient::createDocumentLoader):
  7028. * WebView/WebDataSource.mm:
  7029. (-[WebDataSource _initWithDocumentLoader:]):
  7030. (-[WebDataSource initialRequest]):
  7031. (-[WebDataSource request]):
  7032. * WebView/WebDocumentLoaderMac.h:
  7033. * WebView/WebDocumentLoaderMac.mm:
  7034. (WebDocumentLoaderMac::WebDocumentLoaderMac):
  7035. * WebView/WebFrame.mm:
  7036. (-[WebFrame _createItem:]):
  7037. (-[WebFrame _loadItem:withLoadType:]):
  7038. (-[WebFrame loadArchive:]):
  7039. 2006-12-12 Anders Carlsson <acarlsson@apple.com>
  7040. Reviewed by Darin.
  7041. * WebCoreSupport/WebFrameLoaderClient.h:
  7042. * WebCoreSupport/WebFrameLoaderClient.mm:
  7043. (WebFrameLoaderClient::download):
  7044. Get the handle and proxy from the ResourceHandle now that they aren't passed to us.
  7045. 2006-12-11 Darin Adler <darin@apple.com>
  7046. Reviewed by Brady.
  7047. - did some of the Mac-specific file moves mentioned in my recent mail to the WebKit list
  7048. * WebCoreSupport/WebFrameBridge.h: Updated for change to WebCoreKeyboardAccess.
  7049. * WebCoreSupport/WebFrameBridge.mm:
  7050. (-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]): Ditto.
  7051. (-[WebFrameBridge keyboardUIMode]): Ditto.
  7052. 2006-12-11 Beth Dakin <bdakin@apple.com>
  7053. Reviewed by Adam.
  7054. WebKit support for editing sub-menu actions.
  7055. * WebCoreSupport/WebContextMenuClient.h: New functions for the
  7056. speech sub-menu.
  7057. * WebCoreSupport/WebContextMenuClient.mm:
  7058. (WebContextMenuClient::speak):
  7059. (WebContextMenuClient::stopSpeaking):
  7060. * WebCoreSupport/WebEditorClient.h: New functions to toggle
  7061. spelling/grammar checking.
  7062. * WebCoreSupport/WebEditorClient.mm:
  7063. (WebEditorClient::toggleContinuousSpellChecking):
  7064. (WebEditorClient::toggleGrammarChecking):
  7065. * WebView/WebUIDelegatePrivate.h: Re-named some of the spelling
  7066. sub-menu tags.
  7067. 2006-12-11 Alice Liu <alice.liu@apple.com>
  7068. Reviewed by Geoff, Adam.
  7069. switch to use the Editor for copying URLs
  7070. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  7071. (-[WebDefaultUIDelegate copyLinkToClipboard:]):
  7072. Call down to the editor for this.
  7073. * WebCoreSupport/WebSystemInterface.m:
  7074. (InitWebCoreSystemInterface):
  7075. Add some calls necessary for Pasteboard::writeURL to work
  7076. 2006-12-11 Darin Adler <darin@apple.com>
  7077. Reviewed by Brady.
  7078. - http://bugs.webkit.org/show_bug.cgi?id=11794
  7079. fix lifetime problems affecting Frame's ownerElement pointer
  7080. * WebCoreSupport/WebFrameBridge.mm:
  7081. (-[WebFrameBridge finishInitializingWithPage:WebCore::frameName:frameView:ownerElement:]):
  7082. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:frameView:]):
  7083. (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
  7084. Use HTMLFrameOwnerElement.
  7085. * WebCoreSupport/WebFrameLoaderClient.mm: Include the relevant headers for the
  7086. HTMLFormElement class.
  7087. * WebKit.xcodeproj/project.pbxproj: Let Xcode have its way.
  7088. * WebView/WebFrame.mm: (-[WebFrame frameElement]): Update includes and types for the
  7089. change in return type of ownerElement.
  7090. 2006-12-11 David Harrison <harrison@apple.com>
  7091. Fix previous checkin where I committed the wrong file.
  7092. <rdar://problem/4863611> Xyle Scope crashes at launch due to WebCore-521.29.3
  7093. * WebView/WebFrame.mm:
  7094. (-[WebFrame frameElement]):
  7095. Add nil check.
  7096. * WebView/WebPreferences.m:
  7097. (-[WebPreferences editableLinkBehavior]):
  7098. Reverted to previous.
  7099. 2006-12-08 David Hyatt <hyatt@apple.com>
  7100. Land new ICU abstraction layer. Patch by Lars.
  7101. Reviewed by me
  7102. * ForwardingHeaders/wtf/icu/UnicodeIcu.h: Added.
  7103. * ForwardingHeaders/wtf/unicode/Unicode.h: Added.
  7104. * WebKit.xcodeproj/project.pbxproj:
  7105. === Safari-521.32 ===
  7106. 2006-12-08 Timothy Hatcher <timothy@apple.com>
  7107. Rolling out a change that broke Mail stationary.
  7108. <rdar://problem/4699166> REGRESSION: Background images in Mail stationery do not load
  7109. * WebView/WebUnarchivingState.m:
  7110. (-[WebUnarchivingState archivedResourceForURL:]):
  7111. 2006-12-08 Peter Kasting <pkasting@google.com>
  7112. Reviewed and landed by Alexey.
  7113. http://bugs.webkit.org/show_bug.cgi?id=11759:
  7114. Windows build bustage
  7115. * COM/WebFrame.cpp:
  7116. (WebFrame::loadDataSource):
  7117. * COM/WebFrame.h:
  7118. 2006-12-08 David Harrison <harrison@apple.com>
  7119. Reviewed by Brady.
  7120. <rdar://problem/4863611> Xyle Scope crashes at launch due to WebCore-521.29.3
  7121. * WebView/WebPreferences.m:
  7122. (-[WebPreferences editableLinkBehavior]):
  7123. Add nil check.
  7124. 2006-12-07 Beth Dakin <bdakin@apple.com>
  7125. Reviewed by Brady.
  7126. Build fix for WebCore ContextMenus. It got broken by r18046.
  7127. * WebView/WebHTMLView.m:
  7128. (-[NSArray menuForEvent:]):
  7129. 2006-12-07 Beth Dakin <bdakin@apple.com>
  7130. Reviewed by Brady.
  7131. Make some parameters const and const references.
  7132. * WebCoreSupport/WebContextMenuClient.h:
  7133. * WebCoreSupport/WebContextMenuClient.mm:
  7134. (WebContextMenuClient::contextMenuItemSelected):
  7135. (WebContextMenuClient::copyLinkToClipboard):
  7136. (WebContextMenuClient::downloadURL):
  7137. (WebContextMenuClient::copyImageToClipboard):
  7138. 2006-12-06 Brady Eidson <beidson@apple.com>
  7139. Reviewed by John Sullivan
  7140. Fixes http://bugs.webkit.org/show_bug.cgi?id=11675 and <rdar://4857669>
  7141. Now we need to explicitly set the data source when loading from a page cache
  7142. * History/WebHistoryItem.mm:
  7143. (-[WebHistoryItem _scheduleRelease]): Enhanced a logging message
  7144. (+[WebHistoryItem _releasePageCache:]): Ditto
  7145. (+[WebHistoryItem _releaseAllPendingPageCaches]): Ditto
  7146. * WebCoreSupport/WebFrameLoaderClient.mm:
  7147. (WebFrameLoaderClient::setDocumentViewFromPageCache): Reset the View's DataSource from the cache, effectively reopening it
  7148. * WebView/WebHTMLView.m:
  7149. (-[NSArray setDataSource:]): Properly Handle resetting the DataSource and "reopening" the view
  7150. 2006-12-06 Brady Eidson <beidson@apple.com>
  7151. Reviewed by Adam and Oliver
  7152. While working on http://bugs.webkit.org/show_bug.cgi?id=11675 I
  7153. decided to fix much of the null-deref problems that creeped in via
  7154. the loader refactoring. This isn't changing behavior, just reintroducing
  7155. the free nil checking we used to have with pure ObjC
  7156. * WebView/WebHTMLView.m:
  7157. (-[NSArray menuForEvent:]): Explicitly check for null frames
  7158. (-[NSArray mouseDown:]): Ditto
  7159. (-[NSArray mouseDragged:]): Ditto
  7160. (-[NSArray mouseUp:]): Ditto
  7161. (-[NSArray performKeyEquivalent:]): Ditto
  7162. (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto
  7163. 2006-12-05 John Sullivan <sullivan@apple.com>
  7164. Reviewed by Beth
  7165. Updated to match Frame -> Editor changes in WebCore
  7166. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  7167. (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
  7168. guessesForUngrammaticalSelection() is now in Editor
  7169. * WebView/WebHTMLView.m:
  7170. (-[WebHTMLView _isSelectionUngrammatical]):
  7171. isSelectionUngrammatical() is now in Editor
  7172. (-[WebHTMLView _isSelectionMisspelled]):
  7173. isSelectionMisspelled() is now in Editor
  7174. (-[WebHTMLView checkSpelling:]):
  7175. advanceToNextMisspelling() is now in Editor
  7176. (-[WebHTMLView showGuessPanel:]):
  7177. ditto
  7178. 2006-12-05 John Sullivan <sullivan@apple.com>
  7179. Reviewed by Adam
  7180. Old context-menu mechanism fix for:
  7181. <rdar://problem/4864351> Should leave out "No Guesses Found" from context menu for bad grammar
  7182. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  7183. (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
  7184. Leave out "No Guesses Found" and separator for grammar-checking case.
  7185. 2006-12-05 John Sullivan <sullivan@apple.com>
  7186. build fix
  7187. * WebView/WebViewPrivate.h:
  7188. * WebView/WebView.mm:
  7189. (-[WebView isGrammarCheckingEnabled]):
  7190. define isGrammarCheckingEnabled whether on Tiger or not (just return NO on Tiger)
  7191. 2006-12-04 John Sullivan <sullivan@apple.com>
  7192. Reviewed by Darin
  7193. WebKit part of fix for:
  7194. <rdar://problem/4817188> Context menu for bad grammar should include suggestions and "Ignore Grammar"
  7195. The context menu mechanism is currently in flux; the old mechanism is still in place, but an
  7196. up-and-coming new mechanism is waiting in the wings. I updated both of them, but couldn't
  7197. test the new mechanism because it doesn't work well enough yet. Most of this WebKit code
  7198. can be deleted when the new mechanism is in place.
  7199. * WebView/WebUIDelegatePrivate.h:
  7200. added WebMenuItemTagIgnoreGrammar
  7201. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  7202. (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
  7203. added case for WebMenuItemTagIgnoreGrammar
  7204. (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
  7205. now considers adding grammar-related items as well as spelling-related items
  7206. * WebView/WebHTMLViewPrivate.h:
  7207. declared _isSelectionUngrammatical
  7208. * WebView/WebHTMLView.m:
  7209. (-[WebHTMLView _isSelectionUngrammatical]):
  7210. new method, calls through to WebCore
  7211. (-[WebHTMLView _ignoreGrammarFromMenu:]):
  7212. new method, calls _ignoreSpellingFromMenu: since NSSpellChecker has one method for both
  7213. * English.lproj/Localizable.strings:
  7214. updated for "Ignore Grammar" menu item title
  7215. 2006-12-04 Darin Adler <darin@apple.com>
  7216. Reviewed by Adele.
  7217. * WebCoreSupport/WebFrameLoaderClient.mm:
  7218. (WebFrameLoaderClient::actionDictionary): Changed to use the new
  7219. findEventWithKeyState function in WebCore instead of a local function
  7220. in this file.
  7221. 2006-12-04 Geoffrey Garen <ggaren@apple.com>
  7222. Rolled out the WebDashboardBehaviorUseBackwardCompatibilityModeEnabled
  7223. part of my last checkin.
  7224. We have to turn on support for backward compatibility mode to avoid Dashboard
  7225. regressions in the short term.
  7226. * WebView/WebView.mm:
  7227. (-[WebView _setDashboardBehavior:to:]):
  7228. 2006-12-02 Geoffrey Garen <ggaren@apple.com>
  7229. Reviewed by Darin Adler.
  7230. Added SPI for enabling Dashboard backward compatibility mode. For now,
  7231. we enable it unconditionally for Dashboard and Dashcode. Once they
  7232. implement specific support for the backward compatibility mode behavior,
  7233. we can change that.
  7234. Set the default WebDashboardBehaviorUseBackwardCompatibilityModeEnabled
  7235. to YES in order to turn this code on.
  7236. * WebView/WebView.mm:
  7237. (-[WebView _setDashboardBehavior:to:]):
  7238. (-[WebView _dashboardBehavior:]):
  7239. * WebView/WebViewPrivate.h:
  7240. 2006-12-04 Darin Adler <darin@apple.com>
  7241. Reviewed by Alice.
  7242. * WebCoreSupport/WebEditorClient.h: Removed "_web_" prefix from
  7243. C++ userVisibleString member function.
  7244. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::userVisibleString):
  7245. Ditto.
  7246. * WebView/WebView.mm: (-[WebView selectedFrame]): Removed extra return statement.
  7247. 2006-12-04 Peter Kasting <pkasting@google.com>
  7248. Reviewed and landed by Alexey.
  7249. http://bugs.webkit.org/show_bug.cgi?id=11738:
  7250. Make link clicking work again on Windows.
  7251. The WebKit changes are to ignore WM_MOUSEMOVED messages when the mouse
  7252. hasn't actually moved, which were preventing clicks from actually
  7253. getting dispatched in many cases. It's a peculiarity of Windows mouse
  7254. handling that we receive these at all.
  7255. * COM/WebView.cpp:
  7256. (WebView::WebView):
  7257. (WebView::mouseMoved):
  7258. * COM/WebView.h:
  7259. 2006-12-04 John Sullivan <sullivan@apple.com>
  7260. Reviewed by Anders
  7261. - fixed <rdar://problem/4857833> REGRESSION: When ctrl-clicking on a misspelled word, "Ignore Spelling" and "Learn Spelling"
  7262. menu items not displayed in the contextual menu
  7263. * WebView/WebHTMLView.m:
  7264. (-[WebHTMLView _isSelectionMisspelled]):
  7265. We were computing isSelectionMisspelled by calling WebCore, but then ignoring the result and always
  7266. returning NO. D'oh!
  7267. 2006-12-01 Beth Dakin <bdakin@apple.com>
  7268. Reviewed by Adam.
  7269. Changes to support sub-menus in WebCore ContextMenus.
  7270. * WebCoreSupport/WebContextMenuClient.mm:
  7271. (WebContextMenuClient::contextMenuItemSelected):
  7272. ContextMenuItem::menu() is now called parentMenu()
  7273. * WebView/WebUIDelegatePrivate.h: New not-yet-API tags.
  7274. 2006-12-01 Darin Adler <darin@apple.com>
  7275. Reviewed by Mitz.
  7276. - fix http://bugs.webkit.org/show_bug.cgi?id=11628
  7277. REGRESSION (r17597): Command-return in native text fields doesn't open a new tab or window
  7278. * WebCoreSupport/WebFrameLoaderClient.mm:
  7279. (findKeyStateEvent): Added. Helper that finds the mouse or keyboard event in a chain
  7280. of events and their underlying events.
  7281. (findMouseEvent): Added. Same, but specifically for mouse events.
  7282. (WebFrameLoaderClient::actionDictionary): Rewrote to use the above functions. This means we
  7283. use the modifiers from the underlying events rather than just the one from the event itself.
  7284. So if the event is a DOM activate event, we can still see the modifiers from the original
  7285. keyboard event that triggered it. Has no effect if the event is already the right type or
  7286. if there is no underlying event.
  7287. * WebView/WebFrame.mm: Added a newly-needed include.
  7288. * WebKit.xcodeproj/project.pbxproj: Xcode wants what it wants.
  7289. 2006-12-01 Peter Kasting <pkasting@google.com>
  7290. Reviewed by Mitz.
  7291. http://bugs.webkit.org/show_bug.cgi?id=11732:
  7292. Windows build bustage.
  7293. * COM/WebFrame.cpp:
  7294. (WebFrame::initWithName):
  7295. 2006-12-01 Timothy Hatcher <timothy@apple.com>
  7296. Reviewed by Adam.
  7297. <rdar://problem/4841432> 9A312: iWeb crashes on launch; _WebReportError missing from WebKit
  7298. Added back WebReportAssertionFailure and WebReportError for apps that still need these symbols.
  7299. * Misc/OldWebAssertions.c: Added.
  7300. (WebReportAssertionFailure):
  7301. (WebReportError):
  7302. * WebKit.LP64.exp: added the new symbols, and sorted the file
  7303. * WebKit.exp: added the new symbols, and sorted the file
  7304. * WebKit.xcodeproj/project.pbxproj:
  7305. 2006-11-30 Geoffrey Garen <ggaren@apple.com>
  7306. Rubber Stamped by Anders Carlsson.
  7307. Global rename of Document::focusNode to Document::focusedNode. 'focusNode'
  7308. suggested a command, and conflicted with a different meaning for 'focusNode'
  7309. in the Mozilla selection API.
  7310. * WebView/WebHTMLView.m:
  7311. (-[NSArray clearFocus]):
  7312. 2006-11-30 Matt Lilek <pewtermoose@gmail.com>
  7313. Reviewed by Mitz.
  7314. Bug 10698: Scroll wheel causes inspector to shift up
  7315. http://bugs.webkit.org/show_bug.cgi?id=10698
  7316. Remove size attribute from the tree popup as a workaround for
  7317. http://bugs.webkit.org/show_bug.cgi?id=11362 Bug 11362: Native popup with size="1" wraps options
  7318. * WebInspector/webInspector/inspector.css:
  7319. * WebInspector/webInspector/inspector.html:
  7320. 2006-11-30 Matt Lilek <pewtermoose@gmail.com>
  7321. Reviewed by Tim H.
  7322. Move web inspector style markup to javascript to fix http://bugs.webkit.org/show_bug.cgi?id=6724
  7323. Bug 6724: Text copied from Web Inspector is different from actual text
  7324. * WebInspector/webInspector/inspector.css:
  7325. * WebInspector/webInspector/inspector.js:
  7326. 2006-11-30 Adam Roben <aroben@apple.com>
  7327. Reviewed by Beth.
  7328. Put code in place to use WebCore context menus when they are turned
  7329. on.
  7330. * WebView/WebHTMLView.m:
  7331. (-[NSArray menuForEvent:]):
  7332. 2006-11-29 Timothy Hatcher <timothy@apple.com>
  7333. Reviewed by Oliver.
  7334. Keep preferences separate from the rest of the client, making sure we are using expected preference values.
  7335. This lets the inspector work when plugins are disabled for the WebView.
  7336. * WebInspector/WebInspector.m:
  7337. (-[NSWindow window]):
  7338. 2006-11-29 Anders Carlsson <acarlsson@apple.com>
  7339. Reviewed by Tim.
  7340. Add back methods in WebCoreStatistics that are still used by Tiger Safari.
  7341. * Misc/WebCoreStatistics.h:
  7342. * Misc/WebCoreStatistics.m:
  7343. (+[WebCoreStatistics emptyCache]):
  7344. (+[WebCoreStatistics setCacheDisabled:]):
  7345. 2006-11-28 Alice Liu <alice.liu@apple.com>
  7346. Reviewed by Maciej.
  7347. A fix for a couple failing layout tests involving copy/cut in iframes.
  7348. * WebCoreSupport/WebEditorClient.h:
  7349. * WebCoreSupport/WebEditorClient.mm:
  7350. (WebEditorClient::dataForArchivedSelection):
  7351. Use the frame parameter instead of using the webview's selectedFrame.
  7352. 2006-11-28 Beth Dakin <bdakin@apple.com>
  7353. Reviewed by Geoffff.
  7354. Fix for http://bugs.webkit.org/show_bug.cgi?id=11691 REGRESSION
  7355. (r17399, r17511): WebElementDictionary no longer returns nil
  7356. NSStrings
  7357. String's NSString* operator converts null Strings to empty
  7358. NSStrings for compatibility with AppKit. We need to work around
  7359. that here.
  7360. * Misc/WebElementDictionary.m:
  7361. (NSStringOrNil):
  7362. (-[WebElementDictionary _altDisplayString]):
  7363. (-[WebElementDictionary _spellingToolTip]):
  7364. (-[WebElementDictionary _title]):
  7365. (-[WebElementDictionary _titleDisplayString]):
  7366. (-[WebElementDictionary _textContent]):
  7367. 2006-11-28 Geoffrey Garen <ggaren@apple.com>
  7368. Reviewed by Beth Dakin.
  7369. Fixed <rdar://problem/4844855> Should clarify when to create clients in
  7370. the WebCore client API
  7371. All clients must now be supplied as constructor arguments. This clarifies
  7372. when you need to create clients, and also guarantees that objects can't
  7373. (for the most part) be in a clientless state.
  7374. Layout tests pass. No leaks reported.
  7375. * WebCoreSupport/WebFrameBridge.mm: Shuffled around initialization and changed
  7376. some arguments to resolve ciruclar dependencies at init time.
  7377. (-[WebFrame _initWithWebFrameView:webView:bridge:]): We no longer call setClient
  7378. here, because the client is set up at construction time.
  7379. 2006-11-28 Anders Carlsson <acarlsson@apple.com>
  7380. Reviewed by Maciej.
  7381. Update for changes to ResourceRequest.
  7382. * WebCoreSupport/WebChromeClient.mm:
  7383. (WebChromeClient::createWindow):
  7384. (WebChromeClient::createModalDialog):
  7385. * WebCoreSupport/WebFrameLoaderClient.mm:
  7386. (WebFrameLoaderClient::canHandleRequest):
  7387. 2006-11-28 Adam Roben <aroben@apple.com>
  7388. Reviewed by Beth.
  7389. More WebCore context menu work.
  7390. * DefaultDelegates/WebDefaultUIDelegate.m: New stub delegate method implementation.
  7391. (-[NSApplication webView:contextMenuItemSelected:forElement:]):
  7392. * WebCoreSupport/WebContextMenuClient.h: Updated to match ContextMenuClient.h changes.
  7393. * WebCoreSupport/WebContextMenuClient.mm:
  7394. (WebContextMenuClient::addCustomContextMenuItems): Updated for method name changes.
  7395. (WebContextMenuClient::contextMenuItemSelected): Added new client method.
  7396. * WebView/WebUIDelegatePrivate.h: New private delegate method declaration.
  7397. 2006-11-28 Alice Liu <alice.liu@apple.com>
  7398. Reviewed by Justin and Adam.
  7399. * WebCoreSupport/WebEditorClient.h:
  7400. * WebCoreSupport/WebEditorClient.mm:
  7401. added the following
  7402. (WebEditorClient::smartInsertDeleteEnabled):
  7403. (WebEditorClient::dataForArchivedSelectionInFrame):
  7404. (WebEditorClient::_web_userVisibleString):
  7405. (WebEditorClient::shouldInsertNode):
  7406. * WebKitPrefix.h:
  7407. Added flags to control whether WebCore cut/copy/paste is enabled.
  7408. Turned on Cut and Copy, left Paste and Delete off
  7409. * WebView/WebHTMLViewPrivate.h:
  7410. * WebView/WebHTMLView.m:
  7411. removed _can[Cut|Copy|Paste|Delete]
  7412. (-[NSArray validateUserInterfaceItem:]):
  7413. call the editor for canDHTML[C|C|P|D] and _can[C|C|P|D] instead
  7414. (-[NSArray delete:]):
  7415. added code to call the editor's delete instead (not turned on)
  7416. (-[WebHTMLView copy:]):
  7417. added code to call the editor's copy (turned on)
  7418. (-[WebHTMLView cut:]):
  7419. added code to call the editor's cut (turned on)
  7420. (-[WebHTMLView paste:]):
  7421. added code to call the editor's paste (not turned on)
  7422. 2006-11-28 Geoffrey Garen <ggaren@apple.com>
  7423. Reviewed by Adam.
  7424. Fixed <rdar://problem/4844848> REGRESSION: extra cross-library ref/deref
  7425. calls cause .5% PLT regression.
  7426. Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient
  7427. from the Frame to the Page, since it's only responsible for
  7428. Webview-level delegate calls.
  7429. I don't really love this design, but it fixes the regression and allows
  7430. a single WebKit object to implement multiple client interfaces.
  7431. Layout tests pass.
  7432. 2006-11-27 Beth Dakin <bdakin@apple.com>
  7433. Reviewed by Adam.
  7434. WebKit half of getting rid of the FixMes in ContextMenu.cpp
  7435. * WebCoreSupport/WebFrameLoaderClient.h: canHandleRequest takes a
  7436. ResourceRequest now.
  7437. * WebCoreSupport/WebFrameLoaderClient.mm:
  7438. (WebFrameLoaderClient::canHandleRequest): Same.
  7439. * WebView/WebHTMLView.m:
  7440. (-[WebHTMLView _isSelectionMisspelled]): Call into WebCore.
  7441. 2006-11-27 Ada Chan <adachan@apple.com>
  7442. Reviewed by Adam.
  7443. Part of the change to move WebCoreCache into WebKit:
  7444. Added WebCache which handles emptying and enable/disabling the cache.
  7445. emptyCache and setCacheDisabled have been removed from WebCoreStatistics.
  7446. * Misc/WebCache.h: Added.
  7447. * Misc/WebCache.mm: Added.
  7448. * Misc/WebCoreStatistics.h:
  7449. * Misc/WebCoreStatistics.m:
  7450. (+[WebCoreStatistics statistics]):
  7451. * WebKit.exp:
  7452. * WebKit.xcodeproj/project.pbxproj:
  7453. 2006-11-27 Anders Carlsson <acarlsson@apple.com>
  7454. Reviewed by Adam.
  7455. Move addMessageToConsole to Chrome.
  7456. * WebCoreSupport/WebChromeClient.h:
  7457. * WebCoreSupport/WebChromeClient.mm:
  7458. (WebChromeClient::addMessageToConsole):
  7459. * WebCoreSupport/WebFrameBridge.mm:
  7460. 2006-11-27 Brady Eidson <beidson@apple.com>
  7461. Reviewed by Anders
  7462. Moved unused Private SPI to Internal and pruned other unused code
  7463. * Misc/WebIconDatabase.m:
  7464. * Misc/WebIconDatabasePrivate.h:
  7465. 2006-11-21 Darin Adler <darin@apple.com>
  7466. Reviewed by Maciej.
  7467. - make the close method do a more-complete job to prevent world leaks seen when
  7468. running some of the layout tests
  7469. * WebView/WebHTMLViewInternal.h: Added declaration of -[WebHTMLViewPrivate clear].
  7470. * WebView/WebHTMLView.m:
  7471. (-[WebHTMLViewPrivate clear]): Added method to drop references to other objects.
  7472. We want to do this at "close" time, rather than waiting for deallocation time.
  7473. This is especially important for the data source, which indirectly keeps a number of
  7474. objects alive.
  7475. (-[WebHTMLView close]): Added an explicit call to clear out the data source on the
  7476. plug-in controller. Without this, we'd see the plug-in controller making calls to
  7477. a deallocated data source during the layout tests. Added a call to the new clear method
  7478. on the private object so that we release the objects at close time instead of waiting
  7479. for deallocation time.
  7480. * WebKit.xcodeproj/project.pbxproj: Let Xcode have its way with the project file,
  7481. because I can't fight the power.
  7482. 2006-11-20 Samuel Weinig <sam@webkit.org>
  7483. Reviewed by Alexey.
  7484. Fix for http://bugs.webkit.org/show_bug.cgi?id=11656
  7485. Fix Windows build
  7486. * WebKit.vcproj/WebKit.vcproj: don't include directories that no
  7487. longer exist.
  7488. 2006-11-19 Beth Dakin <bdakin@apple.com>
  7489. Reviewed by Adam.
  7490. WebKit side of new context menu actions.
  7491. * WebCoreSupport/WebContextMenuClient.h: These are for the
  7492. currently-WebKit-dependent menu actions.
  7493. * WebCoreSupport/WebContextMenuClient.mm:
  7494. (WebContextMenuClient::copyLinkToClipboard):
  7495. (WebContextMenuClient::downloadURL):
  7496. (WebContextMenuClient::copyImageToClipboard):
  7497. (WebContextMenuClient::searchWithSpotlight):
  7498. (WebContextMenuClient::lookUpInDictionary):
  7499. * WebCoreSupport/WebEditorClient.h:
  7500. * WebCoreSupport/WebEditorClient.mm:
  7501. (core): These are to convert between WebViewInsertAction and
  7502. EditorInsertAction.
  7503. (kit):
  7504. (WebEditorClient::shouldInsertText): Added implementation for
  7505. shouldInsertText.
  7506. * WebKit.xcodeproj/project.pbxproj:
  7507. * WebView/WebHTMLView.m:
  7508. (-[WebHTMLView _lookUpInDictionaryFromMenu:]): Moved
  7509. _lookUpInDictionary to be within the implementation of WebHTMLView
  7510. internal.
  7511. * WebView/WebHTMLViewInternal.h: Add _lookUpInDictionaryFromMenu
  7512. * WebView/WebViewInternal.h: Add _searchWithSpotlightFromMenu
  7513. 2006-11-18 Peter Kasting <pkasting@google.com>
  7514. Reviewed by Sam Weinig.
  7515. http://bugs.webkit.org/show_bug.cgi?id=11634:
  7516. Fix segfault on startup for Windows build. Also fix segfault when
  7517. typing in a URL.
  7518. * COM/WebFrame.cpp:
  7519. (WebFrame::initWithName):
  7520. === Safari-521.31 ===
  7521. 2006-11-17 Timothy Hatcher <timothy@apple.com>
  7522. Reviewed by Geoff.
  7523. <rdar://problem/4841044> Temporarily default Mail.app editable link clicking behavior, until they do it themselves
  7524. * WebKit.xcodeproj/project.pbxproj:
  7525. * WebView/WebView.mm:
  7526. (+[WebView initialize]):
  7527. (-[WebView setPreferences:]):
  7528. 2006-11-16 Peter Kasting <pkasting@google.com>
  7529. Reviewed and landed by ap.
  7530. http://bugs.webkit.org/show_bug.cgi?id=11509:
  7531. Windows build bustage.
  7532. * COM/WebFrame.cpp:
  7533. (WebFrame::initWithName):
  7534. (WebFrame::loadHTMLString):
  7535. (WebFrame::stopLoading):
  7536. (WebFrame::reload):
  7537. (WebFrame::loadDataSource):
  7538. (WebFrame::didReceiveData):
  7539. (WebFrame::receivedResponse):
  7540. (WebFrame::receivedAllData):
  7541. * COM/WebFrame.h:
  7542. * COM/WebView.cpp:
  7543. (WebView::mouseMoved):
  7544. (WebView::mouseDown):
  7545. (WebView::mouseUp):
  7546. (WebView::mouseDoubleClick):
  7547. * WebKit.vcproj/WebKit.vcproj:
  7548. 2006-11-16 Anders Carlsson <acarlsson@apple.com>
  7549. Reviewed by Tim.
  7550. <rdar://problem/4841123>
  7551. REGRESSION: Crash in WebCore::Range::boundaryPointsValid when replying to a mail Message
  7552. * Misc/WebNSAttributedStringExtras.m:
  7553. (+[NSAttributedString _web_attributedStringFromRange:]):
  7554. If the range passed in is null, return null. When this function was in the bridge, it would never get called
  7555. with a null range when nothing was selected. Instead, the range would just have invalid boundary points.
  7556. 2006-11-15 Adam Roben <aroben@apple.com>
  7557. Reviewed by Anders.
  7558. Added new WebContextMenuClient class to act as WebCore's ChromeClient,
  7559. and moved context menu-related code there from WebChromeClient.
  7560. * WebCoreSupport/WebChromeClient.h:
  7561. * WebCoreSupport/WebChromeClient.mm:
  7562. * WebCoreSupport/WebContextMenuClient.h: Added.
  7563. (WebContextMenuClient::webView):
  7564. * WebCoreSupport/WebContextMenuClient.mm: Added.
  7565. (WebContextMenuClient::create):
  7566. (WebContextMenuClient::WebContextMenuClient):
  7567. (WebContextMenuClient::ref):
  7568. (WebContextMenuClient::deref):
  7569. (WebContextMenuClient::addCustomContextMenuItems):
  7570. * WebKit.xcodeproj/project.pbxproj: Added new files.
  7571. * WebView/WebView.mm:
  7572. (-[WebView _commonInitializationWithFrameName:groupName:]):
  7573. 2006-11-15 Beth Dakin <bdakin@apple.com>
  7574. & Adam Roben <aroben@apple.com>
  7575. Reviewed by Adam & Beth.
  7576. WebKit side of first cut at engine context menus. Use the client to
  7577. call into the UIDelegate.
  7578. * WebCoreSupport/WebChromeClient.h:
  7579. * WebCoreSupport/WebChromeClient.mm:
  7580. (WebChromeClient::addCustomContextMenuItems):
  7581. * WebKit.xcodeproj/project.pbxproj:
  7582. 2006-11-15 Brady Eidson <beidson@apple.com>
  7583. Reviewed by Maciej
  7584. Quick change of files to ObjC++ for BF cache re-write
  7585. * History/WebBackForwardList.m: Removed.
  7586. * History/WebBackForwardList.mm: Added.
  7587. * History/WebHistoryItem.m: Removed.
  7588. * History/WebHistoryItem.mm: Added.
  7589. * WebKit.xcodeproj/project.pbxproj:
  7590. 2006-11-15 Brady Eidson <beidson@apple.com>
  7591. Reviewed by Sarge
  7592. SPI addition
  7593. * WebView/WebFrame.mm:
  7594. (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
  7595. * WebView/WebFrameInternal.h:
  7596. * WebView/WebFramePrivate.h:
  7597. 2006-11-15 Brady Eidson <beidson@apple.com>
  7598. Reviewed by Adele
  7599. <rdar://problem/4838729> - Replace mistakenly removed SPI
  7600. * WebView/WebHTMLView.m:
  7601. (-[WebHTMLView _handleAutoscrollForMouseDragged:]):
  7602. * WebView/WebHTMLViewPrivate.h:
  7603. 2006-11-15 Anders Carlsson <acarlsson@apple.com>
  7604. Reviewed by Adele.
  7605. isTargetItem is used by DRT, so make it private instead of internal.
  7606. * History/WebHistoryItem.m:
  7607. (-[WebHistoryItem isTargetItem]):
  7608. * History/WebHistoryItemInternal.h:
  7609. * History/WebHistoryItemPrivate.h:
  7610. * WebCoreSupport/WebFrameLoaderClient.mm:
  7611. 2006-11-15 Brady Eidson <beidson@apple.com>
  7612. Reviewed by Maciej
  7613. Split much of unused WebHistoryItemPrivate.h SPI into WebHistoryItemInternal.h
  7614. * History/WebBackForwardList.m:
  7615. * History/WebHistory.m:
  7616. * History/WebHistoryItem.m:
  7617. (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
  7618. (-[WebHistoryItem initWithURL:title:]):
  7619. (-[WebHistoryItem visitCount]):
  7620. (-[WebHistoryItem RSSFeedReferrer]):
  7621. (-[WebHistoryItem setRSSFeedReferrer:]):
  7622. (-[WebHistoryItem children]):
  7623. (-[WebHistoryItem dictionaryRepresentation]):
  7624. (-[WebHistoryItem setAlwaysAttemptToUsePageCache:]):
  7625. (+[WebHistoryItem _releaseAllPendingPageCaches]):
  7626. (-[WebHistoryItem URL]):
  7627. (-[WebHistoryItem target]):
  7628. (-[WebHistoryItem _setLastVisitedTimeInterval:]):
  7629. (-[WebHistoryItem _lastVisitedDate]):
  7630. (-[WebHistoryItem targetItem]):
  7631. * History/WebHistoryItemInternal.h: Added.
  7632. * History/WebHistoryItemPrivate.h:
  7633. * WebCoreSupport/WebFrameBridge.mm:
  7634. * WebCoreSupport/WebFrameLoaderClient.mm:
  7635. * WebKit.xcodeproj/project.pbxproj:
  7636. * WebView/WebFrame.mm:
  7637. * WebView/WebView.mm:
  7638. 2006-11-14 Beth Dakin <bdakin@apple.com>
  7639. Reviewed by Geoff.
  7640. Moving things off the bridge and onto clients.
  7641. * WebCoreSupport/WebEditorClient.h:
  7642. * WebCoreSupport/WebEditorClient.mm:
  7643. (WebEditorClient::selectWordBeforeMenuEvent):
  7644. (WebEditorClient::isEditable):
  7645. * WebCoreSupport/WebFrameBridge.mm:
  7646. * WebKit.xcodeproj/project.pbxproj:
  7647. 2006-11-14 Timothy Hatcher <timothy@apple.com>
  7648. Reviewed by Harrison.
  7649. <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
  7650. Adds an Open Link, Open Link in New Window and Copy Link to the editing context menu.
  7651. Adds a new WebKitEditableLinkNeverLive preference value that maps to WebCore's EditableLinkNeverLive.
  7652. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  7653. (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
  7654. (-[WebDefaultUIDelegate contextMenuItemsForElement:defaultMenuItems:]):
  7655. (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
  7656. (-[WebDefaultUIDelegate requestWithURL:includingReferrerFromFrame:]):
  7657. (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
  7658. (-[WebDefaultUIDelegate openLink:]):
  7659. * English.lproj/Localizable.strings:
  7660. * WebKit.exp:
  7661. * WebView/WebPreferences.m:
  7662. (-[WebPreferences editableLinkBehavior]):
  7663. * WebView/WebPreferencesPrivate.h:
  7664. * WebView/WebUIDelegatePrivate.h:
  7665. 2006-11-14 Anders Carlsson <acarlsson@apple.com>
  7666. Turns out I wasn't forcing DWARF on the world at all,
  7667. it's now the default!
  7668. * WebKit.xcodeproj/project.pbxproj:
  7669. 2006-11-14 Anders Carlsson <acarlsson@apple.com>
  7670. I must stop trying to force DWARF on the world.
  7671. * WebKit.xcodeproj/project.pbxproj:
  7672. 2006-11-14 Darin Adler <darin@apple.com>
  7673. Reviewed by Anders.
  7674. - update for creation of EventHandler
  7675. * WebCoreSupport/WebFrameLoaderClient.mm:
  7676. (WebFrameLoaderClient::actionDictionary):
  7677. * WebView/WebHTMLView.m:
  7678. (-[WebHTMLView _updateMouseoverWithEvent:]):
  7679. (-[NSArray menuForEvent:]):
  7680. (-[NSArray scrollWheel:]):
  7681. (-[NSArray acceptsFirstMouse:]):
  7682. (-[NSArray shouldDelayWindowOrderingForEvent:]):
  7683. (-[NSArray mouseDown:]):
  7684. (-[NSArray mouseDragged:]):
  7685. (-[NSArray mouseUp:]):
  7686. (-[NSArray keyDown:]):
  7687. (-[NSArray keyUp:]):
  7688. (-[NSArray performKeyEquivalent:]):
  7689. (-[WebHTMLView elementAtPoint:allowShadowContent:]):
  7690. 2006-11-14 Anders Carlsson <acarlsson@apple.com>
  7691. Fix build for real this time.
  7692. * WebCoreSupport/WebEditorClient.mm:
  7693. (-[WebEditCommand initWithEditCommand:WebCore::]):
  7694. (-[WebEditCommand dealloc]):
  7695. (-[WebEditCommand finalize]):
  7696. (+[WebEditCommand commandWithEditCommand:]):
  7697. (-[WebEditCommand command]):
  7698. 2006-11-14 Anders Carlsson <acarlsson@apple.com>
  7699. Try fixing the build.
  7700. * WebCoreSupport/WebEditorClient.mm:
  7701. (-[WebEditorUndoTarget undoEditing:]):
  7702. (-[WebEditorUndoTarget redoEditing:]):
  7703. 2006-11-14 Anders Carlsson <acarlsson@apple.com>
  7704. Reviewed by Darin.
  7705. Move undo/redo handling into WebEditorClient.
  7706. * WebCoreSupport/WebEditorClient.h:
  7707. * WebCoreSupport/WebEditorClient.mm:
  7708. (WebEditorClient::WebEditorClient):
  7709. (WebEditorClient::~WebEditorClient):
  7710. (-[WebEditCommand initWithEditCommand:WebCore::]):
  7711. (-[WebEditCommand dealloc]):
  7712. (-[WebEditCommand finalize]):
  7713. (+[WebEditCommand commandWithEditCommand:]):
  7714. (-[WebEditCommand command]):
  7715. (-[WebEditorUndoTarget undoEditing:]):
  7716. (-[WebEditorUndoTarget redoEditing:]):
  7717. (undoNameForEditAction):
  7718. (WebEditorClient::registerCommandForUndoOrRedo):
  7719. (WebEditorClient::registerCommandForUndo):
  7720. (WebEditorClient::registerCommandForRedo):
  7721. (WebEditorClient::clearUndoRedoOperations):
  7722. (WebEditorClient::canUndo):
  7723. (WebEditorClient::canRedo):
  7724. (WebEditorClient::undo):
  7725. (WebEditorClient::redo):
  7726. * WebCoreSupport/WebFrameBridge.mm:
  7727. * WebKit.xcodeproj/project.pbxproj:
  7728. 2006-11-14 Alexey Proskuryakov <ap@webkit.org>
  7729. Reviewed by Tim H.
  7730. http://bugs.webkit.org/show_bug.cgi?id=3387
  7731. Redundant keydown, keypress, keyup events sent for arrow keys
  7732. Added another layer of ugly hacks around AppKit event dispatching.
  7733. 1. For arrow keys, keyDown: is invoked after performKeyEquivalent:, so had to store
  7734. _private->keyDownEvent in both methods, and make it persist after leaving them.
  7735. 2. For Esc, AppKit calls performKeyEquivalent: with a fake event of some kind,
  7736. use [NSApp currentEvent] to check for this to prevent it from being passed to WebCore.
  7737. Test: manual-tests/arrow-key-events.html
  7738. * WebView/WebHTMLView.m:
  7739. (-[NSMutableDictionary dealloc]):
  7740. (-[NSArray keyDown:]):
  7741. (-[NSArray keyUp:]):
  7742. (-[NSArray performKeyEquivalent:]):
  7743. * WebView/WebHTMLViewInternal.h:
  7744. 2006-11-12 Brady Eidson <beidson@apple.com>
  7745. Rubberstamped by Anders
  7746. Changed some #includes from <WebKit/foo.h> to "foo.h"
  7747. * History/WebBackForwardList.m:
  7748. * History/WebHistory.m:
  7749. 2006-11-11 Geoffrey Garen <ggaren@apple.com>
  7750. Reviewed by Maciej Stachowiak.
  7751. - Fixed loader crash by clarifying ownership of WebKit client objects.
  7752. WebCore objects own their WebKit clients, and ref and deref through
  7753. virtual methods, leaving WebKit free to use whatever client / reference-counting
  7754. implementation it likes.
  7755. WebKit on Mac just uses the same refcounting class that WebCore uses (Shared),
  7756. but other platforms may choose to do other things.
  7757. * WebCoreSupport/WebChromeClient.h:
  7758. (WebChromeClient::ref):
  7759. (WebChromeClient::deref):
  7760. (WebChromeClient::refCount):
  7761. * WebCoreSupport/WebEditorClient.h: Nixed commented-out function prototypes.
  7762. The ones in WebCore make clear what remains to be implemented. Replaced constructor
  7763. with factory function to avoid leaks.
  7764. * WebCoreSupport/WebEditorClient.mm:
  7765. (WebEditorClient::create):
  7766. (WebEditorClient::WebEditorClient):
  7767. (WebEditorClient::setWebFrame):
  7768. * WebCoreSupport/WebFrameBridge.mm:
  7769. (-[WebFrameBridge initMainFrameWithPage:WebCore::frameName:view:webView:]):
  7770. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  7771. * WebCoreSupport/WebFrameLoaderClient.h: Replaced constructor with factory
  7772. function to avoid leaks.
  7773. (WebFrameLoaderClient::ref):
  7774. (WebFrameLoaderClient::deref):
  7775. (WebFrameLoaderClient::refCount):
  7776. * WebCoreSupport/WebFrameLoaderClient.mm:
  7777. (WebFrameLoaderClient::create):
  7778. * WebView/WebFrame.mm:
  7779. (-[WebFrame _initWithWebFrameView:webView:coreFrame:]):
  7780. === Safari-521.30 ===
  7781. 2006-11-10 Maciej Stachowiak <mjs@apple.com>
  7782. Reviewed by Anders.
  7783. - remove some unnecessary uses of WebDataProtocol
  7784. * WebView/WebDataSource.mm: Remove the unneeded include.
  7785. * WebView/WebView.mm:
  7786. (+[WebView _canHandleRequest:]): Don't bother to check for unreachable URL here.
  7787. Any request that has one will be an applewebdata: request, which will pass the check anyway.
  7788. 2006-11-10 Anders Carlsson <acarlsson@apple.com>
  7789. Reviewed by Geoff.
  7790. Update for changes to WebCore
  7791. * WebView/WebHTMLView.m:
  7792. (-[NSArray _applyStyleToSelection:withUndoAction:]):
  7793. (-[NSArray _applyParagraphStyleToSelection:withUndoAction:]):
  7794. (-[NSArray _toggleBold]):
  7795. (-[NSArray _toggleItalic]):
  7796. 2006-11-09 Anders Carlsson <acarlsson@apple.com>
  7797. Reviewed by Maciej, Geoff.
  7798. Call execCommand directly here instead of going through the bridge.
  7799. * WebView/WebHTMLView.m:
  7800. (-[NSArray moveBackward:]):
  7801. (-[NSArray moveBackwardAndModifySelection:]):
  7802. (-[NSArray moveDown:]):
  7803. (-[NSArray moveDownAndModifySelection:]):
  7804. (-[NSArray moveForward:]):
  7805. (-[NSArray moveForwardAndModifySelection:]):
  7806. (-[NSArray moveLeft:]):
  7807. (-[NSArray moveLeftAndModifySelection:]):
  7808. (-[NSArray moveRight:]):
  7809. (-[NSArray moveRightAndModifySelection:]):
  7810. (-[NSArray moveToBeginningOfDocument:]):
  7811. (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
  7812. (-[NSArray moveToBeginningOfSentence:]):
  7813. (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
  7814. (-[NSArray moveToBeginningOfLine:]):
  7815. (-[NSArray moveToBeginningOfLineAndModifySelection:]):
  7816. (-[NSArray moveToBeginningOfParagraph:]):
  7817. (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
  7818. (-[NSArray moveToEndOfDocument:]):
  7819. (-[NSArray moveToEndOfDocumentAndModifySelection:]):
  7820. (-[NSArray moveToEndOfSentence:]):
  7821. (-[NSArray moveToEndOfSentenceAndModifySelection:]):
  7822. (-[NSArray moveToEndOfLine:]):
  7823. (-[NSArray moveToEndOfLineAndModifySelection:]):
  7824. (-[NSArray moveToEndOfParagraph:]):
  7825. (-[NSArray moveToEndOfParagraphAndModifySelection:]):
  7826. (-[NSArray moveParagraphBackwardAndModifySelection:]):
  7827. (-[NSArray moveParagraphForwardAndModifySelection:]):
  7828. (-[NSArray moveUp:]):
  7829. (-[NSArray moveUpAndModifySelection:]):
  7830. (-[NSArray moveWordBackward:]):
  7831. (-[NSArray moveWordBackwardAndModifySelection:]):
  7832. (-[NSArray moveWordForward:]):
  7833. (-[NSArray moveWordForwardAndModifySelection:]):
  7834. (-[NSArray moveWordLeft:]):
  7835. (-[NSArray moveWordLeftAndModifySelection:]):
  7836. (-[NSArray moveWordRight:]):
  7837. (-[NSArray moveWordRightAndModifySelection:]):
  7838. 2006-11-10 Brady Eidson <beidson@apple.com>
  7839. Reviewed by Darin
  7840. Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
  7841. * Misc/WebIconDatabase.m:
  7842. (-[WebIconDatabase init]):
  7843. (-[WebIconDatabase iconForURL:withSize:cache:]):
  7844. (-[WebIconDatabase iconURLForURL:]):
  7845. (-[WebIconDatabase defaultIconWithSize:]):
  7846. (-[WebIconDatabase defaultIconForURL:withSize:]):
  7847. (-[WebIconDatabase retainIconForURL:]):
  7848. (-[WebIconDatabase releaseIconForURL:]):
  7849. (-[WebIconDatabase setDelegate:]):
  7850. (-[WebIconDatabase removeAllIcons]):
  7851. (-[WebIconDatabase isIconExpiredForIconURL:]):
  7852. (-[WebIconDatabase _isEnabled]):
  7853. (-[WebIconDatabase _setIconData:forIconURL:]):
  7854. (-[WebIconDatabase _setHaveNoIconForIconURL:]):
  7855. (-[WebIconDatabase _setIconURL:forURL:]):
  7856. (-[WebIconDatabase _hasEntryForIconURL:]):
  7857. (-[WebIconDatabase _applicationWillTerminate:]):
  7858. (-[WebIconDatabase _resetCachedWebPreferences:]):
  7859. (-[WebIconDatabase _convertToWebCoreFormat]):
  7860. (webGetNSImage):
  7861. * Misc/WebIconDatabaseInternal.h: Added.
  7862. * Misc/WebIconDatabasePrivate.h:
  7863. * WebCoreSupport/WebFrameLoaderClient.h:
  7864. * WebCoreSupport/WebFrameLoaderClient.mm:
  7865. (WebFrameLoaderClient::dispatchDidReceiveIcon):
  7866. * WebCoreSupport/WebIconDatabaseBridge.h: Removed.
  7867. * WebCoreSupport/WebIconDatabaseBridge.m: Removed.
  7868. * WebKit.xcodeproj/project.pbxproj:
  7869. 2006-11-09 Oliver Hunt <oliver@apple.com>
  7870. Reviewed by Brady.
  7871. Updated to make use of MimeTypeRegistry/bridge
  7872. * Misc/WebNSPasteboardExtras.m:
  7873. (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]):
  7874. * WebCoreSupport/WebFrameBridge.mm:
  7875. (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
  7876. * WebView/WebDataSource.mm:
  7877. (-[WebDataSource _documentFragmentWithArchive:]):
  7878. * WebView/WebHTMLRepresentation.m:
  7879. (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
  7880. (+[WebHTMLRepresentation supportedImageMIMETypes]):
  7881. * WebView/WebHTMLView.m:
  7882. (-[WebHTMLView _imageExistsAtPaths:]):
  7883. (-[WebHTMLView _documentFragmentWithPaths:]):
  7884. 2006-11-09 Brady Eidson <beidson@apple.com>
  7885. Reviewed by Darin
  7886. <rdar://problem/4829080>
  7887. More loader re-factoring cleanup - WebFramePolicyListener was over-released
  7888. * WebCoreSupport/WebFrameLoaderClient.h: Changed vanilla ptr to a RetainPtr<>
  7889. * WebCoreSupport/WebFrameLoaderClient.mm:
  7890. (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType): Ditto
  7891. (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Ditto
  7892. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto
  7893. (WebFrameLoaderClient::dispatchWillSubmitForm): Ditto
  7894. (WebFrameLoaderClient::setUpPolicyListener): Ditto
  7895. (-[WebFramePolicyListener receivedPolicyDecision:]): Ditto
  7896. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  7897. Reviewed by Adam, Oliver.
  7898. Update for changes to WebCore. Pass a specific WebFrame to WebEditorClient
  7899. instead of just passing the WebView.
  7900. * WebCoreSupport/WebEditorClient.h:
  7901. * WebCoreSupport/WebEditorClient.mm:
  7902. (WebEditorClient::WebEditorClient):
  7903. (WebEditorClient::setWebFrame):
  7904. (WebEditorClient::isContinuousSpellCheckingEnabled):
  7905. (WebEditorClient::spellCheckerDocumentTag):
  7906. (WebEditorClient::shouldDeleteRange):
  7907. (WebEditorClient::shouldShowDeleteInterface):
  7908. (WebEditorClient::shouldApplyStyle):
  7909. (WebEditorClient::shouldBeginEditing):
  7910. (WebEditorClient::shouldEndEditing):
  7911. (WebEditorClient::didBeginEditing):
  7912. (WebEditorClient::respondToChangedContents):
  7913. (WebEditorClient::didEndEditing):
  7914. * WebCoreSupport/WebFrameBridge.mm:
  7915. (-[WebFrameBridge initMainFrameWithPage:WebCore::frameName:view:webView:]):
  7916. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  7917. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  7918. Reviewed by Adam.
  7919. Move more code into editor.
  7920. * WebCoreSupport/WebEditorClient.h:
  7921. * WebCoreSupport/WebEditorClient.mm:
  7922. (WebEditorClient::shouldBeginEditing):
  7923. (WebEditorClient::shouldEndEditing):
  7924. (WebEditorClient::didBeginEditing):
  7925. (WebEditorClient::didEndEditing):
  7926. * WebCoreSupport/WebFrameBridge.mm:
  7927. * WebView/WebHTMLView.m:
  7928. (-[NSArray indent:]):
  7929. (-[NSArray outdent:]):
  7930. * WebView/WebView.mm:
  7931. * WebView/WebViewInternal.h:
  7932. 2006-11-08 Beth Dakin <bdakin@apple.com>
  7933. Reviewed by Adam.
  7934. Add WebElementIsContentEditableKey to the WebElementDictionary, and
  7935. use it!
  7936. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  7937. (-[WebDefaultUIDelegate
  7938. webView:contextMenuItemsForElement:defaultMenuItems:]): Use new
  7939. WebElementIsContentEditableKey.
  7940. * Misc/WebElementDictionary.m:
  7941. (+[WebElementDictionary initializeLookupTable]):
  7942. (-[WebElementDictionary _isContentEditable]): Call into
  7943. HitTestResult::isContentEditable()
  7944. * WebView/WebView.mm: Add new key.
  7945. * WebView/WebViewPrivate.h: Add new key.
  7946. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  7947. Reviewed by Oliver.
  7948. Call into the WebCore editor object directly.
  7949. * MigrateHeaders.make:
  7950. * WebCoreSupport/WebEditorClient.h:
  7951. * WebCoreSupport/WebEditorClient.mm:
  7952. (WebEditorClient::shouldDeleteRange):
  7953. (WebEditorClient::shouldShowDeleteInterface):
  7954. (WebEditorClient::shouldApplyStyle):
  7955. * WebView/WebFrame.mm:
  7956. (core):
  7957. (kit):
  7958. * WebView/WebFrameInternal.h:
  7959. * WebView/WebHTMLView.m:
  7960. (-[NSArray _applyStyleToSelection:withUndoAction:]):
  7961. (-[NSArray _applyParagraphStyleToSelection:withUndoAction:]):
  7962. (-[NSArray _toggleBold]):
  7963. (-[NSArray _toggleItalic]):
  7964. (-[NSArray _changeCSSColorUsingSelector:inRange:]):
  7965. (-[NSArray underline:]):
  7966. (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
  7967. * WebView/WebView.mm:
  7968. (-[WebView applyStyle:]):
  7969. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  7970. Reviewed by Oliver.
  7971. <rdar://problem/4825370>
  7972. REGRESSION: Selecting "Look Up In Dictionary" from contextual menu fails to open the Dictionary app
  7973. * WebView/WebHTMLView.m:
  7974. (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
  7975. Initialize the framework pointer to 0.
  7976. 2006-11-07 Darin Adler <darin@apple.com>
  7977. Reviewed by Geoff.
  7978. - udpated for changes to move from Frame/FrameMac to FrameLoader
  7979. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  7980. (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
  7981. * Misc/WebNSAttributedStringExtras.m:
  7982. (+[NSAttributedString _web_attributedStringFromRange:]):
  7983. * Plugins/WebBaseNetscapePluginView.mm:
  7984. (-[WebBaseNetscapePluginView requestWithURLCString:]):
  7985. * Plugins/WebNetscapePluginEmbeddedView.m:
  7986. (-[WebNetscapePluginEmbeddedView didStart]):
  7987. * Plugins/WebNetscapePluginStream.mm:
  7988. * Plugins/WebPluginController.mm:
  7989. (-[WebPluginController pluginView:receivedResponse:]):
  7990. * WebCoreSupport/WebFrameBridge.mm:
  7991. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  7992. * WebCoreSupport/WebFrameLoaderClient.mm:
  7993. (WebFrameLoaderClient::provisionalLoadStarted):
  7994. * WebView/WebFrame.mm:
  7995. (-[WebFrame _canCachePage]):
  7996. (+[WebFrame _timeOfLastCompletedLoad]):
  7997. (-[WebFrame _loadItem:withLoadType:]):
  7998. (-[WebFrame _reloadForPluginChanges]):
  7999. (-[WebFrame stopLoading]):
  8000. 2006-11-07 Anders Carlsson <acarlsson@apple.com>
  8001. Reviewed by Geoff.
  8002. Use the WebCore editing enums.
  8003. * WebCoreSupport/WebFrameBridge.mm:
  8004. (-[WebFrameBridge undoNameForEditAction:]):
  8005. * WebView/WebHTMLView.m:
  8006. (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
  8007. (-[WebHTMLView _deleteSelection]):
  8008. (-[WebHTMLView moveBackward:]):
  8009. (-[WebHTMLView moveBackwardAndModifySelection:]):
  8010. (-[WebHTMLView moveDown:]):
  8011. (-[WebHTMLView moveDownAndModifySelection:]):
  8012. (-[WebHTMLView moveForward:]):
  8013. (-[WebHTMLView moveForwardAndModifySelection:]):
  8014. (-[WebHTMLView moveLeft:]):
  8015. (-[WebHTMLView moveLeftAndModifySelection:]):
  8016. (-[WebHTMLView moveRight:]):
  8017. (-[WebHTMLView moveRightAndModifySelection:]):
  8018. (-[WebHTMLView moveToBeginningOfDocument:]):
  8019. (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]):
  8020. (-[WebHTMLView moveToBeginningOfSentence:]):
  8021. (-[WebHTMLView moveToBeginningOfSentenceAndModifySelection:]):
  8022. (-[WebHTMLView moveToBeginningOfLine:]):
  8023. (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]):
  8024. (-[WebHTMLView moveToBeginningOfParagraph:]):
  8025. (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]):
  8026. (-[WebHTMLView moveToEndOfDocument:]):
  8027. (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]):
  8028. (-[WebHTMLView moveToEndOfSentence:]):
  8029. (-[WebHTMLView moveToEndOfSentenceAndModifySelection:]):
  8030. (-[WebHTMLView moveToEndOfLine:]):
  8031. (-[WebHTMLView moveToEndOfLineAndModifySelection:]):
  8032. (-[WebHTMLView moveToEndOfParagraph:]):
  8033. (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]):
  8034. (-[WebHTMLView moveParagraphBackwardAndModifySelection:]):
  8035. (-[WebHTMLView moveParagraphForwardAndModifySelection:]):
  8036. (-[WebHTMLView moveUp:]):
  8037. (-[WebHTMLView moveUpAndModifySelection:]):
  8038. (-[WebHTMLView moveWordBackward:]):
  8039. (-[WebHTMLView moveWordBackwardAndModifySelection:]):
  8040. (-[WebHTMLView moveWordForward:]):
  8041. (-[WebHTMLView moveWordForwardAndModifySelection:]):
  8042. (-[WebHTMLView moveWordLeft:]):
  8043. (-[WebHTMLView moveWordLeftAndModifySelection:]):
  8044. (-[WebHTMLView moveWordRight:]):
  8045. (-[WebHTMLView moveWordRightAndModifySelection:]):
  8046. (-[WebHTMLView pageUp:]):
  8047. (-[WebHTMLView pageDown:]):
  8048. (-[WebHTMLView pageUpAndModifySelection:]):
  8049. (-[WebHTMLView pageDownAndModifySelection:]):
  8050. (-[WebHTMLView _expandSelectionToGranularity:]):
  8051. (-[WebHTMLView selectParagraph:]):
  8052. (-[WebHTMLView selectLine:]):
  8053. (-[WebHTMLView selectSentence:]):
  8054. (-[WebHTMLView selectWord:]):
  8055. (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
  8056. (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]):
  8057. (-[WebHTMLView _toggleBold]):
  8058. (-[WebHTMLView _toggleItalic]):
  8059. (-[WebHTMLView pasteFont:]):
  8060. (-[WebHTMLView changeFont:]):
  8061. (-[WebHTMLView changeAttributes:]):
  8062. (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
  8063. (-[WebHTMLView changeColor:]):
  8064. (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
  8065. (-[WebHTMLView alignCenter:]):
  8066. (-[WebHTMLView alignJustified:]):
  8067. (-[WebHTMLView alignLeft:]):
  8068. (-[WebHTMLView alignRight:]):
  8069. (-[WebHTMLView _deleteWithDirection:SelectionController::granularity:killRing:isTypingAction:]):
  8070. (-[WebHTMLView deleteForward:]):
  8071. (-[WebHTMLView deleteBackward:]):
  8072. (-[WebHTMLView deleteWordForward:]):
  8073. (-[WebHTMLView deleteWordBackward:]):
  8074. (-[WebHTMLView deleteToBeginningOfLine:]):
  8075. (-[WebHTMLView deleteToEndOfLine:]):
  8076. (-[WebHTMLView deleteToBeginningOfParagraph:]):
  8077. (-[WebHTMLView deleteToEndOfParagraph:]):
  8078. (-[WebHTMLView subscript:]):
  8079. (-[WebHTMLView superscript:]):
  8080. (-[WebHTMLView unscript:]):
  8081. (-[WebHTMLView underline:]):
  8082. (-[WebHTMLView deleteToMark:]):
  8083. (-[WebHTMLView toggleBaseWritingDirection:]):
  8084. (-[WebHTMLView changeBaseWritingDirection:]):
  8085. (-[WebHTMLView _canSmartCopyOrDelete]):
  8086. (-[WebTextCompleteController doCompletion]):
  8087. (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
  8088. * WebView/WebView.mm:
  8089. (-[WebView setTypingStyle:]):
  8090. (-[WebView applyStyle:]):
  8091. 2006-11-06 Geoffrey Garen <ggaren@apple.com>
  8092. Reviewed by Tim Hatcher.
  8093. Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
  8094. None of Screen's responsibilities require up-calls to WebKit or delegates,
  8095. so WebCore can handle it all.
  8096. * WebCoreSupport/WebChromeClient.mm:
  8097. (WebChromeClient::setWindowRect):
  8098. (WebChromeClient::windowRect):
  8099. * WebCoreSupport/WebScreenClient.h: Removed.
  8100. * WebCoreSupport/WebScreenClient.mm: Removed.
  8101. * WebKit.xcodeproj/project.pbxproj:
  8102. * WebView/WebView.mm:
  8103. (-[WebView _commonInitializationWithFrameName:groupName:]):
  8104. 2006-11-06 Geoffrey Garen <ggaren@apple.com>
  8105. Reviewed by Darin.
  8106. Accidentally rolled out this change when removing the WebPageBridge. Now
  8107. putting it back.
  8108. * WebView/WebView.mm:
  8109. (-[WebView _commonInitializationWithFrameName:groupName:]):
  8110. 2006-11-05 Geoffrey Garen <ggaren@apple.com>
  8111. Reviewed by Maciej, Darin, Anders.
  8112. Removed the Page bridge. Beefed up Chrome. Added Screen and ScreenClient.
  8113. (WebChromeClient::pageRect): It may seem weird for the page to ask the Chrome/ChromeClient
  8114. about its own dimensions. The idea here is that we're asking the Chrome how
  8115. much space it has devoted to the page. We have API for this (-webViewContentRect), but
  8116. it was documented incorrectly (even Safari used it wrong), so we don't use
  8117. it anymore. Once we fix our API/documentation, we can return to making a
  8118. delegate callback to ask for the page's size.
  8119. (WebChromeClient::createWindow): Changed to take a FrameLoadRequest with
  8120. an appropriate referrer, instead of making up its own.
  8121. (WebChromeClient::createModalDialog): Changed to take a FrameLoadRequest with
  8122. an appropriate referrer, instead of broken out parcels.
  8123. * WebCoreSupport/WebPageBridge.h: Removed. Dead Code.
  8124. * WebCoreSupport/WebPageBridge.mm: Removed. Dead Code.
  8125. * WebCoreSupport/WebScreenClient.h: Added.
  8126. * WebCoreSupport/WebScreenClient.mm: Added.
  8127. * WebView/WebView.mm: Added NULL checks for new _private->page, since
  8128. it's not NULL-safe like the bridge was, and it gets cleared before
  8129. dealloc.
  8130. 2006-11-06 Graham Dennis <graham.dennis@gmail.com>
  8131. Reviewed by Tim Hatcher.
  8132. Part of patch for http://bugs.webkit.org/show_bug.cgi?id=11323
  8133. Link dragging behaviour does not obey WebKitEditableLinkBehavior WebPref
  8134. * DefaultDelegates/WebDefaultUIDelegate.m:
  8135. (-[NSApplication webView:dragSourceActionMaskForPoint:]): Logic moved to
  8136. WebHTMLView's _mayStartDragAtEventLocation
  8137. * Misc/WebElementDictionary.m: added isLiveLink
  8138. (+[WebElementDictionary initializeLookupTable]):
  8139. (-[WebElementDictionary _isLiveLink]):
  8140. * WebView/WebHTMLView.m:
  8141. (-[WebHTMLView _mayStartDragAtEventLocation:]): Editable links should
  8142. only be followed if isLiveLink is true
  8143. (-[WebHTMLView _isMoveDrag:]): A drag of a live editable link is not
  8144. a move
  8145. (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]):
  8146. (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
  8147. * WebView/WebView.mm: added WebElementLinkIsLiveKey
  8148. * WebView/WebViewPrivate.h: ditto
  8149. 2006-11-04 Maciej Stachowiak <mjs@apple.com>
  8150. Reviewed by Oliver.
  8151. - removed unneeded (and obsolete) header includes
  8152. * WebCoreSupport/WebFrameBridge.mm:
  8153. * WebView/WebFrame.mm:
  8154. 2006-11-05 Darin Adler <darin@apple.com>
  8155. - WebKit part of Frame.h check-in (forgot to land it)
  8156. * WebCoreSupport/WebFrameBridge.h:
  8157. * WebCoreSupport/WebFrameBridge.mm:
  8158. (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
  8159. (-[WebFrameBridge shouldInterruptJavaScript]):
  8160. (-[WebFrameBridge saveDocumentState:]):
  8161. (-[WebFrameBridge previousKeyViewOutsideWebFrameViews]):
  8162. (-[WebFrameBridge valueForKey:keys:values:]):
  8163. (-[WebFrameBridge getObjectCacheSize]):
  8164. (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  8165. (-[WebFrameBridge mayStartDragAtEventLocation:]):
  8166. (-[WebFrameBridge canGoBackOrForward:]):
  8167. (-[WebFrameBridge goBackOrForward:]):
  8168. (-[WebFrameBridge print]):
  8169. (-[WebFrameBridge getAppletInView:]):
  8170. (-[WebFrameBridge pollForAppletInView:]):
  8171. (-[WebFrameBridge respondToChangedContents]):
  8172. (-[WebFrameBridge respondToChangedSelection]):
  8173. (-[WebFrameBridge setIsSelected:forView:]):
  8174. 2006-11-04 Darin Adler <darin@apple.com>
  8175. Reviewed by Maciej.
  8176. - converted more of the loader machinery to work with cross-platform
  8177. data structures instead of Macintosh-specific ones
  8178. store the computed user agent string as a WebCore::String instead
  8179. of an NSString to avoid overhead converting it every time we get it
  8180. * COM/WebFrame.cpp:
  8181. (WebFrame::initWithName):
  8182. * ChangeLog:
  8183. * Misc/WebElementDictionary.m:
  8184. (-[WebElementDictionary _image]):
  8185. (-[WebElementDictionary _targetWebFrame]):
  8186. * WebCoreSupport/WebFrameLoaderClient.h:
  8187. * WebCoreSupport/WebFrameLoaderClient.mm:
  8188. (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
  8189. (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
  8190. (WebFrameLoaderClient::setTitle):
  8191. (WebFrameLoaderClient::userAgent):
  8192. (WebFrameLoaderClient::actionDictionary):
  8193. * WebCoreSupport/WebPageBridge.mm:
  8194. (WebCore::if):
  8195. * WebView/WebDataSource.mm:
  8196. (-[WebDataSource _URL]):
  8197. (-[WebDataSource _URLForHistory]):
  8198. (-[WebDataSource unreachableURL]):
  8199. * WebView/WebHTMLView.m:
  8200. (-[WebHTMLView elementAtPoint:allowShadowContent:]):
  8201. * WebView/WebPDFView.mm:
  8202. (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
  8203. (-[WebPDFView _path]):
  8204. * WebView/WebView.mm:
  8205. (-[WebViewPrivate init]):
  8206. (-[WebViewPrivate dealloc]):
  8207. (-[WebViewPrivate finalize]):
  8208. (-[WebView _preferencesChangedNotification:]):
  8209. (-[WebView _cachedResponseForURL:]):
  8210. (-[WebView setApplicationNameForUserAgent:]):
  8211. (-[WebView setCustomUserAgent:]):
  8212. (-[WebView customUserAgent]):
  8213. (-[WebView userAgentForURL:]):
  8214. (-[WebView _computeUserAgent]):
  8215. (-[WebView WebCore::]):
  8216. * WebView/WebViewInternal.h:
  8217. 2006-11-04 Bertrand Guiheneuf <guiheneuf@gmail.com>
  8218. Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).
  8219. http://bugs.webkit.org/show_bug.cgi?id=11433
  8220. Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
  8221. * COM/WebFrame.cpp:
  8222. (WebFrame::initWithName):
  8223. (WebFrame::loadDataSource):
  8224. (WebFrame::receivedRedirect):
  8225. (WebFrame::receivedResponse):
  8226. (WebFrame::didReceiveData):
  8227. (WebFrame::receivedAllData):
  8228. Use resource handles now. Do not start doc loader by hand anymore.
  8229. Handle didReceiveData() callback instead of receivedData() which
  8230. is deprecated in implementation of ResourceHandleClient
  8231. * COM/WebFrame.h:
  8232. * COM/WebView.cpp:
  8233. Applied ResourceLoader --> ResourceHandle renaming
  8234. * WebKit.vcproj/WebKit.rc:
  8235. Got rid of MFC dependencies (build fix for VCExpress).
  8236. * WebKit.vcproj/WebKit.vcproj:
  8237. Added platform/graphics platform/network and platform/network/win
  8238. to headers search paths
  8239. 2006-11-03 Geoffrey Garen <ggaren@apple.com>
  8240. Forgot to add these two files. Oops.
  8241. * WebCoreSupport/WebChromeClient.h: Added.
  8242. * WebCoreSupport/WebChromeClient.mm: Added.
  8243. 2006-11-02 Geoffrey Garen <ggaren@apple.com>
  8244. Reviewed by Darin, Beth.
  8245. First cut at factoring Page's UIDelegate-related functions into Chrome
  8246. and ChromeClient.
  8247. Layout tests pass.
  8248. * WebCoreSupport/WebEditorClient.h:
  8249. * WebCoreSupport/WebPageBridge.mm:
  8250. * WebKit.xcodeproj/project.pbxproj:
  8251. 2006-11-02 Timothy Hatcher <timothy@apple.com>
  8252. Reviewed by Brady.
  8253. Adding outdent to the WebView responder forwarding list.
  8254. Also add outdent to WebHTMLView.h and WebViewPrivate.h.
  8255. * WebView/WebHTMLView.h:
  8256. * WebView/WebViewPrivate.h:
  8257. * WebView/WebView.mm:
  8258. 2006-11-01 John Sullivan <sullivan@apple.com>
  8259. Reviewed by Adam Roben
  8260. - fixed <rdar://problem/4801351> Crash reloading PDF file in new Safari (or closing a window containing a PDF file)
  8261. * WebView/WebPDFView.mm:
  8262. (-[WebPDFView initWithFrame:]):
  8263. Retain the PDFSubview in the code path where we just obtain it by asking the PDFPreviewView for it. We were
  8264. unconditionally releasing it in dealloc, but only retaining it in one of the two code paths.
  8265. 2006-10-31 Mark Rowe <bdash@webkit.org>
  8266. Reviewed by Maciej.
  8267. Fix null pointer dereference while running editing/pasteboard/drag-drop-modifies-page.html
  8268. * Misc/WebElementDictionary.m:
  8269. (-[WebElementDictionary _image]): Add null check.
  8270. 2006-10-31 Beth Dakin <bdakin@apple.com>
  8271. Reviewed by Maciej.
  8272. This creates local functions for the remaining WebElementDictionary
  8273. members that calls into HitTestResult instead of doing magical
  8274. things with the Objective-C DOM classes.
  8275. * ChangeLog:
  8276. * Misc/WebElementDictionary.m:
  8277. (addLookupKey): The values of the dictionary are now just
  8278. selectors. They used to be WebElementMethods which were
  8279. WebElementTargetObjects associated with selectors, but none of that
  8280. is needed any more.
  8281. (+[WebElementDictionary initializeLookupTable]): All selectors are
  8282. now local functions, no more WebElementTargetObjects.
  8283. (-[WebElementDictionary objectForKey:]): No more target objects!
  8284. (-[WebElementDictionary _domNode]): Call into HitTestResult member
  8285. variable.
  8286. (-[WebElementDictionary _altDisplayString]): Same.
  8287. (-[WebElementDictionary _image]): Same.
  8288. (-[WebElementDictionary _absoluteImageURL]): Same.
  8289. (-[WebElementDictionary _title]): Same.
  8290. (-[WebElementDictionary _absoluteLinkURL]): Same.
  8291. (-[WebElementDictionary _targetWebFrame]): Same.
  8292. (-[WebElementDictionary _titleDisplayString]): Same.
  8293. (-[WebElementDictionary _textContent]): Same.
  8294. 2006-10-31 Geoffrey Garen <ggaren@apple.com>
  8295. Reviewed by Alice.
  8296. Moved some Editing code from WebKit, the bridge, and WebCore::Frame down
  8297. to WebCore::Editor.
  8298. * WebCoreSupport/WebFrameBridge.mm:
  8299. * WebView/WebHTMLView.m:
  8300. (-[WebHTMLView _shouldDeleteRange:]):
  8301. (-[WebHTMLView _canCopy]):
  8302. (-[WebHTMLView _canCut]):
  8303. (-[WebHTMLView _canDelete]):
  8304. (-[WebHTMLView _canPaste]):
  8305. (-[WebHTMLView _canEdit]):
  8306. (-[WebHTMLView _canEditRichly]):
  8307. (-[WebHTMLView _isEditable]):
  8308. (-[WebHTMLView _isSelectionInPasswordField]):
  8309. (-[NSArray validateUserInterfaceItem:]):
  8310. (-[NSArray _expandSelectionToGranularity:]):
  8311. 2006-10-31 John Sullivan <sullivan@apple.com>
  8312. Reviewed by Beth and Adam
  8313. Display a tooltip when hovering over marked bad grammar.
  8314. * Misc/WebElementDictionary.m:
  8315. (+[WebElementDictionary initializeLookupTable]):
  8316. support spelling tool tip
  8317. (-[WebElementDictionary _spellingToolTip]):
  8318. new method, calls through to HitTestResult
  8319. * WebView/WebHTMLView.m:
  8320. (-[WebHTMLView _updateMouseoverWithEvent:]):
  8321. Check for a spelling tool tip; if found, prefer it over the other possible tool tips.
  8322. Check for empty strings instead of just nil strings being, since values from
  8323. WebElementDictionary are empty strings.
  8324. * WebView/WebViewPrivate.h:
  8325. declare new string constant WebElementSpellingToolTipKey
  8326. * WebView/WebView.mm:
  8327. define new string constant WebElementSpellingToolTipKey
  8328. 2006-10-31 Beth Dakin <bdakin@apple.com>
  8329. Reviewed by Maciej.
  8330. Small tweaks to WebKit because of http://bugs.webkit.org/
  8331. show_bug.cgi?id=11461 HitTestResult should be split into
  8332. HitTestRequest and HitTestResult
  8333. * WebKit.xcodeproj/project.pbxproj:
  8334. * WebView/WebHTMLView.m:
  8335. (-[WebHTMLView elementAtPoint:allowShadowContent:]): The
  8336. HitTestResult initializer now just takes a point.
  8337. 2006-10-31 Darin Adler <darin@apple.com>
  8338. Reviewed by Brady.
  8339. - got "action dictionary" code out of FrameLoader,
  8340. replacing with a class called NavigationAction
  8341. * WebCoreSupport/WebFrameLoaderClient.h: Changed parameter types to NavigationAction.
  8342. Made elementForEvent non-virtual. Added actionDictionary function.
  8343. * WebCoreSupport/WebFrameLoaderClient.mm:
  8344. (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Changed parameter type,
  8345. and used actionDictionary to make the action dictionary.
  8346. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
  8347. (WebFrameLoaderClient::actionDictionary): Added. Code that was originally in WebCore
  8348. that creates the action dictionary (from a NavigationAction).
  8349. * WebView/WebFrame.mm: (-[WebFrame _loadItem:withLoadType:]): Use NavigationAction
  8350. instead of a dictionary for the action parameters.
  8351. 2006-10-31 Marvin Decker <marv.decker@gmail.com>
  8352. Reviewed by Maciej.
  8353. - fixed "Stop and reload don't work on the WebView"
  8354. http://bugs.webkit.org/show_bug.cgi?id=11285
  8355. * COM/WebFrame.cpp:
  8356. (WebFrame::stopLoading): Implement.
  8357. * COM/WebView.cpp:
  8358. (WebView::stopLoading): ditto
  8359. (WebView::reload): ditto
  8360. 2006-10-30 Darin Adler <darin@apple.com>
  8361. * Plugins/WebBaseNetscapePluginView.mm:
  8362. (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
  8363. Fix comment.
  8364. 2006-10-30 John Sullivan <sullivan@apple.com>
  8365. Reviewed by Geoff Garen
  8366. * WebView/WebHTMLView.m:
  8367. (-[NSArray checkSpelling:]):
  8368. removed code to update spelling panel; WebCore handles that now
  8369. (-[NSArray showGuessPanel:]):
  8370. ditto
  8371. 2006-10-30 John Sullivan <sullivan@apple.com>
  8372. * English.lproj/WebViewEditingContextMenu.nib/info.nib:
  8373. * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
  8374. Another wording change to match framework, post-Tiger:
  8375. "Check Spelling" -> "Check Document Now"
  8376. 2006-10-30 John Sullivan <sullivan@apple.com>
  8377. Reviewed by Geoff Garen.
  8378. Moved spelling-related methods from bridge to EditorClient. Added one not-yet-used
  8379. grammar-related method.
  8380. * WebCoreSupport/WebEditorClient.h:
  8381. declare overrides of isContinuousSpellCheckingEnabled(), spellCheckerDocumentTag(), and new
  8382. isGrammarCheckingEnabled()
  8383. * WebCoreSupport/WebEditorClient.mm:
  8384. (WebEditorClient::isContinuousSpellCheckingEnabled):
  8385. implement by calling through to WebView
  8386. (WebEditorClient::isGrammarCheckingEnabled):
  8387. ditto
  8388. (WebEditorClient::spellCheckerDocumentTag):
  8389. ditto
  8390. * WebCoreSupport/WebFrameBridge.mm:
  8391. removed bridge equivalents of these methods
  8392. 2006-10-30 Geoffrey Garen <ggaren@apple.com>
  8393. Reviewed by Beth.
  8394. Fixed nil-deref crash that I saw while using TOT (not sure how to repro,
  8395. but the debugger confirmed the cause).
  8396. * WebView/WebFrame.mm:
  8397. (core): Added check for NULL bridge.
  8398. 2006-10-30 Geoffrey Garen <ggaren@apple.com>
  8399. Reviewed by Darin.
  8400. Removed a number of editing and selection methods from the bridge.
  8401. I moved cross-platform editing and selection code into WebCore::Editor and
  8402. WebCore::SelectionController, respecitvely.
  8403. All of the seemingly new code here is just code grabbed from WebCore or
  8404. merged from WebCoreFrameBridge.
  8405. I changed one piece of internal API: we now pass around Ranges in places
  8406. where we used to pass around broken out components of Ranges.
  8407. I also added WebCore XPATH_SUPPORT AND SVG_SUPPORT #defines to the project.
  8408. Since we now include WebCore headers that depend on these #defines, we need
  8409. to keep in sync with them, to avoid binary incompatibility.
  8410. 2006-10-30 Darin Adler <darin@apple.com>
  8411. Reviewed by John Sullivan.
  8412. - work toward removing Objective-C data types from FrameLoader.h:
  8413. removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
  8414. and WebCoreResourceHandle
  8415. - moved bodyBackgroundColor function here from Frame
  8416. * History/WebHistoryItem.m: (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
  8417. Updated for change in WebCorePageState.
  8418. * WebCoreSupport/WebFrameBridge.mm: Removed saveDocumentToPageCache method.
  8419. * WebCoreSupport/WebFrameLoaderClient.h: Changed NSDate to double.
  8420. * WebCoreSupport/WebFrameLoaderClient.mm:
  8421. (WebFrameLoaderClient::invalidateCurrentItemPageCache): Moved the code that was
  8422. formerly in invalidatePageCache: on the bridge here.
  8423. (WebFrameLoaderClient::dispatchWillPerformClientRedirect): Added code to make the
  8424. NSDate here.
  8425. (WebFrameLoaderClient::createPageCache): Restructured code to create the
  8426. WebCorePageState object directly instead of calling saveDocumentToPageCache on
  8427. the bridge.
  8428. * WebView/WebFrame.mm: (-[WebFrame _bodyBackgroundColor]): Rewrote this to work
  8429. directly with the DOM and renderers rather than using a function on Frame.
  8430. 2006-10-29 Maciej Stachowiak <mjs@apple.com>
  8431. Reviewed by Anders.
  8432. - added ResourceResponse class and didReceiveResponse delegate call
  8433. * WebCoreSupport/WebFrameBridge.mm: Removed no longer needed
  8434. expiresTimeForResponse: method.
  8435. 2006-10-29 Darin Adler <darin@apple.com>
  8436. - update for the WebCore rename
  8437. * WebCoreSupport/WebFrameLoaderClient.mm:
  8438. * WebView/WebFrame.mm:
  8439. 2006-10-29 Darin Adler <darin@apple.com>
  8440. - update for the WebCore renames
  8441. * Plugins/WebNetscapePluginStream.mm:
  8442. * Plugins/WebPluginController.mm:
  8443. * WebCoreSupport/WebFrameBridge.mm:
  8444. * WebCoreSupport/WebFrameLoaderClient.h:
  8445. * WebCoreSupport/WebFrameLoaderClient.mm:
  8446. (WebFrameLoaderClient::willUseArchive):
  8447. (WebFrameLoaderClient::isArchiveLoadPending):
  8448. (WebFrameLoaderClient::cancelPendingArchiveLoad):
  8449. (WebFrameLoaderClient::deliverArchivedResources):
  8450. * WebCoreSupport/WebPageBridge.mm:
  8451. (-[WebPageBridge canRunModalNow]):
  8452. * WebView/WebDocumentLoaderMac.h:
  8453. * WebView/WebFrame.mm:
  8454. * WebView/WebHTMLRepresentation.m:
  8455. * WebView/WebView.mm:
  8456. 2006-10-29 Darin Adler <darin@apple.com>
  8457. Rubber stamped by Adam Roben.
  8458. - renamed WebCore's WebFrameLoaderClient to match the class name inside it
  8459. * WebCoreSupport/WebFrameBridge.mm: Update include.
  8460. * WebCoreSupport/WebFrameLoaderClient.h: Ditto.
  8461. 2006-10-29 Darin Adler <darin@apple.com>
  8462. Reviewed by Maciej.
  8463. - eliminate use of NSArray to carry form data around
  8464. (the code in this framework was actually using the NSArray to hold a single
  8465. NSData anyway, so I just went back to an NSData for now)
  8466. - also fixed http://bugs.webkit.org/show_bug.cgi?id=11444
  8467. REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]:
  8468. attempt to insert nil value) when submitting a form with an empty
  8469. uninitialized field
  8470. * History/WebHistoryItem.m:
  8471. (-[WebHistoryItem _setFormInfoFromRequest:]):
  8472. (-[WebHistoryItem formData]):
  8473. * History/WebHistoryItemPrivate.h:
  8474. * WebCoreSupport/WebFrameLoaderClient.mm:
  8475. (WebFrameLoaderClient::dispatchWillSubmitForm):
  8476. * WebView/WebFrame.mm:
  8477. (-[WebFrame _loadItem:withLoadType:]):
  8478. 2006-10-28 Darin Adler <darin@apple.com>
  8479. Reviewed by Maciej.
  8480. - eliminated the use of Objective-C for the policy decider
  8481. machinery, obviating the need for WebPolicyDeciderMac
  8482. - moved the defersLoading flag from WebView to WebCore::Page
  8483. - removed unused copies of four methods that in the frame bridge;
  8484. the actually-used copies are in the page bridge
  8485. - updated for rename of PassRefPtr::release to releaseRef
  8486. * WebView/WebPolicyDeciderMac.h: Removed.
  8487. * WebView/WebPolicyDeciderMac.m: Removed.
  8488. * WebKit.xcodeproj/project.pbxproj: Updated for removal.
  8489. * Plugins/WebBaseNetscapePluginView.mm:
  8490. (-[WebBaseNetscapePluginView sendEvent:]):
  8491. * Plugins/WebNetscapePluginStream.mm:
  8492. * WebCoreSupport/WebFrameBridge.mm:
  8493. * WebCoreSupport/WebFrameLoaderClient.h:
  8494. * WebCoreSupport/WebFrameLoaderClient.mm:
  8495. (getWebView):
  8496. (WebFrameLoaderClient::WebFrameLoaderClient):
  8497. (WebFrameLoaderClient::willCloseDocument):
  8498. (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
  8499. (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
  8500. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  8501. (WebFrameLoaderClient::cancelPolicyCheck):
  8502. (WebFrameLoaderClient::dispatchWillSubmitForm):
  8503. (WebFrameLoaderClient::setDefersLoading):
  8504. (WebFrameLoaderClient::setTitle):
  8505. (WebFrameLoaderClient::deliverArchivedResourcesAfterDelay):
  8506. (WebFrameLoaderClient::deliverArchivedResources):
  8507. (WebFrameLoaderClient::setUpPolicyListener):
  8508. (WebFrameLoaderClient::receivedPolicyDecison):
  8509. (WebFrameLoaderClient::userAgent):
  8510. (-[WebFramePolicyListener initWithWebCoreFrame:]):
  8511. (-[WebFramePolicyListener invalidate]):
  8512. (-[WebFramePolicyListener dealloc]):
  8513. (-[WebFramePolicyListener finalize]):
  8514. (-[WebFramePolicyListener receivedPolicyDecision:]):
  8515. (-[WebFramePolicyListener ignore]):
  8516. (-[WebFramePolicyListener download]):
  8517. (-[WebFramePolicyListener use]):
  8518. (-[WebFramePolicyListener continue]):
  8519. * WebCoreSupport/WebPageBridge.mm:
  8520. (-[WebPageBridge runModal]):
  8521. * WebView/WebArchiver.m:
  8522. (+[WebArchiver archiveSelectionInFrame:]):
  8523. * WebView/WebFormDelegate.h:
  8524. * WebView/WebFormDelegate.m:
  8525. (+[WebFormDelegate _sharedWebFormDelegate]):
  8526. (-[WebFormDelegate textFieldDidBeginEditing:inFrame:]):
  8527. (-[WebFormDelegate textFieldDidEndEditing:inFrame:]):
  8528. (-[WebFormDelegate textDidChangeInTextField:inFrame:]):
  8529. (-[WebFormDelegate textDidChangeInTextArea:inFrame:]):
  8530. (-[WebFormDelegate frame:sourceFrame:willSubmitForm:withValues:submissionListener:]):
  8531. * WebView/WebFrame.mm:
  8532. (-[WebFrame _loadURL:referrer:intoChild:]):
  8533. (-[WebFrame _isFrameSet]):
  8534. * WebView/WebFrameInternal.h:
  8535. * WebView/WebFrameView.mm:
  8536. (-[WebFrameView _shouldDrawBorder]):
  8537. * WebView/WebHTMLView.m:
  8538. (-[NSArray knowsPageRange:]):
  8539. * WebView/WebView.mm:
  8540. (-[WebView _formDelegate]):
  8541. * WebView/WebViewInternal.h:
  8542. * WebView/WebViewPrivate.h:
  8543. 2006-10-28 Adam Roben <aroben@apple.com>
  8544. Reviewed by Maciej.
  8545. Fix layout tests that broke after r17399. Mitz discovered that the
  8546. failures were caused by HitTestResult::m_point being uninitialized
  8547. much of the time. HitTestResults are now always constructed with a
  8548. point.
  8549. * WebView/WebHTMLView.m:
  8550. (-[WebHTMLView elementAtPoint:allowShadowContent:]): Pass point to
  8551. HitTestResult constructor.
  8552. 2006-10-28 Beth Dakin <bdakin@apple.com>
  8553. Reviewed by Darin.
  8554. This is the WebKit half of pushing the guts of elementAtPoint and
  8555. WebElementDictionary into WebCore. Among other things, this patch
  8556. makes WebElementDictionary.m and WebHTMLView.m Objective-C++
  8557. * MigrateHeaders.make: Add DOMElementInternal.h to the list of
  8558. headers to migrate.
  8559. * Misc/WebElementDictionary.h: Replaced DOMNode, DOMElement, and
  8560. NSPoint member variables with a HitTestResult member variable.
  8561. * Misc/WebElementDictionary.m:
  8562. (addLookupKey): Formatting.
  8563. (-[WebElementDictionary initWithHitTestResult:]): Constructor just
  8564. takes a HitTestResult now and sets the member variable.
  8565. (-[WebElementDictionary dealloc]): delete HitTestResult.
  8566. (-[WebElementDictionary finalize]): Address HitTestResult.
  8567. (-[WebElementDictionary _domNode]): Use HitTestResult and call into
  8568. WebCore.
  8569. (-[WebElementDictionary objectForKey:]): Same.
  8570. (-[WebElementDictionary _webFrame]): Same.
  8571. (-[WebElementDictionary _targetWebFrame]): Same.
  8572. (-[WebElementDictionary _title]): Same.
  8573. (-[WebElementDictionary _imageRect]): Same.
  8574. (-[WebElementDictionary _isSelected]): Same.
  8575. * WebKit.xcodeproj/project.pbxproj:
  8576. * WebView/WebFrame.mm:
  8577. (core): Convert from DOMNode* to Node*
  8578. (kit): Convert from Node* to DOMNode*
  8579. * WebView/WebFrameInternal.h: Support for the above.
  8580. * WebView/WebHTMLView.m:
  8581. (-[WebHTMLView elementAtPoint:allowShadowContent:]): Call directly
  8582. into Frame.cpp to get HitTestResult.
  8583. 2006-10-27 Maciej Stachowiak <mjs@apple.com>
  8584. Reviewed by John & Adam.
  8585. - various performance improvements for resource delegate dispatch.
  8586. - avoid any ObjC messaging when fetching the WebView
  8587. - avoid ObjC calls to WebView to get resource load delegate and impl cache
  8588. - cache actual method pointers, not just the fact that the method is present
  8589. - added a new SPI resource load delegate method which allows clients to get
  8590. just one message in case of synchronously loading from memory cache; if this
  8591. is implemented you don't get the normal delegate calls in that case.
  8592. - various other minor tweaks
  8593. * WebCoreSupport/WebFrameBridge.h:
  8594. * WebCoreSupport/WebFrameLoaderClient.h:
  8595. * WebCoreSupport/WebFrameLoaderClient.mm:
  8596. (getWebView):
  8597. (WebFrameLoaderClient::hasBackForwardList):
  8598. (WebFrameLoaderClient::resetBackForwardList):
  8599. (WebFrameLoaderClient::privateBrowsingEnabled):
  8600. (WebFrameLoaderClient::updateHistoryForStandardLoad):
  8601. (WebFrameLoaderClient::resetAfterLoadError):
  8602. (WebFrameLoaderClient::download):
  8603. (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  8604. (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
  8605. (WebFrameLoaderClient::dispatchWillSendRequest):
  8606. (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  8607. (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  8608. (WebFrameLoaderClient::dispatchDidReceiveResponse):
  8609. (WebFrameLoaderClient::dispatchDidReceiveContentLength):
  8610. (WebFrameLoaderClient::dispatchDidFinishLoading):
  8611. (WebFrameLoaderClient::dispatchDidFailLoading):
  8612. (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
  8613. (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
  8614. (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
  8615. (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
  8616. (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
  8617. (WebFrameLoaderClient::dispatchWillClose):
  8618. (WebFrameLoaderClient::dispatchDidReceiveIcon):
  8619. (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
  8620. (WebFrameLoaderClient::dispatchDidReceiveTitle):
  8621. (WebFrameLoaderClient::dispatchDidCommitLoad):
  8622. (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
  8623. (WebFrameLoaderClient::dispatchDidFailLoad):
  8624. (WebFrameLoaderClient::dispatchDidFinishLoad):
  8625. (WebFrameLoaderClient::dispatchDidFirstLayout):
  8626. (WebFrameLoaderClient::dispatchCreatePage):
  8627. (WebFrameLoaderClient::dispatchShow):
  8628. (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
  8629. (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
  8630. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  8631. (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
  8632. (WebFrameLoaderClient::dispatchWillSubmitForm):
  8633. (WebFrameLoaderClient::dispatchDidLoadMainResource):
  8634. (WebFrameLoaderClient::progressStarted):
  8635. (WebFrameLoaderClient::progressCompleted):
  8636. (WebFrameLoaderClient::incrementProgress):
  8637. (WebFrameLoaderClient::completeProgress):
  8638. (WebFrameLoaderClient::setMainFrameDocumentReady):
  8639. (WebFrameLoaderClient::startDownload):
  8640. (WebFrameLoaderClient::willChangeTitle):
  8641. (WebFrameLoaderClient::didChangeTitle):
  8642. (WebFrameLoaderClient::mainFrameURL):
  8643. (WebFrameLoaderClient::frameLoadCompleted):
  8644. * WebCoreSupport/WebPageBridge.h:
  8645. * WebKit.xcodeproj/project.pbxproj:
  8646. * WebView/WebFrame.mm:
  8647. (frame):
  8648. (core):
  8649. (kit):
  8650. (getWebView):
  8651. (-[WebFrame _addBackForwardItemClippedAtTarget:]):
  8652. (-[WebFrame _canCachePage]):
  8653. (-[WebFrame _purgePageCache]):
  8654. (-[WebFrame _loadItem:withLoadType:]):
  8655. (-[WebFrame _goToItem:withLoadType:]):
  8656. (-[WebFrame _updateBackground]):
  8657. (-[WebFrame _clearSelectionInOtherFrames]):
  8658. (-[WebFrame _isMainFrame]):
  8659. (-[WebFrame webView]):
  8660. * WebView/WebResourceLoadDelegatePrivate.h: Added.
  8661. * WebView/WebView.mm:
  8662. (-[WebView _cacheResourceLoadDelegateImplementations]):
  8663. (WebViewGetResourceLoadDelegate):
  8664. (WebViewGetResourceLoadDelegateImplementations):
  8665. * WebView/WebViewInternal.h:
  8666. * WebView/WebViewPrivate.h:
  8667. 2006-10-27 Geoffrey Garen <ggaren@apple.com>
  8668. Reviewed by Maciej.
  8669. Moved some WebCoreFrameBridge functions into FrameLoader.
  8670. * WebView/WebFrame.mm:
  8671. (-[WebFrame _numPendingOrLoadingRequests:]):
  8672. 2006-10-27 Timothy Hatcher <timothy@apple.com>
  8673. Reviewed by Beth.
  8674. Make a DerivedSource/Webkit directory to store migrated
  8675. internal headers from WebCore.
  8676. * MigrateHeaders.make:
  8677. * WebKit.xcodeproj/project.pbxproj:
  8678. * WebView/WebFrame.mm: import the new migrated DOM*Internal.h headers
  8679. 2006-10-27 John Sullivan <sullivan@apple.com>
  8680. Reviewed by Anders
  8681. - fixed http://bugs.webkit.org/show_bug.cgi?id=11439
  8682. REGRESSION: Another page loading crash
  8683. * WebView/WebFrame.mm:
  8684. (-[WebFrame _createItem:]):
  8685. Handle nil documentLoader the way we did before ObjC->C++ changes
  8686. 2006-10-27 John Sullivan <sullivan@apple.com>
  8687. Reviewed by Anders
  8688. * WebView/WebHTMLView.m:
  8689. (-[NSArray checkSpelling:]):
  8690. call advanceToNextMisspelling directly on FrameMac, bypassing bridge
  8691. (-[NSArray showGuessPanel:]):
  8692. ditto
  8693. 2006-10-27 Darin Adler <darin@apple.com>
  8694. - build fix
  8695. * WebCoreSupport/WebFrameLoaderClient.mm: Corrected header file name.
  8696. 2006-10-27 Darin Adler <darin@apple.com>
  8697. Reviewed by Maciej.
  8698. - moved methods that are there just to be called by the frame loader client into the client
  8699. in an attempt to get back some of the speed we lost yesterday
  8700. * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
  8701. (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveAuthenticationChallenge:fromDataSource:]):
  8702. (-[WebDefaultResourceLoadDelegate webView:resource:didCancelAuthenticationChallenge:fromDataSource:]):
  8703. * WebCoreSupport/WebFrameLoaderClient.h:
  8704. * WebCoreSupport/WebFrameLoaderClient.mm:
  8705. (dataSource):
  8706. (decisionListener):
  8707. (WebFrameLoaderClient::WebFrameLoaderClient):
  8708. (WebFrameLoaderClient::hasWebView):
  8709. (WebFrameLoaderClient::hasFrameView):
  8710. (WebFrameLoaderClient::hasBackForwardList):
  8711. (WebFrameLoaderClient::resetBackForwardList):
  8712. (WebFrameLoaderClient::provisionalItemIsTarget):
  8713. (WebFrameLoaderClient::loadProvisionalItemFromPageCache):
  8714. (WebFrameLoaderClient::invalidateCurrentItemPageCache):
  8715. (WebFrameLoaderClient::privateBrowsingEnabled):
  8716. (WebFrameLoaderClient::makeDocumentView):
  8717. (WebFrameLoaderClient::makeRepresentation):
  8718. (WebFrameLoaderClient::setDocumentViewFromPageCache):
  8719. (WebFrameLoaderClient::forceLayout):
  8720. (WebFrameLoaderClient::forceLayoutForNonHTML):
  8721. (WebFrameLoaderClient::updateHistoryForCommit):
  8722. (WebFrameLoaderClient::updateHistoryForBackForwardNavigation):
  8723. (WebFrameLoaderClient::updateHistoryForReload):
  8724. (WebFrameLoaderClient::updateHistoryForStandardLoad):
  8725. (WebFrameLoaderClient::updateHistoryForInternalLoad):
  8726. (WebFrameLoaderClient::updateHistoryAfterClientRedirect):
  8727. (WebFrameLoaderClient::setCopiesOnScroll):
  8728. (WebFrameLoaderClient::tokenForLoadErrorReset):
  8729. (WebFrameLoaderClient::resetAfterLoadError):
  8730. (WebFrameLoaderClient::doNotResetAfterLoadError):
  8731. (WebFrameLoaderClient::detachedFromParent1):
  8732. (WebFrameLoaderClient::detachedFromParent2):
  8733. (WebFrameLoaderClient::detachedFromParent3):
  8734. (WebFrameLoaderClient::detachedFromParent4):
  8735. (WebFrameLoaderClient::loadedFromPageCache):
  8736. (WebFrameLoaderClient::download):
  8737. (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
  8738. (WebFrameLoaderClient::dispatchWillSendRequest):
  8739. (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  8740. (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  8741. (WebFrameLoaderClient::dispatchDidReceiveResponse):
  8742. (WebFrameLoaderClient::dispatchDidReceiveContentLength):
  8743. (WebFrameLoaderClient::dispatchDidFinishLoading):
  8744. (WebFrameLoaderClient::dispatchDidFailLoading):
  8745. (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
  8746. (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
  8747. (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
  8748. (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
  8749. (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
  8750. (WebFrameLoaderClient::dispatchWillClose):
  8751. (WebFrameLoaderClient::dispatchDidReceiveIcon):
  8752. (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
  8753. (WebFrameLoaderClient::dispatchDidReceiveTitle):
  8754. (WebFrameLoaderClient::dispatchDidCommitLoad):
  8755. (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
  8756. (WebFrameLoaderClient::dispatchDidFailLoad):
  8757. (WebFrameLoaderClient::dispatchDidFinishLoad):
  8758. (WebFrameLoaderClient::dispatchDidFirstLayout):
  8759. (WebFrameLoaderClient::dispatchCreatePage):
  8760. (WebFrameLoaderClient::dispatchShow):
  8761. (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
  8762. (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
  8763. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  8764. (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
  8765. (WebFrameLoaderClient::dispatchWillSubmitForm):
  8766. (WebFrameLoaderClient::dispatchDidLoadMainResource):
  8767. (WebFrameLoaderClient::clearLoadingFromPageCache):
  8768. (WebFrameLoaderClient::isLoadingFromPageCache):
  8769. (WebFrameLoaderClient::revertToProvisionalState):
  8770. (WebFrameLoaderClient::setMainDocumentError):
  8771. (WebFrameLoaderClient::clearUnarchivingState):
  8772. (WebFrameLoaderClient::progressStarted):
  8773. (WebFrameLoaderClient::progressCompleted):
  8774. (WebFrameLoaderClient::incrementProgress):
  8775. (WebFrameLoaderClient::completeProgress):
  8776. (WebFrameLoaderClient::setMainFrameDocumentReady):
  8777. (WebFrameLoaderClient::startDownload):
  8778. (WebFrameLoaderClient::willChangeTitle):
  8779. (WebFrameLoaderClient::didChangeTitle):
  8780. (WebFrameLoaderClient::committedLoad):
  8781. (WebFrameLoaderClient::finishedLoading):
  8782. (WebFrameLoaderClient::finalSetupForReplace):
  8783. (WebFrameLoaderClient::cancelledError):
  8784. (WebFrameLoaderClient::cannotShowURLError):
  8785. (WebFrameLoaderClient::interruptForPolicyChangeError):
  8786. (WebFrameLoaderClient::cannotShowMIMETypeError):
  8787. (WebFrameLoaderClient::fileDoesNotExistError):
  8788. (WebFrameLoaderClient::shouldFallBack):
  8789. (WebFrameLoaderClient::mainFrameURL):
  8790. (WebFrameLoaderClient::setDefersCallbacks):
  8791. (WebFrameLoaderClient::willUseArchive):
  8792. (WebFrameLoaderClient::isArchiveLoadPending):
  8793. (WebFrameLoaderClient::cancelPendingArchiveLoad):
  8794. (WebFrameLoaderClient::clearArchivedResources):
  8795. (WebFrameLoaderClient::canHandleRequest):
  8796. (WebFrameLoaderClient::canShowMIMEType):
  8797. (WebFrameLoaderClient::representationExistsForURLScheme):
  8798. (WebFrameLoaderClient::generatedMIMETypeForURLScheme):
  8799. (WebFrameLoaderClient::elementForEvent):
  8800. (WebFrameLoaderClient::createPolicyDecider):
  8801. (WebFrameLoaderClient::frameLoadCompleted):
  8802. (WebFrameLoaderClient::restoreScrollPositionAndViewState):
  8803. (WebFrameLoaderClient::provisionalLoadStarted):
  8804. (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
  8805. (WebFrameLoaderClient::addHistoryItemForFragmentScroll):
  8806. (WebFrameLoaderClient::didFinishLoad):
  8807. (WebFrameLoaderClient::prepareForDataSourceReplacement):
  8808. (WebFrameLoaderClient::createDocumentLoader):
  8809. (WebFrameLoaderClient::setTitle):
  8810. (WebFrameLoaderClient::canUseArchivedResource):
  8811. (WebFrameLoaderClient::deliverArchivedResourcesAfterDelay):
  8812. (WebFrameLoaderClient::deliverArchivedResources):
  8813. (WebFrameLoaderClient::createPageCache):
  8814. * WebView/WebFrame.mm:
  8815. (-[NSView setWebFrame:]):
  8816. (-[WebFrame _createItem:]):
  8817. (-[WebFrame _loadItem:withLoadType:]):
  8818. (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
  8819. (-[WebFrame _loadURL:referrer:intoChild:]):
  8820. (-[WebFrame _saveScrollPositionAndViewStateToItem:]):
  8821. (-[WebFrame _hasSelection]):
  8822. (-[WebFrame _clearSelection]):
  8823. (-[WebFrame _setProvisionalItem:]):
  8824. (-[WebFrame _setPreviousItem:]):
  8825. (-[WebFrame _setCurrentItem:]):
  8826. (-[WebFrame loadArchive:]):
  8827. * WebView/WebFrameInternal.h:
  8828. * WebView/WebHTMLView.m:
  8829. (-[WebHTMLView _topHTMLView]):
  8830. * WebView/WebHTMLViewPrivate.h:
  8831. 2006-10-26 Geoffrey Garen <ggaren@apple.com>
  8832. Reviewed by Darin, Maciej.
  8833. Removed many uses of NSString * from WebCore.
  8834. Changed a few files to ObjC++ for compatiblity with new WebCore methods
  8835. taking WebCore::Strings as arguments.
  8836. Added a static_cast to make the c++ compiler happy.
  8837. 2006-10-26 John Sullivan <sullivan@apple.com>
  8838. Reviewed by Anders
  8839. * WebView/WebFrame.mm:
  8840. now includes <WebCore/Document.h> and <WebCore/DocumentMarker.h>
  8841. (-[WebFrame _unmarkAllBadGrammar]):
  8842. filled in guts
  8843. (-[WebFrame _unmarkAllMisspellings]):
  8844. rewrote to call Document directly, bypassing bridge
  8845. 2006-10-26 John Sullivan <sullivan@apple.com>
  8846. * English.lproj/WebViewEditingContextMenu.nib/info.nib:
  8847. * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
  8848. Changed "Spelling" to "Spelling and Grammar" in context menu for post-Tiger.
  8849. === Safari-521.29 ===
  8850. 2006-10-26 John Sullivan <sullivan@apple.com>
  8851. No review, just two localized string changes.
  8852. * WebView/WebHTMLView.m:
  8853. (-[NSArray validateUserInterfaceItem:]):
  8854. changed "Show/Hide Spelling" to "Show/Hide Spelling and Grammar" post-Tiger to match framework change
  8855. * English.lproj/Localizable.strings:
  8856. updated for these changes
  8857. 2006-10-25 Darin Adler <darin@apple.com>
  8858. Reviewed by Anders.
  8859. - removed 55 methods from WebCoreFrameBridge
  8860. - changed callers to use Frame directly instead
  8861. - put FrameLoaderTypes.h types into the WebCore namespace
  8862. - first steps to get FrameLoader.h ready for cross-platform duty
  8863. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  8864. (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
  8865. * Plugins/WebBaseNetscapePluginView.mm:
  8866. (-[WebBaseNetscapePluginView requestWithURLCString:]):
  8867. (-[WebBaseNetscapePluginView loadPluginRequest:]):
  8868. (-[WebBaseNetscapePluginView getVariable:value:]):
  8869. * Plugins/WebNetscapePluginEmbeddedView.m:
  8870. (-[WebNetscapePluginEmbeddedView didStart]):
  8871. * Plugins/WebNetscapePluginStream.mm:
  8872. * Plugins/WebPluginContainerCheck.m:
  8873. (-[WebPluginContainerCheck _continueWithPolicy:]):
  8874. (-[WebPluginContainerCheck _isForbiddenFileLoad]):
  8875. * WebCoreSupport/WebEditorClient.mm:
  8876. (WebEditorClient::shouldDeleteRange):
  8877. (WebEditorClient::shouldShowDeleteInterface):
  8878. * WebCoreSupport/WebFrameBridge.mm:
  8879. (-[WebFrameBridge webView]):
  8880. (-[WebFrameBridge finishInitializingWithFrameName:view:]):
  8881. (-[WebFrameBridge createWindowWithURL:]):
  8882. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  8883. (-[WebFrameBridge windowObjectCleared]):
  8884. (-[WebFrameBridge createModalDialogWithURL:]):
  8885. * WebCoreSupport/WebFrameLoaderClient.mm:
  8886. (WebFrameLoaderClient::dispatchCreatePage):
  8887. (WebFrameLoaderClient::dispatchWillSubmitForm):
  8888. * WebKit.xcodeproj/project.pbxproj:
  8889. * WebView/WebArchiver.m:
  8890. (+[WebArchiver archiveSelectionInFrame:]):
  8891. * WebView/WebDataSource.mm:
  8892. (-[WebDataSource _documentFragmentWithImageResource:]):
  8893. (-[WebDataSource _imageElementWithImageResource:]):
  8894. * WebView/WebEditingDelegatePrivate.h:
  8895. * WebView/WebFrame.mm:
  8896. (core):
  8897. (kit):
  8898. (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
  8899. (-[WebFrame _canCachePage]):
  8900. (-[WebFrame _childFramesMatchItem:]):
  8901. (-[WebFrame _URLsMatchItem:]):
  8902. (-[WebFrame _loadItem:withLoadType:]):
  8903. (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
  8904. (-[WebFrame _viewWillMoveToHostWindow:]):
  8905. (-[WebFrame _viewDidMoveToHostWindow]):
  8906. (-[WebFrame _addChild:]):
  8907. (-[WebFrame _saveDocumentAndScrollState]):
  8908. (-[WebFrame _numPendingOrLoadingRequests:]):
  8909. (-[WebFrame _reloadForPluginChanges]):
  8910. (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
  8911. (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
  8912. (-[WebFrame _initWithWebFrameView:webView:coreFrame:]):
  8913. (-[WebFrame _documentViews]):
  8914. (-[WebFrame _updateBackground]):
  8915. (-[WebFrame _unmarkAllMisspellings]):
  8916. (-[WebFrame _hasSelection]):
  8917. (-[WebFrame _atMostOneFrameHasSelection]):
  8918. (-[WebFrame _findFrameWithSelection]):
  8919. (-[WebFrame _frameLoader]):
  8920. (-[WebFrame _isDescendantOfFrame:]):
  8921. (-[WebFrame _setShouldCreateRenderers:]):
  8922. (-[WebFrame _bodyBackgroundColor]):
  8923. (-[WebFrame init]):
  8924. (-[WebFrame initWithName:webFrameView:webView:]):
  8925. (-[WebFrame dealloc]):
  8926. (-[WebFrame finalize]):
  8927. (-[WebFrame name]):
  8928. (-[WebFrame webView]):
  8929. (-[WebFrame DOMDocument]):
  8930. (-[WebFrame frameElement]):
  8931. (-[WebFrame findFrameNamed:]):
  8932. (-[WebFrame parentFrame]):
  8933. (-[WebFrame childFrames]):
  8934. (-[WebFrame _invalidateCurrentItemPageCache]):
  8935. (-[WebFrame _dispatchCreateWebViewWithRequest:]):
  8936. (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
  8937. (-[WebFrame _prepareForDataSourceReplacement]):
  8938. (-[WebFrame _provisionalLoadStarted]):
  8939. * WebView/WebFrameInternal.h:
  8940. * WebView/WebHTMLRepresentation.m:
  8941. (-[WebHTMLRepresentation DOMDocument]):
  8942. (-[WebHTMLRepresentation attributedText]):
  8943. * WebView/WebHTMLView.m:
  8944. (-[WebHTMLView _documentRange]):
  8945. (-[WebHTMLView _documentFragmentWithPaths:]):
  8946. (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
  8947. (-[WebHTMLView _selectedRange]):
  8948. (-[WebHTMLView _updateMouseoverWithEvent:]):
  8949. (-[WebHTMLView _canEditRichly]):
  8950. (-[WebHTMLView _hasSelection]):
  8951. (-[WebHTMLView _hasSelectionOrInsertionPoint]):
  8952. (-[WebHTMLView _hasInsertionPoint]):
  8953. (-[WebHTMLView _isEditable]):
  8954. (-[WebHTMLView _isSelectionInPasswordField]):
  8955. (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
  8956. (-[WebHTMLView _selectionDraggingImage]):
  8957. (-[WebHTMLView _canIncreaseSelectionListLevel]):
  8958. (-[WebHTMLView _canDecreaseSelectionListLevel]):
  8959. (-[WebHTMLView _updateActiveState]):
  8960. (-[NSArray readSelectionFromPasteboard:]):
  8961. (-[NSArray validateUserInterfaceItem:]):
  8962. (-[NSArray maintainsInactiveSelection]):
  8963. (-[NSArray menuForEvent:]):
  8964. (-[NSArray scrollWheel:]):
  8965. (-[NSArray acceptsFirstMouse:]):
  8966. (-[NSArray shouldDelayWindowOrderingForEvent:]):
  8967. (-[NSArray mouseDown:]):
  8968. (-[NSArray mouseDragged:]):
  8969. (-[NSArray mouseUp:]):
  8970. (-[NSArray keyDown:]):
  8971. (-[NSArray keyUp:]):
  8972. (-[NSArray centerSelectionInVisibleArea:]):
  8973. (-[NSArray _selectionStartFontAttributesAsRTF]):
  8974. (-[NSArray _emptyStyle]):
  8975. (-[NSArray performKeyEquivalent:]):
  8976. (-[NSArray indent:]):
  8977. (-[NSArray outdent:]):
  8978. (-[WebHTMLView cut:]):
  8979. (-[WebHTMLView paste:]):
  8980. (-[WebHTMLView _selectRangeInMarkedText:]):
  8981. (-[WebTextCompleteController doCompletion]):
  8982. (-[WebHTMLView selectionRect]):
  8983. (-[WebHTMLView selectionImageForcingWhiteText:]):
  8984. (-[WebHTMLView selectionImageRect]):
  8985. (-[WebHTMLView attributedString]):
  8986. (-[WebHTMLView _isMoveDrag]):
  8987. (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
  8988. * WebView/WebPolicyDelegate.mm:
  8989. (-[WebPolicyDecisionListener _usePolicy:]):
  8990. (-[WebPolicyDecisionListener use]):
  8991. (-[WebPolicyDecisionListener ignore]):
  8992. (-[WebPolicyDecisionListener download]):
  8993. (-[WebPolicyDecisionListener continue]):
  8994. * WebView/WebScriptDebugDelegate.m:
  8995. (-[WebScriptCallFrame _initWithFrame:initWithWebFrame:]):
  8996. (-[WebScriptCallFrame globalObject]):
  8997. * WebView/WebView.mm:
  8998. (-[WebView _attachScriptDebuggerToAllFrames]):
  8999. (-[WebView _detachScriptDebuggerFromAllFrames]):
  9000. (-[WebView windowScriptObject]):
  9001. (incrementFrame):
  9002. (-[WebView searchFor:direction:caseSensitive:wrap:]):
  9003. (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]):
  9004. (-[WebView removeDragCaret]):
  9005. (-[WebView setScriptDebugDelegate:]):
  9006. (-[WebView scriptDebugDelegate]):
  9007. (-[WebView shouldClose]):
  9008. (-[WebView selectedDOMRange]):
  9009. (-[WebView styleDeclarationWithText:]):
  9010. 2006-10-25 Geoffrey Garen <ggaren@apple.com>
  9011. Reviewed by Adam.
  9012. Renamed WebFrameLoader to FrameLoader, to match class name.
  9013. * Plugins/WebBaseNetscapePluginView.mm:
  9014. * Plugins/WebNetscapePluginStream.mm:
  9015. * Plugins/WebPluginController.mm:
  9016. * WebCoreSupport/WebFrameBridge.mm:
  9017. * WebView/WebDataSource.mm:
  9018. * WebView/WebFrame.mm:
  9019. * WebView/WebPDFView.mm:
  9020. * WebView/WebPolicyDelegate.mm:
  9021. * WebView/WebView.mm:
  9022. 2006-10-25 Mark Rowe <bdash@webkit.org>
  9023. Reviewed by Anders.
  9024. Build fix for the Buildbot.
  9025. * WebView/WebHTMLView.m:
  9026. (-[NSArray _addToStyle:fontA:fontB:]): Explicit cast.
  9027. 2006-10-25 Maciej Stachowiak <mjs@apple.com>
  9028. Reviewed by Anders.
  9029. <rdar://problem/4785575> REGRESSION: form resubmission warning occurs twice, then Safari crashes in autorelease pool
  9030. <rdar://problem/4799383> REGRESSION: Crash occurs when dismissing the "Would you like to save this password" sheet
  9031. * WebView/WebPolicyDeciderMac.m:
  9032. (-[WebPolicyDeciderMac dealloc]): release the listener, don't dealloc it
  9033. 2006-10-24 Anders Carlsson <acarlsson@apple.com>
  9034. Reviewed by Darin.
  9035. * WebKitPrefix.h:
  9036. Include FastMalloc.h from C++ code.
  9037. 2006-10-24 Darin Adler <darin@apple.com>
  9038. Reviewed by Anders.
  9039. - converted WebFrameLoaderClient to C++
  9040. - renamed frame->frameLoader() function to frame->loader()
  9041. - renamed [bridge impl] to [bridge _frame]
  9042. - removed some bridge methods
  9043. * Plugins/WebNetscapePluginStream.mm:
  9044. * WebCoreSupport/WebEditorClient.mm:
  9045. * WebCoreSupport/WebFrameLoaderClient.h: Added.
  9046. (WebFrameLoaderClient::webFrame):
  9047. * WebCoreSupport/WebFrameLoaderClient.mm: Added.
  9048. (WebFrameLoaderClient::detachFrameLoader):
  9049. (WebFrameLoaderClient::hasWebView):
  9050. (WebFrameLoaderClient::hasFrameView):
  9051. (WebFrameLoaderClient::hasBackForwardList):
  9052. (WebFrameLoaderClient::resetBackForwardList):
  9053. (WebFrameLoaderClient::provisionalItemIsTarget):
  9054. (WebFrameLoaderClient::loadProvisionalItemFromPageCache):
  9055. (WebFrameLoaderClient::invalidateCurrentItemPageCache):
  9056. (WebFrameLoaderClient::privateBrowsingEnabled):
  9057. (WebFrameLoaderClient::makeDocumentView):
  9058. (WebFrameLoaderClient::makeRepresentation):
  9059. (WebFrameLoaderClient::setDocumentViewFromPageCache):
  9060. (WebFrameLoaderClient::forceLayout):
  9061. (WebFrameLoaderClient::forceLayoutForNonHTML):
  9062. (WebFrameLoaderClient::updateHistoryForCommit):
  9063. (WebFrameLoaderClient::updateHistoryForBackForwardNavigation):
  9064. (WebFrameLoaderClient::updateHistoryForReload):
  9065. (WebFrameLoaderClient::updateHistoryForStandardLoad):
  9066. (WebFrameLoaderClient::updateHistoryForInternalLoad):
  9067. (WebFrameLoaderClient::updateHistoryAfterClientRedirect):
  9068. (WebFrameLoaderClient::setCopiesOnScroll):
  9069. (WebFrameLoaderClient::tokenForLoadErrorReset):
  9070. (WebFrameLoaderClient::resetAfterLoadError):
  9071. (WebFrameLoaderClient::doNotResetAfterLoadError):
  9072. (WebFrameLoaderClient::detachedFromParent1):
  9073. (WebFrameLoaderClient::detachedFromParent2):
  9074. (WebFrameLoaderClient::detachedFromParent3):
  9075. (WebFrameLoaderClient::detachedFromParent4):
  9076. (WebFrameLoaderClient::loadedFromPageCache):
  9077. (WebFrameLoaderClient::download):
  9078. (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
  9079. (WebFrameLoaderClient::dispatchWillSendRequest):
  9080. (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  9081. (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  9082. (WebFrameLoaderClient::dispatchDidReceiveResponse):
  9083. (WebFrameLoaderClient::dispatchDidReceiveContentLength):
  9084. (WebFrameLoaderClient::dispatchDidFinishLoading):
  9085. (WebFrameLoaderClient::dispatchDidFailLoading):
  9086. (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
  9087. (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
  9088. (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
  9089. (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
  9090. (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
  9091. (WebFrameLoaderClient::dispatchWillClose):
  9092. (WebFrameLoaderClient::dispatchDidReceiveIcon):
  9093. (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
  9094. (WebFrameLoaderClient::dispatchDidReceiveTitle):
  9095. (WebFrameLoaderClient::dispatchDidCommitLoad):
  9096. (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
  9097. (WebFrameLoaderClient::dispatchDidFailLoad):
  9098. (WebFrameLoaderClient::dispatchDidFinishLoad):
  9099. (WebFrameLoaderClient::dispatchDidFirstLayout):
  9100. (WebFrameLoaderClient::dispatchCreatePage):
  9101. (WebFrameLoaderClient::dispatchShow):
  9102. (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
  9103. (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
  9104. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  9105. (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
  9106. (WebFrameLoaderClient::dispatchWillSubmitForm):
  9107. (WebFrameLoaderClient::dispatchDidLoadMainResource):
  9108. (WebFrameLoaderClient::clearLoadingFromPageCache):
  9109. (WebFrameLoaderClient::isLoadingFromPageCache):
  9110. (WebFrameLoaderClient::revertToProvisionalState):
  9111. (WebFrameLoaderClient::setMainDocumentError):
  9112. (WebFrameLoaderClient::clearUnarchivingState):
  9113. (WebFrameLoaderClient::progressStarted):
  9114. (WebFrameLoaderClient::progressCompleted):
  9115. (WebFrameLoaderClient::incrementProgress):
  9116. (WebFrameLoaderClient::completeProgress):
  9117. (WebFrameLoaderClient::setMainFrameDocumentReady):
  9118. (WebFrameLoaderClient::startDownload):
  9119. (WebFrameLoaderClient::willChangeTitle):
  9120. (WebFrameLoaderClient::didChangeTitle):
  9121. (WebFrameLoaderClient::committedLoad):
  9122. (WebFrameLoaderClient::finishedLoading):
  9123. (WebFrameLoaderClient::finalSetupForReplace):
  9124. (WebFrameLoaderClient::cancelledError):
  9125. (WebFrameLoaderClient::cannotShowURLError):
  9126. (WebFrameLoaderClient::interruptForPolicyChangeError):
  9127. (WebFrameLoaderClient::cannotShowMIMETypeError):
  9128. (WebFrameLoaderClient::fileDoesNotExistError):
  9129. (WebFrameLoaderClient::shouldFallBack):
  9130. (WebFrameLoaderClient::mainFrameURL):
  9131. (WebFrameLoaderClient::setDefersCallbacks):
  9132. (WebFrameLoaderClient::willUseArchive):
  9133. (WebFrameLoaderClient::isArchiveLoadPending):
  9134. (WebFrameLoaderClient::cancelPendingArchiveLoad):
  9135. (WebFrameLoaderClient::clearArchivedResources):
  9136. (WebFrameLoaderClient::canHandleRequest):
  9137. (WebFrameLoaderClient::canShowMIMEType):
  9138. (WebFrameLoaderClient::representationExistsForURLScheme):
  9139. (WebFrameLoaderClient::generatedMIMETypeForURLScheme):
  9140. (WebFrameLoaderClient::elementForEvent):
  9141. (WebFrameLoaderClient::createPolicyDecider):
  9142. (WebFrameLoaderClient::frameLoadCompleted):
  9143. (WebFrameLoaderClient::restoreScrollPositionAndViewState):
  9144. (WebFrameLoaderClient::provisionalLoadStarted):
  9145. (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
  9146. (WebFrameLoaderClient::addHistoryItemForFragmentScroll):
  9147. (WebFrameLoaderClient::didFinishLoad):
  9148. (WebFrameLoaderClient::prepareForDataSourceReplacement):
  9149. (WebFrameLoaderClient::createDocumentLoader):
  9150. (WebFrameLoaderClient::setTitle):
  9151. * WebKit.xcodeproj/project.pbxproj:
  9152. * WebView/WebDataSource.mm:
  9153. (-[WebDataSource webFrame]):
  9154. * WebView/WebFrame.mm:
  9155. (frame):
  9156. (-[WebFrame _loadItem:withLoadType:]):
  9157. (-[WebFrame _reloadForPluginChanges]):
  9158. (-[WebFrame _initWithWebFrameView:webView:bridge:]):
  9159. (-[WebFrame _frameLoader]):
  9160. (-[WebFrame provisionalDataSource]):
  9161. (-[WebFrame dataSource]):
  9162. (-[WebFrame parentFrame]):
  9163. (-[WebFrame _provisionalLoadStarted]):
  9164. * WebView/WebFrameInternal.h:
  9165. * WebView/WebHTMLRepresentation.m:
  9166. (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
  9167. * WebView/WebHTMLView.m:
  9168. (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
  9169. (-[NSArray validateUserInterfaceItem:]):
  9170. (-[NSArray scrollWheel:]):
  9171. (-[NSArray acceptsFirstMouse:]):
  9172. (-[NSArray shouldDelayWindowOrderingForEvent:]):
  9173. (-[NSArray _selectionStartFontAttributesAsRTF]):
  9174. (-[NSArray changeBaseWritingDirection:]):
  9175. (-[NSArray indent:]):
  9176. (-[NSArray outdent:]):
  9177. (-[WebHTMLView copy:]):
  9178. (-[WebHTMLView cut:]):
  9179. (-[WebHTMLView paste:]):
  9180. * WebView/WebView.mm:
  9181. (-[WebView _dashboardRegions]):
  9182. (-[WebView setProhibitsMainFrameScrolling:]):
  9183. (-[WebView _setInViewSourceMode:]):
  9184. (-[WebView _inViewSourceMode]):
  9185. (-[WebView setEditable:]):
  9186. 2006-10-24 John Sullivan <sullivan@apple.com>
  9187. Reviewed by Kevin Decker
  9188. - fixed <rdar://problem/4801331> "Spelling..." menu item should be "Show/Hide Spelling" post-Tiger, to match AppKit
  9189. * WebView/WebHTMLView.m:
  9190. (-[NSArray validateUserInterfaceItem:]):
  9191. post-Tiger, update the menu item text to "Show Spelling"/"Hide Spelling" based on whether
  9192. the spelling panel is already showing. Also, removed else's after returns, and removed
  9193. braces around one-line if clauses.
  9194. (-[NSArray showGuessPanel:]):
  9195. post-Tiger, make this item hide the spelling panel if it's already showing
  9196. * English.lproj/Localizable.strings:
  9197. updated for this change
  9198. 2006-10-24 Timothy Hatcher <timothy@apple.com>
  9199. Reviewed by Anders.
  9200. <rdar://problem/4588878> 'WebHTMLView' may not respond to '-_webView'
  9201. * Misc/WebNSViewExtras.h:
  9202. * Misc/WebNSViewExtras.m:
  9203. (-[NSView _webView]):
  9204. 2006-10-24 Brady Eidson <beidson@apple.com>
  9205. Reviewed by Anders
  9206. http://bugs.webkit.org/show_bug.cgi?id=11406 - Crash in [WebFrame dataSource]
  9207. In the transition to ObjC++ we lost alot of our free nil checking that we must now do manually
  9208. to prevent null dereferencing.
  9209. * WebView/WebFrame.mm:
  9210. (-[WebFrame provisionalDataSource]):
  9211. (-[WebFrame dataSource]):
  9212. 2006-10-24 John Sullivan <sullivan@apple.com>
  9213. Reviewed by Darin
  9214. Initial plumbing for grammar checking. No actual grammar are checked at this time.
  9215. * English.lproj/WebViewEditingContextMenu.nib/classes.nib:
  9216. * English.lproj/WebViewEditingContextMenu.nib/info.nib:
  9217. * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
  9218. Added grammar-checking item, reworded to match changes in framework. This will be used
  9219. post-Tiger.
  9220. * English.lproj/WebViewEditingContextMenuOld.nib/classes.nib: Added.
  9221. * English.lproj/WebViewEditingContextMenuOld.nib/info.nib: Added.
  9222. * English.lproj/WebViewEditingContextMenuOld.nib/objects.nib: Added.
  9223. Copy of WebViewEditingContextMenu.nib, unchanged. This will be used on Tiger.
  9224. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  9225. (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
  9226. Choose the right context menu based on BUILDING_ON_TIGER.
  9227. * WebView/WebPreferenceKeysPrivate.h:
  9228. declare grammar-related NSUserDefault value
  9229. * WebView/WebViewPrivate.h:
  9230. declare grammar-related methods
  9231. * WebView/WebView.mm:
  9232. declare static BOOL grammarCheckingEnabled
  9233. (-[WebViewPrivate init]):
  9234. initialize grammarCheckingEnabled to NSUserDefaults value
  9235. (-[WebView validateUserInterfaceItem:]):
  9236. validate toggleGrammarChecking: menu item
  9237. (-[WebView isGrammarCheckingEnabled]):
  9238. return value of grammarCheckingEnabled
  9239. (-[WebView setGrammarCheckingEnabled:]):
  9240. set value of grammarCheckingEnabled, call frame to remove existing bad grammar markers
  9241. (-[WebView toggleGrammarChecking:]):
  9242. flip the value
  9243. * WebView/WebFrameInternal.h:
  9244. * WebView/WebFrame.mm:
  9245. (-[WebFrame _unmarkAllBadGrammar]):
  9246. new placeholder method, does nothing yet
  9247. * WebView/WebHTMLViewInternal.h:
  9248. declare grammar-related methods
  9249. * WebView/WebHTMLView.m:
  9250. (-[NSArray validateUserInterfaceItem:]):
  9251. validate toggleGrammarChecking: menu item
  9252. (-[WebHTMLView isGrammarCheckingEnabled]):
  9253. new method, calls through to WebView
  9254. (-[WebHTMLView setGrammarCheckingEnabled:]):
  9255. ditto
  9256. (-[WebHTMLView toggleGrammarChecking:]):
  9257. ditto
  9258. * English.lproj/StringsNotToBeLocalized.txt:
  9259. Updated for these changes
  9260. * WebKit.xcodeproj/project.pbxproj:
  9261. updated for new files
  9262. 2006-10-23 Darin Adler <darin@apple.com>
  9263. Reviewed by Geoff.
  9264. - converted WebDocumentLoader to C++
  9265. * Plugins/WebPluginController.mm:
  9266. (-[WebPluginController pluginView:receivedResponse:]):
  9267. * WebKit.xcodeproj/project.pbxproj:
  9268. * WebView/WebDataSource.mm:
  9269. (-[WebDataSourcePrivate dealloc]):
  9270. (-[WebDataSource _mainDocumentError]):
  9271. (-[WebDataSource _URL]):
  9272. (-[WebDataSource _loadFromPageCache:]):
  9273. (-[WebDataSource _bridge]):
  9274. (-[WebDataSource _URLForHistory]):
  9275. (-[WebDataSource _documentLoader]):
  9276. (-[WebDataSource _initWithDocumentLoader:]):
  9277. (-[WebDataSource initWithRequest:]):
  9278. (-[WebDataSource data]):
  9279. (-[WebDataSource webFrame]):
  9280. (-[WebDataSource initialRequest]):
  9281. (-[WebDataSource request]):
  9282. (-[WebDataSource response]):
  9283. (-[WebDataSource textEncodingName]):
  9284. (-[WebDataSource isLoading]):
  9285. (-[WebDataSource unreachableURL]):
  9286. (-[WebDataSource webArchive]):
  9287. * WebView/WebDataSourceInternal.h:
  9288. * WebView/WebDocumentLoaderMac.h:
  9289. * WebView/WebDocumentLoaderMac.mm:
  9290. (WebDocumentLoaderMac::WebDocumentLoaderMac):
  9291. (WebDocumentLoaderMac::setDataSource):
  9292. (WebDocumentLoaderMac::dataSource):
  9293. (WebDocumentLoaderMac::attachToFrame):
  9294. (WebDocumentLoaderMac::detachFromFrame):
  9295. * WebView/WebFrame.mm:
  9296. (-[WebFrame _createItem:]):
  9297. (-[WebFrame _loadItem:withLoadType:]):
  9298. (-[WebFrame _addChild:]):
  9299. (dataSource):
  9300. (-[WebFrame _dataSourceForDocumentLoader:]):
  9301. (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
  9302. (-[WebFrame loadArchive:]):
  9303. (-[WebFrame _updateHistoryForReload]):
  9304. (-[WebFrame _updateHistoryForStandardLoad]):
  9305. (-[WebFrame _updateHistoryForInternalLoad]):
  9306. (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
  9307. (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
  9308. (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
  9309. (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
  9310. (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
  9311. (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
  9312. (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
  9313. (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
  9314. (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
  9315. (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
  9316. (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
  9317. (-[WebFrame _makeRepresentationForDocumentLoader:]):
  9318. (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
  9319. (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
  9320. (-[WebFrame _clearUnarchivingStateForLoader:]):
  9321. (-[WebFrame _willChangeTitleForDocument:]):
  9322. (-[WebFrame _didChangeTitleForDocument:]):
  9323. (-[WebFrame _finishedLoadingDocument:]):
  9324. (-[WebFrame _committedLoadWithDocumentLoader:data:]):
  9325. (-[WebFrame _documentLoader:setMainDocumentError:]):
  9326. (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
  9327. (-[WebFrame _createDocumentLoaderWithRequest:]):
  9328. (-[WebFrame _provisionalLoadStarted]):
  9329. * WebView/WebFrameInternal.h:
  9330. * WebView/WebHTMLRepresentation.m:
  9331. (-[WebHTMLRepresentation title]):
  9332. * WebView/WebView.mm:
  9333. (-[WebView _mainFrameOverrideEncoding]):
  9334. 2006-10-23 Geoffrey Garen <ggaren@apple.com>
  9335. RS by Maciej.
  9336. Gave ObjC++ files .mm extension instead of .m.
  9337. * WebCoreSupport/WebPageBridge.m: Removed.
  9338. * WebKit.xcodeproj/project.pbxproj:
  9339. * WebView/WebDocumentLoaderMac.m: Removed.
  9340. 2006-10-23 Darin Adler <darin@apple.com>
  9341. Reviewed by Maciej.
  9342. - converted WebFrameLoader to C++
  9343. * History/WebHistoryItem.m:
  9344. (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
  9345. * Plugins/WebBaseNetscapePluginView.mm:
  9346. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
  9347. * Plugins/WebNetscapePluginStream.mm:
  9348. (-[WebNetscapePluginStream start]):
  9349. (-[WebNetscapePluginStream stop]):
  9350. * Plugins/WebPluginController.mm:
  9351. (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
  9352. (-[WebPluginController pluginView:receivedResponse:]):
  9353. * WebCoreSupport/WebFrameBridge.h:
  9354. * WebKit.xcodeproj/project.pbxproj:
  9355. * WebView/WebDataSource.mm:
  9356. (-[WebDataSource _loadFromPageCache:]):
  9357. (-[WebDataSource _webView]):
  9358. (-[WebDataSource webFrame]):
  9359. * WebView/WebDocumentLoaderMac.h:
  9360. * WebView/WebDocumentLoaderMac.m:
  9361. (-[WebDocumentLoaderMac dealloc]):
  9362. (-[WebDocumentLoaderMac attachToFrame]):
  9363. (-[WebDocumentLoaderMac detachFromFrame]):
  9364. * WebView/WebFrame.mm:
  9365. (+[WebFrame _timeOfLastCompletedLoad]):
  9366. (-[WebFrame _loadItem:withLoadType:]):
  9367. (-[WebFrame _loadURL:referrer:intoChild:]):
  9368. (-[WebFrame _currentBackForwardListItemToResetTo]):
  9369. (-[WebFrame _itemForRestoringDocState]):
  9370. (-[WebFrame _frameLoader]):
  9371. (-[WebFrame _firstLayoutDone]):
  9372. (-[WebFrame _loadType]):
  9373. (-[WebFrame provisionalDataSource]):
  9374. (-[WebFrame dataSource]):
  9375. (-[WebFrame loadRequest:]):
  9376. (-[WebFrame loadArchive:]):
  9377. (-[WebFrame stopLoading]):
  9378. (-[WebFrame reload]):
  9379. (-[WebFrame _updateHistoryForCommit]):
  9380. (-[WebFrame _updateHistoryForReload]):
  9381. (-[WebFrame _updateHistoryForInternalLoad]):
  9382. (-[WebFrame _deliverArchivedResourcesAfterDelay]):
  9383. (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
  9384. (-[WebFrame _deliverArchivedResources]):
  9385. (-[WebFrame _prepareForDataSourceReplacement]):
  9386. (-[WebFrame _provisionalLoadStarted]):
  9387. * WebView/WebFrameInternal.h:
  9388. * WebView/WebHTMLView.m:
  9389. (-[WebHTMLView _clearLastHitViewIfSelf]):
  9390. (-[WebHTMLView _updateMouseoverWithEvent:]):
  9391. (-[NSArray removeMouseMovedObserverUnconditionally]):
  9392. (-[NSArray removeMouseMovedObserver]):
  9393. (-[NSArray viewWillMoveToWindow:]):
  9394. (-[NSArray viewDidMoveToWindow]):
  9395. (-[WebHTMLView _canMakeTextSmaller]):
  9396. (-[WebHTMLView _canMakeTextLarger]):
  9397. (-[WebHTMLView _canMakeTextStandardSize]):
  9398. * WebView/WebPDFView.mm:
  9399. (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
  9400. * WebView/WebView.mm:
  9401. (-[WebView _close]):
  9402. (-[WebView setDefersCallbacks:]):
  9403. (-[WebView setCustomTextEncodingName:]):
  9404. 2006-10-23 Geoffrey Garen <ggaren@apple.com>
  9405. Reviewed by Bradee.
  9406. Moved some page-level operations from WebFrameBridge to WebPageBridge.
  9407. * WebCoreSupport/WebFrameBridge.m:
  9408. * WebCoreSupport/WebPageBridge.m:
  9409. (-[WebPageBridge createModalDialogWithURL:referrer:]):
  9410. (-[WebPageBridge canRunModal]):
  9411. (-[WebPageBridge canRunModalNow]):
  9412. (-[WebPageBridge runModal]):
  9413. * WebKit.xcodeproj/project.pbxproj: Made WebPageBridge.m ObjC++ to support
  9414. WebCore #includes.
  9415. 2006-10-23 John Sullivan <sullivan@apple.com>
  9416. * WebKitPrefix.h:
  9417. Removed redundant definition of BUILDING_ON_TIGER that I just added. It turns out this had
  9418. already been added between the last time I updated in this tree and when I needed it locally.
  9419. 2006-10-23 John Sullivan <sullivan@apple.com>
  9420. Reviewed by Anders
  9421. * WebKit.xcodeproj/project.pbxproj:
  9422. Move WebKitPrefix.h from Misc group to top level, to match WebCore
  9423. * WebKitPrefix.h:
  9424. defined BUILDING_ON_TIGER a la WebCore, in preparation for future use of post-Tiger API
  9425. 2006-10-23 Timothy Hatcher <timothy@apple.com>
  9426. Reviewed by Darin.
  9427. Rename the now ObjC++ files to be .mm and remove the explicit file types.
  9428. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  9429. (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
  9430. * English.lproj/StringsNotToBeLocalized.txt:
  9431. * Plugins/WebBaseNetscapePluginView.m: Removed.
  9432. * Plugins/WebNetscapePluginStream.m: Removed.
  9433. * Plugins/WebPluginController.m: Removed.
  9434. * WebCoreSupport/WebFrameBridge.m: Removed.
  9435. * WebKit.xcodeproj/project.pbxproj:
  9436. * WebView/WebDataSource.m: Removed.
  9437. * WebView/WebFrame.m: Removed.
  9438. * WebView/WebFrameView.m: Removed.
  9439. * WebView/WebPDFView.m: Removed.
  9440. * WebView/WebPolicyDelegate.m: Removed.
  9441. * WebView/WebView.m: Removed.
  9442. 2006-10-23 Timothy Hatcher <timothy@apple.com>
  9443. Reviewed by Darin.
  9444. Move the undef try/catch to WebKitPrefix.h and include algorithm so we get
  9445. exception_defines.h and so the undef of try/catch works.
  9446. Break off the BGRA to ARGB code into WebGraphicsExtras.c, this lets
  9447. WebBaseNetscapePluginView.m safely compile as ObjC++ and not cause the Accelerate
  9448. framework to complain about C++ exceptions being disabled.
  9449. * Misc/WebGraphicsExtras.c: Added.
  9450. (WebConvertBGRAToARGB):
  9451. * Misc/WebGraphicsExtras.h: Added.
  9452. * Plugins/WebBaseNetscapePluginView.m:
  9453. (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
  9454. * WebKit.xcodeproj/project.pbxproj:
  9455. * WebKitPrefix.h:
  9456. * WebView/WebView.m:
  9457. 2006-10-22 Sam Weinig <sam.weinig@gmail.com>
  9458. Reviewed by Tim H.
  9459. - Add DOMHTMLFormElementPrivate.h to the project.
  9460. * MigrateHeaders.make:
  9461. 2006-10-21 Darin Adler <darin@apple.com>
  9462. Reviewed by Adele.
  9463. - convert WebLoader and its 3 subclasses to C++
  9464. * Plugins/WebNetscapePluginStream.h:
  9465. * Plugins/WebNetscapePluginStream.m:
  9466. (-[WebNetscapePluginStream dealloc]):
  9467. (-[WebNetscapePluginStream finalize]):
  9468. (-[WebNetscapePluginStream start]):
  9469. (-[WebNetscapePluginStream cancelLoadWithError:]):
  9470. (-[WebNetscapePluginStream stop]):
  9471. * WebCoreSupport/WebFrameBridge.m:
  9472. (-[WebFrameBridge canRunModalNow]):
  9473. * WebView/WebFrame.m:
  9474. (-[WebFramePrivate dealloc]):
  9475. (-[WebFramePrivate finalize]):
  9476. (frame): Changed from uppercase to lowercase so that it won't conflict
  9477. with the WebCore class named Frame.
  9478. (-[WebFrame _firstChildFrame]):
  9479. (-[WebFrame _lastChildFrame]):
  9480. (-[WebFrame _previousSiblingFrame]):
  9481. (-[WebFrame _nextSiblingFrame]):
  9482. (-[WebFrame _traverseNextFrameStayWithin:]):
  9483. (-[WebFrame _immediateChildFrameNamed:]):
  9484. (-[WebFrame _nextFrameWithWrap:]):
  9485. (-[WebFrame _previousFrameWithWrap:]):
  9486. (-[WebFrame findFrameNamed:]):
  9487. (-[WebFrame parentFrame]):
  9488. (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
  9489. (-[WebFrame _deliverArchivedResourcesAfterDelay]):
  9490. (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
  9491. (-[WebFrame _archiveLoadPendingForLoader:]):
  9492. (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
  9493. (-[WebFrame _clearArchivedResources]):
  9494. (-[WebFrame _deliverArchivedResources]):
  9495. 2006-10-21 Darin Adler <darin@apple.com>
  9496. Reviewed by Anders.
  9497. - fix http://bugs.webkit.org/show_bug.cgi?id=10328
  9498. REGRESSION: frame leak reported by buildbot
  9499. * WebCoreSupport/WebEditorClient.mm:
  9500. (WebEditorClient::WebEditorClient): Don't retain the web view.
  9501. (WebEditorClient::~WebEditorClient): Don't release the web view.
  9502. (WebEditorClient::setWebView): Ditto.
  9503. * WebCoreSupport/WebFrameBridge.m:
  9504. (-[WebFrameBridge finishInitializingWithFrameName:view:]): Added. Common code for use by both
  9505. init methods below.
  9506. (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): Changed to use new method.
  9507. Also added comment pointing out design flaw -- we attach the client to the web view here,
  9508. but we need to be sure to detach in case the web view is deallocated first.
  9509. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]): Ditto.
  9510. 2006-10-21 Darin Adler <darin@apple.com>
  9511. Reviewed by Adam.
  9512. - http://bugs.webkit.org/show_bug.cgi?id=11376
  9513. build scripts should invoke make with "-j" option for multiple processors
  9514. * WebKit.xcodeproj/project.pbxproj: Pass -j `sysctl -n hw.ncpu` to make.
  9515. 2006-10-21 Timothy Hatcher <timothy@apple.com>
  9516. Reviewed by Geoff.
  9517. <rdar://problem/4478625> HTML Editing: Basic table editing and culling
  9518. Initial implementaltion of table deletion user interface:
  9519. * Adds a new editing delegate method, webView:shouldShowDeleteInterfaceForElement:.
  9520. * The new delegate method is called from the new shouldShowDeleteInterface EditorClient function.
  9521. * DefaultDelegates/WebDefaultEditingDelegate.m:
  9522. (-[WebDefaultEditingDelegate webView:shouldShowDeleteInterfaceForElement:]):
  9523. * WebCoreSupport/WebEditorClient.h:
  9524. * WebCoreSupport/WebEditorClient.mm:
  9525. (WebEditorClient::WebEditorClient):
  9526. (WebEditorClient::shouldDeleteRange):
  9527. (WebEditorClient::shouldShowDeleteInterface):
  9528. * WebKit.xcodeproj/project.pbxproj:
  9529. * WebView/WebEditingDelegatePrivate.h: Added.
  9530. 2006-10-21 Alice Liu <alice.liu@apple.com>
  9531. Reviewed by Maciej.
  9532. fix leaks.
  9533. * WebCoreSupport/WebEditorClient.mm:
  9534. (WebEditorClient::setWebView):
  9535. only change webview if its different
  9536. * WebCoreSupport/WebFrameBridge.m:
  9537. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  9538. actually use the client allocated in the line above instead of
  9539. allocation again, duh.
  9540. 2006-10-21 Alice Liu <alice.liu@apple.com>
  9541. Build fix.
  9542. * WebCoreSupport/WebEditorClient.h:
  9543. * WebCoreSupport/WebEditorClient.mm:
  9544. (WebEditorClient::setWebView):
  9545. 2006-10-20 Alice Liu <alice.liu@apple.com>
  9546. Reviewed by Tim Hatcher.
  9547. Fixed a problem where the webview passed to the EditorClient wasn't valid yet.
  9548. * WebCoreSupport/WebEditorClient.h:
  9549. (WebEditorClient::setWebView):
  9550. added webview setter
  9551. * WebCoreSupport/WebEditorClient.mm:
  9552. (WebEditorClient::WebEditorClient):
  9553. add default constructor
  9554. * WebCoreSupport/WebFrameBridge.m:
  9555. (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
  9556. use [page webView] since _webview isn't valid yet
  9557. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  9558. use webview setter on editorclient
  9559. 2006-10-20 David Hyatt <hyatt@apple.com>
  9560. Tweak cache sizes so that they are back to the way they were,
  9561. except for < 512, which will stay doubled.
  9562. Reviewed by Tim H.
  9563. * WebCoreSupport/WebFrameBridge.m:
  9564. (-[WebFrameBridge getObjectCacheSize]):
  9565. 2006-10-20 Alice Liu <alice.liu@apple.com>
  9566. Reviewed by Maciej.
  9567. Adding knowledge of EditorClient to WebKit
  9568. * WebCoreSupport/WebEditorClient.h: Added.
  9569. * WebCoreSupport/WebEditorClient.mm: Added.
  9570. (WebEditorClient::WebEditorClient):
  9571. (WebEditorClient::~WebEditorClient):
  9572. (WebEditorClient::shouldDeleteRange):
  9573. Implementation of mac EditorClient
  9574. * WebCoreSupport/WebFrameBridge.m:
  9575. (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
  9576. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  9577. create an editor client to pass down the chain of constructors
  9578. * WebKit.xcodeproj/project.pbxproj:
  9579. Added related EditorClient files
  9580. * WebKitPrefix.h:
  9581. Added tiger build flag in order to make certain private headers from webcore compile successfully
  9582. 2006-10-20 Darin Adler <darin@apple.com>
  9583. - rolled out my loader change; caused world leak and possibly a plug-in crash
  9584. 2006-10-20 Darin Adler <darin@apple.com>
  9585. Reviewed by Adele.
  9586. - convert WebLoader and its 3 subclasses to C++
  9587. * Plugins/WebNetscapePluginStream.h:
  9588. * Plugins/WebNetscapePluginStream.m:
  9589. (-[WebNetscapePluginStream dealloc]):
  9590. (-[WebNetscapePluginStream finalize]):
  9591. (-[WebNetscapePluginStream start]):
  9592. (-[WebNetscapePluginStream cancelLoadWithError:]):
  9593. (-[WebNetscapePluginStream stop]):
  9594. * WebCoreSupport/WebFrameBridge.m:
  9595. (-[WebFrameBridge canRunModalNow]):
  9596. * WebView/WebFrame.m:
  9597. (-[WebFramePrivate dealloc]):
  9598. (-[WebFramePrivate finalize]):
  9599. (frame): Changed from uppercase to lowercase so that it won't conflict
  9600. with the WebCore class named Frame.
  9601. (-[WebFrame _firstChildFrame]):
  9602. (-[WebFrame _lastChildFrame]):
  9603. (-[WebFrame _previousSiblingFrame]):
  9604. (-[WebFrame _nextSiblingFrame]):
  9605. (-[WebFrame _traverseNextFrameStayWithin:]):
  9606. (-[WebFrame _immediateChildFrameNamed:]):
  9607. (-[WebFrame _nextFrameWithWrap:]):
  9608. (-[WebFrame _previousFrameWithWrap:]):
  9609. (-[WebFrame findFrameNamed:]):
  9610. (-[WebFrame parentFrame]):
  9611. (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
  9612. (-[WebFrame _deliverArchivedResourcesAfterDelay]):
  9613. (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
  9614. (-[WebFrame _archiveLoadPendingForLoader:]):
  9615. (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
  9616. (-[WebFrame _clearArchivedResources]):
  9617. (-[WebFrame _deliverArchivedResources]):
  9618. 2006-10-20 John Sullivan <sullivan@apple.com>
  9619. Reviewed by Darin
  9620. - fixed <rdar://problem/4794935> setAcceptsMouseMovedEvents: is called for every layout,
  9621. taking ~1% on the PLT test
  9622. * WebView/WebHTMLView.m:
  9623. (-[NSArray layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
  9624. Don't call setAcceptsMouseMovedEvents: and WKSetNSWindowShouldPostEventNotifications() here
  9625. because this is called too often.
  9626. * WebView/WebView.m:
  9627. (-[WebView viewWillMoveToWindow:]):
  9628. Do call them here, because this is guaranteed to be called at least once for each window
  9629. containing a webview, but isn't called too often. Also restructured this method a little.
  9630. 2006-10-19 Timothy Hatcher <timothy@apple.com>
  9631. Reviewed by Anders.
  9632. Bug 11366: Web Inspector should show user agent style rules
  9633. http://bugs.webkit.org/show_bug.cgi?id=11366
  9634. * WebInspector/WebInspector.m:
  9635. (-[WebInspector init]):
  9636. (-[WebInspector showOptionsMenu]):
  9637. (-[WebInspector _toggleShowUserAgentStyles:]):
  9638. * WebInspector/WebInspectorInternal.h:
  9639. * WebInspector/webInspector/inspector.js:
  9640. 2006-10-19 Brady Eidson <beidson@apple.com>
  9641. Build fix - 2gig is on that pesky signed/unsigned limit...
  9642. * WebCoreSupport/WebFrameBridge.m:
  9643. (-[WebFrameBridge getObjectCacheSize]):
  9644. 2006-10-19 Brady Eidson <beidson@apple.com>
  9645. Reviewed by Hyatt.
  9646. Death to 16777216. Long live 33554432.
  9647. (Cache size changed needs to be reflected in localization file)
  9648. * English.lproj/StringsNotToBeLocalized.txt:
  9649. 2006-10-19 Brady Eidson <beidson@apple.com>
  9650. Reviewed by Hyatt
  9651. Added an larger in-memory level of cache for machines with 2+gb ram
  9652. * WebCoreSupport/WebFrameBridge.m:
  9653. (-[WebFrameBridge getObjectCacheSize]):
  9654. 2006-10-19 Brady Eidson <beidson@apple.com>
  9655. Reviewed by Hyatt
  9656. Double the default memory cache size
  9657. * WebView/WebPreferences.m:
  9658. (+[WebPreferences initialize]):
  9659. 2006-10-19 John Sullivan <sullivan@apple.com>
  9660. Reviewed by Kevin D and Geoff
  9661. * WebKit.xcodeproj/project.pbxproj:
  9662. version wars
  9663. Cleaned up this file, as follows:
  9664. - renamed all file-internal methods to start with underscores
  9665. - moved all file-internal methods into a FileInternal category block, and alphabetized them
  9666. - grouped all other methods by where/how they were defined (delegate methods, protocol methods, overrides, etc.)
  9667. - removed unstylish braces around one-line clauses
  9668. * WebView/WebPDFView.m:
  9669. (_applicationInfoForMIMEType):
  9670. (_PDFSelectionsAreEqual):
  9671. (+[WebPDFView supportedMIMETypes]):
  9672. (-[WebPDFView setPDFDocument:]):
  9673. (-[WebPDFView dealloc]):
  9674. (-[WebPDFView centerSelectionInVisibleArea:]):
  9675. (-[WebPDFView scrollPageDown:]):
  9676. (-[WebPDFView scrollPageUp:]):
  9677. (-[WebPDFView scrollLineDown:]):
  9678. (-[WebPDFView scrollLineUp:]):
  9679. (-[WebPDFView scrollToBeginningOfDocument:]):
  9680. (-[WebPDFView scrollToEndOfDocument:]):
  9681. (-[WebPDFView jumpToSelection:]):
  9682. (-[WebPDFView acceptsFirstResponder]):
  9683. (-[WebPDFView becomeFirstResponder]):
  9684. (-[WebPDFView hitTest:]):
  9685. (-[WebPDFView initWithFrame:]):
  9686. (-[WebPDFView menuForEvent:]):
  9687. (-[WebPDFView setNextKeyView:]):
  9688. (-[WebPDFView viewDidMoveToWindow]):
  9689. (-[WebPDFView viewWillMoveToWindow:]):
  9690. (-[WebPDFView validateUserInterfaceItem:]):
  9691. (-[WebPDFView copy:]):
  9692. (-[WebPDFView takeFindStringFromSelection:]):
  9693. (-[WebPDFView canPrintHeadersAndFooters]):
  9694. (-[WebPDFView printOperationWithPrintInfo:]):
  9695. (-[WebPDFView viewWillMoveToHostWindow:]):
  9696. (-[WebPDFView viewDidMoveToHostWindow]):
  9697. (-[WebPDFView elementAtPoint:]):
  9698. (-[WebPDFView elementAtPoint:allowShadowContent:]):
  9699. (-[WebPDFView searchFor:direction:caseSensitive:wrap:]):
  9700. (-[WebPDFView viewState]):
  9701. (-[WebPDFView setViewState:]):
  9702. (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
  9703. (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
  9704. (+[WebPDFView _PDFPreviewViewClass]):
  9705. (+[WebPDFView _PDFViewClass]):
  9706. (-[WebPDFView _anyPDFTagsFoundInMenu:]):
  9707. (-[WebPDFView _applyPDFDefaults]):
  9708. (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
  9709. (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
  9710. (-[WebPDFView _openWithFinder:]):
  9711. (-[WebPDFView _path]):
  9712. (-[WebPDFView _PDFSubview]):
  9713. (-[WebPDFView _pointIsInSelection:]):
  9714. (-[WebPDFView _receivedPDFKitLaunchNotification:]):
  9715. (-[WebPDFView _scaledAttributedString:]):
  9716. (-[WebPDFView _trackFirstResponder]):
  9717. (-[PDFPrefUpdatingProxy forwardInvocation:]):
  9718. (-[PDFPrefUpdatingProxy methodSignatureForSelector:]):
  9719. 2006-10-19 John Sullivan <sullivan@apple.com>
  9720. Reviewed by Kevin Decker
  9721. - fixed <rdar://problem/4792761> Safari should use fancier embedded PDFKit stuff when it's available
  9722. * WebKit.xcodeproj/project.pbxproj:
  9723. version wars
  9724. * WebView/WebFrameView.m:
  9725. (-[WebFrameView _makeDocumentViewForDataSource:]):
  9726. initialize document view with frame view's rect instead of empty rect. This avoids some problems when
  9727. constructing view hierarchies from nibs
  9728. * WebView/WebPreferencesPrivate.h:
  9729. declare new _usePDFPreviewView and _setUsePDFPreviewView:, used for debugging
  9730. * WebView/WebPreferenceKeysPrivate.h:
  9731. declare new preference key string
  9732. * WebView/WebPreferences.m:
  9733. (+[WebPreferences initialize]):
  9734. initialize new preference to true (we will by default use the new view if it's available)
  9735. (-[WebPreferences _usePDFPreviewView]):
  9736. new accessor for new pref
  9737. (-[WebPreferences _setUsePDFPreviewView:]):
  9738. ditto
  9739. * WebView/WebPDFView.h:
  9740. new previewView ivar
  9741. * WebView/WebPDFView.m:
  9742. (+[WebPDFView PDFPreviewViewClass]):
  9743. new method, returns class to use for fancier embedded PDFKit stuff, or nil if fancy stuff isn't available
  9744. (-[WebPDFView initWithFrame:]):
  9745. now tries to use fancier embedded PDFKit stuff if it's available and the pref is set to use it; falls back
  9746. to old behavior otherwise
  9747. (-[WebPDFView dealloc]):
  9748. release new previewView ivar (retained in initWithFrame:)
  9749. (-[WebPDFView viewWillMoveToWindow:]):
  9750. stop observing PDFKit notification when we're removed from window
  9751. (-[WebPDFView viewDidMoveToWindow]):
  9752. start observing PDFKit notification when we're added to window
  9753. (-[WebPDFView _receivedPDFKitLaunchNotification:]):
  9754. respond to this new PDFKit notification by opening the document via NSWorkspace
  9755. * English.lproj/StringsNotToBeLocalized.txt:
  9756. updated for lots of recent changes
  9757. 2006-10-19 Sam Weinig <sam.weinig@gmail.com>
  9758. Reviewed by ap.
  9759. Win32 build fix.
  9760. * COM/WebFrame.cpp:
  9761. (WebFrame::initWithName):
  9762. (WebFrame::createNewWindow):
  9763. 2006-10-19 Mitz Pettel <mitz@webkit.org>
  9764. Reviewed and landed by ap.
  9765. - fixed the inspector's tree popup
  9766. * WebInspector/webInspector/inspector.html:
  9767. 2006-10-18 Sam Weinig <sam.weinig@gmail.com>
  9768. Reviewed by Maciej.
  9769. Win32 build fix.
  9770. * COM/WebFrame.cpp:
  9771. (WebFrame::createNewWindow):
  9772. * COM/WebFrame.h:
  9773. 2006-10-18 Anders Carlsson <acarlsson@apple.com>
  9774. Reviewed by Adam.
  9775. http://bugs.webkit.org/show_bug.cgi?id=11000
  9776. REGRESSION (r16101): css2.1/t0801-c412-hz-box-00-b-a is failing because the QuickTime plugin is taking over but not rendering the png
  9777. * WebCoreSupport/WebFrameBridge.m:
  9778. (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
  9779. Return ObjectElementFrame if the MIME type is one of the image ones we support.
  9780. 2006-10-17 Justin Garcia <justin.garcia@apple.com>
  9781. Reviewed by harrison
  9782. <rdar://problem/4765600>
  9783. REGRESSION: Mail.app: smart deletion of words does not work
  9784. Regressed when we pushed selecion expansion down into WebCore. It's OK
  9785. to try a smart delete from _deleteWithDirection:, which is called by
  9786. deleteFoward: and deleteBackward: if the current selection is a
  9787. range.
  9788. * WebView/WebHTMLView.m:
  9789. (-[NSArray _deleteWithDirection:granularity:killRing:isTypingAction:]):
  9790. 2006-10-13 Justin Garcia <justin.garcia@apple.com>
  9791. Reviewed by harrison
  9792. <rdar://problem/3655385>
  9793. Editing: -indent: method unimplemented
  9794. * WebView/WebHTMLView.m:
  9795. (-[NSArray validateUserInterfaceItem:]): Only allow indent:/outdent: in
  9796. richly editable areas.
  9797. (-[NSArray indent:]):
  9798. (-[NSArray outdent:]):
  9799. 2006-10-13 Maciej Stachowiak <mjs@apple.com>
  9800. Not reviewed, build fix.
  9801. * icu/unicode/putil.h: Added - needed for build if you don't have apple internal headers.
  9802. 2006-10-13 Maciej Stachowiak <mjs@apple.com>
  9803. Not reviewed, build fix.
  9804. * icu/unicode/ustring.h: Added - needed for build if you don't have apple internal headers.
  9805. 2006-10-13 Maciej Stachowiak <mjs@apple.com>
  9806. Reviewed by Anders.
  9807. - add a bunch of casts to get this compiling with older Xcode versions
  9808. (I used static_cast so it will be easier to find and remove these once we have completely moved
  9809. on to a new enough compiler version.)
  9810. * Plugins/WebBaseNetscapePluginView.m:
  9811. (+[WebBaseNetscapePluginView getCarbonEvent:]):
  9812. (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
  9813. (-[WebBaseNetscapePluginView fixWindowPort]):
  9814. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  9815. (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
  9816. (-[WebBaseNetscapePluginView _reshapeAGLWindow]):
  9817. (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
  9818. * WebKit.xcodeproj/project.pbxproj:
  9819. 2006-10-13 Kevin McCullough <KMcCullough@apple.com>
  9820. Changed by Darin, reviewed by me.
  9821. * Plugins/WebNetscapePluginStream.m: Fixed case of import so we can compile on
  9822. case-sensitive file system.
  9823. 2006-10-13 Darin Adler <darin@apple.com>
  9824. Reviewed by Adele.
  9825. - converted WebFormState from Objective-C to C++
  9826. * ForwardingHeaders: Added an entire copy of WebCore's forwarding headers here.
  9827. We should eventually come up with a more-elegant solution.
  9828. * WebKit.xcodeproj/project.pbxproj: Added ForwardingHeaders to the include paths.
  9829. Converted many files from Objective-C to Objective-C++. In a later check-in, I'll
  9830. rename them to .mm instead of .m. Removed C-only warning options for now. In a
  9831. later check-in I will add these back in a way that omits them for C++.
  9832. * Plugins/WebPluginContainerCheck.m: Updated for header changes.
  9833. * WebView/WebFrameInternal.h: Updated for header changes. Removed WebFrameLoaderClient category
  9834. so this file can still be used by Objective-C code (not just Objective-C++).
  9835. * WebView/WebFrame.m: Put WebFrameLoaderClient category in here.
  9836. (-[WebFrame _loadItem:withLoadType:]): Changed to use 0 instead of nil for FormState and fixed
  9837. enum code for C++ compatibility.
  9838. (-[WebFrame _initWithWebFrameView:webView:bridge:]): Added call to setFrameLoaderClient: here.
  9839. (-[WebFrame _updateHistoryForCommit]): Fixed enum code for C++ compatibility.
  9840. (-[WebFrame _updateHistoryForReload]): Ditto.
  9841. * WebCoreSupport/WebFrameBridge.m:
  9842. (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): Removed call to setFrameLoaderClient:.
  9843. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]): Ditto.
  9844. (-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]): Fixed enum code for C++ compatibility.
  9845. (-[WebFrameBridge runModal]): Changed code to not use "namespace" as a local variable name.
  9846. * WebView/WebPDFView.m: Added extern "C" so this can compile as Objective-C++.
  9847. 2006-10-12 Maciej Stachowiak <mjs@apple.com>
  9848. Reviewed by Oliver.
  9849. - liberate more WebKit code down to WebCore
  9850. * WebCoreSupport/WebFrameBridge.h:
  9851. * WebCoreSupport/WebFrameBridge.m:
  9852. 2006-10-12 Adele Peterson <adele@apple.com>
  9853. Reviewed by Maciej.
  9854. WebKit part of fix for <rdar://problem/4450613> need a means to attach user data to any menu that is popuped up in HTML
  9855. Added private delegate method for clients that want access to a PopupMenu's NSMenu.
  9856. * DefaultDelegates/WebDefaultUIDelegate.m: (-[NSApplication webView:willPopupMenu:]):
  9857. * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge willPopupMenu:]):
  9858. * WebView/WebUIDelegatePrivate.h:
  9859. 2006-10-12 MorganL <morganl.webkit@yahoo.com>
  9860. Reviewed/landed by Adam.
  9861. Fixes http://bugs.webkit.org/show_bug.cgi?id=11264
  9862. Windows build busted
  9863. * COM/WebFrame.cpp:
  9864. (WebFrame::receivedResponse):
  9865. 2006-10-11 Darin Adler <darin@apple.com>
  9866. Reviewed by Adele.
  9867. - preparations for making more code C++
  9868. * WebKitPrefix.h: Fixed ifdef so that C++ files get all the precompiled stuff
  9869. that non-C++ files get.
  9870. * Misc/WebKitLogging.h:
  9871. * Misc/WebKitSystemBits.h:
  9872. * Misc/WebLocalizableStrings.h:
  9873. * WebCoreSupport/WebSystemInterface.h:
  9874. Added extern "C".
  9875. * Misc/WebNSViewExtras.h:
  9876. * WebView/WebDataSource.m: (addTypesFromClass):
  9877. * WebView/WebFrameView.m: (addTypesFromClass):
  9878. Eliminated use of the identifier "class".
  9879. * WebView/WebView.m: (-[WebView _goToItem:withLoadType:]): Added a type cast.
  9880. * Plugins/WebBaseNetscapePluginView.m: Added lots of type casts.
  9881. 2006-10-10 Brady Eidson <beidson@apple.com>
  9882. Reviewed by Maciej.
  9883. Moved WebFrameLoader into WebCoreFrameBridge
  9884. * WebCoreSupport/WebFrameBridge.h:
  9885. * WebCoreSupport/WebFrameBridge.m:
  9886. (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
  9887. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  9888. (-[WebFrameBridge dealloc]):
  9889. (-[WebFrameBridge setTitle:]):
  9890. (-[WebFrameBridge receivedData:textEncodingName:]):
  9891. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  9892. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  9893. (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
  9894. (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  9895. (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  9896. (-[WebFrameBridge reportClientRedirectCancelled:]):
  9897. (-[WebFrameBridge close]):
  9898. (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
  9899. (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  9900. (-[WebFrameBridge tokenizerProcessedData]):
  9901. (-[WebFrameBridge frameDetached]):
  9902. (-[WebFrameBridge didFirstLayout]):
  9903. (-[WebFrameBridge notifyIconChanged:]):
  9904. (-[WebFrameBridge originalRequestURL]):
  9905. (-[WebFrameBridge isLoadTypeReload]):
  9906. 2006-10-10 Adele Peterson <adele@apple.com>
  9907. Reviewed by Beth.
  9908. Removed handleAutoscrollForMouseDragged. Except for autoscroll caused by drag and drop, all other
  9909. autoscrolling should be done in WebCore instead of in AppKit.
  9910. * WebCoreSupport/WebFrameBridge.m:
  9911. * WebView/WebHTMLView.m:
  9912. * WebView/WebHTMLViewPrivate.h:
  9913. 2006-10-10 Darin Adler <darin@apple.com>
  9914. - corrected an archive regression caused by loader refactoring
  9915. (pointed out by Graham Dennis)
  9916. * WebView/WebFrame.m: (-[WebFrame _deliverArchivedResourcesAfterDelay]):
  9917. Fix selector name.
  9918. 2006-10-10 Maciej Stachowiak <mjs@apple.com>
  9919. Rubber stamped by Eric.
  9920. - moved a whole bunch of stuff over to WebCore - updated includes appropriately
  9921. * Loader/LoaderNSURLExtras.h: Removed.
  9922. * Loader/LoaderNSURLExtras.m: Removed.
  9923. * Loader/WebDataProtocol.h: Removed.
  9924. * Loader/WebDataProtocol.m: Removed.
  9925. * Loader/WebDocumentLoader.h: Removed.
  9926. * Loader/WebDocumentLoader.m: Removed.
  9927. * Loader/WebFormDataStream.h: Removed.
  9928. * Loader/WebFormDataStream.m: Removed.
  9929. * Loader/WebFormState.h: Removed.
  9930. * Loader/WebFormState.m: Removed.
  9931. * Loader/WebFrameLoader.h: Removed.
  9932. * Loader/WebFrameLoader.m: Removed.
  9933. * Loader/WebFrameLoaderClient.h: Removed.
  9934. * Loader/WebLoader.h: Removed.
  9935. * Loader/WebLoader.m: Removed.
  9936. * Loader/WebMainResourceLoader.h: Removed.
  9937. * Loader/WebMainResourceLoader.m: Removed.
  9938. * Loader/WebNetscapePlugInStreamLoader.h: Removed.
  9939. * Loader/WebNetscapePlugInStreamLoader.m: Removed.
  9940. * Loader/WebPlugInStreamLoaderDelegate.h: Removed.
  9941. * Loader/WebPolicyDecider.h: Removed.
  9942. * Loader/WebPolicyDecider.m: Removed.
  9943. * Loader/WebSubresourceLoader.h: Removed.
  9944. * Loader/WebSubresourceLoader.m: Removed.
  9945. * Misc/WebNSURLExtras.m:
  9946. * Plugins/WebBaseNetscapePluginStream.h:
  9947. * Plugins/WebBaseNetscapePluginView.m:
  9948. * Plugins/WebNetscapePluginStream.m:
  9949. * Plugins/WebPluginContainerCheck.m:
  9950. * Plugins/WebPluginController.m:
  9951. * WebCoreSupport/WebFrameBridge.m:
  9952. * WebKit.xcodeproj/project.pbxproj:
  9953. * WebView/WebDataSource.m:
  9954. * WebView/WebDocumentLoaderMac.h:
  9955. * WebView/WebFrame.m:
  9956. * WebView/WebFrameInternal.h:
  9957. * WebView/WebHTMLView.m:
  9958. * WebView/WebPolicyDeciderMac.h:
  9959. * WebView/WebPolicyDelegate.m:
  9960. * WebView/WebView.m:
  9961. 2006-10-10 Mark Rowe <bdash@webkit.org>
  9962. Reviewed by Maciej.
  9963. Fix crash on launch in nightly builds after r16965.
  9964. Safari will sometimes call through to -[NSURL _webkit_canonicalize] before creating a WebView. If this happens,
  9965. InitWebCoreSystemInterface has not yet been called so the call to wkNSURLProtocolClassForReqest is via a garbage
  9966. pointer.
  9967. * Misc/WebNSURLExtras.m:
  9968. (-[NSURL _webkit_canonicalize]): Ensure InitWebCoreSystemInterface is called prior to canonicalURL.
  9969. 2006-10-10 Maciej Stachowiak <mjs@apple.com>
  9970. Reviewed by Oliver.
  9971. - split out some NSURL extras to be moved to WebCore
  9972. * Loader/LoaderNSURLExtras.h: Added.
  9973. * Loader/LoaderNSURLExtras.m: Added.
  9974. (urlByRemovingComponent):
  9975. (urlByRemovingFragment):
  9976. (urlOriginalDataAsString):
  9977. (urlOriginalData):
  9978. (urlWithData):
  9979. (WebCFAutorelease):
  9980. (urlWithDataRelativeToURL):
  9981. (urlByRemovingResourceSpecifier):
  9982. (urlIsFileURL):
  9983. (stringIsFileURL):
  9984. (urlIsEmpty):
  9985. (canonicalURL):
  9986. * Loader/WebFrameLoader.m:
  9987. (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
  9988. (setHTTPReferrer):
  9989. (-[WebFrameLoader commitProvisionalLoad:]):
  9990. (-[WebFrameLoader _notifyIconChanged:]):
  9991. (-[WebFrameLoader didChangeTitleForDocument:]):
  9992. (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
  9993. (-[WebFrameLoader safeLoadURL:]):
  9994. * Misc/WebNSURLExtras.m:
  9995. (+[NSURL _web_URLWithData:]):
  9996. (+[NSURL _web_URLWithData:relativeToURL:]):
  9997. (-[NSURL _web_originalData]):
  9998. (-[NSURL _web_originalDataAsString]):
  9999. (-[NSURL _web_isEmpty]):
  10000. (-[NSURL _webkit_canonicalize]):
  10001. (-[NSURL _webkit_URLByRemovingComponent:]):
  10002. (-[NSURL _webkit_URLByRemovingFragment]):
  10003. (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
  10004. (-[NSURL _webkit_isFileURL]):
  10005. (-[NSString _webkit_isFileURL]):
  10006. * WebCoreSupport/WebSystemInterface.m:
  10007. (InitWebCoreSystemInterface):
  10008. * WebKit.xcodeproj/project.pbxproj:
  10009. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10010. Reviewed by Anders.
  10011. - sever final WebFrame dependencies
  10012. * Loader/WebFrameLoader.h:
  10013. * Loader/WebFrameLoader.m:
  10014. (-[WebFrameLoader initWithFrame:client:]):
  10015. (-[WebFrameLoader defersCallbacksChanged]):
  10016. (-[WebFrameLoader subframeIsLoading]):
  10017. (-[WebFrameLoader transitionToCommitted:]):
  10018. (-[WebFrameLoader detachChildren]):
  10019. (-[WebFrameLoader checkLoadComplete]):
  10020. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10021. Reviewed by Brady.
  10022. - convert more WebFrameLoader stuff to be independent of WebFrame
  10023. * Loader/WebFrameLoader.h:
  10024. * Loader/WebFrameLoader.m:
  10025. (-[WebFrameLoader stopLoadingSubframes]):
  10026. (-[WebFrameLoader _receivedMainResourceError:complete:]):
  10027. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10028. (-[WebFrameLoader closeOldDataSources]):
  10029. (-[WebFrameLoader isHostedByObjectElement]):
  10030. (-[WebFrameLoader isLoadingMainFrame]):
  10031. (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
  10032. (-[WebFrameLoader transitionToCommitted:]):
  10033. (-[WebFrameLoader checkLoadCompleteForThisFrame]):
  10034. (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  10035. (-[WebFrameLoader loadRequest:inFrameNamed:]):
  10036. (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10037. (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
  10038. (-[WebFrameLoader client]):
  10039. * Loader/WebFrameLoaderClient.h:
  10040. * WebView/WebDataSource.m:
  10041. (-[WebDataSource _webView]):
  10042. (-[WebDataSource webFrame]):
  10043. * WebView/WebFrame.m:
  10044. (-[WebFrame _dispatchCreateWebViewWithRequest:]):
  10045. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10046. Reviewed by Anders and Oliver.
  10047. - move a bunch of WebFrame methods from the Internal category to the WebFrameLoader protocol
  10048. * Loader/WebFrameLoader.h:
  10049. * Loader/WebFrameLoader.m:
  10050. (-[WebFrameLoader loadRequest:]):
  10051. (-[WebFrameLoader loadRequest:inFrameNamed:]):
  10052. * Loader/WebFrameLoaderClient.h:
  10053. * WebView/WebFrame.m:
  10054. (-[WebFrame loadRequest:]):
  10055. (-[WebFrame _dispatchDidCommitLoadForFrame]):
  10056. (-[WebFrame _hasFrameView]):
  10057. (-[WebFrame _frameLoadCompleted]):
  10058. (-[WebFrame _restoreScrollPositionAndViewState]):
  10059. (-[WebFrame _setTitle:forURL:]):
  10060. (-[WebFrame _createDocumentLoaderWithRequest:]):
  10061. (-[WebFrame _prepareForDataSourceReplacement]):
  10062. (-[WebFrame _didFinishLoad]):
  10063. (-[WebFrame _addHistoryItemForFragmentScroll]):
  10064. (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
  10065. (-[WebFrame _provisionalLoadStarted]):
  10066. * WebView/WebFrameInternal.h:
  10067. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10068. Not reviewed, build fix.
  10069. - added forgotten files
  10070. * Loader/WebPolicyDecider.h: Added.
  10071. * Loader/WebPolicyDecider.m: Added.
  10072. (-[WebPolicyDecider invalidate]):
  10073. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10074. Reviewed by Brady.
  10075. - add wrapper for WebPolicyDecisionListener so we can remove the dependency from WebFrameLoader.
  10076. * Loader/WebFrameLoader.h:
  10077. * Loader/WebFrameLoader.m:
  10078. (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
  10079. (-[WebFrameLoader cancelContentPolicy]):
  10080. (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
  10081. (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
  10082. (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
  10083. (-[WebFrameLoader continueAfterWillSubmitForm:]):
  10084. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10085. * Loader/WebFrameLoaderClient.h:
  10086. * WebKit.xcodeproj/project.pbxproj:
  10087. * WebView/WebFrame.m:
  10088. (-[WebFrame _createPolicyDeciderWithTarget:action:]):
  10089. (decisionListener):
  10090. (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decider:]):
  10091. (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decider:]):
  10092. (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decider:]):
  10093. (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
  10094. * WebView/WebPolicyDeciderMac.h: Added.
  10095. * WebView/WebPolicyDeciderMac.m: Added.
  10096. (-[WebPolicyDeciderMac initWithTarget:action:]):
  10097. (-[WebPolicyDeciderMac dealloc]):
  10098. (-[WebPolicyDeciderMac decisionListener]):
  10099. (-[WebPolicyDeciderMac invalidate]):
  10100. 2006-10-09 Brady Eidson <beidson@apple.com>
  10101. Reviewed by John
  10102. http://bugs.webkit.org/show_bug.cgi?id=11195
  10103. Added the WebIconDatabaseDelegate. This allows the ability to allow customization of
  10104. IconDatabase behavior in the future, starting now with the ability to override the
  10105. default icon fairly flexibly
  10106. * Misc/WebIconDatabase.h: Added setIconDatabaseDelegate:
  10107. * Misc/WebIconDatabase.m:
  10108. (-[WebIconDatabase iconForURL:withSize:cache:]): Call the delegate for the default icon if delegate is set
  10109. (-[WebIconDatabase defaultIconForURL:withSize:]): Get the default icon through the delegate if available, built-in if not
  10110. (-[WebIconDatabase setDelegate:]):
  10111. (-[WebIconDatabase delegate]):
  10112. * Misc/WebIconDatabaseDelegate.h: Added.
  10113. * Misc/WebIconDatabasePrivate.h: Added the delegate, nuked an unused class definition
  10114. * WebKit.xcodeproj/project.pbxproj:
  10115. 2006-10-09 Darin Adler <darin@apple.com>
  10116. Reviewed by Maciej.
  10117. - eliminated uses of WebResource and WebView from WebFrameLoader
  10118. * Loader/WebFrameLoader.h:
  10119. * Loader/WebFrameLoader.m:
  10120. (-[WebFrameLoader setDefersCallbacks:]):
  10121. (-[WebFrameLoader stopLoading]):
  10122. (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
  10123. (-[WebFrameLoader archiveLoadPendingForLoader:]):
  10124. (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
  10125. (-[WebFrameLoader _canShowMIMEType:]):
  10126. (-[WebFrameLoader _representationExistsForURLScheme:]):
  10127. (-[WebFrameLoader _generatedMIMETypeForURLScheme:]):
  10128. (-[WebFrameLoader loadDocumentLoader:]):
  10129. (-[WebFrameLoader continueAfterNavigationPolicy:]):
  10130. (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
  10131. (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
  10132. * Loader/WebFrameLoaderClient.h:
  10133. * Loader/WebMainResourceLoader.m:
  10134. (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
  10135. (-[WebMainResourceLoader loadWithRequestNow:]):
  10136. * WebView/WebFrame.m:
  10137. (-[WebFramePrivate dealloc]):
  10138. (-[WebFrame loadRequest:]):
  10139. (-[WebFrame loadArchive:]):
  10140. (-[WebFrame _canUseResourceForRequest:]):
  10141. (-[WebFrame _canUseResourceWithResponse:]):
  10142. (-[WebFrame _deliverArchivedResourcesAfterDelay]):
  10143. (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
  10144. (-[WebFrame _archiveLoadPendingForLoader:]):
  10145. (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
  10146. (-[WebFrame _clearArchivedResources]):
  10147. (-[WebFrame _deliverArchivedResources]):
  10148. (-[WebFrame _setDefersCallbacks:]):
  10149. (-[WebFrame _canHandleRequest:]):
  10150. (-[WebFrame _canShowMIMEType:]):
  10151. (-[WebFrame _representationExistsForURLScheme:]):
  10152. (-[WebFrame _generatedMIMETypeForURLScheme:]):
  10153. (-[WebFrame _elementForEvent:]):
  10154. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10155. Reviewed by Darin.
  10156. - do all the stuff that setting the referrer should
  10157. * Loader/WebFrameLoader.m:
  10158. (setHTTPReferrer):
  10159. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10160. (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10161. * WebKit.xcodeproj/project.pbxproj:
  10162. 2006-10-09 Brady Eidson <beidson@apple.com>
  10163. Reviewed by Maciej
  10164. Fix to elminate WebIconDatabaseBridge.h from WebFrameLoader
  10165. * Loader/WebFrameLoader.m:
  10166. (-[WebFrameLoader _notifyIconChanged:]):
  10167. * WebCoreSupport/WebIconDatabaseBridge.m:
  10168. (+[WebIconDatabaseBridge createInstance]):
  10169. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10170. Reviewed by Darin.
  10171. (Was reviewed as part of a larger patch but it looks like Darin already did the rest of it)
  10172. - avoid a needless use of WebFrame
  10173. * Loader/WebFrameLoader.m:
  10174. (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
  10175. 2006-10-09 Brady Eidson <beidson@apple.com>
  10176. A *real* fake fix for the layouttest problem until the real fix
  10177. * Loader/WebFrameLoader.m:
  10178. (-[WebFrameLoader _notifyIconChanged:]):
  10179. 2006-10-09 Brady Eidson <beidson@apple.com>
  10180. Quick layouttest fix until I make the real fix
  10181. * Loader/WebFrameLoader.m:
  10182. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10183. Reviewed by Darin.
  10184. - wean WebFrameLoader from WebDataSource private stuff
  10185. (actually just tweaks tot he above to make merging my future
  10186. patches easier since Darin did a lot of the same stuff)
  10187. * Loader/WebDocumentLoader.h:
  10188. * Loader/WebDocumentLoader.m:
  10189. (-[WebDocumentLoader URLForHistory]):
  10190. * Loader/WebFrameLoader.m:
  10191. (-[WebFrameLoader _loadRequest:archive:]):
  10192. (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
  10193. (-[WebFrameLoader documentLoader:setMainDocumentError:]):
  10194. (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
  10195. (-[WebFrameLoader didChangeTitleForDocument:]):
  10196. (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
  10197. * Loader/WebFrameLoaderClient.h:
  10198. * WebView/WebDataSource.m:
  10199. (-[WebDataSource _URLForHistory]):
  10200. * WebView/WebFrame.m:
  10201. (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
  10202. (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
  10203. (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
  10204. (-[WebFrame _clearUnarchivingStateForLoader:]):
  10205. 2006-10-09 Darin Adler <darin@apple.com>
  10206. Reviewed by Brady.
  10207. - eliminated WebFrameLoader dependency on WebDataSourceInternal.h,
  10208. WebIconDatabasePrivate.h, and WebKitErrorsPrivate.h, along with
  10209. most but not all references to WebView
  10210. * Loader/WebFrameLoader.h:
  10211. * Loader/WebFrameLoader.m:
  10212. (-[WebFrameLoader removePlugInStreamLoader:]):
  10213. (-[WebFrameLoader _receivedMainResourceError:complete:]):
  10214. (-[WebFrameLoader _notifyIconChanged:]):
  10215. (-[WebFrameLoader cancelledErrorWithRequest:]):
  10216. (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
  10217. (-[WebFrameLoader handleUnimplementablePolicyWithError:]):
  10218. (-[WebFrameLoader cannotShowMIMETypeWithResponse:]):
  10219. (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
  10220. (-[WebFrameLoader _loadRequest:archive:]):
  10221. (-[WebFrameLoader finishedLoadingDocument:]):
  10222. (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
  10223. (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
  10224. (-[WebFrameLoader documentLoader:setMainDocumentError:]):
  10225. (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
  10226. (-[WebFrameLoader didChangeTitleForDocument:]):
  10227. (-[WebFrameLoader continueAfterNavigationPolicy:]):
  10228. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10229. (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
  10230. (-[WebFrameLoader transitionToCommitted:]):
  10231. (-[WebFrameLoader checkLoadCompleteForThisFrame]):
  10232. (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
  10233. (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  10234. (-[WebFrameLoader checkLoadComplete]):
  10235. * Loader/WebFrameLoaderClient.h:
  10236. * Loader/WebMainResourceLoader.m:
  10237. (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
  10238. * WebView/WebFrame.m:
  10239. (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
  10240. (-[WebFrame _formDelegate]):
  10241. (-[WebFrame _finishedLoadingDocument:]):
  10242. (-[WebFrame _committedLoadWithDocumentLoader:data:]):
  10243. (-[WebFrame _revertToProvisionalWithDocumentLoader:]):
  10244. (-[WebFrame _documentLoader:setMainDocumentError:]):
  10245. (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
  10246. (-[WebFrame _URLForHistoryForDocumentLoader:]):
  10247. (-[WebFrame _cancelledErrorWithRequest:]):
  10248. (-[WebFrame _cannotShowURLErrorWithRequest:]):
  10249. (-[WebFrame _interruptForPolicyChangeErrorWithRequest:]):
  10250. (-[WebFrame _cannotShowMIMETypeErrorWithResponse:]):
  10251. (-[WebFrame _fileDoesNotExistErrorWithResponse:]):
  10252. (-[WebFrame _shouldFallBackForError:]):
  10253. (-[WebFrame _hasWebView]):
  10254. (-[WebFrame _mainFrameURL]):
  10255. * WebView/WebFrameInternal.h:
  10256. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10257. Reviewed, landed, tweaked a bit by Darin.
  10258. - removed most uses of WebFrameBridge from WebFrameLoader
  10259. (WebCoreFrameBridge use is OK)
  10260. * Loader/WebDocumentLoader.m:
  10261. (-[WebDocumentLoader bridge]):
  10262. * Loader/WebFrameLoader.h:
  10263. * Loader/WebFrameLoader.m:
  10264. (-[WebFrameLoader initWithFrame:client:]):
  10265. (-[WebFrameLoader defersCallbacksChanged]):
  10266. (-[WebFrameLoader defersCallbacks]):
  10267. (-[WebFrameLoader provisionalLoadStarted]):
  10268. (-[WebFrameLoader stopLoadingSubframes]):
  10269. (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
  10270. (-[WebFrameLoader _receivedMainResourceError:complete:]):
  10271. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10272. (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
  10273. (-[WebFrameLoader closeOldDataSources]):
  10274. (-[WebFrameLoader commitProvisionalLoad:]):
  10275. (-[WebFrameLoader bridge]):
  10276. (-[WebFrameLoader _handleFallbackContent]):
  10277. (-[WebFrameLoader _finishedLoading]):
  10278. (-[WebFrameLoader reload]):
  10279. (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
  10280. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10281. (-[WebFrameLoader transitionToCommitted:]):
  10282. (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  10283. (-[WebFrameLoader loadRequest:inFrameNamed:]):
  10284. (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10285. (-[WebFrameLoader detachFromParent]):
  10286. (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  10287. (-[WebFrameLoader safeLoadURL:]):
  10288. (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
  10289. * WebCoreSupport/WebFrameBridge.m:
  10290. (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
  10291. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  10292. * WebView/WebFrame.m:
  10293. (-[WebFrame _atMostOneFrameHasSelection]):
  10294. * WebView/WebFrameInternal.h:
  10295. 2006-10-09 Darin Adler <darin@apple.com>
  10296. Reviewed by Brady.
  10297. - removed almost all direct use of WebView from WebFrameLoader
  10298. * Loader/WebFrameLoader.m:
  10299. (-[WebFrameLoader defersCallbacksChanged]):
  10300. (-[WebFrameLoader defersCallbacks]):
  10301. (-[WebFrameLoader clearProvisionalLoad]):
  10302. (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
  10303. (-[WebFrameLoader _didReceiveResponse:forResource:]):
  10304. (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
  10305. (-[WebFrameLoader _didFinishLoadingForResource:]):
  10306. (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
  10307. (-[WebFrameLoader closeOldDataSources]):
  10308. (-[WebFrameLoader _notifyIconChanged:]):
  10309. (-[WebFrameLoader prepareForLoadStart]):
  10310. (-[WebFrameLoader willChangeTitleForDocument:]):
  10311. (-[WebFrameLoader didChangeTitleForDocument:]):
  10312. (-[WebFrameLoader continueAfterNewWindowPolicy:]):
  10313. (-[WebFrameLoader continueAfterNavigationPolicy:]):
  10314. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10315. (-[WebFrameLoader didFirstLayout]):
  10316. (-[WebFrameLoader transitionToCommitted:]):
  10317. (-[WebFrameLoader checkLoadCompleteForThisFrame]):
  10318. (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  10319. * Loader/WebFrameLoaderClient.h:
  10320. * WebKit.xcodeproj/project.pbxproj:
  10321. * WebView/WebFrame.m:
  10322. (-[WebFrame _currentBackForwardListItemToResetTo]):
  10323. (-[WebFrame _hasBackForwardList]):
  10324. (-[WebFrame _resetBackForwardList]):
  10325. (-[WebFrame _dispatchDidReceiveIcon:]):
  10326. (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
  10327. (-[WebFrame _dispatchDidCommitLoadForFrame]):
  10328. (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
  10329. (-[WebFrame _dispatchDidFailLoadWithError:]):
  10330. (-[WebFrame _dispatchDidFinishLoadForFrame]):
  10331. (-[WebFrame _progressStarted]):
  10332. (-[WebFrame _progressCompleted]):
  10333. (-[WebFrame _incrementProgressForIdentifier:response:]):
  10334. (-[WebFrame _incrementProgressForIdentifier:data:]):
  10335. (-[WebFrame _completeProgressForIdentifier:]):
  10336. (-[WebFrame _setMainFrameDocumentReady:]):
  10337. (-[WebFrame _willChangeTitleForDocument:]):
  10338. (-[WebFrame _didChangeTitleForDocument:]):
  10339. (-[WebFrame _startDownloadWithRequest:]):
  10340. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10341. Reviewed by Alice.
  10342. - moved WebFormState into Loader directory and tweaked to avoid WebKit dependencies
  10343. * Loader/WebDocumentLoader.h:
  10344. * Loader/WebFormState.h: Added.
  10345. * Loader/WebFormState.m: Added.
  10346. (-[WebFormState initWithForm:values:sourceFrame:]):
  10347. (-[WebFormState dealloc]):
  10348. (-[WebFormState form]):
  10349. (-[WebFormState values]):
  10350. (-[WebFormState sourceFrame]):
  10351. * Loader/WebFrameLoader.h:
  10352. * Loader/WebFrameLoader.m:
  10353. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10354. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10355. (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10356. * WebKit.xcodeproj/project.pbxproj:
  10357. * WebView/WebFrame.m:
  10358. * WebView/WebFrameInternal.h:
  10359. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10360. Reviewed by Oliver.
  10361. - remove dependency on WebNSURLRequestExtras.h
  10362. * Loader/WebFrameLoader.h:
  10363. * Loader/WebFrameLoader.m:
  10364. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10365. (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10366. (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  10367. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10368. Reviewed by Oliver.
  10369. - removed unneeded logging code so I can take WebKitLogging.h out and remove a WebKit dependency
  10370. * Loader/WebFrameLoader.m:
  10371. (-[WebFrameLoader setState:]):
  10372. (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
  10373. (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  10374. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10375. (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
  10376. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10377. (-[WebFrameLoader checkLoadCompleteForThisFrame]):
  10378. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10379. Reviewed by Oliver.
  10380. - remove WebDataSource from the WebFrameLoader interface (and thereby from a lot of internal use)
  10381. * Loader/WebDocumentLoader.h:
  10382. * Loader/WebDocumentLoader.m:
  10383. (-[WebDocumentLoader dealloc]):
  10384. (-[WebDocumentLoader initialRequest]):
  10385. (-[WebDocumentLoader URL]):
  10386. (-[WebDocumentLoader unreachableURL]):
  10387. * Loader/WebFrameLoader.h:
  10388. * Loader/WebFrameLoader.m:
  10389. (-[WebFrameLoader setState:]):
  10390. (-[WebFrameLoader startLoading]):
  10391. (-[WebFrameLoader startProvisionalLoad:]):
  10392. (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  10393. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10394. (-[WebFrameLoader opened]):
  10395. (-[WebFrameLoader commitProvisionalLoad:]):
  10396. (-[WebFrameLoader initialRequest]):
  10397. (-[WebFrameLoader _finishedLoading]):
  10398. (-[WebFrameLoader _notifyIconChanged:]):
  10399. (-[WebFrameLoader _URL]):
  10400. (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
  10401. (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
  10402. (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
  10403. (-[WebFrameLoader _loadRequest:archive:]):
  10404. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
  10405. (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
  10406. (-[WebFrameLoader reload]):
  10407. (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
  10408. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10409. (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
  10410. (-[WebFrameLoader frameLoadCompleted]):
  10411. (-[WebFrameLoader transitionToCommitted:]):
  10412. (-[WebFrameLoader checkLoadCompleteForThisFrame]):
  10413. (-[WebFrameLoader safeLoadURL:]):
  10414. * Loader/WebFrameLoaderClient.h:
  10415. * Plugins/WebBaseNetscapePluginView.m:
  10416. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
  10417. * WebCoreSupport/WebFrameBridge.m:
  10418. (-[WebFrameBridge originalRequestURL]):
  10419. * WebView/WebDataSource.m:
  10420. (-[WebDataSource _URL]):
  10421. (-[WebDataSource dealloc]):
  10422. (-[WebDataSource initialRequest]):
  10423. (-[WebDataSource unreachableURL]):
  10424. * WebView/WebFrame.m:
  10425. (-[WebFrame _loadItem:withLoadType:]):
  10426. (-[WebFrame _prepareForDataSourceReplacement]):
  10427. (-[WebFrame provisionalDataSource]):
  10428. (-[WebFrame dataSource]):
  10429. (-[WebFrame _makeDocumentView]):
  10430. (-[WebFrame _updateHistoryForReload]):
  10431. (-[WebFrame _updateHistoryForStandardLoad]):
  10432. (-[WebFrame _updateHistoryForInternalLoad]):
  10433. (-[WebFrame _forceLayoutForNonHTML]):
  10434. (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
  10435. (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
  10436. (-[WebFrame _archivedSubresourceForURL:fromDocumentLoader:]):
  10437. (-[WebFrame _makeRepresentationForDocumentLoader:]):
  10438. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  10439. Reviewed by Darin.
  10440. - removed need for WebFrameLoader to now about WebDocumentLoaderMac
  10441. * Loader/WebFrameLoader.m:
  10442. (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
  10443. * WebView/WebDocumentLoaderMac.h:
  10444. * WebView/WebDocumentLoaderMac.m:
  10445. (-[WebDocumentLoaderMac setFrameLoader:]):
  10446. (-[WebDocumentLoaderMac detachFromFrameLoader]):
  10447. 2006-10-09 Darin Adler <darin@apple.com>
  10448. Reviewed by Maciej.
  10449. - passed calls that require WebScriptDebugServer across the client interface
  10450. * Loader/WebFrameLoader.m:
  10451. (-[WebFrameLoader _finishedLoading]):
  10452. (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
  10453. * Loader/WebFrameLoaderClient.h:
  10454. * WebView/WebFrame.m:
  10455. (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
  10456. 2006-10-08 Darin Adler <darin@apple.com>
  10457. Reviewed by Maciej.
  10458. - passed calls that require WebHTMLView or WebFrameView calls across
  10459. the client interface
  10460. * Loader/WebFrameLoader.h:
  10461. * Loader/WebFrameLoader.m:
  10462. (isCaseInsensitiveEqual):
  10463. (isBackForwardLoadType):
  10464. (-[WebFrameLoader opened]):
  10465. (-[WebFrameLoader cancelledErrorWithRequest:]):
  10466. (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
  10467. (-[WebFrameLoader reload]):
  10468. (-[WebFrameLoader transitionToCommitted:]):
  10469. * Loader/WebFrameLoaderClient.h:
  10470. * WebView/WebFrame.m:
  10471. (-[WebFrame _forceLayout]):
  10472. (-[WebFrame _setDocumentViewFromPageCache:]):
  10473. (-[WebFrame _setCopiesOnScroll]):
  10474. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  10475. Reviewed by Darin.
  10476. - pass remaining delegate methods across client interface
  10477. * Loader/WebFrameLoader.m:
  10478. (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
  10479. (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
  10480. (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
  10481. (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
  10482. (-[WebFrameLoader didFirstLayout]):
  10483. (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  10484. * Loader/WebFrameLoaderClient.h:
  10485. * WebView/WebFrame.m:
  10486. (-[WebFrame _dispatchDidFirstLayoutInFrame]):
  10487. (-[WebFrame _dispatchCreateWebViewWithRequest:]):
  10488. (-[WebFrame _dispatchShow]):
  10489. (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decisionListener:]):
  10490. (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decisionListener:]):
  10491. (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decisionListener:]):
  10492. (-[WebFrame _dispatchUnableToImplementPolicyWithError:]):
  10493. 2006-10-08 Darin Adler <darin@apple.com>
  10494. Reviewed by Maciej.
  10495. - use WebCoreSystemInterface instead of WebSystemInterface in Loader directory
  10496. * Loader/WebFrameLoader.m: Update includes.
  10497. (-[WebFrameLoader commitProvisionalLoad:]): Use wk calls istead of WK.
  10498. (-[WebFrameLoader _canUseResourceWithResponse:]): Ditto.
  10499. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
  10500. Added the three new symbols, and resorted the list.
  10501. * Loader/WebDataProtocol.m:
  10502. * Loader/WebLoader.m:
  10503. * Loader/WebMainResourceLoader.h:
  10504. * Loader/WebMainResourceLoader.m:
  10505. * Loader/WebNetscapePlugInStreamLoader.h:
  10506. * Loader/WebNetscapePlugInStreamLoader.m:
  10507. * Loader/WebSubresourceLoader.h:
  10508. * Loader/WebSubresourceLoader.m:
  10509. Changed import statements to consistently use the "" format.
  10510. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  10511. Not reviewed.
  10512. - fix accidental build break due to editing while committing
  10513. * Loader/WebFrameLoader.m:
  10514. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  10515. Reviewed by Darin.
  10516. - move all WebFrameLoadDelegate methods across client interface
  10517. * Loader/WebFrameLoader.m:
  10518. (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
  10519. (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  10520. (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
  10521. (-[WebFrameLoader closeOldDataSources]):
  10522. (-[WebFrameLoader _notifyIconChanged:]):
  10523. (-[WebFrameLoader prepareForLoadStart]):
  10524. (-[WebFrameLoader didChangeTitleForDocument:]):
  10525. (-[WebFrameLoader transitionToCommitted:]):
  10526. (-[WebFrameLoader checkLoadCompleteForThisFrame]):
  10527. * Loader/WebFrameLoaderClient.h:
  10528. * WebView/WebFrame.m:
  10529. (-[WebFrame _dispatchDidCancelClientRedirectForFrame]):
  10530. (-[WebFrame _dispatchWillPerformClientRedirectToURL:delay:fireDate:]):
  10531. (-[WebFrame _dispatchDidChangeLocationWithinPageForFrame]):
  10532. (-[WebFrame _dispatchWillCloseFrame]):
  10533. (-[WebFrame _dispatchDidReceiveIcon:]):
  10534. (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
  10535. (-[WebFrame _dispatchDidReceiveTitle:]):
  10536. (-[WebFrame _dispatchDidCommitLoadForFrame]):
  10537. (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
  10538. (-[WebFrame _dispatchDidFailLoadWithError:]):
  10539. (-[WebFrame _dispatchDidFinishLoadForFrame]):
  10540. 2006-10-08 Darin Adler <darin@apple.com>
  10541. Reviewed by Maciej.
  10542. - removed some of the WebKit dependencies in WebFrameLoader
  10543. * Loader/WebFrameLoader.m:
  10544. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10545. (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
  10546. (-[WebFrameLoader reload]):
  10547. (-[WebFrameLoader didChangeTitleForDocument:]):
  10548. * Loader/WebFrameLoaderClient.h:
  10549. * WebView/WebFrame.m:
  10550. (-[WebFrame _loadItem:withLoadType:]):
  10551. (-[WebFrame _loadURL:referrer:intoChild:]):
  10552. (-[WebFrame _setTitle:forURL:]):
  10553. (-[WebFrame _downloadWithLoadingConnection:request:response:proxy:]):
  10554. * WebView/WebFrameInternal.h:
  10555. - some other tweaks
  10556. * Misc/WebNSURLRequestExtras.m:
  10557. (-[NSMutableURLRequest _web_setHTTPReferrer:]):
  10558. (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
  10559. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  10560. Reviewed by Darin.
  10561. - pass all WebResourceLoadDelegate methods across client, removing need to include related headers
  10562. * Loader/WebFrameLoader.m:
  10563. (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
  10564. (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
  10565. (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
  10566. (-[WebFrameLoader _didReceiveResponse:forResource:]):
  10567. (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
  10568. (-[WebFrameLoader _didFinishLoadingForResource:]):
  10569. (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
  10570. (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
  10571. (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
  10572. * Loader/WebFrameLoaderClient.h:
  10573. * WebView/WebFrame.m:
  10574. (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
  10575. (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
  10576. (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
  10577. (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
  10578. (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
  10579. (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
  10580. (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
  10581. (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
  10582. (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
  10583. (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
  10584. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  10585. Reviewed by Darin.
  10586. - started adding some _dispatch methods to WebFrameLoaderClient for delegate dispatch
  10587. * Loader/WebFrameLoader.m:
  10588. (-[WebFrameLoader startLoading]):
  10589. (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
  10590. * Loader/WebFrameLoaderClient.h:
  10591. * WebCoreSupport/WebFrameBridge.m:
  10592. (-[WebFrameBridge handledOnloadEvents]):
  10593. * WebView/WebFrame.m:
  10594. (dataSource):
  10595. (-[WebFrame _dataSourceForDocumentLoader:]):
  10596. (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
  10597. (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
  10598. (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
  10599. * WebView/WebFrameInternal.h:
  10600. 2006-10-08 Darin Adler <darin@apple.com>
  10601. Reviewed by Maciej.
  10602. - moved more methods to WebFrameLoader from WebFrame
  10603. * Loader/WebFrameLoader.h:
  10604. * Loader/WebFrameLoader.m:
  10605. (-[WebFrameLoader defersCallbacksChanged]):
  10606. (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
  10607. (-[WebFrameLoader setState:]):
  10608. (-[WebFrameLoader clearProvisionalLoad]):
  10609. (-[WebFrameLoader markLoadComplete]):
  10610. (-[WebFrameLoader commitProvisionalLoad]):
  10611. (-[WebFrameLoader stopLoading]):
  10612. (-[WebFrameLoader startProvisionalLoad:]):
  10613. (-[WebFrameLoader setupForReplace]):
  10614. (-[WebFrameLoader _identifierForInitialRequest:]):
  10615. (-[WebFrameLoader _finishedLoadingResource]):
  10616. (-[WebFrameLoader _receivedError:]):
  10617. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10618. (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
  10619. (-[WebFrameLoader opened]):
  10620. (-[WebFrameLoader commitProvisionalLoad:]):
  10621. (-[WebFrameLoader _finishedLoading]):
  10622. (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
  10623. (-[WebFrameLoader _loadRequest:archive:]):
  10624. (-[WebFrameLoader reload]):
  10625. (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
  10626. (-[WebFrameLoader subframeIsLoading]):
  10627. (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
  10628. (-[WebFrameLoader continueAfterNewWindowPolicy:]):
  10629. (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
  10630. (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
  10631. (-[WebFrameLoader loadRequest:inFrameNamed:]):
  10632. (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10633. (-[WebFrameLoader detachChildren]):
  10634. (-[WebFrameLoader detachFromParent]):
  10635. (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  10636. (-[WebFrameLoader safeLoadURL:]):
  10637. (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
  10638. (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
  10639. (-[WebFrameLoader checkLoadComplete]):
  10640. * Loader/WebFrameLoaderClient.h:
  10641. * Loader/WebSubresourceLoader.m:
  10642. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
  10643. * WebCoreSupport/WebFrameBridge.m:
  10644. (-[WebFrameBridge close]):
  10645. (-[WebFrameBridge tokenizerProcessedData]):
  10646. (-[WebFrameBridge frameDetached]):
  10647. * WebView/WebDataSourceInternal.h:
  10648. * WebView/WebFrame.m:
  10649. (-[WebFrame _loadItem:withLoadType:]):
  10650. (-[WebFrame _prepareForDataSourceReplacement]):
  10651. (-[WebFrame _detachedFromParent1]):
  10652. (-[WebFrame _detachedFromParent2]):
  10653. (-[WebFrame _detachedFromParent3]):
  10654. (-[WebFrame _detachedFromParent4]):
  10655. (-[WebFrame _updateHistoryAfterClientRedirect]):
  10656. (-[WebFrame _loadedFromPageCache]):
  10657. * WebView/WebFrameInternal.h:
  10658. * WebView/WebPDFView.m:
  10659. (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
  10660. * WebView/WebView.m:
  10661. (-[WebView _close]):
  10662. (-[WebView setDefersCallbacks:]):
  10663. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  10664. Reviewed by Darin.
  10665. - avoid need for WebKitSystemInterface in loader code, via WebCore cover for wkSupportsMultipartXMixedReplace
  10666. * Loader/WebDocumentLoader.m:
  10667. (-[WebDocumentLoader initWithRequest:]):
  10668. * Loader/WebMainResourceLoader.m:
  10669. * Loader/WebSubresourceLoader.m:
  10670. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
  10671. * WebCoreSupport/WebSystemInterface.m:
  10672. (InitWebCoreSystemInterface):
  10673. * WebView/WebDataSource.m:
  10674. (-[WebDataSource _initWithDocumentLoader:]):
  10675. 2006-10-08 Darin Adler <darin@apple.com>
  10676. - build fix (also a fix for a crasher I forgot to commit before)
  10677. * Loader/WebFrameLoader.m: Added some missing includes.
  10678. (-[WebFrameLoader checkLoadCompleteForThisFrame]):
  10679. Added a needed retain/release.
  10680. 2006-10-08 Darin Adler <darin@apple.com>
  10681. Reviewed by Anders.
  10682. - quick fix to loader problem causing layout test failures
  10683. * Loader/WebFrameLoader.m:
  10684. (-[WebFrameLoader _finishedLoading]): Use a local variable for the bridge
  10685. that we retain/release.
  10686. (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  10687. Same here.
  10688. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  10689. Reviewed by Adam.
  10690. - removed a few includes from WebFrameLoader, fixed up as appropriate
  10691. - segregated header includes into ones that need to go away to move the code and ones that don't
  10692. * Loader/WebFrameLoader.m:
  10693. (-[WebFrameLoader _privateBrowsingEnabled]):
  10694. (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
  10695. * Loader/WebFrameLoaderClient.h:
  10696. * WebView/WebFrame.m:
  10697. (-[WebFrame _privateBrowsingEnabled]):
  10698. 2006-10-08 Darin Adler <darin@apple.com>
  10699. Reviewed by Maciej.
  10700. - moved a few methods from WebFrame to WebFrameLoader
  10701. * Loader/WebFrameLoader.h:
  10702. * Loader/WebFrameLoader.m:
  10703. (-[WebFrameLoader _setState:]):
  10704. (-[WebFrameLoader stopLoadingSubframes]):
  10705. (-[WebFrameLoader _receivedMainResourceError:complete:]):
  10706. (-[WebFrameLoader closeOldDataSources]):
  10707. (-[WebFrameLoader commitProvisionalLoad:]):
  10708. (-[WebFrameLoader _finishedLoading]):
  10709. (isBackForwardLoadType):
  10710. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10711. (-[WebFrameLoader didFirstLayout]):
  10712. (-[WebFrameLoader frameLoadCompleted]):
  10713. (-[WebFrameLoader transitionToCommitted:]):
  10714. (-[WebFrameLoader checkLoadCompleteForThisFrame]):
  10715. (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  10716. (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
  10717. (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
  10718. (-[WebFrameLoader loadRequest:inFrameNamed:]):
  10719. (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10720. * Loader/WebFrameLoaderClient.h:
  10721. * Plugins/WebPluginController.m:
  10722. (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
  10723. * WebCoreSupport/WebFrameBridge.h:
  10724. * WebCoreSupport/WebFrameBridge.m:
  10725. (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
  10726. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  10727. (-[WebFrameBridge dealloc]):
  10728. (-[WebFrameBridge frameLoader]):
  10729. (-[WebFrameBridge setTitle:]):
  10730. (-[WebFrameBridge receivedData:textEncodingName:]):
  10731. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  10732. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  10733. (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
  10734. (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  10735. (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  10736. (-[WebFrameBridge reportClientRedirectCancelled:]):
  10737. (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
  10738. (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10739. (-[WebFrameBridge didFirstLayout]):
  10740. (-[WebFrameBridge notifyIconChanged:]):
  10741. (-[WebFrameBridge originalRequestURL]):
  10742. (-[WebFrameBridge isLoadTypeReload]):
  10743. * WebView/WebFrame.m:
  10744. (-[WebFrame _opened]):
  10745. (-[WebFrame _checkLoadComplete]):
  10746. (-[WebFrame _loadItem:withLoadType:]):
  10747. (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
  10748. (-[WebFrame _loadURL:referrer:intoChild:]):
  10749. (-[WebFrame _currentBackForwardListItemToResetTo]):
  10750. (-[WebFrame _updateBackground]):
  10751. (-[WebFrame _frameLoader]):
  10752. (-[WebFrame _frameLoadCompleted]):
  10753. (-[WebFrame _makeDocumentView]):
  10754. (-[WebFrame _updateHistoryForCommit]):
  10755. (-[WebFrame _updateHistoryForReload]):
  10756. (-[WebFrame _updateHistoryForStandardLoad]):
  10757. (-[WebFrame _updateHistoryForBackForwardNavigation]):
  10758. (-[WebFrame _updateHistoryForInternalLoad]):
  10759. (-[WebFrame _tokenForLoadErrorReset]):
  10760. (-[WebFrame _resetAfterLoadError:]):
  10761. (-[WebFrame _doNotResetAfterLoadError:]):
  10762. * WebView/WebFrameInternal.h:
  10763. 2006-10-09 Mark Rowe <bdash@webkit.org>
  10764. Rubber-stamped by Darin.
  10765. * WebCoreSupport/WebFrameBridge.m:
  10766. (-[WebFrameBridge imageTitleForFilename:size:]): Revert accidental change to a UI_STRING that
  10767. is triggering an assertion failure.
  10768. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  10769. Reviewed by Darin.
  10770. - remove unneeded non-Loader header includes from WebFrameLoader.h (split WebFrameLoadType into
  10771. two coincidentally matching enums)
  10772. * Loader/WebFrameLoader.h:
  10773. * Loader/WebFrameLoader.m:
  10774. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10775. (-[WebFrameLoader commitProvisionalLoad:]):
  10776. (isBackForwardLoadType):
  10777. (-[WebFrameLoader _loadRequest:archive:]):
  10778. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
  10779. (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
  10780. (-[WebFrameLoader reload]):
  10781. (-[WebFrameLoader isReplacing]):
  10782. (-[WebFrameLoader setReplacing]):
  10783. (-[WebFrameLoader loadType]):
  10784. (-[WebFrameLoader setLoadType:]):
  10785. (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
  10786. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10787. (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
  10788. (-[WebFrameLoader didFirstLayout]):
  10789. * WebCoreSupport/WebFrameBridge.m:
  10790. * WebView/WebFrame.m:
  10791. (-[WebFrame _transitionToCommitted:]):
  10792. (-[WebFrame _provisionalLoadStarted]):
  10793. (-[WebFrame _opened]):
  10794. (-[WebFrame _checkLoadCompleteForThisFrame]):
  10795. (-[WebFrame _loadItem:withLoadType:]):
  10796. (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
  10797. (-[WebFrame _goToItem:withLoadType:]):
  10798. (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
  10799. (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  10800. (-[WebFrame _loadURL:referrer:intoChild:]):
  10801. (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10802. (-[WebFrame _currentBackForwardListItemToResetTo]):
  10803. (-[WebFrame _itemForRestoringDocState]):
  10804. (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  10805. (-[WebFrame _loadType]):
  10806. (-[WebFrame loadRequest:]):
  10807. * WebView/WebFrameInternal.h:
  10808. * WebView/WebView.m:
  10809. 2006-10-08 Darin Adler <darin@apple.com>
  10810. Reviewed by Maciej.
  10811. - move WebFrameLoader creation and ownership from WebFrame to WebFrameBridge
  10812. * Loader/WebFrameLoader.m:
  10813. (-[WebFrameLoader stopLoadingSubframes]):
  10814. (-[WebFrameLoader closeOldDataSources]):
  10815. * WebCoreSupport/WebFrameBridge.h:
  10816. * WebCoreSupport/WebFrameBridge.m:
  10817. (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
  10818. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  10819. (-[WebFrameBridge dealloc]):
  10820. (-[WebFrameBridge loader]):
  10821. (-[WebFrameBridge setTitle:]):
  10822. (-[WebFrameBridge receivedData:textEncodingName:]):
  10823. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  10824. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  10825. (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  10826. (-[WebFrameBridge reportClientRedirectCancelled:]):
  10827. (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
  10828. (-[WebFrameBridge didFirstLayout]):
  10829. (-[WebFrameBridge imageTitleForFilename:size:]):
  10830. (-[WebFrameBridge notifyIconChanged:]):
  10831. (-[WebFrameBridge originalRequestURL]):
  10832. (-[WebFrameBridge isLoadTypeReload]):
  10833. * WebView/WebFrame.m:
  10834. (-[NSView setWebFrame::]):
  10835. (-[WebFramePrivate dealloc]):
  10836. (-[WebFramePrivate setWebFrameView:]):
  10837. (-[WebFramePrivate setProvisionalItem:]):
  10838. (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
  10839. (-[WebFrame _createItem:]):
  10840. (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
  10841. (-[WebFrame _detachFromParent]):
  10842. (-[WebFrame _makeDocumentView]):
  10843. (-[WebFrame _transitionToCommitted:]):
  10844. (-[WebFrame _provisionalLoadStarted]):
  10845. (-[WebFrame _opened]):
  10846. (-[WebFrame _checkLoadCompleteForThisFrame]):
  10847. (-[WebFrame _loadItem:withLoadType:]):
  10848. (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
  10849. (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  10850. (-[WebFrame _loadURL:referrer:intoChild:]):
  10851. (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  10852. (-[WebFrame _setTitle:]):
  10853. (-[WebFrame _defersCallbacksChanged]):
  10854. (-[WebFrame _currentBackForwardListItemToResetTo]):
  10855. (-[WebFrame _itemForSavingDocState]):
  10856. (-[WebFrame _itemForRestoringDocState]):
  10857. (-[WebFrame _saveDocumentAndScrollState]):
  10858. (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
  10859. (-[WebFrame _loadRequest:inFrameNamed:]):
  10860. (-[WebFrame _initWithWebFrameView:webView:bridge:]):
  10861. (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  10862. (-[WebFrame _frameLoader]):
  10863. (-[WebFrame _prepareForDataSourceReplacement]):
  10864. (-[WebFrame _restoreScrollPositionAndViewState]):
  10865. (-[WebFrame _firstLayoutDone]):
  10866. (-[WebFrame _loadType]):
  10867. (-[WebFrame frameView]):
  10868. (-[WebFrame provisionalDataSource]):
  10869. (-[WebFrame dataSource]):
  10870. (-[WebFrame loadRequest:]):
  10871. (-[WebFrame loadArchive:]):
  10872. (-[WebFrame stopLoading]):
  10873. (-[WebFrame reload]):
  10874. (-[WebFrame _resetBackForwardList]):
  10875. (-[WebFrame _invalidateCurrentItemPageCache]):
  10876. (-[WebFrame _provisionalItemIsTarget]):
  10877. (-[WebFrame _loadProvisionalItemFromPageCache]):
  10878. * WebView/WebFrameInternal.h:
  10879. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  10880. Reviewed by Darin.
  10881. - move remaining movable data fields from WebFrameLoader to WebFrame
  10882. * Loader/WebDocumentLoadState.m:
  10883. (-[WebDocumentLoadState commitIfReady]):
  10884. * Loader/WebFrameLoader.h:
  10885. * Loader/WebFrameLoader.m:
  10886. (-[WebFrameLoader provisionalLoadStarted]):
  10887. (-[WebFrameLoader _setState:]):
  10888. (-[WebFrameLoader stopLoadingSubframes]):
  10889. (-[WebFrameLoader stopLoading]):
  10890. (-[WebFrameLoader startLoading]):
  10891. (-[WebFrameLoader _receivedMainResourceError:complete:]):
  10892. (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
  10893. (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  10894. (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
  10895. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  10896. (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
  10897. (-[WebFrameLoader closeOldDataSources]):
  10898. (-[WebFrameLoader commitProvisionalLoad:]):
  10899. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10900. (-[WebFrameLoader isQuickRedirectComing]):
  10901. * Loader/WebFrameLoaderClient.h:
  10902. * WebCoreSupport/WebFrameBridge.h:
  10903. * WebCoreSupport/WebFrameBridge.m:
  10904. (-[WebFrameBridge frameLoader]):
  10905. (-[WebFrameBridge setTitle:]):
  10906. (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  10907. (-[WebFrameBridge reportClientRedirectCancelled:]):
  10908. (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
  10909. * WebView/WebDataSource.m:
  10910. (-[WebDataSource _loadFromPageCache:]):
  10911. * WebView/WebFrame.m:
  10912. (-[NSView setWebFrame::]):
  10913. (-[WebFrame _addHistoryItemForFragmentScroll]):
  10914. (-[WebFrame _didFinishLoad]):
  10915. (-[WebFrame _provisionalLoadStarted]):
  10916. (-[WebFrame _checkLoadCompleteForThisFrame]):
  10917. (-[WebFrame _loadItem:withLoadType:]):
  10918. (-[WebFrame _loadURL:referrer:intoChild:]):
  10919. (-[WebFrame _frameLoadCompleted]):
  10920. (-[WebFrame stopLoading]):
  10921. (-[WebFrame _invalidateCurrentItemPageCache]):
  10922. * WebView/WebFrameInternal.h:
  10923. 2006-10-08 Darin Adler <darin@apple.com>
  10924. Rubber stamped by Maciej.
  10925. - changed "document load state" to "document loader"
  10926. * Loader/WebDocumentLoadState.h: Removed.
  10927. * Loader/WebDocumentLoadState.m: Removed.
  10928. * Loader/WebDocumentLoader.h: Added.
  10929. * Loader/WebDocumentLoader.m: Added.
  10930. (-[WebDocumentLoader setMainDocumentError:]):
  10931. (-[WebDocumentLoader mainReceivedError:complete:]):
  10932. (-[WebDocumentLoader finishedLoading]):
  10933. (-[WebDocumentLoader commitLoadWithData:]):
  10934. (-[WebDocumentLoader setupForReplaceByMIMEType:]):
  10935. (-[WebDocumentLoader updateLoading]):
  10936. (-[WebDocumentLoader setTitle:]):
  10937. * Loader/WebFrameLoader.h:
  10938. * Loader/WebFrameLoader.m:
  10939. (-[WebFrameLoader dealloc]):
  10940. (-[WebFrameLoader activeDocumentLoader]):
  10941. (-[WebFrameLoader activeDataSource]):
  10942. (-[WebFrameLoader addPlugInStreamLoader:]):
  10943. (-[WebFrameLoader removePlugInStreamLoader:]):
  10944. (-[WebFrameLoader addSubresourceLoader:]):
  10945. (-[WebFrameLoader removeSubresourceLoader:]):
  10946. (-[WebFrameLoader dataSource]):
  10947. (-[WebFrameLoader setDocumentLoader:]):
  10948. (-[WebFrameLoader documentLoader]):
  10949. (-[WebFrameLoader policyDataSource]):
  10950. (-[WebFrameLoader setPolicyDocumentLoader:]):
  10951. (-[WebFrameLoader clearDataSource]):
  10952. (-[WebFrameLoader provisionalDataSource]):
  10953. (-[WebFrameLoader provisionalDocumentLoader]):
  10954. (-[WebFrameLoader setProvisionalDocumentLoader:]):
  10955. (-[WebFrameLoader _clearProvisionalDataSource]):
  10956. (-[WebFrameLoader _setState:]):
  10957. (-[WebFrameLoader clearProvisionalLoad]):
  10958. (-[WebFrameLoader commitProvisionalLoad]):
  10959. (-[WebFrameLoader stopLoading]):
  10960. (-[WebFrameLoader startLoading]):
  10961. (-[WebFrameLoader startProvisionalLoad:]):
  10962. (-[WebFrameLoader setupForReplace]):
  10963. (-[WebFrameLoader _didReceiveResponse:forResource:]):
  10964. (-[WebFrameLoader _originalRequest]):
  10965. (-[WebFrameLoader _receivedMainResourceError:complete:]):
  10966. (-[WebFrameLoader _receivedData:]):
  10967. (-[WebFrameLoader _setRequest:]):
  10968. (-[WebFrameLoader _isStopping]):
  10969. (-[WebFrameLoader _setupForReplaceByMIMEType:]):
  10970. (-[WebFrameLoader _setResponse:]):
  10971. (-[WebFrameLoader _mainReceivedError:complete:]):
  10972. (-[WebFrameLoader _finishedLoading]):
  10973. (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
  10974. (-[WebFrameLoader _loadRequest:archive:]):
  10975. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
  10976. (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
  10977. (-[WebFrameLoader reload]):
  10978. (-[WebFrameLoader finishedLoadingDocument:]):
  10979. (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
  10980. (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
  10981. (-[WebFrameLoader documentLoader:setMainDocumentError:]):
  10982. (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
  10983. (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
  10984. (-[WebFrameLoader willChangeTitleForDocument:]):
  10985. (-[WebFrameLoader didChangeTitleForDocument:]):
  10986. (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
  10987. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  10988. (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
  10989. * Plugins/WebPluginController.m:
  10990. (-[WebPluginController pluginView:receivedResponse:]):
  10991. * WebCoreSupport/WebFrameBridge.m:
  10992. (-[WebFrameBridge setTitle:]):
  10993. (-[WebFrameBridge receivedData:textEncodingName:]):
  10994. * WebKit.xcodeproj/project.pbxproj:
  10995. * WebView/WebDataSource.m:
  10996. (-[WebDataSourcePrivate dealloc]):
  10997. (-[WebDataSource _mainDocumentError]):
  10998. (-[WebDataSource _loadFromPageCache:]):
  10999. (-[WebDataSource _bridge]):
  11000. (-[WebDataSource _webView]):
  11001. (-[WebDataSource _URLForHistory]):
  11002. (-[WebDataSource _documentLoader]):
  11003. (-[WebDataSource _initWithDocumentLoader:]):
  11004. (-[WebDataSource initWithRequest:]):
  11005. (-[WebDataSource dealloc]):
  11006. (-[WebDataSource data]):
  11007. (-[WebDataSource webFrame]):
  11008. (-[WebDataSource initialRequest]):
  11009. (-[WebDataSource request]):
  11010. (-[WebDataSource response]):
  11011. (-[WebDataSource textEncodingName]):
  11012. (-[WebDataSource isLoading]):
  11013. (-[WebDataSource unreachableURL]):
  11014. (-[WebDataSource webArchive]):
  11015. * WebView/WebDataSourceInternal.h:
  11016. * WebView/WebDocumentLoadStateMac.h: Removed.
  11017. * WebView/WebDocumentLoadStateMac.m: Removed.
  11018. * WebView/WebDocumentLoaderMac.h: Added.
  11019. * WebView/WebDocumentLoaderMac.m: Added.
  11020. * WebView/WebFrame.m:
  11021. (-[WebFrame _createItem:]):
  11022. (-[WebFrame _receivedMainResourceError:]):
  11023. (-[WebFrame _transitionToCommitted:]):
  11024. (-[WebFrame _opened]):
  11025. (-[WebFrame _checkLoadCompleteForThisFrame]):
  11026. (-[WebFrame _loadItem:withLoadType:]):
  11027. (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
  11028. (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  11029. (-[WebFrame _addChild:]):
  11030. (-[WebFrame _provisionalLoadStarted]):
  11031. (-[WebFrame _dataSourceForDocumentLoader:]):
  11032. (-[WebFrame _createDocumentLoaderWithRequest:]):
  11033. * WebView/WebFrameInternal.h:
  11034. * WebView/WebHTMLRepresentation.m:
  11035. (-[WebHTMLRepresentation title]):
  11036. * WebView/WebView.m:
  11037. (-[WebView _mainFrameOverrideEncoding]):
  11038. 2006-10-08 Darin Adler <darin@apple.com>
  11039. Reviewed by Mitz.
  11040. - fix http://bugs.webkit.org/show_bug.cgi?id=11218
  11041. REGRESSION: Assertion failure in WebFrameLoader when going back from a file: or data: URL
  11042. Also added a helper function in WebFrameLoader so that checks for back/forward load types
  11043. are easier to read.
  11044. * Loader/WebFrameLoader.m:
  11045. (-[WebFrameLoader _setPolicyDocumentLoadState:]): Fixed line of code that was setting the load
  11046. state to nil instead of the passed-in object.
  11047. (isBackForwardLoadType): Added.
  11048. (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Use isBackForwardLoadType.
  11049. (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
  11050. Ditto.
  11051. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]): Ditto.
  11052. 2006-10-08 Darin Adler <darin@apple.com>
  11053. Reviewed by Maciej.
  11054. - fix two recently introduced leaks: one of an NSString, the other of a WebDataSource
  11055. * Loader/WebDocumentLoadState.m: (-[WebDocumentLoadState setTitle:]):
  11056. Rearranged code to avoid storage leak in case of identical title.
  11057. * Loader/WebFrameLoader.h: Removed _setPolicyDocumentLoadState: method
  11058. from the header.
  11059. * Loader/WebFrameLoader.m:
  11060. (-[WebFrameLoader _setPolicyDocumentLoadState:]): Added logic to call detachFromFrameLoader
  11061. as needed if this load state is going away rather than moving on to become the provisional
  11062. load state.
  11063. (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Tweaked formatting.
  11064. (-[WebFrameLoader _loadRequest:archive:]): Added an assertion.
  11065. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]): Added an assertion.
  11066. (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]): Added an assertion.
  11067. (-[WebFrameLoader reload]): Added an assertion.
  11068. (-[WebFrameLoader loadDataSource:withLoadType:formState:]): Added a local variable to avoid
  11069. calling _documentLoadState over and over again.
  11070. 2006-10-07 Peter Kasting <pkasting@google.com>
  11071. Reviewed/landed by Adam.
  11072. http://bugs.webkit.org/show_bug.cgi?id=11199
  11073. Update Session History when a load is committed rather than completed.
  11074. * COM/WebFrame.cpp:
  11075. (WebFrame::receivedResponse):
  11076. (WebFrame::receivedAllData):
  11077. 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
  11078. Reviewed by Tim H.
  11079. Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
  11080. Auto-generate a few more Objective-C DOM interfaces
  11081. * MigrateHeaders.make:
  11082. 2006-10-07 Mark Rowe <bdash@webkit.org>
  11083. Reviewed by Mitz.
  11084. Fix memory leak from -[WebDocumentLoadState setTitle:].
  11085. * Loader/WebDocumentLoadState.m:
  11086. (-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
  11087. zero, and untangle the confusing logic around this case.
  11088. 2006-10-06 Brady Eidson <beidson@apple.com>
  11089. Reviewed by Darin
  11090. Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
  11091. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  11092. * History/WebHistoryItem.m:
  11093. * Loader/WebFrameLoader.h:
  11094. * Misc/WebCoreStatistics.m:
  11095. * Misc/WebElementDictionary.m:
  11096. * Plugins/WebNetscapePluginEmbeddedView.m:
  11097. * Plugins/WebPluginController.m:
  11098. * WebCoreSupport/WebViewFactory.m:
  11099. * WebView/WebArchiver.m:
  11100. * WebView/WebDataSource.m:
  11101. * WebView/WebFrame.m:
  11102. (-[WebFrame _isDescendantOfFrame:]):
  11103. (-[WebFrame _setShouldCreateRenderers:]):
  11104. (-[WebFrame _bodyBackgroundColor]):
  11105. (-[WebFrame _isFrameSet]):
  11106. (-[WebFrame _firstLayoutDone]):
  11107. (-[WebFrame _loadType]):
  11108. * WebView/WebFrameInternal.h:
  11109. * WebView/WebFramePrivate.h:
  11110. * WebView/WebHTMLRepresentation.m:
  11111. * WebView/WebScriptDebugDelegate.m:
  11112. 2006-10-06 Maciej Stachowiak <mjs@apple.com>
  11113. Reviewed by Darin.
  11114. - Move all delegate dispatching code out of WebDataSource.
  11115. * Loader/WebFrameLoader.m:
  11116. (-[WebFrameLoader startLoading]):
  11117. (-[WebFrameLoader _identifierForInitialRequest:]):
  11118. (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
  11119. (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
  11120. (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
  11121. (-[WebFrameLoader _didReceiveResponse:forResource:]):
  11122. (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
  11123. (-[WebFrameLoader _didFinishLoadingForResource:]):
  11124. (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
  11125. (-[WebFrameLoader _receivedMainResourceError:complete:]):
  11126. (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
  11127. (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
  11128. * WebView/WebDataSource.m:
  11129. (-[WebDataSource _setLoadingFromPageCache:]):
  11130. (-[WebDataSource _stopLoadingWithError:]):
  11131. * WebView/WebDataSourceInternal.h:
  11132. 2006-10-06 Darin Adler <darin@apple.com>
  11133. Reviewed by Maciej.
  11134. - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
  11135. * Loader/WebFrameLoader.h:
  11136. * Loader/WebFrameLoader.m:
  11137. (-[WebFrameLoader didFirstLayout]):
  11138. (-[WebFrameLoader provisionalLoadStarted]):
  11139. (-[WebFrameLoader frameLoadCompleted]):
  11140. (-[WebFrameLoader firstLayoutDone]):
  11141. * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
  11142. * WebView/WebFrame.m:
  11143. (-[WebFrame _firstLayoutDone]):
  11144. (-[WebFrame _provisionalLoadStarted]):
  11145. (-[WebFrame _frameLoadCompleted]):
  11146. (-[WebFrame _restoreScrollPositionAndViewState]):
  11147. * WebView/WebFrameInternal.h:
  11148. 2006-10-06 Darin Adler <darin@apple.com>
  11149. Reviewed by Maciej.
  11150. - moved more data and the corresponding code from WebFrame to WebFrameLoader
  11151. * Loader/WebFrameLoader.h:
  11152. * Loader/WebFrameLoader.m:
  11153. (-[WebFrameLoader cannotShowMIMETypeForURL:]):
  11154. (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
  11155. (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
  11156. (-[WebFrameLoader _loadRequest:archive:]):
  11157. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
  11158. (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
  11159. (-[WebFrameLoader reload]):
  11160. (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
  11161. (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
  11162. (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
  11163. (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
  11164. (-[WebFrameLoader continueAfterNavigationPolicy:]):
  11165. (-[WebFrameLoader continueAfterWillSubmitForm:]):
  11166. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  11167. (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
  11168. (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
  11169. (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
  11170. (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
  11171. * Loader/WebFrameLoaderClient.h:
  11172. * WebView/WebFrame.m:
  11173. (-[NSView setWebFrame::]):
  11174. (-[WebFramePrivate dealloc]):
  11175. (-[WebFrame _checkLoadCompleteForThisFrame]):
  11176. (-[WebFrame _loadItem:withLoadType:]):
  11177. (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  11178. (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  11179. (-[WebFrame _loadRequest:inFrameNamed:]):
  11180. (-[WebFrame stopLoading]):
  11181. (-[WebFrame _resetBackForwardList]):
  11182. (-[WebFrame _quickRedirectComing]):
  11183. (-[WebFrame _provisionalItemIsTarget]):
  11184. (-[WebFrame _loadProvisionalItemFromPageCache]):
  11185. * WebView/WebFrameInternal.h:
  11186. * WebView/WebFramePrivate.h:
  11187. * WebKit.xcodeproj/project.pbxproj:
  11188. 2006-10-06 Maciej Stachowiak <mjs@apple.com>
  11189. Rubber stamped by Darin.
  11190. - removed includes of unused headers.
  11191. * WebView/WebDataSource.m:
  11192. 2006-10-06 Maciej Stachowiak <mjs@apple.com>
  11193. Not reviewed.
  11194. - fix build breakage
  11195. * Loader/WebFrameLoader.m:
  11196. (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
  11197. (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
  11198. 2006-10-06 Maciej Stachowiak <mjs@apple.com>
  11199. Reviewed by Darin.
  11200. - move remaining movable WebDataSource fields to WebDocumentLoadState
  11201. * Loader/WebDocumentLoadState.h:
  11202. * Loader/WebDocumentLoadState.m:
  11203. (-[WebDocumentLoadState dealloc]):
  11204. (-[WebDocumentLoadState isLoadingInAPISense]):
  11205. (-[WebDocumentLoadState addResponse:]):
  11206. (-[WebDocumentLoadState stopRecordingResponses]):
  11207. (-[WebDocumentLoadState title]):
  11208. (-[WebDocumentLoadState setLastCheckedRequest:]):
  11209. (-[WebDocumentLoadState lastCheckedRequest]):
  11210. (-[WebDocumentLoadState triggeringAction]):
  11211. (-[WebDocumentLoadState setTriggeringAction:]):
  11212. (-[WebDocumentLoadState responses]):
  11213. (-[WebDocumentLoadState setOverrideEncoding:]):
  11214. (-[WebDocumentLoadState overrideEncoding]):
  11215. (-[WebDocumentLoadState setTitle:]):
  11216. * Loader/WebFrameLoader.h:
  11217. * Loader/WebFrameLoader.m:
  11218. (-[WebFrameLoader _setState:]):
  11219. (-[WebFrameLoader _loadRequest:archive:]):
  11220. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
  11221. (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
  11222. (-[WebFrameLoader reload]):
  11223. (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
  11224. (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
  11225. * WebCoreSupport/WebFrameBridge.m:
  11226. (-[WebFrameBridge setTitle:]):
  11227. (-[WebFrameBridge receivedData:textEncodingName:]):
  11228. * WebView/WebDataSource.m:
  11229. (-[WebDataSourcePrivate dealloc]):
  11230. (-[WebDataSource _didReceiveResponse:forResource:]):
  11231. (-[WebDataSource textEncodingName]):
  11232. * WebView/WebDataSourceInternal.h:
  11233. * WebView/WebFrame.m:
  11234. (-[WebFrame _opened]):
  11235. (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
  11236. (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  11237. (-[WebFrame _addChild:]):
  11238. (-[WebFrame _loadDataSource:withLoadType:formState:]):
  11239. * WebView/WebHTMLRepresentation.m:
  11240. (-[WebHTMLRepresentation title]):
  11241. * WebView/WebView.m:
  11242. (-[WebView _mainFrameOverrideEncoding]):
  11243. 2006-10-06 Darin Adler <darin@apple.com>
  11244. Reviewed by Maciej.
  11245. - moved loadType into WebFrameLoader
  11246. * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
  11247. currently used by Safari.
  11248. * Loader/WebFrameLoader.h:
  11249. * Loader/WebFrameLoader.m:
  11250. (-[WebFrameLoader _loadRequest:archive:]):
  11251. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
  11252. (-[WebFrameLoader isReplacing]):
  11253. (-[WebFrameLoader setReplacing]):
  11254. (-[WebFrameLoader loadType]):
  11255. (-[WebFrameLoader setLoadType:]):
  11256. * WebCoreSupport/WebFrameBridge.m:
  11257. (-[WebFrameBridge isLoadTypeReload]):
  11258. * WebView/WebFrame.m:
  11259. (-[WebFrame _loadType]):
  11260. (-[WebFrame _transitionToCommitted:]):
  11261. (-[WebFrame _commitProvisionalLoad:]):
  11262. (-[WebFrame _opened]):
  11263. (-[WebFrame _checkLoadCompleteForThisFrame]):
  11264. (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  11265. (-[WebFrame _loadURL:referrer:intoChild:]):
  11266. (-[WebFrame _currentBackForwardListItemToResetTo]):
  11267. (-[WebFrame _itemForRestoringDocState]):
  11268. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
  11269. (-[WebFrame _didFirstLayout]):
  11270. (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  11271. (-[WebFrame _provisionalLoadStarted]):
  11272. (-[WebFrame loadRequest:]):
  11273. 2006-10-06 Darin Adler <darin@apple.com>
  11274. Reviewed by Maciej.
  11275. - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
  11276. * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
  11277. * Loader/WebFrameLoader.h:
  11278. * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
  11279. Eventually we'll be removing the dependency on WebFrame entirely.
  11280. * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
  11281. by its new name.
  11282. * Loader/WebFrameLoaderClient.h: Added.
  11283. * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
  11284. 2006-10-06 Maciej Stachowiak <mjs@apple.com>
  11285. Reviewed by Darin.
  11286. - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
  11287. Also removed useless WebFrameLoader part
  11288. * WebView/WebFrame.m:
  11289. (-[WebFramePrivate dealloc]):
  11290. 2006-10-06 Maciej Stachowiak <mjs@apple.com>
  11291. Reviewed by Anders.
  11292. - moved more data from WebDataSource to WebDocumentLoadState
  11293. * Loader/WebDocumentLoadState.h:
  11294. * Loader/WebDocumentLoadState.m:
  11295. (-[WebDocumentLoadState commitLoadWithData:]):
  11296. (-[WebDocumentLoadState prepareForLoadStart]):
  11297. (-[WebDocumentLoadState loadingStartedTime]):
  11298. (-[WebDocumentLoadState setIsClientRedirect:]):
  11299. (-[WebDocumentLoadState isClientRedirect]):
  11300. (-[WebDocumentLoadState setPrimaryLoadComplete:]):
  11301. (-[WebDocumentLoadState isLoadingInAPISense]):
  11302. * Loader/WebFrameLoader.h:
  11303. * Loader/WebFrameLoader.m:
  11304. (-[WebFrameLoader _setState:]):
  11305. (-[WebFrameLoader _finishedLoading]):
  11306. (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
  11307. (-[WebFrameLoader prepareForLoadStart]):
  11308. (-[WebFrameLoader subframeIsLoading]):
  11309. * WebView/WebDataSource.m:
  11310. (-[WebDataSource _fileWrapperForURL:]):
  11311. (-[WebDataSource _startLoading]):
  11312. (-[WebDataSource _loadFromPageCache:]):
  11313. (-[WebDataSource isLoading]):
  11314. * WebView/WebDataSourceInternal.h:
  11315. * WebView/WebFrame.m:
  11316. (-[WebFrame _transitionToCommitted:]):
  11317. (-[WebFrame _opened]):
  11318. (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  11319. 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
  11320. Reviewed by Darin.
  11321. http://bugs.webkit.org/show_bug.cgi?id=11183
  11322. REGRESSION: Safari loads error pages unstyled
  11323. * WebView/WebFrame.m:
  11324. (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
  11325. Use utf-8 encoding instead of the string's "fastest" encoding.
  11326. 2006-10-06 Maciej Stachowiak <mjs@apple.com>
  11327. Reviewed by Adam.
  11328. - fixed the following bugs:
  11329. http://bugs.webkit.org/show_bug.cgi?id=11136
  11330. "REGRESSION: Safari snippet editor doesn't work"
  11331. http://bugs.webkit.org/show_bug.cgi?id=11140
  11332. "REGRESSION: view source window blank"
  11333. http://bugs.webkit.org/show_bug.cgi?id=11146
  11334. "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
  11335. Possibly more.
  11336. * Loader/WebDocumentLoadState.h:
  11337. * Loader/WebDocumentLoadState.m:
  11338. (-[WebDocumentLoadState actualRequest]): New method.
  11339. * WebView/WebDataSource.m:
  11340. (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
  11341. resource with the fake external request for an applewebdata: request.
  11342. 2006-10-05 Adele Peterson <adele@apple.com>
  11343. Reviewed by the letter 'B'.
  11344. More build fixes.
  11345. * WebKit.xcodeproj/project.pbxproj:
  11346. * WebView/WebDynamicScrollBarsView.h:
  11347. * WebView/WebDynamicScrollBarsView.m:
  11348. (-[WebDynamicScrollBarsView updateScrollers]):
  11349. (-[WebDynamicScrollBarsView setAllowsScrolling:]):
  11350. (-[WebDynamicScrollBarsView allowsScrolling]):
  11351. (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
  11352. (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
  11353. (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
  11354. (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
  11355. (-[WebDynamicScrollBarsView horizontalScrollingMode]):
  11356. (-[WebDynamicScrollBarsView verticalScrollingMode]):
  11357. (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
  11358. (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
  11359. (-[WebDynamicScrollBarsView setScrollingMode:]):
  11360. * WebView/WebView.m:
  11361. (-[WebView setAlwaysShowVerticalScroller:]):
  11362. (-[WebView alwaysShowVerticalScroller]):
  11363. (-[WebView setAlwaysShowHorizontalScroller:]):
  11364. (-[WebView alwaysShowHorizontalScroller]):
  11365. 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
  11366. Reviewed by Timothy.
  11367. Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
  11368. Continuous spell checking now remembers user's setting. The change is applied globally,
  11369. meaning, both TextArea and TextField are affected when either of them enables/disables
  11370. spell checking.
  11371. * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
  11372. * WebView/WebView.m:
  11373. (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
  11374. (-[WebView setContinuousSpellCheckingEnabled:]):
  11375. (-[WebView isContinuousSpellCheckingEnabled]):
  11376. 2006-10-05 MorganL <morganl.webkit@yahoo.com>
  11377. Reviewed by Darin.
  11378. Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
  11379. * COM/WebFrame.cpp:
  11380. (WebFrame::loadDataSource):
  11381. (WebFrame::receivedResponse):
  11382. 2006-10-05 Peter Kasting <pkasting@google.com>
  11383. Reviewed by Darin, landed by Adam.
  11384. http://bugs.webkit.org/show_bug.cgi?id=11176
  11385. Fix win32 build, adapt to Maciej's ResourceLoader changes.
  11386. * COM/WebFrame.cpp:
  11387. (WebFrame::loadDataSource):
  11388. 2006-10-05 Marvin Decker <marv.decker@gmail.com>
  11389. Reviewed by Darin.
  11390. http://bugs.webkit.org/show_bug.cgi?id=10989
  11391. Provide a way for embedders to implement BrowserExtensionWin
  11392. * COM/Interfaces/IWebUIDelegate.idl:
  11393. * COM/WebFrame.cpp:
  11394. (WebFrame::createNewWindow):
  11395. * COM/WebFrame.h:
  11396. 2006-10-04 Mark Rowe <bdash@webkit.org>
  11397. Reviewed by NOBODY (build fix).
  11398. * WebView/WebView.m:
  11399. (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
  11400. 2006-09-26 David Smith <catfish.man@gmail.com>
  11401. Reviewed by Timothy.
  11402. http://bugs.webkit.org/show_bug.cgi?id=3723
  11403. Add -scrollDOMRangeToVisible:
  11404. * WebView/WebView.m:
  11405. (-[WebView scrollDOMRangeToVisible:]):
  11406. * WebView/WebViewPrivate.h:
  11407. 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
  11408. Reviewed by Timothy.
  11409. <http://bugs.webkit.org/show_bug.cgi?id=10338>
  11410. When contentEditable, cursor doesn't change to hand
  11411. Allow the behaviour of editable links to be specified by a WebPreference
  11412. The preference WebKitEditableLinkBehavior has four options:
  11413. - AlwaysLive: Safari 2.0 behaviour
  11414. - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
  11415. - LiveWhenNotFocused: Editable links are live only when their editable block is not
  11416. focused, or when the shift key is pressed
  11417. - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
  11418. No layout tests, just a modification of a manual-test as it isn't possible to test
  11419. this automatically.
  11420. * WebView/WebPreferenceKeysPrivate.h:
  11421. * WebView/WebPreferences.m:
  11422. (+[WebPreferences initialize]):
  11423. (-[WebPreferences editableLinkBehavior]):
  11424. (-[WebPreferences setEditableLinkBehavior:]):
  11425. * WebView/WebPreferencesPrivate.h:
  11426. * WebView/WebView.m:
  11427. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  11428. 2006-10-03 Justin Garcia <justin.garcia@apple.com>
  11429. Reviewed by harrison
  11430. execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
  11431. * WebCoreSupport/WebFrameBridge.m:
  11432. (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
  11433. (-[WebFrameBridge issueCopyCommand]): Ditto.
  11434. (-[WebFrameBridge issuePasteCommand]): Ditto.
  11435. (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
  11436. (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
  11437. (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
  11438. * WebView/WebHTMLView.m:
  11439. (-[WebHTMLView copy:]): Moved to WebInternal
  11440. (-[WebHTMLView cut:]): Ditto.
  11441. (-[WebHTMLView paste:]): Ditto.
  11442. (-[WebHTMLView pasteAsPlainText:]): Ditto.
  11443. * WebView/WebHTMLViewInternal.h:
  11444. * WebView/WebView.m: Removed the now unused _canPaste.
  11445. * WebView/WebViewInternal.h: Ditto.
  11446. 2006-10-03 Justin Garcia <justin.garcia@apple.com>
  11447. Reviewed by geoff
  11448. <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
  11449. * Loader/WebSubresourceLoader.m:
  11450. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
  11451. Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
  11452. some loader refactoring.
  11453. 2006-10-02 Adam Roben <aroben@apple.com>
  11454. Reviewed by Maciej.
  11455. Add message paramter to WebView::mouse* methods to pass down to
  11456. PlatformMouseEvent.
  11457. * COM/WebView.cpp:
  11458. (WebView::mouseMoved):
  11459. (WebView::mouseDown):
  11460. (WebView::mouseUp):
  11461. (WebView::mouseDoubleClick):
  11462. (WebViewWndProc):
  11463. * COM/WebView.h:
  11464. 2006-10-02 Maciej Stachowiak <mjs@apple.com>
  11465. Reviewed by Alice.
  11466. - take away direct knowledge of WebFrame from WebDataSource
  11467. * Loader/WebDocumentLoadState.h:
  11468. * Loader/WebDocumentLoadState.m:
  11469. (-[WebDocumentLoadState setFrameLoader:]):
  11470. (-[WebDocumentLoadState detachFromFrameLoader]):
  11471. * Loader/WebFrameLoader.m:
  11472. (-[WebFrameLoader _setDocumentLoadState:]):
  11473. (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
  11474. * WebView/WebDataSource.m:
  11475. * WebView/WebDataSourceInternal.h:
  11476. * WebView/WebDocumentLoadStateMac.m:
  11477. (-[WebDocumentLoadStateMac detachFromFrameLoader]):
  11478. * WebView/WebFrame.m:
  11479. (-[WebFrame _loadDataSource:withLoadType:formState:]):
  11480. 2006-10-02 Maciej Stachowiak <mjs@apple.com>
  11481. Reviewed by Darin.
  11482. - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
  11483. * Loader/WebDocumentLoadState.h:
  11484. * Loader/WebDocumentLoadState.m:
  11485. (-[WebDocumentLoadState initWithRequest:]):
  11486. (-[WebDocumentLoadState dealloc]):
  11487. (-[WebDocumentLoadState originalRequestCopy]):
  11488. (-[WebDocumentLoadState request]):
  11489. (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
  11490. (-[WebDocumentLoadState setRequest:]):
  11491. (-[WebDocumentLoadState setResponse:]):
  11492. (-[WebDocumentLoadState isStopping]):
  11493. (-[WebDocumentLoadState bridge]):
  11494. (-[WebDocumentLoadState setMainDocumentError:]):
  11495. (-[WebDocumentLoadState mainDocumentError]):
  11496. (-[WebDocumentLoadState clearErrors]):
  11497. (-[WebDocumentLoadState mainReceivedError:complete:]):
  11498. (-[WebDocumentLoadState stopLoading]):
  11499. (-[WebDocumentLoadState setupForReplace]):
  11500. (-[WebDocumentLoadState commitIfReady]):
  11501. (-[WebDocumentLoadState finishedLoading]):
  11502. (-[WebDocumentLoadState setCommitted:]):
  11503. (-[WebDocumentLoadState isCommitted]):
  11504. (-[WebDocumentLoadState setLoading:]):
  11505. (-[WebDocumentLoadState isLoading]):
  11506. (-[WebDocumentLoadState commitLoadWithData:]):
  11507. (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
  11508. (-[WebDocumentLoadState receivedData:]):
  11509. (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
  11510. (-[WebDocumentLoadState updateLoading]):
  11511. (-[WebDocumentLoadState response]):
  11512. * Loader/WebFrameLoader.h:
  11513. * Loader/WebFrameLoader.m:
  11514. (-[WebFrameLoader activeDocumentLoadState]):
  11515. (-[WebFrameLoader activeDataSource]):
  11516. (-[WebFrameLoader _archivedSubresourceForURL:]):
  11517. (-[WebFrameLoader addPlugInStreamLoader:]):
  11518. (-[WebFrameLoader removePlugInStreamLoader:]):
  11519. (-[WebFrameLoader addSubresourceLoader:]):
  11520. (-[WebFrameLoader removeSubresourceLoader:]):
  11521. (-[WebFrameLoader documentLoadState]):
  11522. (-[WebFrameLoader provisionalDocumentLoadState]):
  11523. (-[WebFrameLoader stopLoading]):
  11524. (-[WebFrameLoader _originalRequest]):
  11525. (-[WebFrameLoader _receivedData:]):
  11526. (-[WebFrameLoader _setRequest:]):
  11527. (-[WebFrameLoader bridge]):
  11528. (-[WebFrameLoader _handleFallbackContent]):
  11529. (-[WebFrameLoader _isStopping]):
  11530. (-[WebFrameLoader _setupForReplaceByMIMEType:]):
  11531. (-[WebFrameLoader _setResponse:]):
  11532. (-[WebFrameLoader _mainReceivedError:complete:]):
  11533. (-[WebFrameLoader _finishedLoading]):
  11534. (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
  11535. (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
  11536. (-[WebFrameLoader commitProvisitionalLoad]):
  11537. (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
  11538. (-[WebFrameLoader isReplacing]):
  11539. (-[WebFrameLoader setReplacing]):
  11540. (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
  11541. (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
  11542. (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
  11543. (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
  11544. * WebView/WebDataSource.m:
  11545. (-[WebDataSourcePrivate dealloc]):
  11546. (-[WebDataSource _prepareForLoadStart]):
  11547. (-[WebDataSource _mainDocumentError]):
  11548. (-[WebDataSource _finishedLoading]):
  11549. (-[WebDataSource _receivedData:]):
  11550. (-[WebDataSource _setMainDocumentError:]):
  11551. (-[WebDataSource _clearUnarchivingState]):
  11552. (-[WebDataSource _revertToProvisionalState]):
  11553. (-[WebDataSource _receivedMainResourceError:complete:]):
  11554. (-[WebDataSource _startLoading]):
  11555. (-[WebDataSource _loadFromPageCache:]):
  11556. (-[WebDataSource _bridge]):
  11557. (-[WebDataSource _setPrimaryLoadComplete:]):
  11558. (-[WebDataSource _URLForHistory]):
  11559. (-[WebDataSource _setTitle:]):
  11560. (-[WebDataSource _initWithDocumentLoadState:]):
  11561. (-[WebDataSource request]):
  11562. (-[WebDataSource response]):
  11563. (-[WebDataSource isLoading]):
  11564. (-[WebDataSource webArchive]):
  11565. * WebView/WebDataSourceInternal.h:
  11566. * WebView/WebDocumentLoadStateMac.m:
  11567. (-[WebDocumentLoadStateMac initWithRequest:]):
  11568. * WebView/WebFrame.m:
  11569. (-[WebFrame _createItem:]):
  11570. (-[WebFrame _receivedMainResourceError:]):
  11571. (-[WebFrame _transitionToCommitted:]):
  11572. (-[WebFrame _commitProvisionalLoad:]):
  11573. (-[WebFrame _checkLoadCompleteForThisFrame]):
  11574. (-[WebFrame _loadItem:withLoadType:]):
  11575. (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
  11576. (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
  11577. (-[WebFrame _provisionalLoadStarted]):
  11578. * WebView/WebFrameInternal.h:
  11579. 2006-10-02 Justin Garcia <justin.garcia@apple.com>
  11580. Reviewed by john
  11581. <rdar://problem/4757583>
  11582. REGRESSION: tabbing into page focuses wrong control on 2nd pass
  11583. <rdar://problem/4757594>
  11584. REGRESSION: Form field is left with secondary selection after tabbing out of WebView
  11585. * WebView/WebHTMLView.m:
  11586. (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
  11587. for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
  11588. is in the same WebView.
  11589. 2006-10-02 Maciej Stachowiak <mjs@apple.com>
  11590. Reviewed by Anders.
  11591. - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
  11592. * Loader/WebDocumentLoadState.h:
  11593. * Loader/WebDocumentLoadState.m:
  11594. (-[WebDocumentLoadState frameLoader]):
  11595. * WebView/WebDataSource.m:
  11596. (-[WebDataSourcePrivate dealloc]):
  11597. (-[WebDataSource _revertToProvisionalState]):
  11598. (-[WebDataSource _setupForReplaceByMIMEType:]):
  11599. (-[WebDataSource _updateLoading]):
  11600. (-[WebDataSource _startLoading]):
  11601. (-[WebDataSource _setWebFrame:]):
  11602. (-[WebDataSource _defersCallbacksChanged]):
  11603. (-[WebDataSource _stopLoading]):
  11604. (-[WebDataSource _webView]):
  11605. (-[WebDataSource _stopLoadingWithError:]):
  11606. (-[WebDataSource _setPrimaryLoadComplete:]):
  11607. (-[WebDataSource dealloc]):
  11608. (-[WebDataSource webFrame]):
  11609. (-[WebDataSource isLoading]):
  11610. 2006-10-02 Maciej Stachowiak <mjs@apple.com>
  11611. Reviewed by Anders.
  11612. - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
  11613. * WebView/WebDataSource.m:
  11614. (-[WebDataSource _setWebFrame:]):
  11615. (-[WebDataSource _initWithDocumentLoadState:]):
  11616. * WebView/WebDataSourceInternal.h:
  11617. 2006-10-02 Maciej Stachowiak <mjs@apple.com>
  11618. Build fix, not reviewed.
  11619. - Added missing files to fix build.
  11620. * WebView/WebDocumentLoadStateMac.h: Added.
  11621. * WebView/WebDocumentLoadStateMac.m: Added.
  11622. (-[WebDocumentLoadStateMac initWithRequest:]):
  11623. (-[WebDocumentLoadStateMac dealloc]):
  11624. (-[WebDocumentLoadStateMac setDataSource:]):
  11625. (-[WebDocumentLoadStateMac dataSource]):
  11626. (-[WebDocumentLoadStateMac setFrameLoader:]):
  11627. 2006-10-01 Maciej Stachowiak <mjs@apple.com>
  11628. Reviewed by Brady and Oliver.
  11629. - move things around so that WebDataSource and WebDocumentLoadState know about each other in
  11630. the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
  11631. * Loader/WebDocumentLoadState.h:
  11632. * Loader/WebDocumentLoadState.m:
  11633. (-[WebDocumentLoadState initWithRequest:]):
  11634. (-[WebDocumentLoadState dealloc]):
  11635. (-[WebDocumentLoadState originalRequest]):
  11636. * Loader/WebFrameLoader.h:
  11637. * Loader/WebFrameLoader.m:
  11638. (-[WebFrameLoader dealloc]):
  11639. (-[WebFrameLoader addSubresourceLoader:]):
  11640. (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
  11641. (-[WebFrameLoader dataSource]):
  11642. (-[WebFrameLoader _setDocumentLoadState:]):
  11643. (-[WebFrameLoader policyDataSource]):
  11644. (-[WebFrameLoader _setPolicyDocumentLoadState:]):
  11645. (-[WebFrameLoader clearDataSource]):
  11646. (-[WebFrameLoader provisionalDataSource]):
  11647. (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
  11648. (-[WebFrameLoader _clearProvisionalDataSource]):
  11649. (-[WebFrameLoader _setState:]):
  11650. (-[WebFrameLoader clearProvisionalLoad]):
  11651. (-[WebFrameLoader commitProvisionalLoad]):
  11652. (-[WebFrameLoader stopLoading]):
  11653. (-[WebFrameLoader startLoading]):
  11654. (-[WebFrameLoader startProvisionalLoad:]):
  11655. (-[WebFrameLoader setupForReplace]):
  11656. (-[WebFrameLoader activeDocumentLoadState]):
  11657. (-[WebFrameLoader activeDataSource]):
  11658. (-[WebFrameLoader _loadRequest:archive:]):
  11659. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
  11660. (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
  11661. (-[WebFrameLoader reload]):
  11662. * WebKit.xcodeproj/project.pbxproj:
  11663. * WebView/WebDataSource.m:
  11664. (-[WebDataSourcePrivate dealloc]):
  11665. (-[WebDataSource _startLoading]):
  11666. (-[WebDataSource _setWebFrame:]):
  11667. (-[WebDataSource _documentLoadState]):
  11668. (-[WebDataSource _initWithDocumentLoadState:]):
  11669. (-[WebDataSource initWithRequest:]):
  11670. (-[WebDataSource initialRequest]):
  11671. (-[WebDataSource unreachableURL]):
  11672. * WebView/WebDataSourceInternal.h:
  11673. * WebView/WebFrame.m:
  11674. (-[WebFramePrivate dealloc]):
  11675. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
  11676. (-[WebFrame _loadDataSource:withLoadType:formState:]):
  11677. (-[WebFrame _policyDataSource]):
  11678. (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
  11679. (-[WebFrame _dataSourceForDocumentLoadState:]):
  11680. (-[WebFrame _createDocumentLoadStateWithRequest:]):
  11681. * WebView/WebFrameInternal.h:
  11682. 2006-09-29 David Hyatt <hyatt@apple.com>
  11683. Change the default minimum font size pref to 0 in order to allow
  11684. font-size:0 to work.
  11685. * WebView/WebPreferences.m:
  11686. (+[WebPreferences initialize]):
  11687. 2006-09-28 Timothy Hatcher <timothy@apple.com>
  11688. Reviewed by Maciej.
  11689. Switch the inspector over to use border-image with styled buttons and selects.
  11690. * WebInspector/WebInspector.m:
  11691. (-[NSWindow window]):
  11692. (-[NSWindow setWebFrame:]):
  11693. (-[WebInspector _updateRoot]):
  11694. * WebInspector/webInspector/Images/button.png: Added.
  11695. * WebInspector/webInspector/Images/buttonDivider.png: Added.
  11696. * WebInspector/webInspector/Images/buttonPressed.png: Added.
  11697. * WebInspector/webInspector/Images/popup.png: Added.
  11698. * WebInspector/webInspector/Images/popupFill.png: Removed.
  11699. * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
  11700. * WebInspector/webInspector/Images/popupLeft.png: Removed.
  11701. * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
  11702. * WebInspector/webInspector/Images/popupPressed.png: Added.
  11703. * WebInspector/webInspector/Images/popupRight.png: Removed.
  11704. * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
  11705. * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
  11706. * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
  11707. * WebInspector/webInspector/inspector.css:
  11708. * WebInspector/webInspector/inspector.html:
  11709. * WebInspector/webInspector/inspector.js:
  11710. 2006-09-28 Alice Liu <alice.liu@apple.com>
  11711. fixing the windows build
  11712. * COM/WebView.cpp:
  11713. (WebView::mouseMoved):
  11714. (WebView::mouseDown):
  11715. (WebView::mouseUp):
  11716. (WebView::mouseDoubleClick):
  11717. 2006-09-27 Justin Garcia <justin.garcia@apple.com>
  11718. Reviewed by thatcher
  11719. <rdar://problem/4044271>
  11720. Writing Direction menu doesn't reflect the current writing direction (9773)
  11721. * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
  11722. * WebView/WebHTMLView.m:
  11723. (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
  11724. toggleBaseWritingDirection and changeBaseWritingDirection.
  11725. Disable the menu item that changes the writing direction to NSWritingDirectionNautral
  11726. because NSWritingDirectionNatural's behavior can't be implemented with CSS.
  11727. Take control of the title of the menu item that performs toggleBaseWritingDirection:
  11728. instead of checking/unchecking it, otherwise we wouldn't know what a check means.
  11729. (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
  11730. direction is not NSWritingDirectionNatural, since we've disabled the
  11731. menu item that performs it.
  11732. 2006-09-27 MorganL <morganl.webkit@yahoo.com>
  11733. Reviewed by Maciej, landed by Brady
  11734. Update URL request associated with provisional data source on redirect.
  11735. Notify IWebFrameLoadDelegate of redirects for the provisional load.
  11736. Notify IWebFrameLoadDelegate of a provisional load being commited.
  11737. * COM/WebDataSource.cpp:
  11738. (WebDataSource::replaceRequest):
  11739. * COM/WebDataSource.h:
  11740. * COM/WebFrame.cpp:
  11741. (WebFrame::receivedRedirect):
  11742. (WebFrame::receivedResponse):
  11743. (WebFrame::receivedData):
  11744. 2006-09-26 John Sullivan <sullivan@apple.com>
  11745. Reviewed by Darin
  11746. * WebView/WebHTMLViewPrivate.h:
  11747. * WebView/WebHTMLView.m:
  11748. (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
  11749. Added limit parameter, passed over the bridge. Stop the search if it hits limit.
  11750. * WebView/WebViewPrivate.h:
  11751. * WebView/WebView.m:
  11752. (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
  11753. Added limit parameter, passed to WebHTMLView.
  11754. 2006-09-26 David Harrison <harrison@apple.com>
  11755. Reviewed by John and TimH.
  11756. <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
  11757. Use deleteBackward: when the killring string is empty. Was always using insertText:,
  11758. but that ends up early-returning if the string to insert is empty.
  11759. * WebView/WebHTMLView.m:
  11760. (-[NSArray yank:]):
  11761. (-[NSArray yankAndSelect:]):
  11762. 2006-09-25 Timothy Hatcher <timothy@apple.com>
  11763. Reviewed by Brady.
  11764. Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
  11765. * WebInspector/WebInspector.m:
  11766. (-[WebInspector _highlightNode:]):
  11767. * WebView/WebHTMLView.m:
  11768. (unionDOMRanges):
  11769. (-[WebHTMLView _selectRangeInMarkedText:]):
  11770. (-[WebTextCompleteController doCompletion]):
  11771. * WebView/WebView.m:
  11772. (-[WebView computedStyleForElement:pseudoElement:]):
  11773. 2006-09-22 Timothy Hatcher <timothy@apple.com>
  11774. Reviewed by Darin.
  11775. Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
  11776. if MACOSX_DEPLOYMENT_TARGET is 10.4.
  11777. * MigrateHeaders.make:
  11778. 2006-09-20 Justin Garcia <justin.garcia@apple.com>
  11779. Reviewed by john
  11780. <http://bugs.webkit.org/show_bug.cgi?id=7165>
  11781. TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
  11782. The top level WebHTMLView is responsible for performing dragging operations, but
  11783. the inner view, the view that holds the drag caret, should be consulted to determine
  11784. if the drag is a move drag.
  11785. * WebCoreSupport/WebFrameBridge.m:
  11786. (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  11787. * WebKit.xcodeproj/project.pbxproj:
  11788. * WebView/WebHTMLView.m:
  11789. (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
  11790. it's only the top level WebHTMLView that performs this operation.
  11791. (-[WebHTMLView _setInitiatedDrag:]): Added.
  11792. (-[WebHTMLView _initiatedDrag]): Ditto.
  11793. (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
  11794. not the top level view.
  11795. (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
  11796. a move drag, so don't ASSERT _isTopHTMLView.
  11797. (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
  11798. (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
  11799. * WebView/WebHTMLViewInternal.h: Added two private SPI so that
  11800. the top level WebHTMLView can set and get the initiatedDrag BOOL.
  11801. === Safari-521.27 ===
  11802. 2006-09-20 Brady Eidson <beidson@apple.com>
  11803. Reviewed by Tim Omernick
  11804. Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
  11805. gracefully even if we can't open the database
  11806. * Misc/WebIconDatabase.m:
  11807. (-[WebIconDatabase init]):
  11808. 2006-09-20 Timothy Hatcher <timothy@apple.com>
  11809. Reviewed by Tim O.
  11810. <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
  11811. * Misc/WebKitVersionChecks.h: Added.
  11812. * Misc/WebKitVersionChecks.m: Added.
  11813. (WebKitLinkedOnOrAfter): Added.
  11814. (WebKitLinkTimeVersion): Added.
  11815. (WebKitRunTimeVersion): Added.
  11816. * WebKit.xcodeproj/project.pbxproj:
  11817. 2006-09-20 Tim Omernick <timo@apple.com>
  11818. Reviewed by Darin.
  11819. * Misc/WebIconDatabase.m:
  11820. (-[WebIconDatabase init]):
  11821. Fixed a typo.
  11822. 2006-09-20 Brady Eidson <beidson@apple.com>
  11823. Reviewed by Darin
  11824. Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
  11825. * Misc/WebIconDatabase.m:
  11826. (-[WebIconDatabase init]):
  11827. 2006-09-19 Brady Eidson <beidson@apple.com>
  11828. Reviewed by Sarge Decker
  11829. <rdar://problem/4739892> and <rdar://problem/4729797>
  11830. - WebCore::IconDatabase needs to have and respect an enabled() flag
  11831. - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
  11832. * Misc/WebIconDatabase.m:
  11833. (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
  11834. (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
  11835. 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
  11836. Reviewed by Tim O.
  11837. http://bugs.webkit.org/show_bug.cgi?id=10661
  11838. REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
  11839. * Plugins/WebBasePluginPackage.m:
  11840. (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
  11841. the bundle is nil - it can be a CFM plugin.
  11842. 2006-09-18 Brady Eidson <beidson@apple.com>
  11843. Reviewed by Anders
  11844. Implement a bridge method so WebCore can find the reload type of a frame load
  11845. * WebCoreSupport/WebFrameBridge.m:
  11846. (-[WebFrameBridge isLoadTypeReload]):
  11847. 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
  11848. Reviewed by Tim H.
  11849. Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
  11850. Yet Another Objective-C Bindings Patch
  11851. * MigrateHeaders.make:
  11852. 2006-09-17 David Harrison <harrison@apple.com>
  11853. Reviewed by John Sullivan.
  11854. <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
  11855. Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
  11856. * WebView/WebDocumentInternal.h:
  11857. Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
  11858. * WebView/WebHTMLView.m:
  11859. (-[WebHTMLView _textSizeMultiplierChanged]):
  11860. Send [self _updateTextSizeMultiplier].
  11861. * WebView/WebPDFView.m:
  11862. (-[WebPDFView _textSizeMultiplierChanged]):
  11863. ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
  11864. * WebView/WebView.m:
  11865. (-[WebView setTextSizeMultiplier:]):
  11866. Send [self _notifyTextSizeMultiplierChanged];
  11867. (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
  11868. Alter the _textSizeMultiplier directly so that notification is not sent.
  11869. Minor formatting.
  11870. (-[WebView _notifyTextSizeMultiplierChanged]):
  11871. New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
  11872. 2006-09-16 Brady Eidson <beidson@apple.com>
  11873. Reviewed by Hyatt
  11874. WebIconLoader is dead, long live WebCore::IconLoader
  11875. (code prune)
  11876. * Loader/WebFrameLoader.h:
  11877. * Loader/WebFrameLoader.m:
  11878. (-[WebFrameLoader dealloc]):
  11879. (-[WebFrameLoader commitProvisionalLoad]):
  11880. * Loader/WebIconLoader.h: Removed.
  11881. * Loader/WebIconLoader.m: Removed.
  11882. * Misc/WebIconDatabase.h:
  11883. * Misc/WebIconDatabase.m:
  11884. * Misc/WebIconDatabasePrivate.h:
  11885. * WebCoreSupport/WebFrameBridge.m:
  11886. (-[WebFrameBridge notifyIconChanged:]):
  11887. * WebCoreSupport/WebIconDatabaseBridge.h:
  11888. * WebCoreSupport/WebIconDatabaseBridge.m:
  11889. (-[WebIconDatabaseBridge _init]):
  11890. (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
  11891. (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
  11892. * WebKit.exp:
  11893. * WebKit.xcodeproj/project.pbxproj:
  11894. * WebView/WebDataSource.m:
  11895. (-[WebDataSourcePrivate dealloc]):
  11896. (-[WebDataSource _stopLoading]):
  11897. (-[WebDataSource _setPrimaryLoadComplete:]):
  11898. * WebView/WebDataSourceInternal.h:
  11899. 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
  11900. Reviewed by Anders.
  11901. http://bugs.webkit.org/show_bug.cgi?id=10887
  11902. Fix build error
  11903. * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
  11904. 2006-09-15 Timothy Hatcher <timothy@apple.com>
  11905. Reviewed by Brady.
  11906. Make new style ObjC methods public API.
  11907. * MigrateHeaders.make:
  11908. 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
  11909. Reviewed by Tim H.
  11910. Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
  11911. Auto-generate DOMNode for the Objective-C bindings
  11912. * MigrateHeaders.make:
  11913. 2006-09-15 Timothy Hatcher <timothy@apple.com>
  11914. Reviewed by Justin.
  11915. Call the bridge directly for alter selection calls. All of this logic is now
  11916. in WebCore's SelectionController.
  11917. * WebView/WebHTMLView.m:
  11918. (-[NSArray moveBackward:]):
  11919. (-[NSArray moveBackwardAndModifySelection:]):
  11920. (-[NSArray moveDown:]):
  11921. (-[NSArray moveDownAndModifySelection:]):
  11922. (-[NSArray moveForward:]):
  11923. (-[NSArray moveForwardAndModifySelection:]):
  11924. (-[NSArray moveLeft:]):
  11925. (-[NSArray moveLeftAndModifySelection:]):
  11926. (-[NSArray moveRight:]):
  11927. (-[NSArray moveRightAndModifySelection:]):
  11928. (-[NSArray moveToBeginningOfDocument:]):
  11929. (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
  11930. (-[NSArray moveToBeginningOfSentence:]):
  11931. (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
  11932. (-[NSArray moveToBeginningOfLine:]):
  11933. (-[NSArray moveToBeginningOfLineAndModifySelection:]):
  11934. (-[NSArray moveToBeginningOfParagraph:]):
  11935. (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
  11936. (-[NSArray moveToEndOfDocument:]):
  11937. (-[NSArray moveToEndOfDocumentAndModifySelection:]):
  11938. (-[NSArray moveToEndOfSentence:]):
  11939. (-[NSArray moveToEndOfSentenceAndModifySelection:]):
  11940. (-[NSArray moveToEndOfLine:]):
  11941. (-[NSArray moveToEndOfLineAndModifySelection:]):
  11942. (-[NSArray moveToEndOfParagraph:]):
  11943. (-[NSArray moveToEndOfParagraphAndModifySelection:]):
  11944. (-[NSArray moveParagraphBackwardAndModifySelection:]):
  11945. (-[NSArray moveParagraphForwardAndModifySelection:]):
  11946. (-[NSArray moveUp:]):
  11947. (-[NSArray moveUpAndModifySelection:]):
  11948. (-[NSArray moveWordBackward:]):
  11949. (-[NSArray moveWordBackwardAndModifySelection:]):
  11950. (-[NSArray moveWordForward:]):
  11951. (-[NSArray moveWordForwardAndModifySelection:]):
  11952. (-[NSArray moveWordLeft:]):
  11953. (-[NSArray moveWordLeftAndModifySelection:]):
  11954. (-[NSArray moveWordRight:]):
  11955. (-[NSArray moveWordRightAndModifySelection:]):
  11956. (-[NSArray pageUp:]):
  11957. (-[NSArray pageDown:]):
  11958. (-[NSArray pageUpAndModifySelection:]):
  11959. (-[NSArray pageDownAndModifySelection:]):
  11960. 2006-09-15 Adam Roben <aroben@apple.com>
  11961. Reviewed by eseidel.
  11962. Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
  11963. containsItemForURLUnicode uses matchLetter instead of
  11964. matchUnicodeLetter
  11965. Small fixes for _WebCoreHistoryProvider.
  11966. * History/WebHistory.m: Consistently use BUFFER_SIZE #define
  11967. (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
  11968. (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
  11969. Replace incorrect call to matchLetter to matchUnicodeLetter
  11970. 2006-09-13 Brady Eidson <beidson@apple.com>
  11971. Reviewed by Maciej
  11972. Add infrastructure to support icon loads taking place in WebCore
  11973. Will remove WebKit icon loaders in a later patch
  11974. * WebCoreSupport/WebFrameBridge.m:
  11975. (-[WebFrameBridge notifyIconChanged:]):
  11976. (-[WebFrameBridge originalRequestURL]):
  11977. - Nuked two old, obsolete methods
  11978. - Added bridge for notifying of an icon change
  11979. - Added bridge for getting the "original request URL" which is still needed
  11980. until that info is available in the WebCore loaders
  11981. * WebView/WebDataSource.m:
  11982. (-[WebDataSource _loadIcon]):
  11983. - Empty body just for now, as it still gets called - next patch will prune all the old impl out
  11984. 2006-09-13 Timothy Hatcher <timothy@apple.com>
  11985. Reviewed by Tim O.
  11986. <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
  11987. Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
  11988. * History/WebHistory.h:
  11989. === Safari-521.26 ===
  11990. 2006-09-11 MorganL <morlmor@yahoo.com>
  11991. Reviewed/landed by aroben.
  11992. Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
  11993. Windows build busted due to std::copy usage in Vector.h
  11994. * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
  11995. rid of deprecation warnings on std::copy
  11996. 2006-09-11 Brady Eidson <beidson@apple.com>
  11997. Despite the fact that some people built okay without this change, it sure was biting me,
  11998. probably because I just wiped my build directory for a fresh build -
  11999. Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
  12000. * MigrateHeaders.make: removed DOMList.h
  12001. 2006-09-10 Darin Adler <darin@apple.com>
  12002. Reviewed by Brady.
  12003. - fix http://bugs.webkit.org/show_bug.cgi?id=10547
  12004. REGRESSION: Links that should open in a new window open in the same window,
  12005. while opening another blank window
  12006. * WebView/WebFrame.m:
  12007. (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  12008. Changed a mistaken "self" to "frame", which was the cause of the bug. Also
  12009. fixed the method so that it won't crash if createWebViewWithRequest does
  12010. something that has a side effect of releasing this WebView or this frame
  12011. by retaining "self" and "frame" as needed. Also fixed a problem where the
  12012. code to set "opener" was backwards, and would set the opener of the old
  12013. frame to point to the new frame instead of vice versa.
  12014. 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
  12015. Reviewed by Eric.
  12016. Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
  12017. Auto-generate the Objective-C DOM XPath bindings
  12018. * MigrateHeaders.make:
  12019. 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
  12020. Reviewed by Eric.
  12021. Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
  12022. Even More Objective-C DOM auto-generation cleanup
  12023. * MigrateHeaders.make:
  12024. 2006-09-08 Tim Omernick <timo@apple.com>
  12025. Reviewed by Brady Eidson.
  12026. Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
  12027. is a useful optimization, as it avoids many Objective-C method calls while polling resources
  12028. for their load state.
  12029. This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
  12030. * Loader/WebFrameLoader.m:
  12031. (-[WebFrameLoader addPlugInStreamLoader:]):
  12032. (-[WebFrameLoader removePlugInStreamLoader:]):
  12033. (-[WebFrameLoader addSubresourceLoader:]):
  12034. (-[WebFrameLoader removeSubresourceLoader:]):
  12035. * WebView/WebDataSource.m:
  12036. (-[WebDataSourcePrivate dealloc]):
  12037. (-[WebDataSource _prepareForLoadStart]):
  12038. (-[WebDataSource _setLoading:]):
  12039. (-[WebDataSource _updateLoading]):
  12040. (-[WebDataSource _startLoading]):
  12041. (-[WebDataSource _stopLoading]):
  12042. (-[WebDataSource _setPrimaryLoadComplete:]):
  12043. (-[WebDataSource isLoading]):
  12044. * WebView/WebDataSourceInternal.h:
  12045. 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
  12046. Reviewed by Darin and Tim H.
  12047. Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
  12048. Auto-generate the Objective-C DOM Traversal bindings
  12049. * MigrateHeaders.make:
  12050. 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
  12051. Reviewed by Darin.
  12052. Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
  12053. Auto-generate the Objective-C DOM Events bindings
  12054. * MigrateHeaders.make:
  12055. * WebKit.xcodeproj/project.pbxproj:
  12056. 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
  12057. * MigrateHeaders.make: Fixed a double slash in
  12058. "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
  12059. to cause a build failure under certain circumstances).
  12060. 2006-09-05 MorganL <morlmor@yahoocom>
  12061. Reviewed/landed by aroben.
  12062. Fixes bug 10743: Windows build is busted.
  12063. * COM/WebView.cpp:
  12064. (WebView::keyPress):
  12065. 2006-09-05 Timothy Hatcher <timothy@apple.com>
  12066. Reviewed by Darin.
  12067. Drastically simplified the makefile for migrating headers from
  12068. WebCore and JavaScriptCore. The old version was always copying the files.
  12069. * MigrateHeaders.make:
  12070. 2006-09-05 Darin Adler <darin@apple.com>
  12071. Reviewed by Alexey.
  12072. - WebKit side of changes to encoding
  12073. * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
  12074. Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
  12075. the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
  12076. and +[WebCoreFrameBridge stringWithData:textEncoding:].
  12077. * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
  12078. nil encoding name. The bridge itself now has the rule that "nil encoding name
  12079. means Latin-1", so we don't need to check for nil.
  12080. * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
  12081. we get the parent frame while walking up parent frames, because it's possible
  12082. for _checkLoadCompleteForThisFrame to release the last reference to the frame.
  12083. (Not reviewed; needed to run performance tests successfully.)
  12084. 2006-09-05 Timothy Hatcher <timothy@apple.com>
  12085. Reviewed by Tim O.
  12086. <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
  12087. * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
  12088. 2006-09-04 Timothy Hatcher <timothy@apple.com>
  12089. Reviewed by Darin.
  12090. Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
  12091. http://bugs.webkit.org/show_bug.cgi?id=10714
  12092. - Added the new private DOM headers.
  12093. - Factored out the common commands into variables.
  12094. - Made WebDashboardRegion.h private again.
  12095. - Rename DOMDOMImplementation.h to DOMImplementation.h when files
  12096. are migrated. Also fixes up #imports.
  12097. * MigrateHeaders.make:
  12098. 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
  12099. Reviewed by Darin and Tim H.
  12100. - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
  12101. Auto-generate the Objective-C DOM Stylesheet bindings
  12102. * MigrateHeaders.make:
  12103. 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
  12104. Reviewed by Tim H.
  12105. - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
  12106. Auto-generate the Objective-C DOM CSS bindings
  12107. * MigrateHeaders.make:
  12108. 2006-09-01 MorganL <morlmor@yahoo.com>
  12109. Reviewed by Darin. Updated/landed by Adam.
  12110. Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
  12111. Windows build fixes
  12112. * COM/WebFrame.cpp:
  12113. (WebFrame::initWithName):
  12114. 2006-09-01 Brady Eidson <beidson@apple.com>
  12115. Reviewed by Darin
  12116. A "never should be reached" method was reached - lets not release the shared database bridge, esp
  12117. since we never retain it!
  12118. * Misc/WebIconDatabase.m:
  12119. (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
  12120. 2006-09-01 Darin Adler <darin@apple.com>
  12121. Reviewed by Brady.
  12122. - a few small tweaks to the icon database bridge
  12123. * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
  12124. * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
  12125. * WebCoreSupport/WebIconDatabaseBridge.m:
  12126. (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
  12127. to allocate one of these.
  12128. (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
  12129. shared instance. Added the "self = [super init]" idiom even though it's not important
  12130. in this case just to be consistent.
  12131. (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
  12132. so it can be called without declaring it in the header.
  12133. (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
  12134. CFRetain for compatibility.
  12135. (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
  12136. (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
  12137. 2006-09-01 Timothy Hatcher <timothy@apple.com>
  12138. Reviewed by Adele.
  12139. Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
  12140. http://bugs.webkit.org/show_bug.cgi?id=10677
  12141. * WebInspector/webInspector/inspector.js:
  12142. 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
  12143. Reviewed by Tim H.
  12144. - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
  12145. Auto-generate the remaining Objective-C HTML DOM bindings
  12146. * MigrateHeaders.make:
  12147. 2006-08-31 Adele Peterson <adele@apple.com>
  12148. Reviewed by Darin.
  12149. WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
  12150. Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
  12151. * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
  12152. Check that the selection isn't in a password field before adding these items to the default editing context menu.
  12153. Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
  12154. * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
  12155. * WebView/WebHTMLViewPrivate.h:
  12156. 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
  12157. Reviewed by Tim H.
  12158. - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
  12159. Auto-generate another 20 Objective-C DOM HTML bindings
  12160. * MigrateHeaders.make:
  12161. * WebKit.xcodeproj/project.pbxproj:
  12162. 2006-08-31 Adele Peterson <adele@apple.com>
  12163. Reviewed by John Sullivan.
  12164. Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
  12165. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
  12166. 2006-08-31 John Sullivan <sullivan@apple.com>
  12167. Reviewed by Tim Omernick
  12168. - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
  12169. NSURL API for local files
  12170. * History/WebHistory.m:
  12171. (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
  12172. Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
  12173. style issues in this method, and I removed the support for old NSArray-style history files (which we
  12174. stopped using before Safari 1.0).
  12175. 2006-08-30 Adele Peterson <adele@apple.com>
  12176. Reviewed by Hyatt.
  12177. WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
  12178. Enable secure input mode for new password fields
  12179. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
  12180. 2006-08-30 Brady Eidson <beidson@apple.com>
  12181. Reviewed by John
  12182. <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
  12183. continues on as if the IconDatabase is disabled.
  12184. * Misc/WebIconDatabase.m:
  12185. (-[WebIconDatabase init]): Release the bridge on failure to open
  12186. * WebCoreSupport/WebIconDatabaseBridge.m:
  12187. (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
  12188. (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
  12189. 2006-08-30 Timothy Hatcher <timothy@apple.com>
  12190. Reviewed by Darin.
  12191. Simplify the header copies from WebCore and JavaScriptCore.
  12192. Headers that need to be migrated from the other projects need
  12193. to be added to MigrateHeaders.make.
  12194. * MigrateHeaders.make: Added.
  12195. * WebKit.xcodeproj/project.pbxproj:
  12196. 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
  12197. Reviewed by Tim H.
  12198. - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
  12199. Auto-generate 10 more Objective-C DOM HTML bindings
  12200. * WebKit.xcodeproj/project.pbxproj:
  12201. 2006-08-30 Adele Peterson <adele@apple.com>
  12202. Reviewed by Darin.
  12203. WebKit part of fix for:
  12204. http://bugs.webkit.org/show_bug.cgi?id=10576
  12205. Disallow copy from new password fields
  12206. * WebView/WebHTMLView.m:
  12207. (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
  12208. (-[WebHTMLView _canCut]): Calls _canCopy now.
  12209. (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
  12210. This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
  12211. 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
  12212. Reviewed by Eric and Tim H.
  12213. Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
  12214. http://bugs.webkit.org/show_bug.cgi?id=10634
  12215. Remove the check for canShowFile: from _web_bestURL: since
  12216. it shouldn't be concerned with whether or not the view
  12217. can show the URL, merely return the most appropriate URL.
  12218. * Misc/WebNSPasteboardExtras.m:
  12219. (-[NSPasteboard _web_bestURL]):
  12220. * Misc/WebNSViewExtras.m:
  12221. (-[NSView _web_dragOperationForDraggingInfo:]):
  12222. 2006-08-29 Brady Eidson <beidson@apple.com>
  12223. Reviewed by Kevin Decker (Sarge)
  12224. <rdar://problem/4678414> - New IconDB needs to delete icons when asked
  12225. * Misc/WebIconDatabase.m:
  12226. (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
  12227. 2006-08-29 Brady Eidson <beidson@apple.com>
  12228. Reviewed by Alice
  12229. Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
  12230. This is a win on the iBench
  12231. * Misc/WebIconDatabase.m:
  12232. (-[WebIconDatabase _setIconURL:forURL:]):
  12233. 2006-08-29 Brady Eidson <beidson@apple.com>
  12234. Reviewed by Tim Hatchers rubber stamp
  12235. Removed some accidentally left-in console spew during the conversion to the new DB
  12236. * Misc/WebIconDatabase.m:
  12237. (objectFromPathForKey): Nuked some NSLogs
  12238. 2006-08-29 Tim Omernick <timo@apple.com>
  12239. Reviewed by Darin Adler.
  12240. <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
  12241. No layout test for now because Java doesn't work in DumpRenderTree.
  12242. * Plugins/WebPluginDatabase.m:
  12243. (-[WebPluginDatabase refresh]):
  12244. Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
  12245. MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
  12246. (we were always rendering fallback content, if any, for Java applets).
  12247. 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
  12248. Reviewed by Tim H.
  12249. - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
  12250. Auto-generate the remaining Objective-C DOM bindings
  12251. Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
  12252. and DOMHTMLOptionsCollection.
  12253. * WebKit.xcodeproj/project.pbxproj:
  12254. 2006-08-28 Brady Eidson <beidson@apple.com>
  12255. Reviewed by Darin
  12256. Short of a few small snippets that still need to be pushed to WebCore, this
  12257. is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
  12258. and the small remaining snippets of WebFileDatabase code that were still important
  12259. are now in static functions in WebIconDatabase.m
  12260. * Loader/WebIconLoader.m:
  12261. (-[WebIconLoader didFinishLoading]): Removed the flag
  12262. * Misc/WebFileDatabase.h: Removed.
  12263. * Misc/WebFileDatabase.m: Removed.
  12264. * Misc/WebIconDatabase.m:
  12265. (+[WebIconDatabase sharedIconDatabase]):
  12266. (-[WebIconDatabase init]):
  12267. (-[WebIconDatabase iconForURL:withSize:cache:]):
  12268. (-[WebIconDatabase iconURLForURL:]):
  12269. (-[WebIconDatabase defaultIconWithSize:]):
  12270. (-[WebIconDatabase retainIconForURL:]):
  12271. (-[WebIconDatabase releaseIconForURL:]):
  12272. (-[WebIconDatabase _isEnabled]):
  12273. (-[WebIconDatabase _setIconData:forIconURL:]):
  12274. (-[WebIconDatabase _setHaveNoIconForIconURL:]):
  12275. (-[WebIconDatabase _setIconURL:forURL:]):
  12276. (-[WebIconDatabase _hasEntryForIconURL:]):
  12277. (-[WebIconDatabase _applicationWillTerminate:]):
  12278. (-[WebIconDatabase _resetCachedWebPreferences:]):
  12279. (uniqueFilePathForKey): Added from WebFileDatabase
  12280. (objectFromPathForKey): Added from WebFileDatabase
  12281. (iconDataFromPathForIconURL):
  12282. (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
  12283. instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
  12284. * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
  12285. * Misc/WebLRUFileList.h: Removed.
  12286. * Misc/WebLRUFileList.m: Removed.
  12287. * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
  12288. * WebKitPrefix.h: Removed ICONDEBUG
  12289. 2006-08-28 Tim Omernick <timo@apple.com>
  12290. Reviewed by Darin Adler.
  12291. * Plugins/WebBaseNetscapePluginView.m:
  12292. (-[WebBaseNetscapePluginView createPluginScriptableObject]):
  12293. Removed a bogus typecast.
  12294. 2006-08-28 Tim Omernick <timo@apple.com>
  12295. Reviewed by John Sullivan.
  12296. Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
  12297. <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
  12298. in Firefox
  12299. * Plugins/WebBaseNetscapePluginView.h:
  12300. * Plugins/WebBaseNetscapePluginView.m:
  12301. (-[WebBaseNetscapePluginView createPluginScriptableObject]):
  12302. Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
  12303. Style changes.
  12304. 2006-08-28 Brady Eidson <beidson@apple.com>
  12305. Reviewed by Tim Hatcher's rubberstamp
  12306. Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
  12307. failure in layout tests on a release build.
  12308. * Misc/WebFileDatabase.h:
  12309. * Misc/WebFileDatabase.m:
  12310. (+[WebFileDatabaseOp opWithCode:key:object:]):
  12311. (-[WebFileDatabaseOp initWithCode:key:object:]):
  12312. (-[WebFileDatabaseOp opcode]):
  12313. (-[WebFileDatabaseOp key]):
  12314. (-[WebFileDatabaseOp object]):
  12315. (-[WebFileDatabaseOp perform:]):
  12316. (-[WebFileDatabaseOp dealloc]):
  12317. (SetThreadPriority):
  12318. (-[WebFileDatabase _createLRUList:]):
  12319. (-[WebFileDatabase _truncateToSizeLimit:]):
  12320. (+[WebFileDatabase _syncLoop:]):
  12321. (databaseInit):
  12322. (-[WebFileDatabase setTimer]):
  12323. (-[WebFileDatabase setObject:forKey:]):
  12324. (-[WebFileDatabase removeObjectForKey:]):
  12325. (-[WebFileDatabase removeAllObjects]):
  12326. (-[WebFileDatabase objectForKey:]):
  12327. (-[WebFileDatabase performSetObject:forKey:]):
  12328. (-[WebFileDatabase performRemoveObjectForKey:]):
  12329. (-[WebFileDatabase open]):
  12330. (-[WebFileDatabase close]):
  12331. (-[WebFileDatabase lazySync:]):
  12332. (-[WebFileDatabase sync]):
  12333. (-[WebFileDatabase sizeLimit]):
  12334. (-[WebFileDatabase count]):
  12335. (-[WebFileDatabase usage]):
  12336. (-[WebFileDatabase setSizeLimit:]):
  12337. * Misc/WebIconDatabase.m:
  12338. (-[WebIconDatabase _createFileDatabase]):
  12339. (-[WebIconDatabase _loadIconDictionaries]):
  12340. * WebKit.xcodeproj/project.pbxproj:
  12341. 2006-08-28 Darin Adler <darin@apple.com>
  12342. Reviewed by Tim Hatcher.
  12343. * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
  12344. default values for CSS properties so it will be omitted from most displays
  12345. of computed style.
  12346. 2006-08-28 Brady Eidson <beidson@apple.com>
  12347. Reviewed by Maciej
  12348. Major prune of unnecessary WebFileDatabase code. In the end, what
  12349. useful code that remains in WebFileDatabase will likely be moved directly
  12350. into WebIconDatabase
  12351. * Misc/WebFileDatabase.h:
  12352. * Misc/WebFileDatabase.m:
  12353. (-[WebFileDatabase initWithPath:]):
  12354. (-[WebFileDatabase objectForKey:]):
  12355. (-[WebFileDatabase open]):
  12356. (-[WebFileDatabase close]):
  12357. * Misc/WebIconDatabase.m:
  12358. (-[WebIconDatabase _createFileDatabase]):
  12359. (-[WebIconDatabase _loadIconDictionaries]):
  12360. * Misc/WebLRUFileList.h: Removed.
  12361. * Misc/WebLRUFileList.m: Removed.
  12362. * WebKit.xcodeproj/project.pbxproj:
  12363. 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
  12364. Reviewed by Tim H.
  12365. - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
  12366. WebCore needs autogenerated Obj-C DOM bindings
  12367. First round of auto-generated Objective C DOM bindings, starting
  12368. with the DOM Core.
  12369. * WebKit.xcodeproj/project.pbxproj:
  12370. 2006-08-25 Brady Eidson <beidson@apple.com>
  12371. Reviewed by Tim Hatcher
  12372. Fixed up some leaks on [WebIconDatabase init]
  12373. * Misc/WebIconDatabase.m:
  12374. (-[WebIconDatabase init]):
  12375. 2006-08-24 Timothy Hatcher <timothy@apple.com>
  12376. Reviewed by Darin.
  12377. * WebView/WebFrame.m:
  12378. (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
  12379. * WebView/WebView.m:
  12380. (-[WebViewPrivate dealloc]): release the background color
  12381. 2006-08-24 Timothy Hatcher <timothy@apple.com>
  12382. Reviewed by Hyatt.
  12383. WebView API to allow changing the background color that draws under transparent page backgrounds.
  12384. * WebView/WebFrame.m:
  12385. (-[WebFrame _makeDocumentView]):
  12386. (-[WebFrame _updateBackground]):
  12387. * WebView/WebFrameInternal.h:
  12388. * WebView/WebFrameView.m:
  12389. (-[WebFrameView drawRect:]):
  12390. * WebView/WebView.m:
  12391. (-[WebView setBackgroundColor:]):
  12392. (-[WebView backgroundColor]):
  12393. (-[WebView _commonInitializationWithFrameName:groupName:]):
  12394. (-[WebView setDrawsBackground:]):
  12395. * WebView/WebViewPrivate.h:
  12396. 2006-08-24 Timothy Hatcher <timothy@apple.com>
  12397. Reviewed by Darin.
  12398. Fix for Mail stationary. Selecting a stationary item would cause this exception.
  12399. *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
  12400. Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
  12401. * Loader/WebFrameLoader.m:
  12402. (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
  12403. Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
  12404. 2006-08-23 Maciej Stachowiak <mjs@apple.com>
  12405. Reviewed by Adele.
  12406. - fix assertion which I accidentally changed to one that sometimes fails
  12407. http://bugs.webkit.org/show_bug.cgi?id=10531
  12408. * Loader/WebDocumentLoadState.m:
  12409. (-[WebDocumentLoadState dealloc]):
  12410. * WebView/WebDataSource.m:
  12411. (-[WebDataSourcePrivate dealloc]):
  12412. (-[WebDataSource dealloc]):
  12413. 2006-08-23 Maciej Stachowiak <mjs@apple.com>
  12414. Reviewed by Brady.
  12415. - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
  12416. for WebFrameLoader just holding on to WebDocumentLoadState
  12417. * Loader/WebFrameLoader.h:
  12418. * Loader/WebFrameLoader.m:
  12419. (-[WebFrameLoader _loadRequest:archive:]):
  12420. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
  12421. (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
  12422. (-[WebFrameLoader reload]):
  12423. * WebView/WebFrame.m:
  12424. (-[WebFrame _loadItem:withLoadType:]):
  12425. (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  12426. (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  12427. (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  12428. (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
  12429. (-[WebFrame loadRequest:]):
  12430. (-[WebFrame loadArchive:]):
  12431. (-[WebFrame reload]):
  12432. * WebView/WebFrameInternal.h:
  12433. * WebView/WebFramePrivate.h:
  12434. * WebView/WebView.m:
  12435. (-[WebView setCustomTextEncodingName:]):
  12436. 2006-08-23 Brady Eidson <beidson@apple.com>
  12437. Reviewed by Maciej
  12438. First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
  12439. have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
  12440. functionality changes.
  12441. * Loader/WebIconLoader.m:
  12442. (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
  12443. * Misc/WebIconDatabase.h:
  12444. * Misc/WebIconDatabase.m:
  12445. (-[WebIconDatabase init]):
  12446. (-[WebIconDatabase iconForURL:withSize:cache:]):
  12447. (-[WebIconDatabase iconURLForURL:]):
  12448. (-[WebIconDatabase defaultIconWithSize:]):
  12449. (-[WebIconDatabase retainIconForURL:]):
  12450. (-[WebIconDatabase releaseIconForURL:]):
  12451. (-[WebIconDatabase removeAllIcons]):
  12452. (-[WebIconDatabase _setIconData:forIconURL:]):
  12453. (-[WebIconDatabase _setHaveNoIconForIconURL:]):
  12454. (-[WebIconDatabase _setIconURL:forURL:]):
  12455. (-[WebIconDatabase _hasEntryForIconURL:]):
  12456. (-[WebIconDatabase _applicationWillTerminate:]):
  12457. (-[WebIconDatabase _resetCachedWebPreferences:]):
  12458. * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
  12459. 2006-08-23 Maciej Stachowiak <mjs@apple.com>
  12460. Reviewed by Adele.
  12461. - started factoring most of the guts of WebDataSource into a new class
  12462. WebDocumentLoadState is decoupled from the rest of WebKit and will
  12463. be moved down to WebCore. I only moved one of the data fields of
  12464. WebDataSource for now.
  12465. * Loader/WebDocumentLoadState.h: Added.
  12466. * Loader/WebDocumentLoadState.m: Added.
  12467. (-[WebDocumentLoadState initWithRequest:]): New class.
  12468. (-[WebDocumentLoadState dealloc]):
  12469. (-[WebDocumentLoadState setFrameLoader:]):
  12470. (-[WebDocumentLoadState setMainResourceData:]):
  12471. (-[WebDocumentLoadState mainResourceData]):
  12472. * Loader/WebFrameLoader.m:
  12473. (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
  12474. it would have been called already by this point.
  12475. (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
  12476. * WebKit.xcodeproj/project.pbxproj:
  12477. * WebView/WebDataSource.m:
  12478. (-[WebDataSourcePrivate dealloc]):
  12479. (-[WebDataSource _setWebFrame:]):
  12480. (-[WebDataSource _setPrimaryLoadComplete:]):
  12481. (-[WebDataSource initWithRequest:]):
  12482. (-[WebDataSource data]):
  12483. 2006-08-23 Maciej Stachowiak <mjs@apple.com>
  12484. Reviewed by Adele.
  12485. - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
  12486. - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
  12487. - reduce Private category implementation to be only the SPI methods
  12488. - make new Internal and FileInternal categories which contain the
  12489. remainder (depending on whether they are called from outside of
  12490. WebDataSource)
  12491. * WebView/WebDataSource.m:
  12492. (-[WebDataSource _setMainDocumentError:]):
  12493. (addTypesFromClass):
  12494. (+[WebDataSource _representationClassForMIMEType:]):
  12495. (-[WebDataSource _commitIfReady]):
  12496. (-[WebDataSource _commitLoadWithData:]):
  12497. (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
  12498. (-[WebDataSource _addResponse:]):
  12499. (-[WebDataSource _revertToProvisionalState]):
  12500. (-[WebDataSource _mainDocumentError]):
  12501. (-[WebDataSource _addSubframeArchives:]):
  12502. (-[WebDataSource _fileWrapperForURL:]):
  12503. (+[WebDataSource _repTypesAllowImageTypeOmission:]):
  12504. (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
  12505. (-[WebDataSource _finishedLoading]):
  12506. (-[WebDataSource _setResponse:]):
  12507. (-[WebDataSource _setRequest:]):
  12508. (-[WebDataSource _setupForReplaceByMIMEType:]):
  12509. (-[WebDataSource _receivedMainResourceError:complete:]):
  12510. (-[WebDataSource _mainReceivedError:complete:]):
  12511. (-[WebDataSource _defersCallbacks]):
  12512. (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
  12513. (-[WebDataSource _didFailLoadingWithError:forResource:]):
  12514. (-[WebDataSource _didFinishLoadingForResource:]):
  12515. (-[WebDataSource _didReceiveData:contentLength:forResource:]):
  12516. (-[WebDataSource _didReceiveResponse:forResource:]):
  12517. (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
  12518. (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
  12519. (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
  12520. (-[WebDataSource _identifierForInitialRequest:]):
  12521. (-[WebDataSource _archivedSubresourceForURL:]):
  12522. (-[WebDataSource _startLoading]):
  12523. (-[WebDataSource _stopRecordingResponses]):
  12524. (-[WebDataSource _loadingStartedTime]):
  12525. (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
  12526. (-[WebDataSource _documentFragmentWithArchive:]):
  12527. (-[WebDataSource _documentFragmentWithImageResource:]):
  12528. (-[WebDataSource _imageElementWithImageResource:]):
  12529. (-[WebDataSource _title]):
  12530. (-[WebDataSource _isStopping]):
  12531. (-[WebDataSource _setWebFrame:]):
  12532. (-[WebDataSource _URL]):
  12533. (-[WebDataSource _loadFromPageCache:]):
  12534. (-[WebDataSource _popSubframeArchiveWithName:]):
  12535. (-[WebDataSource _setIsClientRedirect:]):
  12536. (-[WebDataSource _setURL:]):
  12537. (-[WebDataSource _setLastCheckedRequest:]):
  12538. (-[WebDataSource _defersCallbacksChanged]):
  12539. (-[WebDataSource _lastCheckedRequest]):
  12540. (-[WebDataSource _stopLoading]):
  12541. (-[WebDataSource _bridge]):
  12542. (-[WebDataSource _webView]):
  12543. (-[WebDataSource _triggeringAction]):
  12544. (-[WebDataSource _setTriggeringAction:]):
  12545. (-[WebDataSource __adoptRequest:]):
  12546. (-[WebDataSource _isDocumentHTML]):
  12547. (-[WebDataSource _stopLoadingWithError:]):
  12548. (-[WebDataSource _setPrimaryLoadComplete:]):
  12549. (-[WebDataSource _responses]):
  12550. (-[WebDataSource _makeRepresentation]):
  12551. (-[WebDataSource _isClientRedirect]):
  12552. (-[WebDataSource _originalRequest]):
  12553. (-[WebDataSource _URLForHistory]):
  12554. (-[WebDataSource _addToUnarchiveState:]):
  12555. (-[WebDataSource _setOverrideEncoding:]):
  12556. (-[WebDataSource _setIconURL:]):
  12557. (-[WebDataSource _setIconURL:withType:]):
  12558. (-[WebDataSource _overrideEncoding]):
  12559. (-[WebDataSource _setTitle:]):
  12560. * WebView/WebDataSourceInternal.h:
  12561. 2006-08-23 Brady Eidson <beidson@apple.com>
  12562. Reviewed by John Sullivan
  12563. /me crosses fingers
  12564. Flip the switch to the new Icon Database
  12565. Massive code pruning is coming up
  12566. * WebKitPrefix.h: Flipped the switch
  12567. 2006-08-23 Brady Eidson <beidson@apple.com>
  12568. Reviewed by Beth
  12569. Since I just pushed the default URL icon from WebKit to WebCore, but
  12570. WebKit was still using its version of the default icon, this patch makes it
  12571. use the WebCore version
  12572. * Misc/WebIconDatabase.m:
  12573. (-[WebIconDatabase defaultIconWithSize:]):
  12574. 2006-08-22 Maciej Stachowiak <mjs@apple.com>
  12575. Reviewed by Brady.
  12576. - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
  12577. * Loader/WebFrameLoader.m:
  12578. (-[WebFrameLoader addPlugInStreamLoader:]):
  12579. (-[WebFrameLoader removePlugInStreamLoader:]):
  12580. (-[WebFrameLoader addSubresourceLoader:]):
  12581. (-[WebFrameLoader removeSubresourceLoader:]):
  12582. * WebView/WebDataSource.m:
  12583. (-[WebDataSourcePrivate dealloc]):
  12584. (-[WebDataSource _setPrimaryLoadComplete:]):
  12585. (-[WebDataSource _stopLoading]):
  12586. (-[WebDataSource _prepareForLoadStart]):
  12587. (-[WebDataSource _startLoading]):
  12588. (-[WebDataSource isLoading]):
  12589. * WebView/WebDataSourceInternal.h:
  12590. 2006-08-22 Maciej Stachowiak <mjs@apple.com>
  12591. Reviewed by Eric.
  12592. <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
  12593. * Loader/WebFrameLoader.m:
  12594. (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
  12595. situation occurs.
  12596. * Loader/WebSubresourceLoader.m:
  12597. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
  12598. the situation from occuring.
  12599. 2006-08-22 Maciej Stachowiak <mjs@apple.com>
  12600. Reviewed by Anders.
  12601. - pull more WebDataSource code into WebFrameLoader
  12602. - make WebMainResourceLoader not depend on WebKit or on SPI
  12603. * Loader/WebFrameLoader.h:
  12604. * Loader/WebFrameLoader.m:
  12605. (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
  12606. (-[WebFrameLoader _updateIconDatabaseWithURL:]):
  12607. (-[WebFrameLoader _notifyIconChanged:]):
  12608. (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
  12609. (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
  12610. (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
  12611. (-[WebFrameLoader cancelContentPolicy]):
  12612. * Loader/WebIconLoader.m:
  12613. (-[WebIconLoader didFinishLoading]):
  12614. * Loader/WebLoader.m:
  12615. (-[NSURLProtocol loadWithRequest:]):
  12616. (-[NSURLProtocol setDefersCallbacks:]):
  12617. * Loader/WebMainResourceLoader.h:
  12618. * Loader/WebMainResourceLoader.m:
  12619. (-[WebMainResourceLoader initWithFrameLoader:]):
  12620. (-[WebMainResourceLoader dealloc]):
  12621. (-[WebMainResourceLoader cancelWithError:]):
  12622. (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
  12623. (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
  12624. (-[WebMainResourceLoader continueAfterContentPolicy:]):
  12625. (-[WebMainResourceLoader checkContentPolicy]):
  12626. (-[WebMainResourceLoader didReceiveResponse:]):
  12627. * Plugins/WebPluginContainerCheck.m:
  12628. * WebCoreSupport/WebSystemInterface.m:
  12629. (InitWebCoreSystemInterface):
  12630. * WebView/WebDataSource.m:
  12631. (-[WebDataSource _loadIcon]):
  12632. (-[WebDataSource _cancelledError]):
  12633. (+[WebDataSource _repTypesAllowImageTypeOmission:]):
  12634. (+[WebDataSource _representationClassForMIMEType:]):
  12635. (-[WebDataSource _commitLoadWithData:]):
  12636. (-[WebDataSource _isDocumentHTML]):
  12637. * WebView/WebDataSourceInternal.h:
  12638. * WebView/WebFramePrivate.h:
  12639. * WebView/WebPolicyDelegate.m:
  12640. * WebView/WebPolicyDelegatePrivate.h:
  12641. 2006-08-21 Maciej Stachowiak <mjs@apple.com>
  12642. Reviewed by Brady.
  12643. - move more code from WebDataSource to WebFrameLoader
  12644. Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
  12645. use any of WebDataSource's private data.
  12646. * Loader/WebFrameLoader.h:
  12647. * Loader/WebFrameLoader.m:
  12648. (-[WebFrameLoader addPlugInStreamLoader:]):
  12649. (-[WebFrameLoader removePlugInStreamLoader:]):
  12650. (-[WebFrameLoader addSubresourceLoader:]):
  12651. (-[WebFrameLoader removeSubresourceLoader:]):
  12652. (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
  12653. (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
  12654. (-[WebFrameLoader _didReceiveResponse:forResource:]):
  12655. (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
  12656. (-[WebFrameLoader _didFinishLoadingForResource:]):
  12657. (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
  12658. (-[WebFrameLoader _privateBrowsingEnabled]):
  12659. (-[WebFrameLoader _finishedLoadingResource]):
  12660. (-[WebFrameLoader _receivedError:]):
  12661. (-[WebFrameLoader _finishedLoading]):
  12662. * Loader/WebMainResourceLoader.m:
  12663. (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
  12664. (-[WebMainResourceLoader didFinishLoading]):
  12665. * Loader/WebNetscapePlugInStreamLoader.m:
  12666. (-[WebNetscapePlugInStreamLoader didFinishLoading]):
  12667. (-[WebNetscapePlugInStreamLoader didFailWithError:]):
  12668. (-[WebNetscapePlugInStreamLoader cancelWithError:]):
  12669. * Loader/WebSubresourceLoader.m:
  12670. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
  12671. (-[WebSubresourceLoader signalFinish]):
  12672. (-[WebSubresourceLoader didFailWithError:]):
  12673. (-[WebSubresourceLoader cancel]):
  12674. * Plugins/WebNetscapePluginStream.m:
  12675. (-[WebNetscapePluginStream start]):
  12676. * WebView/WebDataSource.m:
  12677. (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
  12678. (-[WebDataSource _updateIconDatabaseWithURL:]):
  12679. (-[WebDataSource _loadIcon]):
  12680. (-[WebDataSource _setPrimaryLoadComplete:]):
  12681. (-[WebDataSource _cancelledError]):
  12682. (+[WebDataSource _repTypesAllowImageTypeOmission:]):
  12683. (+[WebDataSource _representationClassForMIMEType:]):
  12684. (-[WebDataSource _commitLoadWithData:]):
  12685. (-[WebDataSource _receivedMainResourceError:complete:]):
  12686. (-[WebDataSource _iconLoaderReceivedPageIcon:]):
  12687. (-[WebDataSource _isDocumentHTML]):
  12688. * WebView/WebDataSourceInternal.h:
  12689. 2006-08-21 Brady Eidson <beidson@apple.com>
  12690. Reviewed by John
  12691. Quick ICONDEBUG flag fix
  12692. * Misc/WebIconDatabase.m:
  12693. (-[WebIconDatabase _applicationWillTerminate:]):
  12694. 2006-08-21 Brady Eidson <beidson@apple.com>
  12695. Reviewed by Anders
  12696. -Renamed an internal only method for clarity
  12697. -Tweaked WebDataSource for notification purposes with the new expiring icons
  12698. -Fixed a bug with the ICONDEBUG flag
  12699. * Misc/WebIconDatabase.m:
  12700. (-[WebIconDatabase init]):
  12701. (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
  12702. (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
  12703. * Misc/WebIconDatabasePrivate.h:
  12704. * WebView/WebDataSource.m:
  12705. (-[WebDataSource _updateIconDatabaseWithURL:]):
  12706. (-[WebDataSource _notifyIconChanged:]):
  12707. (-[WebDataSource _loadIcon]):
  12708. (-[WebDataSource _iconLoaderReceivedPageIcon:]):
  12709. 2006-08-17 Maciej Stachowiak <mjs@apple.com>
  12710. Reviewed by Brady.
  12711. - pull a bit of WebDataSource code into WebFrameLoader
  12712. * Loader/WebFrameLoader.m:
  12713. (-[WebFrameLoader _receivedError:]):
  12714. (-[WebFrameLoader webFrame]):
  12715. (-[WebFrameLoader _handleFallbackContent]):
  12716. (+[WebFrameLoader _canShowMIMEType:]):
  12717. (+[WebFrameLoader _representationExistsForURLScheme:]):
  12718. (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
  12719. * WebView/WebDataSource.m:
  12720. * WebView/WebDataSourceInternal.h:
  12721. 2006-08-17 Timothy Hatcher <timothy@apple.com>
  12722. Reviewed by Kevin Decker.
  12723. <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
  12724. * WebKit.LP64.exp:
  12725. 2006-08-17 Timothy Hatcher <timothy@apple.com>
  12726. Reviewed by Kevin Decker.
  12727. <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
  12728. <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
  12729. Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
  12730. Set the _private->closed flag at the beginning of _close to prevent reentry.
  12731. Set the host window and all the delegates to nil in _close.
  12732. * WebView/WebView.m:
  12733. (-[WebView _close]):
  12734. 2006-08-16 Brady Eidson <beidson@apple.com>
  12735. Reviewed by Maciej
  12736. * Misc/WebIconDatabase.m: Pruned unused method
  12737. * Misc/WebIconDatabasePrivate.h: Ditto
  12738. 2006-08-15 Maciej Stachowiak <mjs@apple.com>
  12739. Reviewed by Adele (preliminary version) and later by Kevin.
  12740. - remove most WebKit dependencies from WebMainResourceLoader.
  12741. * Loader/WebFrameLoader.h:
  12742. * Loader/WebFrameLoader.m:
  12743. (-[WebFrameLoader cannotShowMIMETypeForURL:]):
  12744. (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
  12745. (-[WebFrameLoader isHostedByObjectElement]):
  12746. (-[WebFrameLoader isLoadingMainFrame]):
  12747. (+[WebFrameLoader _canShowMIMEType:]):
  12748. (+[WebFrameLoader _representationExistsForURLScheme:]):
  12749. (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
  12750. * Loader/WebMainResourceLoader.h:
  12751. * Loader/WebMainResourceLoader.m:
  12752. (-[WebMainResourceLoader interruptForPolicyChangeError]):
  12753. (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
  12754. (isCaseInsensitiveEqual):
  12755. (shouldLoadAsEmptyDocument):
  12756. (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
  12757. (-[WebMainResourceLoader didReceiveResponse:]):
  12758. (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
  12759. (-[WebMainResourceLoader didFinishLoading]):
  12760. (-[WebMainResourceLoader loadWithRequestNow:]):
  12761. (-[WebMainResourceLoader loadWithRequest:]):
  12762. 2006-08-15 Tim Omernick <timo@apple.com>
  12763. Reviewed by Kevin Decker.
  12764. * Plugins/WebNetscapePluginPackage.m:
  12765. (-[WebNetscapePluginPackage _unloadWithShutdown:]):
  12766. Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
  12767. 32-bit!
  12768. * Plugins/WebPluginDatabase.m:
  12769. (-[WebPluginDatabase _scanForNewPlugins]):
  12770. Use +[NSMutableSet set] here.
  12771. 2006-08-15 Tim Omernick <timo@apple.com>
  12772. Reviewed by Darin Adler.
  12773. <http://bugs.webkit.org/show_bug.cgi?id=8980>
  12774. ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
  12775. <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
  12776. * Plugins/WebPluginDatabase.h:
  12777. * Plugins/WebPluginDatabase.m:
  12778. (+[WebPluginDatabase installedPlugins]):
  12779. Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
  12780. (-[WebPluginDatabase plugins]):
  12781. 'plugins' is now a dictionary.
  12782. (-[WebPluginDatabase close]):
  12783. Call new -_removePlugin: method.
  12784. (-[WebPluginDatabase refresh]):
  12785. Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
  12786. (-[WebPluginDatabase _plugInPaths]):
  12787. No changes; just moved in file.
  12788. (-[WebPluginDatabase _addPlugin:]):
  12789. New method. Refactored from -refresh. Adds a plug-in to the database.
  12790. (-[WebPluginDatabase _removePlugin:]):
  12791. New method. Refactored from -refresh. Remove a plug-in from the database.
  12792. (-[WebPluginDatabase _scanForNewPlugins]):
  12793. New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
  12794. (-[WebPluginDatabase _applicationWillTerminate]):
  12795. New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
  12796. removed from the DB (and unloaded if necessary).
  12797. * Plugins/WebBasePluginPackage.h:
  12798. * Plugins/WebBasePluginPackage.m:
  12799. (-[WebBasePluginPackage initWithPath:]):
  12800. Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
  12801. avoids some stat()s and allocations during the plug-in refresh process.
  12802. (-[WebBasePluginPackage isLoaded]):
  12803. Removed.
  12804. (-[WebBasePluginPackage load]):
  12805. Base class for plug-in packages now always loads "successfully".
  12806. (-[WebBasePluginPackage dealloc]):
  12807. Removed this assertion. The base plug-in package class has no concept of
  12808. "unloading".
  12809. (-[WebBasePluginPackage finalize]):
  12810. ditto.
  12811. (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
  12812. Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
  12813. packages can be "unloaded".
  12814. * Plugins/WebNetscapePluginPackage.h:
  12815. * Plugins/WebNetscapePluginPackage.m:
  12816. (-[WebNetscapePluginPackage _unloadWithShutdown:]):
  12817. Combined old -unload and -unloadWithoutShutdown methods into this new one.
  12818. (-[WebNetscapePluginPackage initWithPath:]):
  12819. Call new unload method.
  12820. (-[WebNetscapePluginPackage load]):
  12821. ditto
  12822. (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
  12823. ditto
  12824. (-[WebNetscapePluginPackage open]):
  12825. New method. Called when a plug-in instance starts running.
  12826. (-[WebNetscapePluginPackage close]):
  12827. New method. Called when a plug-in instance stops running. When all plug-in instances
  12828. close the plug-in package, and the plug-in package is removed from the database, the plug-in
  12829. is unloaded.
  12830. * Plugins/WebPluginPackage.m:
  12831. (-[WebPluginPackage initWithPath:]):
  12832. (-[WebPluginPackage load]):
  12833. Made this a bit more efficient by checking if the bundle is already loaded.
  12834. (-[WebBasePluginPackage unload]):
  12835. Removed.
  12836. (-[WebBasePluginPackage isLoaded]):
  12837. Removed.
  12838. * Plugins/WebBaseNetscapePluginView.m:
  12839. (-[WebBaseNetscapePluginView start]):
  12840. Open the plug-in package so it remains loaded while this instance uses it.
  12841. (-[WebBaseNetscapePluginView stop]):
  12842. Close the plug-in package when the plug-in instance is stopped.
  12843. * Plugins/WebBaseNetscapePluginStream.m:
  12844. (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
  12845. This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
  12846. been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
  12847. (-[WebBaseNetscapePluginStream _destroyStream]):
  12848. ditto
  12849. (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
  12850. ditto
  12851. (-[WebBaseNetscapePluginStream _deliverData]):
  12852. ditto
  12853. 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
  12854. Reviewed by Tim H.
  12855. Build fix: DWARF and -gfull are incompatible with symbol separation.
  12856. * WebKit.xcodeproj/project.pbxproj:
  12857. 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
  12858. Reviewed by Tim H.
  12859. http://bugs.webkit.org/show_bug.cgi?id=10394
  12860. Bug 10394: WebKit Release and Production configurations should enable dead code stripping
  12861. * WebKit.xcodeproj/project.pbxproj:
  12862. 2006-08-15 Maciej Stachowiak <mjs@apple.com>
  12863. Reviewed by Anders.
  12864. - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
  12865. * Loader/WebNetscapePlugInStreamLoader.h:
  12866. * Loader/WebNetscapePlugInStreamLoader.m:
  12867. (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
  12868. * Loader/WebPlugInStreamLoaderDelegate.h: Added.
  12869. * Plugins/WebBaseNetscapePluginStream.h:
  12870. * Plugins/WebNetscapePluginStream.m:
  12871. (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
  12872. * WebKit.xcodeproj/project.pbxproj:
  12873. 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
  12874. Reviewed by Tim H.
  12875. http://bugs.webkit.org/show_bug.cgi?id=10384
  12876. Bug 10384: Switch to DWARF for Release configuration
  12877. * WebKit.xcodeproj/project.pbxproj:
  12878. 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
  12879. Reviewed by Darin.
  12880. - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
  12881. WebUnarchivingState archivedResourceForURL: doesn't work
  12882. * WebView/WebUnarchivingState.m:
  12883. (-[WebUnarchivingState archivedResourceForURL:]):
  12884. Fixed to get objects from the archived resources dictionary using
  12885. the URL as a string instead of as the URL itself (as this is how
  12886. the data is put into the dictionary).
  12887. 2006-08-14 Maciej Stachowiak <mjs@apple.com>
  12888. Reviewed by Beth.
  12889. - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
  12890. depends on WebNetscapePluginStream).
  12891. * Loader/WebFrameLoader.h:
  12892. * Loader/WebFrameLoader.m:
  12893. (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
  12894. * Loader/WebNetscapePlugInStreamLoader.h:
  12895. * Loader/WebNetscapePlugInStreamLoader.m:
  12896. (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
  12897. (-[WebNetscapePlugInStreamLoader releaseResources]):
  12898. (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
  12899. * Plugins/WebNetscapePluginStream.m:
  12900. (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
  12901. 2006-08-14 Maciej Stachowiak <mjs@apple.com>
  12902. Reviewed by Tim Omernick.
  12903. - fixed REGRESSION: crash when leaving youtube page while movie is still loading
  12904. http://bugs.webkit.org/show_bug.cgi?id=10398
  12905. * Loader/WebNetscapePlugInStreamLoader.m:
  12906. (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
  12907. (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
  12908. otherwise, when we try to clean up later, we won't have the right context.
  12909. 2006-08-14 David Hyatt <hyatt@apple.com>
  12910. Fix for Radar bug 4478840, Safari should not reduce null events sent to
  12911. plug-ins in windows that are inactive but visible.
  12912. With this fix you can view videos in visible background windows on YouTube
  12913. (for example) and not see any drop in frame rate.
  12914. Reviewed by timo
  12915. * Plugins/WebBaseNetscapePluginView.m:
  12916. (-[WebBaseNetscapePluginView restartNullEvents]):
  12917. 2006-08-14 Maciej Stachowiak <mjs@apple.com>
  12918. Reviewed by Brady.
  12919. - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
  12920. * Loader/WebFormDataStream.m:
  12921. (formCanRead):
  12922. (formEventCallback):
  12923. (webSetHTTPBody):
  12924. * WebCoreSupport/WebSystemInterface.m:
  12925. (InitWebCoreSystemInterface):
  12926. 2006-08-14 Maciej Stachowiak <mjs@apple.com>
  12927. Rubber stamped by Brady.
  12928. - move WebFormDataStream from WebView to Loader
  12929. * WebKit.xcodeproj/project.pbxproj:
  12930. * WebView/WebFormDataStream.h: Removed.
  12931. * WebView/WebFormDataStream.m: Removed.
  12932. 2006-08-13 Maciej Stachowiak <mjs@apple.com>
  12933. Reviewed by Brady.
  12934. - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
  12935. (WebFormDataStream will be moved into the Loader directory soon)
  12936. * Loader/WebFrameLoader.h:
  12937. * Loader/WebFrameLoader.m:
  12938. (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  12939. * Loader/WebSubresourceLoader.m:
  12940. (isConditionalRequest):
  12941. (hasCaseInsensitivePrefix):
  12942. (isFileURLString):
  12943. (setHTTPReferrer):
  12944. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
  12945. 2006-08-13 Brady Eidson <beidson@apple.com>
  12946. Reviewed by Maciej
  12947. Relocated the WebIconLoaders
  12948. * Misc/WebIconLoader.h: Moved to Loader/
  12949. * Misc/WebIconLoader.m: Moved to Loader/
  12950. * WebKit.xcodeproj/project.pbxproj:
  12951. 2006-08-13 Maciej Stachowiak <mjs@apple.com>
  12952. Reviewed by Beth.
  12953. - removed non-Loader WebKit dependencies from WebDataProtocol for
  12954. real (whoops) and fix some typos.
  12955. * Loader/WebDataProtocol.m:
  12956. (isCaseInsensitiveEqual): Added.
  12957. (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
  12958. (-[WebDataProtocol startLoading]): ditto
  12959. * Loader/WebFrameLoader.m:
  12960. (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
  12961. (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
  12962. 2006-08-13 Brady Eidson <beidson@apple.com>
  12963. Reviewed by Maciej
  12964. The way of detecting a failed icon load before was to try and construct
  12965. an image from the icon and if that image construction failed, mark the icon
  12966. as missing.
  12967. A much more efficient way is to check for an error response. We'll still
  12968. check for invalid image data, but most servers will correctly return an HTTP
  12969. error on a missing icon.
  12970. * Misc/WebIconLoader.m:
  12971. (-[WebIconLoader didFinishLoading]): Added check for http error response
  12972. 2006-08-13 Maciej Stachowiak <mjs@apple.com>
  12973. Reviewed by Darin.
  12974. - remove all non-Loader dependencies from WebLoader
  12975. As part of this I moved WebDataProtocol to the loader directory
  12976. and removed dependencies on the rest of WebKit from that too.
  12977. * Loader/WebFrameLoader.h:
  12978. * Loader/WebFrameLoader.m:
  12979. (-[WebFrameLoader setDefersCallbacks:]):
  12980. (-[WebFrameLoader stopLoading]):
  12981. (-[WebFrameLoader cancelledErrorWithRequest:]):
  12982. (-[WebFrameLoader clearArchivedResources]):
  12983. (-[WebFrameLoader deliverArchivedResources]):
  12984. (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
  12985. (isCaseSensitiveEqual):
  12986. (-[WebFrameLoader _canUseResourceForRequest:]):
  12987. (-[WebFrameLoader _canUseResourceWithResponse:]):
  12988. (-[WebFrameLoader pendingArchivedResources]):
  12989. (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
  12990. (-[WebFrameLoader archiveLoadPendingForLoader:]):
  12991. (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
  12992. * Loader/WebLoader.h:
  12993. * Loader/WebLoader.m:
  12994. (-[NSURLProtocol releaseResources]):
  12995. (-[NSURLProtocol loadWithRequest:]):
  12996. (-[NSURLProtocol setDefersCallbacks:]):
  12997. (-[NSURLProtocol addData:allAtOnce:]):
  12998. (-[NSURLProtocol resourceData]):
  12999. (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
  13000. (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
  13001. (-[NSURLProtocol cancelWithError:]):
  13002. (-[NSURLProtocol cancelledError]):
  13003. * Loader/WebMainResourceLoader.m:
  13004. (-[WebMainResourceLoader addData:allAtOnce:]):
  13005. (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
  13006. * Loader/WebNetscapePlugInStreamLoader.m:
  13007. (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
  13008. * Loader/WebSubresourceLoader.m:
  13009. (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
  13010. * WebKit.xcodeproj/project.pbxproj:
  13011. * WebView/WebDataProtocol.h: Removed.
  13012. * WebView/WebDataProtocol.m: Removed.
  13013. 2006-08-11 Tim Omernick <timo@apple.com>
  13014. Reviewed by Darin.
  13015. <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
  13016. <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
  13017. * Plugins/WebBaseNetscapePluginView.m:
  13018. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  13019. Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
  13020. generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
  13021. have already been drawn and are not expected to be redrawn in the same update.
  13022. 2006-08-11 Brady Eidson <beidson@apple.com>
  13023. Reviewed by John, Timo, Adele, and Darin
  13024. In addition to a few style/good-practice cleanups, this patch will convert the old icon database
  13025. format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
  13026. place). After the conversion, it will delete all traces of the old format to free the unneeded space
  13027. * Misc/WebIconDatabase.m:
  13028. (-[WebIconDatabase init]):
  13029. (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
  13030. (-[WebIconDatabase _createFileDatabase]):
  13031. (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
  13032. (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
  13033. 2006-08-11 Tim Omernick <timo@apple.com>
  13034. Reviewed by John Sullivan.
  13035. Needed for <rdar://problem/4678070>.
  13036. * Plugins/WebBaseNetscapePluginView.m:
  13037. (-[WebBaseNetscapePluginView sendEvent:]):
  13038. Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
  13039. purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
  13040. 2006-08-11 John Sullivan <sullivan@apple.com>
  13041. Reviewed by Darin
  13042. - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
  13043. to avoid printing an almost-empty page
  13044. * WebView/WebHTMLView.m:
  13045. (-[NSArray knowsPageRange:]):
  13046. If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
  13047. out of ... the air), then we adjust the scale factor slightly and check whether this reduces
  13048. the page count and thus eliminates the orphan.
  13049. 2006-08-07 Brady Eidson <beidson@apple.com>
  13050. Reviewed by Anders and John
  13051. * Misc/WebIconDatabase.m:
  13052. (-[WebIconDatabase init]):
  13053. (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
  13054. (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
  13055. (-[WebIconDatabase _setIconURL:forURL:]):
  13056. (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
  13057. (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
  13058. * Misc/WebIconDatabasePrivate.h:
  13059. * Misc/WebIconLoader.m:
  13060. (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
  13061. (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
  13062. outside of the context of a page load
  13063. * WebCoreSupport/WebIconDatabaseBridge.h: Added.
  13064. * WebCoreSupport/WebIconDatabaseBridge.m: Added.
  13065. (-[WebIconDatabaseBridge init]):
  13066. (-[WebIconDatabaseBridge dealloc]):
  13067. (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
  13068. of the context of any page load
  13069. (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
  13070. (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
  13071. (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
  13072. (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
  13073. so both sides of the bridge get the WebKit version
  13074. * WebKit.xcodeproj/project.pbxproj: Added some files
  13075. * WebView/WebDataSource.m:
  13076. (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
  13077. a load even if we already have it
  13078. 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
  13079. Reviewed by Darin.
  13080. - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
  13081. Make WebCore (and friends) compile with -Wshorten-64-to-32
  13082. * Adds 'f' to float literals where expecting a float.
  13083. * Use ceilf() instead of ceil() when assigning to a float.
  13084. * Adds explicit casts where OK.
  13085. NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
  13086. because there are still a few places where no error handling
  13087. is in place. The flag can be added as soon as those are worked
  13088. out.
  13089. * Misc/WebNSControlExtras.m:
  13090. (-[NSControl sizeToFitAndAdjustWindowHeight]):
  13091. * Misc/WebNSImageExtras.m:
  13092. (-[NSImage _web_scaleToMaxSize:]):
  13093. * Misc/WebNSViewExtras.h:
  13094. * Misc/WebNSViewExtras.m:
  13095. * Plugins/WebBaseNetscapePluginView.m:
  13096. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  13097. (-[WebBaseNetscapePluginView drawRect:]):
  13098. * WebCoreSupport/WebFrameBridge.m:
  13099. (-[WebFrameBridge expiresTimeForResponse:]):
  13100. * WebInspector/WebInspector.m:
  13101. (-[NSWindow window]):
  13102. (-[WebInspector treeViewScrollTo:]):
  13103. (-[WebInspector _updateSystemColors]):
  13104. (-[WebInspector webView:plugInViewWithArguments:]):
  13105. (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
  13106. * WebInspector/WebInspectorOutlineView.m:
  13107. (-[WebInspectorOutlineView _highlightRow:clipRect:]):
  13108. * WebInspector/WebNodeHighlight.m:
  13109. (-[WebNodeHighlight initWithBounds:andRects:forView:]):
  13110. * WebInspector/WebNodeHighlightView.m:
  13111. (-[WebNodeHighlightView roundedRect:withRadius:]):
  13112. (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
  13113. (-[WebNodeHighlightView drawRect:]):
  13114. * WebView/WebFrame.m:
  13115. (-[WebFrame _opened]):
  13116. * WebView/WebFrameView.m:
  13117. (-[WebFrameView initWithFrame:]):
  13118. * WebView/WebHTMLView.m:
  13119. (-[WebHTMLView _dragImageForLinkElement:]):
  13120. (-[WebHTMLView _web_setPrintingModeRecursive]):
  13121. (-[WebHTMLView _web_clearPrintingModeRecursive]):
  13122. (-[NSArray layout]):
  13123. (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
  13124. (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
  13125. (-[NSArray _scaleFactorForPrintOperation:]):
  13126. (-[NSArray setPageWidthForPrinting:]):
  13127. (-[NSArray _endPrintMode]):
  13128. (-[NSArray knowsPageRange:]):
  13129. (-[NSArray _originalFontA]):
  13130. (-[NSArray _originalFontB]):
  13131. (-[WebTextCompleteController _buildUI]):
  13132. (-[WebTextCompleteController _placePopupWindow:]):
  13133. * WebView/WebPDFView.m:
  13134. (-[WebPDFView _makeTextStandardSize:]):
  13135. (-[WebPDFView selectionImageForcingWhiteText:]):
  13136. (-[PDFPrefUpdatingProxy forwardInvocation:]):
  13137. * WebView/WebPreferences.m:
  13138. (-[WebPreferences _floatValueForKey:]):
  13139. * WebView/WebView.m:
  13140. (-[WebView makeTextSmaller:]):
  13141. (-[WebView canMakeTextStandardSize]):
  13142. (-[WebView makeTextStandardSize:]):
  13143. 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
  13144. Reviewed by NOBODY (build fix).
  13145. * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
  13146. * WebView/WebFrameLoader.h: REALLY moved to Loader/
  13147. * WebView/WebFrameLoader.m: REALLY moved to Loader/
  13148. * WebView/WebLoader.h: REALLY moved to Loader/
  13149. * WebView/WebLoader.m: REALLY moved to Loader/
  13150. * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
  13151. 2006-08-03 Maciej Stachowiak <mjs@apple.com>
  13152. Reviewed by Darin.
  13153. - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
  13154. (next step is to remove dependencies on the rest of WebKit from this directory)
  13155. * Loader/WebNetscapePlugInStreamLoader.h: Added.
  13156. * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
  13157. (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
  13158. (-[WebNetscapePlugInStreamLoader isDone]):
  13159. (-[WebNetscapePlugInStreamLoader releaseResources]):
  13160. (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
  13161. (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
  13162. (-[WebNetscapePlugInStreamLoader didFinishLoading]):
  13163. (-[WebNetscapePlugInStreamLoader didFailWithError:]):
  13164. (-[WebNetscapePlugInStreamLoader cancelWithError:]):
  13165. * Plugins/WebNetscapePluginStream.m:
  13166. * WebKit.xcodeproj/project.pbxproj:
  13167. * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
  13168. * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
  13169. * WebView/WebFrameLoader.h: Moved to Loader/
  13170. * WebView/WebFrameLoader.m: Moved to Loader/
  13171. * WebView/WebLoader.h: Moved to Loader/
  13172. * WebView/WebLoader.m: Moved to Loader/
  13173. * WebView/WebMainResourceLoader.h: Moved to Loader/
  13174. * WebView/WebMainResourceLoader.m: Moved to Loader/
  13175. 2006-08-03 Tim Omernick <timo@apple.com>
  13176. Reviewed by Kevin Decker.
  13177. <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
  13178. * Plugins/WebBaseNetscapePluginView.m:
  13179. (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
  13180. Fixed color component swapping so that it works on both x86 and PPC. See comments.
  13181. 2006-08-03 Brady Eidson <beidson@apple.com>
  13182. Reviewed by Tim Hatcher's rubber stamp
  13183. Fixed Intel build break caused by weinig's -W change in r15781
  13184. * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
  13185. 2006-08-03 Maciej Stachowiak <mjs@apple.com>
  13186. Reviewed by John.
  13187. - fixed problem that could cause assertion failures in Safari
  13188. * Plugins/WebBaseNetscapePluginView.m:
  13189. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
  13190. allow a plugin to start new loads once its document is no longer the one actively loading.
  13191. 2006-08-03 Maciej Stachowiak <mjs@apple.com>
  13192. Reviewed by John.
  13193. - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
  13194. WebFrameLoader instead.
  13195. For now this is done by forarding all the calls.
  13196. * Misc/WebIconLoader.m:
  13197. (-[WebIconLoader didFinishLoading]):
  13198. * Plugins/WebNetscapePluginStream.m:
  13199. (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
  13200. (-[WebNetscapePluginStream start]):
  13201. (-[WebNetscapePlugInStreamLoader didFinishLoading]):
  13202. (-[WebNetscapePlugInStreamLoader didFailWithError:]):
  13203. (-[WebNetscapePlugInStreamLoader cancelWithError:]):
  13204. * WebCoreSupport/WebFrameBridge.m:
  13205. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  13206. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  13207. * WebCoreSupport/WebSubresourceLoader.h:
  13208. * WebCoreSupport/WebSubresourceLoader.m:
  13209. (-[WebSubresourceLoader initWithLoader:frameLoader:]):
  13210. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
  13211. (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
  13212. (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
  13213. (-[WebSubresourceLoader receivedError:]):
  13214. (-[WebSubresourceLoader signalFinish]):
  13215. (-[WebSubresourceLoader didFailWithError:]):
  13216. (-[WebSubresourceLoader cancel]):
  13217. * WebKit.xcodeproj/project.pbxproj:
  13218. * WebView/WebDataSource.m:
  13219. (-[WebDataSource _updateLoading]):
  13220. (-[WebDataSource textEncodingName]):
  13221. (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
  13222. * WebView/WebFrameLoader.h:
  13223. * WebView/WebFrameLoader.m:
  13224. (-[WebFrameLoader loadIconWithRequest:]):
  13225. (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
  13226. (-[WebFrameLoader clearIconLoader]):
  13227. (-[WebFrameLoader commitProvisionalLoad]):
  13228. (-[WebFrameLoader activeDataSource]):
  13229. (-[WebFrameLoader _archivedSubresourceForURL:]):
  13230. (-[WebFrameLoader _defersCallbacks]):
  13231. (-[WebFrameLoader _identifierForInitialRequest:]):
  13232. (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
  13233. (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
  13234. (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
  13235. (-[WebFrameLoader _didReceiveResponse:forResource:]):
  13236. (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
  13237. (-[WebFrameLoader _didFinishLoadingForResource:]):
  13238. (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
  13239. (-[WebFrameLoader _privateBrowsingEnabled]):
  13240. (-[WebFrameLoader _addPlugInStreamLoader:]):
  13241. (-[WebFrameLoader _removePlugInStreamLoader:]):
  13242. (-[WebFrameLoader _finishedLoadingResource]):
  13243. (-[WebFrameLoader _receivedError:]):
  13244. (-[WebFrameLoader _addSubresourceLoader:]):
  13245. (-[WebFrameLoader _removeSubresourceLoader:]):
  13246. (-[WebFrameLoader _originalRequest]):
  13247. (-[WebFrameLoader webFrame]):
  13248. (-[WebFrameLoader _receivedMainResourceError:complete:]):
  13249. (-[WebFrameLoader initialRequest]):
  13250. (-[WebFrameLoader _receivedData:]):
  13251. (-[WebFrameLoader _setRequest:]):
  13252. (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
  13253. (-[WebFrameLoader _handleFallbackContent]):
  13254. (-[WebFrameLoader _isStopping]):
  13255. (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
  13256. (-[WebFrameLoader _setupForReplaceByMIMEType:]):
  13257. (-[WebFrameLoader _setResponse:]):
  13258. (-[WebFrameLoader _mainReceivedError:complete:]):
  13259. (-[WebFrameLoader _finishedLoading]):
  13260. (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
  13261. (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
  13262. (-[WebFrameLoader _URL]):
  13263. * WebView/WebLoader.h:
  13264. * WebView/WebLoader.m:
  13265. (-[NSURLProtocol releaseResources]):
  13266. (-[NSURLProtocol loadWithRequest:]):
  13267. (-[NSURLProtocol setFrameLoader:]):
  13268. (-[NSURLProtocol frameLoader]):
  13269. (-[NSURLProtocol willSendRequest:redirectResponse:]):
  13270. (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
  13271. (-[NSURLProtocol didCancelAuthenticationChallenge:]):
  13272. (-[NSURLProtocol didReceiveResponse:]):
  13273. (-[NSURLProtocol didReceiveData:lengthReceived:]):
  13274. (-[NSURLProtocol signalFinish]):
  13275. (-[NSURLProtocol didFailWithError:]):
  13276. (-[NSURLProtocol willCacheResponse:]):
  13277. (-[NSURLProtocol cancelWithError:]):
  13278. * WebView/WebMainResourceLoader.h:
  13279. * WebView/WebMainResourceLoader.m:
  13280. (-[WebMainResourceLoader initWithFrameLoader:]):
  13281. (-[WebMainResourceLoader receivedError:]):
  13282. (-[WebMainResourceLoader cancelWithError:]):
  13283. (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
  13284. (-[WebMainResourceLoader addData:]):
  13285. (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
  13286. (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
  13287. (-[WebMainResourceLoader continueAfterContentPolicy:]):
  13288. (-[WebMainResourceLoader checkContentPolicyForResponse:]):
  13289. (-[WebMainResourceLoader didReceiveResponse:]):
  13290. (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
  13291. (-[WebMainResourceLoader didFinishLoading]):
  13292. (-[WebMainResourceLoader didFailWithError:]):
  13293. (-[WebMainResourceLoader loadWithRequestNow:]):
  13294. 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
  13295. Reviewed by Darin.
  13296. - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
  13297. Make WebCore compile with -Wundef
  13298. * Adds -Wundef flag to Xcode project
  13299. * Converts #ifs to #ifdef and #ifndefs where needed.
  13300. * Carbon/CarbonUtils.m:
  13301. * Carbon/CarbonWindowAdapter.m:
  13302. * Carbon/HIViewAdapter.m:
  13303. (+[NSView bindHIViewToNSView:nsView:]):
  13304. * Carbon/HIWebView.m:
  13305. (HIWebViewEventHandler):
  13306. * Misc/WebFileDatabase.m:
  13307. (UniqueFilePathForKey):
  13308. * Misc/WebNSWindowExtras.m:
  13309. (swizzleInstanceMethod):
  13310. * Misc/WebTypesInternal.h:
  13311. * Plugins/WebNetscapeDeprecatedFunctions.c:
  13312. * Plugins/WebNetscapeDeprecatedFunctions.h:
  13313. * Plugins/WebNetscapePluginPackage.h:
  13314. * Plugins/WebNetscapePluginPackage.m:
  13315. (-[WebNetscapePluginPackage unloadWithoutShutdown]):
  13316. (-[WebNetscapePluginPackage load]):
  13317. * WebKit.xcodeproj/project.pbxproj:
  13318. 2006-08-03 Darin Adler <darin@apple.com>
  13319. Reviewed by Eric Seidel.
  13320. - fix storage leak
  13321. * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
  13322. 2006-08-02 Timothy Hatcher <timothy@apple.com>
  13323. Rubber stamped by Maciej.
  13324. Adding back resultsWithXpathQuery, removed by Darin's earlier change.
  13325. This function is called from ObjC, but not used from JavaScript.
  13326. * WebInspector/webInspector/inspector.js:
  13327. 2006-08-02 Timothy Hatcher <timothy@apple.com>
  13328. Reviewed by Darin.
  13329. Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
  13330. http://bugs.webkit.org/show_bug.cgi?id=10200
  13331. Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
  13332. suspendProcessIfPaused was being called during a DO call into Safari.
  13333. Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
  13334. up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
  13335. where you call a function from the console and expect it to break on a breakpoint in them, but
  13336. this appears to never have worked even without this change. When that is figured out we can
  13337. reconsider a better solution to reentrancy. I have filed that as bug 10214.
  13338. I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
  13339. we don't use "onway void" as the return type for the callbacks. Note: using onway void for
  13340. the listener callbacks causes bad synchronization issues and obscure crashes.
  13341. * DefaultDelegates/WebScriptDebugServer.m:
  13342. (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
  13343. (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
  13344. (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
  13345. (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
  13346. (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
  13347. (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
  13348. (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
  13349. * DefaultDelegates/WebScriptDebugServerPrivate.h:
  13350. 2006-08-02 Maciej Stachowiak <mjs@apple.com>
  13351. Reviewed by John.
  13352. - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
  13353. - add more assertions for safety
  13354. * WebView/WebDataSource.m:
  13355. (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
  13356. (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
  13357. at a time when this data source is the one that might be loading for a frame.
  13358. (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
  13359. * WebView/WebFrameLoader.m:
  13360. (-[WebFrameLoader isLoadingPlugIns]): New helper method.
  13361. (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
  13362. at stopLoading time.
  13363. 2006-08-02 Adam Roben <aroben@apple.com>
  13364. Reviewed by Brady.
  13365. - Rename TransferJob to ResourceLoader (this file was forgotten in an
  13366. earlier change by Maciej)
  13367. * COM/WebView.cpp:
  13368. 2006-08-01 Maciej Stachowiak <mjs@apple.com>
  13369. Reviewed by Adele.
  13370. - Change things around so WebFrameLoader tracks the main and provisional data source,
  13371. as well as the frame load state, pulling much code out of WebFrame along the way.
  13372. The most significant aspects of this change are:
  13373. - management of WebDataSources and WebFrameState was moved into WebFrameLoader
  13374. - there is now just one WebFrameLoader shared between the primary and provisional data source
  13375. * WebKit.xcodeproj/project.pbxproj:
  13376. * WebView/WebDataSource.m:
  13377. (-[WebDataSourcePrivate dealloc]):
  13378. (-[WebDataSource _updateLoading]):
  13379. (-[WebDataSource _loadIcon]):
  13380. (-[WebDataSource _setPrimaryLoadComplete:]):
  13381. (-[WebDataSource _stopLoading]):
  13382. (-[WebDataSource _startLoading]):
  13383. (-[WebDataSource _addSubresourceLoader:]):
  13384. (-[WebDataSource _removeSubresourceLoader:]):
  13385. (-[WebDataSource _addPlugInStreamLoader:]):
  13386. (-[WebDataSource _removePlugInStreamLoader:]):
  13387. (-[WebDataSource _defersCallbacksChanged]):
  13388. (-[WebDataSource _stopLoadingWithError:]):
  13389. (-[WebDataSource _revertToProvisionalState]):
  13390. (-[WebDataSource _setupForReplaceByMIMEType:]):
  13391. (-[WebDataSource initWithRequest:]):
  13392. (-[WebDataSource data]):
  13393. (-[WebDataSource isLoading]):
  13394. * WebView/WebFrame.m:
  13395. (-[WebFramePrivate init]):
  13396. (-[WebFramePrivate dealloc]):
  13397. (-[WebFrame _closeOldDataSources]):
  13398. (-[WebFrame _detachFromParent]):
  13399. (-[WebFrame _makeDocumentView]):
  13400. (-[WebFrame _receivedMainResourceError:]):
  13401. (-[WebFrame _transitionToCommitted:]):
  13402. (+[WebFrame _timeOfLastCompletedLoad]):
  13403. (-[WebFrame _checkLoadCompleteForThisFrame]):
  13404. (-[WebFrame _loadItem:withLoadType:]):
  13405. (-[WebFrame _continueAfterWillSubmitForm:]):
  13406. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
  13407. (-[WebFrame _initWithWebFrameView:webView:bridge:]):
  13408. (-[WebFrame _frameLoader]):
  13409. (-[WebFrame _provisionalLoadStarted]):
  13410. (-[WebFrame _prepareForDataSourceReplacement]):
  13411. (-[WebFrame _frameLoadCompleted]):
  13412. (-[WebFrame provisionalDataSource]):
  13413. (-[WebFrame dataSource]):
  13414. (-[WebFrame stopLoading]):
  13415. * WebView/WebFrameInternal.h:
  13416. * WebView/WebFrameLoader.h:
  13417. * WebView/WebFrameLoader.m:
  13418. (-[WebFrameLoader initWithWebFrame:]):
  13419. (-[WebFrameLoader dealloc]):
  13420. (-[WebFrameLoader dataSource]):
  13421. (-[WebFrameLoader _setDataSource:]):
  13422. (-[WebFrameLoader clearDataSource]):
  13423. (-[WebFrameLoader provisionalDataSource]):
  13424. (-[WebFrameLoader _setProvisionalDataSource:]):
  13425. (-[WebFrameLoader _clearProvisionalDataSource]):
  13426. (-[WebFrameLoader state]):
  13427. (+[WebFrameLoader timeOfLastCompletedLoad]):
  13428. (-[WebFrameLoader _setState:]):
  13429. (-[WebFrameLoader clearProvisionalLoad]):
  13430. (-[WebFrameLoader markLoadComplete]):
  13431. (-[WebFrameLoader commitProvisionalLoad]):
  13432. (-[WebFrameLoader stopLoading]):
  13433. (-[WebFrameLoader startLoading]):
  13434. (-[WebFrameLoader startProvisionalLoad:]):
  13435. (-[WebFrameLoader setupForReplace]):
  13436. * WebView/WebFramePrivate.h:
  13437. 2006-08-01 Tim Omernick <timo@apple.com>
  13438. Reviewed by John Sullivan.
  13439. <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
  13440. I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
  13441. NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
  13442. situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
  13443. * Plugins/WebBaseNetscapePluginView.h:
  13444. * Plugins/WebBaseNetscapePluginView.m:
  13445. (-[WebBaseNetscapePluginView sendEvent:]):
  13446. Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
  13447. (-[WebBaseNetscapePluginView setWindowIfNecessary]):
  13448. ditto
  13449. (-[WebBaseNetscapePluginView start]):
  13450. It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
  13451. problems). Added a sanity-checking assertion.
  13452. (-[WebBaseNetscapePluginView stop]):
  13453. If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
  13454. may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
  13455. plugin-function returns.
  13456. (-[WebBaseNetscapePluginView pluginScriptableObject]):
  13457. Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
  13458. (-[WebBaseNetscapePluginView willCallPlugInFunction]):
  13459. Increment plug-in function call depth.
  13460. (-[WebBaseNetscapePluginView didCallPlugInFunction]):
  13461. Decrement plug-in function call depth. Stop if we're supposed to stop.
  13462. (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
  13463. Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
  13464. (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
  13465. ditto
  13466. (-[WebBaseNetscapePluginView _printedPluginBitmap]):
  13467. ditto
  13468. * Plugins/WebBaseNetscapePluginStream.m:
  13469. (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
  13470. Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
  13471. (-[WebBaseNetscapePluginStream _destroyStream]):
  13472. ditto
  13473. (-[WebBaseNetscapePluginStream _deliverData]):
  13474. ditto
  13475. 2006-08-01 Maciej Stachowiak <mjs@apple.com>
  13476. - fix build after last change
  13477. * WebView/WebFrame.m:
  13478. (-[WebFrame _checkLoadCompleteForThisFrame]):
  13479. 2006-08-01 Maciej Stachowiak <mjs@apple.com>
  13480. Reviewed by Beth.
  13481. - revert part of my last fix that broke the Safari bookmarks view
  13482. * WebView/WebFrame.m:
  13483. (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
  13484. 2006-08-01 Tim Omernick <timo@apple.com>
  13485. Reviewed by Anders.
  13486. Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
  13487. * Plugins/WebNetscapePluginEmbeddedView.m:
  13488. (-[WebNetscapePluginEmbeddedView redeliverStream]):
  13489. Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
  13490. which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
  13491. the plug-in is destroyed.
  13492. 2006-08-01 Maciej Stachowiak <mjs@apple.com>
  13493. Reviewed by Geoff.
  13494. - some refactoring in preparation for moving more stuff to WebFrameLoader.
  13495. * WebView/WebFrame.m:
  13496. (-[WebFrame _clearDataSource]):
  13497. (-[WebFrame _detachFromParent]):
  13498. (-[WebFrame _commitProvisionalLoad]):
  13499. (-[WebFrame _transitionToCommitted:]):
  13500. (-[WebFrame _clearProvisionalLoad]):
  13501. (-[WebFrame _markLoadComplete]):
  13502. (-[WebFrame _checkLoadCompleteForThisFrame]):
  13503. (-[WebFrame _startProvisionalLoad:]):
  13504. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
  13505. (-[WebFrame stopLoading]):
  13506. 2006-07-31 Maciej Stachowiak <mjs@apple.com>
  13507. Reviewed by Tim Hatcher.
  13508. - renamed TransferJob to ResourceLoader in WebCore
  13509. * COM/WebFrame.cpp:
  13510. (WebFrame::loadDataSource):
  13511. (WebFrame::receivedRedirect):
  13512. (WebFrame::receivedResponse):
  13513. (WebFrame::receivedData):
  13514. (WebFrame::receivedAllData):
  13515. (WebFrame::setStatusText):
  13516. * COM/WebFrame.h:
  13517. 2006-07-31 Darin Adler <darin@apple.com>
  13518. Reviewed by Maciej.
  13519. - omit the margin and padding boxes for display types where they are ignored
  13520. - use CSS instead of properties for table spacing and padding as suggested by Tim H.
  13521. * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
  13522. Added rules that hide the margin and padding boxes (borders and all but the center cell)
  13523. when the hide attribute is present.
  13524. * WebInspector/webInspector/inspector.html: Added classes for the rules above.
  13525. Removed cellpadding and cellspacing attributes.
  13526. * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
  13527. padding boxes based on the display type.
  13528. 2006-07-31 Duncan Wilcox <duncan@mclink.it>
  13529. Reviewed by Darin.
  13530. Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
  13531. "REGRESSION: delegate returning no menu elements crashes webkit"
  13532. No automated test, because there's no way to programmatically open a context menu,
  13533. no manual test because there's no way to customize the context menu delegate.
  13534. * WebView/WebView.m:
  13535. (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
  13536. some menu items before accessing the first one.
  13537. 2006-07-31 Timothy Hatcher <timothy@apple.com>
  13538. Reviewed by John.
  13539. <rdar://problem/4658194> REGRESSION: "Search in Google"
  13540. and "Search in Spotlight" fail to work on text selected in a frame
  13541. Use selectedFrame to get the frame with the text selection.
  13542. * WebView/WebView.m:
  13543. (-[WebView _searchWithGoogleFromMenu:]):
  13544. (-[WebView _searchWithSpotlightFromMenu:]):
  13545. 2006-07-31 Darin Adler <darin@apple.com>
  13546. Reviewed by Tim Hatcher.
  13547. - http://bugs.webkit.org/show_bug.cgi?id=10168
  13548. add a first cut at a Metrics pane to the inspector
  13549. * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
  13550. * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
  13551. the table to show the box model.
  13552. * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
  13553. "title" attributes so we have more tooltips. Removed the optional parameter to
  13554. getComputedStyle.
  13555. 2006-07-31 Anders Carlsson <acarlsson@apple.com>
  13556. Reviewed by John.
  13557. * Plugins/WebPluginDatabase.m:
  13558. (-[WebPluginDatabase refresh]):
  13559. Create a mutable set instead of a mutable array.
  13560. 2006-07-30 Darin Adler <darin@apple.com>
  13561. Reviewed by Tim Hatcher.
  13562. * WebInspector/webInspector/inspector.js: Fix bug where a null property value
  13563. leads to an empty style pane.
  13564. 2006-07-30 Darin Adler <darin@apple.com>
  13565. Reviewed by Tim Hatcher.
  13566. - http://bugs.webkit.org/show_bug.cgi?id=10163
  13567. some improvements for the inspector
  13568. * WebInspector/WebInspector.m:
  13569. (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
  13570. to be garbage collected if used in an application with GC enabled.
  13571. (-[WebInspector dealloc]): Removed a call to a non-existent close method.
  13572. (-[WebInspector window]): Added a custom WebPreferences object and called
  13573. setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
  13574. Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
  13575. the inspector scrolls when dragging.
  13576. * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
  13577. and JavaScript properties. More of the style should be shared between the panes,
  13578. but this should be OK for now.
  13579. * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
  13580. properties pane. Needs work, but better than nothing.
  13581. * WebInspector/webInspector/inspector.js: Lots of improvements:
  13582. - Omit "typical" property values from computed style display, making it much shorter.
  13583. - Use the words "black", "white", and "transparent" when appropriate for color values.
  13584. - Refactored the loaded() function to get rid of repetitive scrollbar setup.
  13585. - Added a new scrollarea for the JavaScript properties pane.
  13586. - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
  13587. - Removed unused resultsWithXpathQuery().
  13588. - Use [] instead of "new Array()" and {} instead of "new Object()".
  13589. - Removed unused xpathForNode().
  13590. - Changed style pane to display the style for a text node's parent instead of saying
  13591. it can't display the style for text.
  13592. - Fixed regression I caused a while back by checking the length of a computed style
  13593. and not trying to display anything if its length is 0. Before this change and the
  13594. corresponding change in WebCore, we'd see a complete list of all styles with the
  13595. empty string as the value for each one.
  13596. - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
  13597. to make it easier to understand it's a boolean.
  13598. - Fixed an error in the code that does !important scanning where it was trying to
  13599. do a special case for computed style, but was checking the computed style flag on
  13600. the wrong object.
  13601. - Added populateStyleListItem() function to factor out things in common between the
  13602. items in the top level list and the expanded tree for shorthand properties.
  13603. - Added code to make a color swatch next to the textual representation for any
  13604. property that contains a color.
  13605. - Implemented a first cut at a simple JavaScript properties pane.
  13606. 2006-07-29 Darin Adler <darin@apple.com>
  13607. - Removed tabs from these source files that still had them.
  13608. We don't use them; that way source files look fine in editors
  13609. that have tabs set to 8 spaces or to 4 spaces.
  13610. - Removed allow-tabs Subversion property from the files too.
  13611. * DefaultDelegates/WebDefaultPolicyDelegate.m:
  13612. * History/WebHistory.m:
  13613. * Misc/WebDownload.m:
  13614. * Misc/WebIconDatabase.m:
  13615. * Misc/WebKitErrors.m:
  13616. * Misc/WebKitLogging.m:
  13617. * Misc/WebNSDataExtras.m:
  13618. * Misc/WebNSFileManagerExtras.m:
  13619. * Panels/WebPanelAuthenticationHandler.m:
  13620. * Plugins/WebBaseNetscapePluginView.m:
  13621. * Plugins/npfunctions.h:
  13622. * WebCoreSupport/WebSubresourceLoader.m:
  13623. * WebView/WebMainResourceLoader.m:
  13624. * WebView/WebView.h:
  13625. * WebView/WebView.m:
  13626. 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
  13627. Reviewed by Darin.
  13628. - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
  13629. Adopt pedantic changes from the Unity project to improve
  13630. cross-compiler compatibility
  13631. Changes include:
  13632. * Adding missing newline to the end of the file.
  13633. * Turning on gcc warning for missing newline at the end of a source file
  13634. (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
  13635. * WebKit.xcodeproj/project.pbxproj:
  13636. * WebView/WebResourcePrivate.h:
  13637. 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
  13638. Reviewed by John Sullivan.
  13639. - fix http://bugs.webkit.org/show_bug.cgi?id=9984
  13640. ASSERTION FAILURE: _private->mouseDownEvent != nil
  13641. (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
  13642. * WebView/WebHTMLView.m:
  13643. (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
  13644. to accept nil.
  13645. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  13646. Copy the hit HTMLView's mouse down event to the top HTMLView.
  13647. (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
  13648. (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
  13649. before returning.
  13650. (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
  13651. mouseDown: (and used during dragging).
  13652. (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
  13653. the top HTMLView.
  13654. 2006-07-28 Timothy Hatcher <timothy@apple.com>
  13655. Reviewed by John.
  13656. <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
  13657. The context menu code should be checking isContentEditable
  13658. on DOMNode not just DOMElement. This is needed because DOMText
  13659. will be the node class of any text that is clicked.
  13660. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  13661. (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
  13662. 2006-07-25 Geoffrey Garen <ggaren@apple.com>
  13663. Reviewed by Maciej, inspired by John.
  13664. - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to
  13665. repeated requests for non-existent favicon
  13666. An optimization to avoid serializing favicon data for missing icons had stomped an
  13667. optimization to avoid GETing a missing favicon more than once. The solution
  13668. is a happy marriage of optimizations, ensuring that we *retain* the missing
  13669. favicon's "i am missing" data without posting a notification or saving it to disk.
  13670. * Misc/WebIconDatabase.m:
  13671. (-[WebIconDatabase _setIconURL:forURL:]):
  13672. 2006-07-25 David Harrison <harrison@apple.com>
  13673. Reviewed by timo and Darin.
  13674. <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
  13675. * WebKit.xcodeproj/project.pbxproj:
  13676. * WebView/WebView.m:
  13677. (-[WebView replaceSelectionWithNode:]):
  13678. (-[WebView _replaceSelectionWithNode:matchStyle:]):
  13679. * WebView/WebViewPrivate.h:
  13680. (-[WebView _replaceSelectionWithNode:matchStyle::]):
  13681. New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
  13682. 2006-07-24 Darin Adler <darin@apple.com>
  13683. Reviewed by Adele and Justin.
  13684. - update for change to require context when creating fragments from text
  13685. (needed to handle whitespace properly)
  13686. * WebView/WebHTMLView.m:
  13687. (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
  13688. Added context parameter, pass through to bridge.
  13689. (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
  13690. when calling above method.
  13691. (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
  13692. calling above method.
  13693. 2006-07-24 Maciej Stachowiak <mjs@apple.com>
  13694. Reviewed by Geoff.
  13695. - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
  13696. (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
  13697. * WebView/WebLoader.h:
  13698. * WebView/WebMainResourceLoader.m:
  13699. (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
  13700. order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
  13701. 2006-07-24 Anders Carlsson <acarlsson@apple.com>
  13702. Reviewed by Tim O.
  13703. * Misc/WebIconDatabase.m:
  13704. (-[WebIconDatabase removeAllIcons]):
  13705. Make an array of the keys and iterate through it to avoid modifying the
  13706. dictionary while enumerating it.
  13707. 2006-07-24 Timothy Hatcher <timothy@apple.com>
  13708. Reviewed by John and Darin.
  13709. <rdar://problem/4634290> Cannot selectively install a custom
  13710. scroller that differs from the default Aqua frame size.
  13711. Adds two new private methods to WebFrameView that allows
  13712. an application to set a custom scroll view class. This is needed
  13713. if the application wants to install a custom scroller that is wider
  13714. than the typical scroller, because NSScrollView does the content
  13715. rect calculations in a class method (ignoring custom scrollers.)
  13716. The _setScrollViewClass method requires the class to be a subclass
  13717. of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
  13718. A new scroll view of the specified class will then replace the previous
  13719. one without the need to reload content of the frame.
  13720. * WebView/WebFrameView.m:
  13721. (-[WebFrameView _customScrollViewClass]):
  13722. (-[WebFrameView _setCustomScrollViewClass:]):
  13723. * WebView/WebFrameViewPrivate.h:
  13724. 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
  13725. Reviewed by Darin.
  13726. Fix http://bugs.webkit.org/show_bug.cgi?id=10009
  13727. REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
  13728. * WebView/WebView.m:
  13729. (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
  13730. make sure to initialize the plugin database, in case a plugin wants to handle it.
  13731. 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
  13732. Reviewed by Maciej.
  13733. Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
  13734. http://bugs.webkit.org/show_bug.cgi?id=9686
  13735. WebKit portion of the fix.
  13736. * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
  13737. (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
  13738. * DefaultDelegates/WebScriptDebugServer.h:
  13739. * DefaultDelegates/WebScriptDebugServer.m:
  13740. (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
  13741. listeners that an exception has been raised.
  13742. * WebView/WebScriptDebugDelegate.h:
  13743. * WebView/WebScriptDebugDelegate.m:
  13744. (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
  13745. WebScriptDebugServer.
  13746. 2006-07-23 Adele Peterson <adele@apple.com>
  13747. Reviewed by Darin.
  13748. - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
  13749. * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
  13750. needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>). Since we know about
  13751. the dirty rect, we don't actually need to check needsDisplay.
  13752. 2006-07-22 Timothy Hatcher <timothy@apple.com>
  13753. Rolling out r15572.
  13754. Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
  13755. http://bugs.webkit.org/show_bug.cgi?id=10062
  13756. 2006-07-21 Timothy Hatcher <timothy@apple.com>
  13757. Reviewed by Maciej.
  13758. <rdar://problem/4609195> Help Viewer loads empty window
  13759. (not getting didFailLoadingWithError: callback)
  13760. Call super's didFailWithError before _receivedMainResourceError
  13761. because _receivedMainResourceError will cause the datasource's
  13762. frame to be set to nil before the didFailLoadingWithError delegate
  13763. callback is sent. (This order is needed now that WebDataSource does
  13764. not hold on to the WebView; it uses the WebFrame to get to the WebView.
  13765. If the WebFrame is nil we can't get to the WebView's resource load delegate.)
  13766. * WebView/WebMainResourceLoader.m:
  13767. (-[WebMainResourceLoader receivedError:]):
  13768. 2006-07-22 Timothy Hatcher <timothy@apple.com>
  13769. Reviewed by Adele.
  13770. <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu
  13771. Show the editing context menu if the WebView is editible.
  13772. The original change only checked if the DOM element was editable,
  13773. and isContentEditable returns NO if entire WebView is editable.
  13774. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  13775. (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
  13776. 2006-07-21 Timothy Hatcher <timothy@apple.com>
  13777. Reviewed by Maciej.
  13778. <rdar://problem/4609195> Help Viewer loads empty window
  13779. (not getting didFailLoadingWithError: callback)
  13780. Call super's didFailWithError before _receivedMainResourceError
  13781. because _receivedMainResourceError will cause the datasource's
  13782. frame to be set to nil before the didFailLoadingWithError delegate
  13783. callback is sent. (This order is needed now that WebDataSource does
  13784. not hold on to the WebView; it uses the WebFrame to get to the WebView.
  13785. If the WebFrame is nil we can't get to the WebView's resource load delegate.)
  13786. * WebView/WebMainResourceLoader.m:
  13787. (-[WebMainResourceLoader receivedError:]):
  13788. === Safari-521.20 ===
  13789. 2006-07-21 Timothy Hatcher <timothy@apple.com>
  13790. Reviewed by John.
  13791. <rdar://problem/4607572> REGRESSION (521.10.1 - 521.13): most context menu items missing when a form field is focused (common on google.com) (9680)
  13792. Do not use _isEditable call since that only checks if the current
  13793. selection or frame is editible. We now check if the currently clicked element
  13794. is a content editible area, a textarea, an isindex or an input element that
  13795. return YES to _isTextField.
  13796. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  13797. (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
  13798. 2006-07-20 John Sullivan <sullivan@apple.com>
  13799. Reviewed by Maciej
  13800. - WebKit part of fix for:
  13801. <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
  13802. closing tabs after clicking in a web page
  13803. * WebCoreSupport/WebFrameBridge.m:
  13804. (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
  13805. renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
  13806. * WebView/WebHTMLViewInternal.h:
  13807. * WebView/WebHTMLView.m:
  13808. (-[WebTextCompleteController dealloc]):
  13809. updated for name change
  13810. (-[NSArray _setMouseDownEvent:]):
  13811. Now only retains the first responder if it's a textView, since that's the only case that the only client
  13812. actually cares about. This avoids a reference cycle caused by retaining self. This is the only substantive
  13813. part of the patch; all the rest is just renaming for clarity, and comments.
  13814. (-[NSArray mouseDown:]):
  13815. updated for name change
  13816. (-[WebHTMLView _textViewWasFirstResponderAtMouseDownTime:]):
  13817. renamed to be more specific (formerly _wasFirstResponderAtMouseDownTime:)
  13818. 2006-07-19 Tim Omernick <timo@apple.com>
  13819. Reviewed by Darin.
  13820. <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or other WebPreferences changes)
  13821. * Plugins/WebBaseNetscapePluginView.m:
  13822. (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
  13823. Stop the plug-in when it is removed from its superview. It is not sufficient to do this in -viewWillMoveToWindow:nil, because
  13824. the WebView might still has a hostWindow at that point, which prevents the plug-in from being destroyed.
  13825. There is no need to start the plug-in when moving into a superview. -viewDidMoveToWindow takes care of that.
  13826. === Safari-521.19 ===
  13827. 2006-07-17 Tim Omernick <timo@apple.com>
  13828. Reviewed by Maciej.
  13829. <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
  13830. by script
  13831. * WebView/WebViewPrivate.h:
  13832. * WebView/WebView.m:
  13833. (-[WebView setProhibitsMainFrameScrolling:]):
  13834. New method. Prohibits scrolling in the WebView's main frame. Used to "lock" a WebView to a specific
  13835. scroll position.
  13836. 2006-07-17 Timothy Hatcher <timothy@apple.com>
  13837. Reviewed by Darin.
  13838. <rdar://problem/4635311> REGRESSION: WebKit should call windowScriptObjectAvailable before attaching the script debugger
  13839. * WebCoreSupport/WebFrameBridge.m:
  13840. (-[WebFrameBridge windowObjectCleared]):
  13841. 2006-07-17 Timothy Hatcher <timothy@apple.com>
  13842. Reviewed by Maciej.
  13843. <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
  13844. Copy WebScriptObject.h from WebCore's private headers, not JavaScriptCore.
  13845. * WebKit.xcodeproj/project.pbxproj:
  13846. 2006-07-17 John Sullivan <sullivan@apple.com>
  13847. Reviewed by Tim Omernick.
  13848. - fixed <rdar://problem/4604366> Orange Find highlight displays text in wrong size on PDF pages
  13849. if they're not at "actual size"
  13850. To match WebHTMLView, I made the methods that return attributed strings take the view's scale
  13851. factor into account.
  13852. * WebView/WebPDFView.m:
  13853. (-[WebPDFView _scaledAttributedString:]):
  13854. new helper method, takes an attributed string and returns one that's scaled by the view's
  13855. current scale factor
  13856. (-[WebPDFView attributedString]):
  13857. pass result through _scaledAttributedString:
  13858. (-[WebPDFView selectedAttributedString]):
  13859. ditto
  13860. 2006-07-17 Justin Garcia <justin.garcia@apple.com>
  13861. Reviewed by levi
  13862. Rolled the first fix for:
  13863. <http://bugs.webkit.org/show_bug.cgi?id=9642>
  13864. GMail Editor: Operations that use drop down menus blow away the selection
  13865. back in and removed the call to _clearSelectionInOtherFrames from
  13866. -[WebHTMLView becomeFirstResponder] to fix the bug.
  13867. * WebView/WebHTMLView.m:
  13868. (-[NSArray maintainsInactiveSelection]):
  13869. (-[NSArray becomeFirstResponder]):
  13870. * WebView/WebView.m:
  13871. (-[WebView maintainsInactiveSelection]):
  13872. 2006-07-15 Darin Adler <darin@apple.com>
  13873. Reviewed by John Sullivan.
  13874. - fix http://bugs.webkit.org/show_bug.cgi?id=9928
  13875. REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
  13876. * WebView/WebHTMLView.m:
  13877. (-[WebHTMLView _documentRange]): Moved into WebHTMLViewFileInternal category.
  13878. (-[WebHTMLView selectionRect]): Moved into WebDocumentPrivateProtocols category.
  13879. (-[WebHTMLView selectionView]): Ditto.
  13880. (-[WebHTMLView selectionImageForcingWhiteText:]): Ditto.
  13881. (-[WebHTMLView selectionImageRect]): Ditto.
  13882. (-[WebHTMLView pasteboardTypesForSelection]): Ditto.
  13883. (-[WebHTMLView selectAll]): Ditto.
  13884. (-[WebHTMLView deselectAll]): Ditto.
  13885. (-[WebHTMLView string]): Ditto.
  13886. (-[WebHTMLView _attributeStringFromDOMRange:]): Ditto.
  13887. (-[WebHTMLView attributedString]): Ditto.
  13888. (-[WebHTMLView selectedString]): Ditto.
  13889. (-[WebHTMLView selectedAttributedString]): Ditto.
  13890. (-[WebHTMLView supportsTextEncoding]): Ditto.
  13891. (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Moved into WebDocumentInternalProtocols.
  13892. (-[WebHTMLView _isMoveDrag]): Ditto.
  13893. (-[WebHTMLView _isNSColorDrag:]): Ditto.
  13894. (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
  13895. (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
  13896. (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
  13897. (-[WebHTMLView elementAtPoint:]): Ditto.
  13898. (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
  13899. * WebKit.xcodeproj/project.pbxproj: Let Xcode 2.3 do its thing.
  13900. === Safari-521.17 ===
  13901. 2006-07-14 Timothy Hatcher <timothy@apple.com>
  13902. Rolling out this fix from r15358 since it isn't resolved.
  13903. 2006-07-11 Justin Garcia <justin.garcia@apple.com>
  13904. Reviewed by levi & thatcher
  13905. <http://bugs.webkit.org/show_bug.cgi?id=9642>
  13906. GMail Editor: Operations that use drop down menus blow away the selection
  13907. * WebView/WebHTMLView.m:
  13908. (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
  13909. when resigning as first responder if the selection is editable
  13910. or if the WebView tells us to.
  13911. * WebView/WebView.m:
  13912. (-[WebView maintainsInactiveSelection]): Just because a WebView is
  13913. editable doesn't mean selections inside subframes will be. Return
  13914. NO by default.
  13915. 2006-07-14 Timothy Hatcher <timothy@apple.com>
  13916. <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
  13917. Build fix with the new GCC. Removes forward declarations of protocols.
  13918. * Misc/WebSearchableTextView.h:
  13919. * WebCoreSupport/WebSubresourceLoader.h:
  13920. * WebKit.xcodeproj/project.pbxproj:
  13921. * WebView/WebDocumentInternal.h:
  13922. * WebView/WebDocumentPrivate.h:
  13923. * WebView/WebHTMLView.h:
  13924. * WebView/WebPDFView.h:
  13925. * WebView/WebScriptDebugDelegatePrivate.h:
  13926. 2006-06-28 Darin Adler <darin@apple.com>
  13927. Reviewed by Adele.
  13928. - fix http://bugs.webkit.org/show_bug.cgi?id=9625
  13929. <rdar://problem/4604703>
  13930. REGRESSION: Focus not removed from password field after ctrl-click in text field
  13931. * WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]): Set handlingMouseDownEvent to
  13932. YES while calling sendContextMenuEvent: on the bridge.
  13933. 2006-07-14 Timothy Hatcher <timothy@apple.com>
  13934. Reviewed by Maciej.
  13935. Moved JavaScriptCore to be a public framework.
  13936. * WebKit.xcodeproj/project.pbxproj:
  13937. 2006-07-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
  13938. Reviewed by Darin.
  13939. - fix http://bugs.webkit.org/show_bug.cgi?id=9795
  13940. REGRESSION: Crash in [WebHTMLView(WebPrivate)
  13941. _updateMouseoverWithEvent:]
  13942. and http://bugs.webkit.org/show_bug.cgi?id=9850
  13943. REGRESSION: Assertion failure (SHOULD NEVER BE REACHED) in -
  13944. [WebHTMLView(WebPrivate) removeTrackingRect:]
  13945. * WebView/WebHTMLView.m:
  13946. (-[WebHTMLView _updateMouseoverWithEvent:]): Return immediately if
  13947. the view has already been closed.
  13948. 2006-07-13 David Harrison <harrison@apple.com>
  13949. Reviewed by Justin and Levi.
  13950. <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
  13951. * Tests:
  13952. editing/deleting/delete-by-word-001.html
  13953. editing/deleting/delete-by-word-002.html
  13954. * WebView/WebHTMLView.m:
  13955. (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
  13956. 2006-07-13 Timothy Hatcher <timothy@apple.com>
  13957. Rolling out this earlier change (r15378) now that it is fixed on AGL's end.
  13958. Fixes <rdar://problem/4624865> Restore 64-bit OpenGL plug-in support once AGL is 64-bit
  13959. <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
  13960. * Plugins/WebBaseNetscapePluginView.h:
  13961. * Plugins/WebBaseNetscapePluginView.m:
  13962. 2006-07-13 Timothy Hatcher <timothy@apple.com>
  13963. Reviewed by Darin.
  13964. <rdar://problem/4616920> REGRESSION: tabbing in mail moves focus
  13965. to next control instead of inserting a tab space.
  13966. Change editible WebView's tabKeyCyclesThroughElements to NO only
  13967. if the setTabKeyCyclesThroughElements SPI wasn't called.
  13968. * WebView/WebView.m:
  13969. (-[WebView setEditable:]):
  13970. 2006-07-12 Anders Carlsson <acarlsson@apple.com>
  13971. Reviewed by Darin.
  13972. http://bugs.webkit.org/show_bug.cgi?id=9624
  13973. REGRESSION: After ctrl-clicking in a EMPTY input or textarea field, the contextual menu shows "Search in Google" and "Search in Spotlight" as active menu items
  13974. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  13975. (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
  13976. Don't create Dictionary, Spotlight or Google lookup items if there's no selection.
  13977. 2006-07-12 Mark Rowe <opendarwin.org@bdash.net.nz>
  13978. Reviewed by Timothy.
  13979. http://bugs.webkit.org/show_bug.cgi?id=9868
  13980. Applications shown in Drosera's "Attach" window remain after exit
  13981. * DefaultDelegates/WebScriptDebugServer.m:
  13982. (-[WebScriptDebugServer init]): Register for NSApplicationWillTerminateNotification so we will
  13983. know when the application is being exited.
  13984. (-[WebScriptDebugServer dealloc]): Unregister notification before we are deallocated.
  13985. (-[WebScriptDebugServer applicationTerminating:]): Inform anyone listening that we are going away.
  13986. 2006-07-12 Tim Omernick <timo@apple.com>
  13987. Reviewed by Tim Hatcher.
  13988. <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
  13989. Also, fixed a LOG_ERROR() so that it uses the CGL error instead of the AGL error; Tim H missed this in his build fix
  13990. from earlier.
  13991. * Plugins/WebBaseNetscapePluginView.h:
  13992. * Plugins/WebBaseNetscapePluginView.m:
  13993. 2006-07-11 John Sullivan <sullivan@apple.com>
  13994. Reviewed by Kevin and Tim O
  13995. - added support for creating a selection image with white text
  13996. * WebView/WebDocumentPrivate.h:
  13997. added -selectionImageForcingWhiteText: and -selectionImageRect to the private
  13998. <WebDocumentSelection> protocol
  13999. * Misc/WebSearchableTextView.m:
  14000. (-[NSString selectionImageForcingWhiteText:]):
  14001. added stub for this new method to this obsolete class to satisfy the compiler
  14002. (-[NSString selectionImageRect]):
  14003. ditto
  14004. * WebView/WebHTMLView.m:
  14005. (-[WebHTMLView _selectionDraggingImage]):
  14006. now calls -selectionImageForcingWhiteText:NO instead of just -selectionImage
  14007. (-[WebHTMLView _selectionDraggingRect]):
  14008. now calls selectionImageRect, to which the implementation moved
  14009. (-[WebHTMLView selectionImageForcingWhiteText:]):
  14010. implemented this new method by calling through to new bridge method selectionImageForcingWhiteText:
  14011. (-[WebHTMLView selectionImageRect]):
  14012. implemented this new method by using existing _selectionDraggingRect implementation
  14013. * WebView/WebPDFView.m:
  14014. (-[WebPDFView selectionImageForcingWhiteText:]):
  14015. implemented by using code that was formerly in Safari
  14016. (-[WebPDFView selectionImageRect]):
  14017. implemented by returning selectionRect
  14018. 2006-07-11 Tim Omernick <timo@apple.com>
  14019. Reviewed by Geoff.
  14020. <http://bugs.webkit.org/show_bug.cgi?id=9843>:
  14021. Give Netscape plug-ins access to their own DOM element
  14022. * Plugins/WebBaseNetscapePluginView.h:
  14023. * Plugins/WebBaseNetscapePluginView.m:
  14024. (-[WebBaseNetscapePluginView dealloc]):
  14025. Release DOM element.
  14026. (-[WebBaseNetscapePluginView getVariable:value:]):
  14027. Return NPObject for plugin DOM element.
  14028. * Plugins/WebNetscapePluginEmbeddedView.h:
  14029. * Plugins/WebNetscapePluginEmbeddedView.m:
  14030. (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
  14031. Now takes a DOMElement, in much the same way that WebKit plug-in views take a DOMElement.
  14032. * WebCoreSupport/WebFrameBridge.m:
  14033. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  14034. Pass DOMElement to Netscape plug-ins.
  14035. (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
  14036. ditto
  14037. 2006-07-11 Justin Garcia <justin.garcia@apple.com>
  14038. Reviewed by levi & thatcher
  14039. <http://bugs.webkit.org/show_bug.cgi?id=9642>
  14040. GMail Editor: Operations that use drop down menus blow away the selection
  14041. * WebView/WebHTMLView.m:
  14042. (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
  14043. when resigning as first responder if the selection is editable
  14044. or if the WebView tells us to.
  14045. * WebView/WebView.m:
  14046. (-[WebView maintainsInactiveSelection]): Just because a WebView is
  14047. editable doesn't mean selections inside subframes will be. Return
  14048. NO by default.
  14049. 2006-07-11 Tim Omernick <timo@apple.com>
  14050. Reviewed by Tim Hatcher.
  14051. <rdar://problem/4622748> WebKit now uses deprecated AGL functions
  14052. * Plugins/WebBaseNetscapePluginView.m:
  14053. (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
  14054. aglSetDrawable() is deprecated in AGL 3.0. Use aglSetWindowRef() instead.
  14055. (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
  14056. aglSetOffScreen() is deprecated in AGL 3.0. Use CGLSetOffScreen(), which does the same thing.
  14057. 2006-07-11 Alexey Proskuryakov <ap@nypop.com>
  14058. Reviewed by Tim O.
  14059. - http://bugs.webkit.org/show_bug.cgi?id=7808
  14060. Assertion failure in -[WebBaseNetscapePluginStream dealloc] when requesting an invalid URL
  14061. * Plugins/WebNetscapePluginStream.m:
  14062. (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
  14063. Remove the early return when requesting an invalid (unsupported) URL.
  14064. === Safari-521.16 ===
  14065. 2006-07-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
  14066. Reviewed by John Sullivan.
  14067. - fix <rdar://problem/4621541>, aka <http://bugs.webkit.org/show_bug.cgi?id=9838>
  14068. REGRESSION (r14968-r14977): View Source doesn't work for pages from the back/forward cache
  14069. * WebView/WebDataSource.m:
  14070. (-[WebDataSource _setPrimaryLoadComplete:]): Set our data only if the frame loader is
  14071. has just loaded it (when coming from the back/forward cache, it hasn't).
  14072. 2006-07-10 Brady Eidson <beidson@apple.com>
  14073. Reviewed by Alexey
  14074. Resolved the console error messages people got from the new DB even if they didn't have it enabled
  14075. * Misc/WebIconDatabase.m:
  14076. (-[WebIconDatabase init]):
  14077. Disabled initializing the IconDatabaseBridge if user is living on the old DB
  14078. 2006-07-10 Darin Adler <darin@apple.com>
  14079. - try to fix Windows build
  14080. * COM/WebFrame.h: Qualify DeprecatedString and KURL with WebCore:: prefixes.
  14081. 2006-07-09 Darin Adler <darin@apple.com>
  14082. - try to fix Windows build
  14083. * COM/WebFrame.cpp: Rename QChar to DeprecatedChar.
  14084. 2006-07-09 Darin Adler <darin@apple.com>
  14085. - fix newlines to be consistent for all files in the COM directory
  14086. (many had mixed style) and set the EOL style to "native" on them.
  14087. * COM/*: Set properties and changed files.
  14088. 2006-07-09 Tim Omernick <timo@apple.com>
  14089. Reviewed by Maciej.
  14090. <rdar://problem/4404652> Netscape plug-in mouse events broken in HiDPI
  14091. Multiply global mouse coordinates by the window scale factor so that plug-ins can use GlobalToLocal() in HiDPI.
  14092. This fixes many bugs involving plug-in mouse event handling in HiDPI. Most notably, the Flash player will now
  14093. correctly respond to clicks.
  14094. * Plugins/WebBaseNetscapePluginView.m:
  14095. (+[WebBaseNetscapePluginView getCarbonEvent:]):
  14096. (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
  14097. 2006-07-09 Darin Adler <darin@apple.com>
  14098. Reviewed by Tim Hatcher.
  14099. - fix assertion firing in plug-in layout tests
  14100. * Plugins/WebBaseNetscapePluginView.m:
  14101. (-[WebBaseNetscapePluginView restartNullEvents]):
  14102. Don't start null events if the plug-in is not in the
  14103. started state. This happens when the plug-in moves within
  14104. its view hierarchy after it has been stopped.
  14105. 2006-07-09 Timothy Hatcher <timothy@apple.com>
  14106. Reviewed by Darin.
  14107. Bug 9820: Move new DOM API that has been through API review to public headers
  14108. http://bugs.webkit.org/show_bug.cgi?id=9820
  14109. * Misc/WebElementDictionary.m: include DOMExtensions.h
  14110. * Misc/WebNSViewExtras.m: include DOMExtensions.h
  14111. * WebKit.xcodeproj/project.pbxproj: make DOMXPath.h public
  14112. 2006-07-09 Timothy Hatcher <timothy@apple.com>
  14113. Reviewed by Kevin.
  14114. Bug 9818: move new UIDelegate API that has been through API review to public headers
  14115. http://bugs.webkit.org/show_bug.cgi?id=9818
  14116. <rdar://problem/4387541> API: Remove webView:setContentRect: & webViewContentRect: delegate methods?
  14117. The fix for 4310363 removed the only use of webViewContentRect: in our code. webView:setContentRect:
  14118. was never used to begin with. There's no harm in leaving these around in the API, but they'll cruft it up.
  14119. Also removes the never used webViewPrint: SPI that was replaced by webView:printFrameView:.
  14120. * DefaultDelegates/WebDefaultUIDelegate.m:
  14121. * WebCoreSupport/WebFrameBridge.m:
  14122. (-[WebFrameBridge print]):
  14123. * WebView/WebFrameView.h:
  14124. * WebView/WebFrameView.m:
  14125. * WebView/WebFrameViewPrivate.h:
  14126. * WebView/WebUIDelegate.h:
  14127. * WebView/WebUIDelegatePrivate.h:
  14128. 2006-07-09 Timothy Hatcher <timothy@apple.com>
  14129. Reviewed by Darin.
  14130. Bug 9814: Move new WebView API that has been through API review to public headers
  14131. http://bugs.webkit.org/show_bug.cgi?id=9814
  14132. * WebView/WebView.h:
  14133. * WebView/WebView.m:
  14134. (-[WebView close]):
  14135. (-[WebView setShouldCloseWithWindow:]):
  14136. (-[WebView shouldCloseWithWindow]):
  14137. (-[WebView selectedFrame]):
  14138. (-[WebView setMainFrameURL:]):
  14139. (-[WebView mainFrameURL]):
  14140. (-[WebView isLoading]):
  14141. (-[WebView mainFrameTitle]):
  14142. (-[WebView mainFrameIcon]):
  14143. (-[WebView mainFrameDocument]):
  14144. (-[WebView setDrawsBackground:]):
  14145. (-[WebView drawsBackground]):
  14146. (-[WebView toggleSmartInsertDelete:]):
  14147. (-[WebView toggleContinuousSpellChecking:]):
  14148. (-[WebView canMakeTextStandardSize]):
  14149. (-[WebView makeTextStandardSize:]):
  14150. (-[WebView maintainsInactiveSelection]):
  14151. * WebView/WebViewPrivate.h:
  14152. 2006-07-09 Timothy Hatcher <timothy@apple.com>
  14153. Reviewed by Maciej.
  14154. Bug 9487: The XPath section should be removed and/or moved.
  14155. http://bugs.webkit.org/show_bug.cgi?id=9487
  14156. * WebInspector/webInspector/inspector.css:
  14157. * WebInspector/webInspector/inspector.html:
  14158. * WebInspector/webInspector/inspector.js:
  14159. 2006-07-09 Anders Carlsson <acarlsson@apple.com>
  14160. Reviewed by Tim O.
  14161. * WebCoreSupport/WebSystemInterface.m:
  14162. (InitWebCoreSystemInterface):
  14163. Initialize wkPathFromFont.
  14164. 2006-07-09 Darin Adler <darin@apple.com>
  14165. - fix release build
  14166. * Plugins/WebBaseNetscapePluginView.m:
  14167. (-[WebBaseNetscapePluginView restorePortState:]): Cast inside the assertion so
  14168. that we don't have an unused variable in versions with assertions disabled.
  14169. The alternative would be to wrap the whole thing in an #if statement.
  14170. 2006-07-08 Tim Omernick <timo@apple.com>
  14171. Reviewed by John Sullivan.
  14172. * Plugins/WebBaseNetscapePluginView.h:
  14173. - Added ivars for OpenGL support. Someday it would be nice to refactor this class so
  14174. that each drawing model is encapsulated in a class; this would allow
  14175. WebBaseNetscapePluginView to make more efficient use of space, for example by not
  14176. keeping OpenGL-related ivars for Quickdraw plug-ins.
  14177. * Plugins/WebBaseNetscapePluginView.m:
  14178. - Declared a bunch of internal methods for OpenGL support (see below).
  14179. - Removed "forUpdate" from CoreGraphics port state struct; it was always set to "YES",
  14180. so I just cleaned up the silly code that used it.
  14181. - Declared OpenGL port state struct.
  14182. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  14183. - Moved a CoreGraphics-related assertion down to the big "switch" statement.
  14184. - Don't set window.type here -- according to the Netscape Plug-in API docs, the plug-in
  14185. should default to "windowed" mode, and may call NPN_SetValue() during its NPN_New() to
  14186. request that the browser use a "windowless" (offscreen) context instead.
  14187. - Moved the assertion from the top of this method here; removed a less restrictive
  14188. assertion that is now obsolete.
  14189. - Removed "forUpdate" flag from CoreGraphics port state struct.
  14190. - Fill in OpenGL port state struct. Set up the viewport appropriately for both windowed
  14191. and windowless OpenGL plug-ins. Windowed plug-ins need to have their GL viewport
  14192. transformed by the amount the plug-in is clipped; windowless plug-ins are drawn off-screen
  14193. into a surface whose geometry is never changed or clipped, so they may always draw with
  14194. a viewport origin of (0, 0).
  14195. (-[WebBaseNetscapePluginView restorePortState:]):
  14196. - Removed "forUpdate" flag from CoreGraphics port state struct.
  14197. - Restore the old OpenGL context saved by -saveAndSetNewPortStateForUpdate:.
  14198. (-[WebBaseNetscapePluginView sendEvent:]):
  14199. - Updated an assertion to also include OpenGL. To ensure that attached plug-in window movements
  14200. happen atomically with web page redisplays, we assert that the plug-in's window is set only while
  14201. the plug-in view is redrawing.
  14202. - Same deal as with the assertion; only save/set port state when redrawing the plug-in view. Plug-ins
  14203. that use the new drawing models are only allowed to draw when the web page draws. I might consider
  14204. changing this for windowed OpenGL plug-ins, since they always obscure the page content anyway.
  14205. (-[WebBaseNetscapePluginView isNewWindowEqualToOldWindow]):
  14206. - Compare new NP_GLContext structs.
  14207. (-[WebBaseNetscapePluginView updateAndSetWindow]):
  14208. - In OpenGL mode, can only set window when updating plug-in view.
  14209. (-[WebBaseNetscapePluginView setWindowIfNecessary]):
  14210. - ditto
  14211. - Updated logging for OpenGL drawing mode.
  14212. (-[WebBaseNetscapePluginView addWindowObservers]):
  14213. - No need to observe frame/bounds change notifications for this and all parent views. See -renewGState
  14214. comments below.
  14215. (-[WebBaseNetscapePluginView removeWindowObservers]):
  14216. - Don't need to remove frame/bounds observers anymore.
  14217. (-[WebBaseNetscapePluginView start]):
  14218. - Plug-ins are "windowed" by default. This is not a change from our previous behavior, but this is a
  14219. better place to set the default value as it allows the plug-in to override it later.
  14220. (-[WebBaseNetscapePluginView stop]):
  14221. - Destroy AGL context when the plug-in stops.
  14222. (-[WebBaseNetscapePluginView dealloc]):
  14223. - Assert that the AGL stuff has been cleaned up.
  14224. (-[WebBaseNetscapePluginView drawRect:]):
  14225. - If this is a windowless OpenGL plugin, blit its contents back into this view.
  14226. (-[WebBaseNetscapePluginView renewGState]):
  14227. - This method is called when the view or one of its parents is moved or resized (see comments).
  14228. (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
  14229. - Hide the AGL window if the plug-in view is about to be removed from its window.
  14230. (-[WebBaseNetscapePluginView viewHasMoved:]):
  14231. - Renamed and moved to the "Internal" category.
  14232. (-[WebBaseNetscapePluginView invalidateRegion:]):
  14233. - Style changes.
  14234. - Add support for OpenGL (uses the same region type as CoreGraphics).
  14235. (-[WebBaseNetscapePluginView getVariable:value:]):
  14236. - Style changes.
  14237. - Implemented NPNVsupportsOpenGLBool; returns YES since we now support the OpenGL drawing model.
  14238. (-[WebBaseNetscapePluginView setVariable:value:]):
  14239. - Implemented NPPVpluginWindowBool, which allows plug-ins to specify whether they should be rendered in
  14240. "windowed" or "windowless" mode. This is an older part of the Netscape Plug-in API that was never
  14241. implemented in WebKit. "Windowed" Quickdraw plug-ins do not actually reside in a separate window, and
  14242. can already do many of the same things (such as transparency) that only "windowless" plug-ins can do on
  14243. other platforms. However, we need the "windowed" vs. "windowless" distinction for OpenGL plug-ins so
  14244. that they have some way of specifying whether they should be rendered on an accelerated overlay surface,
  14245. composited into the browser window.
  14246. - Support for setting the drawing model to OpenGL.
  14247. (-[WebBaseNetscapePluginView _viewHasMoved]):
  14248. - Renamed from -viewHasMoved:, and moved down in the file.
  14249. - None of this work is necessary when the plug-in is not in a window; the plug-in's state will be properly
  14250. restored when it is moved back into a window.
  14251. - Reshape OpenGL surface window here.
  14252. (-[WebBaseNetscapePluginView _createAGLContextIfNeeded]):
  14253. - Creates the AGL context of the appropriate type (windowed/windowless).
  14254. (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
  14255. - Creates a windowed AGL context, which is an AGL context attached to a child window. This is the only way
  14256. to get true hardware acceleration.
  14257. (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
  14258. - Creates a windowless AGL context, which is an AGL context attached to an offscreen buffer. This buffer can
  14259. then be blitted back into the browser window with a different alpha, or scaled, or whatever.
  14260. (-[WebBaseNetscapePluginView _cglContext]):
  14261. - Returns the underlying CGL context from the AGL context. We give the plug-in access to the CGL context because
  14262. CGL is the more primitive of the GL drawable APIs and allows for finer control over the context.
  14263. (-[WebBaseNetscapePluginView _getAGLOffscreenBuffer:width:height:]):
  14264. - Returns the buffer allocated for the offscreen AGL context, if there is one.
  14265. (-[WebBaseNetscapePluginView _destroyAGLContext]):
  14266. - Destroys the AGL context, as well as the associated offscreen buffer or child window.
  14267. (-[WebBaseNetscapePluginView _reshapeAGLWindow]):
  14268. - Positions the AGL window over the browser window.
  14269. (-[WebBaseNetscapePluginView _hideAGLWindow]):
  14270. - Hides the AGL window.
  14271. (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
  14272. - Returns an NSImage representation of the offscreen AGL context's framebuffer. This is used to draw the offscreen
  14273. bits back into the plug-in view. This is kind of tricky because it has to convert the offscreen buffer in-place
  14274. from BGRA to RGBA so that it can be wrapped in an NSBitmapImageRep. See comments.
  14275. * WebKit.xcodeproj/project.pbxproj:
  14276. Link OpenGL and AGL.
  14277. 2006-07-09 Brady Eidson <beidson@apple.com>
  14278. Reviewed by Maciej
  14279. The ICONDEBUG flag now chooses either the new icon database or the old one
  14280. No longer any need to live side by side to compare results
  14281. * Misc/WebIconDatabase.m:
  14282. (-[NSMutableDictionary iconURLForURL:]):
  14283. (-[NSMutableDictionary retainIconForURL:]):
  14284. (-[NSMutableDictionary releaseIconForURL:]):
  14285. (-[WebIconDatabase _setHaveNoIconForIconURL:]):
  14286. (-[WebIconDatabase _setIconURL:forURL:]):
  14287. (-[WebIconDatabase _resetCachedWebPreferences:]):
  14288. 2006-07-08 Timothy Hatcher <timothy@apple.com>
  14289. Reviewed by Maciej.
  14290. Bug 5312: comments aren't available via DOM
  14291. http://bugs.webkit.org/show_bug.cgi?id=5312
  14292. Makes the Web Inspector show comment node contents.
  14293. * WebInspector/WebInspector.m:
  14294. (-[DOMNode _displayName]): return the contents of the comment
  14295. * WebInspector/webInspector/inspector.js: check for comment nodes
  14296. 2006-07-09 Alexey Proskuryakov <ap@nypop.com>
  14297. Reviewed by Darin.
  14298. - http://bugs.webkit.org/show_bug.cgi?id=9572
  14299. Add application/xhtml+xml to the Accept header
  14300. * WebView/WebFrame.m:
  14301. (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Add an Accept header
  14302. to main resource requests.
  14303. * English.lproj/StringsNotToBeLocalized.txt: Added new strings.
  14304. 2006-07-08 Darin Adler <darin@apple.com>
  14305. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  14306. (-[WebDefaultUIDelegate contextMenuItemsForElement:defaultMenuItems:]):
  14307. Removed misleading old comment.
  14308. === Safari-521.15 ===
  14309. 2006-07-07 Levi Weintraub <lweintraub@apple.com>
  14310. Reviewed by justin
  14311. Finished moving deletion selection expansion across the bridge... say that 3 times fast.
  14312. * WebView/WebHTMLView.m: Pass granularity to WebCore to handle expansion
  14313. (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
  14314. (-[WebHTMLView _deleteSelection]):
  14315. (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
  14316. (-[WebHTMLView deleteToMark:]):
  14317. 2006-07-07 Brady Eidson <beidson@apple.com>
  14318. Reviewed by John
  14319. Changed an ASSERT to a LOG_ERROR for an error that could be handled gracefully, but
  14320. whose assertion was reproducibly causing a build bot failure
  14321. * Misc/WebIconDatabase.m:
  14322. (-[WebIconDatabase _releaseIconForIconURLString:]):
  14323. 2006-07-06 Levi Weintraub <lweintraub@apple.com>
  14324. Reviewed by justin
  14325. Improved table editing
  14326. * WebCoreSupport/WebFrameBridge.m: Added method to allow WebCore to trigger
  14327. deletion editing delegate
  14328. (-[WebFrameBridge shouldDeleteSelectedDOMRange:]):
  14329. * WebView/WebHTMLView.m: Moved code that expanded a selection when the delete
  14330. key is pressed over to WebCore so we can be more intelligent about how to handle it
  14331. (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]):
  14332. (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
  14333. 2006-07-07 John Sullivan <sullivan@apple.com>
  14334. Reviewed by Tim Hatcher
  14335. - fixed <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported
  14336. * WebKit.exp:
  14337. added surprisingly missing _WebPreferencesChangedNotification, defined in
  14338. WebPreferences.h
  14339. 2006-07-06 Brady Eidson <beidson@apple.com>
  14340. Reviewed by John.
  14341. Small fix to my previous small fix that only lets the ASSERT off the hook if the DB
  14342. is closing
  14343. * Misc/WebIconDatabase.m:
  14344. (-[WebIconDatabase _releaseIconForIconURLString:]):
  14345. 2006-07-05 Brady Eidson <beidson@apple.com>
  14346. Reviewed by Maciej
  14347. Small fix that prevents an assertion from triggering if the DB is being cleaned up
  14348. (ie, the app being shut down)
  14349. * Misc/WebIconDatabase.h:
  14350. * Misc/WebIconDatabase.m:
  14351. (-[NSMutableDictionary init]):
  14352. (-[WebIconDatabase _applicationWillTerminate:]):
  14353. (-[WebIconDatabase _releaseIconForIconURLString:]):
  14354. 2006-07-05 Adele Peterson <adele@apple.com>
  14355. Reviewed by Maciej and Hyatt.
  14356. WebKit part of initial popup menu implementation.
  14357. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
  14358. Initialize WKPopupMenu.
  14359. 2006-07-05 Anders Carlsson <acarlsson@apple.com>
  14360. Reviewed by Maciej.
  14361. http://bugs.webkit.org/show_bug.cgi?id=3581
  14362. iFrames set to display:none are Missing from frames array
  14363. * WebCoreSupport/WebFrameBridge.m:
  14364. (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
  14365. (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
  14366. Modify to pass the owner element instead of the owner renderer.
  14367. * WebView/WebHTMLView.m:
  14368. (-[WebHTMLView _topHTMLView]):
  14369. Remove assertion, it's not valid anymore.
  14370. 2006-07-05 Timothy Hatcher <timothy@apple.com>
  14371. Reviewed by Harrison.
  14372. <rdar://problem/4608423> HIViewAdapter used but not defined
  14373. Adds a new export file to fix the build.
  14374. * WebKit.LP64.exp: Added.
  14375. * WebKit.xcodeproj/project.pbxproj:
  14376. 2006-07-04 Timothy Hatcher <timothy@apple.com>
  14377. Reviewed by Maciej.
  14378. Bug 9731: [Drosera] crash when trying to access the scope chain
  14379. http://bugs.webkit.org/show_bug.cgi?id=9731
  14380. Because of <rdar://problem/4608404> the WebScriptObject, _globalObj, that
  14381. WebCoreScriptDebugger holds is unprotected each time the page changes.
  14382. This causes Drosera to crash Safari when trying to access the scope chain.
  14383. We simply need to detach and re-attach the debugger when the window script
  14384. object is cleared until 4608404 is fixed. This change also attaches the
  14385. debugger before we call the windowScriptObjectAvailable: delegate method,
  14386. so the debugger is ready before anyone might use the window object.
  14387. * WebCoreSupport/WebFrameBridge.m:
  14388. (-[WebFrameBridge windowObjectCleared]):
  14389. 2006-07-04 Timothy Hatcher <timothy@apple.com>
  14390. Reviewed by Darin.
  14391. Bug 9732: [Drosera] calling removeListener to many times will cause
  14392. WebKit's listener count to underflow/wraparound
  14393. http://bugs.webkit.org/show_bug.cgi?id=9732
  14394. Adds a check to make sure the listener was in our listeners set before
  14395. decrementing the global listener count. Also checks for nil in addListner
  14396. to prevent a possible exception when adding the object to the set.
  14397. * DefaultDelegates/WebScriptDebugServer.m:
  14398. (-[WebScriptDebugServer addListener:]):
  14399. (-[WebScriptDebugServer removeListener:]):
  14400. 2006-07-04 Alexey Proskuryakov <ap@nypop.com>
  14401. Reviewed by Maciej.
  14402. - http://bugs.webkit.org/show_bug.cgi?id=8210
  14403. Conditional XMLHttpRequest gets should pass 304 responses unchanged
  14404. Test: http/tests/xmlhttprequest/cache-override.html
  14405. * Misc/WebNSURLRequestExtras.h: Added _web_isConditionalRequest
  14406. * Misc/WebNSURLRequestExtras.m:
  14407. (-[NSURLRequest _web_isConditionalRequest]):
  14408. * WebCoreSupport/WebFrameBridge.m:
  14409. (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  14410. Bypass the cache for conditional requests.
  14411. * WebCoreSupport/WebSubresourceLoader.m:
  14412. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): Ditto.
  14413. 2006-07-01 David Kilzer <ddkilzer@kilzer.net>
  14414. Reviewed by NOBODY (fixed Tim's build fix).
  14415. * WebView/WebView.m: Added back missing '/' at the beginning of the file.
  14416. 2006-07-01 Tim Omernick <timo@apple.com>
  14417. Reviewed by NOBODY (build fix)
  14418. * WebView/WebView.m:
  14419. (-[WebView _isMIMETypeRegisteredAsPlugin:]):
  14420. Changed nil to NO (typo).
  14421. === Safari-521.14 ===
  14422. 2006-06-30 Timothy Hatcher <timothy@apple.com>
  14423. Reviewed by Darin.
  14424. Only enable shouldCloseWithWindow when ObjC GC is enabled.
  14425. This maintains backwards compatibility with applications
  14426. that expect a WebView to be usable after the window closes.
  14427. * WebView/WebView.m:
  14428. (-[WebViewPrivate init]):
  14429. 2006-06-30 Timothy Hatcher <timothy@apple.com>
  14430. Reviewed by Anders.
  14431. Call _close in dealloc to ensure we cleanup for backwards
  14432. compatibility. This will safeguard and cleanup even if the
  14433. application doesn't use the new close API yet, like Mail.
  14434. * WebView/WebView.m:
  14435. (-[WebView dealloc]):
  14436. 2006-06-29 Timothy Hatcher <timothy@apple.com>
  14437. Reviewed by Darin.
  14438. <rdar://problem/4484405> WebKit leaks, improper tear-down
  14439. <rdar://problem/3694059> -[WebBackForwardList finalize] is incorrect; design change needed
  14440. <rdar://problem/3694103> -[WebFrame finalize] is incorrect; design change needed
  14441. <rdar://problem/3694104> -[WebHTMLView finalize] is incorrect; design change needed
  14442. Adds a close method to WebView, this needs to be called when the
  14443. WebView is no longer needed. To make this easier for the common cases
  14444. there is now an "auto close" on WebView that listens to the view's
  14445. parent window. If the parent window closes and the WebView has no
  14446. hostWindow then the WebView is automatically closed if autoClose is YES.
  14447. To manage WebView closing yourself call setAutoClose: and pass NO.
  14448. When a WebView closes it will tear-down and not be usable anymore.
  14449. Close will will called on various other internal objects as a part
  14450. of this, to ensure proper tear-down in GC without relying on finalize.
  14451. * History/WebBackForwardList.m:
  14452. (-[WebBackForwardList dealloc]):
  14453. (-[WebBackForwardList finalize]):
  14454. (-[WebBackForwardList _close]):
  14455. * History/WebHistoryItem.m:
  14456. (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
  14457. (+[WebHistoryItem _releaseAllPendingPageCaches]):
  14458. * History/WebHistoryItemPrivate.h:
  14459. * WebCoreSupport/WebFrameBridge.m:
  14460. (-[WebFrameBridge close]):
  14461. (-[WebFrameBridge saveDocumentToPageCache:]):
  14462. (-[WebFrameBridge canGoBackOrForward:]):
  14463. * WebView/WebFrame.m:
  14464. (-[WebFrame _detachFromParent]):
  14465. (-[WebFrame dealloc]):
  14466. (-[WebFrame finalize]):
  14467. * WebView/WebFrameView.m:
  14468. (-[WebFrameView _setWebFrame:]):
  14469. (-[WebFrameView finalize]):
  14470. * WebView/WebHTMLView.m:
  14471. (-[WebHTMLView close]):
  14472. (-[WebHTMLView dealloc]):
  14473. (-[WebHTMLView finalize]):
  14474. * WebView/WebHTMLViewInternal.h:
  14475. * WebView/WebHTMLViewPrivate.h:
  14476. * WebView/WebScriptDebugDelegate.m:
  14477. (-[WebScriptCallFrame _initWithFrame:initWithWebFrame:]):
  14478. (-[WebScriptCallFrame parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]):
  14479. (-[WebScriptCallFrame enteredFrame:sourceId:line:]):
  14480. (-[WebScriptCallFrame hitStatement:sourceId:line:]):
  14481. (-[WebScriptCallFrame leavingFrame:sourceId:line:]):
  14482. * WebView/WebScriptDebugDelegatePrivate.h:
  14483. * WebView/WebView.m:
  14484. (-[WebViewPrivate init]):
  14485. (-[WebView _close]):
  14486. (-[WebView dealloc]):
  14487. (-[WebView finalize]):
  14488. (-[WebView viewWillMoveToWindow:]):
  14489. (-[WebView _windowWillClose:]):
  14490. (-[WebView setPreferencesIdentifier:]):
  14491. (-[WebView mainFrame]):
  14492. (-[WebView setHostWindow:]):
  14493. (-[WebView searchFor:direction:caseSensitive:wrap:]):
  14494. (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]):
  14495. (-[WebView close]):
  14496. (-[WebView setAutoClose:]):
  14497. (-[WebView autoClose]):
  14498. (-[WebView _frameViewAtWindowPoint:]):
  14499. * WebView/WebViewPrivate.h:
  14500. 2006-06-29 Kevin Decker <kdecker@apple.com>
  14501. Reviewed by mjs and timo.
  14502. Fixed: <rdar://problem/4609119> handleAuthenticationFromResource was removed; needed by the Dashboard
  14503. * WebView/WebViewPrivate.h: Added handleAuthenticationFromResource back into the header. Needed by the
  14504. Dashboard, but was removed in r.14028 on 2006-04-23.
  14505. 2006-06-29 Tim Omernick <timo@apple.com>
  14506. Reviewed by Kevin Decker.
  14507. <rdar://problem/4608487> REGRESSION: reproducible crash in +[WebCoreFrameBridge supportedImageMIMETypes]
  14508. * Plugins/WebPluginDatabase.m:
  14509. (+[WebPluginDatabase setAdditionalWebPlugInPaths:]):
  14510. One might be tempted to add additionalWebPlugInPaths to the global WebPluginDatabase here.
  14511. For backward compatibility with earlier versions of the +setAdditionalWebPlugInPaths: SPI,
  14512. we need to save a copy of the additional paths and not cause a refresh of the plugin DB
  14513. at this time.
  14514. (-[WebPluginDatabase _plugInPaths]):
  14515. Include additionalWebPlugInPaths if this is the global DB.
  14516. (-[WebPluginDatabase refresh]):
  14517. Call -_plugInPaths to get the modified array of paths. This is similar to what the old code
  14518. (before we had per-WebView plugin search paths).
  14519. 2006-06-29 Tim Omernick <timo@apple.com>
  14520. Reviewed by John Sullivan.
  14521. WebHistoryItem now supports getting and setting arbitrary properties via _transientPropertyForKey: and
  14522. -_setTransientProperty:forKey:.
  14523. For now, these properties do not persist with the rest of the history data. They are intended to hold transient
  14524. per-history-item state, which is something that was until now difficult for a WebKit client app to do.
  14525. * History/WebHistoryItemPrivate.h:
  14526. * History/WebHistoryItem.m:
  14527. (-[WebHistoryItemPrivate dealloc]):
  14528. (-[WebHistoryItem _transientPropertyForKey:]):
  14529. (-[WebHistoryItem _setTransientProperty:forKey:]):
  14530. 2006-06-29 Timothy Hatcher <timothy@apple.com>
  14531. Reviewed by Harrison.
  14532. Smart insert and delete, continuous spell checking and autoscroll
  14533. can now be used for any WebView, not just editable ones. All of
  14534. these make sense for documents that might contain content editable
  14535. areas or our new text fields. Autoscroll is usefull for dragging
  14536. for file input controls also.
  14537. Added a SPI to toggle WebViews tab key behavior, tabKeyCyclesThroughElements.
  14538. WebHTMLView's _interceptEditingKeyEvent now uses WebView's
  14539. tabKeyCyclesThroughElements state to determine whether or not
  14540. to process tab key events. The idea here is that tabKeyCyclesThroughElements
  14541. will be YES when this WebView is being used in a browser, and we
  14542. desire the behavior where tab moves to the next element in tab order.
  14543. If tabKeyCyclesThroughElements is NO, it is likely that the WebView
  14544. is being embedded as the whole view, as in Mail, and tabs should input
  14545. tabs as expected in a text editor. Using Option-Tab always cycles
  14546. through elements.
  14547. * WebView/WebHTMLRepresentation.m:
  14548. (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
  14549. * WebView/WebHTMLView.m:
  14550. (-[WebHTMLView _interceptEditingKeyEvent:]):
  14551. * WebView/WebView.m:
  14552. (-[WebViewPrivate init]):
  14553. (-[WebView _autoscrollForDraggingInfo:timeDelta:]):
  14554. (-[WebView _shouldAutoscrollForDraggingInfo:]):
  14555. (-[WebView validateUserInterfaceItem:]):
  14556. (-[WebView toggleSmartInsertDelete:]):
  14557. (-[WebView toggleContinuousSpellChecking:]):
  14558. (-[WebView setTabKeyCyclesThroughElements:]):
  14559. (-[WebView tabKeyCyclesThroughElements]):
  14560. * WebView/WebViewPrivate.h:
  14561. 2006-06-29 Anders Carlsson <acarlsson@apple.com>
  14562. Reviewed by Tim O.
  14563. * WebKit.xcodeproj/project.pbxproj:
  14564. Add DOMXPath.h header.
  14565. 2006-06-28 David Hyatt <hyatt@apple.com>
  14566. Fix custom highlighting so that you can paint the entire line (and go
  14567. outside the bounds of the line).
  14568. Reviewed by harrison
  14569. * WebCoreSupport/WebFrameBridge.m:
  14570. (-[WebFrameBridge customHighlightRect:forLine:]):
  14571. (-[WebFrameBridge paintCustomHighlight:forBox:onLine:behindText:entireLine:]):
  14572. * WebKit.xcodeproj/project.pbxproj:
  14573. * WebView/WebHTMLViewPrivate.h:
  14574. 2006-06-28 Maciej Stachowiak <mjs@apple.com>
  14575. Reviewed by Anders.
  14576. - fix Frame leak on layout tests
  14577. * WebCoreSupport/WebPageBridge.m:
  14578. (-[WebPageBridge outerView]): Return WebFrameView for main frame instead
  14579. of WebView to avoid reference cycle between WebView and Page.
  14580. 2006-06-28 Timothy Hatcher <timothy@apple.com>
  14581. Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
  14582. * WebKit.xcodeproj/project.pbxproj:
  14583. 2006-06-28 Levi Weintraub <lweintraub@apple.com>
  14584. Reviewed by justin
  14585. http://bugs.webkit.org/show_bug.cgi?id=7568
  14586. Bug 7568: Implement Indent/Outdent
  14587. Added undo action strings and enum values
  14588. * English.lproj/Localizable.strings:
  14589. * WebCoreSupport/WebFrameBridge.m:
  14590. (-[WebFrameBridge nameForUndoAction:]):
  14591. 2006-06-27 Brady Eidson <beidson@apple.com>
  14592. Reviewed by Maciej
  14593. Hookup the new semi-functional SQLite icon database.
  14594. For now, it is living side-by-side with the old DB so one can compare the
  14595. two for debugging purposes. Also, it is disabled (in WebKit) by default unless you
  14596. compile with ICONDEBUG #defined.
  14597. Note: To repeat that, if you want to try the new DB, #define ICONDEBUG (WebKitPrefix.h is a good place to do it)
  14598. * Misc/WebIconDatabase.m:
  14599. (-[NSMutableDictionary iconForURL:withSize:cache:]):
  14600. (-[NSMutableDictionary iconURLForURL:]):
  14601. (-[NSMutableDictionary retainIconForURL:]):
  14602. (-[NSMutableDictionary releaseIconForURL:]):
  14603. (-[WebIconDatabase _setHaveNoIconForIconURL:]):
  14604. (-[WebIconDatabase _setIconURL:forURL:]):
  14605. (-[WebIconDatabase _hasIconForIconURL:]):
  14606. (-[WebIconDatabase _resetCachedWebPreferences:]):
  14607. * Misc/WebIconLoader.m:
  14608. (-[WebIconLoader didFinishLoading]):
  14609. * WebKit.xcodeproj/project.pbxproj:
  14610. 2006-06-26 David Hyatt <hyatt@apple.com>
  14611. Fix for 9538, support syntax highlighting for HTML source.
  14612. Reviewed by darin
  14613. * WebKit.xcodeproj/project.pbxproj:
  14614. * WebView/WebView.m:
  14615. (-[WebView _setInViewSourceMode:]):
  14616. (-[WebView _inViewSourceMode]):
  14617. * WebView/WebViewPrivate.h:
  14618. 2006-06-25 Timothy Hatcher <timothy@apple.com>
  14619. Reviewed by Darin.
  14620. Bug 9574: Drosera should show inline scripts within the original HTML
  14621. http://bugs.webkit.org/show_bug.cgi?id=9574
  14622. * Adds a new version of the didParseSource delegate callback with base line number.
  14623. * Adds a new delegate callback for when a script fails to parse.
  14624. * These new callbacks use NSURLs for the url parameter.
  14625. * Adds a new script listener callback to notify when the main resource loads.
  14626. * Adds a WebScriptErrorDomian and other keys for use with NSError.
  14627. * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
  14628. (-[WebDefaultScriptDebugDelegate webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
  14629. (-[WebDefaultScriptDebugDelegate webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
  14630. * DefaultDelegates/WebScriptDebugServer.h:
  14631. * DefaultDelegates/WebScriptDebugServer.m:
  14632. (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
  14633. (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
  14634. (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
  14635. * DefaultDelegates/WebScriptDebugServerPrivate.h:
  14636. * WebKit.exp:
  14637. * WebView/WebDataSource.m:
  14638. (-[WebDataSource _setPrimaryLoadComplete:]):
  14639. * WebView/WebScriptDebugDelegate.h:
  14640. * WebView/WebScriptDebugDelegate.m:
  14641. (-[WebScriptCallFrame parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]):
  14642. 2006-06-24 David Kilzer <ddkilzer@kilzer.net>
  14643. Reviewed by Timothy.
  14644. * Info.plist: Fixed copyright to include 2003-2006.
  14645. 2006-06-24 Alexey Proskuryakov <ap@nypop.com>
  14646. Reviewed by Darin.
  14647. - http://bugs.webkit.org/show_bug.cgi?id=9418
  14648. WebKit will not build when Space exists in path
  14649. * WebKit.xcodeproj/project.pbxproj: Enclose search paths in quotes.
  14650. 2006-06-23 Tim Omernick <timo@apple.com>
  14651. Reviewed by John Sullivan.
  14652. * Plugins/WebBaseNetscapePluginView.m:
  14653. (-[WebBaseNetscapePluginView sendEvent:]):
  14654. Fixed a bug I found in the CoreGraphics drawing model that was preventing certain types of
  14655. events from being dispatched to the plugin, unless the plugin was being updated. The check
  14656. for portState was only required to call -setWindowIfNecessary, not required for the entire
  14657. event dispatch.
  14658. Also, don't paint the green debug rect unless this is a QuickDraw plugin. Otherwise the
  14659. current QD port is not set, and the green rect fills the entire screen. Pretty awesome
  14660. looking, but not intended behavior.
  14661. (-[WebBaseNetscapePluginView setWindowIfNecessary]):
  14662. Improved the logging here to include the NPWindow's width and height.
  14663. 2006-06-23 Timothy Hatcher <timothy@apple.com>
  14664. Reviewed by Tim O.
  14665. Adds back SPI that Mail is still depending on.
  14666. * WebView/WebDataSource.m:
  14667. (-[WebDataSource _addSubframeArchives:]):
  14668. * WebView/WebDataSourcePrivate.h:
  14669. === WebKit-521.13 ===
  14670. 2006-06-23 Timothy Hatcher <timothy@apple.com>
  14671. Reviewed by Geoff.
  14672. script debugger should only attach to JavaScriptCore when there are listeners
  14673. http://bugs.webkit.org/show_bug.cgi?id=9552
  14674. Attaches the debugger to all WebFrames when the first listener
  14675. is added. Detaches when the last listener is removed.
  14676. Also detach when the script debug delegate is set to nil.
  14677. * DefaultDelegates/WebScriptDebugServer.m:
  14678. (+[WebScriptDebugServer listenerCount]):
  14679. (-[WebScriptDebugServer dealloc]):
  14680. (-[WebScriptDebugServer attachScriptDebuggerToAllWebViews]):
  14681. (-[WebScriptDebugServer detachScriptDebuggerFromAllWebViews]):
  14682. (-[WebScriptDebugServer listenerConnectionDidDie:]):
  14683. (-[WebScriptDebugServer addListener:]):
  14684. (-[WebScriptDebugServer removeListener:]):
  14685. * DefaultDelegates/WebScriptDebugServerPrivate.h:
  14686. * WebCoreSupport/WebFrameBridge.m:
  14687. (-[WebFrameBridge windowObjectCleared]):
  14688. * WebView/WebFrame.m:
  14689. (-[WebFrame _attachScriptDebugger]):
  14690. (-[WebFrame _detachScriptDebugger]):
  14691. * WebView/WebFramePrivate.h:
  14692. * WebView/WebScriptDebugDelegate.m:
  14693. (-[WebScriptCallFrame parsedSource:fromURL:sourceId:]):
  14694. (-[WebScriptCallFrame enteredFrame:sourceId:line:]):
  14695. (-[WebScriptCallFrame hitStatement:sourceId:line:]):
  14696. (-[WebScriptCallFrame leavingFrame:sourceId:line:]):
  14697. * WebView/WebView.m:
  14698. (-[WebView _attachScriptDebuggerToAllFrames]):
  14699. (-[WebView _detachScriptDebuggerFromAllFrames]):
  14700. (-[WebView setScriptDebugDelegate:]):
  14701. * WebView/WebViewPrivate.h:
  14702. 2006-06-22 John Sullivan <sullivan@apple.com>
  14703. Reviewed by Tim Omernick
  14704. - added support for UIDelegate to be notified of scrolling in any WebHTMLView
  14705. - cleaned up recently-added UIDelegate code
  14706. * WebView/WebUIDelegatePrivate.h:
  14707. declared webView:didScrollDocumentInFrameView: method
  14708. * DefaultDelegates/WebDefaultUIDelegate.m:
  14709. (-[NSApplication webView:didDrawRect:]):
  14710. provide default (empty) implementation of this recently-added method, so the
  14711. DelegateForwarder mechanism will work for it
  14712. (-[NSApplication webView:didScrollDocumentInFrameView:]):
  14713. same thing for the new method
  14714. * WebView/WebHTMLView.m:
  14715. (-[WebHTMLView _frameOrBoundsChanged]):
  14716. use _UIDelegateForwarder mechanism to notify delegate that scrolling occurred
  14717. (-[WebHTMLView drawSingleRect:]):
  14718. use _UIDelegateForwarder mechanism instead of checking respondsToSelector stuff
  14719. here (that's packaged up nicely by the forwarder mechanism)
  14720. 2006-06-22 Tim Omernick <timo@apple.com>
  14721. Reviewed by NOBODY (build fix)
  14722. * WebView/WebFrameLoader.m:
  14723. Import WebMainResourceLoader instead of using @class so that we can call WebMainResourceLoader
  14724. methods.
  14725. 2006-06-22 Tim Omernick <timo@apple.com>
  14726. Reviewed by NOBODY (build fix)
  14727. * WebView/WebFrameLoader.m:
  14728. Import JavaScriptCore/Assertions.h instead of WebKit/WebAssertions.h (which no longer exists)
  14729. 2006-06-22 Maciej Stachowiak <mjs@apple.com>
  14730. Reviewed by Adele.
  14731. - start moving loading logic to new WebFrameLoader class; move management of WebLoaders there
  14732. * Misc/WebIconLoader.h:
  14733. * Misc/WebIconLoader.m:
  14734. (-[WebIconLoader didFinishLoading]):
  14735. * WebKit.xcodeproj/project.pbxproj:
  14736. * WebView/WebDataSource.m:
  14737. (-[WebDataSourcePrivate dealloc]):
  14738. (-[WebDataSource _updateLoading]):
  14739. (-[WebDataSource _loadIcon]):
  14740. (-[WebDataSource _setPrimaryLoadComplete:]):
  14741. (-[WebDataSource _stopLoading]):
  14742. (-[WebDataSource _startLoading]):
  14743. (-[WebDataSource _addSubresourceLoader:]):
  14744. (-[WebDataSource _removeSubresourceLoader:]):
  14745. (-[WebDataSource _addPlugInStreamLoader:]):
  14746. (-[WebDataSource _removePlugInStreamLoader:]):
  14747. (-[WebDataSource _iconLoaderReceivedPageIcon:]):
  14748. (-[WebDataSource _defersCallbacksChanged]):
  14749. (-[WebDataSource _stopLoadingWithError:]):
  14750. (-[WebDataSource _setupForReplaceByMIMEType:]):
  14751. (-[WebDataSource initWithRequest:]):
  14752. (-[WebDataSource dealloc]):
  14753. (-[WebDataSource finalize]):
  14754. (-[WebDataSource data]):
  14755. (-[WebDataSource isLoading]):
  14756. * WebView/WebFrameLoader.h: Added.
  14757. * WebView/WebFrameLoader.m: Added.
  14758. (-[WebFrameLoader initWithDataSource:]):
  14759. (-[WebFrameLoader dealloc]):
  14760. (-[WebFrameLoader hasIconLoader]):
  14761. (-[WebFrameLoader loadIconWithRequest:]):
  14762. (-[WebFrameLoader stopLoadingIcon]):
  14763. (-[WebFrameLoader addPlugInStreamLoader:]):
  14764. (-[WebFrameLoader removePlugInStreamLoader:]):
  14765. (-[WebFrameLoader setDefersCallbacks:]):
  14766. (-[WebFrameLoader stopLoadingPlugIns]):
  14767. (-[WebFrameLoader isLoadingMainResource]):
  14768. (-[WebFrameLoader isLoadingSubresources]):
  14769. (-[WebFrameLoader isLoading]):
  14770. (-[WebFrameLoader stopLoadingSubresources]):
  14771. (-[WebFrameLoader addSubresourceLoader:]):
  14772. (-[WebFrameLoader removeSubresourceLoader:]):
  14773. (-[WebFrameLoader mainResourceData]):
  14774. (-[WebFrameLoader releaseMainResourceLoader]):
  14775. (-[WebFrameLoader cancelMainResourceLoad]):
  14776. (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
  14777. (-[WebFrameLoader stopLoadingWithError:]):
  14778. 2006-06-21 Brady Eidson <beidson@apple.com>
  14779. Reviewed by Maciej
  14780. The WebCoreIconDatabaseBridge was getting messages sent to it after it had been closed, resulting in a crash
  14781. on an ASSERT(). After closing the databaseBridge, we simply set it to nil so this can't happen.
  14782. anymore.
  14783. * Misc/WebIconDatabase.m:
  14784. (-[WebIconDatabase _applicationWillTerminate:]):
  14785. 2006-06-21 Tim Omernick <timo@apple.com>
  14786. Reviewed by Geoff Garen.
  14787. <rdar://problem/4564131> WebPluginDatabase setAdditionalWebPlugInPaths needs to be per WebView
  14788. Added some WebView SPI so that individual WebViews may have different plugin search paths. There are some
  14789. limitations with the approach taken here:
  14790. - JavaScript may only access the global plugin DB.
  14791. - When this SPI is in use, certain WebView methods may not give accurate results, such as +canShowMIMEType:.
  14792. - This only works for plugins referenced using the <object> or <embed> tags; plugins that reside in non-standard
  14793. file system locations may not be loaded directly into frames.
  14794. None of these issues are important to the client that needs this SPI. Rather than re-architect our entire
  14795. plugin database, I think it is better to simply accept these limitations for now.
  14796. * Plugins/WebPluginDatabase.h:
  14797. Added "plugInPaths" ivar, so different plugin databases can have different search paths.
  14798. * Plugins/WebPluginDatabase.m:
  14799. (+[WebPluginDatabase installedPlugins]):
  14800. Give the global plugin database the default plugin search paths.
  14801. (+[WebPluginDatabase setAdditionalWebPlugInPaths:]):
  14802. Removed static global; this method now sets the plugin paths on the global plugin database.
  14803. (-[WebPluginDatabase setPlugInPaths:]):
  14804. Setter method for plugin paths.
  14805. (-[WebPluginDatabase close]):
  14806. New method; called when the plugin database is no longer needed (when its WebView is being destroyed).
  14807. (-[WebPluginDatabase init]):
  14808. Don't refresh in -init, so that callers can set the DB's plugin path array before it refreshes.
  14809. (-[WebPluginDatabase dealloc]):
  14810. Moved here from near the bottom of the file. Release new ivar.
  14811. (-[WebPluginDatabase refresh]):
  14812. Use the plugInPaths ivar instead of calling pluginLocations().
  14813. Notify plugin packages when they are added to and removed from a plugin database. A plugin package will
  14814. unload itself when it is removed from all of its plugin databases.
  14815. The only really tricky thing here is that the global MIME <-> view class registrations are only modified
  14816. by the shared plugin DB.
  14817. (+[WebPluginDatabase _defaultPlugInPaths]):
  14818. Refactored from the old pluginLocations() function; returns the default set of plugin search paths.
  14819. * Plugins/WebBasePluginPackage.h:
  14820. * Plugins/WebBasePluginPackage.m:
  14821. (-[WebBasePluginPackage dealloc]):
  14822. Assert that this package has been removed from all of its containing plugin databases.
  14823. (-[WebBasePluginPackage finalize]):
  14824. ditto
  14825. (-[WebBasePluginPackage wasAddedToPluginDatabase:]):
  14826. Add plugin database to set.
  14827. (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
  14828. Remove plugin database from set. If it was the last DB, then unload the plugin package.
  14829. * WebView/WebViewInternal.h:
  14830. Added instance methods to find the view class or plugin package, given a MIME type or file extension.
  14831. * WebView/WebViewPrivate.h:
  14832. Added SPI to set plugin search paths per WebView.
  14833. * WebView/WebView.m:
  14834. (-[WebView _viewClass:andRepresentationClass:forMIMEType:]):
  14835. New method; tries the global MIME <-> view map first; failing that, it checks the WebView's plugin DB.
  14836. (-[WebView _close]):
  14837. Close the plugin DB.
  14838. (-[WebView _setAdditionalWebPlugInPaths:]):
  14839. Create the plugin DB if necessary, and set its plugin paths.
  14840. (-[WebView _pluginForMIMEType:]):
  14841. Checks global plugin DB, falls back on WebView DB.
  14842. (-[WebView _pluginForExtension:]):
  14843. ditto
  14844. (-[WebView _isMIMETypeRegisteredAsPlugin:]):
  14845. ditto
  14846. * WebCoreSupport/WebFrameBridge.m:
  14847. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  14848. Use new WebView instance methods to look for plugins.
  14849. (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
  14850. ditto
  14851. (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
  14852. ditto
  14853. 2006-06-20 Brady Eidson <beidson@apple.com>
  14854. Reviewed by Maciej
  14855. Added calls through to the WebCoreIconDatabaseBridge for all the major WebIconDatabase API. For now these calls
  14856. are wrapped with #ifdef's and are for debugging only.
  14857. * Misc/WebIconDatabase.h:
  14858. * Misc/WebIconDatabase.m:
  14859. (-[NSMutableDictionary _scaleIcon:toSize:]):
  14860. (-[NSMutableDictionary init]):
  14861. (-[NSMutableDictionary iconForURL:withSize:cache:]):
  14862. (-[NSMutableDictionary iconURLForURL:]):
  14863. (-[NSMutableDictionary retainIconForURL:]):
  14864. (-[NSMutableDictionary releaseIconForURL:]):
  14865. (-[WebIconDatabase _setHaveNoIconForIconURL:]):
  14866. (-[WebIconDatabase _setIconURL:forURL:]):
  14867. (-[WebIconDatabase _hasIconForIconURL:]):
  14868. * Misc/WebIconLoader.m:
  14869. (-[WebIconLoader didFinishLoading]):
  14870. * Misc/WebKitLogging.h: Added a logging channel for WebIconDatabase debugging
  14871. * Misc/WebKitLogging.m:
  14872. (WebKitInitializeLoggingChannelsIfNecessary):
  14873. 2006-06-20 Adele Peterson <adele@apple.com>
  14874. Reviewed by Tim Hatcher.
  14875. * WebView/WebMainResourceLoader.m: Added missing header to fix build on Leopard.
  14876. 2006-06-20 Timothy Hatcher <timothy@apple.com>
  14877. Reviewed by Darin.
  14878. Removes the @try/@catch from the callbacks to improve performance,
  14879. simply check if the proxy object's connection is still valid first.
  14880. Listener objects are now required to be NSDistantObjects.
  14881. Adds pause, resume and step support. The debugger process use to handle this,
  14882. but it caused problems when there were multiple listeners.
  14883. Sends the bundle identifier in the notification userInfo dictionary along with
  14884. process name and process ID.
  14885. * DefaultDelegates/WebScriptDebugServer.h:
  14886. * DefaultDelegates/WebScriptDebugServer.m:
  14887. (-[WebScriptDebugServer serverQuery:]):
  14888. (-[WebScriptDebugServer addListener:]):
  14889. (-[WebScriptDebugServer removeListener:]):
  14890. (-[WebScriptDebugServer step]):
  14891. (-[WebScriptDebugServer pause]):
  14892. (-[WebScriptDebugServer resume]):
  14893. (-[WebScriptDebugServer isPaused]):
  14894. (-[WebScriptDebugServer suspendProcessIfPaused]):
  14895. (-[WebScriptDebugServer webView:didParseSource:fromURL:sourceId:forWebFrame:]):
  14896. (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
  14897. (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
  14898. (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
  14899. * DefaultDelegates/WebScriptDebugServerPrivate.h:
  14900. * WebKit.exp:
  14901. 2006-06-19 Alexey Proskuryakov <ap@nypop.com>
  14902. Reviewed by Darin.
  14903. - http://bugs.webkit.org/show_bug.cgi?id=5499
  14904. Page reload does not send any cache control headers
  14905. * WebView/WebFrame.m:
  14906. (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Set a proper Cache-Control header for
  14907. reload requests.
  14908. (-[WebFrame loadRequest:]): Reset loadType to WebFrameLoadTypeStandard (after a reload, it stayed at
  14909. WebFrameLoadTypeReload, so _addExtraFieldsToRequest erroneously added a Cache-Control header to them).
  14910. 2006-06-19 John Sullivan <sullivan@apple.com>
  14911. Reviewed by Darin.
  14912. - added mechanism to notify UIDelegate when part of the webview is redrawn. For now, it only
  14913. works for HTML views.
  14914. * WebView/WebUIDelegatePrivate.h:
  14915. Define a new UIDelegate method -webView:didDrawRect:
  14916. * WebView/WebHTMLView.m:
  14917. (-[WebView drawSingleRect:]):
  14918. Call through to UIDelegate if it implements that method. I tested that this does not impact PLT numbers
  14919. in the case where the delegate implements the method but does nothing in it.
  14920. 2006-06-19 Mitz Pettel <opendarwin.org@mitzpettel.com>
  14921. Reviewed by Maciej.
  14922. - fix http://bugs.webkit.org/show_bug.cgi?id=9452
  14923. Assertion failure in -[WebFramePrivate setProvisionalDataSource:]
  14924. * WebView/WebFrame.m:
  14925. (-[WebFrame _checkLoadCompleteForThisFrame]): Avoid re-entering the delegate's
  14926. -[webView:didFailProvisionalLoadWithError:forFrame].
  14927. 2006-06-18 Mitz Pettel <opendarwin.org@mitzpettel.com>
  14928. Reviewed by xenon.
  14929. - http://bugs.webkit.org/show_bug.cgi?id=9479
  14930. Disassociate the inspector from the frame when it detaches from its parent
  14931. * WebInspector/WebInspector.m:
  14932. (-[NSWindow setWebFrame:]): Added code to (de)register with the WebFrame
  14933. the inspector is (no longer) targeting.
  14934. (-[WebInspector _webFrameDetached:]): Added. Moved the code that was previously
  14935. in -[inspectedWindowWillClose:] here. This is called by the WebFrame when it
  14936. is detached from its parent.
  14937. * WebInspector/WebInspectorInternal.h:
  14938. * WebView/WebFrame.m:
  14939. (-[WebFramePrivate dealloc]):
  14940. (-[WebFrame _detachFromParent]): Added code to notify all registered inspectors
  14941. that the WebFrame is detaching.
  14942. (-[WebFrame _addInspector:]): Added.
  14943. (-[WebFrame _removeInspector:]): Added.
  14944. * WebView/WebFrameInternal.h:
  14945. 2006-06-18 Anders Carlsson <acarlsson@apple.com>
  14946. Reviewed by Geoff.
  14947. * WebCoreSupport/WebFrameBridge.m:
  14948. (-[WebFrameBridge shouldInterruptJavaScript]):
  14949. Ask the UI delegate if the script should be interrupted.
  14950. * WebView/WebUIDelegatePrivate.h:
  14951. Declare webViewShouldInterruptJavaScript: delegate method
  14952. 2006-06-17 Mitz Pettel <opendarwin.org@mitzpettel.com>
  14953. Reviewed by Darin.
  14954. - fix http://bugs.webkit.org/show_bug.cgi?id=9466
  14955. Assertion failure when dragging an image from the document into Safari's address bar
  14956. * WebView/WebFrameView.m:
  14957. (-[WebFrameView _setDocumentView:]): Reset the WebView's initiatedDrag flag
  14958. when the document view is changed.
  14959. * WebView/WebHTMLView.m:
  14960. (-[WebHTMLView draggedImage:endedAt:operation:]): Changed the ASSERT to allow
  14961. for drags that end after the view has been removed from the WebView.
  14962. 2006-06-16 Timothy Hatcher <timothy@apple.com>
  14963. Reviewed by Tim O.
  14964. Exposes a distributed objects server for clients to register for script debugger calls.
  14965. For preformance concerns this is disabled by default, you will need to enable this per application.
  14966. To enable for Safari do this: defaults write com.apple.Safari WebKitScriptDebuggerEnabled -bool true
  14967. Clients will need to listen to the following distributed notification to discover servers:
  14968. WebScriptDebugServerDidLoadNotification
  14969. To discover servers that previously loaded before the client, the client needs to send the following notification:
  14970. WebScriptDebugServerQueryNotification
  14971. All servers will reply with the WebScriptDebugServerQueryReplyNotification notification that contains the
  14972. registered server connection name to use with distributed objects.
  14973. * DefaultDelegates/WebScriptDebugServer.h: Added.
  14974. * DefaultDelegates/WebScriptDebugServer.m: Added.
  14975. (+[WebScriptDebugServer sharedScriptDebugServer]):
  14976. (-[WebScriptDebugServer init]):
  14977. (-[WebScriptDebugServer dealloc]):
  14978. (-[WebScriptDebugServer serverQuery:]):
  14979. (-[WebScriptDebugServer listenerConnectionDidDie:]):
  14980. (-[WebScriptDebugServer addListener:]):
  14981. (-[WebScriptDebugServer removeListener:]):
  14982. (-[WebScriptDebugServer webView:didParseSource:fromURL:sourceId:forWebFrame:]):
  14983. (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
  14984. (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
  14985. (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
  14986. * DefaultDelegates/WebScriptDebugServerPrivate.h: Added.
  14987. * WebCoreSupport/WebFrameBridge.m:
  14988. (-[WebFrameBridge windowObjectCleared]):
  14989. * WebKit.exp:
  14990. * WebKit.xcodeproj/project.pbxproj:
  14991. * WebView/WebScriptDebugDelegate.m:
  14992. (-[WebScriptCallFrame parsedSource:fromURL:sourceId:]):
  14993. (-[WebScriptCallFrame enteredFrame:sourceId:line:]):
  14994. (-[WebScriptCallFrame hitStatement:sourceId:line:]):
  14995. (-[WebScriptCallFrame leavingFrame:sourceId:line:]):
  14996. * WebView/WebView.m:
  14997. (+[WebView _developerExtrasEnabled]):
  14998. (+[WebView _scriptDebuggerEnabled]):
  14999. (-[WebView _menuForElement:defaultItems:]):
  15000. (-[WebView _commonInitializationWithFrameName:groupName:]):
  15001. * WebView/WebViewPrivate.h:
  15002. 2006-06-16 Adele Peterson <adele@apple.com>
  15003. Reviewed by Alice.
  15004. Added initialization for WKDrawBezeledTextArea.
  15005. * WebCoreSupport/WebSystemInterface.m:
  15006. (InitWebCoreSystemInterface):
  15007. 2006-06-15 Timothy Hatcher <timothy@apple.com>
  15008. Reviewed by Geoff and Darin.
  15009. Prefer the DWARF debugging symbols format for use in Xcode 2.3.
  15010. * WebKit.xcodeproj/project.pbxproj:
  15011. 2006-06-15 John Sullivan <sullivan@apple.com>
  15012. Reviewed by Tim O.
  15013. Fixed bug in WebKit support for computing but not highlighting rects for text matches.
  15014. * WebView/WebView.m:
  15015. (-[WebView rectsForTextMatches]):
  15016. leave out empty rects, and convert rects to WebView coordinates. Since this makes a batch
  15017. of autoreleased NSValue objects, use a local autorelease pool
  15018. 2006-02-11 David Kilzer <ddkilzer@kilzer.net>
  15019. Reviewed by John Sullivan.
  15020. * Plugins/WebPluginController.m:
  15021. (-[WebPluginController _cancelOutstandingChecks]):
  15022. add nil check before calling CFSetApplyFunction
  15023. 2006-06-14 Levi Weintraub <lweintraub@apple.com>
  15024. Reviewed by justin
  15025. <http://bugs.webkit.org/show_bug.cgi?id=7580>
  15026. TinyMCE: Implement execCommand(formatBlock, ...)
  15027. * English.lproj/Localizable.strings:
  15028. * WebCoreSupport/WebFrameBridge.m:
  15029. (-[WebFrameBridge nameForUndoAction:]):
  15030. 2006-06-14 Tim Omernick <timo@apple.com>
  15031. Reviewed by John Sullivan.
  15032. <rdar://problem/4577988> GC: WebPluginController uses inefficient resurrecting enumeration
  15033. * Plugins/WebPluginController.m:
  15034. (cancelOutstandingCheck):
  15035. (-[WebPluginController _cancelOutstandingChecks]):
  15036. Use CFSetApplyFunction() instead of an enumerator to guard against modifications to the set while enumerating.
  15037. 2006-06-13 John Sullivan <sullivan@apple.com>
  15038. Reviewed by Tim O.
  15039. - fixed <rdar://problem/4498606> REGRESSION (417.8-420+): 3 missing items (but extra separators) in context
  15040. menu in Mail message body
  15041. * WebView/WebView.m:
  15042. (-[WebView _menuForElement:defaultItems:]):
  15043. Add special-case hackery to recover from this SPI -> API mismatch.
  15044. 2006-06-13 Tim Omernick <timo@apple.com>
  15045. Reviewed by Anders.
  15046. Fixed a recently-introduced assertion failure when handling 404 errors.
  15047. * WebView/WebDataSource.m:
  15048. (-[WebDataSource _handleFallbackContent]):
  15049. Use the -[WebFrame _bridge] instead of -[WebDataSource _bridge]. The former is not valid until the data
  15050. source has been committed, which is not the case when the resource fails to load. The latter is safe to call
  15051. at any time. This broke last night with Maciej's change to WebFrameResourceLoader. The old code used to
  15052. call -[WebFrame _bridge].
  15053. 2006-06-13 Anders Carlsson <acarlsson@apple.com>
  15054. Reviewed by Geoff.
  15055. http://bugs.webkit.org/show_bug.cgi?id=9406
  15056. REGRESSION: fix for bug 9390 broke two layout tests
  15057. * Plugins/WebPluginDatabase.h:
  15058. (-[WebPluginDatabase isMIMETypeRegistered:]):
  15059. Add new function isMIMETypeRegistered which returns whether a given MIME type has a
  15060. plugin registered.
  15061. * Plugins/WebPluginDatabase.m:
  15062. (-[WebPluginDatabase init]):
  15063. Init set of registered MIME types.
  15064. (-[WebPluginDatabase refresh]):
  15065. Add and remove MIME types from the set of registered MIME types when registering and unregistering
  15066. plugin MIME types.
  15067. (-[WebPluginDatabase dealloc]):
  15068. Release set of registered MIME types.
  15069. * WebCoreSupport/WebFrameBridge.m:
  15070. (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
  15071. Use isMIMETypeRegistered here.
  15072. 2006-06-12 Maciej Stachowiak <mjs@apple.com>
  15073. - fix for cocoa exception (whoops)
  15074. * WebView/WebView.m:
  15075. (+[WebView _generatedMIMETypeForURLScheme:]): put this back
  15076. * WebView/WebDataSource.m:
  15077. (+[WebDataSource _generatedMIMETypeForURLScheme:]): call WebView
  15078. 2006-06-12 Maciej Stachowiak <mjs@apple.com>
  15079. Reviewed by Darin.
  15080. - remove use of WebView and related from WebMainResourceLoader
  15081. * WebKit.xcodeproj/project.pbxproj:
  15082. * WebView/WebDataSource.m:
  15083. (+[WebDataSource _generatedMIMETypeForURLScheme:]):
  15084. (+[WebDataSource _representationExistsForURLScheme:]):
  15085. (+[WebDataSource _canShowMIMEType:]):
  15086. (-[WebDataSource _handleFallbackContent]):
  15087. (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
  15088. * WebView/WebDataSourceInternal.h:
  15089. * WebView/WebFrame.m:
  15090. (-[WebFrame _isMainFrame]):
  15091. * WebView/WebFrameInternal.h:
  15092. * WebView/WebMainResourceLoader.m:
  15093. (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
  15094. (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
  15095. (-[WebMainResourceLoader checkContentPolicyForResponse:]):
  15096. (-[WebMainResourceLoader loadWithRequestNow:]):
  15097. * WebView/WebView.m:
  15098. 2006-06-12 Tim Omernick <timo@apple.com>
  15099. Reviewed by Maciej.
  15100. <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests
  15101. * Plugins/WebNetscapePluginPackage.m:
  15102. (-[WebNetscapePluginPackage _initWithPath:]):
  15103. Renamed from -initWithPath:. Instead of releasing/deallocating self on error, return NO.
  15104. (-[WebNetscapePluginPackage initWithPath:]):
  15105. Call the new -_initWithPath:. If it returns NO, unload the plugin package before deallocating it.
  15106. 2006-06-11 Darin Adler <darin@apple.com>
  15107. - try to fix Windows build
  15108. * COM/WebKitDLL.cpp: (loadResourceIntoArray): Use Vector<char> instead of
  15109. DeprecatedByteArray.
  15110. 2006-06-11 Mitz Pettel <opendarwin.org@mitzpettel.com>
  15111. Reviewed by Tim H.
  15112. - fix http://bugs.webkit.org/show_bug.cgi?id=8672
  15113. Red outline from web inspector reappears after inspector is closed
  15114. * WebInspector/WebInspector.m:
  15115. (-[NSWindow windowWillClose:]): Added a call to setWebFrame to avoid further
  15116. load progress notifications.
  15117. (-[NSWindow setWebFrame:]): Changed to resign the WebView's hostWindow rather
  15118. than its window for close notifications, to avoid resigning from all windows' close
  15119. notifications (including the inspector window's) when the WebView is in a hidden tab.
  15120. Also changed to prevent highlighting the initial focused node.
  15121. 2006-06-11 Anders Carlsson <acarlsson@apple.com>
  15122. Reviewed by Tim.
  15123. http://bugs.webkit.org/show_bug.cgi?id=9390
  15124. Move full-frame plugins to WebCore
  15125. * Plugins/WebBaseNetscapePluginStream.h:
  15126. * Plugins/WebBaseNetscapePluginStream.m:
  15127. (-[WebBaseNetscapePluginStream instance]):
  15128. Add instance method which returns the plugin instance.
  15129. * Plugins/WebBasePluginPackage.h:
  15130. Add WebPluginManualLoader protocol
  15131. * Plugins/WebNetscapePluginDocumentView.h: Removed.
  15132. * Plugins/WebNetscapePluginDocumentView.m: Removed.
  15133. * Plugins/WebNetscapePluginEmbeddedView.h:
  15134. * Plugins/WebNetscapePluginEmbeddedView.m:
  15135. (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:]):
  15136. (-[WebNetscapePluginEmbeddedView dealloc]):
  15137. (-[WebNetscapePluginEmbeddedView didStart]):
  15138. (-[WebNetscapePluginEmbeddedView pluginView:receivedResponse:]):
  15139. (-[WebNetscapePluginEmbeddedView pluginView:receivedData:]):
  15140. (-[WebNetscapePluginEmbeddedView pluginView:receivedError:]):
  15141. (-[WebNetscapePluginEmbeddedView pluginViewFinishedLoading:]):
  15142. (-[WebNetscapePluginEmbeddedView redeliverStream]):
  15143. Make WebNetscapePluginEmbeddedView support the WebPluginManualLoader protocol. It creates a plugin stream and feeds the
  15144. data manually. Much of this code has been copied from WebNetscapePluginRepresentation.
  15145. * Plugins/WebNetscapePluginRepresentation.h: Removed.
  15146. * Plugins/WebNetscapePluginRepresentation.m: Removed.
  15147. * Plugins/WebPluginController.h:
  15148. * Plugins/WebPluginController.m:
  15149. (-[WebPluginController pluginView:receivedResponse:]):
  15150. (-[WebPluginController pluginView:receivedData:]):
  15151. (-[WebPluginController pluginView:receivedError:]):
  15152. (-[WebPluginController pluginViewFinishedLoading:]):
  15153. Make WebPluginController support the WebPluginManualLoader protocol so it can feed data manually to WebKit plugins.
  15154. * Plugins/WebPluginDatabase.m:
  15155. (-[WebPluginDatabase refresh]):
  15156. Use WebHTMLView and WebHTMLRepresentation when registering/unregistering plug-in MIME types.
  15157. * Plugins/WebPluginDocumentView.h: Removed.
  15158. * Plugins/WebPluginDocumentView.m: Removed.
  15159. * WebCoreSupport/WebFrameBridge.m:
  15160. (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
  15161. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
  15162. Add loadManually argument.
  15163. (-[WebFrameBridge redirectDataToPlugin:]):
  15164. Call down to the HTML representation.
  15165. (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
  15166. Pass NO to loadManually.
  15167. (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
  15168. Explicitly check if the MIME type is supported by a plug-in instead of checking the view class.
  15169. * WebCoreSupport/WebViewFactory.m:
  15170. (-[WebViewFactory pluginSupportsMIMEType:]):
  15171. New function which returns whether any plugins support a given MIME type.
  15172. * WebKit.xcodeproj/project.pbxproj:
  15173. Update for removed files.
  15174. * WebView/WebFrame.m:
  15175. (-[WebFrame _reloadForPluginChanges]):
  15176. Remove view type checks.
  15177. (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
  15178. (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
  15179. Remove FIXME comments.
  15180. * WebView/WebHTMLRepresentation.m:
  15181. (-[WebHTMLRepresentation _redirectDataToManualLoader:forPluginView:]):
  15182. New function which redirects incoming data to a manual loader.
  15183. (-[WebHTMLRepresentation receivedData:withDataSource:]):
  15184. (-[WebHTMLRepresentation receivedError:withDataSource:]):
  15185. (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
  15186. Optionally redirect incoming data.
  15187. * WebView/WebHTMLRepresentationPrivate.h:
  15188. 2006-06-09 John Sullivan <sullivan@apple.com>
  15189. Reviewed by Tim Omernick and Dave Hyatt.
  15190. WebKit support for computing but not highlighting rects for text matches.
  15191. * WebView/WebHTMLViewPrivate.h:
  15192. added markedTextMatchesAreHighlighted/setMarkedTextMatchesAreHighlighted and
  15193. rectsForTextMatches, and renamed related methods for clarity/consistency
  15194. * WebView/WebHTMLView.m:
  15195. (-[WebHTMLView markAllMatchesForText:caseSensitive:]):
  15196. renamed, calls similarly-renamed method
  15197. (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
  15198. new method, calls through to bridge
  15199. (-[WebHTMLView markedTextMatchesAreHighlighted]):
  15200. ditto
  15201. (-[WebHTMLView unmarkAllTextMatches]):
  15202. renamed
  15203. (-[WebHTMLView rectsForTextMatches]):
  15204. new method, calls through to bridge
  15205. * WebView/WebViewPrivate.h:
  15206. added rectsForTextMatches, renamed other methods (and added highlight: parameter)
  15207. * WebView/WebView.m:
  15208. (-[WebView markAllMatchesForText:caseSensitive:highlight:]):
  15209. renamed for clarity/consistency, and now has highlight: parameter, which is passed down
  15210. (-[WebView unmarkAllTextMatches]):
  15211. renamed for clarity/consistency, and calls similarly-renamed method lower down. diff got
  15212. confused with the end of this and the end of the next method.
  15213. (-[WebView rectsForTextMatches]):
  15214. new method, calls through to WebHTMLView as related methods currently do
  15215. 2006-06-10 Graham Dennis <Graham.Dennis@gmail.com>
  15216. <http://bugs.webkit.org/show_bug.cgi?id=9384>
  15217. WebView's initWithCoder: method does not set useBackForwardList
  15218. correctly
  15219. Reviewed by John Sullivan.
  15220. * WebView/WebView.m:
  15221. (-[WebView initWithCoder:]):
  15222. Make sure that the function variable useBackForwardList is correctly
  15223. set, so that the copy in the _private ivar is set.
  15224. 2006-06-09 David Hyatt <hyatt@apple.com>
  15225. Rename updateFocusState to updateActiveState.
  15226. * WebView/WebHTMLView.m:
  15227. (-[WebHTMLView _updateActiveState]):
  15228. (-[WebHTMLView viewDidMoveToWindow]):
  15229. (-[WebHTMLView windowDidBecomeKey:]):
  15230. (-[WebHTMLView windowDidResignKey:]):
  15231. (-[WebHTMLView becomeFirstResponder]):
  15232. (-[WebHTMLView resignFirstResponder]):
  15233. (-[WebHTMLView _formControlIsBecomingFirstResponder:]):
  15234. (-[WebHTMLView _formControlIsResigningFirstResponder:]):
  15235. * WebView/WebHTMLViewPrivate.h:
  15236. 2006-06-09 David Hyatt <hyatt@apple.com>
  15237. Rename displaysWithFocusAttributes to isActive.
  15238. Reviewed by sfalken
  15239. * WebKit.xcodeproj/project.pbxproj:
  15240. * WebView/WebHTMLView.m:
  15241. (-[WebHTMLView _updateFocusState]):
  15242. 2006-06-08 Justin Garcia <justin.garcia@apple.com>
  15243. Reviewed by levi
  15244. <http://bugs.webkit.org/show_bug.cgi?id=4468>
  15245. Implement execCommand(Insert{Un}OrderedList)
  15246. * WebView/WebFrame.m:
  15247. (-[WebFrame _findFrameWithSelection]): Removed an assertion
  15248. that we only have one frame with a selection.
  15249. * WebView/WebView.m:
  15250. (-[WebView selectedFrame]): Ditto.
  15251. 2006-06-08 Timothy Hatcher <timothy@apple.com>
  15252. Reviewed by Darin and John.
  15253. <rdar://problem/3600734> API: please add a way to turn vertical scrollbar
  15254. always on (for Mail, to avoid reflow when typing)
  15255. Adds new methods to lock the scrolling mode on WebDynamicScrollBarsView.
  15256. Locking the scroll mode prevents WebCore from changing it as needed.
  15257. Also adds an SPI on WebView that will lock the "always on" mode
  15258. for each scroller.
  15259. * WebKit.xcodeproj/project.pbxproj:
  15260. * WebView/WebDynamicScrollBarsView.h:
  15261. * WebView/WebDynamicScrollBarsView.m:
  15262. (-[WebDynamicScrollBarsView setAllowsScrolling:]):
  15263. (-[WebDynamicScrollBarsView allowsScrolling]):
  15264. (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
  15265. (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
  15266. (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
  15267. (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
  15268. (-[WebDynamicScrollBarsView setScrollingMode:]):
  15269. (-[WebDynamicScrollBarsView setHorizontalScrollingModeLocked:]):
  15270. (-[WebDynamicScrollBarsView setVerticalScrollingModeLocked:]):
  15271. (-[WebDynamicScrollBarsView setScrollingModesLocked:]):
  15272. (-[WebDynamicScrollBarsView horizontalScrollingModeLocked]):
  15273. (-[WebDynamicScrollBarsView verticalScrollingModeLocked]):
  15274. * WebView/WebView.m:
  15275. (-[WebView setAlwaysShowVerticalScroller:]):
  15276. (-[WebView alwaysShowVerticalScroller]):
  15277. (-[WebView setAlwaysShowHorizontalScroller:]):
  15278. (-[WebView alwaysShowHorizontalScroller]):
  15279. * WebView/WebViewPrivate.h:
  15280. 2006-06-08 Darin Adler <darin@apple.com>
  15281. Reviewed by Justin.
  15282. - fix http://bugs.webkit.org/show_bug.cgi?id=8616
  15283. REGRESSION: TinyMCE: Crash on Undo
  15284. * WebView/WebHTMLView.m:
  15285. (-[WebHTMLView _topHTMLView]): Added.
  15286. (-[WebHTMLView _isTopHTMLView]): Added.
  15287. (-[WebHTMLView _insideAnotherHTMLView]): Changed to use _topHTMLView.
  15288. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  15289. Forward to the top HTML view, so that only the top view ever starts a dragging operation.
  15290. Change dragging code to not assume that the dragged node is in the current view's document.
  15291. Added checks that the node is an element in a couple places and coordinate conversions.
  15292. (-[WebHTMLView _mayStartDragAtEventLocation:]): Forward to the top HTML view.
  15293. (-[WebHTMLView addMouseMovedObserver]): Change to do nothing when the dataSource field is 0,
  15294. since we now use the dataSource field to get to the WebView.
  15295. (-[WebHTMLView removeMouseMovedObserver]): Added a comment.
  15296. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
  15297. Forward to the top HTML view.
  15298. (-[WebHTMLView draggingSourceOperationMaskForLocal:]): Assert that it's the top HTML view.
  15299. (-[WebHTMLView draggedImage:movedTo:]): Ditto.
  15300. (-[WebHTMLView draggedImage:endedAt:operation:]): Ditto.
  15301. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
  15302. (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ditto.
  15303. (-[WebHTMLView _isMoveDrag]): Ditto.
  15304. (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
  15305. (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
  15306. (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto. Also added code to work
  15307. with the appropriate bridge when receiving a drag. This fixes the problem where the
  15308. top level frame got a selection intended for the inner frame; the source of the bug.
  15309. (-[WebHTMLView elementAtPoint:allowShadowContent:]): Added code to convert the coordinates
  15310. so this works properly when returning an element from an inner frame.
  15311. (-[WebHTMLView setDataSource:]): Added a call to addMouseMovedObserver, needed now that
  15312. addMouseMovedObserver won't do anything if called when dataSource is nil.
  15313. (-[WebHTMLView _delegateDragSourceActionMask]): Forward to the top HTML view.
  15314. * WebView/WebView.m:
  15315. (-[WebViewPrivate dealloc]): Removed code to release dragCaretBridge since that field
  15316. is now gone.
  15317. (-[WebView moveDragCaretToPoint:]): Always call the main frame's bridge, since the
  15318. drag caret is now a page-level item. Later we'll move it to the page bridge.
  15319. (-[WebView removeDragCaret]): Ditto.
  15320. 2006-06-07 David Hyatt <hyatt@apple.com>
  15321. Add support for custom highlighting to WebKit.
  15322. Reviewed by justin
  15323. * WebCoreSupport/WebFrameBridge.m:
  15324. (-[WebFrameBridge paintCustomHighlight:forBox:onLine:behindText:]):
  15325. * WebView/WebHTMLView.m:
  15326. (-[WebHTMLView _highlighterForType:]):
  15327. * WebView/WebHTMLViewInternal.h:
  15328. * WebView/WebHTMLViewPrivate.h:
  15329. 2006-06-07 Adele Peterson <adele@apple.com>
  15330. Reviewed by Hyatt.
  15331. Added resources for missingImage and textAreaResizeCorner.
  15332. * COM/WebKitDLL.cpp:
  15333. (loadResourceIntoArray): Added. Returns a DeprecatedByteArray with the resource's data.
  15334. * WebKit.vcproj/WebKit.rc: Added missing image and resize pngs as resources.
  15335. * WebKit.vcproj/WebKit.vcproj: Added pngs.
  15336. * WebKit.vcproj/missingImage.png: Added.
  15337. * WebKit.vcproj/resource.h: Added entries for pngs.
  15338. * WebKit.vcproj/textAreaResizeCorner.png: Added.
  15339. 2006-06-07 David Hyatt <hyatt@apple.com>
  15340. Add SPI for setting and removing custom highlighters.
  15341. Reviewed by Tim H
  15342. * WebView/WebHTMLView.m:
  15343. (-[WebTextCompleteController dealloc]):
  15344. (-[WebHTMLView _setHighlighter:ofType:]):
  15345. (-[WebHTMLView _removeHighlighterOfType:]):
  15346. * WebView/WebHTMLViewInternal.h:
  15347. * WebView/WebHTMLViewPrivate.h:
  15348. 2006-06-06 Adele Peterson <adele@apple.com>
  15349. Reviewed by Justin.
  15350. * COM/WebView.cpp:
  15351. (WebView::keyPress): Added case for VK_RETURN.
  15352. 2006-06-06 Anders Carlsson <acarlsson@apple.com>
  15353. Reviewed by John.
  15354. * WebView/WebFrame.m:
  15355. (-[WebFrame _reloadForPluginChanges]):
  15356. Don't traverse the view hierarchy looking for plugin views. Instead, just
  15357. ask the frame whether it contains any plugins.
  15358. 2006-06-03 Steve Falkenburg <sfalken@apple.com>
  15359. Reviewed by hyatt.
  15360. Add implementation of loadHTMLString for Spinneret
  15361. * COM/WebFrame.cpp:
  15362. (WebFrame::loadHTMLString):
  15363. 2006-06-02 Steve Falkenburg <sfalken@apple.com>
  15364. Reviewed by darin.
  15365. New hosting for Spinneret to avoid static linking
  15366. * COM: Added.
  15367. * COM/Interfaces: Added.
  15368. * COM/Interfaces/DOMCSS.idl: Added.
  15369. * COM/Interfaces/DOMCore.idl: Added.
  15370. * COM/Interfaces/DOMHTML.idl: Added.
  15371. * COM/Interfaces/DOMRange.idl: Added.
  15372. * COM/Interfaces/IWebArchive.idl: Added.
  15373. * COM/Interfaces/IWebAttributedString.idl: Added.
  15374. * COM/Interfaces/IWebBackForwardList.idl: Added.
  15375. * COM/Interfaces/IWebDataSource.idl: Added.
  15376. * COM/Interfaces/IWebDocument.idl: Added.
  15377. * COM/Interfaces/IWebDownload.idl: Added.
  15378. * COM/Interfaces/IWebEditingDelegate.idl: Added.
  15379. * COM/Interfaces/IWebError.idl: Added.
  15380. * COM/Interfaces/IWebFrame.idl: Added.
  15381. * COM/Interfaces/IWebFrameLoadDelegate.idl: Added.
  15382. * COM/Interfaces/IWebFrameView.idl: Added.
  15383. * COM/Interfaces/IWebHistoryItem.idl: Added.
  15384. * COM/Interfaces/IWebIconDatabase.idl: Added.
  15385. * COM/Interfaces/IWebImage.idl: Added.
  15386. * COM/Interfaces/IWebMutableURLRequest.idl: Added.
  15387. * COM/Interfaces/IWebNotification.idl: Added.
  15388. * COM/Interfaces/IWebPolicyDelegate.idl: Added.
  15389. * COM/Interfaces/IWebPreferences.idl: Added.
  15390. * COM/Interfaces/IWebResource.idl: Added.
  15391. * COM/Interfaces/IWebResourceLoadDelegate.idl: Added.
  15392. * COM/Interfaces/IWebScriptObject.idl: Added.
  15393. * COM/Interfaces/IWebUIDelegate.idl: Added.
  15394. * COM/Interfaces/IWebURLAuthenticationChallenge.idl: Added.
  15395. * COM/Interfaces/IWebURLRequest.idl: Added.
  15396. * COM/Interfaces/IWebURLResponse.idl: Added.
  15397. * COM/Interfaces/IWebUndoManager.idl: Added.
  15398. * COM/Interfaces/IWebView.idl: Added.
  15399. * COM/Interfaces/WebKit.idl: Added.
  15400. * COM/WebBackForwardList.cpp: Added.
  15401. (WebBackForwardList::WebBackForwardList):
  15402. (WebBackForwardList::~WebBackForwardList):
  15403. (WebBackForwardList::createInstance):
  15404. (WebBackForwardList::QueryInterface):
  15405. (WebBackForwardList::AddRef):
  15406. (WebBackForwardList::Release):
  15407. (WebBackForwardList::addItem):
  15408. (WebBackForwardList::goBack):
  15409. (WebBackForwardList::goForward):
  15410. (WebBackForwardList::goToItem):
  15411. (WebBackForwardList::backItem):
  15412. (WebBackForwardList::currentItem):
  15413. (WebBackForwardList::forwardItem):
  15414. (WebBackForwardList::backListWithLimit):
  15415. (WebBackForwardList::forwardListWithLimit):
  15416. (WebBackForwardList::capacity):
  15417. (WebBackForwardList::setCapacity):
  15418. (WebBackForwardList::backListCount):
  15419. (WebBackForwardList::forwardListCount):
  15420. (WebBackForwardList::containsItem):
  15421. (WebBackForwardList::itemAtIndex):
  15422. (WebBackForwardList::setPageCacheSize):
  15423. (WebBackForwardList::pageCacheSize):
  15424. * COM/WebBackForwardList.h: Added.
  15425. * COM/WebDataSource.cpp: Added.
  15426. (WebDataSource::WebDataSource):
  15427. (WebDataSource::~WebDataSource):
  15428. (WebDataSource::createInstance):
  15429. (WebDataSource::QueryInterface):
  15430. (WebDataSource::AddRef):
  15431. (WebDataSource::Release):
  15432. (WebDataSource::initWithRequest):
  15433. (WebDataSource::data):
  15434. (WebDataSource::representation):
  15435. (WebDataSource::webFrame):
  15436. (WebDataSource::initialRequest):
  15437. (WebDataSource::request):
  15438. (WebDataSource::response):
  15439. (WebDataSource::textEncodingName):
  15440. (WebDataSource::isLoading):
  15441. (WebDataSource::pageTitle):
  15442. (WebDataSource::unreachableURL):
  15443. (WebDataSource::webArchive):
  15444. (WebDataSource::mainResource):
  15445. (WebDataSource::subresources):
  15446. (WebDataSource::subresourceForURL):
  15447. (WebDataSource::addSubresource):
  15448. * COM/WebDataSource.h: Added.
  15449. * COM/WebFrame.cpp: Added.
  15450. (WebFrame::WebFramePrivate::WebFramePrivate):
  15451. (WebFrame::WebFramePrivate::~WebFramePrivate):
  15452. (WebFrame::WebFrame):
  15453. (WebFrame::~WebFrame):
  15454. (WebFrame::createInstance):
  15455. (WebFrame::QueryInterface):
  15456. (WebFrame::AddRef):
  15457. (WebFrame::Release):
  15458. (WebFrame::initWithName):
  15459. (WebFrame::name):
  15460. (WebFrame::webView):
  15461. (WebFrame::frameView):
  15462. (WebFrame::DOMDocument):
  15463. (WebFrame::frameElement):
  15464. (WebFrame::loadRequest):
  15465. (WebFrame::loadData):
  15466. (WebFrame::loadHTMLString):
  15467. (WebFrame::loadAlternateHTMLString):
  15468. (WebFrame::loadArchive):
  15469. (WebFrame::dataSource):
  15470. (WebFrame::provisionalDataSource):
  15471. (WebFrame::stopLoading):
  15472. (WebFrame::reload):
  15473. (WebFrame::findFrameNamed):
  15474. (WebFrame::parentFrame):
  15475. (WebFrame::childFrames):
  15476. (WebFrame::paint):
  15477. (WebFrame::impl):
  15478. (WebFrame::loadDataSource):
  15479. (WebFrame::loading):
  15480. (WebFrame::goToItem):
  15481. (WebFrame::loadItem):
  15482. (WebSystemMainMemory):
  15483. (WebFrame::getObjectCacheSize):
  15484. (WebFrame::receivedRedirect):
  15485. (WebFrame::receivedResponse):
  15486. (WebFrame::receivedData):
  15487. (WebFrame::receivedAllData):
  15488. (WebFrame::openURL):
  15489. (WebFrame::submitForm):
  15490. (WebFrame::setTitle):
  15491. (WebFrame::setStatusText):
  15492. * COM/WebFrame.h: Added.
  15493. * COM/WebHistoryItem.cpp: Added.
  15494. (WebHistoryItem::WebHistoryItem):
  15495. (WebHistoryItem::~WebHistoryItem):
  15496. (WebHistoryItem::createInstance):
  15497. (WebHistoryItem::QueryInterface):
  15498. (WebHistoryItem::AddRef):
  15499. (WebHistoryItem::Release):
  15500. (WebHistoryItem::initWithURLString):
  15501. (WebHistoryItem::originalURLString):
  15502. (WebHistoryItem::URLString):
  15503. (WebHistoryItem::title):
  15504. (WebHistoryItem::lastVisitedTimeInterval):
  15505. (WebHistoryItem::setAlternateTitle):
  15506. (WebHistoryItem::alternateTitle):
  15507. (WebHistoryItem::icon):
  15508. * COM/WebHistoryItem.h: Added.
  15509. * COM/WebIconDatabase.cpp: Added.
  15510. (WebIconDatabase::WebIconDatabase):
  15511. (WebIconDatabase::~WebIconDatabase):
  15512. (WebIconDatabase::createInstance):
  15513. (WebIconDatabase::QueryInterface):
  15514. (WebIconDatabase::AddRef):
  15515. (WebIconDatabase::Release):
  15516. (WebIconDatabase::sharedIconDatabase):
  15517. (WebIconDatabase::iconForURL):
  15518. (WebIconDatabase::defaultIconWithSize):
  15519. (WebIconDatabase::retainIconForURL):
  15520. (WebIconDatabase::releaseIconForURL):
  15521. (WebIconDatabase::delayDatabaseCleanup):
  15522. (WebIconDatabase::allowDatabaseCleanup):
  15523. * COM/WebIconDatabase.h: Added.
  15524. * COM/WebKitClassFactory.cpp: Added.
  15525. (WebKitClassFactory::WebKitClassFactory):
  15526. (WebKitClassFactory::~WebKitClassFactory):
  15527. (WebKitClassFactory::QueryInterface):
  15528. (WebKitClassFactory::AddRef):
  15529. (WebKitClassFactory::Release):
  15530. (WebKitClassFactory::CreateInstance):
  15531. (WebKitClassFactory::LockServer):
  15532. * COM/WebKitClassFactory.h: Added.
  15533. * COM/WebKitDLL.cpp: Added.
  15534. (DllMain):
  15535. (DllGetClassObject):
  15536. (DllCanUnloadNow):
  15537. (DllUnregisterServer):
  15538. (DllRegisterServer):
  15539. * COM/WebKitDLL.h: Added.
  15540. * COM/WebMutableURLRequest.cpp: Added.
  15541. (WebMutableURLRequest::WebMutableURLRequest):
  15542. (WebMutableURLRequest::~WebMutableURLRequest):
  15543. (WebMutableURLRequest::createInstance):
  15544. (WebMutableURLRequest::QueryInterface):
  15545. (WebMutableURLRequest::AddRef):
  15546. (WebMutableURLRequest::Release):
  15547. (WebMutableURLRequest::requestWithURL):
  15548. (WebMutableURLRequest::allHTTPHeaderFields):
  15549. (WebMutableURLRequest::cachePolicy):
  15550. (WebMutableURLRequest::HTTPBody):
  15551. (WebMutableURLRequest::HTTPBodyStream):
  15552. (WebMutableURLRequest::HTTPMethod):
  15553. (WebMutableURLRequest::HTTPShouldHandleCookies):
  15554. (WebMutableURLRequest::initWithURL):
  15555. (WebMutableURLRequest::mainDocumentURL):
  15556. (WebMutableURLRequest::timeoutInterval):
  15557. (WebMutableURLRequest::URL):
  15558. (WebMutableURLRequest::valueForHTTPHeaderField):
  15559. (WebMutableURLRequest::addValue):
  15560. (WebMutableURLRequest::setAllHTTPHeaderFields):
  15561. (WebMutableURLRequest::setCachePolicy):
  15562. (WebMutableURLRequest::setHTTPBody):
  15563. (WebMutableURLRequest::setHTTPBodyStream):
  15564. (WebMutableURLRequest::setHTTPMethod):
  15565. (WebMutableURLRequest::setHTTPShouldHandleCookies):
  15566. (WebMutableURLRequest::setMainDocumentURL):
  15567. (WebMutableURLRequest::setTimeoutInterval):
  15568. (WebMutableURLRequest::setURL):
  15569. (WebMutableURLRequest::setValue):
  15570. (WebMutableURLRequest::setFormData):
  15571. (WebMutableURLRequest::formData):
  15572. * COM/WebMutableURLRequest.h: Added.
  15573. * COM/WebView.cpp: Added.
  15574. (WebView::WebView):
  15575. (WebView::~WebView):
  15576. (WebView::createInstance):
  15577. (WebView::mouseMoved):
  15578. (WebView::mouseDown):
  15579. (WebView::mouseUp):
  15580. (WebView::mouseDoubleClick):
  15581. (WebView::keyPress):
  15582. (registerWebView):
  15583. (WebViewWndProc):
  15584. (calculateScrollDelta):
  15585. (scrollMessageForKey):
  15586. (WebView::goToItem):
  15587. (WebView::QueryInterface):
  15588. (WebView::AddRef):
  15589. (WebView::Release):
  15590. (WebView::canShowMIMEType):
  15591. (WebView::canShowMIMETypeAsHTML):
  15592. (WebView::MIMETypesShownAsHTML):
  15593. (WebView::setMIMETypesShownAsHTML):
  15594. (WebView::URLFromPasteboard):
  15595. (WebView::URLTitleFromPasteboard):
  15596. (WebView::initWithFrame):
  15597. (WebView::setUIDelegate):
  15598. (WebView::uiDelegate):
  15599. (WebView::setResourceLoadDelegate):
  15600. (WebView::resourceLoadDelegate):
  15601. (WebView::setDownloadDelegate):
  15602. (WebView::downloadDelegate):
  15603. (WebView::setFrameLoadDelegate):
  15604. (WebView::frameLoadDelegate):
  15605. (WebView::setPolicyDelegate):
  15606. (WebView::policyDelegate):
  15607. (WebView::mainFrame):
  15608. (WebView::backForwardList):
  15609. (WebView::setMaintainsBackForwardList):
  15610. (WebView::goBack):
  15611. (WebView::goForward):
  15612. (WebView::goToBackForwardItem):
  15613. (WebView::setTextSizeMultiplier):
  15614. (WebView::textSizeMultiplier):
  15615. (WebView::setApplicationNameForUserAgent):
  15616. (WebView::applicationNameForUserAgent):
  15617. (WebView::setCustomUserAgent):
  15618. (WebView::customUserAgent):
  15619. (WebView::userAgentForURL):
  15620. (WebView::supportsTextEncoding):
  15621. (WebView::setCustomTextEncodingName):
  15622. (WebView::customTextEncodingName):
  15623. (WebView::setMediaStyle):
  15624. (WebView::mediaStyle):
  15625. (WebView::stringByEvaluatingJavaScriptFromString):
  15626. (WebView::windowScriptObject):
  15627. (WebView::setPreferences):
  15628. (WebView::preferences):
  15629. (WebView::setPreferencesIdentifier):
  15630. (WebView::preferencesIdentifier):
  15631. (WebView::setHostWindow):
  15632. (WebView::hostWindow):
  15633. (WebView::searchFor):
  15634. (WebView::registerViewClass):
  15635. (WebView::takeStringURLFrom):
  15636. (WebView::stopLoading):
  15637. (WebView::reload):
  15638. (WebView::canGoBack):
  15639. (WebView::canGoForward):
  15640. (WebView::canMakeTextLarger):
  15641. (WebView::makeTextLarger):
  15642. (WebView::canMakeTextSmaller):
  15643. (WebView::makeTextSmaller):
  15644. (WebView::computedStyleForElement):
  15645. (WebView::editableDOMRangeForPoint):
  15646. (WebView::setSelectedDOMRange):
  15647. (WebView::selectedDOMRange):
  15648. (WebView::selectionAffinity):
  15649. (WebView::setEditable):
  15650. (WebView::isEditable):
  15651. (WebView::setTypingStyle):
  15652. (WebView::typingStyle):
  15653. (WebView::setSmartInsertDeleteEnabled):
  15654. (WebView::smartInsertDeleteEnabled):
  15655. (WebView::setContinuousSpellCheckingEnabled):
  15656. (WebView::isContinuousSpellCheckingEnabled):
  15657. (WebView::spellCheckerDocumentTag):
  15658. (WebView::undoManager):
  15659. (WebView::setEditingDelegate):
  15660. (WebView::editingDelegate):
  15661. (WebView::styleDeclarationWithText):
  15662. (WebView::replaceSelectionWithNode):
  15663. (WebView::replaceSelectionWithText):
  15664. (WebView::replaceSelectionWithMarkupString):
  15665. (WebView::replaceSelectionWithArchive):
  15666. (WebView::deleteSelection):
  15667. (WebView::applyStyle):
  15668. (WebView::copy):
  15669. (WebView::cut):
  15670. (WebView::paste):
  15671. (WebView::copyFont):
  15672. (WebView::pasteFont):
  15673. (WebView::delete_):
  15674. (WebView::pasteAsPlainText):
  15675. (WebView::pasteAsRichText):
  15676. (WebView::changeFont):
  15677. (WebView::changeAttributes):
  15678. (WebView::changeDocumentBackgroundColor):
  15679. (WebView::changeColor):
  15680. (WebView::alignCenter):
  15681. (WebView::alignJustified):
  15682. (WebView::alignLeft):
  15683. (WebView::alignRight):
  15684. (WebView::checkSpelling):
  15685. (WebView::showGuessPanel):
  15686. (WebView::performFindPanelAction):
  15687. (WebView::startSpeaking):
  15688. (WebView::stopSpeaking):
  15689. (WebView::viewWindow):
  15690. * COM/WebView.h: Added.
  15691. * WebKit.vcproj: Added.
  15692. * WebKit.vcproj/Interfaces.vcproj: Added.
  15693. * WebKit.vcproj/WebKit.def: Added.
  15694. * WebKit.vcproj/WebKit.rc: Added.
  15695. * WebKit.vcproj/WebKit.sln: Added.
  15696. * WebKit.vcproj/WebKit.vcproj: Added.
  15697. * WebKit.vcproj/WebKitGUID.vcproj: Added.
  15698. * WebKit.vcproj/autoversion.h: Added.
  15699. * WebKit.vcproj/resource.h: Added.
  15700. 2006-06-02 Darin Adler <darin@apple.com>
  15701. * WebCoreSupport/WebImageRendererFactory.m: Fix crash on Safari startup
  15702. by include NSObject as a superclass (oops!).
  15703. 2006-06-01 Darin Adler <darin@apple.com>
  15704. Reviewed by Maciej.
  15705. - WebCore doesn't need to load WebKit images any more; removed code for that
  15706. * Resources/missing_image.tiff: Removed.
  15707. * WebCoreSupport/WebImageRendererFactory.h: Removed.
  15708. * WebCoreSupport/WebImageRendererFactory.m: Moved @interface in here.
  15709. Removed all but the "threaded decoding" calls that older Safari calls.
  15710. This file can go altogether when compatibility with that older Safari
  15711. is no longer needed.
  15712. * WebKit.xcodeproj/project.pbxproj: Removed WebImageRendererFactory.h
  15713. and missing_image.tiff.
  15714. * WebView/WebFrameView.m: (-[WebFrameView initWithFrame:]): Removed call
  15715. to [WebImageRendererFactory createSharedFactory].
  15716. 2006-06-01 Brady Eidson <beidson@apple.com>
  15717. Reviewed by Maciej.
  15718. Simple changes to hook up the new WebCore based Icon Database
  15719. for testing.
  15720. * ChangeLog:
  15721. * Misc/WebIconDatabase.m:
  15722. (-[WebIconDatabase _applicationWillTerminate:]):
  15723. * Misc/WebIconDatabasePrivate.h:
  15724. * WebKit.xcodeproj/project.pbxproj:
  15725. 2006-06-01 Anders Carlsson <acarlsson@apple.com>
  15726. Reviewed by Darin.
  15727. http://bugs.webkit.org/show_bug.cgi?id=6309
  15728. multiple problems prevent bookmarking/back button technique for AJAX/DHTML applications from working
  15729. * Misc/WebNSURLExtras.m:
  15730. (-[NSString _webkit_URLFragment]):
  15731. Don't include the "#" character in the fragment.
  15732. * WebCoreSupport/WebFrameBridge.m:
  15733. (-[WebFrameBridge historyURL:]):
  15734. New function, returns the history URL for a given position in the back/forward list
  15735. * WebView/WebFrame.m:
  15736. (-[WebFrame _loadItem:withLoadType:]):
  15737. Always call scrollToAnchorWithURL, even if there is no fragment. This way we keep the WebCore frame's
  15738. URL up-to-date.
  15739. 2006-06-01 Maciej Stachowiak <mjs@apple.com>
  15740. Reviewed by Anders.
  15741. - fixed "REGRESSION: Can't order from Pizza Hut (ToT, 05/24/06)"
  15742. http://bugs.webkit.org/show_bug.cgi?id=9103
  15743. * WebView/WebDataSource.m:
  15744. (-[WebDataSource _willSendRequest:forResource:redirectResponse:]): Set up the
  15745. User-Agent header.
  15746. * WebView/WebDataSourceInternal.h:
  15747. * WebView/WebLoader.m:
  15748. (-[NSURLProtocol willSendRequest:redirectResponse:]): Pass a mutable URL request
  15749. so the above can work.
  15750. 2006-06-01 Anders Carlsson <acarlsson@apple.com>
  15751. Reviewed by Darin.
  15752. * WebView/WebFrameView.m:
  15753. (+[WebFrameView _canShowMIMETypeAsHTML:]):
  15754. Use _webkit_objectForMIMEType here so we'll get an object back for "text/".
  15755. 2006-05-31 David Hyatt <hyatt@apple.com>
  15756. Make programmatic focus/blur actually work on sub-frames. Make the
  15757. top-level UI delegate get called for deactivation of windows.
  15758. Reviewed by darin
  15759. * WebCoreSupport/WebFrameBridge.m:
  15760. (-[WebFrameBridge activateWindow]):
  15761. (-[WebFrameBridge deactivateWindow]):
  15762. (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
  15763. (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  15764. * WebKit.xcodeproj/project.pbxproj:
  15765. === WebKit-521.12 ===
  15766. 2006-05-26 David Harrison <harrison@apple.com>
  15767. Reviewed by John Sullivan.
  15768. <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel
  15769. * WebView/WebHTMLView.m:
  15770. (-[WebHTMLView _increaseSelectionListLevel]):
  15771. - Now returns DOMNode*
  15772. (-[WebHTMLView _increaseSelectionListLevelOrdered]):
  15773. (-[WebHTMLView _increaseSelectionListLevelUnordered]):
  15774. - Added. These also return DOMNode*
  15775. * WebView/WebHTMLViewPrivate.h:
  15776. - Updated as above
  15777. 2006-05-25 Tim Omernick <timo@apple.com>
  15778. Reviewed by Anders.
  15779. <http://bugs.webkit.org/show_bug.cgi?id=8347>
  15780. REGRESSION: Flash movie audible but not visible until window is resized
  15781. * Plugins/WebNetscapePluginDocumentView.m:
  15782. (-[WebNetscapePluginDocumentView dataSourceUpdated:]):
  15783. Layout if needed here. Maciej recently removed the "LayoutAcceptable" frame state, which used to
  15784. cause plugin document views to lay out immediately upon receiving data. This call to -layout has
  15785. the same effect.
  15786. === WebKit-521.11.1 ===
  15787. 2006-05-25 Timothy Hatcher <timothy@apple.com>
  15788. Reviewed by Tim O.
  15789. <rdar://problem/4559808> WebKit fails to compile for ppc64
  15790. <rdar://problem/4522085> 64-bit: WebKit uses FSSpec which is not available in 64-bit
  15791. Gets WebKit building under 64-bit. Rename WebNSInt and WebNSUInt to WebNSInteger and WebNSUInteger.
  15792. Start using WebNSInteger where we need to match AppKit API usage of NSInteger.
  15793. HIWebView and a couple of helper functions are disabled until they can be moved off of QuickDraw.
  15794. <rdar://problem/4561772> HIWebView needs to be reworked to not use QuickDraw, needed for 64-bit
  15795. * Carbon/CarbonUtils.m: disabled this file in 64-bit <rdar://problem/4561772>
  15796. * Carbon/CarbonWindowAdapter.m:
  15797. (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
  15798. * Carbon/CarbonWindowFrame.m:
  15799. (+[CarbonWindowFrame frameRectForContentRect:styleMask:]):
  15800. (+[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
  15801. (+[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
  15802. (-[CarbonWindowFrame frameRectForContentRect:styleMask:]):
  15803. (-[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
  15804. (-[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
  15805. * Carbon/HIViewAdapter.m: disabled this file in 64-bit <rdar://problem/4561772>
  15806. * Carbon/HIWebView.m: disabled this file in 64-bit <rdar://problem/4561772>
  15807. (HIWebViewEventHandler):
  15808. * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
  15809. (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveContentLength:fromDataSource:]):
  15810. * History/WebBackForwardList.m:
  15811. (-[WebBackForwardList removeItem:]):
  15812. (-[WebBackForwardList goToItem:]):
  15813. * Misc/WebDownload.m:
  15814. (-[WebDownloadInternal download:didReceiveDataOfLength:]):
  15815. * Misc/WebFileDatabase.m:
  15816. (UniqueFilePathForKey):
  15817. * Misc/WebIconDatabase.m:
  15818. (-[NSMutableDictionary retainIconForURL:]):
  15819. (-[NSMutableDictionary releaseIconForURL:]):
  15820. (-[WebIconDatabase _totalRetainCountForIconURLString:]):
  15821. (-[WebIconDatabase _retainIconForIconURLString:]):
  15822. (-[WebIconDatabase _releaseIconForIconURLString:]):
  15823. * Misc/WebSearchableTextView.m:
  15824. (-[NSString selectionRect]):
  15825. * Misc/WebTypesInternal.h: Added.
  15826. * Plugins/WebBaseNetscapePluginStream.m:
  15827. (-[WebBaseNetscapePluginStream _destroyStream]):
  15828. (CarbonPathFromPOSIXPath):
  15829. * Plugins/WebBaseNetscapePluginView.m:
  15830. (-[WebBaseNetscapePluginView sendActivateEvent:]):
  15831. (-[WebBaseNetscapePluginView sendUpdateEvent]):
  15832. (TSMEventHandler):
  15833. (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
  15834. (-[WebBaseNetscapePluginView _printedPluginBitmap]):
  15835. (-[NSData _web_locationAfterFirstBlankLine]):
  15836. * Plugins/WebBasePluginPackage.m:
  15837. (-[WebBasePluginPackage hash]):
  15838. * Plugins/WebNetscapePluginPackage.m:
  15839. (-[WebNetscapePluginPackage load]):
  15840. (functionPointerForTVector):
  15841. * WebInspector/WebInspector.m:
  15842. (-[WebInspector _updateSystemColors]):
  15843. * WebKit.xcodeproj/project.pbxproj:
  15844. * WebView/WebDataSource.m:
  15845. (-[WebDataSource _didReceiveData:contentLength:forResource:]):
  15846. * WebView/WebFrame.m:
  15847. (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
  15848. * WebView/WebHTMLView.m:
  15849. (-[WebHTMLView drawRect:]):
  15850. (-[WebHTMLView characterIndexForPoint:]):
  15851. (-[WebHTMLView conversationIdentifier]):
  15852. * WebView/WebResourceLoadDelegate.h:
  15853. * WebView/WebUIDelegate.h:
  15854. * WebView/WebView.h:
  15855. * WebView/WebView.m:
  15856. (-[WebView _mouseDidMoveOverElement:modifierFlags:]):
  15857. (-[WebView spellCheckerDocumentTag]):
  15858. * WebView/WebViewInternal.h:
  15859. * WebView/WebViewPrivate.h:
  15860. === WebKit-521.11 ===
  15861. 2006-05-23 Maciej Stachowiak <mjs@apple.com>
  15862. Reviewed by Tim.
  15863. - more loader refactoring to simplify things and remove knowledge of WebView from WebSubresourceLoader
  15864. * WebCoreSupport/WebSubresourceLoader.m:
  15865. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
  15866. (-[WebSubresourceLoader didReceiveResponse:]):
  15867. * WebView/WebDataSource.m:
  15868. (-[WebDataSource _loadIcon]):
  15869. (-[WebDataSource _startLoading]):
  15870. * WebView/WebFrame.m:
  15871. (-[WebFrame _loadRequest:archive:]):
  15872. (-[WebFrame _loadItem:withLoadType:]):
  15873. (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  15874. (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  15875. (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
  15876. * WebView/WebFrameInternal.h:
  15877. * WebView/WebFramePrivate.h:
  15878. * WebView/WebLoader.h:
  15879. * WebView/WebLoader.m:
  15880. * WebView/WebMainResourceLoader.m:
  15881. (-[WebMainResourceLoader initWithDataSource:]):
  15882. (-[WebMainResourceLoader didReceiveResponse:]):
  15883. 2006-05-23 Tim Omernick <timo@apple.com>
  15884. Reviewed by John Sullivan.
  15885. <rdar://problem/4558301> REGRESSION (420+): After clearing history and closing bookmark view window,
  15886. attempting to select Safari's menu bar results in a crash
  15887. * Misc/WebNSWindowExtras.m:
  15888. (replacementPostWindowNeedsDisplay):
  15889. My fix yesterday for 4557117 was not quite good enough. Now that we cancel the display timer for a
  15890. window *before* it deallocates, we need to make sure that while a window deallocates, no new display
  15891. timers are scheduled for that window. This is actually possible, as 4558301 demonstrates.
  15892. Luckily, NSWindow sets a handy "windowDying" flag when it deallocates, so we can just check that flag
  15893. and bail out of the throttle hack if it is set. This should fix the last of the crashes involving
  15894. display timers scheduled for deallocated or deallocating windows.
  15895. 2006-05-23 Maciej Stachowiak <mjs@apple.com>
  15896. Reviewed by Eric.
  15897. - remove knowledge of WebView from WebLoader in preparation for moving the code down
  15898. * WebView/WebDataSource.m:
  15899. (-[WebDataSource _defersCallbacks]):
  15900. (-[WebDataSource _identifierForInitialRequest:]):
  15901. (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
  15902. (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
  15903. (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
  15904. (-[WebDataSource _didReceiveResponse:forResource:]):
  15905. (-[WebDataSource _didReceiveData:contentLength:forResource:]):
  15906. (-[WebDataSource _didFinishLoadingForResource:]):
  15907. (-[WebDataSource _didFailLoadingWithError:forResource:]):
  15908. (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
  15909. (-[WebDataSource _privateBrowsingEnabled]):
  15910. * WebView/WebDataSourceInternal.h:
  15911. * WebView/WebLoader.h:
  15912. * WebView/WebLoader.m:
  15913. (-[WebLoader releaseResources]):
  15914. (-[WebLoader setDataSource:]):
  15915. (-[WebLoader willSendRequest:redirectResponse:]):
  15916. (-[WebLoader didReceiveAuthenticationChallenge:]):
  15917. (-[WebLoader didCancelAuthenticationChallenge:]):
  15918. (-[WebLoader didReceiveResponse:]):
  15919. (-[WebLoader didReceiveData:lengthReceived:]):
  15920. (-[WebLoader signalFinish]):
  15921. (-[WebLoader didFinishLoading]):
  15922. (-[WebLoader didFailWithError:]):
  15923. (-[WebLoader willCacheResponse:]):
  15924. (-[WebLoader cancelWithError:]):
  15925. * WebView/WebMainResourceLoader.m:
  15926. (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
  15927. * WebView/WebView.m:
  15928. (-[WebView _incrementProgressForIdentifier:response:]):
  15929. (-[WebView _incrementProgressForIdentifier:data:]):
  15930. (-[WebView _completeProgressForIdentifier:]):
  15931. * WebView/WebViewInternal.h:
  15932. === WebKit-521.10 ===
  15933. 2006-05-22 Tim Omernick <timo@apple.com>
  15934. Reviewed by Geoff.
  15935. <rdar://problem/4557117> TOT REGRESSION: Repro crash in cancelPendingWindowDisplay --> _timerRelease when
  15936. opening file from file open dialog
  15937. Note that I could not reproduce this situation at all on any of my machines; I had to debug this on Geoff's
  15938. machine.
  15939. * Misc/WebNSWindowExtras.m:
  15940. (replacementDealloc):
  15941. Cancel display timer before dealloc, not after. Cancelling the timer can cause a message to be sent to the
  15942. window; best to do that before the window deallocates.
  15943. (replacementFinalize):
  15944. ditto
  15945. 2006-05-20 Maciej Stachowiak <mjs@apple.com>
  15946. Reviewed by Beth.
  15947. - fix assertion failure on layout tests
  15948. * WebView/WebDataSource.m:
  15949. (-[WebDataSource _mainReceivedError:complete:]): Don't do anything
  15950. if this data source is no longer connected to a frame. Used to be
  15951. this couldn't happen because the WebView would have been nil, but
  15952. we no longer go through the WebView.
  15953. 2006-05-20 Timothy Hatcher <timothy@apple.com>
  15954. Reviewed by Anders.
  15955. Bug 9018: REGRESSION: resizing the top area of the inspector does not grow as expected
  15956. http://bugs.webkit.org/show_bug.cgi?id=9018
  15957. Use clientHeight now that offsetHeight includes the border and padding.
  15958. clientHeight should have been used initially.
  15959. * WebInspector/WebInspector.m:
  15960. (-[WebInspector resizeTopArea]):
  15961. 2006-05-18 Maciej Stachowiak <mjs@apple.com>
  15962. Reviewed by Eric.
  15963. - remove loading-related code from WebView
  15964. http://bugs.webkit.org/show_bug.cgi?id=8981
  15965. * Plugins/WebNetscapePluginStream.m:
  15966. (-[WebNetscapePlugInStreamLoader didFinishLoading]):
  15967. (-[WebNetscapePlugInStreamLoader didFailWithError:]):
  15968. * WebCoreSupport/WebSubresourceLoader.m:
  15969. (-[WebSubresourceLoader receivedError:]):
  15970. (-[WebSubresourceLoader signalFinish]):
  15971. * WebView/WebDataSource.m:
  15972. (-[WebDataSource _stopLoading]):
  15973. (-[WebDataSource _receivedMainResourceError:complete:]):
  15974. (-[WebDataSource _finishedLoadingResource]):
  15975. (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
  15976. (-[WebDataSource _receivedError:]):
  15977. (-[WebDataSource _mainReceivedError:complete:]):
  15978. * WebView/WebDataSourceInternal.h:
  15979. * WebView/WebFrame.m:
  15980. (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
  15981. * WebView/WebMainResourceLoader.m:
  15982. (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
  15983. (-[WebMainResourceLoader didFinishLoading]):
  15984. * WebView/WebView.m:
  15985. * WebView/WebViewInternal.h:
  15986. 2006-05-18 Tim Omernick <timo@apple.com>
  15987. Reviewed by John Sullivan.
  15988. <rdar://problem/4551938> More options needed for window display throttle
  15989. We decided to play it safe and leave our window flushing behavior unchanged from the previous
  15990. public release. By default, CoreGraphics deferred updates are once again OFF, and the window
  15991. display throttle is OFF.
  15992. Individual applications should set the WebKitThrottleWindowDisplayPreferenceKey and
  15993. WebKitEnableDeferredUpdatesPreferenceKey defaults to suit their needs.
  15994. Old behavior (like 10.4.6): WebKitThrottleWindowDisplayPreferenceKey=0 (or unset),
  15995. WebKitEnableDeferredUpdatesPreferenceKey (or unset).
  15996. Tear-free scrolling/animations: WebKitThrottleWindowDisplayPreferenceKey=0 (or unset),
  15997. WebKitEnableDeferredUpdatesPreferenceKey=1. While this configuration fixes the tearing issues
  15998. caused by over-flushing, some applications will experience performance problems as over-flushing
  15999. with CG deferred updates enabled will cause the app to block.
  16000. Tear-free scrolling/animations, high performance: WebKitThrottleWindowDisplayPreferenceKey=1,
  16001. WebKitEnableDeferredUpdatesPreferenceKey=1. This is the riskiest configuration in that it
  16002. enables the window display throttle "feature", potentially breaking applications' assumptions
  16003. about when displays occur. However, it provides the "best of both worlds", in that updates
  16004. are tear-free, and performance impact should me minimal.
  16005. * WebView/WebPreferenceKeysPrivate.h:
  16006. Declared WebKitThrottleWindowDisplayPreferenceKey and WebKitEnableDeferredUpdatesPreferenceKey.
  16007. * WebView/WebFrameView.m:
  16008. (-[WebFrameView initWithFrame:]):
  16009. Turn off CG deferred updates if WebKitEnableDeferredUpdatesPreferenceKey is NO or has no value.
  16010. Added some comments.
  16011. 2006-05-18 John Sullivan <sullivan@apple.com>
  16012. Reviewed by Darin Adler.
  16013. - fixed <rdar://problem/4552713> REGRESSION: WebFrameView no longer responds to responder methods sent by Safari code
  16014. * WebView/WebView.m:
  16015. (-[WebView _responderForResponderOperations]):
  16016. Treat sibling views of the main frameView the same as views outside of the webview for the purposes of this mechanism.
  16017. 2006-05-18 Tim Omernick <timo@apple.com>
  16018. Reviewed by John Sullivan.
  16019. <rdar://problem/4553450> Make disabling window throttle safer
  16020. * Misc/WebNSWindowExtras.m:
  16021. (+[NSWindow _webkit_enableWindowDisplayThrottle]):
  16022. Don't assume that +_webkit_disableWindowDisplayThrottle restored the NSWindow method implementations;
  16023. now we'll only swizzle them once, and our replacement IMPs will call the old IMPs when the window
  16024. throttle is disabled. This is a safer approach when other components/"haxies" override the same methods
  16025. that we are overriding, as it allows the overrides to "chain" properly.
  16026. Moved the dictionary initialization code down a bit. The order doesn't matter here.
  16027. (disableWindowDisplayThrottleApplierFunction):
  16028. Noticed that this could have been written safer with respect to the timer having the last reference to
  16029. the window. I never experienced a crash here, but this code is definitely safer.
  16030. (+[NSWindow _webkit_disableWindowDisplayThrottle]):
  16031. Don't restore NSWindow method implementations; just clear the flag, flush pending displays, and destroy
  16032. the dictionary.
  16033. (replacementPostWindowNeedsDisplay):
  16034. If throttling is disabled, just call the original IMP.
  16035. (clearWindowDisplayInfo):
  16036. Added an assert.
  16037. (replacementDealloc):
  16038. Don't call clearWindowDisplayInfo() when throttling is disabled.
  16039. (replacementFinalize):
  16040. ditto
  16041. (cancelPendingWindowDisplay):
  16042. Removed an unnecessary assertion.
  16043. 2006-05-17 Tim Omernick <timo@apple.com>
  16044. Reviewed by Kevin Decker and John Sullivan.
  16045. <rdar://problem/4550801> REGRESSION: Window throttle code can sometimes leak NSWindows
  16046. The window display throttle depended on windows being closed before they were deallocated; this is
  16047. not guaranteed by AppKit. Windows that were being released without being closed were getting stuck
  16048. in our NSWindow -> WindowDisplayInfo dictionary.
  16049. * Misc/WebNSWindowExtras.m:
  16050. (+[NSWindow _webkit_enableWindowDisplayThrottle]):
  16051. Don't retain the NSWindow keys in the window display info dictionary.
  16052. Instead of overriding -close, override -dealloc and -finalize so that we can remove the NSWindow ->
  16053. WindowDisplayInfo mapping when a window deallocates.
  16054. (+[NSWindow _webkit_disableWindowDisplayThrottle]):
  16055. Restore -dealloc and -finalize.
  16056. (clearWindowDisplayInfo):
  16057. Factored the WindowDisplayInfo cleanup code out of the now-defunct replacementClose().
  16058. (replacementClose):
  16059. Removed; no longer needed.
  16060. (replacementDealloc):
  16061. Clear the WindowDisplayInfo for the window after deallocation.
  16062. (replacementFinalize):
  16063. ditto
  16064. (-[NSWindow _webkit_doPendingPostWindowNeedsDisplay:]):
  16065. Rewrote this method to be safe in the case where the firing display timer has the last reference to the
  16066. window.
  16067. Added comments.
  16068. 2006-05-17 bradeeoh <beidson@apple.com>
  16069. Reviewed by Tim Hatcher
  16070. Consolidated WebDatabase base class into WebFileDatabase as the inheritance relationship became
  16071. obsolete. This improves readability and sets the stage for a further in-depth rewrite of the
  16072. WebIcon* code.
  16073. * Misc/WebDatabase.h: Removed.
  16074. * Misc/WebDatabase.m: Removed.
  16075. * Misc/WebFileDatabase.h:
  16076. * Misc/WebFileDatabase.m:
  16077. (-[WebFileDatabaseOp dealloc]):
  16078. (-[WebFileDatabase dealloc]):
  16079. (-[WebFileDatabase path]):
  16080. (-[WebFileDatabase isOpen]):
  16081. (-[WebFileDatabase sizeLimit]):
  16082. * WebKit.xcodeproj/project.pbxproj:
  16083. 2006-05-17 Adele Peterson <adele@apple.com>
  16084. Reviewed by Hyatt.
  16085. WebKit part of initial checkin to prepare for http://bugs.webkit.org/show_bug.cgi?id=8948
  16086. Switch to use new text field implementation for <textarea>
  16087. * WebView/WebHTMLView.m:
  16088. (-[WebHTMLView insertNewline:]): If we're in plain text mode, insert a line break instead of a paragraph separator.
  16089. (-[WebHTMLView insertParagraphSeparator:]): ditto.
  16090. * WebView/WebView.m: (-[WebView _menuForElement:defaultItems:]):
  16091. Checks for textareas as well as textfields before allowing the delegate to control
  16092. the context menu. This won't affect the old textareas because AppKit handles those context menus.
  16093. 2006-05-17 John Sullivan <sullivan@apple.com>
  16094. Reviewed by Maciej.
  16095. First step towards making text-matching mechanism more flexible; updated for changes
  16096. to WebCoreFrameBridge calls.
  16097. * WebView/WebHTMLView.m:
  16098. (-[WebHTMLView highlightAllMatchesForString:caseSensitive:]):
  16099. updated for name change in WebCoreFrameBridge, also now calls setMarkedTextMatchesAreHighlighted:
  16100. (-[WebHTMLView clearHighlightedMatches]):
  16101. updated for name change in WebCoreFrameBridge
  16102. 2006-05-16 Matt Gough <matt@softchaos.com>
  16103. Reviewed by Geoff.
  16104. Ensured all the public headers have a newline at their end.
  16105. Client code can now have 'Missing Newline at end of File' warnings enabled without emitting
  16106. such warnings against any WebKit includes.
  16107. * Misc/WebDownload.h:
  16108. * Plugins/npfunctions.h:
  16109. * WebView/WebResourceLoadDelegate.h:
  16110. * WebView/WebUIDelegate.h:
  16111. * WebView/WebView.h:
  16112. 2006-05-16 Tim Omernick <timo@apple.com>
  16113. Reviewed by Tim Hatcher.
  16114. http://bugs.webkit.org/show_bug.cgi?id=8945 (REGRESSION: Scrolling is very slow when dragging
  16115. the thumb)
  16116. Rolled out one of my tweaks to the window display throttle hack (remember the last flush time instead
  16117. of the last display time). While that was technically a better approach, we discovered a problem
  16118. with how it interacts with NSView scroll tracking. Rather than further complicate this already
  16119. crazy hack, I'm reverting back to the simple version. This should yield similar numbers on iBench,
  16120. but not exhibit the nasty scrolling problem.
  16121. * Misc/WebNSWindowExtras.m:
  16122. (+[NSWindow _webkit_enableWindowDisplayThrottle]):
  16123. (+[NSWindow _webkit_disableWindowDisplayThrottle]):
  16124. (getWindowDisplayInfo):
  16125. (requestWindowDisplay):
  16126. 2006-05-16 bradeeoh <beidson@apple.com>
  16127. Reviewed by Maciej Stachowiak
  16128. - Fixed an old deprecated method in Misc/WebFileDatabase.m
  16129. * Misc/WebFileDatabase.m:
  16130. (UniqueFilePathForKey): changed `lossyCString` to `UTF8String`
  16131. 2006-05-16 Darin Adler <darin@apple.com>
  16132. Reviewed by Anders.
  16133. - did the name change from "ImageElement" to "ImageForElement" that I said I would
  16134. (oops!)
  16135. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  16136. (-[WebDefaultUIDelegate copyImageToClipboard:]):
  16137. * Misc/WebNSPasteboardExtras.h:
  16138. * Misc/WebNSPasteboardExtras.m:
  16139. (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
  16140. * Misc/WebNSViewExtras.h:
  16141. * Misc/WebNSViewExtras.m:
  16142. (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
  16143. * WebView/WebHTMLView.m:
  16144. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  16145. * WebView/WebView.m:
  16146. (-[WebView _writeImageForElement:withPasteboardTypes:toPasteboard:]):
  16147. (-[WebView writeElement:withPasteboardTypes:toPasteboard:]):
  16148. * WebView/WebViewInternal.h:
  16149. 2006-05-16 Darin Adler <darin@apple.com>
  16150. Reviewed by Anders.
  16151. - http://bugs.webkit.org/show_bug.cgi?id=8940
  16152. remove extra copy of image code
  16153. * English.lproj/StringsNotToBeLocalized.txt: Updated for many recent changes.
  16154. * WebKit.xcodeproj/project.pbxproj: Removed files.
  16155. * WebCoreSupport/WebImageData.h: Removed.
  16156. * WebCoreSupport/WebImageData.m: Removed.
  16157. * WebCoreSupport/WebImageDecodeItem.h: Removed.
  16158. * WebCoreSupport/WebImageDecodeItem.m: Removed.
  16159. * WebCoreSupport/WebImageDecoder.h: Removed.
  16160. * WebCoreSupport/WebImageDecoder.m: Removed.
  16161. * WebCoreSupport/WebImageRenderer.h: Removed.
  16162. * WebCoreSupport/WebImageRenderer.m: Removed.
  16163. * WebCoreSupport/WebImageRendererFactory.h:
  16164. * WebCoreSupport/WebImageRendererFactory.m: Removed everything except for
  16165. shouldUseThreadedDecoding, setShouldUseThreadedDecoding, and imageDataForName:.
  16166. * Misc/WebNSPasteboardExtras.h: Removed WebImageRenderer parameter from
  16167. _web_declareAndWriteDragImage and renamed _web_declareAndWriteDragImageElement.
  16168. * Misc/WebNSPasteboardExtras.m:
  16169. (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]): Changed to
  16170. call +[WebFrameBridge supportedImageResourceMIMETypes] instead of
  16171. -[WebImageRendererFactory supportedMIMETypes].
  16172. (-[NSPasteboard _web_declareAndWriteDragImageElement:URL:title:archive:source:]):
  16173. Removed WebImageRenderer parameter, and updated code since it was always nil.
  16174. * Misc/WebNSViewExtras.h: Removed WebImageRenderer parameter from
  16175. _web_dragImage and renamed _web_dragImageElement.
  16176. * Misc/WebNSViewExtras.m:
  16177. (-[NSView _web_dragImageElement:rect:event:pasteboard:source:offset:]):
  16178. Removed WebImageRenderer parameter, and updated code since it was always nil.
  16179. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Added some new
  16180. functions now used by WebCore.
  16181. * WebView/WebDataSource.m: (-[WebDataSource _documentFragmentWithArchive:]):
  16182. Call +[WebFrameBridge supportedImageResourceMIMETypes] instead of
  16183. -[WebImageRendererFactory supportedMIMETypes].
  16184. * WebView/WebFrameView.m: Removed include of WebImageRenderer.h.
  16185. * WebView/WebHTMLRepresentation.m: (+[WebHTMLRepresentation supportedImageMIMETypes]):
  16186. Removed call to +[WebImageRendererFactory createSharedFactory].
  16187. * WebView/WebHTMLView.m:
  16188. (-[WebHTMLView _imageExistsAtPaths:]): Call +[WebFrameBridge supportedImageResourceMIMETypes]
  16189. instead of -[WebImageRendererFactory supportedMIMETypes].
  16190. (-[WebHTMLView _documentFragmentWithPaths:]): Ditto.
  16191. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): Update
  16192. to no longer pass nil for an image to _web_declareAndWriteDragImageElement and to
  16193. _web_dragImageElement.
  16194. (-[WebHTMLView dealloc]): Remove call to now-unneeded _reset.
  16195. (-[WebHTMLView finalize]): Ditto.
  16196. (-[WebHTMLView viewDidMoveToWindow]): Remove logic for calling _reset, including the inWindow
  16197. boolean field.
  16198. * WebView/WebHTMLViewInternal.h: Removed inWindow boolean.
  16199. * WebView/WebHTMLViewPrivate.h: Removed _reset method.
  16200. 2006-05-16 Darin Adler <darin@apple.com>
  16201. Reviewed by Hyatt.
  16202. - fix http://bugs.webkit.org/show_bug.cgi?id=8898
  16203. REGRESSION: Attempting to right-click image in own tab on website causes crash
  16204. - fix http://bugs.webkit.org/show_bug.cgi?id=8919
  16205. REGRESSION: image could not be dragged, subsequent click-drag activity caused crash
  16206. These fixes may become obsolete when Anders lands his standalone image viewer
  16207. patch, but in my tree they are needed to make Copy Image work after the fix
  16208. over on the WebCore side to avoid the crashes.
  16209. * Misc/WebNSPasteboardExtras.h: Change _web_writeImage parameter to an NSImage.
  16210. * Misc/WebNSPasteboardExtras.m:
  16211. (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]): Change parameter
  16212. to an NSImage instead of a WebImageRenderer.
  16213. (-[NSPasteboard _web_declareAndWriteDragImage:element:URL:title:archive:source:]):
  16214. Call -[WebImageRenderer image] to get an NSImage to pass to _web_writeImage.
  16215. * WebView/WebView.m: (-[WebView _writeImageElement:withPasteboardTypes:toPasteboard:]):
  16216. Get the image using WebElementImageKey if WebElementDOMNodeKey is nil.
  16217. 2006-05-16 Anders Carlsson <acarlsson@apple.com>
  16218. Reviewed by Maciej.
  16219. http://bugs.webkit.org/show_bug.cgi?id=8921
  16220. Use WebCore to render full-frame images
  16221. * WebCoreSupport/WebFrameBridge.m:
  16222. (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
  16223. Remove WebImageView handling.
  16224. (-[WebFrameBridge mainResourceURLResponse]):
  16225. New function which returns the URL response for the main resource. This is used by the
  16226. manual loading of images.
  16227. (-[WebFrameBridge imageTitleForFilename:size:]):
  16228. New function which returns a correctly translated image title given a filename and a size.
  16229. * WebCoreSupport/WebImageRenderer.m:
  16230. (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
  16231. Remove WebImageView handling.
  16232. * WebKit.xcodeproj/project.pbxproj:
  16233. Remove WebImageRepresentation and WebImageView.
  16234. * WebView/WebArchiver.h:
  16235. * WebView/WebArchiver.m:
  16236. (+[WebArchiver archiveMainResourceForFrame:]):
  16237. New functions which returns a WebArchive with just the main resource, ignoring any subresources.
  16238. * WebView/WebDataSource.m:
  16239. (+[WebDataSource _repTypesAllowImageTypeOmission:]):
  16240. Use MIME types from WebHTMLRepresentation instead of WebImageRepresentation.
  16241. * WebView/WebFrameView.m:
  16242. (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
  16243. Use MIME types from WebHTMLRepresentation instead of WebImageRepresentation.
  16244. (+[WebHTMLRepresentation supportedMIMETypes]):
  16245. Create an array of image and non-image MIME Types.
  16246. (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
  16247. (+[WebHTMLRepresentation supportedImageMIMETypes]):
  16248. New functions, separating the list of MIME types into image and non-image ones.
  16249. * WebView/WebHTMLView.m:
  16250. (+[WebHTMLView supportedImageMIMETypes]):
  16251. (+[WebHTMLView supportedNonImageMIMETypes]):
  16252. New functions which call down to WebHTMLRepresentation.
  16253. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  16254. If the image element comes from an ImageDocument, just use an archive of the main resource
  16255. instead of the generated HTML document.
  16256. * WebView/WebHTMLViewPrivate.h:
  16257. Declare new functions.
  16258. * WebView/WebImageRepresentation.h: Removed.
  16259. * WebView/WebImageRepresentation.m: Removed.
  16260. * WebView/WebImageView.h: Removed.
  16261. * WebView/WebImageView.m: Removed.
  16262. 2006-05-15 Tim Omernick <timo@apple.com>
  16263. Reviewed by John Sullivan.
  16264. Part of <rdar://problem/4466508> Add 64-bit support to the Netscape Plugin API
  16265. Added to the Netscape Plugin API the concept of "plugin drawing models". The drawing model
  16266. determines the kind of graphics context created by the browser for the plugin, as well as
  16267. the Mac types of various Netscape Plugin API data structures.
  16268. There is a drawing model to represent the old QuickDraw-based API. It is used by default
  16269. if QuickDraw is available on the system, unless the plugin specifies another drawing model.
  16270. The big change is the addition of the CoreGraphics drawing model. A plugin may request this
  16271. drawing model to obtain access to a CGContextRef for drawing, instead of a QuickDraw CGrafPtr.
  16272. * Plugins/WebBaseNetscapePluginView.h:
  16273. Added PluginPort union, which wraps a NP_Port and a NP_CGContext. This is to make access to
  16274. the nPort and lastSetPort ivars more convenient now that the port type differs based on the
  16275. drawing model.
  16276. Changed types of nPort and lastSetPort to PluginPort so they can be used with any drawing model.
  16277. Added drawingModel ivar.
  16278. * Plugins/WebBaseNetscapePluginView.m:
  16279. Renamed PortState to PortState_QD. PortState is now an opaque pointer. PortState_QD cannot be
  16280. used if QuickDraw is unavailable.
  16281. (-[WebBaseNetscapePluginView fixWindowPort]):
  16282. Cannot be used if QuickDraw is unavailable.
  16283. (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
  16284. Only fix window port if drawing model is QuickDraw.
  16285. Re-ordered some code so I could group QuickDraw-specific stuff into switch and if blocks (that's
  16286. why the diff here is so terrible).
  16287. Now returns a malloc()'ed PortState that the caller is responsible for freeing. Renamed to
  16288. better reflect this behavior.
  16289. Support for the CoreGraphics drawing model -- fill PortState_CG struct, save CGContext state.
  16290. (-[WebBaseNetscapePluginView restorePortState:]):
  16291. Switch based on drawing model.
  16292. Support for the CoreGraphics drawing model -- restore CGContext state saved earlier.
  16293. (-[WebBaseNetscapePluginView sendEvent:]):
  16294. Formatting.
  16295. Don't set save/set port state or set the window in CoreGraphics mode unless the event being
  16296. sent is an updateEvt. We can't provide the plugin with a CGContext outside of our view display
  16297. cycle.
  16298. Don't restore PortState if it's NULL (didn't used to be a pointer). Free when we're done with it.
  16299. (-[WebBaseNetscapePluginView isNewWindowEqualToOldWindow]):
  16300. Formatting.
  16301. Switch how we compare ports based on the drawing model.
  16302. (-[WebBaseNetscapePluginView updateAndSetWindow]):
  16303. Fixed for CoreGraphics by triggering a redisplay instead of sending an update event to the plugin
  16304. outside of the view display cycle.
  16305. Don't restore PortState if it's NULL (didn't used to be a pointer). Free when we're done with it.
  16306. (-[WebBaseNetscapePluginView setWindowIfNecessary]):
  16307. Assert that the window is only set when updating in CoreGraphics mode.
  16308. Log differently depending on the drawing model.
  16309. (-[WebBaseNetscapePluginView start]):
  16310. Fall back on QuickDraw if the plugin does not specify a drawing model.
  16311. (-[WebBaseNetscapePluginView tellQuickTimeToChill]):
  16312. Cannot be used if QuickDraw is unavailable.
  16313. (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
  16314. Only call -tellQuickTimeToChill in QuickDraw mode.
  16315. (-[WebBaseNetscapePluginView viewHasMoved:]):
  16316. ditto
  16317. (-[WebBaseNetscapePluginView invalidateRegion:]):
  16318. NPRegion is a CGPathRef in CoreGraphics mode.
  16319. (-[WebBaseNetscapePluginView getVariable:value:]):
  16320. Added support for retriveing the NPNVpluginDrawingModel, NPNVsupportsQuickDrawBool, and
  16321. NPNVsupportsCoreGraphicsBool browser variables.
  16322. (-[WebBaseNetscapePluginView setVariable:value:]):
  16323. Added support for setting the NPNVpluginDrawingModel variable.
  16324. 2006-05-15 Tim Omernick <timo@apple.com>
  16325. Reviewed by Kevin Decker.
  16326. Follow-up to my previous PLT fix. I found upon further testing (by dramatically decreasing the
  16327. allowed display rate) that +_webkit_displayThrottledWindows did not always force a display when
  16328. necessary. The reason is that I was not giving a proper timeout to CFRunLoopRunInMode(). I was
  16329. passing 0, which was causing only "expired" timers to fire. This method is actually supposed to
  16330. block until all currently scheduled display timers fire.
  16331. I tested this change and found that it did not affect my PLT times when the display rate was
  16332. capped to 60 fps. It also behaves as expected when the display rate is set much lower (say, 1
  16333. display per second); my previous fix did not work well at such display rates.
  16334. * Misc/WebNSWindowExtras.m:
  16335. (+[NSWindow _webkit_displayThrottledWindows]):
  16336. Run the runloop for an amount of time equal to the minimum allowed interval between displays.
  16337. This ensures that we'll block until all currently scheduled display timers fire (but we won't
  16338. block for future display timers).
  16339. 2006-05-15 John Sullivan <sullivan@apple.com>
  16340. Reviewed by Tim Omernick.
  16341. - followup to previous fix; I hadn't tested quitting adequately
  16342. * WebView/WebHTMLView.m:
  16343. (-[WebHTMLView dealloc]):
  16344. call removeAllToolTips before clearing _private so that removeTrackingRect: override can work
  16345. properly. Normally removeAllToolTips would be called by super, but that's too late.
  16346. (-[WebHTMLView finalize]):
  16347. ditto
  16348. 2006-05-15 John Sullivan <sullivan@apple.com>
  16349. Reviewed by Darin.
  16350. - fixed <rdar://problem/4503016> TOT assertion failure in -[WebHTMLView(WebPrivate) removeTrackingRect:]
  16351. We have some tricky code to deal with tracking rects, which succumbed to a fix in AppKit. Updated our
  16352. tricky code to work with the AppKit fix.
  16353. * WebView/WebHTMLViewInternal.h:
  16354. new instance variable lastToolTipTag
  16355. * WebView/WebHTMLView.m:
  16356. (-[WebHTMLView removeTrackingRect:]):
  16357. handle removing lastToolTipTag by calling super
  16358. (-[WebHTMLView _setToolTip:]):
  16359. save tool tip tag in lastToolTipTag; this apparently used to always return 0, so we formerly had no way
  16360. to distinguish it from the no-tool-tips-yet case.
  16361. * WebKit.xcodeproj/project.pbxproj:
  16362. Xcode removed some old cruft
  16363. 2006-05-15 Tim Omernick <timo@apple.com>
  16364. Reviewed by Darin.
  16365. Safari's Page Load Test (PLT) saturates the runloop with so many sources that timers are not allowed to fire
  16366. as frequently as they should. This is a general problem with the PLT -- because of this, it does not measure
  16367. work done in timer callbacks during/after the page load process.
  16368. Unfortunately, this aspect of the PLT interferes with our window display throttle hack. Because we throttle
  16369. display using timers, and the PLT starves timers, most of the pages loaded by the PLT do not actually display.
  16370. This makes the PLT run "too fast", yielding ridiculously fast numbers compared to when throttling is disabled.
  16371. I've added a new method that the PLT can call after each page load to force any starved display throttle timers
  16372. to fire. By doing this, Safari's PLT will be guaranteed to display each page at least once.
  16373. * Misc/WebNSWindowExtras.h:
  16374. * Misc/WebNSWindowExtras.m:
  16375. Added a special internal runloop mode for the throttle timers.
  16376. (+[NSWindow _webkit_displayThrottledWindows]):
  16377. Run the runloop in our special internal mode until there are no more sources to handle.
  16378. (requestWindowDisplay):
  16379. Schedule the timer in the new mode as well as the standard modes.
  16380. 2006-05-15 Anders Carlsson <acarlsson@apple.com>
  16381. Reviewed by Maciej.
  16382. http://bugs.webkit.org/show_bug.cgi?id=8913
  16383. REGRESSION: Can view source for text files
  16384. * WebView/WebDocumentPrivate.h:
  16385. Add canSaveAsWebArchive.
  16386. * WebView/WebHTMLRepresentation.m:
  16387. (-[WebHTMLRepresentation canProvideDocumentSource]):
  16388. Call the bridge.
  16389. (-[WebHTMLRepresentation canSaveAsWebArchive]):
  16390. New function. This will be used in Safari ToT to determine if a page can be saved as an archive.
  16391. 2006-05-14 Mitz Pettel <opendarwin.org@mitzpettel.com>
  16392. Reviewed by Darin.
  16393. - fix http://bugs.webkit.org/show_bug.cgi?id=8739
  16394. Crash in RenderTableSection::paint due to manipulating DOM on resize
  16395. Manual test: manual-tests/dom-manipulation-on-resize.html
  16396. * WebView/WebHTMLView.m:
  16397. (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Relayout if necessary
  16398. after sending the resize event.
  16399. 2006-05-12 Maciej Stachowiak <mjs@apple.com>
  16400. Reviewed by Brady.
  16401. http://bugs.webkit.org/show_bug.cgi?id=8876
  16402. - move most private WebDataSource methods to uninstalled header
  16403. I put the declarations for the ones only used in WebKit in WebDataSourceInternal.h
  16404. and removed two entirey unused ones.
  16405. * Plugins/WebNetscapePluginRepresentation.m:
  16406. * Plugins/WebNetscapePluginStream.m:
  16407. * Plugins/WebPluginController.m:
  16408. * Plugins/WebPluginDocumentView.m:
  16409. * WebCoreSupport/WebFrameBridge.m:
  16410. (-[WebFrameBridge dataSource]):
  16411. * WebCoreSupport/WebSubresourceLoader.m:
  16412. * WebKit.xcodeproj/project.pbxproj:
  16413. * WebView/WebDataSource.m:
  16414. (-[WebDataSource _updateIconDatabaseWithURL:]):
  16415. (-[WebDataSource _loadIcon]):
  16416. (-[WebDataSource _clearErrors]):
  16417. (-[WebDataSource _commitLoadWithData:]):
  16418. (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
  16419. (-[WebDataSource _addResponse:]):
  16420. * WebView/WebDataSourceInternal.h: Added.
  16421. * WebView/WebDataSourcePrivate.h:
  16422. * WebView/WebFrame.m:
  16423. * WebView/WebHTMLRepresentation.m:
  16424. * WebView/WebHTMLView.m:
  16425. * WebView/WebImageView.m:
  16426. * WebView/WebLoader.m:
  16427. * WebView/WebMainResourceLoader.m:
  16428. * WebView/WebPDFView.m:
  16429. * WebView/WebRenderNode.m:
  16430. * WebView/WebView.m:
  16431. 2006-05-12 Tim Omernick <timo@apple.com>
  16432. Reviewed by John Sullivan.
  16433. <rdar://problem/4542808> REGRESSION: benchjs test 1 has slowed by over 150% (8740)
  16434. <http://bugs.webkit.org/show_bug.cgi?id=8740>
  16435. Improvement to my NSWindow display throttle hack. Remember the last flush time instead of the last display time.
  16436. Our goal is to never draw less than 1/60th of a second after the window is flushed in order to avoid blocking on
  16437. a CG coalesced update. Using the last display time is close, but this is much more accurate. I have verified that
  16438. this further improves our score on BenchJS Test 1 (by 9.8% with the status bar shown compared to the previous build),
  16439. as well as on our internal PLT scores by a smaller percentage.
  16440. * Misc/WebNSWindowExtras.m:
  16441. Renamed lastDisplayTime to lastFlushTime.
  16442. (+[NSWindow _webkit_enableWindowDisplayThrottle]):
  16443. Replace -[NSWindow flushWindow] with our own implementation.
  16444. (+[NSWindow _webkit_disableWindowDisplayThrottle]):
  16445. Restore -[NSWindow flushWindow].
  16446. (replacementFlushWindow):
  16447. Use the last flush time instead of the last display time.
  16448. (getWindowDisplayInfo):
  16449. Renamed lastDisplayTime to lastFlushTime.
  16450. (requestWindowDisplay):
  16451. Moved some code to replacementFlushWindow().
  16452. 2006-05-11 Timothy Hatcher <timothy@apple.com>
  16453. Reviewed by Darin.
  16454. Bug 8856: Web Inspector should show the Xpath for the selected node
  16455. http://bugs.webkit.org/show_bug.cgi?id=8856
  16456. Adds an Xpath area to the Node panel.
  16457. * WebInspector/webInspector/inspector.css:
  16458. * WebInspector/webInspector/inspector.html:
  16459. * WebInspector/webInspector/inspector.js:
  16460. 2006-05-11 Timothy Hatcher <timothy@apple.com>
  16461. Reviewed by Anders.
  16462. Fixes <rdar://problem/4411845> lots of SPOD trying to scroll through
  16463. Markup & Content inspecting body at apple.com (6614)
  16464. http://bugs.webkit.org/show_bug.cgi?id=6614
  16465. Removed the Markup & Content pane when viewing a element.
  16466. This pane was not that useful and made the inspector really slow
  16467. when the markup was large. Only show this pane for text nodes.
  16468. * WebInspector/webInspector/inspector.css: use -webkit prefix
  16469. * WebInspector/webInspector/inspector.html:
  16470. * WebInspector/webInspector/inspector.js:
  16471. 2006-05-11 Sam Weinig <sam.weinig@gmail.com>
  16472. Reviewed by Timothy.
  16473. Patch for <http://bugs.webkit.org/show_bug.cgi?id=8810>
  16474. Bug 8810: Scrollbars in WebInspector rendered incorrectly
  16475. * WebInspector/webInspector/inspector.css:
  16476. Make scroll bars absolutely positioned.
  16477. 2006-05-10 Tim Omernick <timo@apple.com>
  16478. Reviewed by Darin.
  16479. <rdar://problem/4542808> REGRESSION: benchjs test 1 has slowed by over 150% (8740)
  16480. <http://bugs.webkit.org/show_bug.cgi?id=8740>
  16481. * Misc/WebNSWindowExtras.h:
  16482. * Misc/WebNSWindowExtras.m:
  16483. (+[NSWindow _webkit_enableWindowDisplayThrottle]):
  16484. Overrides certain NSWindow methods so that window autodisplay can be throttled to 60Hz.
  16485. (disableWindowDisplayThrottleApplierFunction):
  16486. CFDictionary applier function for when the throttle is disabled. Cancels all pending window displays,
  16487. and calls -displayIfNeeded on each window with a pending display.
  16488. (+[NSWindow _webkit_disableWindowDisplayThrottle]):
  16489. Restores default NSWindow method implementations and clears pending window displays.
  16490. (swizzleInstanceMethod):
  16491. Helper function to swizzle ObjC method implementations.
  16492. (replacementPostWindowNeedsDisplay):
  16493. Don't call into -[NSWindow _postWindowNeedsDisplay] if requestWindowDisplay() returns NO (this is the
  16494. function that throttles display).
  16495. (replacementClose):
  16496. Clean up the WindowDisplayInfo struct for the window, since it's about to go away.
  16497. (getWindowDisplayInfo):
  16498. Gets the WindowDisplayInfo struct for the window, or creates it if absent.
  16499. (requestWindowDisplay):
  16500. Returns YES if a display is allowed right now. Returns NO otherwise, and schedules a timer to try the
  16501. display again.
  16502. (cancelPendingWindowDisplay):
  16503. Cancels the pending display for the window, if any.
  16504. (-[NSWindow _webkit_doPendingPostWindowNeedsDisplay:]):
  16505. Try to call _postWindowNeedsDisplay again.
  16506. * WebView/WebFrameView.m:
  16507. (-[WebFrameView initWithFrame:]):
  16508. If the secret "WebKitThrottleWindowDisplay" default is set, then enable the NSWindow throttle.
  16509. 2006-05-10 Anders Carlsson <acarlsson@apple.com>
  16510. Reviewed by Maciej.
  16511. * WebView/WebHTMLView.m:
  16512. (+[WebHTMLView unsupportedTextMIMETypes]):
  16513. Add text/rtf
  16514. 2006-05-09 Levi Weintraub <lweintraub@apple.com>
  16515. Reviewed by justin.
  16516. <rdar://problem/4442395>
  16517. Tiny MCE: Link isn't inserted after dragging into textarea field
  16518. * WebView/WebHTMLView.m:
  16519. (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]):
  16520. Modified to create an anchor object with a title as opposed to just the URL as text.
  16521. 2006-05-09 Tim Omernick <timo@apple.com>
  16522. Reviewed by Dave Harrison.
  16523. <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or
  16524. other WebPreferences changes)
  16525. * Plugins/WebBaseNetscapePluginView.m:
  16526. (-[WebBaseNetscapePluginView viewWillMoveToHostWindow:]):
  16527. When the plugin view is removed from both its window and its hostWindow, stop observing
  16528. WebPreferences.
  16529. 2006-05-09 Anders Carlsson <acarlsson@apple.com>
  16530. Reviewed by Darin.
  16531. http://bugs.webkit.org/show_bug.cgi?id=8808
  16532. WebCore should handle text files
  16533. * WebKit.exp:
  16534. Remove WebTextView.
  16535. * WebKit.xcodeproj/project.pbxproj:
  16536. Get rid of WebTextView and WebTextRepresentation.
  16537. * WebView/WebDataSource.m:
  16538. (+[WebDataSource _repTypesAllowImageTypeOmission:]):
  16539. * WebView/WebFrameView.m:
  16540. (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
  16541. * WebView/WebHTMLView.m:
  16542. The text MIME types are now handled by WebHTMLView.
  16543. (+[WebHTMLView unsupportedTextMIMETypes]):
  16544. New function, moved here from WebTextView.
  16545. * WebView/WebHTMLViewPrivate.h:
  16546. * WebView/WebTextRepresentation.h: Removed.
  16547. * WebView/WebTextRepresentation.m: Removed.
  16548. * WebView/WebTextView.h: Removed.
  16549. * WebView/WebTextView.m: Removed.
  16550. * WebView/WebView.m:
  16551. (+[WebView _viewClass:andRepresentationClass:forMIMEType:]):
  16552. Now special-case WebHTMLView instead of WebTextView for MIME types
  16553. that shouldn't be shown.
  16554. 2006-05-09 Maciej Stachowiak <mjs@apple.com>
  16555. Rubber stamped by Anders.
  16556. - renamed kxmlcore to wtf
  16557. kxmlcore --> wtf
  16558. KXMLCore --> WTF
  16559. KXC --> WTF
  16560. * Misc/WebKitLogging.h:
  16561. * Misc/WebKitLogging.m:
  16562. (initializeLogChannel):
  16563. 2006-05-09 Timothy Hatcher <timothy@apple.com>
  16564. Reviewed by Anders.
  16565. Bug 8804: Inspector should support searching by Xpath query
  16566. http://bugs.webkit.org/show_bug.cgi?id=8804
  16567. * WebInspector/WebInspector.m:
  16568. (-[WebInspector _refreshSearch]):
  16569. * WebInspector/webInspector/inspector.js:
  16570. 2006-05-08 Maciej Stachowiak <mjs@apple.com>
  16571. Reviewed by Tim Hatcher.
  16572. - refactor things so that WebKit doesn't save a WebResource for every loaded URL,
  16573. but rather retrieves the data from the WebCore cache as needed.
  16574. http://bugs.webkit.org/show_bug.cgi?id=8802
  16575. * WebCoreSupport/WebFrameBridge.m:
  16576. (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
  16577. (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  16578. * WebCoreSupport/WebSubresourceLoader.m:
  16579. (-[WebSubresourceLoader didReceiveResponse:]):
  16580. * WebView/WebDataSource.m:
  16581. (-[WebDataSourcePrivate dealloc]):
  16582. (-[WebDataSource _setupForReplaceByMIMEType:]):
  16583. (-[WebDataSource _archivedSubresourceForURL:]):
  16584. (-[WebDataSource initWithRequest:]):
  16585. (-[WebDataSource subresources]):
  16586. (-[WebDataSource subresourceForURL:]):
  16587. (-[WebDataSource addSubresource:]):
  16588. * WebView/WebDataSourcePrivate.h:
  16589. * WebView/WebFrame.m:
  16590. * WebView/WebFrameInternal.h:
  16591. * WebView/WebHTMLView.m:
  16592. * WebView/WebLoader.h:
  16593. * WebView/WebLoader.m:
  16594. (-[NSURLProtocol loadWithRequest:]):
  16595. (-[NSURLProtocol didFinishLoading]):
  16596. * WebView/WebUnarchivingState.h:
  16597. * WebView/WebUnarchivingState.m:
  16598. (-[WebUnarchivingState addResource:]):
  16599. 2006-05-04 Mitz Pettel <opendarwin.org@mitzpettel.com>
  16600. Reviewed by Darin.
  16601. - fix http://bugs.webkit.org/show_bug.cgi?id=8594
  16602. REGRESSION: Exception on closing a page containing (just) an mp3
  16603. Test: plugins/pluginDocumentView-deallocated-dataSource.html
  16604. * Plugins/WebPluginDocumentView.m:
  16605. (-[WebPluginDocumentView dealloc]): Release the dataSource.
  16606. (-[WebPluginDocumentView setDataSource:]): Retain the dataSource.
  16607. 2006-05-04 Tim Omernick <timo@apple.com>
  16608. Reviewed by Darin.
  16609. <rdar://problem/4537606> Give Java WebKit plugin access to its own DOM element
  16610. * WebCoreSupport/WebFrameBridge.m:
  16611. (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
  16612. Pass the DOMElement to the plugin if it's a WebKit plugin (we need to handle Netscape plugins
  16613. differently).
  16614. 2006-05-04 Tim Omernick <timo@apple.com>
  16615. Reviewed by John Sullivan.
  16616. <rdar://problem/4480186> Give WebKit plugins access to their own DOM element
  16617. This does not fix <rdar://problem/4480187> Give Netscape plugins access to their own DOM element --
  16618. we're not going to use the ObjC DOM API for that, but rather the NP bindings API.
  16619. * Plugins/WebPluginPackage.m:
  16620. Declared WebPlugInContainingElementKey. This is not a new plugin argument -- it's been in our public
  16621. headers since all along, but has never been concretely declared -- plugins that referenced it would not
  16622. link.
  16623. * WebCoreSupport/WebFrameBridge.m:
  16624. (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:]):
  16625. Added DOMElement parameter, which is now included in the plugin arguments dictionary.
  16626. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:]):
  16627. ditto
  16628. * WebKit.exp:
  16629. Export WebPlugInContainingElementKey.
  16630. 2006-05-02 Darin Adler <darin@apple.com>
  16631. Reviewed by Eric.
  16632. - http://bugs.webkit.org/show_bug.cgi?id=8677
  16633. REGRESSION: wkSetUpFontCache() may be called before the SPIs are connected.
  16634. I don't know how reproduce this without one of Rosyna's hacks installed, so I
  16635. did not include a test.
  16636. * Misc/WebStringTruncator.m: (+[WebStringTruncator initialize]): Add call to
  16637. InitWebCoreSystemInterface.
  16638. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Add a boolean
  16639. so we will only do this one time.
  16640. 2006-05-02 Adele Peterson <adele@apple.com>
  16641. Reviewed by Tim O.
  16642. - fix http://bugs.webkit.org/show_bug.cgi?id=6988
  16643. REGRESSION: Display correct context menus for new text fields
  16644. * WebView/WebView.m: (-[WebView _menuForElement:defaultItems:]):
  16645. Don't let the UI delegate have control over the context menu for text fields.
  16646. 2006-05-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
  16647. Reviewed by Darin.
  16648. - fix http://bugs.webkit.org/show_bug.cgi?id=8658
  16649. Assertion failure in -[WebPluginContainerCheck _isForbiddenFileLoad]
  16650. (bridge is null) when clicking QuickTime object with href
  16651. * WebView/WebHTMLView.m:
  16652. (-[WebHTMLView setDataSource:]): Set the pluginController's dataSource.
  16653. 2006-05-01 Maciej Stachowiak <mjs@apple.com>
  16654. - fix build
  16655. * WebKit.exp: Add symbol that the new Safari will need.
  16656. 2006-05-01 John Sullivan <sullivan@apple.com>
  16657. Reviewed by Tim Omernick.
  16658. - fixed <rdar://problem/3126419> history load enforces history limit, but deletes the newest instead of oldest items
  16659. - added notification reporting items discarded during load because the age limit or item count limit is exceeded
  16660. - a few other minor tweaks
  16661. * History/WebHistory.h:
  16662. fixed a typo and an incorrect method name
  16663. * History/WebHistoryPrivate.h:
  16664. Added declaration of WebHistoryItemsDiscardedWhileLoadingNotification. Also changed signature of
  16665. WebHistoryPrivate method -loadFromURL:error: to have new collectDiscardedItemsInto: parameter.
  16666. Also deleted declarations of two methods that didn't actually exist (loadHistory and initWithFile:),
  16667. and added comments about which methods should become public API, WebKit-internal, or file-internal.
  16668. * History/WebHistory.m:
  16669. (-[WebHistoryPrivate arrayRepresentation]):
  16670. This method, called only by _saveHistoryGuts:, used to deliberately leave out items that violated
  16671. either the age limit or the item count limit. Now all the items are included (and thus saved), and
  16672. all the pruning is done at load time, so clients can keep track of the pruned items by observing
  16673. the new WebHistoryItemsDiscardedWhileLoadingNotification
  16674. (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
  16675. Now keeps track of all the items that violated the age limit or item count limit in the new
  16676. collectedDiscardedItemsInto: parameter. Also, now processes items in forward order rather than
  16677. reverse order to fix 3126419. Now uses compare: rather than _webkit_compareDay: to check against
  16678. age limit; this is faster and also more correct (most noticeable with small age limits).
  16679. (-[WebHistoryPrivate loadFromURL:collectDiscardedItemsInto:error:]):
  16680. new collectDiscardedItemsInto: parameter, passed into _loadHistoryGuts:...
  16681. (-[WebHistory loadFromURL:error:]):
  16682. Now sends new WebHistoryItemsDiscardedWhileLoadingNotification if any items were discarded due
  16683. to age limit or item count limit.
  16684. * WebKit.exp:
  16685. exported symbol for WebHistoryItemsDiscardedWhileLoadingNotification
  16686. 2006-04-29 Timothy Hatcher <timothy@apple.com>
  16687. Reviewed by Maciej.
  16688. Bug 8577: [TabBarView _web_superviewOfClass:stoppingAtClass:]
  16689. http://bugs.webkit.org/show_bug.cgi?id=8577
  16690. Added back _web_superviewOfClass:stoppingAtClass:.
  16691. This method was removed in r14032 (bug 8562), but Safari 2.0 still uses it.
  16692. We should remove this method once Open Source users have a new version
  16693. to use with TOT WebKit.
  16694. * Misc/WebNSViewExtras.m:
  16695. (-[NSView _web_superviewOfClass:stoppingAtClass:]):
  16696. 2006-04-28 David Hyatt <hyatt@apple.com>
  16697. Double the cache size to account for our revised (more accurate)
  16698. measurement of the image buffers.
  16699. Reviewed by darin
  16700. * WebView/WebPreferences.m:
  16701. (+[WebPreferences initialize]):
  16702. 2006-04-28 David Hyatt <hyatt@apple.com>
  16703. Fix for 8586, move WebTextRenderer into WebCore.
  16704. Reviewed by darin
  16705. * Misc/WebKitNSStringExtras.m:
  16706. (-[NSString _web_drawAtPoint:font:textColor:]):
  16707. (-[NSString _web_widthWithFont:]):
  16708. * Misc/WebStringTruncator.m:
  16709. (+[WebStringTruncator centerTruncateString:toWidth:]):
  16710. (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
  16711. (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
  16712. (+[WebStringTruncator widthOfString:font:]):
  16713. * WebCoreSupport/WebSystemInterface.m:
  16714. (InitWebCoreSystemInterface):
  16715. * WebCoreSupport/WebTextRenderer.h: Removed.
  16716. * WebCoreSupport/WebTextRenderer.m: Removed.
  16717. * WebCoreSupport/WebTextRendererFactory.h: Removed.
  16718. * WebCoreSupport/WebTextRendererFactory.m: Removed.
  16719. * WebKit.xcodeproj/project.pbxproj:
  16720. * WebView/WebFrameView.m:
  16721. (-[WebFrameView initWithFrame:]):
  16722. * WebView/WebHTMLView.m:
  16723. (-[WebHTMLView _addToStyle:fontA:fontB:]):
  16724. * WebView/WebTextView.m:
  16725. (-[WebTextView setFixedWidthFont]):
  16726. * WebView/WebView.m:
  16727. (+[WebView _setAlwaysUseATSU:]):
  16728. (+[WebView _setShouldUseFontSmoothing:]):
  16729. (+[WebView _shouldUseFontSmoothing]):
  16730. 2006-04-28 Eric Seidel <eseidel@apple.com>
  16731. Reviewed by darin.
  16732. Misc. style cleanup.
  16733. http://bugs.webkit.org/show_bug.cgi?id=8643
  16734. * Misc/WebIconDatabase.m:
  16735. (-[NSMutableDictionary iconForURL:withSize:cache:]):
  16736. (-[NSMutableDictionary iconURLForURL:]):
  16737. (-[NSMutableDictionary retainIconForURL:]):
  16738. (-[NSMutableDictionary releaseIconForURL:]):
  16739. (-[WebIconDatabase _setIcon:forIconURL:]):
  16740. (-[WebIconDatabase _iconsForIconURLString:]):
  16741. (-[WebIconDatabase _forgetIconForIconURLString:]):
  16742. (-[WebIconDatabase _releaseIconForIconURLString:]):
  16743. (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]):
  16744. * Plugins/WebBasePluginPackage.m:
  16745. (+[WebBasePluginPackage pluginWithPath:]):
  16746. (-[WebBasePluginPackage pathByResolvingSymlinksAndAliasesInPath:]):
  16747. (-[WebBasePluginPackage initWithPath:]):
  16748. (-[WebBasePluginPackage getPluginInfoFromBundleAndMIMEDictionary:]):
  16749. (-[WebBasePluginPackage pListForPath:createFile:]):
  16750. (-[WebBasePluginPackage getPluginInfoFromPLists]):
  16751. (-[WebBasePluginPackage load]):
  16752. (-[WebBasePluginPackage setMIMEToExtensionsDictionary:]):
  16753. (-[WebBasePluginPackage isNativeLibraryData:]):
  16754. (-[NSArray _web_lowercaseStrings]):
  16755. * Plugins/WebNetscapePluginPackage.m:
  16756. (-[WebNetscapePluginPackage openResourceFile]):
  16757. (-[WebNetscapePluginPackage closeResourceFile:]):
  16758. (-[WebNetscapePluginPackage stringForStringListID:andIndex:]):
  16759. (-[WebNetscapePluginPackage getPluginInfoFromResources]):
  16760. (-[WebNetscapePluginPackage initWithPath:]):
  16761. (-[WebNetscapePluginPackage executableType]):
  16762. (-[WebNetscapePluginPackage unloadWithoutShutdown]):
  16763. (-[WebNetscapePluginPackage load]):
  16764. (-[WebNetscapePluginPackage unload]):
  16765. * Plugins/WebNetscapePluginRepresentation.m:
  16766. (-[WebNetscapePluginRepresentation redeliverStream]):
  16767. * Plugins/WebPluginDatabase.m:
  16768. (+[WebPluginDatabase installedPlugins]):
  16769. (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
  16770. (-[WebPluginDatabase pluginForExtension:]):
  16771. (pluginLocations):
  16772. (-[WebPluginDatabase init]):
  16773. (-[WebPluginDatabase refresh]):
  16774. * Plugins/npapi.m:
  16775. (NPN_MemAlloc):
  16776. (NPN_MemFree):
  16777. (pluginViewForInstance):
  16778. * WebCoreSupport/WebSubresourceLoader.m:
  16779. (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
  16780. (-[WebSubresourceLoader willSendRequest:redirectResponse:]):
  16781. * WebView/WebDataSource.m:
  16782. (-[WebDataSource isLoading]):
  16783. * WebView/WebFrame.m:
  16784. (-[WebFrame _loadDataSource:withLoadType:formState:]):
  16785. (-[WebFrame _subframeIsLoading]):
  16786. * WebView/WebView.m:
  16787. (-[WebView initWithFrame:]):
  16788. (-[WebView initWithFrame:frameName:groupName:]):
  16789. 2006-04-26 Tim Omernick <timo@apple.com>
  16790. Reviewed by Geoff.
  16791. <rdar://problem/4525105> Repro TOT crash in [WebBaseNetscapePluginView dealloc] at coachella.com
  16792. <http://bugs.webkit.org/show_bug.cgi?id=8564> crashed when closing a tab
  16793. * WebView/WebFrame.m:
  16794. (-[WebFramePrivate dealloc]):
  16795. Assert that plugInViews has been released.
  16796. (-[WebFrame _addPlugInView:]):
  16797. New method. Adds the plug-in view to the plugInViews set and calls -setWebFrame: on it.
  16798. (-[WebFrame _removeAllPlugInViews]):
  16799. New method. Calls -setWebFrame:nil on all plug-in views and releases the plugInViews set.
  16800. (-[WebFrame _willCloseURL]):
  16801. New method. Dispose of plug-in views when leaving a page (or closing the WebView).
  16802. * WebView/WebFrameInternal.h:
  16803. Declared -_addPlugInView:, -_removeAllPlugInViews, -_willCloseURL
  16804. * WebCoreSupport/WebFrameBridge.m:
  16805. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
  16806. Call -[WebFrame _addPlugInView:] instead of directly setting plug-in views' frames. This
  16807. allows us to keep track of them so that we can explicitly dispose of them when leaving the page.
  16808. (-[WebFrameBridge closeURL]):
  16809. Override -[WebCoreFrameBridge closeURL] so that we can perform our own teardown when leaving
  16810. a page or closing the WebView.
  16811. * Plugins/WebBaseNetscapePluginView.h:
  16812. Declared -stop so that subclass WebNetscapePluginEmbeddedView can call it.
  16813. * Plugins/WebNetscapePluginEmbeddedView.m:
  16814. (-[WebNetscapePluginEmbeddedView setWebFrame:]):
  16815. Stop the plug-in when it is removed from its WebFrame.
  16816. 2006-04-25 Tim Omernick <timo@apple.com>
  16817. Reviewed by John Sullivan.
  16818. <rdar://problem/4472035> SPI that checks for URL policy fails in plugin documents
  16819. * Plugins/WebPluginController.h:
  16820. * Plugins/WebPluginController.m:
  16821. (-[WebPluginController URLPolicyCheckReferrer]):
  16822. New method. Get the referrer from the frame's data source's NSURLResponse. Note that for
  16823. document types loaded by WebCore, this URL is the same as -[WebCorePageBridge referrer],
  16824. since the response URL is what we pass to -[WebCorePageBridge openURL:].
  16825. * Plugins/WebPluginContainerCheck.m:
  16826. (-[WebPluginContainerCheck _isForbiddenFileLoad]):
  16827. Use the WebPluginController's -URLPolicyCheckReferrer instead of assuming that the bridge's
  16828. -referrer is valid. -[WebCorePageBridge referrer] is only set during the normal WebCore page
  16829. load process, which has nothing to do with loading standalone plugin documents.
  16830. 2006-04-25 Tim Omernick <timo@apple.com>
  16831. Reviewed by Eric.
  16832. <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc]
  16833. running layout tests
  16834. * Plugins/WebPluginPackage.m:
  16835. (-[WebPluginPackage unload]):
  16836. Clear isLoaded here. It turns out that only WebNetscapePluginPackage cleared its isLoaded
  16837. flag in -unload. We need to also do it here, because the superclass (WebBasePluginPackage)
  16838. asserts in -dealloc that -unload has been called.
  16839. 2006-04-25 Tim Omernick <timo@apple.com>
  16840. Reviewed by Eric.
  16841. <rdar://problem/4526120> -[WebBasePluginPackage finalize] leaks the CFBundle (under GC only)
  16842. * Plugins/WebBasePluginPackage.m:
  16843. (-[WebBasePluginPackage finalize]):
  16844. Release the CFBundle here.
  16845. 2006-04-25 Tim Omernick <timo@apple.com>
  16846. Reviewed by Geoff.
  16847. <rdar://problem/4472037>
  16848. Private extensions to the WebPlugin interface. A plugin may implement these methods to receive loading callbacks
  16849. for its main resource. Plug-ins that implement this SPI show better loading progress in the browser, can be saved
  16850. to disk, and are more efficient by avoiding making duplicate GET or POST requests for the plug-in's main resource.
  16851. I want to provide a solid API for plug-in networking, but time constraints require that I first provide this simple
  16852. SPI for internal clients.
  16853. * Plugins/WebPluginViewFactoryPrivate.h:
  16854. Added a new plugin argument, WebPlugInShouldLoadMainResourceKey. If YES, the plugin is responsible
  16855. for loading its own content. If NO, the plugin should wait for WebKit to send it the data via the
  16856. new request-sharing SPI.
  16857. * Plugins/WebPluginPrivate.h: Added.
  16858. Request-sharing SPI. See comments in code.
  16859. * Plugins/WebPluginDocumentView.h:
  16860. Hang onto the plugin view as an ivar so we can call the new resource loading methods on it.
  16861. * Plugins/WebPluginDocumentView.m:
  16862. (-[WebPluginDocumentView dealloc]):
  16863. Release pluginView ivar.
  16864. (-[WebPluginDocumentView setDataSource:]):
  16865. Pass NO for WebPlugInShouldLoadMainResourceKey to indicate to the plugin that it should not
  16866. load its own main resource -- the data will come from WebKit. This is only necessary for plugin
  16867. documents. By the time we create the view for a plugin document, we already have fetched some
  16868. of its main resource's data. Embedded plugins do not have this issue because WebKit is not
  16869. involved in loading their content.
  16870. Call -webPlugInMainResourceDidReceivResponse: on the plugin if necessary. This lets the plugin
  16871. know how much and what kind of data is going to be received.
  16872. (-[WebPluginDocumentView dataSourceUpdated:]):
  16873. If the plugin implements the new request-sharing SPI, don't cancel the in-progress request.
  16874. (-[WebPluginDocumentView receivedData:withDataSource:]):
  16875. Forward to the plugin via the new request-sharing SPI.
  16876. (-[WebPluginDocumentView receivedError:withDataSource:]):
  16877. ditto
  16878. (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
  16879. ditto
  16880. * Plugins/WebPluginPackage.m:
  16881. Added WebPlugInShouldLoadMainResourceKey, tweaked some style a bit.
  16882. * WebCoreSupport/WebFrameBridge.m:
  16883. (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
  16884. Pass YES for WebPlugInShouldLoadMainResourceKey. Embedded plugins must load their own data.
  16885. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
  16886. ditto
  16887. * WebKit.xcodeproj/project.pbxproj:
  16888. Added WebPluginPrivate.h
  16889. 2006-04-24 Maciej Stachowiak <mjs@apple.com>
  16890. Reviewed by Geoff.
  16891. <rdar://problem/4525364> REGRESSION (yesterday?): LOG() mechanism is broken
  16892. - initialize WebKit's log channels
  16893. * Misc/WebKitLogging.h:
  16894. * Misc/WebKitLogging.m:
  16895. (initializeLogChannel):
  16896. (WebKitInitializeLoggingChannelsIfNecessary):
  16897. * WebView/WebPreferences.m:
  16898. (+[WebPreferences initialize]):
  16899. * WebView/WebView.m:
  16900. (-[WebView _commonInitializationWithFrameName:groupName:]):
  16901. 2006-04-24 Maciej Stachowiak <mjs@apple.com>
  16902. Build fix:
  16903. - move some prematurely moved code back
  16904. * WebCoreSupport/WebFrameBridge.h:
  16905. * WebCoreSupport/WebFrameBridge.m:
  16906. (-[WebFrameBridge fini]):
  16907. (-[WebFrameBridge _preferences]):
  16908. (-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]):
  16909. (-[WebFrameBridge keyboardUIMode]):
  16910. 2006-04-24 Maciej Stachowiak <mjs@apple.com>
  16911. Reviewed by Darin.
  16912. - move more code from WebFrameBridge to WebCoreFrameBridge
  16913. * WebCoreSupport/WebFrameBridge.h:
  16914. * WebCoreSupport/WebFrameBridge.m:
  16915. (-[WebFrameBridge fini]):
  16916. (-[WebFrameBridge expiresTimeForResponse:]):
  16917. (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
  16918. (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  16919. (-[WebFrameBridge valueForKey:keys:values:]):
  16920. (-[WebFrameBridge _preferences]):
  16921. 2006-04-24 Maciej Stachowiak <mjs@apple.com>
  16922. Reviewed by Anders.
  16923. - Remove use of _webSuperviewOfClass: and related
  16924. http://bugs.webkit.org/show_bug.cgi?id=8562
  16925. I removed all use of these, now objects get at each other via
  16926. actual pointers, not using the view hierarchy. However, I left two
  16927. of the calls in because other clients rely on them as SPI (ugh).
  16928. * History/WebHistoryItem.m:
  16929. * Misc/WebNSViewExtras.h:
  16930. * Misc/WebNSViewExtras.m:
  16931. (-[NSView _web_superviewOfClass:]):
  16932. (-[NSView _web_parentWebFrameView]):
  16933. * Plugins/WebNetscapePluginDocumentView.m:
  16934. (-[WebNetscapePluginDocumentView layout]):
  16935. * Plugins/WebNetscapePluginEmbeddedView.h:
  16936. * Plugins/WebNetscapePluginEmbeddedView.m:
  16937. (-[WebNetscapePluginEmbeddedView setWebFrame:]):
  16938. (-[WebNetscapePluginEmbeddedView dataSource]):
  16939. * Plugins/WebNullPluginView.h:
  16940. * Plugins/WebNullPluginView.m:
  16941. (-[WebNullPluginView setWebFrame:]):
  16942. (-[WebNullPluginView viewDidMoveToWindow]):
  16943. * Plugins/WebPluginController.h:
  16944. * Plugins/WebPluginController.m:
  16945. (-[WebPluginController setDataSource:]):
  16946. (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
  16947. (-[WebPluginController webPlugInContainerShowStatus:]):
  16948. (-[WebPluginController webPlugInContainerSelectionColor]):
  16949. (-[WebPluginController webFrame]):
  16950. * Plugins/WebPluginDocumentView.h:
  16951. * Plugins/WebPluginDocumentView.m:
  16952. (-[WebPluginDocumentView setDataSource:]):
  16953. (-[WebPluginDocumentView layout]):
  16954. (-[WebPluginDocumentView currentWindow]):
  16955. (-[WebPluginDocumentView viewWillMoveToWindow:]):
  16956. * WebCoreSupport/WebFrameBridge.m:
  16957. (-[WebFrameBridge formControlIsBecomingFirstResponder:]):
  16958. (-[WebFrameBridge formControlIsResigningFirstResponder:]):
  16959. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
  16960. * WebCoreSupport/WebViewFactory.m:
  16961. (-[WebViewFactory bridgeForView:]):
  16962. * WebView/WebClipView.m:
  16963. (-[NSView initWithFrame:]):
  16964. * WebView/WebFrameView.m:
  16965. (-[WebFrameView _shouldDrawBorder]):
  16966. (-[WebFrameView webCoreBridge]):
  16967. * WebView/WebHTMLView.m:
  16968. (-[WebTextCompleteController dealloc]):
  16969. (-[WebHTMLView _dataSource]):
  16970. (-[WebHTMLView _bridge]):
  16971. (-[WebHTMLView _webView]):
  16972. (-[WebHTMLView _frameView]):
  16973. (-[WebHTMLView _web_firstResponderCausesFocusDisplay]):
  16974. (-[WebHTMLView becomeFirstResponder]):
  16975. (-[WebHTMLView setDataSource:]):
  16976. (-[WebHTMLView pageUp:]):
  16977. (-[WebHTMLView pageDown:]):
  16978. (-[WebHTMLView pageUpAndModifySelection:]):
  16979. (-[WebHTMLView pageDownAndModifySelection:]):
  16980. (-[WebHTMLView _frame]):
  16981. * WebView/WebHTMLViewInternal.h:
  16982. * WebView/WebImageView.h:
  16983. * WebView/WebImageView.m:
  16984. (-[WebImageView drawRect:]):
  16985. (-[WebImageView adjustFrameSize]):
  16986. (-[WebImageView setDataSource:]):
  16987. (-[WebImageView webView]):
  16988. (-[WebImageView writeImageToPasteboard:types:]):
  16989. (-[WebImageView copy:]):
  16990. (-[WebImageView elementAtPoint:]):
  16991. (-[WebImageView mouseDragged:]):
  16992. * WebView/WebPDFView.h:
  16993. * WebView/WebPDFView.m:
  16994. (-[WebPDFView _applyPDFDefaults]):
  16995. (-[WebPDFView _trackFirstResponder]):
  16996. (-[PDFPrefUpdatingProxy forwardInvocation:]):
  16997. * WebView/WebRenderNode.m:
  16998. (-[WebRenderNode initWithWebFrameView:]):
  16999. * WebView/WebTextView.h:
  17000. * WebView/WebTextView.m:
  17001. (-[WebTextView _textSizeMultiplierFromWebView]):
  17002. (-[WebTextView _preferences]):
  17003. (-[WebTextView setDataSource:]):
  17004. (-[WebTextView _webFrame]):
  17005. (-[WebTextView dragSelectionWithEvent:offset:slideBack:]):
  17006. (-[WebTextView menuForEvent:]):
  17007. (-[WebTextView resignFirstResponder]):
  17008. (-[WebTextView drawPageBorderWithSize:]):
  17009. (-[WebTextView knowsPageRange:]):
  17010. * WebView/WebView.m:
  17011. (-[WebView searchFor:direction:caseSensitive:wrap:]):
  17012. (containingFrameView):
  17013. (-[WebView _focusedFrame]):
  17014. (-[WebView _frameViewAtWindowPoint:]):
  17015. 2006-04-23 Maciej Stachowiak <mjs@apple.com>
  17016. Reviewed by Darin.
  17017. - push WebFileButton and WebStringTruncator code down to WebCore
  17018. http://bugs.webkit.org/show_bug.cgi?id=8552
  17019. * Misc/WebStringTruncator.m:
  17020. (+[WebStringTruncator centerTruncateString:toWidth:]):
  17021. (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
  17022. (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
  17023. (+[WebStringTruncator widthOfString:font:]):
  17024. * WebCoreSupport/WebFileButton.h: Removed.
  17025. * WebCoreSupport/WebFileButton.m: Removed.
  17026. * WebCoreSupport/WebFrameBridge.h:
  17027. * WebCoreSupport/WebFrameBridge.m:
  17028. (-[WebFrameBridge runOpenPanelForFileButtonWithResultListener:]):
  17029. * WebCoreSupport/WebViewFactory.m:
  17030. (-[WebViewFactory fileButtonChooseFileLabel]):
  17031. (-[WebViewFactory fileButtonNoFileSelectedLabel]):
  17032. * WebKit.xcodeproj/project.pbxproj:
  17033. 2006-04-23 Maciej Stachowiak <mjs@apple.com>
  17034. Reviewed by Eric.
  17035. - remove WebCookieAdapter, WebCore can just use Foundation directly.
  17036. * WebCoreSupport/WebCookieAdapter.h: Removed.
  17037. * WebCoreSupport/WebCookieAdapter.m: Removed.
  17038. * WebKit.xcodeproj/project.pbxproj:
  17039. * WebView/WebFrameView.m:
  17040. (-[WebFrameView initWithFrame:]):
  17041. 2006-04-23 Maciej Stachowiak <mjs@apple.com>
  17042. Reviewed by Adele.
  17043. - prune WebView SPI of unused calls
  17044. Specifically I moved methods that have no callers outside WebKit
  17045. to WebViewInternal.h or removed them entirely.
  17046. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  17047. * Plugins/WebBaseNetscapePluginView.m:
  17048. * Plugins/WebNetscapePluginDocumentView.m:
  17049. * Plugins/WebNetscapePluginStream.m:
  17050. * Plugins/WebNullPluginView.m:
  17051. * Plugins/WebPluginContainerCheck.m:
  17052. * Plugins/WebPluginController.m:
  17053. * WebCoreSupport/WebFrameBridge.m:
  17054. * WebCoreSupport/WebPageBridge.m:
  17055. * WebCoreSupport/WebSubresourceLoader.m:
  17056. * WebView/WebDataSource.m:
  17057. * WebView/WebHTMLView.m:
  17058. * WebView/WebImageView.m:
  17059. * WebView/WebLoader.m:
  17060. * WebView/WebMainResourceLoader.m:
  17061. * WebView/WebPDFView.m:
  17062. * WebView/WebScriptDebugDelegate.m:
  17063. * WebView/WebView.m:
  17064. (-[WebView _downloadURL:]):
  17065. * WebView/WebViewInternal.h:
  17066. * WebView/WebViewPrivate.h:
  17067. 2006-04-22 Maciej Stachowiak <mjs@apple.com>
  17068. Reviewed by Eric.
  17069. - remove WebKit copy of assertions code, use the assertions
  17070. stuff from JavaScriptCore instead.
  17071. * Carbon/HIViewAdapter.m:
  17072. * DOM/WebDOMOperations.m:
  17073. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  17074. * DefaultDelegates/WebDefaultPolicyDelegate.m:
  17075. (-[WebDefaultPolicyDelegate webView:unableToImplementPolicyWithError:frame:]):
  17076. * History/WebBackForwardList.m:
  17077. * History/WebHistory.m:
  17078. (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
  17079. (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
  17080. * History/WebHistoryItem.m:
  17081. * Misc/WebAssertions.h: Removed.
  17082. * Misc/WebAssertions.m: Removed.
  17083. * Misc/WebDatabase.m:
  17084. * Misc/WebDownload.m:
  17085. * Misc/WebFileDatabase.m:
  17086. (SetThreadPriority):
  17087. * Misc/WebIconDatabase.m:
  17088. (-[NSMutableDictionary iconForURL:withSize:cache:]):
  17089. (-[NSMutableDictionary releaseIconForURL:]):
  17090. (-[NSMutableDictionary delayDatabaseCleanup]):
  17091. (-[NSMutableDictionary allowDatabaseCleanup]):
  17092. (-[WebIconDatabase _loadIconDictionaries]):
  17093. (-[WebIconDatabase _updateFileDatabase]):
  17094. (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]):
  17095. * Misc/WebIconLoader.m:
  17096. * Misc/WebKitLogging.h:
  17097. * Misc/WebKitLogging.m:
  17098. * Misc/WebKitSystemBits.m:
  17099. (initCapabilities):
  17100. * Misc/WebLRUFileList.m:
  17101. (WebLRUFileListRemoveOldestFileFromList):
  17102. (WebLRUFileListGetFileSize):
  17103. * Misc/WebLocalizableStrings.m:
  17104. * Misc/WebNSCalendarDateExtras.m:
  17105. * Misc/WebNSDataExtras.m:
  17106. * Misc/WebNSDictionaryExtras.m:
  17107. * Misc/WebNSFileManagerExtras.m:
  17108. * Misc/WebNSPasteboardExtras.m:
  17109. * Misc/WebNSURLExtras.m:
  17110. (hexDigit):
  17111. (hexDigitValue):
  17112. (allCharactersInIDNScriptWhiteList):
  17113. * Misc/WebNSURLRequestExtras.m:
  17114. * Misc/WebNSUserDefaultsExtras.m:
  17115. * Misc/WebStringTruncator.m:
  17116. * Panels/WebAuthenticationPanel.m:
  17117. (-[WebAuthenticationPanel loadNib]):
  17118. * Panels/WebPanelAuthenticationHandler.m:
  17119. * Plugins/WebBaseNetscapePluginStream.m:
  17120. (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
  17121. (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
  17122. * Plugins/WebBaseNetscapePluginView.m:
  17123. (TSMEventHandler):
  17124. (-[WebBaseNetscapePluginView start]):
  17125. (-[WebBaseNetscapePluginView status:]):
  17126. (-[WebBaseNetscapePluginView _printedPluginBitmap]):
  17127. * Plugins/WebBasePluginPackage.m:
  17128. * Plugins/WebNetscapePluginDocumentView.m:
  17129. * Plugins/WebNetscapePluginPackage.m:
  17130. (-[WebNetscapePluginPackage load]):
  17131. * Plugins/WebNetscapePluginRepresentation.m:
  17132. * Plugins/WebPluginContainerCheck.m:
  17133. * Plugins/WebPluginController.m:
  17134. (-[WebPluginController addPlugin:]):
  17135. (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
  17136. (-[WebPluginController webPlugInContainerShowStatus:]):
  17137. * Plugins/WebPluginDatabase.m:
  17138. * Plugins/WebPluginDocumentView.m:
  17139. * WebCoreSupport/WebCookieAdapter.m:
  17140. * WebCoreSupport/WebFileButton.m:
  17141. * WebCoreSupport/WebFrameBridge.m:
  17142. (-[WebFrameBridge runModal]):
  17143. * WebCoreSupport/WebImageData.m:
  17144. (-[WebImageData _checkSolidColor:]):
  17145. (-[WebImageData tileInRect:fromPoint:context:]):
  17146. (-[WebImageData scaleAndTileInRect:fromRect:withHorizontalTileRule:withVerticalTileRule:context:]):
  17147. * WebCoreSupport/WebImageDecoder.m:
  17148. * WebCoreSupport/WebImageRenderer.m:
  17149. (-[WebImageRenderer TIFFRepresentation]):
  17150. * WebCoreSupport/WebImageRendererFactory.m:
  17151. * WebCoreSupport/WebJavaScriptTextInputPanel.m:
  17152. * WebCoreSupport/WebKeyGenerator.m:
  17153. * WebCoreSupport/WebPageBridge.m:
  17154. * WebCoreSupport/WebSubresourceLoader.m:
  17155. * WebCoreSupport/WebTextRenderer.m:
  17156. (widthForGlyph):
  17157. (-[WebTextRenderer initWithFont:]):
  17158. (drawGlyphs):
  17159. (initializeATSUStyle):
  17160. (createATSULayoutParameters):
  17161. (getTextBounds):
  17162. (ATSU_draw):
  17163. * WebCoreSupport/WebTextRendererFactory.m:
  17164. * WebCoreSupport/WebViewFactory.m:
  17165. * WebKit.exp:
  17166. * WebKit.xcodeproj/project.pbxproj:
  17167. * WebKitPrefix.h:
  17168. * WebView/WebArchiver.m:
  17169. (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
  17170. * WebView/WebClipView.m:
  17171. * WebView/WebDataProtocol.m:
  17172. * WebView/WebDataSource.m:
  17173. (-[WebDataSource _startLoading]):
  17174. * WebView/WebFormDataStream.m:
  17175. (formEventCallback):
  17176. (webSetHTTPBody):
  17177. * WebView/WebFrame.m:
  17178. (-[WebFrame _transitionToCommitted:]):
  17179. * WebView/WebFrameView.m:
  17180. * WebView/WebHTMLRepresentation.m:
  17181. * WebView/WebHTMLView.m:
  17182. (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
  17183. (-[WebHTMLView drawSingleRect:]):
  17184. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
  17185. (-[WebHTMLView _scaleFactorForPrintOperation:]):
  17186. (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]):
  17187. (-[WebHTMLView checkSpelling:]):
  17188. (-[WebHTMLView showGuessPanel:]):
  17189. (-[WebHTMLView _changeSpellingToWord:]):
  17190. (-[WebHTMLView ignoreSpelling:]):
  17191. (-[WebHTMLView performFindPanelAction:]):
  17192. (-[WebTextCompleteController doCompletion]):
  17193. * WebView/WebImageView.m:
  17194. * WebView/WebLoader.m:
  17195. (-[NSURLProtocol connection:willCacheResponse:]):
  17196. * WebView/WebPDFRepresentation.m:
  17197. (+[WebPDFRepresentation PDFDocumentClass]):
  17198. * WebView/WebPDFView.m:
  17199. (+[WebPDFView PDFKitBundle]):
  17200. (+[WebPDFView PDFViewClass]):
  17201. (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
  17202. * WebView/WebTextRepresentation.m:
  17203. * WebView/WebTextView.m:
  17204. * WebView/WebUnarchivingState.m:
  17205. * WebView/WebView.m:
  17206. 2006-04-22 Timothy Hatcher <timothy@apple.com>
  17207. Reviewed by Eric.
  17208. http://bugs.webkit.org/show_bug.cgi?id=8514
  17209. Bug 8514: Web Inspector hides when the app is in the background
  17210. Makes the inspector not hide in the background. Since the inspector is a floating panel
  17211. we need to call setFloatingPanel:NO when the app is switching into the background. Then
  17212. call setFloatingPanel:YES when the app is activated again. Without this the inspector
  17213. would float above all applications.
  17214. * WebInspector/WebInspector.m:
  17215. (-[NSWindow window]): setHidesOnDeactivate:NO
  17216. (-[NSWindow windowWillClose:]): de-regiser appliction active notifications
  17217. (-[NSWindow showWindow:]): register for appliction active notifications
  17218. (-[WebInspector _applicationWillResignActive]): setFloatingPanel:NO
  17219. (-[WebInspector _applicationDidBecomeActive]): setFloatingPanel:YES
  17220. 2006-04-21 Adele Peterson <adele@apple.com>
  17221. Reviewed by Darin.
  17222. - Fix for http://bugs.webkit.org/show_bug.cgi?id=8181
  17223. REGRESSION: After tabbing in page's field, attempting to tab from Google toolbar search to page fails on first try
  17224. Test: manual-tests/tabbing-input-google.html
  17225. * WebView/WebHTMLView.m: (-[WebHTMLView resignFirstResponder]):
  17226. When resigning first responder, reset willBecomeFirstResponderForNodeFocus, so when the WebHTMLView gets focus again
  17227. it knows it can start moving through the tab cycle.
  17228. 2006-04-20 Tim Omernick <timo@apple.com>
  17229. Reviewed by John Sullivan.
  17230. <rdar://problem/4476875> Support printing for embedded Netscape plugins
  17231. NOTE: This only works with the Flash plugin right now. It appears that the other
  17232. major plugins either have awful printing support, or no printing support. If someone
  17233. can find an example of any other embedded Netscape plugin printing in any browser on
  17234. the Mac, I will be happy to eat my own words!
  17235. * Plugins/WebBaseNetscapePluginView.m:
  17236. (-[WebBaseNetscapePluginView drawRect:]):
  17237. When printing, get the printed bitmap via -_printedPluginBitmap, and draw it into the
  17238. plugin view.
  17239. (-[WebBaseNetscapePluginView _printedPluginBitmap]):
  17240. Call NPP_Print on the plugin to render it into a GWorld. This GWorld has the same
  17241. underlying buffer as an NSBitmapImageRep, which is returned to the caller.
  17242. 2006-04-20 Mitz Pettel <opendarwin.org@mitzpettel.com>
  17243. Reviewed by Darin.
  17244. WebKit part of:
  17245. - fix http://bugs.webkit.org/show_bug.cgi?id=8276
  17246. REGRESSION (NativeTextField): Pasting a Finder item into a text field results in
  17247. a file: URL being pasted instead of just the file name
  17248. - fix http://bugs.webkit.org/show_bug.cgi?id=8283
  17249. REGRESSION: File's path doesn't appear after dragging file into input field
  17250. * WebView/WebHTMLView.m:
  17251. (-[WebHTMLView _plainTextFromPasteboard:]): Added method that tries to copy AppKit
  17252. text fields' logic for extracting plain text from the pasteboard.
  17253. (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Added helper method.
  17254. (-[WebHTMLView _shouldInsertText:replacingDOMRange:givenAction:]):
  17255. (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]):
  17256. (-[WebHTMLView readSelectionFromPasteboard:]): Paste as plain text if
  17257. rich text is not allowed.
  17258. (-[WebHTMLView validateUserInterfaceItem:]): Changed to not allow pasteAsRichText:
  17259. if the paste is not going to be handled by the DOM and the selection
  17260. does not allow pasting rich text.
  17261. (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Paste as plain text if
  17262. rich text is not allowed.
  17263. (-[WebHTMLView paste:]): Ditto.
  17264. (-[WebHTMLView pasteAsPlainText:]):
  17265. 2006-04-20 Darin Adler <darin@apple.com>
  17266. Reviewed by Adele.
  17267. - WebKit part of http://bugs.webkit.org/show_bug.cgi?id=8505
  17268. eliminate WebCoreGraphics bridge, demonstrate new SystemInterface technique
  17269. * WebCoreSupport/WebGraphicsBridge.h: Removed.
  17270. * WebCoreSupport/WebGraphicsBridge.m: Removed.
  17271. * WebCoreSupport/WebSystemInterface.h: Added.
  17272. * WebCoreSupport/WebSystemInterface.m: Added.
  17273. * WebKit.xcodeproj/project.pbxproj: Updated for removed and added files.
  17274. * WebCoreSupport/WebImageData.m: Removed unneeded include of WebGraphicsBridge.h.
  17275. * WebCoreSupport/WebImageRenderer.m: Ditto.
  17276. * WebCoreSupport/WebTextRenderer.m: Ditto.
  17277. * WebView/WebFrameView.m: (-[WebFrameView initWithFrame:]): Guarded all the one-time
  17278. initialization inside a boolean, just in case some things take a little time. Added
  17279. a call to InitWebCoreSystemInterface to the one-time initialization here. Later, we
  17280. will need to add it in some other places if we call code that requires the use of
  17281. WebCoreSystemInterface functions from anywhere that can be invoked before creations
  17282. of the first WebFrameView, but for now there is no need.
  17283. 2006-04-19 James G. Speth <speth@end.com>
  17284. Reviewed by Timothy.
  17285. http://bugs.webkit.org/show_bug.cgi?id=8442
  17286. Bug 8442: improvements to Cocoa bindings support in WebView - code simplification
  17287. Removes the WebController class added earlier; changes NSTreeController and
  17288. WebView to together without it. Now you can just bind the contentObject binding
  17289. of the tree controller directly to the mainFrameDocument key of the WebView.
  17290. * WebCoreSupport/WebFrameBridge.m:
  17291. (-[WebFrameBridge windowObjectCleared]):
  17292. * WebView/WebDataSource.m:
  17293. (-[WebDataSource _setTitle:]):
  17294. * WebView/WebFrame.m:
  17295. (-[WebFrame _closeOldDataSources]):
  17296. * WebView/WebView.m:
  17297. (-[WebView _progressStarted:]):
  17298. (-[WebView _finalProgressComplete]):
  17299. (-[WebView _commonInitializationWithFrameName:groupName:]):
  17300. (-[WebView setMainFrameDocumentReady:]):
  17301. (-[WebView mainFrameDocument]):
  17302. * WebView/WebViewPrivate.h:
  17303. 2006-04-19 James G. Speth <speth@end.com>
  17304. Reviewed by Timothy.
  17305. http://bugs.webkit.org/show_bug.cgi?id=6635
  17306. Bug 6635: Crash selecting inspector nodes for tabs that aren't foremost
  17307. Stop observing window will close notifications before we tell the highlight window to close,
  17308. this prevents the crash. Also prevent drawing highlights for hidden tabs.
  17309. * WebInspector/WebInspector.m:
  17310. (-[WebInspector _highlightNode:]):
  17311. * WebInspector/WebNodeHighlight.m:
  17312. (-[WebNodeHighlight expire]):
  17313. 2006-04-19 James G. Speth <speth@end.com>
  17314. Reviewed by Timothy.
  17315. http://bugs.webkit.org/show_bug.cgi?id=6637
  17316. Bug 6637: selecting node in Inspector after closing window crashes Safari
  17317. When the window the Web Inspector was inspecting is closed, the inspector goes into its
  17318. no-selection state. Choosing to inspect another element activates it again. The inspector
  17319. will also follow the WebView if the URL changes and select the root element on the new page.
  17320. * WebInspector/WebInspector.m:
  17321. (-[NSWindow setWebFrame:]):
  17322. (-[NSWindow setRootDOMNode:]):
  17323. (-[WebInspector _revealAndSelectNodeInTree:]):
  17324. (-[WebInspector _update]):
  17325. (-[WebInspector _updateRoot]):
  17326. (-[WebInspector inspectedWebViewProgressFinished:]):
  17327. (-[WebInspector inspectedWindowWillClose:]):
  17328. (-[WebInspector webView:didFinishLoadForFrame:]):
  17329. * WebInspector/WebInspectorPanel.m:
  17330. (-[WebInspectorPanel canBecomeMainWindow]):
  17331. 2006-04-18 Darin Adler <darin@apple.com>
  17332. Reviewed by Beth.
  17333. * WebInspector/webInspector/inspector.css: Add "-webkit-" prefixes to the border
  17334. radius properties to make the corners rounded again.
  17335. 2006-04-16 Mitz Pettel <opendarwin.org@mitzpettel.com>
  17336. Reviewed by Darin.
  17337. - WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=8324
  17338. REGRESSION: textarea :focus not applied immediately
  17339. * WebCoreSupport/WebFrameBridge.m:
  17340. (-[WebFrameBridge formControlIsBecomingFirstResponder:]): Added. Calls the ancestor
  17341. WebHTMLView's _formControlIsBecomingFirstResponder:
  17342. * WebView/WebHTMLView.m:
  17343. (-[WebHTMLView _updateFocusState:]): If a descendant is becoming first responder,
  17344. enable focused appearance.
  17345. (-[WebHTMLView _formControlIsBecomingFirstResponder:]): Added. Calls _updateFocusState,
  17346. causing the frame to display with focus attributes.
  17347. * WebView/WebHTMLViewInternal.h:
  17348. 2006-04-14 James G. Speth <speth@end.com>
  17349. Reviewed by Timothy.
  17350. Bug 8389: support for Cocoa bindings - binding an NSTreeController to the WebView's DOM
  17351. http://bugs.webkit.org/show_bug.cgi?id=8389
  17352. Added a controller class, WebController, that is a subclass of
  17353. NSTreeController that has a new outlet/binding for the WebView.
  17354. * WebCoreSupport/WebFrameBridge.m:
  17355. (-[WebFrameBridge windowObjectCleared]): notify bindings about the document change
  17356. * WebView/WebView.m:
  17357. (-[WebView _progressStarted:]): notify bindings about the document change
  17358. (-[WebView _finalProgressComplete]): notify bindings about the document change
  17359. (-[WebView _declaredKeys]): added a key for the main frame document
  17360. (-[WebController init]):
  17361. (-[WebController exposedBindings]):
  17362. (-[WebController valueClassForBinding:]):
  17363. (-[WebController setContent:]):
  17364. (-[WebController webView]):
  17365. (-[WebController setWebView:]):
  17366. (-[WebView mainFrameDocument]): get the main frame's DOMDocument
  17367. * WebView/WebViewPrivate.h: Adds mainFrameDocument to pending public.
  17368. 2006-04-12 David Harrison <harrison@apple.com>
  17369. Reviewed by Darin.
  17370. <rdar://problem/4386640> AX: AXPreviousSentenceStartTextMarkerForTextMarker does not respect paragraph boundary
  17371. <rdar://problem/4414575> AX: Dictionary popup cannot find some words on Dictionary.app
  17372. (see related changes in WebCore)
  17373. Tests added:
  17374. * editing/selection/extend-by-sentence-001.html: Added.
  17375. * fast/dom/inner-text-001.html: Added.
  17376. * WebView/WebHTMLView.m:
  17377. (-[WebHTMLView validateUserInterfaceItem:]):
  17378. (-[WebHTMLView moveToBeginningOfSentence:]):
  17379. (-[WebHTMLView moveToBeginningOfSentenceAndModifySelection:]):
  17380. (-[WebHTMLView moveToEndOfSentence:]):
  17381. (-[WebHTMLView moveToEndOfSentenceAndModifySelection:]):
  17382. (-[WebHTMLView selectSentence:]):
  17383. * WebView/WebView.m:
  17384. * WebView/WebViewPrivate.h:
  17385. Add sentence navigation and selection.
  17386. 2006-04-12 Tim Omernick <timo@apple.com>
  17387. Reviewed by Darin.
  17388. Part of <rdar://problem/4482530>
  17389. * WebView/WebView.m:
  17390. (-[WebView _focusedFrame]):
  17391. Fixed up the logic here to take into account immediate subviews of WebView, which are not actually in a WebFrameView
  17392. (they are peers to the main frame's WebFrameView).
  17393. 2006-04-10 John Sullivan <sullivan@apple.com>
  17394. Reviewed by Tim Omernick.
  17395. - fixed <rdar://problem/4139799> Seed: Safari: Private Browsing leaves traces in Icon Cache
  17396. * Misc/WebIconDatabasePrivate.h:
  17397. new ivars: pageURLsBoundDuringPrivateBrowsing, iconURLsBoundDuringPrivateBrowsing, and privateBrowsingEnabled
  17398. * Misc/WebIconDatabase.m:
  17399. (-[NSMutableDictionary init]):
  17400. initialize new ivars, and listen for notifications that WebPreferences changed so we can react to changes
  17401. to private browsing.
  17402. (-[NSMutableDictionary iconForURL:withSize:cache:]):
  17403. Don't remove icon URL from extraRetain dictionary; that's now done in _forgetIconForIconURLString. (I left a
  17404. comment here earlier about why I was worried about this change, but I convinced myself that it's fine.)
  17405. (-[WebIconDatabase removeAllIcons]):
  17406. Removed no-longer-true (and never very clear) comment, and braces. Also remove all objects from the two
  17407. private-browsing-related dictionaries.
  17408. (-[WebIconDatabase _setIcon:forIconURL:]):
  17409. remember icon URL if private browsing is enabled
  17410. (-[WebIconDatabase _setHaveNoIconForIconURL:]):
  17411. remember icon URL if private browsing is enabled
  17412. (-[WebIconDatabase _setIconURL:forURL:]):
  17413. added an assert that helped me out at one point
  17414. (-[WebIconDatabase _clearDictionaries]):
  17415. clear the two new dictionaries too
  17416. (-[WebIconDatabase _loadIconDictionaries]):
  17417. made an existing ERROR not fire in the expected case where there are no icons at all on disk
  17418. (-[WebIconDatabase _updateFileDatabase]):
  17419. when saving the pageURLToIconURL dictionary to disk, first remove any values that were created during
  17420. private browsing
  17421. (-[WebIconDatabase _retainIconForIconURLString:]):
  17422. skip the code that deals with saving changes to disk if private browsing is enabled
  17423. (-[WebIconDatabase _forgetIconForIconURLString:]):
  17424. Remove the icon URL from extraRetain dictionary here. We're forgetting everything about this icon URL
  17425. so we should forget its former extraRetain count too.
  17426. (-[WebIconDatabase _resetCachedWebPreferences:]):
  17427. Cache the new value of private browsing. If it has now been turned off, forget everything we learned
  17428. while it was on. This causes (e.g.) icons for bookmarks or pre-existing history items to be forgotten
  17429. if the icon was only learned during private browsing.
  17430. * History/WebHistoryItem.m:
  17431. removed an unnecessary #import I happened to notice
  17432. 2006-04-10 David Hyatt <hyatt@apple.com>
  17433. Make the broken CG focus ring painting work when WebCore sets a clip
  17434. (in addition to respecting the dirty rect clip).
  17435. Reviewed by darin
  17436. * WebCoreSupport/WebGraphicsBridge.m:
  17437. (-[WebGraphicsBridge drawFocusRingWithPath:radius:color:clipRect:]):
  17438. 2006-04-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
  17439. Reviewed by Darin.
  17440. - fix http://bugs.webkit.org/show_bug.cgi?id=8100
  17441. REGRESSION (NativeTextField): Right-aligned and RTL text jitters in new text fields
  17442. * WebCoreSupport/WebTextRenderer.m:
  17443. (overrideLayoutOperation): For RTL runs, apply the word-rounding on the left.
  17444. (CG_floatWidthForRun): For RTL runs, apply the last character's rounding
  17445. on the left by adjusting the start position.
  17446. (initializeWidthIterator): Added finalRoundingWidth field to WidthIterator.
  17447. (advanceWidthIterator): For RTL runs, apply rounding on the left of the character,
  17448. by increasing the width of the next character (which is the character to the left). For
  17449. the last character, keep the rounding width in the iterator's finalRoundingWidth, to be used by
  17450. CG_floatWidthForRun().
  17451. 2006-04-08 John Sullivan <sullivan@apple.com>
  17452. Reviewed by Adele Peterson.
  17453. - fixed http://bugs.webkit.org/show_bug.cgi?id=8260
  17454. REGRESSION: Assertion failure: ![_private->iconsToSaveWithURLs containsObject:iconURLString]
  17455. in WebIconDatabase.m:695-[WebIconDatabase(WebInternal) _retainIconForIconURLString:]
  17456. * Misc/WebIconDatabase.m:
  17457. (-[WebIconDatabase _retainIconForIconURLString:]):
  17458. This new assertion was one block too high; moved it in.
  17459. 2006-04-07 David Hyatt <hyatt@apple.com>
  17460. A fix that makes coalesced updates work much better (and makes our
  17461. single animated GIF timer work better). The new rect painting algorithm
  17462. for WebHTMLView will use the single unioned rect if the # of rects exceeds
  17463. a threshold (10 is my initial cut), or if the union has enough "wasted"
  17464. additional pixels (conservatively set at 75%).
  17465. Reviewed by darin
  17466. * WebView/WebHTMLView.m:
  17467. (-[WebHTMLView drawSingleRect:]):
  17468. (-[WebHTMLView drawRect:]):
  17469. 2006-04-07 Maciej Stachowiak <mjs@apple.com>
  17470. Reviewed by Darin.
  17471. - simplify archive loading
  17472. * WebView/WebDataSource.m:
  17473. (-[WebDataSource representation]): fix whitespace
  17474. * WebView/WebHTMLRepresentation.m:
  17475. (-[WebHTMLRepresentation loadArchive]): Use WebFrame's loadArchive: instead
  17476. of trying to do a manual load here.
  17477. (-[WebHTMLRepresentation documentSource]): No more special case for WebArchive.
  17478. 2006-04-07 John Sullivan <sullivan@apple.com>
  17479. Reviewed by Tim Omernick.
  17480. - fixed <rdar://problem/4507054> If an icon file is removed from disk behind Safari's back,
  17481. Safari will not try to refetch it
  17482. In addition to letting WebIconDatabase recover from disk/memory mismatches as per 4507054, I also found
  17483. a bug in the way icons are remembered that could account for some of the other cases where
  17484. site icons didn't appear (and you'd get an ERROR on debug builds about WebIconDatabase saying it
  17485. had some icon when it really doesn't).
  17486. * Misc/WebIconDatabase.m:
  17487. (-[WebIconDatabase iconForURL:withSize:cache:]):
  17488. When the icon file for a previously-saved site icon isn't found, forget about the darn icon URL thoroughly
  17489. so that this situation is self-correcting. Formerly, once you got into this state WebKit would never find
  17490. the icon again (short of removing the entire icon database cleanly). Note that this does *not* change
  17491. the behavior of sites that didn't have a site icon when WebKit checked -- these will continue to not
  17492. return a site icon indefinitely (that's a separate, possibly performance-sensitive issue).
  17493. (-[WebIconDatabase _retainIconForIconURLString:]):
  17494. This code did the wrong thing in the case where an icon was in the process of being forgotten about. In
  17495. that case, the icon would still be in _private->iconsOnDiskWithURLs, so we wouldn't try to save it here,
  17496. so the new icon wouldn't stick.
  17497. 2006-04-07 David Hyatt <hyatt@apple.com>
  17498. Re-enable coalesced updates. Our move to a single timer has essentially
  17499. implemented coalescing of updates anyway, so the regression has already
  17500. come back. Since we have to deal with that now anyway, there's no reason
  17501. to visually tear also. :)
  17502. Reviewed by darin
  17503. * ChangeLog:
  17504. * WebView/WebView.m:
  17505. (-[WebView _commonInitializationWithFrameName:groupName:]):
  17506. 2006-04-05 Darin Adler <darin@apple.com>
  17507. - fixed a storage leak from that last check-in
  17508. * WebView/WebUnarchivingState.m: (-[WebUnarchivingState dealloc]):
  17509. Release the two dictionaries.
  17510. 2006-04-05 Maciej Stachowiak <mjs@apple.com>
  17511. Reviewed by Eric.
  17512. - start on factoring WebArchive unpacking more into a separate class.
  17513. http://bugs.webkit.org/show_bug.cgi?id=8208
  17514. * WebKit.xcodeproj/project.pbxproj:
  17515. * WebView/WebDataSource.m:
  17516. (-[WebDataSourcePrivate dealloc]):
  17517. (-[WebDataSource _addToUnarchiveState:]):
  17518. (-[WebDataSource _popSubframeArchiveWithName:]):
  17519. (-[WebDataSource _documentFragmentWithArchive:]):
  17520. (-[WebDataSource _setupForReplaceByMIMEType:]):
  17521. (-[WebDataSource subresourceForURL:]):
  17522. * WebView/WebDataSourcePrivate.h:
  17523. * WebView/WebFrame.m:
  17524. (-[WebFrame _loadRequest:archive:]):
  17525. (-[WebFrame loadRequest:]):
  17526. (-[WebFrame loadArchive:]):
  17527. * WebView/WebFramePrivate.h:
  17528. * WebView/WebHTMLRepresentation.m:
  17529. (-[WebHTMLRepresentation loadArchive]):
  17530. * WebView/WebUnarchivingState.h: Added.
  17531. * WebView/WebUnarchivingState.m: Added.
  17532. (-[WebUnarchivingState init]):
  17533. (-[WebUnarchivingState addArchive:]):
  17534. (-[WebUnarchivingState archivedResourceForURL:]):
  17535. (-[WebUnarchivingState popSubframeArchiveWithFrameName:]):
  17536. 2006-04-04 Timothy Hatcher <timothy@apple.com>
  17537. Reviewed by Darin.
  17538. The Debug and Release frameworks are now built with install paths relative to the build products directory.
  17539. This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore.
  17540. * WebKit.xcodeproj/project.pbxproj:
  17541. 2006-04-04 John Sullivan <sullivan@apple.com>
  17542. Reviewed by Adele Peterson.
  17543. - WebKit part of <rdar://problem/4498418> "Autosaved" searchterms are saved during private browsing
  17544. * WebView/WebView.m:
  17545. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  17546. Pass private browsing setting down to WebCore.
  17547. 2006-04-03 John Sullivan <sullivan@apple.com>
  17548. Reviewed by Tim Hatcher.
  17549. - re-fixed <rdar://problem/4481198> REGRESSION (TOT): search results list in bookmarks view
  17550. remains when search text is deleted
  17551. * WebView/WebView.m:
  17552. (-[WebView searchFor:direction:caseSensitive:wrap:]):
  17553. I fixed this recently, but then broke it again by adding an early bail-out to this method. So
  17554. now I'm removing the early bail-out.
  17555. 2006-04-02 Trey Matteson <trey@usa.net>
  17556. Reviewed by Maciej.
  17557. fix http://bugs.webkit.org/show_bug.cgi?id=8121
  17558. REGRESSION: 404s are not displayed
  17559. * WebView/WebMainResourceLoader.m:
  17560. (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
  17561. Only cancel failed loads for object elements, not for frames or a whole page.
  17562. 2006-04-02 Maciej Stachowiak <mjs@apple.com>
  17563. Reviewed by Hyatt.
  17564. - fixed <rdar://problem/4198619> REGRESSION: tabbing through links fails after hitting text field w/ sys's "tab to all controls" off
  17565. - fixed <rdar://problem/4463760> REGRESSION: Can't tab from old text field (like password fields) to new text field (6811)
  17566. (http://bugs.webkit.org/show_bug.cgi?id=6811)
  17567. - fixed tab and shift tab don't select the right things
  17568. http://bugs.webkit.org/show_bug.cgi?id=5685
  17569. * WebCoreSupport/WebFrameBridge.m:
  17570. (-[WebFrameBridge willMakeFirstResponderForNodeFocus]): New method
  17571. - let WebHTMLView know that the next time it becomes first
  17572. responder, it's to change focus within the page and the right node
  17573. has already been set, so it should not move focus forward or
  17574. backward inside it.
  17575. * WebView/WebHTMLView.m:
  17576. (-[WebHTMLView needsPanelToBecomeKey]): Override to return YES, oddly enough this
  17577. is the right way to tell AppKit that you should be in the tab cycle loop.
  17578. (-[WebHTMLView becomeFirstResponder]): Don't move forward or back in tab cycle
  17579. when this becomeFirstResponder is for tabbing from a control in the page.
  17580. (-[WebHTMLView _willMakeFirstResponderForNodeFocus]): Note that the next
  17581. time this view becomes first responder, it will be for in-page focus
  17582. navigation.
  17583. * WebView/WebHTMLViewInternal.h:
  17584. 2006-04-01 Darin Adler <darin@apple.com>
  17585. Reviewed by Maciej.
  17586. - fix http://bugs.webkit.org/show_bug.cgi?id=8105
  17587. REGRESSION (NativeTextField): Option-delete deletes one space before the deleted word
  17588. Test: fast/forms/input-text-option-delete.html
  17589. * WebView/WebHTMLView.m:
  17590. (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Pass NO for
  17591. smartDeleteOK. Smart deletion only applies to deleting a word at a time, and none of
  17592. the callers of this function that delete a word at a time want smart deletion.
  17593. (-[WebHTMLView deleteToEndOfLine:]): Fixed tiny formatting glitch.
  17594. 2006-03-31 Timothy Hatcher <timothy@apple.com>
  17595. Reviewed by Darin.
  17596. We need to set reachedTerminalState to YES before we release
  17597. the resources to prevent a double dealloc of WebView
  17598. Fixes <rdar://problem/4372628> crash deallocating a WebView in -[WebFrame stopLoading]
  17599. * WebView/WebLoader.m:
  17600. (-[NSURLProtocol releaseResources]): set reachedTerminalState earlier
  17601. 2006-03-31 John Sullivan <sullivan@apple.com>
  17602. Reviewed by Tim Omernick.
  17603. Some cleanup in the WebIconDatabase code in a fruitless search for the cause
  17604. of the mysterious -[WebFileDatabase performSetObject:forKey] crash
  17605. * Misc/WebIconDatabase.m:
  17606. (-[WebIconDatabase _createFileDatabase]):
  17607. removed obsolete comment
  17608. (-[WebIconDatabase _loadIconDictionaries]):
  17609. Added ERRORs for unexpected early returns. Made dictionaries be autoreleased until
  17610. the end of the method where they are retained, so that the early returns don't leak;
  17611. added ASSERTs that the _private->dictionary values aren't being leaked.
  17612. (-[WebIconDatabase _updateFileDatabase]):
  17613. Added an ERROR for an unexpected early return, and made a trivial style fix.
  17614. 2006-03-31 Trey Matteson <trey@usa.net>
  17615. Reviewed by Maciej, landed by ap.
  17616. http://bugs.webkit.org/show_bug.cgi?id=7739
  17617. REGRESSION: Assertion failure loading acid2 test in -[WebCoreFrameBridge installInFrame:]
  17618. Tests: http/tests/misc/acid2.html, http/tests/misc/acid2-pixel.html
  17619. The gist of this change is that we must cancel the load from the Webkit side when we
  17620. realize we're switching to the fallback content. This is somewhat a temp workaround
  17621. since control of loading will be moving to WebCore.
  17622. * WebView/WebMainResourceLoader.m:
  17623. (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
  17624. 2006-03-30 Justin Garcia <justin.garcia@apple.com>
  17625. Reviewed by darin
  17626. http://bugs.webkit.org/show_bug.cgi?id=6989
  17627. REGRESSION: Plain-text mode needed for contenteditable area used in new text field
  17628. * WebView/WebHTMLView.m:
  17629. (-[WebHTMLView _canEditRichly]): Added.
  17630. (-[WebHTMLView _canIncreaseSelectionListLevel]): Use _canEditRichly
  17631. (-[WebHTMLView _canDecreaseSelectionListLevel]): Ditto.
  17632. (-[WebHTMLView _increaseSelectionListLevel]):
  17633. (-[WebHTMLView _decreaseSelectionListLevel]):
  17634. (-[WebHTMLView validateUserInterfaceItem:]):
  17635. Split rich text editing actions off from ones that can be applied anywhere.
  17636. (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
  17637. (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]):
  17638. (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
  17639. * WebView/WebHTMLViewPrivate.h:
  17640. 2006-03-29 Tim Omernick <timo@apple.com>
  17641. Reviewed by John Sullivan.
  17642. <rdar://problem/4495316> REGRESSION (420+): After page has loaded, spinning progress indicator is displayed on
  17643. tab at versiontracker.com
  17644. * WebView/WebFrame.m:
  17645. (-[WebFrame _receivedMainResourceError:]):
  17646. Call -_clientRedirectCancelledOrFinished: here so that the frame load delegate is notified that the redirect's
  17647. status has changed, if there was a redirect. The frame load delegate may have saved some state about
  17648. the redirect in its -webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:. Since we are definitely
  17649. not going to use this provisional resource, as it was cancelled, notify the frame load delegate that the redirect
  17650. has ended.
  17651. The fix for 4432562 was similar to this, but only took care of the case where the redirect load was actually
  17652. committed to the frame. The new call to -_clientRedirectCancelledOrFinished: handles the case where the redirect
  17653. load was successful, but was not committed. This happens with downloads.
  17654. 2006-03-29 John Sullivan <sullivan@apple.com>
  17655. Reviewed by Tim Omernick.
  17656. - fixed these bugs:
  17657. <rdar://problem/4483806> REGRESSION (417.8-TOT): PDFs don't scale correctly with auto-size (5356)
  17658. <rdar://problem/3874856> Safari PDF display should be full width by default rather than
  17659. sized to show the entire page
  17660. * WebView/WebPDFRepresentation.m:
  17661. (-[WebPDFRepresentation finishedLoadingWithDataSource:]):
  17662. Let the WebPDFView handle setting the document, because that's the best time to apply
  17663. the sizing-related preferences.
  17664. * WebView/WebPDFView.h:
  17665. eliminated firstLayoutDone ivar and -PDFSubview public method; added -setPDFDocument:
  17666. * WebView/WebPDFView.m:
  17667. (-[WebPDFView initWithFrame:]):
  17668. eliminate use of obsolete firstLayoutDone ivar
  17669. (-[WebPDFView _applyPDFDefaults]):
  17670. renamed from _readPDFDefaults for clarity
  17671. (-[WebPDFView layout]):
  17672. removed code that applied the preferences here. This was too early to handle auto-sizing correctly,
  17673. because -layout can be called before the document exists, and calling setAutoSize:YES at that
  17674. point confuses PDFView into setting the scale factor to 20 (the maximum).
  17675. (-[WebPDFView setPDFDocument:]):
  17676. New method, does what WebPDFRepresentation used to do and also applies the preferences here.
  17677. This is a good place to apply them because the document is guaranteed to now exist (of course).
  17678. (-[WebPDFView PDFSubview]):
  17679. Moved this into a new FileInternal category because it's still needed by another class in
  17680. this file but no longer needs to be public.
  17681. * WebView/WebPreferences.m:
  17682. (+[WebPreferences initialize]):
  17683. Change WebKitPDFScaleFactorPreferenceKey to 0, which represents auto-size. This fixes 3874856,
  17684. but wasn't feasible until 4483806 was fixed.
  17685. 2006-03-28 Darin Adler <darin@apple.com>
  17686. Reviewed by Geoff.
  17687. - added a build step that checks for init routines
  17688. * WebKit.xcodeproj/project.pbxproj: Added a custom build phase that invokes the
  17689. check-for-global-initializers script.
  17690. 2006-03-28 Tim Omernick <timo@apple.com>
  17691. Reviewed by Darin.
  17692. <rdar://problem/3694090> -[WebBaseNetscapePluginView finalize] is incorrect; design change needed
  17693. * Plugins/WebBaseNetscapePluginView.m:
  17694. (-[WebBaseNetscapePluginView initWithFrame:]):
  17695. Don't observe preferences changes here -- we only want to observe preferences while the view is
  17696. installed in the view hierarchy. Plugins will appropriately start and stop themselves when added to
  17697. or removed from a window.
  17698. (-[WebBaseNetscapePluginView dealloc]):
  17699. Don't remove observers here -- they should have been removed when the view was removed from its
  17700. window.
  17701. (-[WebBaseNetscapePluginView finalize]):
  17702. ditto
  17703. (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
  17704. Stop observing preferences when the view is removed from its window.
  17705. (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
  17706. Start observing preferences when the view is added to a window.
  17707. 2006-03-27 Tim Omernick <timo@apple.com>
  17708. Reviewed by Eric.
  17709. <rdar://problem/3694090> -[WebBaseNetscapePluginView finalize] is incorrect; design change needed
  17710. * ChangeLog:
  17711. * Plugins/WebBaseNetscapePluginView.m:
  17712. (-[WebBaseNetscapePluginView dealloc]):
  17713. Instead of calling -stop, assert that the plugin is not running. A plugin view cannot be deallocated
  17714. until it is removed from its window. When a plugin view is removed from its window, it calls -stop
  17715. on itself. Therefore I believe that this call to -stop is unnecessary; if I'm wrong, then the
  17716. assertion will help catch any edge cases.
  17717. (-[WebBaseNetscapePluginView finalize]):
  17718. ditto
  17719. 2006-03-27 Tim Omernick <timo@apple.com>
  17720. Reviewed by Eric.
  17721. <rdar://problem/3694086> -[WebBaseNetscapePluginStream finalize] is incorrect; design change needed
  17722. * Plugins/WebBaseNetscapePluginStream.m:
  17723. (-[WebBaseNetscapePluginStream dealloc]):
  17724. Assert that the stream file path either never existed, or was deleted and NULL-ed out. The stream file
  17725. is now deleted immediately after calling NPP_StreamAsFile().
  17726. (-[WebBaseNetscapePluginStream finalize]):
  17727. ditto
  17728. (-[WebBaseNetscapePluginStream _destroyStream]):
  17729. Delete the file after calling NPP_StreamAsFile(), instead of in -dealloc/-finalize. It should be OK
  17730. to delete the file here -- NPP_StreamAsFile() is always called immediately before NPP_DestroyStream()
  17731. (the stream destruction function), so there can be no expectation that a plugin will read the stream file
  17732. asynchronously after NPP_StreamAsFile() is called.
  17733. 2006-03-27 Tim Omernick <timo@apple.com>
  17734. Reviewed by Eric.
  17735. <rdar://problem/3694093> -[WebBasePluginPackage finalize] is incorrect; design change needed
  17736. Call -unload on plug-in packages instead of relying on -dealloc/-finalize to do it. Currently
  17737. the only place plug-in packages are deallocated is when refreshing the set of plugins, as when
  17738. handling JavaScript's navigator.plugins.refresh().
  17739. * Plugins/WebBasePluginPackage.m:
  17740. (-[WebBasePluginPackage dealloc]):
  17741. Assert that the plug-in has been unloaded by the time -dealloc is called.
  17742. (-[WebBasePluginPackage finalize]):
  17743. ditto
  17744. * Plugins/WebPluginDatabase.m:
  17745. (-[WebPluginDatabase refresh]):
  17746. Call -unload on the plug-in packages before releasing them.
  17747. 2006-03-27 Tim Omernick <timo@apple.com>
  17748. Reviewed by Tim Hatcher.
  17749. Part of <rdar://problem/4448350> Deprecated ObjC language API used in JavaScriptCore, WebCore,
  17750. WebKit and WebBrowser
  17751. * Carbon/HIViewAdapter.h:
  17752. HIViewAdapter is no longer an NSView subclass, since we no longer pose it as NSView.
  17753. * Carbon/HIViewAdapter.m:
  17754. (+[NSView bindHIViewToNSView:nsView:]):
  17755. Replace individual NSView methods instead of posing as NSView.
  17756. (_webkit_NSView_setNeedsDisplay):
  17757. Replacement implementation of -[NSView setNeedsDisplay:].
  17758. (_webkit_NSView_setNeedsDisplayInRect):
  17759. Replacement implementation of -[NSView setNeedsDisplayInRect:]
  17760. (_webkit_NSView_nextValidKeyView):
  17761. Replacement implementation of -[NSView nextValidKeyView]
  17762. 2006-03-27 John Sullivan <sullivan@apple.com>
  17763. Reviewed by Darin Adler.
  17764. Removed two overzealous assertions that the steps to reproduce 4451831 were running into.
  17765. Improved comments to match.
  17766. * WebCoreSupport/WebFrameBridge.m:
  17767. (-[WebFrameBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
  17768. Remove assertion that _inNextKeyViewOutsideWebFrameViews should always be false here.
  17769. * WebView/WebHTMLView.m:
  17770. (-[WebHTMLView nextValidKeyView]):
  17771. Removed assertion that the frame should never be the main frame here.
  17772. 2006-03-27 Tim Omernick <timo@apple.com>
  17773. Reviewed by Tim Hatcher.
  17774. Removed tabs & reformatted code.
  17775. * Carbon/HIViewAdapter.m:
  17776. (+[NSView bindHIViewToNSView:nsView:]):
  17777. (+[NSView getHIViewForNSView:]):
  17778. (+[NSView unbindNSView:]):
  17779. (-[NSView setNeedsDisplay:]):
  17780. (-[NSView setNeedsDisplayInRect:]):
  17781. (-[NSView nextValidKeyView]):
  17782. (SetViewNeedsDisplay):
  17783. 2006-03-26 Justin Garcia <justin.garcia@apple.com>
  17784. Reviewed by darin
  17785. <http://bugs.webkit.org/show_bug.cgi?id=7974>
  17786. Add EditActions and WebUndoActions for CreateLink and Unlink
  17787. * English.lproj/Localizable.strings:
  17788. * WebCoreSupport/WebFrameBridge.m:
  17789. (-[WebFrameBridge nameForUndoAction:]):
  17790. 2006-03-23 Tim Omernick <timo@apple.com>
  17791. Reviewed by John Sullivan.
  17792. At John's suggestion, renamed a private WebFrame method and tightened up some of the redirect logic I recently touched.
  17793. * WebView/WebFramePrivate.h:
  17794. Renamed -_clientRedirectCancelled: to -_clientRedirectCancelledOrFinished:, since we call this both when a redirect is
  17795. cancelled and when a redirect is successfully committed.
  17796. * WebCoreSupport/WebFrameBridge.m:
  17797. (-[WebFrameBridge reportClientRedirectCancelled:]):
  17798. Call renamed WebFrame method.
  17799. * WebView/WebFrame.m:
  17800. Added sentRedirectNotification flag to WebFramePrivate. This flag is set when we notify the frame load delegate that a
  17801. redirect will occur. We check this flag when committing a provisional load to ensure that the frame load delegate is
  17802. notified that the redirect finished.
  17803. (-[WebFrame _commitProvisionalLoad:]):
  17804. After committing a provisional load, make sure that the frame load delegate is notified that there is no longer a pending
  17805. redirect.
  17806. (-[WebFrame _clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  17807. Set the new sentRedirectNotification flag.
  17808. (-[WebFrame _clientRedirectCancelledOrFinished:]):
  17809. Renamed method.
  17810. Clear the sentRedirectNotification flag.
  17811. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
  17812. Call renamed method.
  17813. 2006-03-23 Tim Omernick <timo@apple.com>
  17814. Reviewed by John Sullivan.
  17815. <rdar://problem/4439752> TinyMCE: "Search in Google" context menu is active but fails to work when selection is active
  17816. in textarea field.
  17817. * DefaultDelegates/WebDefaultContextMenuDelegate.m:
  17818. (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
  17819. Added a representedObject parameter, which is set on the newly created menu item.
  17820. (-[WebDefaultUIDelegate contextMenuItemsForElement:defaultMenuItems:]):
  17821. Instead of setting the representedObject on each menu item after creating them all, pass the element to
  17822. -menuItemWithTag:target:representedObject:.
  17823. (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
  17824. ditto. This fixes 4439752 because this method failed to set the representedObject on the menu items as
  17825. -contextMenuItemsForElement:defaultMenuItems: did.
  17826. 2006-03-23 Darin Adler <darin@apple.com>
  17827. Reviewed by Eric.
  17828. - fix <rdar://problem/4380465> repro crash when unsuccessfully attempting to import image from Services menu
  17829. * WebView/WebDataSource.m:
  17830. (-[WebDataSource _imageElementWithImageResource:]): Quietly do nothing if passed nil.
  17831. (-[WebDataSource _documentFragmentWithImageResource:]): Ditto.
  17832. 2006-03-22 Tim Omernick <timo@apple.com>
  17833. Reviewed by Kevin Decker.
  17834. Even better fix for <rdar://problem/4432562>. We need to notify the frame delegate of a finished redirect for both
  17835. "fast" and "slow" redirects, after committing the load. My previous change only notified for "fast", history-locking
  17836. redirects. Now we notify the frame delegate after committing any kind of provisional load, not just in the case of
  17837. a fast redirect.
  17838. * WebView/WebFrame.m:
  17839. (-[WebFrame _transitionToCommitted:]):
  17840. (-[WebFrame _commitProvisionalLoad:]):
  17841. 2006-03-22 Tim Omernick <timo@apple.com>
  17842. Reviewed by Kevin Decker.
  17843. Better fix for <rdar://problem/4432562> REGRESSION (TOT): Safari's "stop loading" active, "view source" inactive after page load [7058]
  17844. * WebView/WebFrame.m:
  17845. (-[WebFrame _transitionToCommitted:]):
  17846. Cancel the client redirect when we commit the provisional load, if we were waiting for a redirect.
  17847. This is a better fix for 7058 (<rdar://problem/4432562>). The original fix for 7058 changed the timing of the redirect cancel
  17848. in such a way that WebKit was precluded from ever reusing back/forward list entries for redirects. Clearing the redirect state
  17849. here actually makes logical sense, as the redirect's target page is being committed at this point.
  17850. 2006-03-21 Darin Adler <darin@apple.com>
  17851. - fix http://bugs.webkit.org/show_bug.cgi?id=3784
  17852. <rdar://problem/4483827> JavaScript save dialog disappears right away (sheet triggers blur event) (3784)
  17853. * WebView/WebHTMLView.m:
  17854. (-[WebHTMLView _updateFocusState]): Treat window as having focus if its sheet is key.
  17855. (-[WebHTMLView addWindowObservers]): Observe all focus notifications, not just the ones involving this window.
  17856. (-[WebHTMLView removeWindowObservers]): Ditto.
  17857. (-[WebHTMLView windowDidBecomeKey:]): Add checks so that we call the methods only when appropriate,
  17858. since this will now be called for all windows.
  17859. (-[WebHTMLView windowDidResignKey:]): Ditto.
  17860. 2006-03-21 Adele Peterson <adele@apple.com>
  17861. Reviewed by Darin.
  17862. - Fix for http://bugs.webkit.org/show_bug.cgi?id=6813
  17863. elementAtPoint needs to return input element when clicking on new text field
  17864. * WebView/WebDocumentInternal.h: Added elementAtPoint:allowShadowContent:
  17865. * WebView/WebHTMLView.m:
  17866. (-[WebHTMLView elementAtPoint:]): Does not allow shadow content. This way, by default, callers would get the input element instead of the inner div.
  17867. (-[WebHTMLView elementAtPoint:allowShadowContent:]): Allows callers to specify whether or not the element can be a shadow node.
  17868. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): Allows shadow content when getting element.
  17869. (-[WebHTMLView _mayStartDragAtEventLocation:]): ditto.
  17870. (-[WebHTMLView _isSelectionEvent:]): ditto.
  17871. (-[WebHTMLView _canProcessDragWithDraggingInfo:]): ditto.
  17872. * WebView/WebFrame.m: (-[WebFrame _actionInformationForNavigationType:event:originalURL:]): Does not allow shadow content when getting element.
  17873. * WebView/WebImageView.m: (-[WebImageView elementAtPoint:allowShadowContent:]): Added to conform to the WebDocumentElement protocol.
  17874. * WebView/WebPDFView.m: (-[WebPDFView elementAtPoint:allowShadowContent:]): ditto.
  17875. * WebView/WebTextView.m: (-[WebTextView elementAtPoint:allowShadowContent:]): ditto.
  17876. 2006-03-21 Tim Omernick <timo@apple.com>
  17877. Reviewed by Tim Hatcher and Darin.
  17878. <rdar://problem/4427068> LMGetCurApRefNum, CloseConnection and GetDiskFragment deprecated, used in Netscape
  17879. plugin code
  17880. * Plugins/WebNetscapeDeprecatedFunctions.h: Added.
  17881. * Plugins/WebNetscapeDeprecatedFunctions.c: Added.
  17882. Added wrappers for deprecated CFM and LowMem functions. These exist in a separate file so that we can set
  17883. -Wno-deprecated-declarations on this one file without ignoring other deprecated function usage elsewhere.
  17884. (WebGetDiskFragment):
  17885. (WebCloseConnection):
  17886. (WebLMGetCurApRefNum):
  17887. (WebLMSetCurApRefNum):
  17888. * Plugins/WebNetscapePluginPackage.h:
  17889. Don't include connID ivar in 64-bit, since CFM is not supported in 64-bit.
  17890. * Plugins/WebNetscapePluginPackage.m:
  17891. (+[WebNetscapePluginPackage initialize]):
  17892. Don't bother setting the resource refNum in 64-bit, because the API to get and set it does not exist.
  17893. A theoretical 64-bit plugin couldn't possibly rely this, since there is no API.
  17894. (-[WebNetscapePluginPackage unloadWithoutShutdown]):
  17895. No need to close the connID in 64-bit.
  17896. (-[WebNetscapePluginPackage load]):
  17897. Don't load CFM bundles in 64-bit, because CFM is not supported.
  17898. * WebKit.xcodeproj/project.pbxproj:
  17899. Added WebNetscapeDeprecatedFunctions.[hm].
  17900. 2006-03-21 John Sullivan <sullivan@apple.com>
  17901. Reviewed by Kevin Decker.
  17902. - fixed <rdar://problem/4485637> Implementors of searchFor:direction:caseSensitive:wrap: should bail
  17903. out early if search string is empty
  17904. This doesn't change any existing behavior, but avoids unnecessary work.
  17905. * Misc/WebSearchableTextView.m:
  17906. (-[WebSearchableTextView searchFor:direction:caseSensitive:wrap:]):
  17907. bail out immediately (returning NO) if search string is empty
  17908. * WebView/WebHTMLView.m:
  17909. (-[WebView searchFor:direction:caseSensitive:wrap:]):
  17910. ditto
  17911. * WebView/WebPDFView.m:
  17912. (-[WebPDFView searchFor:direction:caseSensitive:wrap:]):
  17913. ditto
  17914. * WebView/WebView.m:
  17915. (-[WebView searchFor:direction:caseSensitive:wrap:]):
  17916. ditto
  17917. 2006-03-20 Tim Omernick <timo@apple.com>
  17918. Reviewed by John Sullivan.
  17919. Moved -_contentView from WebFrameViewInternal to WebFrameViewPrivate. Safari
  17920. needs this.
  17921. * WebView/WebFrameView.m:
  17922. (-[WebFrameView _contentView]):
  17923. * WebView/WebFrameViewInternal.h:
  17924. * WebView/WebFrameViewPrivate.h:
  17925. 2006-03-17 Mitz Pettel <opendarwin.org@mitzpettel.com>
  17926. Reviewed by Darin, landed by Beth.
  17927. - fix http://bugs.webkit.org/show_bug.cgi?id=7693
  17928. WebKit relies on unpredictable timing for onload events
  17929. * WebView/WebDataSource.m:
  17930. (-[WebDataSource _receivedMainResourceError:complete:]): Check for
  17931. completion on the WebCore side before checking on the WebKit side,
  17932. to ensure that the onload event is emitted before the WebFrame load
  17933. delegate is sent the webView:didFinishLoadForFrame: message. For
  17934. DumpRenderTree, this ensures that the render tree is dumped after
  17935. the onload handler is run.
  17936. * WebView/WebLoader.m:
  17937. (-[NSURLProtocol didFailWithError:]): If load has already been
  17938. cancelled (which could happen if the parent's onload handler caused
  17939. the frame to detach), do nothing.
  17940. 2006-03-17 John Sullivan <sullivan@apple.com>
  17941. Reviewed by Beth Dakin
  17942. - fixed <rdar://problem/4239051> Sometimes "Copy Link" in Safari results in a
  17943. URL on the pasteboard with no usable "title"
  17944. * History/WebURLsWithTitles.m:
  17945. (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]):
  17946. trim whitespace from titles that are put on pasteboard. This leaves an empty string
  17947. for the title in cases where there's no displayed text, like an image in an <a> element
  17948. that happens to have whitespace in the source, e.g. <a href="foo"> <img whatever></a>
  17949. 2006-03-17 Darin Adler <darin@apple.com>
  17950. - missing bit of my check-in yesterday
  17951. Maciej moved setWindowFrame for me, but I also had removed
  17952. setWindowContentRect.
  17953. * WebCoreSupport/WebFrameBridge.m: Removed unused setWindowContextRect and
  17954. windowContentRect methods.
  17955. 2006-03-17 Adele Peterson <adele@apple.com>
  17956. Reviewed by Hyatt.
  17957. WebKit part of fix for:
  17958. http://bugs.webkit.org/show_bug.cgi?id=7797
  17959. Can't set background color on new text fields
  17960. Added function to draw bezeled text field without drawing background.
  17961. * WebCoreSupport/WebGraphicsBridge.m:
  17962. (-[WebGraphicsBridge drawBezeledTextFieldCell:enabled:]): Added.
  17963. 2006-03-16 Maciej Stachowiak <mjs@apple.com>
  17964. Reviewed by Eric.
  17965. - move setWindowFrame / windowFrame to WebPageBridge to fix build
  17966. * WebCoreSupport/WebFrameBridge.m:
  17967. * WebCoreSupport/WebPageBridge.m:
  17968. (-[WebPageBridge setWindowFrame:]):
  17969. (-[WebPageBridge windowFrame]):
  17970. 2006-03-15 Darin Adler <darin@apple.com>
  17971. Fix by Patrick Beard, reviewed by me.
  17972. - fix <rdar://problem/4478181> WebPluginController leaks NSArray and NSMutableSet objects
  17973. * Plugins/WebPluginController.m:
  17974. (-[WebPluginController initWithDocumentView:]): Call CFMakeCollectable on the CFSet
  17975. so we can act like it's an NSSet.
  17976. (-[WebPluginController dealloc]): Release _views and _checksInProgress.
  17977. 2006-03-13 Tim Omernick <timo@apple.com>
  17978. Reviewed by Maciej.
  17979. <rdar://problem/4476873> Support printing for plugin documents (not embedded plugins)
  17980. * WebView/WebFrameViewPrivate.h:
  17981. * WebView/WebFrameView.m:
  17982. (-[WebFrameView documentViewShouldHandlePrint]):
  17983. Called by the host application before it initializes and runs a print operation. If NO
  17984. is returned, the host application will abort its print operation and call
  17985. -printDocumentView on the WebFrameView. The document view is then expected to run its
  17986. own print operation. If YES is returned, the host application's print operation will
  17987. continue as normal.
  17988. (-[WebFrameView printDocumentView]):
  17989. Called by the host application when the WebFrameView returns YES from -documentViewShouldHandlePrint.
  17990. * Plugins/WebNetscapePluginDocumentView.m:
  17991. (-[WebNetscapePluginDocumentView documentViewShouldHandlePrint]):
  17992. Allow the plugin to take over printing if it defines an NPP_Print function
  17993. (-[WebNetscapePluginDocumentView printDocumentView]):
  17994. Print the plugin document.
  17995. 2006-03-13 Geoffrey Garen <ggaren@apple.com>
  17996. Reviewed by timo.
  17997. - Fixed the load progress indicator to give more incremental feedback,
  17998. and to stop spending so much time near 100%.
  17999. I did two things:
  18000. (1) Fixed some bugs and a misspelling in the previous heuristic's
  18001. implementation
  18002. (2) Added two new rules to the heuristic:
  18003. (a) Treat the first layout as the half-way point.
  18004. (b) Just like we jump the first 10% to indicate that a load has
  18005. started, jump the last 10% to indicate that a load has finished.
  18006. Rule 2a is good for two reasons. First, it seems unnatural for loading
  18007. to be "more than half done" when you can't even see anything. Second,
  18008. in the early stages of laading our estimate of how much we'll need to
  18009. load is often off by as much as 6000% (e.g., cnn.com). So anything that
  18010. makes the progress indicator more conservative in the early stages of
  18011. loading is helpful.
  18012. Rule 2b is good because it's confusing for loading to be "100% done"
  18013. but still ongoing.
  18014. FIXME: The indicator still isn't perfect. For example, the old behavior
  18015. shows up @ moviefone.com. Two areas for future work:
  18016. (1) Estimate number of linked resources. Our code estimates the size
  18017. of a single resource, but does nothing to estimate the number of
  18018. resources that resource might link to. This is the key to why we're
  18019. so wrong at the beginning.
  18020. (2) Improve "when to do first layout" heuristic. A JavaScript query
  18021. for a style property forces layout, creating a phantom first layout
  18022. with no content, essentially nullifying 2a for certain pages.
  18023. Filed <rdar://problem/4475834> to track estimating the number of
  18024. linked resources. Phantom layouts are already on Hyatt's radar.
  18025. * WebView/WebFrame.m:
  18026. (-[WebFrame _setState:]): Update firstLayoutDone
  18027. (-[WebFrame _numPendingOrLoadingRequests:]): Bug fix: In the recurisve
  18028. case, query 'frame' instead of 'self', so that we actually recurse.
  18029. (-[WebFrame _firstLayoutDone]): New method
  18030. (-[WebFrame _didFirstLayout]): Update firstLayoutDone
  18031. * WebView/WebFramePrivate.h: Added firstLayoutDone ivar
  18032. * WebView/WebView.m:
  18033. (-[WebView _incrementProgressForConnectionDelegate:data:]):
  18034. (1) Implemented 2a and 2b
  18035. (2) Bug fix: only update the 'last time I sent a notification' time if
  18036. we actually send a notification.
  18037. (3) Don't test for progress < 0 because ensuring progress < max
  18038. also ensures max - progress > 0. (Do still test for progress > max
  18039. because rounding errors make that a possibility -- although a very
  18040. minor one.)
  18041. (4) Query only the loading frame and its subframes for pending
  18042. requests instead of defaulting to the main frame. This is a slight
  18043. optimization in cases where the main frame did not begin the load,
  18044. and it makes the code more consistent.
  18045. 2006-03-13 John Sullivan <sullivan@apple.com>
  18046. Reviewed by Tim Omernick.
  18047. - fixed <rdar://problem/4475857> API: Setting a history item limit programmatically doesn't work
  18048. * History/WebHistory.m:
  18049. (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
  18050. use [self historyItemLimit], which prefers the explicitly-set value and falls back to the
  18051. NSUserDefaults value, instead of using the NSUserDefaults value explicitly.
  18052. 2006-03-10 Darin Adler <darin@apple.com>
  18053. Reviewed by Adele.
  18054. * WebCoreSupport/WebFrameBridge.m: Remove unused requestedURLString method.
  18055. 2006-03-10 Darin Adler <darin@apple.com>
  18056. Reviewed by Geoff.
  18057. - change how frame namespacing works to be more completely on the WebCore side
  18058. * WebView/WebFrameInternal.h: Remove _setFrameNamespace: and _frameNamespace.
  18059. * WebView/WebFrame.m: Ditto.
  18060. * WebView/WebView.m:
  18061. (-[WebView setGroupName:]): Call -[WebCorePageBridge setGroupName:].
  18062. (-[WebView groupName]): Call -[WebCorePageBridge groupName].
  18063. 2006-03-09 Alexey Proskuryakov <ap@nypop.com>
  18064. Reviewed by Darin.
  18065. - http://bugs.webkit.org/show_bug.cgi?id=7656
  18066. Query string always appended to Flash URLs, instead of being replaced.
  18067. * Misc/WebNSURLExtras.h: Added _webkit_URLByRemovingResourceSpecifier.
  18068. * Misc/WebNSURLExtras.m:
  18069. (+[NSURL _web_URLWithData:relativeToURL:]): Call _webkit_URLByRemovingResourceSpecifier to
  18070. work around CFURL not removing non-path components from base URLs in some cases.
  18071. (-[NSURL _webkit_URLByRemovingComponent:]): New generic function for removing URL components.
  18072. (-[NSURL _webkit_URLByRemovingFragment]): Moved implementation to the above method.
  18073. (-[NSURL _webkit_URLByRemovingResourceSpecifier]): Added.
  18074. 2006-03-07 Darin Adler <darin@apple.com>
  18075. Reviewed by Anders.
  18076. - fix http://bugs.webkit.org/show_bug.cgi?id=7655
  18077. unwanted output while running layout tests
  18078. * WebView/WebDataSourcePrivate.h:
  18079. * WebView/WebDataSource.m:
  18080. (-[WebDataSource _setRepresentation:]): Clear the flag that records whether we've sent
  18081. all the data to the representation or not; need this to prevent telling the same representation
  18082. both that we've succeeded and then later that we've failed.
  18083. (-[WebDataSource _setMainDocumentError:]): Don't send an error if representationFinishedLoading
  18084. is already YES. Set representationFinishedLoading.
  18085. (-[WebDataSource _finishedLoading]): Set representationFinishedLoading.
  18086. (-[WebDataSource _setupForReplaceByMIMEType:]): Ditto.
  18087. 2006-03-06 Tim Omernick <timo@apple.com>
  18088. Reviewed by Kevin Decker.
  18089. <rdar://problem/4457574> assertion failure watching trailers at netflix.com -[WebNetscapePluginRepresentation
  18090. receivedData:withDataSource:] + 684
  18091. * Plugins/WebNetscapePluginRepresentation.m:
  18092. (-[WebNetscapePluginRepresentation receivedData:withDataSource:]):
  18093. Moved the ASSERT(instance) to the block that actually requires an assertion -- the plugin view should never
  18094. have a NULL instance by the time we start the NPStream (by calling -startStreamWithResponse:).
  18095. Some stream teardown logic changed with my fix to 4153419: when a WebBaseNetscapePluginStream is destroyed,
  18096. it now clears its NPP instance backpointer. The WebBaseNetscapePluginStream may be destroyed from within
  18097. -startStreamWithResponse: if NPP_NewStream() returns an error. We can handle this gracefully by changing
  18098. the assertion before -receivedData: to a simple NULL check.
  18099. This is unrelated to the Radar, but prior to this fix, we would attempt an NPP_Write() with the initial
  18100. stream data even if NPP_NewStream() returned an error. Seems like that alone could cause issues, though
  18101. I'm guessing that plugins handle this in practice.
  18102. 2006-03-03 Timothy Hatcher <timothy@apple.com>
  18103. Reviewed by Darin.
  18104. <rdar://problem/4411822> wrong element shown in Inspector inspecting main image at apple.com
  18105. <rdar://problem/4411908> in the Web Inspector, state of disclosure triangles should be preserved after search
  18106. http://bugs.webkit.org/show_bug.cgi?id=6616
  18107. Bug 6616: Double-clicking on a search result seems broken
  18108. http://bugs.webkit.org/show_bug.cgi?id=6709
  18109. Bug 6709: TypeError: Value undefined (result of expression treeScrollbar.refresh) is not object.
  18110. Code clean up and move more code into JavaScript.
  18111. Removes a few unused ObjC methods.
  18112. Many search fixes. Reveals the focused node when exiting the search.
  18113. Shows a "No Selection" screen when there are no search results.
  18114. Shows a node count for the number of results.
  18115. Fixes a couple of TypeErrors that show on the console.
  18116. Uses the system selection color in the Style pane tables.
  18117. * English.lproj/Localizable.strings: removed localized strings
  18118. * WebInspector.subproj/WebInspector.m:
  18119. (-[WebInspector init]):
  18120. (-[WebInspector dealloc]):
  18121. (-[WebInspector window]):
  18122. (-[WebInspector setSearchQuery:]):
  18123. (-[WebInspector resizeTopArea]):
  18124. (-[WebInspector searchPerformed:]): called from JavaScript when a search happens
  18125. (-[WebInspector _toggleIgnoreWhitespace:]):
  18126. (-[WebInspector _exitSearch:]): exit search results on double click
  18127. (-[WebInspector _focusRootNode:]):
  18128. (-[WebInspector _revealAndSelectNodeInTree:]):
  18129. (-[WebInspector _refreshSearch]):
  18130. (-[WebInspector _update]):
  18131. (-[WebInspector _updateTraversalButtons]):
  18132. (-[WebInspector _updateRoot]):
  18133. (-[WebInspector _updateTreeScrollbar]):
  18134. (-[WebInspector _updateSystemColors]): update CSS with system colors
  18135. (-[WebInspector webView:didFinishLoadForFrame:]):
  18136. (-[WebInspector webView:plugInViewWithArguments:]):
  18137. (-[WebInspector outlineViewSelectionDidChange:]): test for webViewLoaded
  18138. (-[WebInspectorPrivate init]): alloc rightArrowImage and downArrowImage
  18139. (-[WebInspectorPrivate dealloc]): no more matchedRules
  18140. (-[DOMNode _displayName]): removed localization UI_STRING calls.
  18141. * WebInspector.subproj/WebInspectorInternal.h:
  18142. * WebInspector.subproj/webInspector/inspector.css:
  18143. * WebInspector.subproj/webInspector/inspector.html:
  18144. * WebInspector.subproj/webInspector/inspector.js:
  18145. 2006-03-02 Alexey Proskuryakov <ap@nypop.com>
  18146. Fixed a typo in the comments added in the previous checkin.
  18147. * WebCoreSupport/WebFrameBridge.m:
  18148. (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  18149. * WebCoreSupport/WebSubresourceLoader.m:
  18150. (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forDataSource:]):
  18151. (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forDataSource:]):
  18152. 2006-03-02 Alexey Proskuryakov <ap@nypop.com>
  18153. Reviewed by Darin.
  18154. - http://bugs.webkit.org/show_bug.cgi?id=7540
  18155. REGRESSION: frequent cache-related crashes
  18156. - http://bugs.webkit.org/show_bug.cgi?id=7393
  18157. A stale comment about XMLHttpRequest responses being never cached
  18158. * WebCoreSupport/WebFrameBridge.m: Don't call setHTTPHeader if the method is GET.
  18159. (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  18160. * WebCoreSupport/WebSubresourceLoader.m: Ditto. Also removed a stale comment about
  18161. XMLHTTPRequests.
  18162. (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forDataSource:]):
  18163. (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forDataSource:]):
  18164. 2006-02-23 David Harrison <harrison@apple.com>
  18165. Reviewed by Justin.
  18166. <rdar://problem/4359736> Support outlining ability with lists
  18167. Added Mail SPI for list level changes. It is SPI because it is not complete support
  18168. for outlining. See <rdar://problem/4457070> "API for html lists as note outlines".
  18169. * WebView/WebHTMLView.m:
  18170. (-[WebHTMLView _canIncreaseSelectionListLevel]):
  18171. (-[WebHTMLView _canDecreaseSelectionListLevel]):
  18172. (-[WebHTMLView _increaseSelectionListLevel]):
  18173. (-[WebHTMLView _decreaseSelectionListLevel]):
  18174. * WebView/WebHTMLViewPrivate.h:
  18175. 2006-03-01 Alexey Proskuryakov <ap@nypop.com>
  18176. Reviewed by Darin.
  18177. - http://bugs.webkit.org/show_bug.cgi?id=3812
  18178. XMLHttpRequest: PUT, DELETE, HEAD and all other methods but POST actually do a GET.
  18179. All WebKit changes are to use the method parameter passed from WebCore.
  18180. * WebCoreSupport/WebFrameBridge.m:
  18181. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  18182. (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  18183. (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  18184. * WebCoreSupport/WebSubresourceLoader.h:
  18185. * WebCoreSupport/WebSubresourceLoader.m:
  18186. (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forDataSource:]):
  18187. (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forDataSource:]):
  18188. 2006-03-01 Timothy Hatcher <timothy@apple.com>
  18189. Reviewed by Darin.
  18190. http://bugs.webkit.org/show_bug.cgi?id=7450
  18191. elementAtPoint is expensive and should return a smart dictionary
  18192. <rdar://problem/2952761> moving the mouse around eats more CPU than I would expect (7450)
  18193. elementAtPoint for WebHTMLView now returns a WebElementDictionary,
  18194. when objectForKey is called it will lookup in the DOM, cache and return the value
  18195. * Misc/WebElementDictionary.h: Added.
  18196. * Misc/WebElementDictionary.m: Added.
  18197. (addLookupKey):
  18198. (cacheValueForKey):
  18199. (+[WebElementDictionary initializeLookupTable]):
  18200. (-[WebElementDictionary initWithInnerNonSharedNode:innerNode:URLElement:andPoint:]):
  18201. (-[WebElementDictionary dealloc]):
  18202. (-[WebElementDictionary _fillCache]):
  18203. (-[WebElementDictionary count]):
  18204. (-[WebElementDictionary keyEnumerator]):
  18205. (-[WebElementDictionary objectForKey:]):
  18206. (-[WebElementDictionary _domNode]):
  18207. (-[WebElementDictionary _webFrame]):
  18208. (-[WebElementDictionary _targetWebFrame]):
  18209. (-[WebElementDictionary _title]):
  18210. (-[WebElementDictionary _imageRect]):
  18211. (-[WebElementDictionary _isSelected]):
  18212. * Misc/WebNSViewExtras.m:
  18213. (-[NSView _web_dragImage:element:rect:event:pasteboard:source:offset:]):
  18214. * WebKit.xcodeproj/project.pbxproj:
  18215. * WebView/WebHTMLView.m:
  18216. (-[WebHTMLView _updateMouseoverWithEvent:]):
  18217. (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
  18218. (-[WebHTMLView elementAtPoint:]):
  18219. * WebView/WebView.m:
  18220. * WebView/WebViewPrivate.h:
  18221. 2006-02-28 Darin Adler <darin@apple.com>
  18222. Reviewed by Adele.
  18223. - remove obsolete WebCoreScrollView class
  18224. * WebView/WebDynamicScrollBarsView.h: Change base class to NSScrollView instead of WebCoreScrollView.
  18225. * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView autoforwardsScrollWheelEvents]): Added.
  18226. 2006-02-28 John Sullivan <sullivan@apple.com>
  18227. Reviewed by Eric Seidel
  18228. Wean WebKit from one more SPI call. We learned about this new-to-Tiger
  18229. API from filing Radar 4433222.
  18230. * WebView/WebHTMLView.m:
  18231. (-[WebHTMLView _autoscroll]):
  18232. use public CGEventSourceButtonState() instead of WKMouseIsDown() (which was using SPI internally)
  18233. 2006-02-27 Tim Omernick <timo@apple.com>
  18234. Reviewed by Adele.
  18235. <rdar://problem/4222043> Safari should reduce null events sent to invisible plugins
  18236. * Plugins/WebBaseNetscapePluginView.h:
  18237. * Plugins/WebBaseNetscapePluginView.m:
  18238. (-[WebBaseNetscapePluginView restartNullEvents]):
  18239. Check to see if the plugin view is completely obscured (scrolled out of view, for example). If it is
  18240. obscured and it wasn't before, or the other way around, then restart the null event timer so it can
  18241. fire at the appropriate rate.
  18242. (-[WebBaseNetscapePluginView viewHasMoved:]):
  18243. If a plugin is obscured, send it null events as if it were in an inactive window.
  18244. 2006-02-26 Mitz Pettel <opendarwin.org@mitzpettel.com>
  18245. Test: fast/frames/empty-frame-document.html
  18246. Reviewed by Darin.
  18247. - fix http://bugs.webkit.org/show_bug.cgi?id=7293
  18248. REGRESSION: Using Javascript Bookmarklets that reference location.href on a blank tab crashes WebKit
  18249. The crash happened because an empty frame did not have a document.
  18250. * WebView/WebFrame.m:
  18251. (-[WebFrame _commitProvisionalLoad:]): Use "about:blank" instead of an empty URL for empty
  18252. frames. This causes a document to be created for the frame.
  18253. 2006-02-21 Kevin Decker <kdecker@apple.com>
  18254. Reviewed by Darin.
  18255. Backed out my previous check in. Since these methods are internal to WebKit (and not private)
  18256. it's perfectly OK for them to remain as categories.
  18257. * ChangeLog:
  18258. * WebView/WebPreferences.m:
  18259. (-[WebPreferences _integerValueForKey:]):
  18260. (-[WebPreferences _setIntegerValue:forKey:]):
  18261. (-[WebPreferences _floatValueForKey:]):
  18262. (-[WebPreferences _setFloatValue:forKey:]):
  18263. (-[WebPreferences _boolValueForKey:]):
  18264. (-[WebPreferences _setBoolValue:forKey:]):
  18265. * WebView/WebPreferencesPrivate.h:
  18266. 2006-02-20 Darin Adler <darin@apple.com>
  18267. Collaborated with Graham Dennis <Graham.Dennis@gmail.com> on this.
  18268. - WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=6831
  18269. contentEditable outline darkens as caret moves
  18270. * WebCoreSupport/WebGraphicsBridge.m:
  18271. (-[WebGraphicsBridge drawFocusRingWithPath:radius:color:]):
  18272. Replaced the old bridge function that set up style with this one that renders a path.
  18273. 2006-02-19 Darin Adler <darin@apple.com>
  18274. Reviewed by Maciej.
  18275. - cut out a little unneeded bridge code
  18276. * WebCoreSupport/WebFrameBridge.m:
  18277. (-[WebFrameBridge webView]): Added. Helper, since the WebCore side of the bridge no longer
  18278. has this method.
  18279. (-[WebFrameBridge createWindowWithURL:]): Removed the frameName parameter -- this is now
  18280. handled on the WebCore side. Also return a page bridge instead of a frame bridge.
  18281. (-[WebFrameBridge createModalDialogWithURL:]): Changed to return a page bridge instead of
  18282. a frame bridge.
  18283. * WebView/WebFrame.m: (-[WebFrame webView]): Change to get the webView from the page bridge
  18284. instead of the frame bridge, since it's a per-page thing.
  18285. * WebView/WebView.m: Removed init method since it just does what the default does (calls
  18286. initWithFrame: with a zero rect).
  18287. (-[WebView initWithCoder:]): Added checking so that if the obejcts have the wrong type
  18288. we will fail gracefully instead of hitting "method not found" and the like.
  18289. (-[WebView setPreferencesIdentifier:]): Fix storage leak. The WebPreferences object was
  18290. not released.
  18291. (-[WebView mainFrame]): Removed excess "return nil".
  18292. (-[WebView _pageBridge]): Added. Helper to let you go from the WebView to the bridge
  18293. from outside the WebView class.
  18294. * WebView/WebViewInternal.h: Put _pageBridge into an internal header.
  18295. * WebCoreSupport/WebPageBridge.m: (-[WebPageBridge outerView]): Added. Replaces "webView"
  18296. as public method to tell the WebCore side about the view everything's embedded in.
  18297. - other cleanup
  18298. * WebCoreSupport/WebPageBridge.h: Removed some unneeded declarations.
  18299. * Plugins/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView loadPluginRequest:]):
  18300. Rearrange code so it doesn't have to get the main frame twice.
  18301. 2006-02-18 Maciej Stachowiak <mjs@apple.com>
  18302. Not reviewed.
  18303. - fix build broken by my last checkin, the remaining code was not doing anything.
  18304. * WebView/WebDataSource.m:
  18305. * WebView/WebDataSourcePrivate.h:
  18306. * WebView/WebFrame.m:
  18307. (-[WebFrame _createPageCacheForItem:]):
  18308. 2006-02-16 Maciej Stachowiak <mjs@apple.com>
  18309. Reviewed by Darin.
  18310. - removed a few unused fields and methods of WebDataSource
  18311. * WebView/WebDataSource.m:
  18312. * WebView/WebDataSourcePrivate.h:
  18313. * WebView/WebView.m:
  18314. (+[WebView _MIMETypeForFile:]):
  18315. (-[WebView _updateWebCoreSettingsFromPreferences:]):
  18316. 2006-02-15 Justin Garcia <justin.garcia@apple.com>
  18317. Reviewed by darin
  18318. <http://bugs.webkit.org/show_bug.cgi?id=7148>
  18319. Add drag and drop support to DumpRenderTree
  18320. Added a UI delegate method so that DumpRenderTree can perform dragging on its own.
  18321. Made _updateFocusState SPI, to allow us to test the behavior and appearance of
  18322. windows that have or don't have focus.
  18323. * WebView/WebHTMLView.m:
  18324. (-[WebHTMLView _updateFocusState]):
  18325. (-[WebHTMLView viewDidMoveToWindow]):
  18326. (-[WebHTMLView windowDidBecomeKey:]):
  18327. (-[WebHTMLView windowDidResignKey:]):
  18328. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
  18329. (-[WebHTMLView becomeFirstResponder]):
  18330. (-[WebHTMLView resignFirstResponder]):
  18331. (-[WebHTMLView _formControlIsResigningFirstResponder:]):
  18332. * WebView/WebHTMLViewInternal.h:
  18333. * WebView/WebHTMLViewPrivate.h:
  18334. * WebView/WebUIDelegatePrivate.h:
  18335. * WebView/WebView.m:
  18336. 2006-02-15 Darin Adler <darin@apple.com>
  18337. * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
  18338. 2006-02-15 Maciej Stachowiak <mjs@apple.com>
  18339. Rubber stamped by Anders.
  18340. * WebView/WebControllerPolicyHandlerDelegate.h: Removed.
  18341. 2006-02-15 Maciej Stachowiak <mjs@apple.com>
  18342. Reviewed by Anders.
  18343. - remove some voodoo code
  18344. * WebView/WebDataSource.m:
  18345. (-[WebDataSource _setLoading:]): Removed useless ref/deref of self and WebView.
  18346. A WebDataSource cannot be loading unless it is still connected to the WebView that
  18347. owns it and retained by it, because getting disconnected stops loading.
  18348. 2006-02-13 Maciej Stachowiak <mjs@apple.com>
  18349. Reviewed by Anders.
  18350. Improvements to frame loading:
  18351. - remove LayoutAcceptable state entirely
  18352. - fix WebImageView to work right without LayoutAcceptable state
  18353. - move guts of commitIfReady: to WebFrame
  18354. - try to separate page cache loading from normal loading a bit more
  18355. * English.lproj/StringsNotToBeLocalized.txt:
  18356. * WebView/WebDataSource.m:
  18357. (-[WebDataSource _prepareForLoadStart]):
  18358. (-[WebDataSource _loadFromPageCache:]):
  18359. (-[WebDataSource _startLoading]):
  18360. (-[WebDataSource _commitIfReady]):
  18361. (-[WebDataSource _setupForReplaceByMIMEType:]):
  18362. * WebView/WebDataSourcePrivate.h:
  18363. * WebView/WebFrame.m:
  18364. (-[WebFrame _transitionToCommitted:]):
  18365. (-[WebFrame _commitProvisionalLoad:]):
  18366. (-[WebFrame _checkLoadCompleteForThisFrame]):
  18367. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
  18368. * WebView/WebFramePrivate.h:
  18369. * WebView/WebImageRepresentation.h:
  18370. * WebView/WebImageRepresentation.m:
  18371. * WebView/WebImageView.m:
  18372. (-[WebImageView dataSourceUpdated:]):
  18373. (-[WebImageView setNeedsLayout:]):
  18374. (-[WebImageView writeImageToPasteboard:types:]):
  18375. (-[WebImageView copy:]):
  18376. (-[WebImageView mouseDragged:]):
  18377. * WebView/WebView.m:
  18378. (-[WebView _finishedLoadingResourceFromDataSource:]):
  18379. (-[WebView _mainReceivedBytesSoFar:fromDataSource:complete:]):
  18380. 2006-02-13 John Sullivan <sullivan@apple.com>
  18381. Reviewed by Tim Omernick.
  18382. Support for highlighting multiple text matches.
  18383. * WebView/WebHTMLViewPrivate.h:
  18384. * WebView/WebHTMLView.m:
  18385. (-[WebHTMLView highlightAllMatchesForString:caseSensitive:]):
  18386. new method, calls through to bridge
  18387. (-[WebHTMLView clearHighlightedMatches]):
  18388. ditto
  18389. * WebView/WebViewPrivate.h:
  18390. * WebView/WebView.m:
  18391. (-[WebView highlightAllMatchesForString:caseSensitive:]):
  18392. new method, calls through to documentView. For now this is hardwired to only work
  18393. with WebHTMLViews.
  18394. (-[WebView clearHighlightedMatches]):
  18395. ditto
  18396. 2006-02-13 Darin Adler <darin@apple.com>
  18397. Reviewed by Maciej.
  18398. - move pointer from frame to page over to WebCore
  18399. * WebCoreSupport/WebPageBridge.m: (-[WebPageBridge initWithMainFrameName:webView:frameView:]):
  18400. Call super init to create the page before creating the main frame and calling setMainFrame: with it.
  18401. * WebCoreSupport/WebFrameBridge.h: Remove page pointer, and change init function parameters.
  18402. * WebCoreSupport/WebFrameBridge.m:
  18403. (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): New function that is used only for
  18404. the main frame. Passes the page over to the other side of the bridge.
  18405. (-[WebFrameBridge initSubframeWithRenderer:frameName:view:]): New function that is used only for
  18406. subframes. Passes the renderer over to the other side of the bridge.
  18407. (-[WebFrameBridge mainFrame]):
  18408. (-[WebFrameBridge webView]):
  18409. (-[WebFrameBridge createWindowWithURL:frameName:]):
  18410. (-[WebFrameBridge showWindow]):
  18411. (-[WebFrameBridge areToolbarsVisible]):
  18412. (-[WebFrameBridge setToolbarsVisible:]):
  18413. (-[WebFrameBridge isStatusbarVisible]):
  18414. (-[WebFrameBridge setStatusbarVisible:]):
  18415. (-[WebFrameBridge setWindowFrame:]):
  18416. (-[WebFrameBridge windowFrame]):
  18417. (-[WebFrameBridge setWindowContentRect:]):
  18418. (-[WebFrameBridge windowContentRect]):
  18419. (-[WebFrameBridge setWindowIsResizable:]):
  18420. (-[WebFrameBridge windowIsResizable]):
  18421. (-[WebFrameBridge firstResponder]):
  18422. (-[WebFrameBridge makeFirstResponder:]):
  18423. (-[WebFrameBridge closeWindowSoon]):
  18424. (-[WebFrameBridge runJavaScriptAlertPanelWithMessage:]):
  18425. (-[WebFrameBridge runJavaScriptConfirmPanelWithMessage:]):
  18426. (-[WebFrameBridge canRunBeforeUnloadConfirmPanel]):
  18427. (-[WebFrameBridge runBeforeUnloadConfirmPanelWithMessage:]):
  18428. (-[WebFrameBridge runJavaScriptTextInputPanelWithPrompt:defaultText:returningText:]):
  18429. (-[WebFrameBridge addMessageToConsole:]):
  18430. (-[WebFrameBridge runOpenPanelForFileButtonWithResultListener:]):
  18431. (-[WebFrameBridge setStatusText:]):
  18432. (-[WebFrameBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  18433. (-[WebFrameBridge focusWindow]):
  18434. (-[WebFrameBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  18435. (-[WebFrameBridge userAgentForURL:]):
  18436. (-[WebFrameBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
  18437. (-[WebFrameBridge previousKeyViewOutsideWebFrameViews]):
  18438. (-[WebFrameBridge defersLoading]):
  18439. (-[WebFrameBridge setDefersLoading:]):
  18440. (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
  18441. (-[WebFrameBridge _preferences]):
  18442. (-[WebFrameBridge selectWordBeforeMenuEvent]):
  18443. (-[WebFrameBridge historyLength]):
  18444. (-[WebFrameBridge canGoBackOrForward:]):
  18445. (-[WebFrameBridge goBackOrForward:]):
  18446. (-[WebFrameBridge print]):
  18447. (-[WebFrameBridge pollForAppletInView:]):
  18448. (-[WebFrameBridge respondToChangedContents]):
  18449. (-[WebFrameBridge respondToChangedSelection]):
  18450. (-[WebFrameBridge undoManager]):
  18451. (-[WebFrameBridge issueCutCommand]):
  18452. (-[WebFrameBridge issueCopyCommand]):
  18453. (-[WebFrameBridge issuePasteCommand]):
  18454. (-[WebFrameBridge issuePasteAndMatchStyleCommand]):
  18455. (-[WebFrameBridge canPaste]):
  18456. (-[WebFrameBridge overrideMediaType]):
  18457. (-[WebFrameBridge isEditable]):
  18458. (-[WebFrameBridge shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
  18459. (-[WebFrameBridge shouldBeginEditing:]):
  18460. (-[WebFrameBridge shouldEndEditing:]):
  18461. (-[WebFrameBridge windowObjectCleared]):
  18462. (-[WebFrameBridge spellCheckerDocumentTag]):
  18463. (-[WebFrameBridge isContinuousSpellCheckingEnabled]):
  18464. (-[WebFrameBridge didFirstLayout]):
  18465. (-[WebFrameBridge dashboardRegionsChanged:]):
  18466. (-[WebFrameBridge createModalDialogWithURL:]):
  18467. (-[WebFrameBridge canRunModal]):
  18468. (-[WebFrameBridge runModal]):
  18469. Change all calls to [_page webView] to use [self webView] instead.
  18470. === WebKit-521.7
  18471. 2006-02-11 Maciej Stachowiak <mjs@apple.com>
  18472. Reviewed by Hyatt.
  18473. - factor WebArchive creation code out of other classes into new WebArchiver
  18474. http://bugs.webkit.org/show_bug.cgi?id=7208
  18475. * DOM/WebDOMOperations.m:
  18476. (-[DOMNode webArchive]):
  18477. (-[DOMRange webArchive]):
  18478. * WebKit.xcodeproj/project.pbxproj:
  18479. * WebView/WebArchiver.h: Added.
  18480. * WebView/WebArchiver.m: Added.
  18481. (+[WebArchiver _subframeArchivesForFrame:]):
  18482. (+[WebArchiver archiveFrame:]):
  18483. (+[WebArchiver _archiveCurrentStateForFrame:]):
  18484. (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
  18485. (+[WebArchiver archiveRange:]):
  18486. (+[WebArchiver archiveNode:]):
  18487. (+[WebArchiver archiveSelectionInFrame:]):
  18488. * WebView/WebDataSource.m:
  18489. (-[WebDataSource webArchive]):
  18490. * WebView/WebDataSourcePrivate.h:
  18491. * WebView/WebHTMLView.m:
  18492. (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
  18493. (-[WebHTMLView _writeSelectionToPasteboard:]):
  18494. * WebView/WebHTMLViewPrivate.h:
  18495. 2006-02-11 Darin Adler <darin@apple.com>
  18496. * English.lproj/StringsNotToBeLocalized.txt: Updated paths for recent changes in directory structure.
  18497. 2006-02-11 David Kilzer <ddkilzer@kilzer.net>
  18498. Reviewed by John Sullivan.
  18499. - Fix http://bugs.webkit.org/show_bug.cgi?id=7171
  18500. No description in WebKitErrors.m for WebKitErrorPlugInWillHandleLoad
  18501. * English.lproj/Localizable.strings: Added new UI_STRING().
  18502. * Misc/WebKitErrors.m: Added #define for description.
  18503. (registerErrors): Added dictionary entry.
  18504. 2006-02-09 Tim Omernick <timo@apple.com>
  18505. Reviewed by Tim Hatcher.
  18506. <rdar://problem/4153419> CrashTracer: 576 crashes in Safari at com.apple.WebKit: NPN_DestroyStream + 56
  18507. I never could reproduce this crasher, which seems to be caused by the Speed Download plugin. However,
  18508. I did find a way to make the affected code more bulletproof for those who are experiencing the crash.
  18509. * Plugins/WebBaseNetscapePluginStream.h:
  18510. Keep a WebBaseNetscapePluginView instead of the WebNetscapePluginPackage, since the plugin view could
  18511. potentially be deallocated before the stream finishes loading.
  18512. * Plugins/WebBaseNetscapePluginStream.m:
  18513. (-[WebBaseNetscapePluginStream _pluginCancelledConnectionError]):
  18514. Use pluginView instead of plugin.
  18515. (-[WebBaseNetscapePluginStream dealloc]):
  18516. Assert that the plugin instance has been nulled out, since that's now part of the stream's teardown
  18517. phase.
  18518. Release pluginView instead of plugin.
  18519. (-[WebBaseNetscapePluginStream setPluginPointer:]):
  18520. Retain the plugin view instead of the plugin package, since the plugin view could be deallocated while
  18521. the stream is running.
  18522. This method now accepts a NULL argument so that we can easily clear out the pluginView backpointer
  18523. (and other ivars derived from it).
  18524. (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
  18525. Use pluginView instead of plugin.
  18526. (-[WebBaseNetscapePluginStream _destroyStream]):
  18527. ditto
  18528. (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
  18529. ditto
  18530. (-[WebBaseNetscapePluginStream cancelLoadAndDestroyStreamWithError]):
  18531. Set the plugin instance to NULL, so that the pluginView backpointer is released. This method is called
  18532. for every plugin view's stream when the plugin view is stopped/destroyed.
  18533. (-[WebBaseNetscapePluginStream _deliverData]):
  18534. Use pluginView instead of plugin.
  18535. == Rolled over to ChangeLog-2006-02-09 ==