ChangeLog-2002-12-03 728 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944
  1. 2002-12-03 David Hyatt <hyatt@apple.com>
  2. Fix for 3078227, hanging in table code. Make sure <form>s
  3. don't get wrapped in anonymous rows and cells.
  4. Reviewed by: rjw
  5. * khtml/rendering/render_table.cpp:
  6. (RenderTable::addChild):
  7. (RenderTableSection::addChild):
  8. (RenderTableRow::addChild):
  9. 2002-12-03 David Hyatt <hyatt@apple.com>
  10. Backing out a file that I did not intend to check in.
  11. * khtml/misc/loader.cpp:
  12. 2002-12-03 Richard Williamson <rjw@apple.com>
  13. D'oh. Fixed last minute change that broke the build.
  14. * kwq/KWQFont.mm:
  15. (QFont::getNSFont):
  16. 2002-12-03 David Hyatt <hyatt@apple.com>
  17. Remove the moveWidgetsAside function. This fixes all the
  18. form controls on livepage.apple.com that were getting hosed
  19. by the scrolling marquee.
  20. Reviewed by: darin
  21. * khtml/html/html_tableimpl.cpp:
  22. (HTMLTableRowElementImpl::addChild):
  23. * khtml/misc/loader.cpp:
  24. * khtml/rendering/render_root.cpp:
  25. (RenderRoot::layout):
  26. * kwq/KWQKHTMLPart.h:
  27. * kwq/KWQKHTMLPart.mm:
  28. (KWQKHTMLPart::KWQKHTMLPart):
  29. (KWQKHTMLPart::paint):
  30. 2002-12-03 Richard Williamson <rjw@apple.com>
  31. Fixed 3019986. Use an array of font families instead of a single
  32. font family to support CSS family lists.
  33. r=hyatt
  34. * kwq/KWQFont.h:
  35. * kwq/KWQFont.mm:
  36. (QFont::getNSFont):
  37. * kwq/KWQFontMetrics.mm:
  38. (QFontMetrics::width):
  39. (QFontMetrics::floatWidth):
  40. (QFontMetrics::floatCharacterWidths):
  41. * kwq/KWQPainter.mm:
  42. (QPainter::drawText):
  43. (QPainter::drawUnderlineForText):
  44. * kwq/WebCoreTextRenderer.h:
  45. * kwq/WebCoreTextRendererFactory.h:
  46. * kwq/WebCoreTextRendererFactory.m:
  47. (-[WebCoreTextRendererFactory rendererWithFamilies:traits:size:]):
  48. (-[WebCoreTextRendererFactory fontWithFamilies:traits:size:]):
  49. 2002-12-03 David Hyatt <hyatt@apple.com>
  50. Fix for 3112599, aol.com shopping page doesn't work. Apply
  51. the same form demotion trick to <tr> that I did already for
  52. <tbody> and <table>.
  53. r=gramps
  54. * khtml/html/dtd.cpp:
  55. (DOM::checkChild):
  56. * khtml/html/html_tableimpl.cpp:
  57. (HTMLTableRowElementImpl::addChild):
  58. * khtml/html/html_tableimpl.h:
  59. 2002-12-03 David Hyatt <hyatt@apple.com>
  60. Fix link feedback regression on aintitcool.com. Observe
  61. the wacky feedback we give now (yes, it matches MacIE and
  62. Gecko). Gotta love this malformed page.
  63. <a><h4>...</h4></a>
  64. r=mjs
  65. * khtml/rendering/render_object.cpp:
  66. (RenderObject::nodeAtPoint):
  67. 2002-12-03 David Hyatt <hyatt@apple.com>
  68. Eliminate the KONQBLOCK hack. Fixes ipodhacks.com (a mislayout
  69. caused by malformed html... <table><br>...)
  70. r=mjs
  71. * khtml/css/html4.css:
  72. * khtml/html/dtd.cpp:
  73. (DOM::checkChild):
  74. * khtml/html/html_elementimpl.cpp:
  75. (HTMLElementImpl::isInline):
  76. * khtml/html/htmlparser.cpp:
  77. (KHTMLParser::reset):
  78. (KHTMLParser::insertNode):
  79. * khtml/html/htmlparser.h:
  80. * khtml/misc/htmltags.c:
  81. (hash_tag):
  82. (findTag):
  83. * khtml/misc/htmltags.h:
  84. * khtml/misc/htmltags.in:
  85. * khtml/rendering/render_flow.cpp:
  86. (RenderFlow::layoutBlockChildren):
  87. 2002-12-02 David Hyatt <hyatt@apple.com>
  88. Fix for 3032557, wsj.com DHTML elements in the wrong position.
  89. This patch adds support for img.x and img.y (a Mozilla extension
  90. from NS4 days), which is used by the site to position the menus.
  91. r=kocienda on the patch.
  92. * khtml/dom/html_image.cpp:
  93. (HTMLImageElement::x):
  94. (HTMLImageElement::y):
  95. * khtml/dom/html_image.h:
  96. * khtml/ecma/kjs_html.cpp:
  97. (KJS::HTMLElement::getValueProperty):
  98. * khtml/ecma/kjs_html.h:
  99. * khtml/ecma/kjs_html.lut.h:
  100. 2002-12-02 David Hyatt <hyatt@apple.com>
  101. Undo my changes to margin collapsing for blocks inside inlines.
  102. Although they may be correct in a strict mode, they don't
  103. work with the real-world Web. For now, I'm just backing out
  104. the code. The CSS WG hasn't decided how this should work yet
  105. anyway, so I'll just let the quirk behavior be our behavior
  106. in both modes.
  107. This fixes aintitcool.com.
  108. * khtml/rendering/render_flow.cpp:
  109. (RenderFlow::layoutBlockChildren):
  110. 2002-12-01 David Hyatt <hyatt@apple.com>
  111. Convert the WebCore cache from LRU to size-adjusted and
  112. popularity-aware LRU (LRU-SP). With the improved cache,
  113. the size restriction on images can be relaxed back to 40K
  114. (from 16K) while retaining the same score on cvs-base.
  115. This should result in better real-world performance.
  116. * khtml/misc/loader.cpp:
  117. (CachedObject::ref):
  118. (CachedObject::setSize):
  119. (m_tail):
  120. (LRUList::~LRUList):
  121. (Cache::flush):
  122. (FastLog2):
  123. (Cache::getLRUListFor):
  124. (Cache::removeFromLRUList):
  125. (Cache::insertInLRUList):
  126. (Cache::adjustSize):
  127. * khtml/misc/loader.h:
  128. 2002-11-29 Don Melton <gramps@apple.com>
  129. * khtml/css/html4.css:
  130. Finally tweak headline font sizes and margins to match Gecko and CSS
  131. standard:
  132. - increase H1 font-size from 1.7em to 2em
  133. - increase H2 font-size from 1.4em to 1.5em
  134. - make H2 top and bottom margin match (bottom was strangely .87em)
  135. - increase H4 margin from 1.0em to 1.33em
  136. 2002-11-27 David Hyatt <hyatt@apple.com>
  137. Fix DHTML on phoenix.com. Add support for window.addEventListener
  138. and window.removeEventListener.
  139. * khtml/ecma/kjs_window.cpp:
  140. (Window::get):
  141. (WindowFunc::tryCall):
  142. * khtml/ecma/kjs_window.h:
  143. * khtml/ecma/kjs_window.lut.h:
  144. 2002-11-27 Maciej Stachowiak <mjs@apple.com>
  145. - avoid doing any work when setting the document's link colors if
  146. there is no change. This avoids superfluous style updates and
  147. results in a 20% improvment on the JavaScript iBench.
  148. * khtml/ecma/kjs_html.cpp:
  149. (KJS::HTMLDocument::putValue):
  150. 2002-11-27 David Hyatt <hyatt@apple.com>
  151. Fix <br clear=""> and <br clear> to just behave like <br>
  152. rather than <br clear="all">. Matches behavior in other
  153. browsers.
  154. * khtml/html/html_inlineimpl.cpp:
  155. (HTMLBRElementImpl::parseAttribute):
  156. 2002-11-27 David Hyatt <hyatt@apple.com>
  157. Numerous overflow: hidden improvements to fix espn.com.
  158. First stop absolute positioned overflow hidden elements
  159. from growing to accommodate their overflow. (Actually
  160. absolute positioned elements should never grow to do this,
  161. but fixing it for non-overflow hidden elements is hard,
  162. so later.)
  163. Second fix the render layer code to not allow background/borders
  164. of the object with overflow: hidden from being clipped. This
  165. involves an extra paint step where the object paints its
  166. background and borders prior to establishing the clip rect
  167. for the children. (This will also be necessary for overflow:auto
  168. and overflow:scroll).
  169. * ChangeLog:
  170. * khtml/rendering/render_box.cpp:
  171. (RenderBox::getClipRect):
  172. (RenderBox::calcAbsoluteVertical):
  173. * khtml/rendering/render_layer.cpp:
  174. (RenderLayer::paint):
  175. * khtml/rendering/render_object.h:
  176. 2002-11-27 David Hyatt <hyatt@apple.com>
  177. * khtml/rendering/render_box.cpp:
  178. (RenderBox::getClipRect):
  179. (RenderBox::calcAbsoluteVertical):
  180. * khtml/rendering/render_layer.cpp:
  181. (RenderLayer::paint):
  182. 2002-11-27 David Hyatt <hyatt@apple.com>
  183. Fix for 3105502. drop-downs wrapping to next line.
  184. * khtml/css/html4.css:
  185. 2002-11-26 David Hyatt <hyatt@apple.com>
  186. Smarter block inside inline handling. Eliminate whitespace
  187. that is in between blocks inside inilnes.
  188. * khtml/xml/dom_textimpl.cpp:
  189. (TextImpl::attach):
  190. 2002-11-26 David Hyatt <hyatt@apple.com>
  191. Don't let blocks inside inlines collapse with their surroundings
  192. ever.
  193. * khtml/rendering/render_flow.cpp:
  194. (RenderFlow::layoutBlockChildren):
  195. 2002-11-26 David Hyatt <hyatt@apple.com>
  196. Fix a collapsing margin regression on aintitcool caused by
  197. my support of blocks inside inlines. A block could be wrapped
  198. by an inline, e.g., <font><p>foo</p></font>, and in this case,
  199. you do not apply the collapsing margin quirk. The margin stays.
  200. * khtml/rendering/render_flow.cpp:
  201. (RenderFlow::layoutBlockChildren):
  202. 2002-11-26 David Hyatt <hyatt@apple.com>
  203. Fix the font family stuff to be refcounted, so copying
  204. fonts stays cheap. Re-enabling it.
  205. Patch the render_arena code with some debugging info
  206. to help detect when memory gets trashed.
  207. Fix the background painting code to deal with negative
  208. x and y bakcground positions. Fixes the brain on
  209. brainjar.com.
  210. * khtml/css/cssstyleselector.cpp:
  211. * khtml/rendering/render_arena.cpp:
  212. (RenderArena::free):
  213. * khtml/rendering/render_box.cpp:
  214. (RenderBox::paintBackground):
  215. * kwq/KWQFont.h:
  216. * kwq/KWQFont.mm:
  217. (QFontFamily::QFontFamily):
  218. (QFontFamily::operator=):
  219. === Alexander-34 ===
  220. 2002-11-26 David Hyatt <hyatt@apple.com>
  221. Backing out support for multiple font families for now.
  222. The support is still there in QFont. I've just stopped
  223. the style selector from walking the entire value list (it
  224. will only put the first family into the font).
  225. The original change caused a 5% perf regression.
  226. I'm going to see what kinds of tricks I can pull to get
  227. some of this back before re-enabling the feature.
  228. * khtml/css/cssstyleselector.cpp:
  229. 2002-11-26 David Hyatt <hyatt@apple.com>
  230. Fix render object removal to remerge adjacent anonymous inline boxes
  231. when an intervening block box gets removed.
  232. * khtml/rendering/render_flow.cpp:
  233. (RenderFlow::removeChild):
  234. * khtml/rendering/render_flow.h:
  235. 2002-11-25 Richard Williamson <rjw@apple.com>
  236. Cleanup up leaking objects in page cache.
  237. * kwq/KWQKHTMLPart.mm:
  238. (KWQKHTMLPart::openURLFromPageCache):
  239. * kwq/WebCoreBridge.mm:
  240. (-[KWQPageState initWithDocument:DOM::URL:windowProperties:KJS::locationProperties:KJS::]):
  241. (-[KWQPageState dealloc]):
  242. 2002-11-25 Richard Williamson <rjw@apple.com>
  243. Added check for non-nil doc.
  244. * kwq/KWQKHTMLPart.mm:
  245. (KWQKHTMLPart::setView):
  246. 2002-11-25 David Hyatt <hyatt@apple.com>
  247. Fix for the DHTML on hrweb. With these changes it works
  248. except for some odd vertical spacing issues.
  249. * khtml/rendering/render_flow.cpp:
  250. (RenderFlow::addChildToFlow):
  251. (RenderFlow::makeChildrenNonInline):
  252. 2002-11-25 Richard Williamson <rjw@apple.com>
  253. Tweaked some debugging info.
  254. * khtml/xml/dom_docimpl.cpp:
  255. (DocumentImpl::~DocumentImpl):
  256. (DocumentImpl::detach):
  257. 2002-11-25 Chris Blumenberg <cblu@apple.com>
  258. Use ^= to refer to OBJECTs with TYPEs that start with "image/". This is better than hard-coding image mime types.
  259. * khtml/css/html4.css:
  260. 2002-11-25 Chris Blumenberg <cblu@apple.com>
  261. Fixed: 2987001 - spurious mime-type errors from <object> images
  262. KHTML didn't seem to have any clean support for OBJECT tags that are images. Added support for that.
  263. * khtml/css/html4.css: OBJECTs that are images should be rendered inline
  264. * khtml/html/html_objectimpl.cpp:
  265. (HTMLObjectElementImpl::attach): if the type is an image, create a render image
  266. * khtml/rendering/render_image.cpp:
  267. (RenderImage::updateFromElement): if the element is an object, use DATA for the URL
  268. * kwq/KWQDOMNode.cpp:
  269. (isImage): if it is an OBJECT element, check the type
  270. * kwq/WebCoreBridge.mm:
  271. (-[WebCoreBridge elementAtPoint:]): if the element is an object, use DATA for the URL
  272. 2002-11-25 David Hyatt <hyatt@apple.com>
  273. Fix this even further. JUst drop support for arbitrary
  274. property lookup by name on the document. Mac IE and
  275. Gecko only do this for img and form, and this makes things
  276. a lot faster.
  277. * khtml/ecma/kjs_html.cpp:
  278. (KJS::HTMLDocument::hasProperty):
  279. (KJS::HTMLDocument::tryGet):
  280. 2002-11-25 David Hyatt <hyatt@apple.com>
  281. Rewrite the img/form document property lookup strategy. This
  282. should be faster and actually work (gasp!). Fixes the dhtml
  283. on hrweb to at least show up.
  284. * khtml/ecma/kjs_html.cpp:
  285. (KJS::HTMLDocument::tryGet):
  286. * khtml/html/html_miscimpl.cpp:
  287. (HTMLCollectionImpl::nextItem):
  288. 2002-11-25 David Hyatt <hyatt@apple.com>
  289. Add support to QFont for multiple families. NOw all that's left
  290. is getting the multiple families out of the font and down into
  291. WebKit.
  292. * khtml/css/cssstyleselector.cpp:
  293. * khtml/rendering/font.cpp:
  294. (Font::update):
  295. * khtml/rendering/font.h:
  296. * khtml/xml/dom_docimpl.cpp:
  297. (DocumentImpl::recalcStyle):
  298. * kwq/KWQFont.h:
  299. * kwq/KWQFont.mm:
  300. (QFontFamily::QFontFamily):
  301. (QFontFamily::operator=):
  302. (QFontFamily::family):
  303. (QFontFamily::setFamily):
  304. (QFontFamily::operator==):
  305. (QFont::QFont):
  306. (QFont::family):
  307. (QFont::setFamily):
  308. (QFont::getNSFontWithFamily):
  309. 2002-11-25 Richard Williamson <rjw@apple.com>
  310. Changes for back/forward. Currently disabled.
  311. * ForwardingHeaders/kjs/property_map.h: Added.
  312. * khtml/ecma/kjs_window.cpp:
  313. (Window::hasTimeouts):
  314. (WindowQObject::hasTimeouts):
  315. * khtml/ecma/kjs_window.h:
  316. * khtml/khtmlpart_p.h:
  317. * khtml/xml/dom_docimpl.cpp:
  318. (DocumentImpl::DocumentImpl):
  319. (DocumentImpl::detach):
  320. (DocumentImpl::inPageCache):
  321. (DocumentImpl::setInPageCache):
  322. * khtml/xml/dom_docimpl.h:
  323. * kwq/KWQKHTMLPart.h:
  324. * kwq/KWQKHTMLPart.mm:
  325. (KWQKHTMLPart::setView):
  326. (KWQKHTMLPart::userAgent):
  327. (KWQKHTMLPart::nextKeyViewForWidget):
  328. (KWQKHTMLPart::canCachePage):
  329. (KWQKHTMLPart::saveWindowProperties):
  330. (KWQKHTMLPart::saveLocationProperties):
  331. (KWQKHTMLPart::restoreWindowProperties):
  332. (KWQKHTMLPart::restoreLocationProperties):
  333. (KWQKHTMLPart::openURLFromPageCache):
  334. * kwq/WebCoreBridge.h:
  335. * kwq/WebCoreBridge.mm:
  336. (-[WebCoreBridge openURL:reload:headers:lastModified:pageCache:]):
  337. (-[WebCoreBridge saveDocumentToPageCache]):
  338. (-[WebCoreBridge canCachePage]):
  339. (attributedString):
  340. (-[KWQPageState initWithDocument:DOM::URL:windowProperties:KJS::locationProperties:KJS::]):
  341. (-[KWQPageState dealloc]):
  342. (-[KWQPageState DOM::]):
  343. (-[KWQPageState URL]):
  344. (-[KWQPageState KJS::]):
  345. 2002-11-25 David Hyatt <hyatt@apple.com>
  346. Fix for 3025963. Ensure that KJS looks for the form on the
  347. element itself when pushing it onto the scope chain, since
  348. the <form> may not be an ancestor of the element.
  349. * khtml/ecma/kjs_html.cpp:
  350. (getForm):
  351. (KJS::HTMLElement::pushEventHandlerScope):
  352. * khtml/html/html_elementimpl.h:
  353. 2002-11-25 David Hyatt <hyatt@apple.com>
  354. Fix for 3020493, another fun little margin collapsing quirk
  355. that I missed. (<td><div><p>). The <div> has to pick up the quirk
  356. from the <p> so that the margins of the <p> still get collapsed
  357. away.
  358. * khtml/rendering/render_flow.cpp:
  359. (RenderFlow::layoutBlockChildren):
  360. 2002-11-25 David Hyatt <hyatt@apple.com>
  361. Don't add in the halfleading for align=texttop. That's incorrect.
  362. * khtml/rendering/render_object.cpp:
  363. (RenderObject::getVerticalPosition):
  364. 2002-11-24 Maciej Stachowiak <mjs@apple.com>
  365. Fixed support for onLoad handlers on images - this is in
  366. APPLE_CHANGES because khtml used a different mechanism. Also
  367. implemented onError on images. As a result:
  368. - fixed 3084916 - blank page at aol
  369. - fixed 3093162 - golfswitch doesn't work
  370. * khtml/html/html_imageimpl.cpp:
  371. (HTMLImageElementImpl::parseAttribute): Remove "implement this"
  372. comment from onError attribute.
  373. * khtml/misc/loader.h:
  374. * khtml/misc/loader.cpp:
  375. (CachedImage::CachedImage): Initialize m_loading to true.
  376. (CachedImage::ref): Send notifyFinished to the new client if the
  377. image is not loading.
  378. (CachedImage::data): If at eof, set m_loading to false and notify.
  379. (CachedImage::error): Set m_loading to false and notify.
  380. (CachedImage::checkNotify): New method to notify all clients of
  381. changes.
  382. * khtml/rendering/render_image.cpp:
  383. (RenderImage::notifyFinished): Deliver the appropriate choice of
  384. LOAD_EVENT or ERROR_EVENT.
  385. 2002-11-24 David Hyatt <hyatt@apple.com>
  386. This landing adds support for blocks inside inlines. It
  387. gets rid of the old broken way KHTML used to handle this
  388. and implements a brand new mechanism.
  389. With this change, I have decreased the tag priority of <font>
  390. and <a> to match other inlines (<i>, <span>, etc.), and I
  391. now allow all the inlines to contain blocks for relaxed parsing.
  392. Now if you open an <i> or a <b> and just leave it open across
  393. blocks, this will work.
  394. I also fixed a bad DHTML bug caused by the WebCoreBridge
  395. forceLayout method. The basic pattern is that someone does
  396. a tiny repaint of just a sliver of the window, then someone
  397. schedules a layout (which means they want a full repaint), but
  398. then drawRect comes along and calls forceLayout which unschedules
  399. the layout, thus preventing the full repaint from occurring.
  400. Any basic DHTML that used append/remove child was broken because
  401. of this pattern. For now I have just removed the unscheduleLayout
  402. call at the end of forceLayout.
  403. * khtml/html/dtd.cpp:
  404. (DOM::checkChild):
  405. * khtml/html/htmlparser.cpp:
  406. (KHTMLParser::popInlineBlocks):
  407. * khtml/rendering/render_container.cpp:
  408. (RenderContainer::removeChild):
  409. (RenderContainer::removeLeftoverAnonymousBoxes):
  410. * khtml/rendering/render_flow.cpp:
  411. (RenderFlow::setStyle):
  412. (RenderFlow::layoutBlockChildren):
  413. (RenderFlow::continuationBefore):
  414. (cloneInline):
  415. (RenderFlow::splitInlines):
  416. (RenderFlow::splitFlow):
  417. (RenderFlow::addChildWithContinuation):
  418. (RenderFlow::addChild):
  419. (RenderFlow::addChildToFlow):
  420. * khtml/rendering/render_flow.h:
  421. * khtml/rendering/render_object.cpp:
  422. (RenderObject::mouseInside):
  423. * khtml/rendering/render_object.h:
  424. * kwq/KWQKHTMLPart.mm:
  425. (KWQKHTMLPart::forceLayout):
  426. * kwq/WebCoreBridge.mm:
  427. (-[WebCoreBridge copyRenderNode:copier:]):
  428. 2002-11-24 Chris Blumenberg <cblu@apple.com>
  429. Added element keys for the image ALT and link TITLE attributes. This will eventually be used to fix other bugs. Also made WebKit and WebCore use the same element keys to simplify the conversion of the element dictionary.
  430. * kwq/WebCoreBridge.h:
  431. * kwq/WebCoreBridge.mm:
  432. (-[WebCoreBridge elementAtPoint:]):
  433. 2002-11-24 Darin Adler <darin@apple.com>
  434. * force-js-clean-timestamp: Touch for ScopeChain change.
  435. 2002-11-24 Maciej Stachowiak <mjs@apple.com>
  436. - fixed 3067939 - no support for window.document.lastModified
  437. * kwq/WebCoreBridge.h:
  438. * kwq/WebCoreBridge.mm:
  439. (-[WebCoreBridge openURL:reload:headers:lastModified:]): Set
  440. "modified" metadata based on passed in last mdified date.
  441. 2002-11-24 Maciej Stachowiak <mjs@apple.com>
  442. - fixed 3081946 - bookmarklet reports the wrong "windowfull" size
  443. This isn't really beta 1 material but the fix was so tirivial I
  444. couldn't resist.
  445. * khtml/ecma/kjs_html.cpp:
  446. (KJS::HTMLDocument::tryGet): Use contentWidth and contentHeight
  447. for document.width and document.height instead of visibleWidth for
  448. both.
  449. 2002-11-22 Darin Adler <darin@apple.com>
  450. * khtml/ecma/kjs_window.cpp: Remove _COLLECTOR hack.
  451. * kwq/WebCoreJavaScript.h:
  452. * kwq/WebCoreJavaScript.mm:
  453. (+[WebCoreJavaScript rootObjectClasses]):
  454. Update for name change -- root object classes, not all live object classes.
  455. * force-js-clean-timestamp: Make sure we don't have more build problems.
  456. 2002-11-22 David Hyatt <hyatt@apple.com>
  457. Fix for 3107658, text doubling problem caused by layers being
  458. constructed for <td>s. Just disallow positioning of <td>.
  459. * khtml/rendering/render_box.cpp:
  460. (RenderBox::setStyle):
  461. * khtml/rendering/render_flow.cpp:
  462. (RenderFlow::setStyle):
  463. 2002-11-22 David Hyatt <hyatt@apple.com>
  464. Oops. I meant to do that for <input type=button> and not
  465. <button>. Just do it for <select>s for now.
  466. * khtml/rendering/render_box.cpp:
  467. (RenderBox::calcReplacedWidth):
  468. 2002-11-22 David Hyatt <hyatt@apple.com>
  469. Make <select>s and <button>s ignore a CSS-specified width if that
  470. width is smaller than their intrinsic width.
  471. Fixes the <select> at the top of livepage.apple.com.
  472. * khtml/rendering/render_box.cpp:
  473. (RenderBox::calcReplacedWidth):
  474. 2002-11-22 Darin Adler <darin@apple.com>
  475. - started checking in all our generated source files for the benefit of B&I
  476. * .cvsignore:
  477. * WebCore-combined.exp: Added.
  478. * khtml/css/.cvsignore:
  479. * khtml/css/cssproperties.c: Added.
  480. * khtml/css/cssproperties.h: Added.
  481. * khtml/css/cssvalues.c: Added.
  482. * khtml/css/cssvalues.h: Added.
  483. * khtml/ecma/.cvsignore:
  484. * khtml/ecma/kjs_css.lut.h: Added.
  485. * khtml/ecma/kjs_dom.lut.h: Added.
  486. * khtml/ecma/kjs_events.lut.h: Added.
  487. * khtml/ecma/kjs_html.lut.h: Added.
  488. * khtml/ecma/kjs_navigator.lut.h: Added.
  489. * khtml/ecma/kjs_range.lut.h: Added.
  490. * khtml/ecma/kjs_traversal.lut.h: Added.
  491. * khtml/ecma/kjs_views.lut.h: Added.
  492. * khtml/ecma/kjs_window.lut.h: Added.
  493. * khtml/html/.cvsignore:
  494. * khtml/html/kentities.c: Added.
  495. * khtml/misc/.cvsignore:
  496. * khtml/misc/htmlattrs.c: Added.
  497. * khtml/misc/htmlattrs.h: Added.
  498. * khtml/misc/htmltags.c: Added.
  499. * khtml/misc/htmltags.h: Added.
  500. * kwq/.cvsignore:
  501. * kwq/KWQCharsetData.c: Added.
  502. 2002-11-22 David Hyatt <hyatt@apple.com>
  503. Fix for the table/form regressions. Also landing beginnings
  504. of the block/inline work.
  505. * khtml/html/html_tableimpl.cpp:
  506. (HTMLTableSectionElementImpl::addChild):
  507. * khtml/html/html_tableimpl.h:
  508. * khtml/rendering/render_flow.cpp:
  509. (RenderFlow::RenderFlow):
  510. * khtml/rendering/render_flow.h:
  511. 2002-11-22 Darin Adler <darin@apple.com>
  512. * khtml/ecma/kjs_dom.cpp: (DOMNode::pushEventHandlerScope): Change to push handlers
  513. on an existing scope chain rather than returning one. Name change too.
  514. * khtml/ecma/kjs_dom.h: More of the same.
  515. * khtml/ecma/kjs_html.cpp: (KJS::HTMLElement::pushEventHandlerScope): And here.
  516. * khtml/ecma/kjs_html.h: And here.
  517. * khtml/ecma/kjs_events.cpp: (JSEventListener::handleEvent): Use the pushEventHandlerScope
  518. function, and also don't worry about optimizing the "no change" case, because that already
  519. works pretty efficiently.
  520. 2002-11-22 David Hyatt <hyatt@apple.com>
  521. Fix for the weather.com, slate and espn malformations that
  522. could occur. Also reverting an earlier change for handling
  523. font tags like other inlines. Both FONT and A need to be
  524. given special treatment until I can implement a strategy that
  525. will allow them to be handled just like the other inlines.
  526. * khtml/html/dtd.cpp:
  527. (DOM::checkChild):
  528. * khtml/html/html_elementimpl.cpp:
  529. (HTMLElementImpl::isInline):
  530. * khtml/html/html_elementimpl.h:
  531. * khtml/xml/dom_nodeimpl.h:
  532. 2002-11-21 Darin Adler <darin@apple.com>
  533. * khtml/ecma/kjs_dom.cpp: (DOMNode::eventHandlerScope): List -> ScopeChain.
  534. * khtml/ecma/kjs_dom.h: List -> ScopeChain.
  535. * khtml/ecma/kjs_events.cpp: (JSEventListener::handleEvent): List -> ScopeChain.
  536. * khtml/ecma/kjs_html.cpp: (KJS::HTMLElement::eventHandlerScope): List -> ScopeChain.
  537. * khtml/ecma/kjs_html.h: List -> ScopeChain.
  538. * force-js-clean-timestamp: Not sure this is required, but better safe than sorry.
  539. 2002-11-21 Maciej Stachowiak <mjs@apple.com>
  540. * force-js-clean-timestamp: Touch so other people's builds work.
  541. 2002-11-21 David Hyatt <hyatt@apple.com>
  542. Nested <a>s are never allowed. Make sure to always pop the
  543. <a> blocks.
  544. * khtml/html/htmlparser.cpp:
  545. (KHTMLParser::getElement):
  546. 2002-11-21 David Hyatt <hyatt@apple.com>
  547. Stop table cells from repainting the whole table when they
  548. get a repaint. Gives another big boost to link rollover
  549. performance when links' containing blocks are table cells.
  550. * khtml/rendering/render_table.cpp:
  551. (RenderTableCell::repaint):
  552. 2002-11-21 David Hyatt <hyatt@apple.com>
  553. Fix <font> so that behaves just like <i>, <b>, etc. Stop
  554. the (incorrect) allowance of blocks inside <font> tags.
  555. This fixes the mispositioning on avoyagetoarcturus.blogspot.com
  556. and fixes the vertical gaps on www.ve3d.com.
  557. * khtml/html/dtd.cpp:
  558. (DOM::checkChild):
  559. 2002-11-21 Maciej Stachowiak <mjs@apple.com>
  560. * Makefile.am: Pass symroots for this tree to pbxbuild.
  561. 2002-11-21 David Hyatt <hyatt@apple.com>
  562. Fixed for tables. Make the percentage height calculation
  563. more robust. Also add a hack for replaced elements to
  564. subtract out their margins when computing percentage widths.
  565. This keeps them from spilling out of table cells.
  566. * khtml/rendering/render_box.cpp:
  567. (RenderBox::calcReplacedWidth):
  568. (RenderBox::calcReplacedHeight):
  569. * khtml/rendering/render_table.cpp:
  570. (RenderTable::layoutRows):
  571. * khtml/xml/dom_nodeimpl.h:
  572. === Alexander-33 ===
  573. 2002-11-21 Richard Williamson <rjw@apple.com>
  574. Fixed from SK's copy/paste whitespace issue.
  575. This fixes 3076236 and a regression due to additional whitespace
  576. in the DOM.
  577. * kwq/WebCoreBridge.mm:
  578. (attributedString):
  579. 2002-11-21 David Hyatt <hyatt@apple.com>
  580. Fix mac.com regression (and weather.com regression).
  581. * khtml/rendering/bidi.cpp:
  582. (RenderFlow::findNextLineBreak):
  583. 2002-11-21 Richard Williamson <rjw@apple.com>
  584. Fixed performance regression! Argh.
  585. * khtml/rendering/font.cpp:
  586. (Font::width):
  587. 2002-11-21 Darin Adler <darin@apple.com>
  588. * force-js-clean-timestamp: Trigger a rebuild because of the
  589. size change in ValueImp.
  590. 2002-11-21 Darin Adler <darin@apple.com>
  591. - fixed 3107286 -- REGRESSION: unrepro assertion failure in KWQKHTMLPart.mm keyEvent
  592. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::keyEvent):
  593. Handle case of nil document as well as case of nil focus node.
  594. * kwq/WebCoreBridge.mm: Tweak whitespace.
  595. 2002-11-20 Darin Adler <darin@apple.com>
  596. - fixed 3107383 -- clicking link on cnet.com leads to assertion failure
  597. When we removed a frame, we were leaving behind an empty WebView. Yuck.
  598. * kwq/KWQScrollView.mm:
  599. (QScrollView::addChild): Use the new getOuterView.
  600. (QScrollView::removeChild): Ditto. This was the bug fix.
  601. * kwq/KWQWidget.h: Add getOuterView.
  602. * kwq/KWQWidget.mm:
  603. (QWidget::frameGeometry): Use the new getOuterView.
  604. (QWidget::setFrameGeometry): Ditto.
  605. (QWidget::getOuterView): Added. Does the WebCoreFrameView magic to find
  606. the WebView instead of the WebHTMLView. Yuck.
  607. (QWidget::paint): Use the new getOuterView.
  608. 2002-11-20 Darin Adler <darin@apple.com>
  609. * force-js-clean-timestamp: Again.
  610. 2002-11-20 David Hyatt <hyatt@apple.com>
  611. Fix the mac.com line-breaking bug. This was not a regression
  612. but was present in Konq.
  613. * khtml/rendering/bidi.cpp:
  614. (RenderFlow::findNextLineBreak):
  615. 2002-11-20 Maciej Stachowiak <mjs@apple.com>
  616. * force-js-clean-timestamp: Work around PB lameness yet again.
  617. 2002-11-19 Darin Adler <darin@apple.com>
  618. * force-js-clean-timestamp: Make other people's builds work.
  619. 2002-11-19 David Hyatt <hyatt@apple.com>
  620. I screwed up the line breaking for inline replaced elements.
  621. * khtml/rendering/render_flow.cpp:
  622. (RenderFlow::calcInlineMinMaxWidth):
  623. 2002-11-19 Darin Adler <darin@apple.com>
  624. - another atomic identifier scrub pass; make the conversion to Identifier explicit
  625. * khtml/ecma/kjs_html.cpp:
  626. (KJS::HTMLCollection::tryCall): Add explicit Identifier() conversion.
  627. (KJS::HTMLCollectionProtoFunc::tryCall): Ditto.
  628. * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): And again.
  629. 2002-11-19 David Hyatt <hyatt@apple.com>
  630. Fix for 3049663. Table cells don't grow to accommodate block
  631. overflow.
  632. * khtml/rendering/bidi.cpp:
  633. (RenderFlow::layoutInlineChildren):
  634. * khtml/rendering/render_flow.cpp:
  635. (RenderFlow::RenderFlow):
  636. (RenderFlow::layout):
  637. (RenderFlow::layoutBlockChildren):
  638. * khtml/rendering/render_flow.h:
  639. * khtml/rendering/render_object.h:
  640. 2002-11-19 Darin Adler <darin@apple.com>
  641. - next step towards atomic identifiers; Identifier is no longer derived from UString
  642. * khtml/ecma/kjs_binding.cpp:
  643. (Identifier::string): Added.
  644. (Identifier::qstring): Added.
  645. * khtml/ecma/kjs_binding.h:
  646. * khtml/ecma/kjs_css.cpp:
  647. (jsNameToProp):
  648. (DOMCSSStyleDeclaration::tryPut):
  649. (DOMStyleSheet::tryPut):
  650. (DOMStyleSheetList::tryGet):
  651. (DOMMediaList::tryGet):
  652. (DOMCSSRuleList::tryGet):
  653. (DOMCSSValueList::tryGet):
  654. * khtml/ecma/kjs_dom.cpp:
  655. (DOMNodeList::hasProperty):
  656. (DOMNodeList::tryGet):
  657. (DOMNodeListFunc::DOMNodeListFunc):
  658. (DOMElement::tryGet):
  659. (DOMNamedNodeMap::hasProperty):
  660. (DOMNamedNodeMap::tryGet):
  661. (DOMNamedNodesCollection::tryGet):
  662. * khtml/ecma/kjs_html.cpp:
  663. (KJS::HTMLDocument::tryGet):
  664. (HTMLElementFunction::HTMLElementFunction):
  665. (KJS::HTMLElement::putValue):
  666. (KJS::HTMLCollection::hasProperty):
  667. (KJS::HTMLCollection::tryGet):
  668. (KJS::HTMLSelectCollection::tryPut):
  669. (OptionConstructorImp::OptionConstructorImp):
  670. * khtml/ecma/kjs_navigator.cpp:
  671. (Plugins::get):
  672. (MimeTypes::get):
  673. (Plugin::get):
  674. * khtml/ecma/kjs_window.cpp:
  675. (WindowFunc::tryCall):
  676. (FrameArray::get):
  677. Use lengthPropertyName instead of "length" for better speed.
  678. 2002-11-19 David Hyatt <hyatt@apple.com>
  679. Fix backgrounds not painting in deployment builds.
  680. * khtml/rendering/render_box.cpp:
  681. (RenderBox::paintBackground):
  682. 2002-11-19 Darin Adler <darin@apple.com>
  683. - a first step towards atomic identifiers in JavaScript
  684. Most places that work with identifiers now use Identifier
  685. instead of UString.
  686. * khtml/ecma/kjs_binding.cpp:
  687. * khtml/ecma/kjs_binding.h:
  688. * khtml/ecma/kjs_css.cpp:
  689. * khtml/ecma/kjs_css.h:
  690. * khtml/ecma/kjs_dom.cpp:
  691. * khtml/ecma/kjs_dom.h:
  692. * khtml/ecma/kjs_events.cpp:
  693. * khtml/ecma/kjs_events.h:
  694. * khtml/ecma/kjs_html.cpp:
  695. * khtml/ecma/kjs_html.h:
  696. * khtml/ecma/kjs_navigator.cpp:
  697. * khtml/ecma/kjs_navigator.h:
  698. * khtml/ecma/kjs_range.cpp:
  699. * khtml/ecma/kjs_range.h:
  700. * khtml/ecma/kjs_traversal.cpp:
  701. * khtml/ecma/kjs_traversal.h:
  702. * khtml/ecma/kjs_views.cpp:
  703. * khtml/ecma/kjs_views.h:
  704. * khtml/ecma/kjs_window.cpp:
  705. * khtml/ecma/kjs_window.h:
  706. 2002-11-18 Darin Adler <darin@apple.com>
  707. * force-js-clean-timestamp: Another Object change.
  708. 2002-11-18 David Hyatt <hyatt@apple.com>
  709. Implement phased painting to correct the paint order of blocks,
  710. floats, and inlines.
  711. * khtml/rendering/render_body.cpp:
  712. (RenderBody::paintBoxDecorations):
  713. * khtml/rendering/render_body.h:
  714. * khtml/rendering/render_box.cpp:
  715. (RenderBox::paint):
  716. (RenderBox::paintBoxDecorations):
  717. (RenderBox::paintBackground):
  718. * khtml/rendering/render_box.h:
  719. * khtml/rendering/render_br.h:
  720. * khtml/rendering/render_flow.cpp:
  721. (RenderFlow::paint):
  722. (RenderFlow::paintObject):
  723. (RenderFlow::paintFloats):
  724. (RenderFlow::addChild):
  725. * khtml/rendering/render_flow.h:
  726. * khtml/rendering/render_html.cpp:
  727. (RenderHtml::setStyle):
  728. (RenderHtml::paint):
  729. (RenderHtml::paintBoxDecorations):
  730. * khtml/rendering/render_html.h:
  731. * khtml/rendering/render_image.cpp:
  732. (RenderImage::setStyle):
  733. (RenderImage::paintObject):
  734. * khtml/rendering/render_image.h:
  735. * khtml/rendering/render_layer.cpp:
  736. (RenderLayer::paint):
  737. (RenderLayer::nodeAtPoint):
  738. * khtml/rendering/render_list.cpp:
  739. (RenderListItem::paint):
  740. (RenderListItem::paintObject):
  741. (RenderListMarker::paint):
  742. (RenderListMarker::paintObject):
  743. * khtml/rendering/render_list.h:
  744. * khtml/rendering/render_object.cpp:
  745. (RenderObject::RenderObject):
  746. (RenderObject::paintBorder):
  747. (RenderObject::paintOutline):
  748. (RenderObject::paint):
  749. (RenderObject::dump):
  750. (RenderObject::setStyle):
  751. * khtml/rendering/render_object.h:
  752. * khtml/rendering/render_replaced.cpp:
  753. (RenderReplaced::paint):
  754. (RenderWidget::setStyle):
  755. (RenderWidget::paintObject):
  756. * khtml/rendering/render_replaced.h:
  757. * khtml/rendering/render_root.cpp:
  758. (RenderRoot::paint):
  759. (RenderRoot::paintObject):
  760. * khtml/rendering/render_root.h:
  761. * khtml/rendering/render_table.cpp:
  762. (RenderTable::paint):
  763. (RenderTableCell::RenderTableCell):
  764. (RenderTableCell::setStyle):
  765. (RenderTableCell::paint):
  766. (RenderTableCell::paintBoxDecorations):
  767. * khtml/rendering/render_table.h:
  768. * khtml/rendering/render_text.cpp:
  769. (TextSlave::paintSelection):
  770. (TextSlave::paintDecoration):
  771. (TextSlave::paintBoxDecorations):
  772. (RenderText::paintObject):
  773. (RenderText::paint):
  774. (RenderText::paintTextOutline):
  775. * khtml/rendering/render_text.h:
  776. 2002-11-18 Darin Adler <darin@apple.com>
  777. * force-js-clean-timestamp: I changed the size of ObjectImp.
  778. 2002-11-18 David Hyatt <hyatt@apple.com>
  779. Fix crazyapplerumors.com. I had the logic backwards. CSS
  780. padding beats cellpadding.
  781. * khtml/rendering/render_table.cpp:
  782. (RenderTableCell::paddingTop):
  783. (RenderTableCell::paddingBottom):
  784. (RenderTableCell::paddingLeft):
  785. (RenderTableCell::paddingRight):
  786. 2002-11-18 David Hyatt <hyatt@apple.com>
  787. Fix crash on espn.com.
  788. * khtml/rendering/render_object.cpp:
  789. (RenderObject::setLayouted):
  790. 2002-11-18 David Hyatt <hyatt@apple.com>
  791. Fix my <konqblock> regression on ign.com.
  792. * khtml/html/htmlparser.cpp:
  793. (KHTMLParser::insertNode):
  794. 2002-11-18 Maciej Stachowiak <mjs@apple.com>
  795. * force-js-clean-timestamp: Rebuild for JSC changes.
  796. 2002-11-18 Darin Adler <darin@apple.com>
  797. * force-js-clean-timestamp: Touch files to make the build work.
  798. 2002-11-18 Richard Williamson <rjw@apple.com>
  799. Fixed 3103004. REGRESSION: word-spacing/letter-spacing applied when they shouldn't be
  800. This was actually NOT a regression. khtml wasn't recognizing the 'normal' value for the
  801. word and letter spacing properties. So it incorrectly substituted a -1 spacing.
  802. * khtml/css/cssstyleselector.cpp:
  803. 2002-11-18 David Hyatt <hyatt@apple.com>
  804. Fix render_body's repaint method.
  805. * khtml/rendering/render_body.cpp:
  806. (RenderBody::repaint):
  807. * khtml/rendering/render_body.h:
  808. 2002-11-18 Maciej Stachowiak <mjs@apple.com>
  809. - fixed 3103711 - Alexander does not complete JavaScript iBench
  810. * khtml/ecma/kjs_html.cpp:
  811. (KJS::HTMLDocument::putValue): Resolve URL for location property
  812. relative to the base URL of the frame where the JavaScript is
  813. executing, not the target frame.
  814. 2002-11-18 David Hyatt <hyatt@apple.com>
  815. Yay! Found the main cause of :hover feedback being so
  816. slow on links. The diff function for styles was
  817. considering a color change as a containing block layout
  818. instead of just a repaint. With this fix, we will no
  819. longer lay out when you hover over a link whose color
  820. is different (remember that laying out causes the whole
  821. page to repaint).
  822. There's still some work to do to optimize this further,
  823. since we do repaint the containing block still, but this
  824. should be good enough for beta.
  825. * khtml/rendering/render_style.cpp:
  826. (RenderStyle::diff):
  827. 2002-11-17 David Hyatt <hyatt@apple.com>
  828. Don't use the immediate painting code for now. Revert
  829. to non-immediate code. Using the non-immediate path I
  830. have managed to fix all the regressions except for
  831. mrskin losing updates in its marquee (this works only with
  832. immediate painting) and the general scrollbar regression
  833. (which I just don't understand).
  834. * khtml/html/html_documentimpl.cpp:
  835. (HTMLDocumentImpl::close):
  836. * khtml/rendering/render_object.cpp:
  837. (RenderObject::setLayouted):
  838. * khtml/rendering/render_root.cpp:
  839. (RenderRoot::repaintRectangle):
  840. (RenderRoot::repaint):
  841. 2002-11-17 David Hyatt <hyatt@apple.com>
  842. More refinements to immediate painting code. Still doesn't
  843. fix the scrollbar problem though. :(
  844. * khtml/html/html_documentimpl.cpp:
  845. (HTMLDocumentImpl::close):
  846. * khtml/khtmlview.cpp:
  847. (KHTMLView::init):
  848. (KHTMLView::timerEvent):
  849. 2002-11-17 David Hyatt <hyatt@apple.com>
  850. Make immediate repainting of the root element more robust.
  851. * khtml/html/html_documentimpl.cpp:
  852. (HTMLDocumentImpl::close):
  853. * khtml/khtmlview.cpp:
  854. (KHTMLView::unscheduleRepaint):
  855. * khtml/khtmlview.h:
  856. * khtml/rendering/render_root.cpp:
  857. (RenderRoot::repaint):
  858. 2002-11-17 Darin Adler <darin@apple.com>
  859. - moved all NSURL and CFURL use out of WebCore
  860. * kwq/KWQKURL.h: Remove getNSURL() and getNSURLFromString().
  861. * kwq/KWQKURL.mm: Ditto.
  862. * kwq/KWQKCookieJar.mm:
  863. (KWQKCookieJar::cookie): Pass an NSString instead of an NSURL.
  864. (KWQKCookieJar::setCookie): Ditto.
  865. * kwq/KWQKHTMLPart.mm:
  866. (KWQKHTMLPart::openURL): Ditto.
  867. (KWQKHTMLPart::openURLRequest): Ditto.
  868. (KWQKHTMLPart::submitForm): Ditto.
  869. (KWQKHTMLPart::urlSelected): Ditto.
  870. (KWQKHTMLPart::createPart): Ditto.
  871. (KWQKHTMLPart::redirectionTimerStartedOrStopped): Ditto.
  872. (KWQKHTMLPart::userAgent): Ditto.
  873. (KWQKHTMLPart::requestedURLString): Receive an NSString instead of an NSURL.
  874. * kwq/KWQKHTMLPartBrowserExtension.mm:
  875. (KHTMLPartBrowserExtension::createNewWindow): Pass an NSString instead of an NSURL.
  876. (KHTMLPartBrowserExtension::setIconURL): Ditto.
  877. (KHTMLPartBrowserExtension::setTypedIconURL): Ditto.
  878. * kwq/KWQKJavaAppletWidget.h: Remove use of NSURL, just use QString instead.
  879. * kwq/KWQKJavaAppletWidget.mm:
  880. (KJavaAppletWidget::KJavaAppletWidget): No need to set the QString to nil.
  881. (KJavaAppletWidget::~KJavaAppletWidget): No need to release the QString.
  882. (KJavaAppletWidget::showApplet): Pass an NSString instead of an NSURL.
  883. * kwq/KWQLoader.mm:
  884. (KWQServeRequest): Pass an NSString instead of an NSURL.
  885. (KWQCheckCacheObjectStatus): Ditto.
  886. * kwq/WebCoreBridge.h: Change all methods to use NSString instead of NSURL.
  887. * kwq/WebCoreBridge.mm:
  888. (-[WebCoreBridge openURL:reload:headers:]): Receive an NSString instead of an NSURL.
  889. (-[WebCoreBridge completeURLForDOMString:]): Return an NSString instead of an NSURL.
  890. (-[WebCoreBridge elementAtPoint:]): WebCoreElementLinkURL and WebCoreElementImageURL
  891. are now strings.
  892. (-[WebCoreBridge URL]): Return an NSString instead of an NSURL.
  893. * kwq/WebCoreCookieAdapter.h: Change all methods to use NSString instead of NSURL.
  894. * kwq/WebCoreCookieAdapter.m:
  895. (-[WebCoreCookieAdapter cookiesForURL:]): Ditto.
  896. (-[WebCoreCookieAdapter setCookies:forURL:policyBaseURL:]): Ditto.
  897. * khtml/rendering/render_applet.cpp: (RenderApplet::processArguments):
  898. Tweaked this file a tiny bit, mainly because header dependencies weren't working
  899. and we need this file to be recompiled due to inline function changes.
  900. 2002-11-17 David Hyatt <hyatt@apple.com>
  901. Add support for specifying whether repaint should be immediate or
  902. not. Default to async for now to maintain current behavior.
  903. For clipped object repainting (e.g., livepage.apple.com and mrskin)
  904. switch to immediate repainting, since this makes the marquees
  905. faster, stops dropping updates, and keeps the hover effects and
  906. painting on the rest of the page fast (since the marquee rect doesn't
  907. get unioned with links or images that you roll over).
  908. * khtml/rendering/render_box.cpp:
  909. (RenderBox::repaint):
  910. (RenderBox::repaintRectangle):
  911. * khtml/rendering/render_box.h:
  912. * khtml/rendering/render_html.cpp:
  913. (RenderHtml::repaint):
  914. * khtml/rendering/render_html.h:
  915. * khtml/rendering/render_object.cpp:
  916. (RenderObject::setLayouted):
  917. (RenderObject::repaintRectangle):
  918. * khtml/rendering/render_object.h:
  919. * khtml/rendering/render_root.cpp:
  920. (RenderRoot::repaintRectangle):
  921. (RenderRoot::repaint):
  922. * khtml/rendering/render_root.h:
  923. * khtml/rendering/render_table.cpp:
  924. (RenderTableRow::repaint):
  925. (RenderTableCell::repaintRectangle):
  926. (RenderTableCell::repaint):
  927. * khtml/rendering/render_table.h:
  928. * khtml/rendering/render_text.cpp:
  929. (RenderText::repaint):
  930. * khtml/rendering/render_text.h:
  931. 2002-11-17 Maciej Stachowiak <mjs@apple.com>
  932. - fixed 2949193 - implement onKeyDown, onKeyPress, and onKeyUp event handlers
  933. * khtml/html/html_formimpl.cpp:
  934. (HTMLGenericFormElementImpl::defaultEventHandler):
  935. * kwq/KWQEvent.h:
  936. * kwq/KWQEvent.mm:
  937. (QKeyEvent::QKeyEvent): Implemented.
  938. (QKeyEvent::key): Likewise.
  939. (QKeyEvent::state): Likewise.
  940. (QKeyEvent::accept): Likewise.
  941. (QKeyEvent::ignore): Likewise.
  942. (QKeyEvent::isAutoRepeat): Likewise.
  943. (QKeyEvent::text): Likewise.
  944. (QKeyEvent::ascii): Likewise.
  945. (QKeyEvent::count): Likewise.
  946. (QKeyEvent::isAccepted): Likewise.
  947. * kwq/KWQKHTMLPart.h:
  948. * kwq/KWQKHTMLPart.mm:
  949. (KWQKHTMLPart::keyEvent): Translate the event to a QEvent and send
  950. it through the DOM event mechanism.
  951. * kwq/WebCoreBridge.h:
  952. * kwq/WebCoreBridge.mm:
  953. (-[WebCoreBridge interceptKeyEvent:toView:]): Pass event to the
  954. KWQ part.
  955. * kwq/WebCoreBridgePrivate.h: Added.
  956. * WebCore.pbproj/project.pbxproj: Added new file.
  957. 2002-11-17 David Hyatt <hyatt@apple.com>
  958. Don't discard linefeeds after elements with no close tag
  959. (e.g., <img> or <input>).
  960. * khtml/html/htmltokenizer.cpp:
  961. (HTMLTokenizer::parseTag):
  962. 2002-11-17 David Hyatt <hyatt@apple.com>
  963. Fix for slashdot table mispositioning in the upper right.
  964. Now that we fixed <td> to set to -konq-center when align="center"
  965. is specified, the style rules are no longer necessary in
  966. html4.css (and are in fact harmful).
  967. * khtml/css/html4.css:
  968. 2002-11-17 David Hyatt <hyatt@apple.com>
  969. Fix for 3038168. Duh. Remember to be case-insensitive when
  970. checking the type of the <style> attribute.
  971. * khtml/html/html_headimpl.cpp:
  972. (HTMLStyleElementImpl::parseAttribute):
  973. 2002-11-17 David Hyatt <hyatt@apple.com>
  974. This is a fix for bug 3058470. The bug was that replaced elements
  975. were computing their min and max widths wrong. Specifically they
  976. were not adding in borders and padding! This means that any image
  977. with a border around it would potentially break to another line
  978. too early.
  979. Once I fixed this for replaced elements I then went in and
  980. fixed form controls. I added two APPLE_CHANGES features for
  981. our form controls. First I overrode the border/padding functions
  982. to always return 0 for all form controls, since no Aqua control
  983. honors border/padding (nor should it). This fixes the menulist
  984. at the top of wired.com.
  985. Second I made sure that certain controls will ignore CSS-specified
  986. heights and always use their intrinsic heights. These include
  987. <select size=1> (combobox), single line text fields, and buttons.
  988. I allow listboxes and textareas to honor height.
  989. * khtml/rendering/render_box.cpp:
  990. (RenderBox::contentWidth):
  991. (RenderBox::contentHeight):
  992. (RenderBox::calcWidth):
  993. (RenderBox::calcHeight):
  994. * khtml/rendering/render_form.h:
  995. * khtml/rendering/render_image.h:
  996. * khtml/rendering/render_object.h:
  997. * khtml/rendering/render_replaced.cpp:
  998. (RenderReplaced::calcMinMaxWidth):
  999. 2002-11-16 David Hyatt <hyatt@apple.com>
  1000. Fix for 3078240, <pre> should not establish its own text-align,
  1001. but should instead inherit from its parent.
  1002. * khtml/css/html4.css:
  1003. 2002-11-16 David Hyatt <hyatt@apple.com>
  1004. Rewrite the calculation of min and max width for <pre>s. This
  1005. is the second stage of the whitespace rewrite (third stage
  1006. will be to stop morphing newlines).
  1007. This should fix a bunch of bugs, e.g., especially if you ever
  1008. did the following:
  1009. <td><pre><span>foo</span>
  1010. more text after the newline</pre></td>
  1011. The new code now properly handles building up the correct min/max
  1012. width for the <pre>.
  1013. If anyone recalls seeing any bugs like this, let me know and
  1014. I can close them.
  1015. * khtml/rendering/render_flow.cpp:
  1016. (RenderFlow::calcInlineMinMaxWidth):
  1017. * khtml/rendering/render_text.cpp:
  1018. (RenderText::trimmedMinMaxWidth):
  1019. (RenderText::calcMinMaxWidth):
  1020. 2002-11-16 David Hyatt <hyatt@apple.com>
  1021. Fix more edge cases with whitespace handling that caused some
  1022. lines to be too long (and unselectable).
  1023. * khtml/rendering/bidi.cpp:
  1024. (appendRunsForObject):
  1025. 2002-11-16 David Hyatt <hyatt@apple.com>
  1026. Make <caption> error-handling more robust.
  1027. Specifically, handle <tr> and <td> misplaced inside
  1028. <caption>s and still make them be part of the table.
  1029. * khtml/html/htmlparser.cpp:
  1030. (KHTMLParser::insertNode):
  1031. 2002-11-16 David Hyatt <hyatt@apple.com>
  1032. Implement the collapsing top margin quirk for <body> (the same
  1033. quirk used for table cells) and make sure it works even when the
  1034. <body> has margins of its own.
  1035. Fixes www.eflightpacks.com (the top frame was shoved down because
  1036. the <p> margin didn't collapse away).
  1037. * khtml/rendering/render_flow.cpp:
  1038. (RenderFlow::layoutBlockChildren):
  1039. 2002-11-16 David Hyatt <hyatt@apple.com>
  1040. Sigh. Amazingly enough, all other browsers seem to treat
  1041. stray </p>s as <p></p> (Mac IE treats it as <br>, but
  1042. I'm going with the WinIE/Gecko behavior of <p></p>).
  1043. This fixes bug 3063699.
  1044. * khtml/html/htmlparser.cpp:
  1045. (KHTMLParser::processCloseTag):
  1046. (KHTMLParser::popBlock):
  1047. 2002-11-15 David Hyatt <hyatt@apple.com>
  1048. Fix for livepage.apple.com slowness. Ensure that
  1049. clipped regions only paint their own rectangles
  1050. when they or any children inside of them need to
  1051. be reflowed.
  1052. This fix is intended as an interim band-aid for a much
  1053. larger problem (that all of layout doesn't just auto-invalidate
  1054. the regions it needs to, and that DHTML doesn't have
  1055. specialized behavior to avoid async repainting or even
  1056. relayout when only a repaint is required).
  1057. * khtml/khtmlview.cpp:
  1058. (KHTMLView::timerEvent):
  1059. * khtml/rendering/render_container.cpp:
  1060. (RenderContainer::removeChildNode):
  1061. (RenderContainer::appendChildNode):
  1062. (RenderContainer::insertChildNode):
  1063. (RenderContainer::layout):
  1064. * khtml/rendering/render_object.cpp:
  1065. (RenderObject::setLayouted):
  1066. (RenderObject::scheduleRelayout):
  1067. * khtml/rendering/render_root.cpp:
  1068. (RenderRoot::repaintRectangle):
  1069. 2002-11-15 David Hyatt <hyatt@apple.com>
  1070. Fix the problem where the last lines of paragrpahs were getting
  1071. justified incorrectly.
  1072. * khtml/rendering/bidi.cpp:
  1073. (RenderFlow::findNextLineBreak):
  1074. 2002-11-15 David Hyatt <hyatt@apple.com>
  1075. Fix bustage with <nobr> tags. Inline nowrap elements were
  1076. breaking on images when they shouldn't have.
  1077. * khtml/rendering/render_flow.cpp:
  1078. (RenderFlow::calcInlineMinMaxWidth):
  1079. 2002-11-15 Ken Kocienda <kocienda@apple.com>
  1080. Fix for this bug:
  1081. Radar 3102708 (REGRESSION: assertion failure backing up to page)
  1082. KWQCheckCacheObjectStatus did not create an NSURL in a way that
  1083. dealt with the fact that we handle non-NSURL-compliant URL strings.
  1084. I have fixed it so it does, and in the process, factored out
  1085. the code to do it into a new KURL static function (KURL::getNSURLFromString).
  1086. * kwq/KWQKURL.h:
  1087. * kwq/KWQKURL.mm:
  1088. (KURL::getNSURL): Now calls through to KURL::getNSURLFromString
  1089. (KURL::encode_string)
  1090. (KURL::getNSURLFromString): New function to handle NSURL creation
  1091. * kwq/KWQLoader.mm:
  1092. (KWQCheckCacheObjectStatus)
  1093. 2002-11-15 David Hyatt <hyatt@apple.com>
  1094. Fix asserts in tables.
  1095. * khtml/rendering/render_table.cpp:
  1096. (RenderTableRow::layout):
  1097. 2002-11-15 David Hyatt <hyatt@apple.com>
  1098. Fix for whitespace regressions that caused text overlapping
  1099. and text spilling.
  1100. * khtml/rendering/bidi.cpp:
  1101. (appendRunsForObject):
  1102. 2002-11-15 David Hyatt <hyatt@apple.com>
  1103. Fix newlines getting stripped out of textareas by not making
  1104. rendertext objects for children of textareas.
  1105. * khtml/rendering/render_form.h:
  1106. * khtml/rendering/render_object.h:
  1107. * khtml/xml/dom_textimpl.cpp:
  1108. (TextImpl::attach):
  1109. 2002-11-15 David Hyatt <hyatt@apple.com>
  1110. Make <form> inside <table> stay inside the <table> but demote
  1111. itself to a leaf. Then the children of the <form> are treated
  1112. as though they occurred underneath the <table> itself. Everything
  1113. KHTML does with this is completely wrong but this band-aid should
  1114. hopefully suffice until 1.0.
  1115. Also allowing <input type="hidden"> to be constructed and attached
  1116. under <table>s. Since they have no render objects this is safe.
  1117. Again, total hack, since CSS2 anonymous table construction should be
  1118. implemented and that would have fixed all this.
  1119. This collection of hacks makes travelocity render correctly on the
  1120. PLT.
  1121. * khtml/css/html4.css:
  1122. * khtml/html/dtd.cpp:
  1123. (DOM::checkChild):
  1124. * khtml/html/html_tableimpl.cpp:
  1125. (HTMLTableElementImpl::addChild):
  1126. * khtml/html/htmlparser.cpp:
  1127. (KHTMLParser::parseToken):
  1128. (KHTMLParser::insertNode):
  1129. 2002-11-15 David Hyatt <hyatt@apple.com>
  1130. Fix Hixie's blog. Background images can be transparent, so
  1131. if the root's color isn't valid always do a fixup even if you
  1132. have a valid background image.
  1133. * khtml/rendering/render_html.cpp:
  1134. (RenderHtml::printBoxDecorations):
  1135. 2002-11-15 Darin Adler <darin@apple.com>
  1136. * kwq/KWQWindowWidget.mm: (KWQWindowWidget::setFrameGeometry):
  1137. Oops. Make that display:YES.
  1138. 2002-11-15 Darin Adler <darin@apple.com>
  1139. - fixed 3090219 -- Window jumps up and down when loading nikon page
  1140. * kwq/KWQWindowWidget.mm: (KWQWindowWidget::setFrameGeometry):
  1141. Don't pass display:NO when resizing the window.
  1142. 2002-11-15 Ken Kocienda <kocienda@apple.com>
  1143. Remove characters RFC 2396 describes as "unwise" from the
  1144. BadChar character class. This causes them to remain unescaped
  1145. in KURL objects. As a result, some extra escaping needed to
  1146. be added into the getNSURL() function to enable NSURL
  1147. objects to be created using a KURL.
  1148. This enables me to fix this bug:
  1149. Radar 3050437 (Clicking link leads to page with garbled content)
  1150. Note, however, that my fix for 3050437 relies on this bug remaining unfixed:
  1151. Radar 3102332 (Square bracket characters "sneak through" CFURL illegal character checks)
  1152. * kwq/KWQKURL.mm:
  1153. (KURL::getNSURL)
  1154. 2002-11-15 Darin Adler <darin@apple.com>
  1155. - fixed 3027460 -- text areas don't have focus rectangles
  1156. - fixed 2937204 -- text areas have solid black borders
  1157. * kwq/KWQSignal.mm: (KWQSignal::disconnect):
  1158. Add a special case so we don't hear about finishedParsing all the time.
  1159. * kwq/KWQTextArea.mm:
  1160. (-[KWQTextArea initWithFrame:]): Use a bezel border, not a line border.
  1161. (-[KWQTextArea getCursorPositionAsIndex:inParagraph:]): Fix bug where it would
  1162. return a bogus value for an empty text area.
  1163. (-[KWQTextArea setCursorPositionToIndex:inParagraph:]): Use setSelectedRange:
  1164. ratherr than setMarkedText:selectedRange:.
  1165. (-[KWQTextArea drawRect:]): Draw a focus ring if our text view is first responder.
  1166. (-[KWQTextArea _KWQ_setKeyboardFocusRingNeedsDisplay]): Added.
  1167. (-[KWQTextAreaTextView becomeFirstResponder]): Call _KWQ_setKeyboardFocusRingNeedsDisplay.
  1168. (-[KWQTextAreaTextView resignFirstResponder]): Call _KWQ_setKeyboardFocusRingNeedsDisplay.
  1169. (-[NSView _KWQ_setKeyboardFocusRingNeedsDisplay]): Calls the same thing on parent.
  1170. * WebCore.pbproj/project.pbxproj: PB is a cruel master.
  1171. 2002-11-15 Maciej Stachowiak <mjs@apple.com>
  1172. * khtml/html/html_formimpl.cpp:
  1173. (HTMLInputElementImpl::attach): Removed a stray printf.
  1174. 2002-11-14 Darin Adler <darin@apple.com>
  1175. - fixed most of the problems with OPTGROUP
  1176. * khtml/html/htmlparser.cpp: (KHTMLParser::insertNode):
  1177. Make OPTGROUPs pop out of other unclosed OPTGROUPs, not just out of options.
  1178. * kwq/KWQListBox.h: Add private member function.
  1179. * kwq/KWQListBox.mm:
  1180. (QListBox::insertItem): Use shared insertItem function.
  1181. (QListBox::insertGroupLabel): Create an attributed string for the group label,
  1182. with bold font.
  1183. (-[KWQListBoxTableViewDelegate tableView:shouldSelectRow:]): Return YES only
  1184. for the plain strings, that way you can't select the group labels.
  1185. * WebCore.pbproj/project.pbxproj: Let PB do its thing.
  1186. 2002-11-14 David Hyatt <hyatt@apple.com>
  1187. Fix spinner.com mislayout on the PLT. Make sure
  1188. <input type=image> honors the width attribute and
  1189. make sure that its render object calls updateFromElement.
  1190. * khtml/html/html_formimpl.cpp:
  1191. (HTMLInputElementImpl::parseAttribute):
  1192. (HTMLInputElementImpl::attach):
  1193. 2002-11-14 David Hyatt <hyatt@apple.com>
  1194. Move text measurement and layout beyond onload. This
  1195. shoudl speed up i-bench substantially and morrison's
  1196. PLT test slightly.
  1197. Also allow <table>s as children of <p> and <h1>-<h6>.
  1198. This fixes floats on slashdot.org (the left side) and
  1199. the floating tables in articles on wired.com.
  1200. * khtml/html/dtd.cpp:
  1201. (DOM::checkChild):
  1202. * khtml/html/html_documentimpl.cpp:
  1203. (HTMLDocumentImpl::HTMLDocumentImpl):
  1204. (HTMLDocumentImpl::close):
  1205. * khtml/html/html_documentimpl.h:
  1206. * khtml/html/htmlparser.cpp:
  1207. (KHTMLParser::insertNode):
  1208. 2002-11-14 Richard Williamson <rjw@apple.com>
  1209. Fixed 3099505. With the recent white space changes, multiple slaves may
  1210. be created for contiguous text on the same line. The fix changes the
  1211. iteration order of over the slave array. Now, when searching for the end
  1212. point of a line we'll always find the last slave on a line first.
  1213. * khtml/khtml_part.cpp:
  1214. (lastSlaveAt):
  1215. 2002-11-14 Darin Adler <darin@apple.com>
  1216. - fixed 3095854 -- small select boxes get no scrollbar
  1217. * kwq/KWQListBox.mm: (QListBox::sizeForNumberOfLines):
  1218. Always use a minimum of 4 lines.
  1219. === Alexander-32 ===
  1220. 2002-11-14 Darin Adler <darin@apple.com>
  1221. - fixed 3099240 -- REGRESSION: repro assert d->m_doc->parsing
  1222. Don't force all redirects to be reloads, because the ones from JavaScript must
  1223. not be. Maybe a better solution post-Alex-32 will be to pass a flag that distinguishes
  1224. redirects from other location changes.
  1225. * khtml/khtml_part.cpp: (KHTMLPart::slotRedirect): Don't ignore the anchor when
  1226. comparing URLs to see if they should be a reload. We'll still do a reload if the URLs
  1227. are actually equal, but if they differ in anchor we will just go to the anchor.
  1228. This is the bug fix.
  1229. * kwq/WebCoreBridge.h: Add reload parameter.
  1230. * kwq/WebCoreBridge.mm: (-[WebCoreBridge openURL:reload:headers:]): Stuff the reload
  1231. parameter into the URLArgs.
  1232. 2002-11-14 Darin Adler <darin@apple.com>
  1233. - fixed 3100235 -- nil-deference in khtml::RenderTable at money.cnn.com
  1234. * kwq/WebCoreBridge.h: Add needsLayout.
  1235. * kwq/WebCoreBridge.mm: (-[WebCoreBridge needsLayout]): Return true if the render
  1236. tree root says "layouted" is false. It would be more elegant to use more of this
  1237. WebCore layout logic and have less of our own on the WebKit side.
  1238. * WebCore.pbproj/project.pbxproj: Oh, that Project Builder.
  1239. 2002-11-13 Darin Adler <darin@apple.com>
  1240. - fixed 3100895 -- REGRESSION: Crash (was assertion) on http://www.w3.org/Style/CSS/
  1241. * khtml/rendering/render_text.h: Add an optional arena parameter to deleteSlaves.
  1242. * khtml/rendering/render_text.cpp:
  1243. (RenderText::detach): Pass the render arena in to deleteSlaves.
  1244. (RenderText::deleteSlaves): Use the passed-in arena.
  1245. 2002-11-13 Darin Adler <darin@apple.com>
  1246. - fixed another crash on http://www.w3.org/Style/CSS/, but still not done
  1247. * khtml/rendering/render_box.cpp: (RenderBox::setStyle): Call renderArena()
  1248. from RenderObject rather than going at the document directly. Safer because
  1249. it works even when we don't have a node yet.
  1250. * khtml/rendering/render_flow.cpp: (RenderFlow::addChild): Ditto.
  1251. * khtml/rendering/render_layer.cpp:
  1252. (RenderLayer::paint): Ditto.
  1253. (RenderLayer::nodeAtPoint): Ditto.
  1254. (RenderLayer::constructZTree): Ditto.
  1255. * khtml/rendering/render_list.cpp:
  1256. (RenderListItem::setStyle): Ditto.
  1257. * khtml/rendering/render_text.cpp:
  1258. (RenderText::deleteSlaves): Ditto.
  1259. (RenderText::position): Ditto. This is the one that actually crashed.
  1260. * khtml/misc/makeattrs: Fixed handling of failure case.
  1261. * khtml/misc/maketags: Ditto.
  1262. * WebCore.pbproj/project.pbxproj: Project Builder wanted to touch this.
  1263. 2002-11-13 Darin Adler <darin@apple.com>
  1264. - fixed 3100895 -- REGRESSION: Assertion on http://www.w3.org/Style/CSS/
  1265. A few arena-related fixes.
  1266. * khtml/rendering/bidi.h: Don't define the operator new without the arena parameter.
  1267. That way, we get a link failure if we use it by accident, rather than an assert at runtime.
  1268. It would be even better to get a compile-time error, but I don't know how to make that happen.
  1269. * khtml/rendering/render_layer.h: Ditto.
  1270. * khtml/rendering/render_object.h: Ditto.
  1271. * khtml/rendering/render_text.h: Ditto.
  1272. * khtml/rendering/render_container.cpp:
  1273. (RenderContainer::addChild): Create the RenderTable with the appropriate arena.
  1274. (RenderContainer::insertPseudoChild): Create the RenderFlow objects with the appropriate arena.
  1275. * khtml/rendering/render_text.cpp: (RenderText::deleteSlaves): Don't try to get the arena
  1276. when there are no slaves. This can happen after the element is nil, and in that case we will
  1277. do a nil-dereference.
  1278. 2002-11-13 Darin Adler <darin@apple.com>
  1279. * kwq/KWQLineEdit.mm: (QLineEdit::sizeForCharacterWidth):
  1280. Use the "0" instead of the "x" as the canonical character for width.
  1281. This is slightly wider and is better for credit card numbers, for example.
  1282. * WebCore.pbproj/project.pbxproj: Tweak.
  1283. 2002-11-13 Darin Adler <darin@apple.com>
  1284. - fixed 3083982 -- Logging into AOL gives null view
  1285. Turns out AOL was using a refresh header, which we were not supporting.
  1286. * khtml/khtml_part.h: Declare receivedFirstData, a private member function.
  1287. * khtml/khtml_part.cpp:
  1288. (KHTMLPart::receivedFirstData): Separate out the part of slotData we
  1289. want to share, which really seems kinda separate anyway.
  1290. (KHTMLPart::slotData): More of the same.
  1291. * kwq/KWQKHTMLPart.h: Declare addMetaData.
  1292. * kwq/KWQKHTMLPart.mm:
  1293. (KWQKHTMLPart::slotData): Call receivedFirstData instead of doing the same
  1294. thing ourselves.
  1295. (KWQKHTMLPart::addMetaData): Added. Puts metadata into the job.
  1296. * kwq/KWQKHTMLPartBrowserExtension.mm:
  1297. (KHTMLPartBrowserExtension::createNewWindow): Fix bug where this was calling
  1298. openURL: but meant to call loadURL:.
  1299. * kwq/WebCoreBridge.h: Add headers to openURL method. Remove setContentType.
  1300. * kwq/WebCoreBridge.mm:
  1301. (-[WebCoreBridge openURL:withHeaders:]): Handle Content-Type and Refresh.
  1302. This method is big enough that I should probably move the guts to KWQKHTMLPart.
  1303. - other things
  1304. * kwq/KWQListImpl.mm: (KWQListImpl::~KWQListImpl): I overlooked something
  1305. while doing my "bug fix" in here a while back. Change an assignment statement
  1306. to an assert.
  1307. 2002-11-13 David Hyatt <hyatt@apple.com>
  1308. Fix for floats. Force relayout if collapsing margins
  1309. have to adjust the position of an object.
  1310. * khtml/rendering/render_flow.cpp:
  1311. (RenderFlow::layoutBlockChildren):
  1312. 2002-11-13 David Hyatt <hyatt@apple.com>
  1313. Rewrite cellpadding to not use the style system at all and
  1314. to make table cells just get the padding from the table
  1315. itself (overriding style).
  1316. * khtml/html/html_tableimpl.cpp:
  1317. (HTMLTableElementImpl::HTMLTableElementImpl):
  1318. (HTMLTableElementImpl::attach):
  1319. (HTMLTableElementImpl::parseAttribute):
  1320. (HTMLTableCellElementImpl::init):
  1321. * khtml/html/html_tableimpl.h:
  1322. * khtml/rendering/bidi.cpp:
  1323. (RenderFlow::layoutInlineChildren):
  1324. * khtml/rendering/render_box.cpp:
  1325. (RenderBox::contentWidth):
  1326. (RenderBox::contentHeight):
  1327. * khtml/rendering/render_flow.cpp:
  1328. (RenderFlow::layoutBlockChildren):
  1329. (RenderFlow::leftOffset):
  1330. (RenderFlow::rightOffset):
  1331. (RenderFlow::calcMinMaxWidth):
  1332. * khtml/rendering/render_object.h:
  1333. * khtml/rendering/render_table.cpp:
  1334. (RenderTable::RenderTable):
  1335. (RenderTableCell::paddingTop):
  1336. (RenderTableCell::paddingBottom):
  1337. (RenderTableCell::paddingLeft):
  1338. (RenderTableCell::paddingRight):
  1339. * khtml/rendering/render_table.h:
  1340. 2002-11-13 Ken Kocienda <kocienda@apple.com>
  1341. Bump WebCore cache to 4 MB (was 1 MB).
  1342. * khtml/misc/loader.cpp
  1343. 2002-11-13 Maciej Stachowiak <mjs@apple.com>
  1344. - fixed 3050447 - Policy handlers have no way of telling client
  1345. that the proposed navigation is a form post
  1346. * khtml/khtml_part.cpp:
  1347. (KHTMLPart::submitForm): Call kwq->submitForm
  1348. * kwq/KWQKHTMLPart.h:
  1349. * kwq/KWQKHTMLPart.mm:
  1350. (KWQKHTMLPart::openURL): Adjusted for bridge API change.
  1351. (KWQKHTMLPart::openURLRequest): Removed POST handling.
  1352. (KWQKHTMLPart::submitForm): Added this back, because we need to
  1353. know what URL navigations are caused by form submission, even if
  1354. they are not POSTs.
  1355. (KWQKHTMLPart::urlSelected): Adjusted for bridge API change.
  1356. * kwq/WebCoreBridge.h: Add triggeringEvent: parameter to postURL:
  1357. and isFormSubmission: parameter to loadURL:.
  1358. 2002-11-12 David Hyatt <hyatt@apple.com>
  1359. Fix for 3032869, the background image for the body was being
  1360. propagated up to the root properly but was not being tiled over
  1361. the whole canvas.
  1362. * khtml/rendering/render_box.cpp:
  1363. (RenderBox::printBackground):
  1364. * khtml/rendering/render_html.cpp:
  1365. (RenderHtml::printBoxDecorations):
  1366. 2002-11-12 David Hyatt <hyatt@apple.com>
  1367. Fix the top of moveabletype.org. The maxwidth/minwidth
  1368. calculation for blocks with inline content did not properly
  1369. deal with margins and padding on inline elements like <a>.
  1370. * khtml/rendering/render_flow.cpp:
  1371. (RenderFlow::calcInlineMinMaxWidth):
  1372. 2002-11-12 David Hyatt <hyatt@apple.com>
  1373. Fix for 2953367, padding is incorrectly inherited into table cells
  1374. and also incorrectly overrides cellpadding on the table itself.
  1375. Fixes dailyf1.com.
  1376. * khtml/css/html4.css:
  1377. * khtml/html/html_tableimpl.cpp:
  1378. (HTMLTableElementImpl::parseAttribute):
  1379. (HTMLTableCellElementImpl::init):
  1380. * khtml/html/html_tableimpl.h:
  1381. 2002-11-12 David Hyatt <hyatt@apple.com>
  1382. For now make text/xml files use HTML parsing/documents.
  1383. This avoids the infinite loop we get into when loading
  1384. text/xml. If/when we finally support XML, we can undo
  1385. this change.
  1386. * khtml/khtml_part.cpp:
  1387. (KHTMLPart::begin):
  1388. 2002-11-12 David Hyatt <hyatt@apple.com>
  1389. Fix for 3086321, stylesheets not loading if titles are
  1390. specified. Note that 4 of the pages on the PLT were
  1391. affected by this, so I fully expect a slight performance
  1392. degradation (the boost from the regression was artificial).
  1393. * khtml/xml/dom_docimpl.cpp:
  1394. (DocumentImpl::recalcStyleSelector):
  1395. 2002-11-12 Richard Williamson <rjw@apple.com>
  1396. Oops, removed debugging.
  1397. * khtml/rendering/font.cpp:
  1398. (Font::drawText):
  1399. 2002-11-12 Richard Williamson <rjw@apple.com>
  1400. Implemented letter-spacing and word-spacing CSS properties.
  1401. * khtml/rendering/font.cpp:
  1402. (Font::drawText):
  1403. (Font::floatWidth):
  1404. (Font::floatCharacterWidths):
  1405. * kwq/KWQFontMetrics.h:
  1406. * kwq/KWQFontMetrics.mm:
  1407. (QFontMetrics::width):
  1408. (QFontMetrics::floatWidth):
  1409. (QFontMetrics::floatCharacterWidths):
  1410. * kwq/KWQPainter.h:
  1411. * kwq/KWQPainter.mm:
  1412. (QPainter::drawText):
  1413. * kwq/WebCoreTextRenderer.h:
  1414. 2002-11-12 David Hyatt <hyatt@apple.com>
  1415. Revert floats so that they don't use layers any more.
  1416. Floats have to be able to paint in between the background
  1417. and foreground of inlines, so they can't have layers.
  1418. * khtml/rendering/render_box.cpp:
  1419. (RenderBox::setStyle):
  1420. * khtml/rendering/render_flow.cpp:
  1421. (RenderFlow::printObject):
  1422. (RenderFlow::paintFloats):
  1423. (RenderFlow::addOverHangingFloats):
  1424. (RenderFlow::nodeAtPoint):
  1425. * khtml/rendering/render_flow.h:
  1426. * khtml/rendering/render_layer.cpp:
  1427. (RenderLayer::constructZTree):
  1428. * khtml/rendering/render_list.cpp:
  1429. (RenderListItem::printObject):
  1430. 2002-11-12 Darin Adler <darin@apple.com>
  1431. * kwq/KWQCursor.mm: (QCursor::QCursor): Use nil instead of [NSCursor arrowCursor].
  1432. This will probably fix the performance regression.
  1433. 2002-11-12 Darin Adler <darin@apple.com>
  1434. - fixed 3080250 -- Hands-free crash at wired.com in
  1435. KHTMLPart::slotChildStarted
  1436. * kwq/KWQListImpl.mm:
  1437. (KWQListImpl::~KWQListImpl): Set the node of each iterator to NULL too,
  1438. not just the list. This is the bug fix for the bug above.
  1439. (KWQListIteratorImpl::toFirst): Check for list of NULL.
  1440. (KWQListIteratorImpl::toLast): ditto.
  1441. * kwq/KWQSlot.mm: Tweaks.
  1442. 2002-11-12 David Hyatt <hyatt@apple.com>
  1443. This patch lands a rewrite of whitespace-handling in the
  1444. layout engine and adds support for the CSS2 white-space
  1445. property.
  1446. It also includes a rewrite of inlines' min/max width
  1447. calculations (for both flow inlines and raw text).
  1448. A problem with <form> margins has been fixed (this is a
  1449. regression I caused with my collapsing margin checkin).
  1450. * WebCore.pbproj/project.pbxproj:
  1451. * khtml/css/html4.css:
  1452. * khtml/html/dtd.cpp:
  1453. (DOM::checkChild):
  1454. * khtml/html/html_baseimpl.cpp:
  1455. (HTMLBodyElementImpl::attach):
  1456. (HTMLFrameElementImpl::attach):
  1457. (HTMLFrameSetElementImpl::attach):
  1458. (HTMLHtmlElementImpl::attach):
  1459. (HTMLIFrameElementImpl::attach):
  1460. * khtml/html/html_formimpl.cpp:
  1461. (HTMLFormElementImpl::HTMLFormElementImpl):
  1462. (HTMLInputElementImpl::attach):
  1463. (HTMLSelectElementImpl::attach):
  1464. (HTMLTextAreaElementImpl::attach):
  1465. * khtml/html/html_formimpl.h:
  1466. * khtml/html/html_imageimpl.cpp:
  1467. (HTMLImageElementImpl::attach):
  1468. * khtml/html/html_inlineimpl.cpp:
  1469. (HTMLBRElementImpl::attach):
  1470. * khtml/html/html_objectimpl.cpp:
  1471. (HTMLAppletElementImpl::attach):
  1472. (HTMLEmbedElementImpl::attach):
  1473. (HTMLObjectElementImpl::attach):
  1474. * khtml/html/htmlparser.cpp:
  1475. (KHTMLParser::reset):
  1476. (KHTMLParser::parseToken):
  1477. (KHTMLParser::insertNode):
  1478. (KHTMLParser::popBlock):
  1479. (KHTMLParser::popOneBlock):
  1480. * khtml/html/htmlparser.h:
  1481. * khtml/html/htmltokenizer.cpp:
  1482. (HTMLTokenizer::addPending):
  1483. (HTMLTokenizer::write):
  1484. * khtml/misc/arena.cpp: Added.
  1485. (CeilingLog2):
  1486. (InitArenaPool):
  1487. (ArenaAllocate):
  1488. (ArenaGrow):
  1489. (FreeArenaList):
  1490. (ArenaRelease):
  1491. (FreeArenaPool):
  1492. (FinishArenaPool):
  1493. (ArenaFinish):
  1494. * khtml/misc/arena.h: Added.
  1495. * khtml/rendering/bidi.cpp:
  1496. (BidiIterator::detach):
  1497. (throw):
  1498. (BidiIterator::operator delete):
  1499. (appendRunsForObject):
  1500. (appendRun):
  1501. (RenderFlow::bidiReorderLine):
  1502. (deleteMidpoints):
  1503. (RenderFlow::layoutInlineChildren):
  1504. (RenderFlow::findNextLineBreak):
  1505. * khtml/rendering/bidi.h:
  1506. * khtml/rendering/render_arena.cpp: Added.
  1507. (RenderArena::RenderArena):
  1508. (RenderArena::~RenderArena):
  1509. (RenderArena::allocate):
  1510. (RenderArena::free):
  1511. * khtml/rendering/render_arena.h: Added.
  1512. * khtml/rendering/render_box.cpp:
  1513. (RenderBox::setStyle):
  1514. (RenderBox::~RenderBox):
  1515. (RenderBox::detach):
  1516. * khtml/rendering/render_box.h:
  1517. * khtml/rendering/render_br.cpp:
  1518. (RenderBR::RenderBR):
  1519. * khtml/rendering/render_container.cpp:
  1520. (RenderContainer::~RenderContainer):
  1521. (RenderContainer::detach):
  1522. * khtml/rendering/render_container.h:
  1523. * khtml/rendering/render_flow.cpp:
  1524. (RenderFlow::setStyle):
  1525. (RenderFlow::layout):
  1526. (RenderFlow::calcInlineMinMaxWidth):
  1527. (RenderFlow::calcBlockMinMaxWidth):
  1528. (RenderFlow::calcMinMaxWidth):
  1529. (RenderFlow::addChild):
  1530. (RenderFlow::makeChildrenNonInline):
  1531. * khtml/rendering/render_flow.h:
  1532. * khtml/rendering/render_html.cpp:
  1533. (RenderHtml::RenderHtml):
  1534. * khtml/rendering/render_layer.cpp:
  1535. (RenderLayer::~RenderLayer):
  1536. (throw):
  1537. (RenderLayer::operator delete):
  1538. (RenderLayer::detach):
  1539. (RenderLayer::paint):
  1540. (RenderLayer::nodeAtPoint):
  1541. (RenderLayer::constructZTree):
  1542. (RenderLayer::RenderLayerElement::operator delete):
  1543. (RenderLayer::RenderLayerElement::detach):
  1544. (RenderLayer::RenderZTreeNode::operator delete):
  1545. (RenderLayer::RenderZTreeNode::detach):
  1546. * khtml/rendering/render_layer.h:
  1547. * khtml/rendering/render_list.cpp:
  1548. (RenderListItem::setStyle):
  1549. * khtml/rendering/render_object.cpp:
  1550. (throw):
  1551. (RenderObject::operator delete):
  1552. (RenderObject::createObject):
  1553. (RenderObject::renderArena):
  1554. (RenderObject::detach):
  1555. * khtml/rendering/render_object.h:
  1556. * khtml/rendering/render_replaced.cpp:
  1557. (RenderWidget::detach):
  1558. * khtml/rendering/render_replaced.h:
  1559. * khtml/rendering/render_root.cpp:
  1560. (RenderRoot::RenderRoot):
  1561. * khtml/rendering/render_table.cpp:
  1562. (RenderTable::addChild):
  1563. (RenderTable::calcWidth):
  1564. (RenderTable::setCellWidths):
  1565. (RenderTableSection::addChild):
  1566. (RenderTableRow::addChild):
  1567. * khtml/rendering/render_text.cpp:
  1568. (TextSlave::detach):
  1569. (throw):
  1570. (TextSlave::operator delete):
  1571. (TextSlaveArray::TextSlaveArray):
  1572. (RenderText::RenderText):
  1573. (RenderText::~RenderText):
  1574. (RenderText::detach):
  1575. (RenderText::deleteSlaves):
  1576. (RenderText::trimmedMinMaxWidth):
  1577. (RenderText::calcMinMaxWidth):
  1578. (RenderText::position):
  1579. * khtml/rendering/render_text.h:
  1580. * khtml/xml/dom_docimpl.cpp:
  1581. (DocumentImpl::DocumentImpl):
  1582. (DocumentImpl::~DocumentImpl):
  1583. (DocumentImpl::attach):
  1584. (DocumentImpl::detach):
  1585. * khtml/xml/dom_docimpl.h:
  1586. * khtml/xml/dom_nodeimpl.cpp:
  1587. (NodeImpl::detach):
  1588. (NodeImpl::isReadOnly):
  1589. (NodeImpl::previousRenderer):
  1590. * khtml/xml/dom_nodeimpl.h:
  1591. * khtml/xml/dom_stringimpl.cpp:
  1592. * khtml/xml/dom_stringimpl.h:
  1593. * khtml/xml/dom_textimpl.cpp:
  1594. (CharacterDataImpl::containsOnlyWhitespace):
  1595. (TextImpl::attach):
  1596. * khtml/xml/dom_textimpl.h:
  1597. 2002-11-12 Darin Adler <darin@apple.com>
  1598. - fixed 3094819 -- Crash in -[KWQObjectTimerTarget timerFired]
  1599. * kwq/KWQObject.mm: (QObject::~QObject): Call the _destroyed signal.
  1600. (QObject::killTimers): Simplify the code a bit using makeObjectsPerformSelector:.
  1601. 2002-11-12 Darin Adler <darin@apple.com>
  1602. - fixed 3079499 -- blank page at http://www.sonyericsson.com/T68i/
  1603. * khtml/misc/loader.cpp:
  1604. (CachedCSSStyleSheet::checkNotify): Copy the clients list before iterating
  1605. over it, since clients can move around in the list or be removed.
  1606. (CachedScript::checkNotify): Ditto.
  1607. (CachedImage::do_notify): Ditto.
  1608. (CachedImage::movieStatus): Ditto.
  1609. - fixed double calls to openURL I noticed
  1610. * khtml/khtml_part.cpp: (KHTMLPart::processObjectRequest):
  1611. Don't call openURL here at all. That happens indirectly as a result
  1612. of the load we kick off.
  1613. * kwq/KWQKHTMLPart.mm: Tweaks.
  1614. 2002-11-12 Darin Adler <darin@apple.com>
  1615. - fixed 3083043 -- Alex doesn't decode % sequences in javascript: URLs
  1616. Some places here did KURL::decode_string, but others didn't.
  1617. * khtml/khtml_part.cpp:
  1618. (KHTMLPart::slotShowDocument): Added call to KURL::decode_string.
  1619. (KHTMLPart::overURL): Ditto.
  1620. (KHTMLPart::urlSelected): Ditto.
  1621. (KHTMLPart::requestFrame): Ditto.
  1622. (KHTMLPart::slotChildURLRequest): Ditto.
  1623. 2002-11-11 Darin Adler <darin@apple.com>
  1624. * kwq/KWQWidget.mm: (QWidget::setCursor): Remove printf I left
  1625. in by accident.
  1626. 2002-11-11 Darin Adler <darin@apple.com>
  1627. - tighten up cursor handling a bit more
  1628. * kwq/KWQWidget.mm:
  1629. (QWidget::setCursor): Use setDocumentCursor: instead of our own protocol.
  1630. (QWidget::cursor): Use documentCursor instead of storing our own cursor.
  1631. * kwq/WebCoreFrameView.h: Remove setCursor: method.
  1632. 2002-11-11 Darin Adler <darin@apple.com>
  1633. - fixed 3084704 -- crash in HTMLTokenizer on page with JavaScript
  1634. HTMLDocument::Close inside a <script>
  1635. I think it's going to work this time. The key was to hook up the
  1636. KHTML submitFormAgain machinery.
  1637. * khtml/khtml_part.cpp: (KHTMLPart::submitForm): Take out the APPLE_CHANGES
  1638. ifdef that was disabling the submitFormAgain logic.
  1639. * kwq/KWQKHTMLPart.h: Remove submitForm(), because openURLRequest() handles it fine.
  1640. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::openURLRequest): Move the logic for handling
  1641. POST here from submitForm() and remove submitForm().
  1642. * kwq/KWQSlot.mm:
  1643. (KWQSlot::KWQSlot): Add support for the submitFormAgain slot.
  1644. (KWQSlot::call): Ditto.
  1645. 2002-11-11 Darin Adler <darin@apple.com>
  1646. - fixed 3092421 -- javascript: URL that opens window crashes Alex if typed into empty window
  1647. * kwq/KWQKHTMLPart.h:
  1648. * kwq/KWQKHTMLPart.mm:
  1649. (KWQKHTMLPart::KWQKHTMLPart): Set _ownsView to false.
  1650. (KWQKHTMLPart::~KWQKHTMLPart): Delete the view if we own it. Also release
  1651. _currentEvent to fix a leak.
  1652. (KWQKHTMLPart::setView): Delete the old view if we own it. Also, set the
  1653. _ownsView flag.
  1654. (KWQKHTMLPart::createDummyDocument): Create a dummy view too.
  1655. * kwq/KWQDummyView.h: Added.
  1656. * kwq/KWQDummyView.m: Added.
  1657. * WebCore.pbproj/project.pbxproj: Added KWQDummyView.
  1658. * kwq/WebCoreBridge.h: Remove bridgeOwnsKHTMLView and currentEvent.
  1659. * kwq/WebCoreBridge.mm:
  1660. (-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]):
  1661. Pass true to setView instead of setting bridgeOwnsKHTMLView.
  1662. (-[WebCoreBridge removeFromFrame]): Just call setView on the part. It
  1663. knows how to handle ownership now.
  1664. (-[WebCoreBridge installInFrame:]): Call setOwnsView instead of setting
  1665. bridgeOwnsKHTMLView.
  1666. 2002-11-11 Trey Matteson <trey@apple.com>
  1667. * khtml/khtml_part.cpp:
  1668. (KHTMLPart::requestFrameName): Call through bridge to get generated frame name.
  1669. * kwq/KWQKHTMLPart.h:
  1670. * kwq/KWQKHTMLPart.mm:
  1671. (KWQKHTMLPart::generateFrameName): New call that just forwards through the bridge.
  1672. * kwq/WebCoreBridge.h:
  1673. 2002-11-11 Darin Adler <darin@apple.com>
  1674. - fixed 3097253 -- text tagged <small> inside <h1> is too small
  1675. * khtml/css/html4.css: Change BIG to use "font-size: larger" rather
  1676. than "font-size: large" and SMALL to use "font-size: smaller" rather
  1677. than "font-size: small".
  1678. 2002-11-11 Darin Adler <darin@apple.com>
  1679. * kwq/WebCoreBridge.h: Remove unused modifierTrackingEnabled method.
  1680. 2002-11-08 Maciej Stachowiak <mjs@apple.com>
  1681. - fixed 3096451 - REGRESSION: clicking on link to open window only
  1682. works when pop-up suppression is off
  1683. * khtml/ecma/kjs_binding.cpp:
  1684. (ScriptInterpreter::ScriptInterpreter): Initialize m_timerCallback
  1685. to false.
  1686. b2002-11-08 Darin Adler <darin@apple.com>
  1687. * kwq/KWQComboBox.mm: Bump fudge factor up one pixel. You could see
  1688. it was wrong with strings like "0".
  1689. 2002-11-08 Darin Adler <darin@apple.com>
  1690. - fixed 3090452 -- REGRESSION: orbitz Box extends way over margins
  1691. * kwq/KWQComboBox.h: Added _width and _widthGood.
  1692. * kwq/KWQComboBox.mm:
  1693. (QComboBox::QComboBox): Set _widthGood to false.
  1694. (QComboBox::insertItem): Set _widthGood to false.
  1695. (QComboBox::sizeHint): Compute the width by measuring the text ourselves.
  1696. Turns out the cell isn't helpful for that.
  1697. (QComboBox::clear): Set _widthGood to false.
  1698. 2002-11-08 Richard Williamson <rjw@apple.com>
  1699. Cleanup of fix to 3083281. Never call stopAnimating from
  1700. QPixmap's destructor. With the fix it wouldn't have been
  1701. called anyway.
  1702. * kwq/KWQPixmap.mm:
  1703. (QPixmap::~QPixmap):
  1704. 2002-11-08 Darin Adler <darin@apple.com>
  1705. * kwq/WebCoreBridge.mm: (attributedString): Remove some dead code.
  1706. 2002-11-07 Darin Adler <darin@apple.com>
  1707. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::slotData):
  1708. Add an assert in the hopes of catching bug 3084704 a little earlier.
  1709. 2002-11-07 Richard Williamson <rjw@apple.com>
  1710. Don't stop animating unless we're the last referee. (3083281)
  1711. * kwq/KWQPixmap.mm:
  1712. (QPixmap::~QPixmap):
  1713. === Alexander-31 ===
  1714. 2002-11-06 Richard Williamson <rjw@apple.com>
  1715. Use our notion of unicode whitespace from lookup tables
  1716. and isspace for latin1. This is more correct than CF.
  1717. Fixed issues Dave ran into with whitespace calculations.
  1718. * kwq/KWQChar.mm:
  1719. (QChar::isSpace):
  1720. 2002-11-05 Darin Adler <darin@apple.com>
  1721. - fixed 3092722 -- assertion failed
  1722. * kwq/KWQResourceLoader.mm: (-[KWQResourceLoader reportError]):
  1723. Removed the assertion. It wasn't needed.
  1724. 2002-11-05 Darin Adler <darin@apple.com>
  1725. - re-fixed 3070484 -- icon rollovers are very slow on Mac OS X website
  1726. Had to roll back some of the files I changed yesterday. I had missed the
  1727. one line of useful code among much stuff we don't need.
  1728. * khtml/khtml_part.cpp:
  1729. (KHTMLPart::init):
  1730. (KHTMLPart::~KHTMLPart):
  1731. (KHTMLPart::slotLoaderRequestStarted):
  1732. (KHTMLPart::slotLoaderRequestDone):
  1733. * kwq/KWQSignal.h:
  1734. * kwq/KWQSignal.mm:
  1735. (KWQSignal::call):
  1736. * kwq/KWQSignalStubs.mm:
  1737. (Loader::requestDone):
  1738. (Loader::requestFailed):
  1739. (Loader::requestStarted):
  1740. * kwq/KWQSlot.h:
  1741. * kwq/KWQSlot.mm:
  1742. (KWQSlot::KWQSlot):
  1743. (KWQSlot::call):
  1744. Just roll back all the changes from my 3091714 check-in below, except
  1745. for the bug fix itself in loader.cpp and KWQResourceLoader.mm.
  1746. 2002-11-05 Maciej Stachowiak <mjs@apple.com>
  1747. - fixed 3027404 - pop-up ads not always suppressed
  1748. * khtml/ecma/kjs_binding.cpp:
  1749. (ScriptInterpreter::isWindowOpenAllowed): Don't allow opening if
  1750. we are in a timer callback - for reasons unexplained this will
  1751. always show up as an inline script.
  1752. * khtml/ecma/kjs_binding.h:
  1753. * khtml/ecma/kjs_window.cpp:
  1754. (ScheduledAction::execute): Note that we're in a timer callback.
  1755. 2002-11-04 Richard Williamson <rjw@apple.com>
  1756. Changes to support cursive letter forms.
  1757. * kwq/KWQChar.mm:
  1758. * kwq/WebCoreUnicode.h:
  1759. 2002-11-04 Darin Adler <darin@apple.com>
  1760. - fixed 3091714 -- reproducible assert cachedObject->response
  1761. in KWQCheckCacheObjectStatus
  1762. * khtml/misc/loader.cpp: (Loader::slotFinished):
  1763. For APPLE_CHANGES, don't finish the load if it's an error.
  1764. * kwq/KWQResourceLoader.mm:
  1765. (-[KWQResourceLoader finishJobAndHandle]): Shared code for the
  1766. three following methods.
  1767. (-[KWQResourceLoader cancel]): Use setError(1) again instead of
  1768. just keeping the load around forever.
  1769. (-[KWQResourceLoader reportError]): Ditto.
  1770. (-[KWQResourceLoader finish]): Use finishJobAndHandle to share
  1771. code with the two above.
  1772. * khtml/khtml_part.cpp:
  1773. (KHTMLPart::init): Put the slotLoaderRequestStarted and
  1774. slotLoaderRequestDone connect lines inside ifdefs.
  1775. (KHTMLPart::~KHTMLPart): Same for disconnect.
  1776. * kwq/KWQSignal.h: Remove code for the DocLoader signals.
  1777. * kwq/KWQSignal.mm: (KWQSignal::call): Ditto.
  1778. * kwq/KWQSignalStubs.mm:
  1779. (Loader::requestDone): Ditto.
  1780. (Loader::requestFailed): Ditto.
  1781. (Loader::requestStarted): Ditto.
  1782. * kwq/KWQSlot.h: Ditto.
  1783. * kwq/KWQSlot.mm:
  1784. (KWQSlot::KWQSlot): Ditto.
  1785. (KWQSlot::call): Ditto.
  1786. 2002-11-04 Maciej Stachowiak <mjs@apple.com>
  1787. Changes to send NSEvents all the way through WebCore and then pass
  1788. them back out to WebKit, so that click policy can have a
  1789. WebResourceRequest added.
  1790. * kwq/KWQKHTMLPart.h:
  1791. * kwq/KWQKHTMLPart.mm:
  1792. (KWQKHTMLPart::KWQKHTMLPart):
  1793. (KWQKHTMLPart::openURL):
  1794. (KWQKHTMLPart::openURLRequest):
  1795. (KWQKHTMLPart::urlSelected):
  1796. (KWQKHTMLPart::submitForm):
  1797. (KWQKHTMLPart::createDummyDocument):
  1798. (KWQKHTMLPart::setCurrentEvent):
  1799. * kwq/WebCoreBridge.h:
  1800. * kwq/WebCoreBridge.mm:
  1801. (-[WebCoreBridge mouseUp:]):
  1802. 2002-11-03 Darin Adler <darin@apple.com>
  1803. - fixed 3091300 -- "prelighting" on local page is still slow, despite recent bug fix
  1804. Turns out all updating would be slow if any resources on the page failed to load.
  1805. * kwq/WebCoreResourceLoader.h: Add reportError, distinct from
  1806. cancel and finish.
  1807. * kwq/KWQResourceLoader.mm: (-[KWQResourceLoader reportError]):
  1808. Set the error boolean on the job and then call through to [finish].
  1809. 2002-11-03 Darin Adler <darin@apple.com>
  1810. - fixed 3091275 -- can't type into Answer field in RealOne Player order form
  1811. * khtml/rendering/render_form.cpp:
  1812. (RenderLineEdit::updateFromElement): Treat 0 as max (1024) as other browsers do.
  1813. (RenderFileButton::updateFromElement): Ditto, although this is in !APPLE_CHANGES code
  1814. that we don't use in WebCore.
  1815. 2002-11-01 Darin Adler <darin@apple.com>
  1816. - applied the same "subclass responsibility" pattern here as in
  1817. some of the other WebCore classes
  1818. * kwq/WebCoreImageRendererFactory.h: Move the subclass responsibility into a protocol.
  1819. * kwq/WebCoreImageRendererFactory.m: Remove now-unneeded stubs.
  1820. 2002-11-01 Richard Williamson <rjw@apple.com>
  1821. Removed old implementation.
  1822. * kwq/KWQChar.mm:
  1823. (QChar::direction):
  1824. Renamed JoiningCenter -> JoiningCausing.
  1825. * kwq/WebCoreUnicode.h:
  1826. 2002-11-01 Darin Adler <darin@apple.com>
  1827. - fixed 3062598 -- meta refresh of 0.1s fails
  1828. KHTML was using an integer for the delay.
  1829. * khtml/khtml_part.h: Make scheduleRedirection take a double.
  1830. * khtml/khtmlpart_p.h: Make m_delayRedirect be a double.
  1831. * khtml/khtml_part.cpp:
  1832. (KHTMLPart::slotData): Use a double when parsing meta refresh.
  1833. (KHTMLPart::checkCompleted): Cast to int when passing to timer start.
  1834. (KHTMLPart::scheduleRedirection): Cast to int when passing to timer
  1835. start; also check for absurd values and do nothing.
  1836. (KHTMLPart::slotParentCompleted): Cast to int when passing to timer start.
  1837. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::processHttpEquiv):
  1838. Use a double when parsing meta refresh.
  1839. * kwq/KWQKDebug.h: Add overloads for unsigned int and double to keep us
  1840. compiling now that we use a double in one place.
  1841. 2002-11-01 Darin Adler <darin@apple.com>
  1842. - fixed 3090249 -- random crash on page load
  1843. - fixed 3090286 -- assert _job in KWQResourceLoader cancel
  1844. * kwq/KWQResourceLoader.mm: (-[KWQResourceLoader cancel]):
  1845. This function needs to handle the case where the load is already cancelled.
  1846. I think this also caused Avie's crash.
  1847. 2002-10-31 Darin Adler <darin@apple.com>
  1848. - fixed huge leak when doing page load test
  1849. * khtml/ecma/kjs_binding.h:
  1850. * khtml/ecma/kjs_binding.cpp: Remove ScriptInterpreter::mark().
  1851. We don't want to mark the elements of m_domObjects, because we don't want
  1852. to keep them around the entire lifetime of the interpreter. This is fine
  1853. because we already have forgetDOMObject(), which takes care of when they
  1854. are deallocated.
  1855. * khtml/ecma/kjs_dom.cpp:
  1856. * khtml/ecma/kjs_dom.h:
  1857. * khtml/ecma/kjs_html.cpp:
  1858. * khtml/ecma/kjs_html.h:
  1859. Changed lots of parameters to pass by const reference for a bit of a code
  1860. size and performance gain.
  1861. 2002-10-31 Richard Williamson <rjw@apple.com>
  1862. Turned on use of lookup tables.
  1863. * kwq/KWQChar.mm:
  1864. (QChar::direction):
  1865. (QChar::mirrored):
  1866. (QChar::mirroredChar):
  1867. 2002-10-31 Maciej Stachowiak <mjs@apple.com>
  1868. - fixed 3075803 - yahoo customize layout - delete, ordering of items doesn't work
  1869. * khtml/html/html_formimpl.h:
  1870. * khtml/html/html_formimpl.cpp:
  1871. (HTMLSelectElementImpl::recalcStyle): New method to insure the
  1872. select element updates if the contents of the option subelements
  1873. are changed.
  1874. === Alexander-30 ===
  1875. 2002-10-30 Maciej Stachowiak <mjs@apple.com>
  1876. - fixed 3049853 - Javascript: setInterval incorrectly acts as single shot
  1877. * kwq/KWQObject.mm:
  1878. (QObject::startTimer): Set a recurring timer instead of
  1879. single-shot, to match QObject semantics.
  1880. 2002-10-30 Richard Williamson <rjw@apple.com>
  1881. More work on bidi and contextual forms.
  1882. Table lookup code is up in WebKit. Function
  1883. pointers are used to isolate WebCore from private
  1884. implementation in WebKit. Needs to be fast, so
  1885. the usual ObjC abstraction won't work.
  1886. * WebCore.exp:
  1887. * WebCore.pbproj/project.pbxproj:
  1888. * kwq/KWQChar.mm:
  1889. (QChar::direction):
  1890. * kwq/KWQString.h:
  1891. * kwq/WebCoreUnicode.cpp: Added.
  1892. * kwq/WebCoreUnicode.h: Added.
  1893. 2002-10-30 Darin Adler <darin@apple.com>
  1894. - fixed crash when you open an empty window and just hit tab, tab, tab
  1895. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::nextKeyViewInFrame): Check for nil.
  1896. 2002-10-30 Darin Adler <darin@apple.com>
  1897. - fixed 3083982 -- Logging into AOL gives null view, crash
  1898. I fixed the crash part. Not the "gives null view" part.
  1899. The key was to disentangle the references and lifetimes of the transfer job class,
  1900. and the resource loader object that KWQ uses to connect it with WebKit.
  1901. * kwq/KWQKJobClasses.h: Change the job to keep a loader reference, not a
  1902. handle reference. The job needs to inform the loader when it's being deallocated.
  1903. * kwq/KWQKJobClasses.mm: Use jobWillBeDeallocated instead of cancel when the
  1904. job is deallocated.
  1905. * kwq/KWQLoader.mm: (KWQServeRequest): Use KWQResourceLoader, now with a home in
  1906. a separate file.
  1907. * kwq/KWQResourceLoader.h: Added.
  1908. * kwq/KWQResourceLoader.mm: Added.
  1909. * WebCore.pbproj/project.pbxproj: Added KWQResourceLoader files.
  1910. 2002-10-30 Darin Adler <darin@apple.com>
  1911. - fixed 3086564 -- REGRESSION: meta-refresh to the same page doesn't refresh
  1912. The key is to get args.reload passed through to the bridge.
  1913. * kwq/WebCoreBridge.h: Add reload parameter to loadURL:.
  1914. * kwq/KWQKHTMLPart.mm:
  1915. (KWQKHTMLPart::openURL): Pass NO for reload.
  1916. (KWQKHTMLPart::openURLRequest): Pass args.reload for reload.
  1917. (KWQKHTMLPart::urlSelected): Pass args.reload for reload.
  1918. (KWQKHTMLPart::submitForm): Pass args.reload for reload.
  1919. - fixed a memory problem with the use of NSBrowser in KWQListBox
  1920. - fixed 2863040 -- multiple default items in select list not selected
  1921. Switched to use NSTableView instead of NSBrowser. This should also create
  1922. a measurable speedup due to other changes to this class.
  1923. * kwq/KWQListBox.h: Remove firstItem(), the insertItem() that takes a QListBoxItem
  1924. parameter, and deleteItems(). Add _items, _width, and _widthGood. Removed _head.
  1925. Removed the QListBoxItem and QListBoxText classes.
  1926. * kwq/KWQListBox.mm:
  1927. (QListBox::QListBox): Create a KWQListBoxScrollView and put an NSTableView
  1928. inside it. Also create an NSMutableArray to hold the items.
  1929. (QListBox::~QListBox): Disconnect the table view from the delegate before
  1930. releasing it. Also release the items array.
  1931. (QListBox::count): Return the array count.
  1932. (QListBox::clear): Do a reloadData here instead of loadColumnZero.
  1933. (QListBox::setSelectionMode): Update for table view.
  1934. (QListBox::insertItem): Update for table view.
  1935. (QListBox::insertGroupLabel): Just calls insertItem for now.
  1936. (QListBox::endBatchInsert): Update for table view.
  1937. (QListBox::setSelected): Update for table view, including support for multiple
  1938. selection.
  1939. (QListBox::isSelected): Update for table view.
  1940. (QListBox::sizeForNumberOfLines): Use the table view cell for width, and
  1941. cache it so we don't have to measure all the strings over and over again.
  1942. (-[KWQListBoxScrollView setFrameSize:]): Resize the table view column whenever
  1943. the entire scroll view is resized.
  1944. (-[KWQListBoxTableViewDelegate initWithListBox:]): Store box pointer and
  1945. pointer to items array.
  1946. (-[KWQListBoxTableViewDelegate numberOfRowsInTableView:]): Return count.
  1947. (-[KWQListBoxTableViewDelegate tableView:objectValueForTableColumn:row:]):
  1948. Get the data from the items array.
  1949. (-[KWQListBoxTableViewDelegate tableViewSelectionDidChange:]): Call both the
  1950. selection-changed signal and the clicked signal.
  1951. * khtml/rendering/render_form.cpp: (RenderSelect::updateFromElement):
  1952. Get rid of the one place here that gets at a list box item by calling a KWQ
  1953. function insertGroupLabel instead of making a QListBoxText. Also call
  1954. beginBatchInsert() before clear() for a slight additional speed boost.
  1955. - fixed 3067572 -- javascript: URLs typed into page address field or
  1956. bookmarks don't work in empty window
  1957. We needed a document for DOM, so we make a dummy one. This works for an empty
  1958. window, and also for a window with non-HTML content.
  1959. * kwq/KWQKHTMLPart.h: Added createDummyDocument().
  1960. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::createDummyDocument): Create an empty
  1961. DOM document if there isn't one already.
  1962. * kwq/WebCoreBridge.mm:
  1963. (-[WebCoreBridge stringByEvaluatingJavaScriptFromString:]): Call the new
  1964. createDummyDocument() instead of checking and doing nothing if there is no
  1965. document present when this is called.
  1966. - other stuff
  1967. * kwq/WebCoreBridge.mm: (-[WebCoreBridge DOMDocument]): Removed a stray printf.
  1968. * kwq/KWQTextArea.mm: Tweaked code a little.
  1969. 2002-10-28 Darin Adler <darin@apple.com>
  1970. * khtml/khtml_part.cpp: (KHTMLPart::checkCompleted):
  1971. Update so it handles nil for the view.
  1972. 2002-10-28 Darin Adler <darin@apple.com>
  1973. - fixed 3070484 -- icon rollovers are very slow on Mac OS X website
  1974. The problem was simply that the part didn't know it was complete.
  1975. To let it know, I hooked up some loader signals, and now it works.
  1976. * khtml/khtml_part.cpp:
  1977. (KHTMLPart::init): Create the KWQKHTMLPart a little earlier so we have
  1978. a chance to initialize the cache before it's used.
  1979. (KHTMLPart::slotLoaderRequestStarted): Take this out of ifdefs.
  1980. (KHTMLPart::slotLoaderRequestDone): Ditto.
  1981. * khtml/misc/loader.h: Add a KWQLoader pointer to the loader.
  1982. * khtml/misc/loader.cpp:
  1983. (Loader::Loader): Create a KWQLoader;
  1984. (Loader::~Loader): Destroy the KWQLoader.
  1985. (Loader::load): Take out ifdefs around code that emits requestStarted.
  1986. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::KWQKHTMLPart): Call Cache::init().
  1987. * kwq/KWQLoader.h: Add a class KWQLoader, with three signals in it.
  1988. * kwq/KWQLoader.mm: (KWQLoader::KWQLoader): Initialize the three signals.
  1989. * kwq/KWQSignalStubs.mm:
  1990. (Loader::requestDone): Emit the signal using KWQLoader.
  1991. (Loader::requestFailed): Ditto.
  1992. (Loader::requestStarted): Ditto.
  1993. * kwq/KWQSlot.h: Add an overload for slots with loader and cached object
  1994. parameters so we can handle the new slots.
  1995. * kwq/KWQSlot.mm:
  1996. (KWQSlot::KWQSlot): Added slotLoaderRequestDone and slotLoaderRequestStarted.
  1997. (KWQSlot::call): Added the new overload to handle those two signals.
  1998. * kwq/KWQSignal.h: Add an overload for signals with loader and cached object
  1999. parameters so we can handle the new signals.
  2000. * kwq/KWQSignal.mm: (KWQSignal::call): Ditto.
  2001. * kwq/KWQObject.mm: (QObject::connect): Remove the special casing that
  2002. prevents complaints about slotLoaderRequestDone and slotLoaderRequestStarted,
  2003. since we support those now.
  2004. 2002-10-28 Darin Adler <darin@apple.com>
  2005. - fixed storage leak of items in QListBox
  2006. * kwq/KWQListBox.h: Added private deleteItems method.
  2007. * kwq/KWQListBox.mm:
  2008. (QListBox::~QListBox): Call deleteItems().
  2009. (QListBox::deleteItems): Move the code to delete all the items
  2010. here from clear(), since clear() is not called on destruction.
  2011. (QListBox::clear): Call deleteItems().
  2012. 2002-10-28 Chris Blumenberg <cblu@apple.com>
  2013. Lowercase the text encoding name.
  2014. * kwq/KWQCharsets.mm:
  2015. (KWQCFStringEncodingFromIANACharsetName):
  2016. 2002-10-28 Richard Williamson <rjw@apple.com>
  2017. Fixed 3086188 - REGRESSION: Justified text is broken
  2018. Bogus special case for DirW(hite)S(pace). This
  2019. should be correctly detected by CF, but is not.
  2020. Revert to explicit checking for ' ' character. This'll
  2021. work most of the time. All the more reason to do
  2022. our own unicode attribute database.
  2023. * kwq/KWQChar.mm:
  2024. (QChar::direction):
  2025. 2002-10-28 Chris Blumenberg <cblu@apple.com>
  2026. Fixed: 3056726 - View Source window always displays the source in current system encoding
  2027. Fixed: 3019352 - Text encoding is not handled when viewing plain text
  2028. * kwq/WebCoreBridge.h:
  2029. * kwq/WebCoreBridge.mm:
  2030. (+[WebCoreBridge stringWithData:textEncoding:]): added, creates a string with data using the WebCore's decoding logic.
  2031. (+[WebCoreBridge stringWithData:textEncodingName:]): added, calls stringWithData:textEncoding: after getting the encoding for a text encoding name
  2032. 2002-10-28 Don Melton <gramps@apple.com>
  2033. * khtml/html/htmlparser.cpp:
  2034. (KHTMLParser::insertNode):
  2035. * khtml/html/htmltokenizer.cpp:
  2036. (HTMLTokenizer::write):
  2037. Backed our Dave's whitespace hack because it was adding newlines, i.e.
  2038. vertical margins, to web pages all over.
  2039. 2002-10-28 Darin Adler <darin@apple.com>
  2040. - fixed 3015800 -- bad URL error - unescaped # in URL
  2041. Actually this has to be fixed both here and in NSURLExtras.
  2042. * kwq/KWQKURL.mm: Set the "BadChar" flag for "#" so we escape any
  2043. "#" characters we see after the first one.
  2044. 2002-10-27 Darin Adler <darin@apple.com>
  2045. - fixed 3058845 -- <input type=file> uses hard-coded width of 200
  2046. pixels for filename
  2047. * khtml/rendering/render_form.cpp:
  2048. (RenderLineEdit::calcMinMaxWidth): Use a default of 20 "x-widths" wide, to
  2049. match Mozilla, rather than the 17 that is in KHTML by default.
  2050. (RenderFileButton::calcMinMaxWidth): Pass in a character width here, using
  2051. the same 20-character rule as above.
  2052. * kwq/KWQFileButton.h: Replace sizeHint() with sizeForCharacterWidth(int).
  2053. * kwq/KWQFileButton.mm:
  2054. (KWQFileButton::sizeForCharacterWidth): Pass character count to the WebCoreFileButton.
  2055. (KWQFileButton::baselinePosition): Fix baseline computation. It was computing some huge
  2056. negative number before and was obviously broken.
  2057. * kwq/KWQLineEdit.mm: (QLineEdit::sizeForCharacterWidth): Add an assertion.
  2058. * kwq/WebCoreViewFactory.h: Replace bestVisualFrameSize with
  2059. bestVisualFrameSizeForCharacterCount:.
  2060. 2002-10-27 Don Melton <gramps@apple.com>
  2061. * khtml/ecma/kjs_navigator.cpp:
  2062. (Navigator::getValueProperty):
  2063. Tweaked AppName, Product, and Vendor logic.
  2064. 2002-10-27 Darin Adler <darin@apple.com>
  2065. * kwq/KWQLoader.mm: (KWQServeRequest): Add a missing "delete job" for one
  2066. particular failure case.
  2067. 2002-10-26 Darin Adler <darin@apple.com>
  2068. - fixed a bug in the WebCore cache that caused it to not cache very much after
  2069. a while, and also caused a crash I saw twice on my machine
  2070. Adjust total size of items in the LRU list, when the size of one of the
  2071. items that's in the list is changed.
  2072. * khtml/misc/loader.h: Added a size parameter (default 0) to the CachedObject
  2073. constructor. Added a protected CachedObject::setSize() and made m_size private.
  2074. Added Cache::adjustSize() and Cache::checkLRUAndUncacheableListIntegrity().
  2075. * khtml/misc/loader.cpp:
  2076. (CachedObject::setSize): Added. This is now the only legal way to change
  2077. the size of a cached object, and it calls Cache::adjustSize.
  2078. (CachedCSSStyleSheet::CachedCSSStyleSheet): Pass the length into the base
  2079. class's constructor instead of setting m_size.
  2080. (CachedCSSStyleSheet::data): Call setSize() instead of setting m_size.
  2081. Also get the size back with size() rather than m_size.
  2082. (CachedScript::CachedScript): Pass the length into the base class's
  2083. constructor instead of setting m_size.
  2084. (CachedScript::data): Call setSize() instead of setting m_size. Also get
  2085. the size back with size() rather than m_size.
  2086. (CachedImage::CachedImage): Don't set m_size to 0, since the base class's
  2087. constructor does that already.
  2088. (CachedImage::clear): Use setSize() to set the size to 0 instead of setting
  2089. m_size directly.
  2090. (CachedImage::data): Use setSize() instead of setting m_size directly.
  2091. (Cache::checkLRUAndUncacheableListIntegrity): Useful debugging function.
  2092. Left in but ifdef'd out.
  2093. (Cache::adjustSize): Added. Changes the "total LRU list size" by the
  2094. passed-in delta, but only if the passed-in object is in the LRU list.
  2095. * kwq/KWQLineEdit.mm:
  2096. * kwq/KWQTextField.h:
  2097. * kwq/KWQTextField.mm:
  2098. Renamed the Objective C class KWQNSTextField to KWQTextField.
  2099. 2002-10-26 Darin Adler <darin@apple.com>
  2100. - removed forwarding headers that are not actually needed
  2101. * ForwardingHeaders/kcmdlineargs.h: Removed.
  2102. * ForwardingHeaders/kinstance.h: Removed.
  2103. * ForwardingHeaders/kio/kprinter.h: Removed.
  2104. * ForwardingHeaders/kio/ktrader.h: Removed.
  2105. * ForwardingHeaders/kio/scheduler.h: Removed.
  2106. * ForwardingHeaders/kparts/factory.h: Removed.
  2107. * ForwardingHeaders/kparts/historyprovider.h: Removed.
  2108. * ForwardingHeaders/kstddirs.h: Removed.
  2109. * ForwardingHeaders/qarray.h: Removed.
  2110. * ForwardingHeaders/qbrush.h: Removed.
  2111. * ForwardingHeaders/qbutton.h: Removed.
  2112. * ForwardingHeaders/qcollection.h: Removed.
  2113. * ForwardingHeaders/qcombobox.h: Removed.
  2114. * ForwardingHeaders/qframe.h: Removed.
  2115. * ForwardingHeaders/qglobal.h: Removed.
  2116. * ForwardingHeaders/qiodevice.h: Removed.
  2117. * ForwardingHeaders/qlineedit.h: Removed.
  2118. * ForwardingHeaders/qnamespace.h: Removed.
  2119. * ForwardingHeaders/qpen.h: Removed.
  2120. * ForwardingHeaders/qprinter.h: Removed.
  2121. * ForwardingHeaders/qsize.h: Removed.
  2122. * ForwardingHeaders/qstack.h: Removed.
  2123. 2002-10-26 Darin Adler <darin@apple.com>
  2124. - fixed a couple of files accidentally checked in with KWQQ names
  2125. * ForwardingHeaders/qasyncio.h: Change names.
  2126. * ForwardingHeaders/qstylesheet.h: Ditto.
  2127. * WebCore.pbproj/project.pbxproj: Ditto.
  2128. * kwq/KWQMovie.h: Ditto.
  2129. 2002-10-26 Darin Adler <darin@apple.com>
  2130. - changed to use #if APPLE_CHANGES and #if !APPLE_CHANGES consistently
  2131. We no longer do #ifdef APPLE_CHANGES or #ifndef APPLE_CHANGES.
  2132. * lots of files
  2133. 2002-10-26 Darin Adler <darin@apple.com>
  2134. - changed naming scheme in KWQ for files like qstring.h
  2135. Now use names like KWQString.h and a forwarding header called qstring.h.
  2136. * tons of files
  2137. 2002-10-26 Darin Adler <darin@apple.com>
  2138. - fixed 3068404 -- eliminate all user-visible messages from WebCore
  2139. * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): Use runJavaScriptPrompt
  2140. function instead of the more generic QInputDialog.
  2141. * khtml/html/html_formimpl.cpp: (HTMLInputElementImpl::altText): Get
  2142. submit alt text for input element from the view factory, rather than using
  2143. i18n, since we don't support that.
  2144. * khtml/html/htmlparser.cpp: (KHTMLParser::handleIsindex): Ditto, for the
  2145. intro that says "This is a searchable index".
  2146. * khtml/rendering/render_form.cpp:
  2147. (RenderSubmitButton::defaultLabel): Ditto, for "Submit".
  2148. (RenderResetButton::defaultLabel): Ditto, for "Reset".
  2149. (RenderFileButton::slotClicked): Ifdef'd out this unused code that had i18n text in it.
  2150. * khtml/xml/xml_tokenizer.cpp:
  2151. (XMLHandler::errorString): Put in an ifdef and a FIXME to avoid i18n.
  2152. (XMLHandler::fatalError): Ditto.
  2153. (XMLTokenizer::finish): Ditto.
  2154. * khtml/misc/decoder.cpp: (Decoder::decode): Ifdef'd the check for the first
  2155. language being "ja", since that's not how we're going to trigger Japanese
  2156. auto-detect.
  2157. * khtml/rendering/render_applet.cpp: (RenderEmptyApplet::RenderEmptyApplet):
  2158. Turned off the code that does the empty applet label. I don't think it worked,
  2159. and it used i18n. We'll have to tackle this eventually.
  2160. * kwq/KWQKHTMLPartImpl.h: Added runJavaScriptPrompt.
  2161. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::runJavaScriptPrompt): Moved the code
  2162. here that used to be in KWQInputDialog.
  2163. * kwq/kdecore/klocale.h: Remove i18n() and KLocale::languageList(), added the functions
  2164. that are listed below.
  2165. * kwq/KWQKLocale.mm:
  2166. (inputElementAltText): Added specific function for getting one of the very few
  2167. translated strings that we need in WebCore.
  2168. (resetButtonDefaultLabel): Ditto.
  2169. (searchableIndexIntroduction): Ditto.
  2170. (submitButtonDefaultLabel): Ditto.
  2171. (KLocale::language): Use the view factory to ask for the language code, since there's no
  2172. public API to get it that WebCore can use.
  2173. * kwq/WebCoreViewFactory.h: Add new API for above.
  2174. * ForwardingHeaders/qinputdialog.h: Added empty file.
  2175. * kwq/qt/qinputdialog.h: Removed.
  2176. * kwq/KWQInputDialog.mm: Removed.
  2177. * WebCore.pbproj/project.pbxproj: Removed QInputDialog files.
  2178. 2002-10-25 Darin Adler <darin@apple.com>
  2179. Remove some user-visible strings. We can't have any strings that need
  2180. localization in WebCore, given our translation strategy.
  2181. * khtml/html/html_formimpl.cpp: (HTMLInputElementImpl::encoding):
  2182. Put APPLE_CHANGES around some i18n dialog code.
  2183. * khtml/khtml_part.cpp: (KHTMLPart::submitForm): Ditto.
  2184. * khtml/rendering/render_frames.cpp:
  2185. (RenderPartObject::slotPartLoadingErrorNotify): Ditto.
  2186. * khtml/ecma/kjs_window.cpp:
  2187. (Window::get): Ditto.
  2188. (Window::scheduleClose): Ditto.
  2189. (WindowFunc::tryCall): Put APPLE_CHANGES in to use JavaScript-specific methods
  2190. in the part of calling the generic ones from KMessageBox.
  2191. * ForwardingHeaders/kmessagebox.h: Added (empty file).
  2192. * kwq/KWQKHTMLPartImpl.h: Added new runJavaScript functions.
  2193. * kwq/KWQKHTMLPartImpl.mm:
  2194. (KWQKHTMLPartImpl::runJavaScriptAlert): Added.
  2195. (KWQKHTMLPartImpl::runJavaScriptConfirm): Added.
  2196. * kwq/WebCoreViewFactory.h: Added runJavaScriptAlertPanelWithMessage and
  2197. runJavaScriptConfirmPanelWithMessage.
  2198. * kwq/kdeui/kmessagebox.h: Removed.
  2199. * kwq/KWQKMessageBox.mm: Removed.
  2200. * WebCore.pbproj/project.pbxproj: Removed the KMessageBox files.
  2201. 2002-10-25 Richard Williamson <rjw@apple.com>
  2202. Removed debug logging.
  2203. * khtml/rendering/font.cpp:
  2204. (Font::drawText):
  2205. 2002-10-25 Richard Williamson <rjw@apple.com>
  2206. Implemented support for bidi text layout. WebCore
  2207. temporarily depends on SPI to get unicode character
  2208. attribute from CF. This will change shortly.
  2209. * khtml/rendering/font.cpp:
  2210. (Font::drawText):
  2211. * kwq/KWQChar.mm:
  2212. (QChar::direction):
  2213. * kwq/KWQPainter.mm:
  2214. (QPainter::drawText):
  2215. * kwq/WebCoreTextRenderer.h:
  2216. * kwq/qt/qpainter.h:
  2217. 2002-10-25 Chris Blumenberg <cblu@apple.com>
  2218. Cleaned up the frame searching shenanigans. Things are much cleaner and clearer now.
  2219. * kwq/KWQKHTMLPartBrowserExtension.mm:
  2220. (KHTMLPartBrowserExtension::createNewWindow): call findFrameNamed
  2221. * kwq/KWQKHTMLPartImpl.mm:
  2222. (KWQKHTMLPartImpl::bridgeForFrameName): call findOrCreateFramedNamed
  2223. * kwq/WebCoreBridge.h:
  2224. 2002-10-25 Maciej Stachowiak <mjs@apple.com>
  2225. - fixed 3065638 - "undefined" output to screen on empty document.write()
  2226. * khtml/ecma/kjs_html.cpp:
  2227. (KJS::HTMLDocFunction::tryCall): Don;t assume there is at least
  2228. one argument.
  2229. 2002-10-25 Maciej Stachowiak <mjs@apple.com>
  2230. - fixed 3048031 - innerHTML is incorrectly null
  2231. * kwq/KWQString.mm:
  2232. (QString::isNull): Check for NULL by comparing to
  2233. shared_null_handle instead of checking for 0 length, so
  2234. garden-variety empty strings don't show as NULL.
  2235. (QString::QString): Make sure that string created with a NULL char
  2236. * uses the shared null handle, so it's properly NULL.
  2237. 2002-10-24 Richard Williamson <rjw@apple.com>
  2238. Updated to reflect new calling parameter semantic of floatCharacterWidths(),
  2239. which now returns the entire array of widths up the last character requested.
  2240. * khtml/rendering/render_text.cpp:
  2241. (TextSlave::checkSelectionPoint):
  2242. 2002-10-24 David Hyatt <hyatt@apple.com>
  2243. <pre>, <xmp> and <plaintext> should all have a top margin of 1em.
  2244. Fixes a bunch of sites that use <pre>.
  2245. * khtml/css/html4.css:
  2246. 2002-10-24 Chris Blumenberg <cblu@apple.com>
  2247. Removed didAddSubview calls because that can easily be done in WebKit. Duh!
  2248. * khtml/rendering/render_frames.cpp:
  2249. (RenderPart::setWidget):
  2250. * kwq/KWQKHTMLPartImpl.h:
  2251. * kwq/KWQKHTMLPartImpl.mm:
  2252. * kwq/KWQKJavaAppletWidget.mm:
  2253. (KJavaAppletWidget::showApplet):
  2254. * kwq/WebCoreBridge.h:
  2255. 2002-10-24 Darin Adler <darin@apple.com>
  2256. A step in the direction of making KWQ headers much nicer.
  2257. Move all empty headers out of kwq, and into ForwardingHeaders.
  2258. * ForwardingHeaders/kcmdlineargs.h: Added.
  2259. * ForwardingHeaders/kdatastream.h: Added.
  2260. * ForwardingHeaders/khtml_iface.h: Added.
  2261. * ForwardingHeaders/khtml_printsettings.h: Added.
  2262. * ForwardingHeaders/khtml_run.h: Added.
  2263. * ForwardingHeaders/kio/kprinter.h: Added.
  2264. * ForwardingHeaders/kio/kprotocolmanager.h:
  2265. * ForwardingHeaders/kio/ktrader.h: Added.
  2266. * ForwardingHeaders/kio/scheduler.h: Added.
  2267. * ForwardingHeaders/kmultipledrag.h: Added.
  2268. * ForwardingHeaders/kprinter.h: Added.
  2269. * ForwardingHeaders/kprotocolmanager.h: Added.
  2270. * ForwardingHeaders/ksslcertchain.h: Added.
  2271. * ForwardingHeaders/ksslinfodlg.h: Added.
  2272. * ForwardingHeaders/kstdaction.h: Added.
  2273. * ForwardingHeaders/ktempfile.h: Added.
  2274. * ForwardingHeaders/ktrader.h: Added.
  2275. * ForwardingHeaders/kurldrag.h: Added.
  2276. * ForwardingHeaders/kxmlguifactory.h: Added.
  2277. * ForwardingHeaders/qasyncimageio.h: Added.
  2278. * ForwardingHeaders/qbitmap.h: Added.
  2279. * ForwardingHeaders/qclipboard.h: Added.
  2280. * ForwardingHeaders/qfontdatabase.h: Added.
  2281. * ForwardingHeaders/qglobal.h: Added.
  2282. * ForwardingHeaders/qhbox.h: Added.
  2283. * ForwardingHeaders/qintcache.h: Added.
  2284. * ForwardingHeaders/qintdict.h: Added.
  2285. * ForwardingHeaders/qmetaobject.h: Added.
  2286. * ForwardingHeaders/qobjectlist.h: Added.
  2287. * ForwardingHeaders/scheduler.h: Added.
  2288. * kwq/dcop/kdatastream.h: Removed.
  2289. * kwq/kdecore/kcmdlineargs.h: Removed.
  2290. * kwq/kdecore/kmultipledrag.h: Removed.
  2291. * kwq/kdecore/ktempfile.h: Removed.
  2292. * kwq/kdecore/kurldrag.h: Removed.
  2293. * kwq/kdeui/kstdaction.h: Removed.
  2294. * kwq/kdeui/kxmlguifactory.h: Removed.
  2295. * kwq/khtml/khtml_iface.h: Removed.
  2296. * kwq/khtml/khtml_printsettings.h: Removed.
  2297. * kwq/khtml/khtml_run.h: Removed.
  2298. * kwq/kio/kprinter.h: Removed.
  2299. * kwq/kio/kprotocolmanager.h: Removed.
  2300. * kwq/kio/kssl/ksslcertchain.h: Removed.
  2301. * kwq/kio/kssl/ksslinfodlg.h: Removed.
  2302. * kwq/kio/ktrader.h: Removed.
  2303. * kwq/kio/scheduler.h: Removed.
  2304. * kwq/qt/qasyncimageio.h: Removed.
  2305. * kwq/qt/qbitmap.h: Removed.
  2306. * kwq/qt/qclipboard.h: Removed.
  2307. * kwq/qt/qfontdatabase.h: Removed.
  2308. * kwq/qt/qglobal.h: Removed.
  2309. * kwq/qt/qhbox.h: Removed.
  2310. * kwq/qt/qintcache.h: Removed.
  2311. * kwq/qt/qintdict.h: Removed.
  2312. * kwq/qt/qmetaobject.h: Removed.
  2313. * kwq/qt/qobjectlist.h: Removed.
  2314. * WebCore.pbproj/project.pbxproj: Removed all the above headers from
  2315. the project.
  2316. 2002-10-24 Darin Adler <darin@apple.com>
  2317. * ForwardingHeaders/private/qucomextra_p.h: Emptied this out.
  2318. * kwq/qt/private/qucomextra_p.h: Removed.
  2319. 2002-10-24 David Hyatt <hyatt@apple.com>
  2320. Make sure that KHTML's initial layout happens after KHTML
  2321. fires the onload. This means that in the case where we
  2322. beat the timer, we will now fire the onload before both
  2323. the initial layout and the initial paint.
  2324. * khtml/html/html_documentimpl.cpp:
  2325. (HTMLDocumentImpl::close):
  2326. === Alexander-29 ===
  2327. 2002-10-24 Chris Blumenberg <cblu@apple.com>
  2328. Use "MIMEType" instead of "serviceType".
  2329. * kwq/KWQKHTMLPartImpl.mm:
  2330. (KWQKHTMLPartImpl::createPart):
  2331. * kwq/WebCoreBridge.h:
  2332. 2002-10-24 Darin Adler <darin@apple.com>
  2333. * kwq/KWQKLocale.mm: (i18n): Make it obvious when non-localized
  2334. strings from WebCore show up in the UI, but putting the string
  2335. "not localized: " in front.
  2336. * kwq/KWQKMessageBox.mm:
  2337. (KMessageBox::error): Fix use of NSRunAlertPanel so that we won't
  2338. accidentally try to interpret % sequences in the messages we are displaying.
  2339. (KMessageBox::warningYesNo): Ditto.
  2340. (KMessageBox::questionYesNo): Ditto.
  2341. (KMessageBox::sorry): Ditto.
  2342. (KMessageBox::information): Ditto.
  2343. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2344. WebKit now gets called when render_frame subviews are added.
  2345. * khtml/rendering/render_frames.cpp:
  2346. (RenderPart::setWidget): call didAddWidget on the part
  2347. * kwq/KWQKHTMLPartImpl.h:
  2348. * kwq/KWQKHTMLPartImpl.mm:
  2349. (KWQKHTMLPartImpl::didAddWidget): added, calls didAddSubview on the bridge
  2350. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2351. Change for plug-in package API changes.
  2352. * kwq/KWQKConfigBase.mm:
  2353. (KConfig::readEntry):
  2354. * kwq/WebCoreBridge.h: added didAddSubview, called when a render_frame's view is added as a subview of the main view.
  2355. * kwq/WebCoreViewFactory.h: added didAddSubview
  2356. 2002-10-23 Darin Adler <darin@apple.com>
  2357. - finished up the job of moving the file button to WebKit
  2358. I did this mainly for localization reasons.
  2359. * kwq/KWQFileButton.h: Remove filename(), add filenameChanged(),
  2360. make KWQFileButton be a QWidget subclass, not a QPushButton one.
  2361. Remove clicked() and paint() virtual functions, _filename, _icon,
  2362. and _label data members.
  2363. * kwq/KWQFileButton.mm:
  2364. (KWQFileButton::KWQFileButton): Just make a WebCoreFileButton.
  2365. (KWQFileButton::~KWQFileButton): Less to do here now.
  2366. (KWQFileButton::setFilename): Call the button to do the work.
  2367. (KWQFileButton::sizeHint): Ditto.
  2368. (KWQFileButton::frameGeometry): Ditto.
  2369. (KWQFileButton::setFrameGeometry): Ditto.
  2370. (KWQFileButton::baselinePosition): Ditto.
  2371. (KWQFileButton::filenameChanged): Added. Sends message.
  2372. (-[KWQFileButtonAdapter initWithKWQFileButton:]): Observe the "filename
  2373. changed notification".
  2374. (-[KWQFileButtonAdapter dealloc]): Stop observing.
  2375. (-[KWQFileButtonAdapter filenameChanged:]): Send a signal when the notification
  2376. comes in, so KHTML finds out.
  2377. * kwq/KWQSlot.mm:
  2378. (KWQSlot::KWQSlot): Remove handling for RenderFileButton slotReturnPressed.
  2379. (KWQSlot::call): Ditto.
  2380. * kwq/WebCoreViewFactory.h: Remove bestSize. Add setVisualFrame, visualFrame, and
  2381. bestVisualFrameSize.
  2382. * kwq/KWQInputDialog.mm: Tweaked includes. Long-term we want to use "", not <>.
  2383. * kwq/KWQKConfigBase.mm: Ditto.
  2384. * kwq/KWQKHTMLPartImpl.mm: Ditto.
  2385. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2386. Call the arguments for plug-ins "attributes" everywhere.
  2387. * kwq/KWQKHTMLPartImpl.mm:
  2388. (KWQKHTMLPartImpl::createPart):
  2389. * kwq/KWQKJavaAppletWidget.mm:
  2390. (KJavaAppletWidget::showApplet):
  2391. * kwq/WebCoreBridge.h:
  2392. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2393. For the new plug-in API, we need to pass a WebPluginContainer to the plug-in view upon creation. The is owned by the WebFrame. To make this all work, I had to move the WebCore plug-in and java view constructors to WebBridge from WebViewFactory since WebBridge has the frame.
  2394. * khtml/khtml_part.cpp:
  2395. (KHTMLPart::createJavaContext): New APPLE_CHANGES around the java context constructor so we pass the part.
  2396. * kwq/KWQKHTMLPartImpl.mm:
  2397. (KWQKHTMLPartImpl::createPart): call the bridge to create the view
  2398. * kwq/KWQKJavaAppletWidget.mm:
  2399. (KJavaAppletWidget::KJavaAppletWidget): save the context
  2400. (KJavaAppletWidget::showApplet): call the bridge to create the view
  2401. * kwq/WebCoreBridge.h:
  2402. * kwq/WebCoreViewFactory.h:
  2403. * kwq/khtml/java/kjavaappletcontext.h: made constructor take the part
  2404. * kwq/khtml/java/kjavaappletwidget.h: ivar for the context
  2405. 2002-10-23 Darin Adler <darin@apple.com>
  2406. - fixed 3080478 -- reproducible incomplete load on apple.com
  2407. * kwq/KWQLoaderImpl.mm:
  2408. (-[WebCoreResourceLoader receivedResponse:]): Add an assert.
  2409. (-[WebCoreResourceLoader cancel]): Don't finish here, just disconnect the handle
  2410. from the job, and disconnect the job from the WebCoreResourceLoader, and let the
  2411. KHTML code finish the cleanup later. This is the bug fix.
  2412. (KWQCheckCacheObjectStatus): Add an assertion.
  2413. * kwq/KWQKjobclasses.mm:
  2414. (TransferJob::~TransferJob): Don't call kill(); do the work here instead.
  2415. (TransferJob::kill): Self-destruct. Need this to avoid a storage leak.
  2416. * khtml/misc/loader.cpp:
  2417. (CachedObject::~CachedObject): Put some Apple-specific code inside APPLE_CHANGES.
  2418. (CachedObject::setResponse): Streamlined this function.
  2419. (Loader::receivedResponse): Added assertions.
  2420. * kwq/qt/qxml.h: Add more stubs.
  2421. * kwq/KWQxml.mm: Ditto.
  2422. * kwq/WebCoreViewFactory.h: Add [WebCoreViewFactory fileButton], the
  2423. WebCoreFileButton protocol, and WebCoreFileButtonFilenameChanged.
  2424. * kwq/WebCoreViewFactory.m: Add WebCoreFileButtonFilenameChanged.
  2425. * WebCore.exp: Export _WebCoreFileButtonFilenameChanged.
  2426. 2002-10-22 Maciej Stachowiak <mjs@apple.com>
  2427. Forgot to check this in earlier:
  2428. - fixed 3077084 - debugging output when suppressing or allowing
  2429. pop-ups
  2430. * khtml/ecma/kjs_window.cpp:
  2431. (WindowFunc::tryCall):
  2432. * kwq/KWQLogging.h:
  2433. * kwq/KWQLogging.m:
  2434. 2002-10-22 David Hyatt <hyatt@apple.com>
  2435. Get XML files closer. An XML doc is at least made. No
  2436. parsing works yet though.
  2437. * kwq/KWQKHTMLPartImpl.mm:
  2438. (KWQKHTMLPartImpl::setPolicyBaseURL):
  2439. * kwq/WebCoreBridge.h:
  2440. * kwq/WebCoreBridge.mm:
  2441. (-[WebCoreBridge setContentType:]):
  2442. 2002-10-22 Chris Blumenberg <cblu@apple.com>
  2443. Fixed: 3023814 - contexual menus and dragging doesn't work for some images
  2444. Added a innerNonSharedNode to NodeInfo that points to the node which is not shared by another node. In this case, the innerNonSharedNode is the image node not the area node.
  2445. * khtml/rendering/render_frames.cpp:
  2446. (RenderFrameSet::nodeAtPoint): call setInnerNonSharedNode
  2447. * khtml/rendering/render_image.cpp:
  2448. (RenderImage::nodeAtPoint): call setInnerNonSharedNode
  2449. * khtml/rendering/render_object.cpp:
  2450. (RenderObject::nodeAtPoint): call setInnerNonSharedNode
  2451. * khtml/rendering/render_object.h:
  2452. * kwq/WebCoreBridge.mm:
  2453. (-[WebCoreBridge elementAtPoint:]): use the innerNonSharedNode
  2454. 2002-10-22 David Hyatt <hyatt@apple.com>
  2455. Fix slashdot. Make sure the KONQBLOCK hack just throws away
  2456. margins at the tops and bottoms of kids.
  2457. * khtml/css/html4.css:
  2458. * khtml/rendering/render_flow.cpp:
  2459. (RenderFlow::layoutBlockChildren):
  2460. 2002-10-22 David Hyatt <hyatt@apple.com>
  2461. Fix for left-hand-side of wired.com. A disturbingly basic
  2462. bug. I was applying a parent's margins to its children
  2463. when collapsing, even if the parent had a border/padding set
  2464. that should have separated it from its kids.
  2465. * khtml/rendering/render_flow.cpp:
  2466. (RenderFlow::layoutBlockChildren):
  2467. 2002-10-22 David Hyatt <hyatt@apple.com>
  2468. Optimize my inline margin discarding to be smart about the
  2469. case when the inline has a block and its beginning or
  2470. end. Fixes aintitcool.com.
  2471. * khtml/rendering/render_flow.cpp:
  2472. (RenderFlow::layoutBlockChildren):
  2473. 2002-10-22 David Hyatt <hyatt@apple.com>
  2474. Removing konq's flow-around-floats hack for <blockquote> and
  2475. <dl>. These objects are allowed to flow under floats. Fixes
  2476. www.webreference.com's front page.
  2477. Also fixing a bug in my <td> margin collapsing quirk that
  2478. prevented lists (ol,ul,dl,menu,dir) from collapsing their
  2479. top margins into the td.
  2480. * khtml/css/html4.css:
  2481. * khtml/rendering/render_flow.cpp:
  2482. (RenderFlow::layoutBlockChildren):
  2483. (RenderFlow::addChild):
  2484. 2002-10-22 David Hyatt <hyatt@apple.com>
  2485. Fix a typo in my change to the h1 rule.
  2486. * khtml/css/html4.css:
  2487. 2002-10-22 David Hyatt <hyatt@apple.com>
  2488. Ok, this patch does a lot of stuff. It contains a complete
  2489. rewrite of the WinIE quirk for handling collapsing margins
  2490. at the tops and bottoms of table cells. We match WinIE's
  2491. behavior for all HTML4 block-level elements.
  2492. This patch also applies a bottom margin to <form> elements,
  2493. which is what was causing the missing space on livepage.apple.com
  2494. underneath the textfield on the right. WinIE and Gecko both
  2495. put a bottom margin on all forms.
  2496. This patch also updates the collapsing margin code to detect
  2497. inlines that have been morphed into blocks by KHTML (this is
  2498. so wrong, don't even get me started, you can't treat an inline
  2499. as a block, this code is lame, etc. etc.) and to properly ignore
  2500. their margins completely. Fixing the code to not morph inlines
  2501. is another architectural problem that will have to be dealt
  2502. with (sigh).
  2503. * khtml/css/css_valueimpl.h:
  2504. * khtml/css/cssparser.cpp:
  2505. (StyleBaseImpl::parseValue):
  2506. (StyleBaseImpl::parseUnit):
  2507. * khtml/css/cssparser.h:
  2508. * khtml/css/cssstyleselector.cpp:
  2509. * khtml/css/html4.css:
  2510. * khtml/misc/khtmllayout.h:
  2511. * khtml/rendering/render_flow.cpp:
  2512. (RenderFlow::RenderFlow):
  2513. (RenderFlow::layout):
  2514. (RenderFlow::layoutBlockChildren):
  2515. (RenderFlow::addChild):
  2516. * khtml/rendering/render_flow.h:
  2517. * khtml/rendering/render_object.h:
  2518. 2002-10-21 Darin Adler <darin@apple.com>
  2519. * kwq/KWQInputDialog.mm: (QInputDialog::getText): Call the view factory to do the
  2520. heavy lifting.
  2521. * kwq/WebCoreViewFactory.h: Add runJavaScriptTextInputPanelWithPrompt:defaultText:returningText:.
  2522. Use a protocol for the subclass responsibility.
  2523. * kwq/WebCoreViewFactory.m: Remove stub methods not needed because of the subclass responsibility
  2524. technique we are using.
  2525. * kwq/qt/qstylesheet.h: Made this inline, since it does nothing.
  2526. * kwq/KWQStyleSheet.mm: Removed.
  2527. * WebCore.pbproj/project.pbxproj: Removed KWQStyleSheet.mm.
  2528. 2002-10-21 David Hyatt <hyatt@apple.com>
  2529. Implement support for a new @-rule called @konq-quirks. This
  2530. will allow us to put style rules into html4.css that only
  2531. apply for pages in quirks mode.
  2532. * khtml/css/css_ruleimpl.cpp:
  2533. (CSSQuirksRuleImpl::CSSQuirksRuleImpl):
  2534. (CSSQuirksRuleImpl::~CSSQuirksRuleImpl):
  2535. (CSSQuirksRuleImpl::cssRules):
  2536. (CSSQuirksRuleImpl::appendRule):
  2537. (CSSQuirksRuleImpl::insertRule):
  2538. (CSSQuirksRuleImpl::deleteRule):
  2539. * khtml/css/css_ruleimpl.h:
  2540. * khtml/css/cssparser.cpp:
  2541. (StyleBaseImpl::parseAtRule):
  2542. * khtml/css/cssparser.h:
  2543. * khtml/css/cssstyleselector.cpp:
  2544. * khtml/css/cssstyleselector.h:
  2545. * khtml/dom/css_rule.h:
  2546. 2002-10-21 Darin Adler <darin@apple.com>
  2547. Remove closeEntireTree now that deferred close takes care of that case.
  2548. * khtml/html/htmlparser.cpp: (KHTMLParser::startBody):
  2549. * khtml/rendering/render_object.h:
  2550. 2002-10-21 Darin Adler <darin@apple.com>
  2551. - fixed 3075041 -- text larger/smaller increment too large when font-size specified as %
  2552. * khtml/css/cssstyleselector.cpp: Don't apply the zoom factor to a font size that
  2553. already has the zoom factor applied.
  2554. 2002-10-21 Darin Adler <darin@apple.com>
  2555. * khtml/khtmlview.cpp: (KHTMLView::clear): Default to fast scrolling.
  2556. I'm pretty sure this was just backwards here.
  2557. 2002-10-21 David Hyatt <hyatt@apple.com>
  2558. DLs are supposed to have margins.
  2559. * khtml/css/html4.css:
  2560. 2002-10-21 David Hyatt <hyatt@apple.com>
  2561. Fix for margin problems on aintitcool.com. There was a subtlety
  2562. to WinIE's quirk. For <h1>-<h6> only, they don't collapse the
  2563. bottom margin for table cells (they still collapse the top
  2564. margin). I just love emulating the odd behavior of WinIE.
  2565. Wheee.
  2566. * khtml/rendering/render_flow.cpp:
  2567. (RenderFlow::layoutBlockChildren):
  2568. 2002-10-20 Darin Adler <darin@apple.com>
  2569. Redid my fix. It was just an ordering thing. The image had to already be
  2570. installed as the current image before calling ref(), because in the cached
  2571. case, you get the loading complete callback right then.
  2572. * khtml/rendering/render_image.cpp: (RenderImage::updateFromElement):
  2573. Call deref on the old image later. Basically, instead of moving the ref
  2574. of the new image up, I moved the deref of the old image down.
  2575. 2002-10-20 Darin Adler <darin@apple.com>
  2576. Roll out my render_image.cpp change. It was causing a big problem
  2577. getting images from the cache. I need to study further to figure out why.
  2578. * khtml/rendering/render_image.cpp: (RenderImage::updateFromElement):
  2579. Roll back the change.
  2580. 2002-10-20 David Hyatt <hyatt@apple.com>
  2581. Rewrite the clearing code for floats. Rewrote the
  2582. collapsing margin code to really work with floating and
  2583. clearing. This fixes the right hand side of wired.com.
  2584. * khtml/rendering/render_flow.cpp:
  2585. (RenderFlow::layoutBlockChildren):
  2586. (RenderFlow::checkClear):
  2587. (RenderFlow::addChild):
  2588. 2002-10-20 Darin Adler <darin@apple.com>
  2589. - fixed 3007961 -- Crash in DOM::HTMLImageElementImpl::parseAttribute
  2590. * khtml/rendering/render_image.cpp: (RenderImage::updateFromElement):
  2591. Be sure to call ref on the new image before calling deref on the old
  2592. image. That's because deref on the old image causes a cache flush,
  2593. which might cause the image to go away in certain cases.
  2594. 2002-10-20 Chris Blumenberg <cblu@apple.com>
  2595. Fixed possible build failure.
  2596. * kwq/KWQDOMNode.cpp:
  2597. (isImage): remove unused variable.
  2598. 2002-10-20 Chris Blumenberg <cblu@apple.com>
  2599. Partial fix for:
  2600. 3023814 - contexual menus and dragging doesn't work for some images
  2601. The image map case is still broken because I need to find a way to get the RenderImage for an AREA node. Anyone know how?
  2602. * kwq/KWQDOMNode.cpp:
  2603. (isImage): Also return true if the node is an INPUT tag with TYPE set to "image"
  2604. 2002-10-20 Darin Adler <darin@apple.com>
  2605. - fixed 3076390 -- crash in DOM::DocumentImpl::setParsing loading thread detail page
  2606. at groups.apple.com
  2607. * khtml/khtml_part.cpp: (KHTMLPart::openURL): Don't do any redirect special case
  2608. if the document is nil. Just do a normal load in that case.
  2609. 2002-10-20 Darin Adler <darin@apple.com>
  2610. - fixed 3079864 -- REGRESSION: assertion failure on any page with a form element
  2611. * khtml/html/html_formimpl.cpp: (HTMLGenericFormElementImpl::attach):
  2612. Roll back the parent call to use NodeBaseImpl::attach. Not sure why I changed that
  2613. at the last minute before my last checkin, but it was *bad*.
  2614. - fixed a crash I observed when clicking on an about:blank page
  2615. * kwq/WebCoreBridge.mm: (-[WebCoreBridge elementAtPoint:]): Check for nil renderer.
  2616. 2002-10-19 Darin Adler <darin@apple.com>
  2617. - fixed 3075032 -- textarea contents sometimes aren't shown
  2618. The root of the problem is that we weren't delivering close calls to
  2619. the render objects in the case where we created them late due to our FOUC
  2620. fix. I taught the DOM implementation to remember that a close call is
  2621. due, and deliver it when the render object is created. We can probably
  2622. replace the closeEntireTree hack with this too. I'll talk to Dave about
  2623. that on Monday.
  2624. * khtml/xml/dom_nodeimpl.h: Add m_rendererNeedsClose and closeRenderer.
  2625. * khtml/xml/dom_nodeimpl.cpp:
  2626. (NodeImpl::NodeImpl): Initialize m_rendererNeedsClose to false.
  2627. (NodeImpl::closeRenderer): Call close on the renderer if it's created, otherwise
  2628. set m_rendererNeedsClose.
  2629. (NodeImpl::attach): If the renderer is created and m_rendererNeedsClose is true
  2630. call close on the renderer and set it to false.
  2631. * khtml/html/html_formimpl.cpp: (HTMLGenericFormElementImpl::attach):
  2632. Rearrange this so that the base class attach is called before updateFromElement
  2633. is called. This allows the base attach to do a close for us before we update.
  2634. * khtml/html/htmlparser.cpp:
  2635. (KHTMLParser::insertNode): Call closeRenderer on the DOM node rather than
  2636. calling close on the render node.
  2637. (KHTMLParser::popOneBlock): Ditto.
  2638. * khtml/xml/xml_tokenizer.cpp:
  2639. (XMLHandler::endElement): Ditto.
  2640. (XMLTokenizer::finish): Ditto.
  2641. 2002-10-19 David Hyatt <hyatt@apple.com>
  2642. A couple of whitespace fixes. What's really odd about these
  2643. fixes is that they *work* but only if you load the page by
  2644. hitting "Back". I suspect that I've now fixed the bugs on
  2645. KHTML's end, and we have some sort of whitepsace dropping
  2646. problem on our end.
  2647. * khtml/html/htmlparser.cpp:
  2648. (KHTMLParser::insertNode):
  2649. * khtml/html/htmltokenizer.cpp:
  2650. (HTMLTokenizer::write):
  2651. 2002-10-18 Richard Williamson <rjw@apple.com>
  2652. Fixed khtml to ignore <title> tags after the first tag.
  2653. Fixed setting document.title from JavaScript.
  2654. * khtml/dom/html_document.cpp:
  2655. (HTMLDocument::setTitle):
  2656. * khtml/html/html_headimpl.cpp:
  2657. (HTMLTitleElementImpl::insertedIntoDocument):
  2658. (HTMLTitleElementImpl::childrenChanged):
  2659. 2002-10-18 Darin Adler <darin@apple.com>
  2660. - fixed 3078293 -- Implement evaluateJavaScript on WebController
  2661. * kwq/KWQVariant.mm: (QVariant::asString): Made this return reasonable
  2662. values for types other than string. Still may be loose ends left, but
  2663. this takes care of most of it.
  2664. 2002-10-18 Darin Adler <darin@apple.com>
  2665. * kwq/WebCoreBridge.h:
  2666. * kwq/WebCoreBridge.mm:
  2667. (-[WebCoreBridge stringByEvaluatingJavaScriptFromString:]):
  2668. Changed to return a string and changed name.
  2669. 2002-10-18 David Hyatt <hyatt@apple.com>
  2670. The collapsing margin rewrite. Also fixes a bug where
  2671. we stay in quirks mode for strict HTML4 dtds when we
  2672. shouldn't.
  2673. * khtml/html/html_documentimpl.cpp:
  2674. (HTMLDocumentImpl::determineParseMode):
  2675. * khtml/rendering/render_flow.cpp:
  2676. (RenderFlow::layout):
  2677. (RenderFlow::layoutBlockChildren):
  2678. * khtml/rendering/render_flow.h:
  2679. * khtml/rendering/render_object.h:
  2680. 2002-10-18 Darin Adler <darin@apple.com>
  2681. * Makefile.am: Move dependency so clean happens before build.
  2682. 2002-10-17 Richard Williamson <rjw@apple.com>
  2683. Support for drawing frame borders and frame resizing. (fixes 2982466).
  2684. * khtml/rendering/render_frames.cpp:
  2685. (RenderFrameSet::userResize):
  2686. * kwq/WebCoreBridge.h:
  2687. * kwq/WebCoreBridge.mm:
  2688. (-[WebCoreBridge frameBorderStyle]):
  2689. * kwq/qt/qframe.h:
  2690. 2002-10-17 Darin Adler <darin@apple.com>
  2691. - fixed 2807340 -- Alex is case sensitive for anchors, but
  2692. should not be in quirks mode (other browsers aren't)
  2693. * khtml/dom/html_misc.cpp: Touched this file to prevent us from requiring a
  2694. full build. Damned header dependencies still don't work right.
  2695. * khtml/html/html_miscimpl.h: Add caseSensitive parameters.
  2696. * khtml/html/html_miscimpl.cpp:
  2697. (HTMLCollectionImpl::getNamedItem): Add caseSensitive parameter, and compare
  2698. by converting both to lower case if it's false and pass it on when recursing.
  2699. (HTMLCollectionImpl::namedItem): Pass along a caseSensitive parameter.
  2700. (HTMLFormCollectionImpl::getNamedItem): Pass along a caseSensitive parameter.
  2701. (HTMLFormCollectionImpl::getNamedFormItem): Pass along, and handle, it.
  2702. (HTMLFormCollectionImpl::getNamedImgItem): Ditto.
  2703. (HTMLFormCollectionImpl::nextNamedItemInternal): Pass true for caseSensitive.
  2704. * khtml/khtml_part.cpp: (KHTMLPart::gotoAnchor):
  2705. Pass false for the new caseSensitive parameter to namedItem when the document
  2706. mode is not strict.
  2707. * kwq/KWQListBox.mm: (QListBox::sizeForNumberOfLines): Removed a stray NSLog
  2708. that I left in by accident.
  2709. 2002-10-17 Darin Adler <darin@apple.com>
  2710. - fixed 3052547 -- <select> doesn't size properly (size > 1)
  2711. * khtml/rendering/render_form.cpp:
  2712. (RenderLineEdit::slotReturnPressed): #if !APPLE_CHANGES around some unused
  2713. code in here.
  2714. (RenderSelect::updateFromElement): Fix bug where it was using Multi here, but
  2715. Extended elsewhere for the selection mode.
  2716. (RenderSelect::layout): Change code so that QListBox handles the sizing.
  2717. * kwq/KWQListBox.h: Removed a lot of unused stuff, made other things use inlines.
  2718. * kwq/KWQListBox.mm: Rewrote most of the file contents. Made a new
  2719. QListBox::sizeForNumberOfLines method. We will have to port this to NSTableView
  2720. rather than NSBrowser.
  2721. 2002-10-17 Darin Adler <darin@apple.com>
  2722. - fixed 3078245 -- REGRESSION: lightgrey displays as black, used
  2723. to display as white, should display light gray
  2724. * kwq/KWQColor.mm: (getNamedColors): For every color with the name
  2725. "gray" in it, also include the version spelled "grey" as other
  2726. browsers seem to.
  2727. 2002-10-17 David Hyatt <hyatt@apple.com>
  2728. Make navigator.product dynamic based off user agent (i.e.,
  2729. make it participate in spoofing too).
  2730. * khtml/ecma/kjs_navigator.cpp:
  2731. (Navigator::getValueProperty):
  2732. === Alexander-28 ===
  2733. 2002-10-17 Darin Adler <darin@apple.com>
  2734. - fixed 3077856 -- REGRESSION: scroll to fragment doesn't work
  2735. (except when Alex started from command line)
  2736. * kwq/kparts/browserextension.h: Initialize reload to false. It was
  2737. uninitialized, and when true was preventing anchor navigation from working.
  2738. 2002-10-17 Darin Adler <darin@apple.com>
  2739. - fixed 3075992 -- Hang in khtml::RenderFlow::lowestPosition() trying to
  2740. render http://avoyagetoarcturus.blogspot.com/
  2741. * khtml/rendering/render_flow.cpp:
  2742. (RenderFlow::lowestPosition): Don't recurse on the same child twice.
  2743. (RenderFlow::rightmostPosition): Ditto.
  2744. 2002-10-17 David Hyatt <hyatt@apple.com>
  2745. Fix bayarea.com. My implementation of offsetParent was
  2746. flawed. And to think I was blaming Gecko... ;)
  2747. * khtml/rendering/render_object.cpp:
  2748. (RenderObject::offsetParent):
  2749. 2002-10-16 Darin Adler <darin@apple.com>
  2750. - fixed 3061103 -- Line-breaks lost when submitting after pasting text from
  2751. MSIE into Alexander textarea
  2752. * kwq/KWQLineEdit.mm: (QLineEdit::text):
  2753. * kwq/KWQTextEdit.mm: (QTextEdit::text):
  2754. Turn \r\n sequences and standalone \r characters into \n characters on the way
  2755. out of AppKit land and into KHTML land. I didn't try to make this efficient
  2756. for the common case because these are not time-critical functions.
  2757. 2002-10-16 Richard Williamson <rjw@apple.com>
  2758. Fixed a few regressions in drawing of frame resize handle
  2759. in preparation for drawing frame borders and completing
  2760. 2982466.
  2761. * khtml/rendering/render_frames.cpp:
  2762. (RenderFrameSet::userResize):
  2763. * kwq/KWQPainter.mm:
  2764. (QPainter::drawRect):
  2765. * kwq/qt/qscrollview.h:
  2766. * kwq/KWQScrollView.mm:
  2767. (QScrollView::updateContents):
  2768. * kwq/KWQWidget.mm:
  2769. (QWidget::enableFlushDrawing):
  2770. Use static_cast everywhere DOM::NodeImpl is cast to
  2771. subclass.
  2772. * kwq/WebCoreDOMNode.mm:
  2773. (-[WebCoreDOMNode DOM::]):
  2774. (-[WebCoreDOMNodeList DOM::]):
  2775. (-[WebCoreDOMNamedNodeMap DOM::]):
  2776. (-[WebCoreDOMAttr DOM::]):
  2777. 2002-10-16 David Hyatt <hyatt@apple.com>
  2778. Fix crash on pages with bulleted lists. Making sure the list
  2779. item marker doesn't get a layer (which means it has to be
  2780. painted by hand now by the list item object).
  2781. * khtml/rendering/render_box.cpp:
  2782. (RenderBox::setStyle):
  2783. * khtml/rendering/render_list.cpp:
  2784. (RenderListItem::printObject):
  2785. * khtml/rendering/render_list.h:
  2786. * khtml/rendering/render_object.h:
  2787. 2002-10-16 Darin Adler <darin@apple.com>
  2788. - fixed 3072542 -- double "&" in submit button
  2789. * khtml/rendering/render_form.cpp: (RenderSubmitButton::rawText):
  2790. Don't double the "&" character, not needed for KWQ.
  2791. 2002-10-16 David Hyatt <hyatt@apple.com>
  2792. When render objects were being dynamically wrapped in anonymous
  2793. blocks, the layer parenting connection was being broken without
  2794. being reconnected when the wrapping finished. This patch
  2795. shifts the layer connection into the functions that are also
  2796. called in the dynamic case.
  2797. With this fix, all objects on mrskin finally show up. Yeehah.
  2798. brainjar.com's brain is back too.
  2799. This patch also stops treating images as inline if they are
  2800. using abs/fixed positioning, since according to the CSS spec,
  2801. abs/fixed positioned elements should be treated as block-level
  2802. content.
  2803. * khtml/rendering/render_container.cpp:
  2804. (RenderContainer::addChild):
  2805. (RenderContainer::appendChildNode):
  2806. (RenderContainer::insertChildNode):
  2807. * khtml/rendering/render_image.cpp:
  2808. (RenderImage::setStyle):
  2809. 2002-10-16 Darin Adler <darin@apple.com>
  2810. - fixed 3045570 -- can't select a printer at inkfinder.com
  2811. * khtml/khtml_part.cpp: (KHTMLPart::processObjectRequest):
  2812. Call the new openURL for the case where we are reusing a part.
  2813. We do this backwards from how KHTML does, so it's twisted.
  2814. * kwq/KWQKHTMLPartImpl.h: Add openURL.
  2815. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::openURL):
  2816. Tell the bridge to load the URL.
  2817. * kwq/mac-encodings.txt: Tweak Korean encoding names.
  2818. 2002-10-16 David Hyatt <hyatt@apple.com>
  2819. A very substantial change. Absolute/fixed positioned elements that
  2820. are NOT renderflows were not getting layers constructed for them.
  2821. They do now.
  2822. Also, floats now have layers constructed for them. This allows
  2823. printSpecialObjects to be completely eliminated, enables smarter
  2824. damge rect intersection testing for faster painting, and fixes
  2825. regressions on sites like www.demian5.com.
  2826. * khtml/rendering/render_box.cpp:
  2827. (RenderBox::setStyle):
  2828. * khtml/rendering/render_flow.cpp:
  2829. (RenderFlow::printObject):
  2830. (RenderFlow::addOverHangingFloats):
  2831. (RenderFlow::printTree):
  2832. * khtml/rendering/render_flow.h:
  2833. * khtml/rendering/render_layer.cpp:
  2834. (RenderLayer::constructZTree):
  2835. * khtml/rendering/render_root.cpp:
  2836. (RenderRoot::printObject):
  2837. * khtml/rendering/render_table.cpp:
  2838. (RenderTable::print):
  2839. 2002-10-16 Richard Williamson <rjw@apple.com>
  2840. Removed bogus code.
  2841. * kwq/KWQKHistoryProvider.mm:
  2842. 2002-10-15 Richard Williamson <rjw@apple.com>
  2843. * kwq/WebCoreBridge.mm:
  2844. (attributedString):
  2845. Don't convert element unless it has a renderer.
  2846. * kwq/WebCoreDOMNode.mm:
  2847. (-[WebCoreDOMAttr DOM::]):
  2848. (-[WebCoreDOMAttr name]):
  2849. (-[WebCoreDOMAttr specified]):
  2850. (-[WebCoreDOMAttr value]):
  2851. (-[WebCoreDOMAttr ownerElement]):
  2852. (-[WebCoreDOMElement tagName]):
  2853. (-[WebCoreDOMElement setAttribute::]):
  2854. (-[WebCoreDOMElement removeAttribute:]):
  2855. (-[WebCoreDOMElement getAttributeNode:]):
  2856. (-[WebCoreDOMElement removeAttributeNode:]):
  2857. (-[WebCoreDOMElement getElementsByTagName:]):
  2858. (-[WebCoreDOMElement getAttributeNS::]):
  2859. (-[WebCoreDOMElement setAttributeNS:::]):
  2860. (-[WebCoreDOMCharacterData data]):
  2861. (-[WebCoreDOMCharacterData setData:]):
  2862. (-[WebCoreDOMCharacterData length]):
  2863. (-[WebCoreDOMCharacterData substringData::]):
  2864. (-[WebCoreDOMCharacterData appendData:]):
  2865. (-[WebCoreDOMCharacterData insertData::]):
  2866. (-[WebCoreDOMCharacterData deleteData::]):
  2867. (-[WebCoreDOMText splitText:]):
  2868. (-[WebCoreDOMProcessingInstruction data]):
  2869. (-[WebCoreDOMProcessingInstruction setData:]):
  2870. * kwq/WebCoreDOMPrivate.h:
  2871. API cleanup.
  2872. 2002-10-15 David Hyatt <hyatt@apple.com>
  2873. More work on making blocks correctly compute their maximal
  2874. positive and negative margins. Adding code to ensure
  2875. that floats and absolute/fixed positioned elements know
  2876. not to collapse with children or with themselves. Also adding
  2877. code to teach empty blocks that they can collapse their own
  2878. margins together.
  2879. * khtml/rendering/render_flow.cpp:
  2880. (RenderFlow::layout):
  2881. (RenderFlow::layoutBlockChildren):
  2882. 2002-10-15 Darin Adler <darin@apple.com>
  2883. WebCore support for using referrer even in loads that are not initiated
  2884. by WebCore itself.
  2885. * kwq/KWQKHTMLPartBrowserExtension.mm:
  2886. (KHTMLPartBrowserExtension::createNewWindow): Don't pass a referrer.
  2887. We get the referrer from the part.
  2888. * kwq/KWQKHTMLPartImpl.h: Add a new referrer method that works on the
  2889. part, and remove the old one that got it from the URL arguments.
  2890. * kwq/KWQKHTMLPartImpl.mm:
  2891. (KWQKHTMLPartImpl::bridgeForFrameName): Don't pass a referrer when
  2892. creating a new window.
  2893. (KWQKHTMLPartImpl::openURLRequest): Don't pass a referrer when doing a load.
  2894. (KWQKHTMLPartImpl::urlSelected): Don't pass a referrer when doing a load.
  2895. (KWQKHTMLPartImpl::createPart): Don't pass a referrer when creating a child
  2896. frame for this window.
  2897. (KWQKHTMLPartImpl::submitForm): Don't pass a referrer when doing a load.
  2898. (KWQKHTMLPartImpl::referrer): Added.
  2899. * kwq/KWQLoaderImpl.mm: (KWQServeRequest): Don't pass a referrer when starting
  2900. a load.
  2901. * kwq/WebCoreBridge.h: Add referrer method. Remove referrer parameter from
  2902. many other methods.
  2903. * kwq/WebCoreBridge.mm: (-[WebCoreBridge referrer]): Added.
  2904. 2002-10-15 Darin Adler <darin@apple.com>
  2905. - fixed 3021713 -- text selection background obliterates descenders
  2906. (in www.theregister.co.uk articles)
  2907. - fixed 3038207 -- Selected link text doesn't draw its link underline
  2908. * khtml/rendering/render_text.cpp:
  2909. (TextSlave::printSelection): Don't draw text at all, just draw a selection background.
  2910. (RenderText::printObject): Draw in two passes. Draw the selection background in the
  2911. first pass, and the text in the second pass. That way pieces of the background won't
  2912. cover any other text or adornments, like underlines.
  2913. 2002-10-15 Darin Adler <darin@apple.com>
  2914. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::urlSelected):
  2915. Move the special case of a different anchor within the same
  2916. page into WebKit from here.
  2917. * kwq/kdecore/kurl.h: Mark urlcmp as a friend.
  2918. * kwq/KWQKURL.mm: (urlcmp): Implement the ignoreRef feature, which
  2919. is needed to make the KHTMLPart::openURL function work right.
  2920. * kwq/WebCoreBridge.h: Removed addBackForwardItemWithURL:anchor:
  2921. and added URL method.
  2922. * kwq/WebCoreBridge.mm: (-[WebCoreBridge URL]): Added.
  2923. 2002-10-15 Darin Adler <darin@apple.com>
  2924. - fixed 3074558 -- frames multiply at: http://www.iarsn.com/
  2925. The key was to make the name attribute work properly.
  2926. * khtml/ecma/kjs_window.cpp:
  2927. (Window::get): Enable the "name" attribute.
  2928. (Window::put): Enable the "name" attribute, but don't do the
  2929. conversion to an 8-bit string -- leave it as a QString.
  2930. * kwq/WebCoreBridge.h: Add setName/name methods.
  2931. * kwq/WebCoreBridge.mm:
  2932. (-[WebCoreBridge setName:]): Added. Calls part->setName().
  2933. (-[WebCoreBridge name]): Added. Calls part->name().
  2934. * kwq/kparts/part.h: Added setName/name to ReadOnlyPart.
  2935. * kwq/KWQKHTMLPartImpl.mm: Remove old bogusish comment.
  2936. 2002-10-15 Richard Williamson <rjw@apple.com>
  2937. Added text color to attributed string conversion.
  2938. * kwq/WebCoreBridge.mm:
  2939. (attributedString):
  2940. 2002-10-15 Richard Williamson <rjw@apple.com>
  2941. Added API to get attributed string from bridge.
  2942. Added API to get selection in terms of the DOM API
  2943. from the bridge.
  2944. * kwq/WebCoreBridge.h:
  2945. * kwq/WebCoreBridge.mm:
  2946. (attributedString):
  2947. (-[WebCoreBridge selectionStart]):
  2948. (-[WebCoreBridge selectionStartOffset]):
  2949. (-[WebCoreBridge selectionEnd]):
  2950. (-[WebCoreBridge selectionEndOffset]):
  2951. 2002-10-15 Darin Adler <darin@apple.com>
  2952. - fixed 3054791 -- crash in WebCoreSettings _updateAllViews changing font
  2953. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::~KWQKHTMLPartImpl):
  2954. Pass in the "this" pointer so that the right instance is removed from the
  2955. instances list. Before, we would always remove the first instance from the
  2956. list, leaving the list broken.
  2957. 2002-10-15 Ken Kocienda <kocienda@apple.com>
  2958. Fixed an "unused variable" build breaker. Note that I just
  2959. commented out the code and put a FIXME, as I know this is code
  2960. that David has been banging on a lot. This should be either
  2961. used for real or removed eventually, but I'll leave that for
  2962. Hyatt.
  2963. * khtml/rendering/render_flow.cpp:
  2964. (RenderFlow::layoutBlockChildren):
  2965. 2002-10-14 David Hyatt <hyatt@apple.com>
  2966. More collapsing margin surgery. Working on setting up blocks
  2967. to properly compute their collapsed margins (without actually changing
  2968. the obsolete collapsing behavior yet).
  2969. * khtml/rendering/render_flow.cpp:
  2970. (RenderFlow::RenderFlow):
  2971. (RenderFlow::layout):
  2972. (RenderFlow::layoutBlockChildren):
  2973. * khtml/rendering/render_flow.h:
  2974. 2002-10-14 David Hyatt <hyatt@apple.com>
  2975. Adding helper functions for handling of collapsing margins.
  2976. Not used yet.
  2977. * khtml/rendering/render_object.h:
  2978. 2002-10-14 Darin Adler <darin@apple.com>
  2979. Fixed problems with named colors.
  2980. * kwq/KWQColor.mm: (QColor::setNamedColor): Check named colors before
  2981. hex codes for colors because our hex code parsing is now lenient enough
  2982. that many names qualify.
  2983. 2002-10-14 David Hyatt <hyatt@apple.com>
  2984. Really fixing zeldman.com this time. This disabling stuff
  2985. is complicated! :)
  2986. * khtml/html/html_headimpl.cpp:
  2987. (HTMLLinkElementImpl::parseAttribute):
  2988. (HTMLLinkElementImpl::setStyleSheet):
  2989. (HTMLLinkElementImpl::sheetLoaded):
  2990. 2002-10-14 David Hyatt <hyatt@apple.com>
  2991. Stop the insanity. Make sure that a sheet that is disabled
  2992. while it is still loading is removed from the doc's list
  2993. of pending sheets (for FOUC checks).
  2994. Fixes zeldman.com.
  2995. * khtml/html/html_headimpl.cpp:
  2996. (HTMLLinkElementImpl::parseAttribute):
  2997. 2002-10-14 David Hyatt <hyatt@apple.com>
  2998. Implementing the ability to individually enable/disable
  2999. both preferred and alternate stylesheets. Enabling/disabling
  3000. sheets via the disabled property of the <link> element overrides
  3001. whether or not a sheet happens to be alternate or preferred.
  3002. This new implementation of sheet disabling/enabling was a missing
  3003. piece of our HTML4 compliance, and was used by the Wired
  3004. site to implement its text sizing mechanism.
  3005. * khtml/html/html_headimpl.cpp:
  3006. (HTMLLinkElementImpl::HTMLLinkElementImpl):
  3007. (HTMLLinkElementImpl::parseAttribute):
  3008. (HTMLLinkElementImpl::process):
  3009. * khtml/html/html_headimpl.h:
  3010. * khtml/xml/dom_docimpl.cpp:
  3011. (DocumentImpl::recalcStyleSelector):
  3012. 2002-10-11 Richard Williamson <rjw@apple.com>
  3013. Remove debugging.
  3014. * kwq/WebCoreDOMDocument.mm:
  3015. (+[WebCoreDOMDocument documentWithImpl:DOM::]):
  3016. * kwq/WebCoreDOMNode.mm:
  3017. (-[WebCoreDOMNode lastChild]):
  3018. 2002-10-11 Richard Williamson <rjw@apple.com>
  3019. More DOM/attributed string work. Still need to fix more
  3020. inappropriate casting problems.
  3021. * khtml/dom/dom_node.cpp:
  3022. (Node::lastChild):
  3023. * khtml/xml/dom_nodeimpl.cpp:
  3024. (NodeImpl::lastChild):
  3025. (NodeBaseImpl::lastChild):
  3026. * khtml/xml/dom_nodeimpl.h:
  3027. * kwq/KWQKHTMLPartImpl.cpp:
  3028. (KWQKHTMLPartImpl::selectionStartOffset):
  3029. (KWQKHTMLPartImpl::selectionEndOffset):
  3030. (KWQKHTMLPartImpl::selectionStart):
  3031. (KWQKHTMLPartImpl::selectionEnd):
  3032. * kwq/KWQKHTMLPartImpl.h:
  3033. * kwq/WebCoreBridge.h:
  3034. * kwq/WebCoreBridge.mm:
  3035. (-[WebCoreBridge DOMDocument]):
  3036. (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]):
  3037. (attributedString):
  3038. (-[WebCoreBridge selectedAttributedString]):
  3039. (-[WebCoreBridge attributedStringFrom:startOffset:to:endOffset:]):
  3040. * kwq/WebCoreDOMDocument.mm:
  3041. (-[WebCoreDOMDocumentType DOM::]):
  3042. (-[WebCoreDOMDocumentType name]):
  3043. (-[WebCoreDOMDocumentType entities]):
  3044. (-[WebCoreDOMDocumentType notations]):
  3045. (-[WebCoreDOMDocumentType publicId]):
  3046. (-[WebCoreDOMDocumentType systemId]):
  3047. (-[WebCoreDOMDocumentType internalSubset]):
  3048. (-[WebCoreDOMImplementation DOM::]):
  3049. (-[WebCoreDOMImplementation hasFeature::]):
  3050. (-[WebCoreDOMImplementation createDocument:::]):
  3051. (+[WebCoreDOMDocument documentWithImpl:DOM::]):
  3052. (-[WebCoreDOMDocument DOM::]):
  3053. (-[WebCoreDOMDocument doctype]):
  3054. (-[WebCoreDOMDocument implementation]):
  3055. (-[WebCoreDOMDocument documentElement]):
  3056. (-[WebCoreDOMDocument createElement:]):
  3057. (-[WebCoreDOMDocument createElementNS::]):
  3058. (-[WebCoreDOMDocument createDocumentFragment]):
  3059. (-[WebCoreDOMDocument createTextNode:]):
  3060. (-[WebCoreDOMDocument createComment:]):
  3061. (-[WebCoreDOMDocument createCDATASection:]):
  3062. (-[WebCoreDOMDocument createProcessingInstruction::]):
  3063. (-[WebCoreDOMDocument createAttribute:]):
  3064. (-[WebCoreDOMDocument createAttributeNS::]):
  3065. (-[WebCoreDOMDocument createEntityReference:]):
  3066. (-[WebCoreDOMDocument getElementById:]):
  3067. (-[WebCoreDOMDocument getElementsByTagName:]):
  3068. (-[WebCoreDOMDocument getElementsByTagNameNS::]):
  3069. (-[WebCoreDOMDocument importNode::]):
  3070. * kwq/WebCoreDOMNode.mm:
  3071. (-[WebCoreDOMNode initWithImpl:DOM::]):
  3072. (-[WebCoreDOMNode firstChild]):
  3073. (-[WebCoreDOMNode lastChild]):
  3074. * kwq/WebCoreDOMPrivate.h:
  3075. * kwq/WebCoreBridge.mm:
  3076. (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]):
  3077. (recursive_toHTML):
  3078. (attributedString):
  3079. 2002-10-11 David Hyatt <hyatt@apple.com>
  3080. Fix for 3058829, assertion caused by table cell with
  3081. incorrect display type. Implemented a quirk that forces
  3082. <td>s of display: block to construct table cells as
  3083. rendering objects.
  3084. * khtml/rendering/render_object.cpp:
  3085. (RenderObject::createObject):
  3086. === Alexander-27 ===
  3087. 2002-10-10 Darin Adler <darin@apple.com>
  3088. - fixed 3047782 -- Alexander rejects some color strings that other browsers accept
  3089. * khtml/misc/helper.cpp: (khtml::setNamedColor): Put some of the code from this
  3090. level that tries to accomodate bad colors in #if !APPLE_CHANGES, since we do most
  3091. of the smarts in KWQ.
  3092. * kwq/KWQColor.mm:
  3093. (hex2int): Tolerate non-hex digits, treating them as 0.
  3094. (decodeColorFromHexColorString): Trim any number of leading # characters, and trailing
  3095. " and ' characters. Handle strings of 4, 5, 7, 8, 10, and 11 hex digits, along with
  3096. the existing 3, 6, 9, and 12.
  3097. 2002-10-10 David Hyatt <hyatt@apple.com>
  3098. Fix a subtle bug with layers. When a parent is sorted with its
  3099. children the parent's zindex must be treated as 0, so that
  3100. negative children draw behind the layer's content and positive
  3101. children (or auto children) draw in front of the layer's content.
  3102. This fix makes chrysler.com work again (and doubtless many other
  3103. messed up DHTML sites).
  3104. * khtml/rendering/render_layer.cpp:
  3105. (RenderLayer::constructZTree):
  3106. (RenderLayer::RenderZTreeNode::constructLayerList):
  3107. 2002-10-09 Richard Williamson <rjw@apple.com>
  3108. Implemented string conversion functions.
  3109. * kwq/WebCoreDOMDocument.mm:
  3110. (domStringToNSString):
  3111. (NSStringToDOMString):
  3112. 2002-10-09 Darin Adler <darin@apple.com>
  3113. - fixed 3069264 -- REGRESSION: windows created for links with
  3114. target=blank start out hidden (window menu only)
  3115. * kwq/WebCoreBridge.h: Removed openNewWindowWithURL:referrer:frameName: and
  3116. added createWindowWithURL:referrer:frameName: and showWindow.
  3117. * kwq/KWQKHTMLPartBrowserExtension.mm:
  3118. (KHTMLPartBrowserExtension::createNewWindow): Call createWindowWithURL,
  3119. and then showWindow after the window is set up. Also change the code that
  3120. flips coordinates to always use the height of the first screen instead of
  3121. using the height of the screen the window is on, which sounds right, but
  3122. is wrong.
  3123. * kwq/KWQKHTMLPartImpl.mm:
  3124. (KWQKHTMLPartImpl::bridgeForFrameName): Call createWindowWithURL and then
  3125. showWindow in the case where we create a window.
  3126. (KWQKHTMLPartImpl::urlSelected): Remove unused command-click code. The real
  3127. command-click code is in the browser now.
  3128. 2002-10-09 Darin Adler <darin@apple.com>
  3129. - fixed 3069749 -- crash in QString during third run of cvs-base
  3130. * kwq/KWQString.mm:
  3131. (checkNodeAllocationPages): Added function to use for debugging.
  3132. (_allocateNode): Clear the next pointer after removing a page from the free
  3133. node list so that the free node list doesn't point at part of the used node list.
  3134. (freeHandle): Change the code around so that the code to add the node to the
  3135. free list works even in the case where this was the top from the used list.
  3136. The old code would half-remove the node from the used list and not add it to
  3137. the free list at all.
  3138. 2002-10-09 Darin Adler <darin@apple.com>
  3139. * WebCore.pbproj/project.pbxproj: Project Builder wanted to set encodings
  3140. for new files. Maybe Richard is not using the new Project Builder on all
  3141. his machines?
  3142. * kwq/KWQString.mm: (_allocateNode): Fix typo in comment.
  3143. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::bridgeForFrameName): Tweak.
  3144. 2002-10-09 David Hyatt <hyatt@apple.com>
  3145. This was an unintentional checkin. backing out.
  3146. * khtml/xml/dom_elementimpl.cpp:
  3147. (NamedAttrMapImpl::removeNamedItem):
  3148. 2002-10-08 Richard Williamson <rjw@apple.com>
  3149. Added bridge method set the selection.
  3150. * kwq/WebCoreBridge.h:
  3151. * kwq/WebCoreBridge.mm:
  3152. (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]):
  3153. 2002-10-08 Richard Williamson <rjw@apple.com>
  3154. Added bridge method to get the DOM document.
  3155. * kwq/WebCoreBridge.h:
  3156. * kwq/WebCoreBridge.mm:
  3157. (-[WebCoreBridge DOMDocument]):
  3158. * kwq/WebCoreDOM.h:
  3159. 2002-10-08 Richard Williamson <rjw@apple.com>
  3160. More DOM implementation.
  3161. * khtml/dom/dom_text.h:
  3162. * khtml/dom/dom_xml.h:
  3163. * khtml/xml/dom_textimpl.h:
  3164. * khtml/xml/dom_xmlimpl.h:
  3165. * kwq/WebCoreDOM.h:
  3166. * kwq/WebCoreDOMNode.mm:
  3167. (DOM::CharacterDataImpl::createInstance):
  3168. (DOM::TextImpl::createInstance):
  3169. (DOM::ProcessingInstructionImpl::createInstance):
  3170. (-[WebCoreDOMCharacterData data]):
  3171. (-[WebCoreDOMCharacterData setData:]):
  3172. (-[WebCoreDOMCharacterData length]):
  3173. (-[WebCoreDOMCharacterData substringData::]):
  3174. (-[WebCoreDOMCharacterData appendData:]):
  3175. (-[WebCoreDOMCharacterData insertData::]):
  3176. (-[WebCoreDOMCharacterData deleteData::]):
  3177. (-[WebCoreDOMText splitText:]):
  3178. (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
  3179. (-[WebCoreDOMProcessingInstruction data]):
  3180. (-[WebCoreDOMProcessingInstruction setData:]):
  3181. * kwq/WebCoreDOMPrivate.h:
  3182. * kwq/WebDOMElement.h:
  3183. 2002-10-08 Richard Williamson <rjw@apple.com>
  3184. Implemented WebCoreDOMElement.
  3185. Fixed extra deref of impl in subclasses
  3186. of WebCoreDOMNode.
  3187. * khtml/dom/dom_element.h:
  3188. * khtml/dom/dom_node.h:
  3189. * khtml/xml/dom_elementimpl.h:
  3190. * khtml/xml/dom_nodeimpl.h:
  3191. * kwq/WebCoreDOMDocument.mm:
  3192. (-[WebCoreDOMDocument initWithImpl:DOM::]):
  3193. * kwq/WebCoreDOMNode.mm:
  3194. (DOM::NodeListImpl::createInstance):
  3195. (DOM::NamedNodeMapImpl::createInstance):
  3196. (DOM::AttrImpl::createInstance):
  3197. (DOM::ElementImpl::createInstance):
  3198. (-[WebCoreDOMNodeList length]):
  3199. (-[WebCoreDOMNodeList item:]):
  3200. (-[WebCoreDOMAttr initWithImpl:DOM::]):
  3201. (+[WebCoreDOMDocumentFragment documentFragmentWithImpl:DOM::]):
  3202. (-[WebCoreDOMElement tagName]):
  3203. (-[WebCoreDOMElement setAttribute::]):
  3204. (-[WebCoreDOMElement removeAttribute:]):
  3205. (-[WebCoreDOMElement getAttributeNode:]):
  3206. (-[WebCoreDOMElement removeAttributeNode:]):
  3207. (-[WebCoreDOMElement getElementsByTagName:]):
  3208. (-[WebCoreDOMElement getAttributeNS::]):
  3209. (-[WebCoreDOMElement setAttributeNS:::]):
  3210. * kwq/WebDOMDocument.h:
  3211. * kwq/WebDOMElement.h:
  3212. 2002-10-08 Richard Williamson <rjw@apple.com>
  3213. First cut at ObjC stubs for DOM API. Finished the
  3214. main classes. Need to finish
  3215. WebDOMElement, WebDOMElement, WebDOMElement,
  3216. WebDOMCDATASection, WebDOMText, WebDOMComment,
  3217. WebDOMCharacterData and
  3218. * WebCore.pbproj/project.pbxproj:
  3219. * khtml/dom/dom_doc.h:
  3220. * khtml/dom/dom_element.h:
  3221. * khtml/dom/dom_node.h:
  3222. * khtml/xml/dom_docimpl.h:
  3223. * khtml/xml/dom_elementimpl.h:
  3224. * khtml/xml/dom_nodeimpl.h:
  3225. * kwq/WebCoreDOM.h: Added.
  3226. * kwq/WebCoreDOMDocument.mm: Added.
  3227. (DOM::DOMImplementationImpl::createInstance):
  3228. (DOM::DocumentTypeImpl::createInstance):
  3229. (DOM::DocumentImpl::createInstance):
  3230. (domStringToNSString):
  3231. (NSStringToDOMString):
  3232. (+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
  3233. (-[WebCoreDOMDocumentType initWithImpl:DOM::]):
  3234. (-[WebCoreDOMDocumentType dealloc]):
  3235. (-[WebCoreDOMDocumentType DOM::]):
  3236. (-[WebCoreDOMDocumentType name]):
  3237. (-[WebCoreDOMDocumentType entities]):
  3238. (-[WebCoreDOMDocumentType notations]):
  3239. (-[WebCoreDOMDocumentType publicId]):
  3240. (-[WebCoreDOMDocumentType systemId]):
  3241. (-[WebCoreDOMDocumentType internalSubset]):
  3242. (+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
  3243. (-[WebCoreDOMImplementation initWithImpl:DOM::]):
  3244. (-[WebCoreDOMImplementation dealloc]):
  3245. (-[WebCoreDOMImplementation DOM::]):
  3246. (-[WebCoreDOMImplementation hasFeature::]):
  3247. (-[WebCoreDOMImplementation createDocument:::]):
  3248. (+[WebCoreDOMDocument documentWithImpl:DOM::]):
  3249. (-[WebCoreDOMDocument initWithImpl:DOM::]):
  3250. (-[WebCoreDOMDocument dealloc]):
  3251. (-[WebCoreDOMDocument DOM::]):
  3252. (-[WebCoreDOMDocument doctype]):
  3253. (-[WebCoreDOMDocument implementation]):
  3254. (-[WebCoreDOMDocument documentElement]):
  3255. (-[WebCoreDOMDocument createElement:]):
  3256. (-[WebCoreDOMDocument createElementNS::]):
  3257. (-[WebCoreDOMDocument createDocumentFragment]):
  3258. (-[WebCoreDOMDocument createTextNode:]):
  3259. (-[WebCoreDOMDocument createComment:]):
  3260. (-[WebCoreDOMDocument createCDATASection:]):
  3261. (-[WebCoreDOMDocument createProcessingInstruction::]):
  3262. (-[WebCoreDOMDocument createAttribute:]):
  3263. (-[WebCoreDOMDocument createAttributeNS::]):
  3264. (-[WebCoreDOMDocument createEntityReference:]):
  3265. (-[WebCoreDOMDocument getElementById:]):
  3266. (-[WebCoreDOMDocument getElementsByTagName:]):
  3267. (-[WebCoreDOMDocument getElementsByTagNameNS::]):
  3268. (-[WebCoreDOMDocument importNode::]):
  3269. * kwq/WebCoreDOMNode.mm: Added.
  3270. (DOM::NamedNodeMapImpl::createInstance):
  3271. (DOM::AttrImpl::createInstance):
  3272. (+[WebCoreDOMNode nodeWithImpl:DOM::]):
  3273. (-[WebCoreDOMNode initWithImpl:DOM::]):
  3274. (-[WebCoreDOMNode DOM::]):
  3275. (-[WebCoreDOMNode dealloc]):
  3276. (-[WebCoreDOMNode nodeName]):
  3277. (-[WebCoreDOMNode nodeValue]):
  3278. (-[WebCoreDOMNode setNodeValue:]):
  3279. (-[WebCoreDOMNode nodeType]):
  3280. (-[WebCoreDOMNode parentNode]):
  3281. (-[WebCoreDOMNode firstChild]):
  3282. (-[WebCoreDOMNode lastChild]):
  3283. (-[WebCoreDOMNode previousSibling]):
  3284. (-[WebCoreDOMNode nextSibling]):
  3285. (-[WebCoreDOMNode ownerDocument]):
  3286. (-[WebCoreDOMNode insert:before:]):
  3287. (-[WebCoreDOMNode replace:child:]):
  3288. (-[WebCoreDOMNode removeChild:]):
  3289. (-[WebCoreDOMNode hasChildNodes]):
  3290. (-[WebCoreDOMNode cloneNode:]):
  3291. (-[WebCoreDOMNode normalize]):
  3292. (-[WebCoreDOMNode isSupported::]):
  3293. (-[WebCoreDOMNode namespaceURI]):
  3294. (-[WebCoreDOMNode prefix]):
  3295. (-[WebCoreDOMNode setPrefix:]):
  3296. (-[WebCoreDOMNode localName]):
  3297. (+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
  3298. (-[WebCoreDOMNodeList initWithImpl:DOM::]):
  3299. (-[WebCoreDOMNodeList DOM::]):
  3300. (-[WebCoreDOMNodeList dealloc]):
  3301. (+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
  3302. (-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
  3303. (-[WebCoreDOMNamedNodeMap DOM::]):
  3304. (-[WebCoreDOMNamedNodeMap dealloc]):
  3305. (-[WebCoreDOMNamedNodeMap length]):
  3306. (-[WebCoreDOMNamedNodeMap getNamedItem:]):
  3307. (-[WebCoreDOMNamedNodeMap setNamedItem:]):
  3308. (+[WebCoreDOMAttr attrWithImpl:DOM::]):
  3309. (-[WebCoreDOMAttr initWithImpl:DOM::]):
  3310. (-[WebCoreDOMAttr DOM::]):
  3311. (-[WebCoreDOMAttr dealloc]):
  3312. (-[WebCoreDOMAttr name]):
  3313. (-[WebCoreDOMAttr specified]):
  3314. (-[WebCoreDOMAttr value]):
  3315. (-[WebCoreDOMAttr ownerElement]):
  3316. (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
  3317. (-[WebCoreDOMCDATASection initWithImpl:DOM::]):
  3318. (-[WebCoreDOMCDATASection DOM::]):
  3319. (-[WebCoreDOMCDATASection dealloc]):
  3320. * kwq/WebCoreDOMPrivate.h: Added.
  3321. * kwq/WebDOMDocument.h: Added.
  3322. * kwq/WebDOMElement.h: Added.
  3323. * kwq/WebDOMNode.h: Added.
  3324. 2002-10-09 David Hyatt <hyatt@apple.com>
  3325. Fix a bug in my event handling code for layers. This makes
  3326. the links on ESPN.com work again (bug 3051636). Yay!
  3327. * khtml/rendering/render_layer.cpp:
  3328. (RenderLayer::constructZTree):
  3329. * khtml/xml/dom_elementimpl.cpp:
  3330. (NamedAttrMapImpl::removeNamedItem):
  3331. * kwq/qt/qrect.h:
  3332. 2002-10-07 Darin Adler <darin@apple.com>
  3333. - fixed 3037353 -- align="middle" elements not horizontally centered
  3334. * khtml/html/html_blockimpl.cpp: (HTMLDivElementImpl::parseAttribute):
  3335. * khtml/html/html_tableimpl.cpp: (HTMLTablePartElementImpl::parseAttribute):
  3336. Handle "middle" same as center in these two places.
  3337. 2002-10-07 Darin Adler <darin@apple.com>
  3338. WebCore part of implementation of multipart forms posting.
  3339. * kwq/WebCoreBridge.h: Add a contentType parameter to the bridge's
  3340. [postWithURL:referrer:data:] method.
  3341. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::submitForm):
  3342. Extract the content type from the args, and pass it along to the bridge.
  3343. 2002-10-07 Darin Adler <darin@apple.com>
  3344. - fixed 3011025 -- Page up/down is not working when text area has focus
  3345. * kwq/KWQTextArea.mm:
  3346. (-[KWQTextArea needsPanelToBecomeKey]): Return YES so we are considered a
  3347. valid key view even when in normal tabbing mode. This fixes a problem with
  3348. tabbing backwards into a text area.
  3349. (-[KWQTextAreaTextView scrollPageUp:]): Added. Passes a scrollPageUp:
  3350. selector along the responder chain if we are already scrolled to the top.
  3351. (-[KWQTextAreaTextView scrollPageDown:]): Ditto.
  3352. * kwq/KWQNSTextField.mm: Remove unnecessary overrides of textDidEndEditing.
  3353. Turns out the real fix was to override display to do nothing as a workaround
  3354. for bug 2753974.
  3355. 2002-10-07 Richard Williamson <rjw@apple.com>
  3356. Added response to WebCore's CachedObject. This allows us to correctly
  3357. emulate the WebResourceLoadDelegate API when 're'loading an item
  3358. from the WebCore cache.
  3359. * khtml/misc/loader.cpp:
  3360. (CachedObject::~CachedObject):
  3361. (CachedObject::setResponse):
  3362. (Loader::receivedResponse):
  3363. * khtml/misc/loader.h:
  3364. * kwq/KWQLoaderImpl.h:
  3365. * kwq/KWQLoaderImpl.mm:
  3366. (-[WebCoreResourceLoader receivedResponse:]):
  3367. (KWQCheckCacheObjectStatus):
  3368. (KWQRetainResponse):
  3369. (KWQReleaseResponse):
  3370. * kwq/WebCoreBridge.h:
  3371. * kwq/WebCoreResourceLoader.h:
  3372. 2002-10-06 Darin Adler <darin@apple.com>
  3373. - fixed 3046737 -- infinite loop in font name matching code on some pages
  3374. * kwq/KWQString.mm: (QString::replace): Removed the incorrect early exit if
  3375. the passed in string was the empty string.
  3376. 2002-10-04 Darin Adler <darin@apple.com>
  3377. * kwq/KWQKURL.mm: (KURL::parse): Fix code that adds "//" to file URLs.
  3378. The code was including the extra slashes as part of the path, which they are not.
  3379. Verified with the tests in the Tests directory.
  3380. 2002-10-03 Darin Adler <darin@apple.com>
  3381. - fixed 3065730 -- Crash loading "My T-Mobile" page (in khtml::Decoder::decode)
  3382. * khtml/misc/decoder.cpp: (Decoder::decode): Fixed a mistake that would cause
  3383. the loop to run off the end of the buffer, introduced back on 2002-08-30.
  3384. 2002-10-03 Darin Adler <darin@apple.com>
  3385. Add API to execute JavaScript.
  3386. * kwq/WebCoreBridge.h: Add method.
  3387. * kwq/WebCoreBridge.mm:
  3388. (-[WebCoreBridge executeJavaScriptFromString:]): Call through to
  3389. KHTML. But only if the document is not nil. We need to figure out
  3390. what to do in the case where the document is nil.
  3391. === Alexander-26 ===
  3392. 2002-10-02 Darin Adler <darin@apple.com>
  3393. Moved "overURL" handling out of WebCore into WebKit and Alex.
  3394. Also separated the two levels of the "element dictionary" so they
  3395. don't rely on having the same keys.
  3396. * khtml/khtml_part.h: Revert the APPLE_CHANGES to overURL.
  3397. * khtml/khtml_part.cpp:
  3398. (KHTMLPart::overURL): Removed the APPLE_CHANGES and just ifdef'd out
  3399. the whole thing for our version.
  3400. (KHTMLPart::khtmlMouseMoveEvent): Get rid of the APPLE_CHANGES and
  3401. don't do any of the status bar setup.
  3402. * kwq/KWQKHTMLPartImpl.h: Remove overURL.
  3403. * kwq/KWQKHTMLPartImpl.mm: Ditto.
  3404. * kwq/WebCoreBridge.h: Change keys so they don't match the WebKit ones so
  3405. we don't accidentally rely on that. Add WebCoreElementLinkTarget.
  3406. * kwq/WebCoreBridge.mm: (-[WebCoreBridge elementAtPoint:]): Add code to
  3407. set up WebCoreElementLinkTarget.
  3408. 2002-10-01 Darin Adler <darin@apple.com>
  3409. - fixed 3055076 -- window.scroll does a window.scrollby, not a window.scrollto
  3410. * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): Moved a case so that the
  3411. scroll code would scroll to, not by.
  3412. 2002-10-01 David Hyatt <hyatt@apple.com>
  3413. Fix the case sensitivity problem with attribute names
  3414. in HTML. They are now lower-cased when being queried
  3415. from the DOM. Bug 3058145.
  3416. * khtml/xml/dom_docimpl.cpp:
  3417. (DocumentImpl::attrName):
  3418. 2002-10-01 David Hyatt <hyatt@apple.com>
  3419. Make sure to keep the fix checked in for 1.18. That fix is
  3420. good.
  3421. * khtml/rendering/render_table.cpp:
  3422. (RenderTable::addColInfo):
  3423. 2002-10-01 David Hyatt <hyatt@apple.com>
  3424. Backing out change to render_table.cpp. The original logic
  3425. (in version 1.16) is correct.
  3426. * khtml/rendering/render_table.cpp:
  3427. (RenderTable::addColInfo):
  3428. 2002-09-30 Darin Adler <darin@apple.com>
  3429. * kwq/qt/qobject.h: Add the destroyed signal.
  3430. * kwq/KWQObject.mm:
  3431. (QObject::connect): Remove names of parentDestroyed and slotWidgetDestructed
  3432. from the list of "slots OK to fail to connect without complaining".
  3433. (QObject::QObject): Initialize the destroyed signal.
  3434. * kwq/qt/qguardedptr.h:
  3435. * kwq/KWQGuardedPtr.mm:
  3436. * kwq/KWQSignal.h:
  3437. * kwq/KWQSlot.h:
  3438. Rearrange includes so qobject.h can include KWQSignal.h.
  3439. * kwq/KWQSignal.mm: Tweak.
  3440. * kwq/KWQSlot.mm: Added support for the parentDestroyed slot in KJS::WindowQObject
  3441. and the slotWidgetDestructed slot in khtml::RenderWidget.
  3442. 2002-09-28 Darin Adler <darin@apple.com>
  3443. Turn -Werror back on. There must have been some miscommunication
  3444. about the fat build; this was supposed to have been on.
  3445. * WebCore.pbproj/project.pbxproj: Add -Werror back.
  3446. * kwq/WebCoreHistory.h: Add missing method to fix warning.
  3447. * kwq/KWQKHistoryProvider.mm: Tweak.
  3448. 2002-09-28 Darin Adler <darin@apple.com>
  3449. Give the next fat build a better chance of working with the
  3450. new gcc without turning -Werror off.
  3451. * khtml/css/cssparser.cpp: Use a macro to disable inlining.
  3452. * khtml/html/htmltokenizer.cpp: Ditto.
  3453. * khtml/misc/htmlhashes.cpp: Ditto.
  3454. 2002-09-28 Darin Adler <darin@apple.com>
  3455. - fixed 3022441 -- scroll bar is missing in window created with window.open
  3456. * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): The checks for extra
  3457. parameters to window.open were using isNull, which checks for a null ValueImp
  3458. pointer, not an "Undefined".
  3459. 2002-09-28 Darin Adler <darin@apple.com>
  3460. - fixed 2886111 -- changing font or size preference causes open
  3461. windows to redraw incorrectly
  3462. * khtml/rendering/render_table.cpp: (RenderTable::addColInfo):
  3463. Fix logic about when a recalc of the minWidth and maxWidth is needed.
  3464. Fixed bug where changing the text size multiplier would cause the
  3465. window to redraw twice -- once with the text size changed, and then
  3466. later with the layout changed.
  3467. * khtml/khtmlview.h: Added unscheduleRelayout.
  3468. * khtml/khtmlview.cpp: (KHTMLView::unscheduleRelayout): Added.
  3469. * kwq/KWQKHTMLPartImpl.h: Added forceLayout.
  3470. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::forceLayout): Call
  3471. both layout and unscheduleRelayout.
  3472. * kwq/WebCoreBridge.h: Add setNeedsLayout.
  3473. * kwq/WebCoreBridge.mm:
  3474. (-[WebCoreBridge forceLayout]): Call KWQKHTMLPartImpl::forceLayout.
  3475. (-[WebCoreBridge setTextSizeMultiplier:]): Call forceLayout.
  3476. 2002-09-27 Darin Adler <darin@apple.com>
  3477. * khtml/rendering/render_table.cpp: (RenderTable::addColInfo):
  3478. Fixed a > that should have been a < that prevented tables from
  3479. changing sizes when table minimum widths changed.
  3480. 2002-09-27 Darin Adler <darin@apple.com>
  3481. - fixed 2937198 -- Checkboxes and radiobuttons don't align with title control in forms
  3482. * kwq/qt/qcheckbox.h: Add baselinePosition override.
  3483. * kwq/KWQCheckBox.mm: Tweak the size constants.
  3484. (QCheckBox::baselinePosition): Implement this. Line up baseline two pixels
  3485. above the bottom, not at the bottom.
  3486. * kwq/qt/qradiobutton.h: Add baselinePosition override.
  3487. * kwq/KWQRadioButton.mm: Tweak the size constants.
  3488. (QRadioButton::baselinePosition): Implement this. Line up baseline two pixels
  3489. above the bottom, not at the bottom.
  3490. 2002-09-27 Chris Blumenberg <cblu@apple.com>
  3491. WebPlugin clean up.
  3492. * kwq/KWQKConfigBase.mm:
  3493. (KConfig::readEntry):
  3494. * kwq/WebCoreViewFactory.h:
  3495. 2002-09-27 Richard Williamson <rjw@apple.com>
  3496. Fixed 3059237: Visited links do not appear in a different color on yahoo.com
  3497. Fixed 3051288: visited links are not colored in local files
  3498. Fixed 3060158: REGRESSION: iframes added to session history
  3499. Always use the canonical originally requested URL as the URL entered in history.
  3500. * khtml/khtml_part.cpp:
  3501. (KHTMLPart::begin):
  3502. * kwq/KWQKHTMLPartImpl.h:
  3503. * kwq/KWQKHTMLPartImpl.mm:
  3504. (KWQKHTMLPartImpl::requestedURLString):
  3505. * kwq/KWQKHistoryProvider.mm:
  3506. * kwq/WebCoreBridge.h:
  3507. * kwq/WebCoreHistory.h:
  3508. 2002-09-28 David Hyatt <hyatt@apple.com>
  3509. Fix for 3058119, doctype of HTML docs should be null.
  3510. * khtml/dom/dom_doc.cpp:
  3511. 2002-09-28 David Hyatt <hyatt@apple.com>
  3512. DOM compliance. Fix for 3058100, hasFeature of HTML returns
  3513. false. Oops.
  3514. * khtml/xml/dom_docimpl.cpp:
  3515. (DOMImplementationImpl::hasFeature):
  3516. 2002-09-27 Darin Adler <darin@apple.com>
  3517. - fixed 3060487 -- error connecting member slot to signal (KWQObject)
  3518. * kwq/KWQObject.mm: (QObject::connect): Add slotShowDocument to the list of slots that
  3519. we don't care about hooking up.
  3520. 2002-09-26 Darin Adler <darin@apple.com>
  3521. - fixed 2953256 -- JavaScript window.moveTo() and window.moveBy() methods do not work
  3522. * kwq/KWQWindowWidget.mm: (KWQWindowWidget::frameGeometry): Fix calculation.
  3523. It was returning the bottom left coordinate instead of the top left.
  3524. 2002-09-26 Darin Adler <darin@apple.com>
  3525. - fixed 3060459 -- REGRESSION: crash leaving page that sets cookie in JavaScript
  3526. unload handler
  3527. * khtml/khtml_part.cpp: (KHTMLPart::begin): Call updatePolicyBaseURL to set
  3528. the "policy base URL" on the documents so the cookie can be based on the URL
  3529. of the main document.
  3530. * khtml/dom/html_document.h: Add setPolicyBaseURL.
  3531. * khtml/dom/html_document.cpp: (HTMLDocument::setPolicyBaseURL): Call the impl.
  3532. * khtml/html/html_documentimpl.h: Add policyBaseURL, setPolicyBaseURL.
  3533. * khtml/html/html_documentimpl.cpp: (HTMLDocumentImpl::setCookie): Pass the
  3534. base URL that's stored here instead of getting at the part through the view,
  3535. since the view will be 0 during the unload event.
  3536. * kwq/KWQKHTMLPartImpl.h: Add updatePolicyBaseURL and setPolicyBaseURL.
  3537. * kwq/KWQKHTMLPartImpl.mm:
  3538. (KWQKHTMLPartImpl::updatePolicyBaseURL): Set the base URL based on the URL
  3539. if this is the topmost part, based on the parent's policy base URL if this
  3540. is not the topmost part.
  3541. (KWQKHTMLPartImpl::setPolicyBaseURL): Change the policy base URL for this
  3542. part and all the subparts.
  3543. 2002-09-26 Darin Adler <darin@apple.com>
  3544. * kwq/WebCoreBridge.h: Use NSString for encoding name, not CFStringEncoding.
  3545. * kwq/WebCoreBridge.mm:
  3546. (-[WebCoreBridge addData:withOverrideEncoding:]): Ditto.
  3547. 2002-09-26 Chris Blumenberg <cblu@apple.com>
  3548. Added WebCoreElementImageLocationKey to the element dictionary.
  3549. * kwq/WebCoreBridge.h:
  3550. * kwq/WebCoreBridge.mm:
  3551. (-[WebCoreBridge elementAtPoint:]):
  3552. === Alexander-25 ===
  3553. 2002-09-25 David Hyatt <hyatt@apple.com>
  3554. Implement scrollX and scrollY on the window object. This
  3555. gets brainjar closer to reality. :)
  3556. * khtml/ecma/kjs_window.cpp:
  3557. (Window::get):
  3558. * khtml/ecma/kjs_window.h:
  3559. 2002-09-25 Darin Adler <darin@apple.com>
  3560. Fix error with the color "indigo".
  3561. * kwq/KWQColor.mm: (getNamedColors): There were some spaces in our
  3562. color table so we wouldn't handle indianred or indigo.
  3563. 2002-09-25 Maciej Stachowiak <mjs@apple.com>
  3564. - fixed 2854536 - New cookie policy: "accept cookies only from the
  3565. same domain as the main page"
  3566. * khtml/html/html_documentimpl.cpp:
  3567. (HTMLDocumentImpl::setCookie):
  3568. * kwq/KWQKCookieJar.h:
  3569. * kwq/KWQKCookieJar.mm:
  3570. (KWQKCookieJar::setCookie):
  3571. * kwq/WebCoreCookieAdapter.h:
  3572. * kwq/WebCoreCookieAdapter.m:
  3573. (-[WebCoreCookieAdapter setCookies:forURL:policyBaseURL:]):
  3574. 2002-09-24 Darin Adler <darin@apple.com>
  3575. - fixed 3057928 -- lstat private/etc/localtime repeatedly reported
  3576. by fs_usage when mouse is moved
  3577. * WebCore-tests.exp: Remove now-unneeded external entry points
  3578. for QTime, QDate, QDateTime.
  3579. * kwq/qt/qdatetime.h:
  3580. * kwq/KWQDateTime.mm:
  3581. Redid QDateTime using CoreFoundation instead of time/localtime.
  3582. This avoids constantly hitting the disk when getting the current
  3583. time to stuff into an event.
  3584. 2002-09-24 David Hyatt <hyatt@apple.com>
  3585. Make sure we dispatch both a capturing and a bubbling event
  3586. to target nodes. DOM lvl 2 event compliance.
  3587. * ChangeLog:
  3588. * khtml/xml/dom_nodeimpl.cpp:
  3589. (NodeImpl::dispatchGenericEvent):
  3590. 2002-09-24 Richard Williamson <rjw@apple.com>
  3591. Fixed 3055078. Ensure file: URLs have // before path.
  3592. * kwq/KWQKURL.mm:
  3593. (KURL::parse):
  3594. 2002-09-24 David Hyatt <hyatt@apple.com>
  3595. Better fix. Clears the boolean when CLASS has no value.
  3596. This will keep the style system from thinking you have
  3597. a class when you don't.
  3598. * khtml/html/html_elementimpl.cpp:
  3599. (HTMLElementImpl::parseAttribute):
  3600. 2002-09-24 David Hyatt <hyatt@apple.com>
  3601. Fix updating of the document's notion of the focused node
  3602. to happen on mouse down rather than click. This matches
  3603. the behavior of all other browsers (IE, Gecko, etc.).
  3604. This fixes the drawing of the outline on the brainjar.com
  3605. DHTML menus.
  3606. * khtml/khtmlview.cpp:
  3607. (KHTMLView::dispatchMouseEvent):
  3608. 2002-09-24 David Hyatt <hyatt@apple.com>
  3609. Make sure that changes to the CLASS attribute mark the
  3610. element as changed (as if a CSS property were added or
  3611. removed).
  3612. This makes the brainjar.com rollovers work much better.
  3613. * khtml/html/html_elementimpl.cpp:
  3614. (HTMLElementImpl::parseAttribute):
  3615. 2002-09-24 Chris Blumenberg <cblu@apple.com>
  3616. Renamed element info keys to WebElement* instead of WebContextMenuElement*
  3617. * kwq/WebCoreBridge.h:
  3618. * kwq/WebCoreBridge.mm:
  3619. (-[WebCoreBridge elementAtPoint:]):
  3620. 2002-09-24 Darin Adler <darin@apple.com>
  3621. - fixed 3056579 -- various crashes at http://www.auspost.com.au/
  3622. Apparently the strings at this site were just the right length to expose a bug
  3623. in our QString implementation, one that I probably introduced when fixing 3032072.
  3624. One nice thing about this is that getting this correct could also result in a
  3625. little bit of a speedup, as the internal buffer is used more.
  3626. * kwq/KWQString.mm:
  3627. (QStringData::makeAscii): Set _maxAscii to QS_INTERNAL_BUFFER_CHARS when using
  3628. the internal buffer instead of leaving it uninitialized.
  3629. (QStringData::makeUnicode): Same for _maxUnicode.
  3630. 2002-09-24 Darin Adler <darin@apple.com>
  3631. Remove the focus border hack, which was no longer doing us any good.
  3632. * kwq/KWQNSTextField.h: Don't define FOCUS_BORDER_SIZE.
  3633. * kwq/KWQNSTextField.mm: Remove KWQTextFieldCell.
  3634. (-[KWQNSTextField updateSecureFieldFrame]): Don't inset by FOCUS_BORDER_SIZE.
  3635. * kwq/qt/qlineedit.h: Don't override frameGeometry and setFrameGeometry any more.
  3636. * kwq/KWQLineEdit.mm: (QLineEdit::sizeForCharacterWidth): Don't subtract
  3637. the focus border size.
  3638. 2002-09-24 Darin Adler <darin@apple.com>
  3639. * kwq/mac-encodings.txt: Remove constant for Japanese auto-detect.
  3640. 2002-09-24 Darin Adler <darin@apple.com>
  3641. * kwq/KWQFileButton.mm: (KWQFileButton::paint): Fix typo.
  3642. 2002-09-24 Darin Adler <darin@apple.com>
  3643. Some improvements to the file button, including displaying the file without the
  3644. extension if it's set that way by the user, and using the system font rather
  3645. than hard-coding "Lucida Grande".
  3646. * kwq/KWQFileButton.h: Add _label field.
  3647. * kwq/KWQFileButton.mm:
  3648. (KWQFileButton::KWQFileButton): Set up label.
  3649. (KWQFileButton::~KWQFileButton): Release label.
  3650. (KWQFileButton::setFilename): Use NSFileManager componentsToDisplayForPath to
  3651. figure out the appropriate label.
  3652. (KWQFileButton::paint): Clip to passed-in rect, get font using systemFontOfSize,
  3653. and use NSString drawing rather than our own.
  3654. 2002-09-23 David Hyatt <hyatt@apple.com>
  3655. Found the problem with the CSS W3C page.
  3656. * khtml/xml/dom_docimpl.cpp:
  3657. (DocumentImpl::recalcStyleSelector):
  3658. 2002-09-23 Darin Adler <darin@apple.com>
  3659. WebCore part of fixes for proper layering when drawing subframes.
  3660. * kwq/KWQWidget.mm: (QWidget::paint): Use the parent view in the "WebCoreFrameView"
  3661. case so we update the scroll view too, not just the HTML part. Also use the passed in
  3662. rectangle instead of always using the view bounds.
  3663. * kwq/KWQScrollView.mm: (QScrollView::updateContents): Call setNeedsDisplayInRect
  3664. instead of displayRect.
  3665. * kwq/KWQPainter.mm:
  3666. (QPainter::drawRect): Use NSRectFill and NSFrameRect instead of NSBezierPath.
  3667. (QPainter::fillRect): Ditto.
  3668. 2002-09-23 David Hyatt <hyatt@apple.com>
  3669. Don't let alternate stylesheets delay render tree construction.
  3670. * khtml/html/html_headimpl.cpp:
  3671. (HTMLLinkElementImpl::HTMLLinkElementImpl):
  3672. (HTMLLinkElementImpl::process):
  3673. (HTMLLinkElementImpl::setStyleSheet):
  3674. (HTMLLinkElementImpl::sheetLoaded):
  3675. * khtml/html/html_headimpl.h:
  3676. \2002-09-23 David Hyatt <hyatt@apple.com>
  3677. Make overflow:auto and scroll map to hidden until we figure
  3678. out something better.
  3679. * khtml/css/cssstyleselector.cpp:
  3680. 2002-09-23 Darin Adler <darin@apple.com>
  3681. More refinement of the AppKit hackery.
  3682. * khtml/rendering/render_replaced.cpp:
  3683. (RenderWidget::printObject): Pass in the painter and rect.
  3684. * kwq/qt/qwidget.h: Take a painter and rect parameter.
  3685. * kwq/KWQWidget.mm: (QWidget::paint): Use painter; not working yet to use rect.
  3686. * kwq/KWQFileButton.h: Change paint to take painter and rect.
  3687. * kwq/KWQFileButton.mm: (KWQFileButton::paint): Use painter.
  3688. * kwq/qt/qpainter.h: Added paintingDisabled() function.
  3689. * kwq/KWQPainter.mm: (QPainter::paintingDisabled): Added.
  3690. 2002-09-22 Darin Adler <darin@apple.com>
  3691. Change code that moves NSViews out of the way to run inside drawRect
  3692. after a layout change rather than running at layout time. This makes
  3693. sure that views are in the right place when propagating dirty rects.
  3694. * kwq/KWQKHTMLPartImpl.h: Add paint method and _needsToSetWidgetsAside flag.
  3695. * kwq/KWQKHTMLPartImpl.mm:
  3696. (KWQKHTMLPartImpl::KWQKHTMLPartImpl): Set _needsToSetWidgetsAside to false.
  3697. (KWQKHTMLPartImpl::layout): Set _needsToSetWidgetsAside to true. Don't call
  3698. moveWidgetsAside any more.
  3699. (KWQKHTMLPartImpl::paint): Moved the code here from the bridge, but also call
  3700. moveWidgetsAside if _needsToSetWidgetsAside flag is set.
  3701. * kwq/WebCoreBridge.mm:
  3702. (-[WebCoreBridge drawRect:withPainter:]): Call KWQKHTMLPartImpl::paint, which
  3703. is where I moved this code.
  3704. 2002-09-21 Darin Adler <darin@apple.com>
  3705. - fixed 3057265 -- REGRESSION: Crash loading http://www.undetectables.co.uk/
  3706. * khtml/khtml_part.cpp: (KHTMLPart::processObjectRequest):
  3707. Remove special case for javascript and about:blank that was leading to a crash.
  3708. 2002-09-21 Darin Adler <darin@apple.com>
  3709. WebCore part of the new approach to AppKit drawing control.
  3710. Works better than the previous try. Once we fix anomalies with focus rectangles
  3711. and a minor problems with subframes this should work perfectly.
  3712. * kwq/qt/qwidget.h: The paint() method isn't virtual any more. Also remove flushDrawing().
  3713. * kwq/KWQWidget.mm: (QWidget::enableFlushDrawing): Do a flushWindowIfNeeded instead
  3714. of requiring a separate flushDrawing() call to do a flushWindow.
  3715. (QWidget::paint): Added. Calls displayRectIgnoringOpacity.
  3716. * kwq/qt/qbutton.h: Remove paint() override.
  3717. * kwq/KWQButton.mm: (QButton::QButton): No need for a subclass any more, so
  3718. drop KWQNSButton. Also remove paint().
  3719. * kwq/qt/qcombobox.h: Remove paint() override.
  3720. * kwq/KWQComboBox.mm: (QComboBox::QComboBox): No need for a subclass any more, so
  3721. drop KWQNSPopUpButton. Also remove paint() method.
  3722. * kwq/qt/qlineedit.h: Remove paint() override.
  3723. * kwq/KWQLineEdit.mm: Remove paint().
  3724. * kwq/KWQFileButton.mm: (KWQFileButton::clicked): Fix typo. Was calling paint
  3725. instead of clicked on the base class.
  3726. * kwq/KWQNSTextField.h: Remove paint method.
  3727. * kwq/KWQNSTextField.mm:
  3728. (-[KWQNSTextField display]): Add a display method that does nothing to work around
  3729. bug 2753974.
  3730. (-[KWQSecureTextField display]): Ditto.
  3731. * khtml/rendering/render_frames.cpp: (RenderFrameSet::userResize): Remove call to flushDrawing.
  3732. 2002-09-20 Richard Williamson <rjw@apple.com>
  3733. Don't modify selection if no appropriate DOM::Node under
  3734. mouse.
  3735. * khtml/khtml_part.cpp:
  3736. (KHTMLPart::khtmlMouseMoveEvent):
  3737. 2002-09-20 Richard Williamson <rjw@apple.com>
  3738. Assume triple click for selection if click count >= 3,
  3739. not == 3, as in OS X.
  3740. * khtml/khtml_part.cpp:
  3741. (KHTMLPart::khtmlMousePressEvent):
  3742. 2002-09-20 Richard Williamson <rjw@apple.com>
  3743. Fixed crasher in findTextSlave.
  3744. * khtml/rendering/render_text.cpp:
  3745. (RenderText::findTextSlave):
  3746. Added error checks.
  3747. * khtml/khtml_part.cpp:
  3748. (startAndEndLineNodesIncludingNode):
  3749. 2002-09-20 Richard Williamson <rjw@apple.com>
  3750. Made double and triple click selection behave like
  3751. like other selection in OS X. That is, selection happens
  3752. on mouse down, not mouse up, and can be extended by
  3753. further dragging. Triple click followed by dragging extends
  3754. the selection a line at a time.
  3755. * khtml/khtml_events.cpp:
  3756. * khtml/khtml_events.h:
  3757. * khtml/khtml_part.cpp:
  3758. (KHTMLPart::customEvent):
  3759. (firstSlaveAt):
  3760. (lastSlaveAt):
  3761. (startAndEndLineNodesIncludingNode):
  3762. (KHTMLPart::khtmlMousePressEvent):
  3763. (KHTMLPart::khtmlMouseDoubleClickEvent):
  3764. (KHTMLPart::khtmlMouseMoveEvent):
  3765. * khtml/khtml_part.h:
  3766. * khtml/khtmlpart_p.h:
  3767. * khtml/khtmlview.cpp:
  3768. * khtml/khtmlview.h:
  3769. * khtml/xml/dom_elementimpl.cpp:
  3770. (ElementImpl::setAttribute):
  3771. * kwq/WebCoreBridge.mm:
  3772. (-[WebCoreBridge mouseUp:]):
  3773. 2002-09-20 Darin Adler <darin@apple.com>
  3774. * kwq/KWQFileButton.h: Add an icon.
  3775. * kwq/KWQFileButton.mm:
  3776. (KWQFileButton::KWQFileButton): Nil out icon.
  3777. (KWQFileButton::~KWQFileButton): Release icon.
  3778. (KWQFileButton::setFilename): Get icon with [NSWorkspace iconForFile:].
  3779. (KWQFileButton::clicked): Set prompt string to "Choose", and start directory to "~".
  3780. (KWQFileButton::sizeHint): Pad more for icon width.
  3781. (KWQFileButton::frameGeometry): Ditto.
  3782. (KWQFileButton::setFrameGeometry): Ditto.
  3783. (KWQFileButton::paint): Draw icon. Draw "no file selected" if no filename.
  3784. * kwq/KWQKFileItem.mm: Our "nonimplementation" is good enough. Stop complaining.
  3785. * kwq/KWQKnetaccess.mm: Ditto. Also just extract path when asked to download.
  3786. 2002-09-20 Darin Adler <darin@apple.com>
  3787. Some first steps toward implementing input=file.
  3788. * khtml/rendering/render_form.cpp:
  3789. (RenderFileButton::RenderFileButton): Create a KWQFileButton as the widget.
  3790. (RenderFileButton::calcMinMaxWidth): Use sizeHint().
  3791. (RenderFileButton::updateFromElement): Call setFilename().
  3792. (RenderFileButton::select): Don't try to selectAll() on m_edit.
  3793. * kwq/KWQFileButton.h: Added.
  3794. * kwq/KWQFileButton.mm: Added.
  3795. * kwq/qt/qhbox.h: Emptied.
  3796. * kwq/KWQHBox.mm: Removed.
  3797. * WebCore.pbproj/project.pbxproj: Removed KWQHBox.mm. Added KWQFileButton.
  3798. 2002-09-20 Darin Adler <darin@apple.com>
  3799. - fixed 3056605 -- REGRESSION: blank page at http://www.2ch.net/2ch.html
  3800. * kwq/mac-encodings.txt: When people say ShiftJIS, they really mean
  3801. DOSJapanese. So do what they mean, not what they say.
  3802. 2002-09-20 Darin Adler <darin@apple.com>
  3803. - fixed 3055339 -- repro crash in RenderPartObject::updateWidget()
  3804. * khtml/khtml_part.cpp: (KHTMLPart::processObjectRequest):
  3805. Only create a new part if we have no old part.
  3806. * kwq/KWQtextstream.mm: Remove some of the "not implemented" logging.
  3807. Once we have logged that the stream is not created correctly, there's no need
  3808. to continue logging each time something is written out to the non-stream.
  3809. 2002-09-19 Richard Williamson <rjw@apple.com>
  3810. Implemented double and triple click selection.
  3811. * khtml/khtml_events.h:
  3812. * khtml/khtml_part.cpp:
  3813. (KHTMLPart::customEvent):
  3814. (KHTMLPart::khtmlMouseDoubleClickEvent):
  3815. (firstSlaveAt):
  3816. (lastSlaveAt):
  3817. (KHTMLPart::khtmlMouseTripleClickEvent):
  3818. * khtml/khtml_part.h:
  3819. * khtml/rendering/render_text.h:
  3820. * kwq/WebCoreBridge.mm:
  3821. (-[WebCoreBridge mouseUp:]):
  3822. 2002-09-19 Darin Adler <darin@apple.com>
  3823. - fixed 3045651 -- null-dereference in DOM::CharacterDataImpl constructor
  3824. setting up text area element
  3825. * khtml/xml/dom_textimpl.cpp: (CharacterDataImpl::CharacterDataImpl):
  3826. Set str to an empty DOMStringImpl instead of to 0. This was easier than
  3827. going around finding all the places that don't like a str of 0.
  3828. * WebCore.pbproj/project.pbxproj: Let PB sort things as it likes.
  3829. === Alexander-24 ===
  3830. 2002-09-18 Darin Adler <darin@apple.com>
  3831. - fixed 3037974 -- successful Find does not deselect text field
  3832. * khtml/khtml_part.cpp: (KHTMLPart::checkCompleted):
  3833. Turn off the code that restores the cursor position because we don't
  3834. use the KHTML saveState/restoreState. But we should.
  3835. * khtml/xml/dom_docimpl.cpp:
  3836. (DocumentImpl::setSelection): Call setFocusNode(0), because on the
  3837. Macintosh, selection and focus are mutually exclusive.
  3838. (DocumentImpl::close): Remove no-longer-needed APPLE_CHANGES.
  3839. (DocumentImpl::setFocusNode): Set focus to the KHTMLView when focus
  3840. is being removed from a particular node. Clear the selection when
  3841. focus is set on a particular node because on the Macintosh, selection
  3842. and focus are mutually exclusive.
  3843. * kwq/KWQKHTMLPartImpl.h: Add set/clearDocumentFocus functions that we can use
  3844. to keep document's idea of focused node in sync. with AppKit's.
  3845. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::setDocumentFocus): Added.
  3846. (KWQKHTMLPartImpl::clearDocumentFocus): Added.
  3847. * kwq/KWQNSTextField.mm:
  3848. (-[KWQNSTextField becomeFirstResponder]): Call setDocumentFocus.
  3849. (-[KWQSecureTextField becomeFirstResponder]): Call setDocumentFocus.
  3850. * kwq/qt/qwidget.h: Removed endEditing().
  3851. * kwq/KWQWidget.mm: (QWidget::clearFocus): Call clearDocumentFocus.
  3852. (QWidget::endEditing): Removed.
  3853. * khtml/rendering/render_form.h:
  3854. * khtml/rendering/render_form.cpp:
  3855. (RenderImageButton::RenderImageButton): Remove the KWQInvisibleButton
  3856. hack, which is no longer needed.
  3857. * kwq/KWQInvisibleButton.h: Removed.
  3858. * kwq/KWQInvisibleButton.mm: Removed.
  3859. * WebCore.pbproj/project.pbxproj: Removed KWQInvisibleButton.
  3860. 2002-09-18 Darin Adler <darin@apple.com>
  3861. - fixed 3027470 -- hitting tab when the google.com text field is selected
  3862. (all bars hidden) makes border flash
  3863. * kwq/KWQNSTextField.mm:
  3864. (-[KWQNSTextField textDidEndEditing:]): Added. Don't call super when the next
  3865. valid key view is nil.
  3866. (-[KWQSecureTextField textDidEndEditing:]): Ditto. Too bad we can't share code
  3867. here. Maybe I'll figure out a way later.
  3868. 2002-09-17 Darin Adler <darin@apple.com>
  3869. - fixed 3025022 -- Crash in KWQKHTMLPartImpl::redirectionTimerStartedOrStopped()
  3870. * kwq/WebCoreBridge.mm: (-[WebCoreBridge dealloc]): Set the bridge on the part to
  3871. nil just in case someone else is holding a reference, so we won't try to dispatch
  3872. methods to an already-deallocated bridge.
  3873. - fixed 3028476 -- illegal instruction crash in KWQTimerCallback timerFired
  3874. * khtml/ecma/kjs_window.cpp: (WindowQObject::parentDestroyed):
  3875. Remove APPLE_CHANGES to avoid calling killTimers(); we can call it
  3876. now that we have a working implementation.
  3877. * khtml/khtmlview.cpp:
  3878. (KHTMLView::~KHTMLView): Remove APPLE_CHANGES that kills timers.
  3879. All timers are killed by ~QObject now, just as in Qt.
  3880. (KHTMLView::clear): Remove APPLE_CHANGES to avoid calling killTimers();
  3881. we can call it now that we have a working implementation.
  3882. * kwq/KWQObject.mm:
  3883. (QObject::~QObject): Call killTimers().
  3884. (QObject::startTimer): Keep a dictionary keyed by QObject, with a dictionary
  3885. of timers for each, rather than one global dictionary. This makes it efficient
  3886. to kill all the timers for an object.
  3887. (QObject::killTimer): Update for new level of dictionary.
  3888. (QObject::killTimers): Kill all the timers in this object's timer dictionary
  3889. rather than all timers in the world.
  3890. (QObject::inherits): Add an ERROR for the case where the class name is unknown.
  3891. 2002-09-17 Darin Adler <darin@apple.com>
  3892. - fixed 3050818 -- Crash in relative-KURL constructor at site with _ in host name
  3893. * kwq/KWQKURL.mm: Change _ so that it's allowed in host names.
  3894. (KURL::KURL): If base URL is invalid, make result invalid too.
  3895. 2002-09-17 Richard Williamson <rjw@apple.com>
  3896. * khtml/khtmlview.cpp:
  3897. (KHTMLView::viewportMouseTripleClickEvent):
  3898. Added implementation. Same as viewportMouseReleaseEvent
  3899. except dispatches additional MouseTripleClickEvent event.
  3900. (KHTMLView::viewportMouseDoubleClickEvent):
  3901. Send extra release event. This emulates Qt
  3902. behavior.
  3903. * kwq/WebCoreBridge.mm:
  3904. (-[WebCoreBridge mouseUp:]):
  3905. Don't send extra release event here, instead send
  3906. it in viewportMouseDoubleClickEvent and also in
  3907. viewportMouseTripleClickEvent so DOM doesn't get
  3908. confused.
  3909. * kwq/KWQColor.mm:
  3910. (QColor::hsv):
  3911. Fixed divide by 0 problem.
  3912. 2002-09-17 Darin Adler <darin@apple.com>
  3913. - fixed 2936933 -- Pages that claim to be UTF-8 but contain invalid
  3914. sequences do not render at all
  3915. Misc. speed improvements. Total 2.6% speedup for cvs-base.
  3916. Improvements for signals.
  3917. * kwq/KWQChar.mm:
  3918. (QChar::isSpace): Add fast case for ASCII.
  3919. (QChar::lower): Add fast case for ASCII.
  3920. (QChar::upper): Add fast case for ASCII.
  3921. * kwq/qt/qcolor.h: Just store RGB values, not NSColor objects.
  3922. * kwq/KWQColor.mm:
  3923. (QColor::QColor): No need to set color to nil.
  3924. (QColor::name): Use QString::sprintf instead of NSString.
  3925. (QColor::setNamedColor): Use KWQInvalidColor instead of nil.
  3926. (QColor::getNSColor): Make an autoreleased NSColor.
  3927. * kwq/KWQKHTMLPartImpl.mm:
  3928. (moveWidgetsAside): Use isWidget() instead of dynamic_cast.
  3929. * kwq/KWQSignal.h: use a QValueList instead of a fixed-size array.
  3930. * kwq/KWQSignal.mm:
  3931. (KWQSignal::connect): Append to list.
  3932. (KWQSignal::disconnect): Remove from list.
  3933. (KWQSignal::call): Use the QValueList.
  3934. * kwq/KWQSlot.mm:
  3935. (KWQSlot::call): Use static_cast instead of dynamic_cast where possible.
  3936. * kwq/qt/qstring.h: Add return value to forceUnicode.
  3937. * kwq/KWQString.mm:
  3938. (QString::fromStringWithEncoding): Implemented using the Text Encoding
  3939. Converter instead of CFString.
  3940. (compareIgnoringCaseForASCIIOnly): New function. Faster find.
  3941. (QString::find): Separate case-sensitive from case-insensitive and speed
  3942. up both of them.
  3943. (QString::stripWhiteSpace): Use the new forceUnicode for simplicity.
  3944. (QString::simplifyWhiteSpace): Ditto.
  3945. (QString::insert): Ditto.
  3946. (QString::remove): Ditto.
  3947. (QString::forceUnicode): Return the unicode pointer.
  3948. (QString::fill): Use the new forceUnicode for simplicity.
  3949. * kwq/WebCoreBridge.mm:
  3950. (-[WebCoreBridge mouseUp:]): Fix two bugs. First, don't treat a slow
  3951. click as a double click. Second, deliver a mouse release event even for
  3952. a double click, as Qt does.
  3953. 2002-09-17 Richard Williamson <rjw@apple.com>
  3954. * khtml/css/cssstyleselector.cpp:
  3955. Fixed bug in KHTML that incorrectly modified '//' in fragment part of URL.
  3956. * kwq/KWQKHistoryProvider.mm:
  3957. Use string based API to add entry. May eventually remove NSURL from
  3958. history entirely.
  3959. * kwq/KWQKURL.mm:
  3960. (KURL::canonicalURL):
  3961. Simply return the urlString.
  3962. (KURL::parse):
  3963. Added "/" to http and https empty path URLs.
  3964. * kwq/KWQString.mm:
  3965. (QString::mid):
  3966. Optimize ascii case.
  3967. * kwq/WebCoreHistory.h:
  3968. * kwq/WebCoreHistory.m:
  3969. (-[WebCoreHistory addEntryForURLString:]):
  3970. Use string based API to add entry.
  3971. * kwq/kdecore/kurl.h:
  3972. Defined methods to access canonical components,
  3973. currently conditionally excluded.
  3974. 2002-09-16 David Hyatt <hyatt@apple.com>
  3975. Fix the stylesheet loading regression on rubyfruit.
  3976. * khtml/html/html_headimpl.cpp:
  3977. (HTMLStyleElementImpl::HTMLStyleElementImpl):
  3978. (HTMLStyleElementImpl::childrenChanged):
  3979. (HTMLStyleElementImpl::isLoading):
  3980. * khtml/html/html_headimpl.h:
  3981. 2002-09-13 David Hyatt <hyatt@apple.com>
  3982. Landing code that makes textfields, buttons, checkboxes, radio
  3983. buttons, and dropdown lists all draw correctly with respect to
  3984. z-index. They all employ the same simple hack (just never paint
  3985. unless KHTML tells them to).
  3986. Unpatched widgets include the password field, the listbox, and the
  3987. textarea.
  3988. The only issue with regards to painting with the widgets I've
  3989. patched is the textfield... its editor floats to the top when the
  3990. field is being edited.
  3991. Event handling will also be incorrect and will need to be patched
  3992. separately.
  3993. * khtml/rendering/render_body.cpp:
  3994. (RenderBody::printBoxDecorations):
  3995. * khtml/rendering/render_replaced.cpp:
  3996. (RenderWidget::printObject):
  3997. * kwq/KWQButton.mm:
  3998. (QButton::QButton):
  3999. (QButton::paint):
  4000. (-[KWQNSButton drawRect:]):
  4001. (-[KWQNSButton paint]):
  4002. * kwq/KWQComboBox.mm:
  4003. (-[KWQNSPopUpButton drawRect:]):
  4004. (-[KWQNSPopUpButton paint]):
  4005. (QComboBox::QComboBox):
  4006. (QComboBox::insertItem):
  4007. (QComboBox::paint):
  4008. * kwq/KWQLineEdit.mm:
  4009. (QLineEdit::paint):
  4010. * kwq/KWQNSTextField.h:
  4011. * kwq/KWQNSTextField.mm:
  4012. (-[KWQNSTextField paint]):
  4013. * kwq/qt/qbutton.h:
  4014. * kwq/qt/qcombobox.h:
  4015. * kwq/qt/qlineedit.h:
  4016. * kwq/qt/qwidget.h:
  4017. 2002-09-13 Richard Williamson (Home) <rjw@apple.com>
  4018. Fixed navigation to link on mouse up after drag.
  4019. * khtml/khtmlview.cpp:
  4020. (KHTMLView::viewportMousePressEvent):
  4021. (KHTMLView::viewportMouseDoubleClickEvent):
  4022. Change khtml's definition of double click to be based on
  4023. mouse up of second click, not mouse down.
  4024. (KHTMLView::viewportMouseReleaseEvent):
  4025. * kwq/WebCoreBridge.mm:
  4026. (-[WebCoreBridge mouseUp:]):
  4027. (-[WebCoreBridge mouseDown:]):
  4028. Changed double click to be on mouse up with click count of two.
  4029. 2002-09-13 Darin Adler <darin@apple.com>
  4030. Fix crash in slot code.
  4031. * kwq/KWQSignal.mm: (KWQSignal::call): Copy the slots before
  4032. calling through in case we are destroyed by the called function.
  4033. 2002-09-13 Darin Adler <darin@apple.com>
  4034. Here's the *real* mistake that killed plugins. I accidentally
  4035. stopped creating objects at all! Duh. Fixed now.
  4036. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::createPart):
  4037. Make a part for a plugin if we need one. Not a KHTMLPart, but
  4038. a KWQPluginPart.
  4039. 2002-09-13 Darin Adler <darin@apple.com>
  4040. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::createPart):
  4041. Fix plugin-related crashes by making sure each part has a unique
  4042. frame name. There may be something fundamentally wrong with how this
  4043. is working now.
  4044. 2002-09-13 Richard Williamson (Home) <rjw@apple.com>
  4045. Made justified text work correctly in khtml for rendering
  4046. and selection. Optimized selection point calculation by
  4047. only doing characters measurements once.
  4048. * khtml/rendering/font.cpp:
  4049. (Font::floatCharacterWidths):
  4050. * khtml/rendering/font.h:
  4051. * khtml/rendering/render_text.cpp:
  4052. (TextSlave::checkSelectionPoint):
  4053. (RenderText::position):
  4054. * kwq/KWQFontMetrics.mm:
  4055. (QFontMetrics::width):
  4056. (QFontMetrics::floatWidth):
  4057. (QFontMetrics::floatCharacterWidths):
  4058. * kwq/KWQPainter.mm:
  4059. (QPainter::drawText):
  4060. * kwq/WebCoreTextRenderer.h:
  4061. * kwq/qt/qfontmetrics.h:
  4062. 2002-09-13 Darin Adler <darin@apple.com>
  4063. Quiet error messages related to the slot/signal changes.
  4064. * khtml/khtml_part.cpp:
  4065. (KHTMLPart::startAutoScroll): Ifdef this out.
  4066. (KHTMLPart::stopAutoScroll): Ditto.
  4067. * kwq/KWQObject.mm:
  4068. (QObject::connect): Add two more expected members to the list for
  4069. setStatusBarText and slotViewCleared.
  4070. * kwq/KWQSignal.h: Allow 4 slots per signal.
  4071. I don't want to make it a variable number, but we can if we have to.
  4072. * kwq/KWQSignal.mm:
  4073. (KWQSignal::connect): Support multiple slots.
  4074. (KWQSignal::disconnect): Support multiple slots.
  4075. (KWQSignal::call): Support multiple slots.
  4076. 2002-09-13 Darin Adler <darin@apple.com>
  4077. Fix assertion that happens on any page that has a non-HTML frame.
  4078. We were sending signals for objects in m_objects that are only supposed
  4079. to be sent for frames in m_frames. The fix is to use actual slot/signal
  4080. connections instead of our hard-coded logic.
  4081. * kwq/KWQKHTMLPartImpl.h: Add signals for started and completed.
  4082. * kwq/KWQKHTMLPartImpl.mm:
  4083. (KHTMLPart::completed): Emit completed signal.
  4084. (KHTMLPart::started): Emit started signal.
  4085. (KWQKHTMLPartImpl::KWQKHTMLPartImpl): Create signals.
  4086. * kwq/KWQObject.mm:
  4087. (QObject::connect): Write out an error message if we see any signal connections
  4088. to signals that aren't implemented, with a hardwired exception list for ones we
  4089. either aren't ever going to do or just haven't gotten around to yet.
  4090. * kwq/KWQSignal.h: Add support for signals that take bool and KIO::Job *.
  4091. * kwq/KWQSignal.mm:
  4092. (KWQSignal::connect): Put in an actual ERROR call for the case where this fails.
  4093. (KWQSignal::disconnect): Put in an actual ERROR call for the case where it fails.
  4094. (KWQSignal::call): Add overloads for bool and KIO::Job *.
  4095. * kwq/KWQSlot.h: Add support for slots that take bool and KIO::Job *.
  4096. * kwq/KWQSlot.mm:
  4097. (KWQSlot::KWQSlot): Add four new members.
  4098. (KWQSlot::call): Add overloads for bool and KIO::Job * and support for the new
  4099. members.
  4100. 2002-09-12 Darin Adler <darin@apple.com>
  4101. * kwq/KWQAssertions.h: Update assertions from from the copy in WebFoundation.
  4102. * WebCorePrefix.h: Remove NSURLPathUtilities.h include.
  4103. Use even more of the KHTML code so we get referrers in one more place.
  4104. * kwq/WebCoreBridge.h: Add referrer to createChildFrameNamed.
  4105. * khtml/khtml_part.h: Less APPLE_CHANGES, no substantive change.
  4106. * khtml/khtml_part.cpp:
  4107. (KHTMLPart::requestFrame): Use more of this, less APPLE_CHANGES.
  4108. (KHTMLPart::requestObject): Ditto.
  4109. (KHTMLPart::processObjectRequest): Ditto.
  4110. * khtml/rendering/render_frames.h: Less APPLE_CHANGES.
  4111. * khtml/rendering/render_frames.cpp: Less APPLE_CHANGES.
  4112. * kwq/kparts/browserextension.h: Add lockHistory/setLockHistory and
  4113. openURLNotify.
  4114. * kwq/khtml/khtml_ext.h: Add openURLNotify.
  4115. * kwq/KWQKHTMLPartImpl.h: Add openURLNotify.
  4116. * kwq/KWQKHTMLPartBrowserExtension.mm:
  4117. (KHTMLPartBrowserExtension::openURLNotify): Implement.
  4118. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::createPart):
  4119. Changed name from requestFrame. Do less work.
  4120. * kwq/qt/qtimer.h: Add singleShot.
  4121. * kwq/KWQTimer.mm:
  4122. (+[KWQSingleShotTimerTarget targetWithQObject:member:]): Added.
  4123. Used to implement singleShot.
  4124. (-[KWQSingleShotTimerTarget dealloc]): Ditto.
  4125. (-[KWQSingleShotTimerTarget timerFired:]): Ditto.
  4126. (QTimer::singleShot): Added.
  4127. * kwq/qt/qmap.h: Add contains.
  4128. * kwq/qt/qvaluelist.h: Add iterator return value for append and prepend.
  4129. * kwq/KWQValueListImpl.h: Add iterator return value for appendNode
  4130. and prependNode.
  4131. * kwq/KWQValueListImpl.mm:
  4132. (KWQValueListImpl::appendNode): Add iterator.
  4133. (KWQValueListImpl::prependNode): Add iterator.
  4134. * kwq/kparts/part.h: Add openURL.
  4135. 2002-09-12 Richard Williamson <rjw@apple.com>
  4136. Rewrite of khtml selection drawing code. Now does
  4137. a delta between old and new selection and only
  4138. draw those objects that have changed. Selection
  4139. drawing is now MUCH faster.
  4140. * khtml/rendering/render_root.cpp:
  4141. (enclosingPositionedRect):
  4142. (RenderRoot::setSelection):
  4143. (RenderRoot::clearSelection):
  4144. * khtml/rendering/render_root.h:
  4145. Added additional absolute position property to render node
  4146. stuff for debug render tree view.
  4147. * kwq/WebCoreBridge.h:
  4148. * kwq/WebCoreBridge.mm:
  4149. (-[WebCoreBridge copyRenderNode:copier:]):
  4150. 2002-09-12 David Hyatt <hyatt@apple.com>
  4151. KHTML was butchering the laws of background propagation from
  4152. the <body> to the <html>. This fixes the logical flaws and
  4153. makes some of the geekiest CSS on the planet render correctly. ;)
  4154. * khtml/rendering/render_body.cpp:
  4155. (RenderBody::printBoxDecorations):
  4156. * khtml/rendering/render_html.cpp:
  4157. (RenderHtml::printBoxDecorations):
  4158. 2002-09-12 David Hyatt <hyatt@apple.com>
  4159. Make fixed positioned elements work when you scroll. We were
  4160. just missing the implementation of a QScrollView method.
  4161. * kwq/KWQScrollView.mm:
  4162. (QScrollView::setStaticBackground):
  4163. 2002-09-12 David Hyatt <hyatt@apple.com>
  4164. Fix a bug in KHTML that leads it to claim cached @imported stylesheets
  4165. are not loaded (when in fact they are).
  4166. This fixes the W3C CSS page.
  4167. * khtml/css/css_ruleimpl.cpp:
  4168. (CSSImportRuleImpl::init):
  4169. 2002-09-12 Chris Blumenberg <cblu@apple.com>
  4170. Fixed livepage crash. It is naughty to divide by 0 so we now check before doing that.
  4171. * khtml/rendering/render_box.cpp:
  4172. (RenderBox::printBackground):
  4173. 2002-09-12 David Hyatt <hyatt@apple.com>
  4174. Fix crash on trekweb.com. My simplified FOUC code was a little
  4175. bit too simple. ;)
  4176. * khtml/html/html_headimpl.cpp:
  4177. (HTMLLinkElementImpl::setStyleSheet):
  4178. (HTMLStyleElementImpl::childrenChanged):
  4179. 2002-09-12 David Hyatt <hyatt@apple.com>
  4180. Fix the Warcraft 3 page on blizzard.com so that the relative
  4181. positioned blocks inside centered tables inside enclosing tables
  4182. with percentage widths work correctly.
  4183. This fix also causes the textfields on mrskin.com to show up
  4184. again.
  4185. * khtml/rendering/render_box.cpp:
  4186. (RenderBox::RenderBox):
  4187. (RenderBox::setPos):
  4188. * khtml/rendering/render_box.h:
  4189. * khtml/rendering/render_container.cpp:
  4190. (RenderContainer::addChild):
  4191. * khtml/rendering/render_layer.cpp:
  4192. (RenderLayer::constructZTree):
  4193. * khtml/rendering/render_object.h:
  4194. 2002-09-11 Maciej Stachowiak <mjs@apple.com>
  4195. Don't show the window here any more, now that WebBrowser will set
  4196. it up to be shown properly itself.
  4197. * kwq/KWQKHTMLPartBrowserExtension.mm:
  4198. (KHTMLPartBrowserExtension::createNewWindow):
  4199. 2002-09-11 David Hyatt <hyatt@apple.com>
  4200. Fix horizontal scrolling. The HTML render object lies. It lies,
  4201. I tell you.
  4202. * khtml/rendering/render_layer.cpp:
  4203. (RenderLayer::constructZTree):
  4204. 2002-09-11 David Hyatt <hyatt@apple.com>
  4205. Fix clipping to work with layers. This fixes the marquee
  4206. (once again) on livepage.apple.com.
  4207. * khtml/rendering/render_box.cpp:
  4208. (RenderBox::getClipRect):
  4209. * khtml/rendering/render_box.h:
  4210. * khtml/rendering/render_container.cpp:
  4211. (RenderContainer::addChild):
  4212. (RenderContainer::removeChildNode):
  4213. * khtml/rendering/render_flow.cpp:
  4214. (RenderFlow::setStyle):
  4215. (RenderFlow::printObject):
  4216. * khtml/rendering/render_layer.cpp:
  4217. (RenderLayer::enclosingPositionedAncestor):
  4218. (RenderLayer::convertToLayerCoords):
  4219. (RenderLayer::paint):
  4220. (RenderLayer::constructZTree):
  4221. * khtml/rendering/render_layer.h:
  4222. * khtml/rendering/render_object.h:
  4223. * khtml/rendering/render_replaced.cpp:
  4224. (RenderReplaced::print):
  4225. 2002-09-11 Darin Adler <darin@apple.com>
  4226. * kwq/KWQAssertions.h: Updated copy of the assertions macros (made by script).
  4227. 2002-09-11 Darin Adler <darin@apple.com>
  4228. - fixed 3047552 -- crash using CFNotification calls on an NSNotification
  4229. * kwq/KWQWindowWidget.mm:
  4230. (KWQWindowWidget::KWQWindowWidget): Create a KWQWindowWidgetDeleter, and
  4231. hook it up to the notification.
  4232. (KWQWindowWidget::~KWQWindowWidget): Disconnect the KWQWindowWidgetDeleter
  4233. and release it.
  4234. (-[KWQWindowWidgetDeleter initWithWindowWidget:]): Store a pointer.
  4235. (-[KWQWindowWidgetDeleter deleteWindowWidget]): Do a delete.
  4236. 2002-09-11 Darin Adler <darin@apple.com>
  4237. - fixed 3021137 -- changing font prefs doesn't redraw frames
  4238. other than the main frame
  4239. * kwq/WebCoreSettings.m: Renamed to WebCoreSettings.mm.
  4240. * kwq/WebCoreSettings.mm: Renamed from WebCoreSettings.m so I could
  4241. use C++.
  4242. (-[WebCoreSettings _updateAllViews]): Iterate over all KWQKHTMLPartImpl
  4243. instances, calling setNeedsReapplyStyles on each one.
  4244. * WebCore.pbproj/project.pbxproj: Updated for name change.
  4245. * kwq/KWQKHTMLPartImpl.h: Add instances() and mutableInstances().
  4246. Get rid of frameExists(), findFrame(), and frames().
  4247. * kwq/KWQKHTMLPartImpl.mm:
  4248. (KWQKHTMLPartImpl::KWQKHTMLPartImpl): Add to instance list.
  4249. (KWQKHTMLPartImpl::~KWQKHTMLPartImpl): Remove from instance list.
  4250. (KWQKHTMLPartImpl::requestFrame): Update to not use frameExists().
  4251. (KWQKHTMLPartImpl::overURL): Update to not use frameExists, and improve
  4252. handling of various cases.
  4253. (KWQKHTMLPartImpl::mutableInstances): Create and return instance list.
  4254. * kwq/WebCoreBridge.h: Add setNeedsReapplyStyles; already implemented
  4255. in WebKit.
  4256. * khtml/khtml_part.cpp:
  4257. (KHTMLPart::findFrame): Remove APPLE_CHANGES.
  4258. (KHTMLPart::frameExists): Remove APPLE_CHANGES.
  4259. (KHTMLPart::frames): Remove APPLE_CHANGES.
  4260. 2002-09-10 Darin Adler <darin@apple.com>
  4261. WebCore part of support for the "Referer" header.
  4262. * khtml/khtml_part.cpp:
  4263. (KHTMLPart::urlSelected): Use much more of this function.
  4264. (KHTMLPart::submitForm): Use much more of this function.
  4265. * kwq/KWQKHTMLPartBrowserExtension.mm:
  4266. (KHTMLPartBrowserExtension::createNewWindow): Parse the
  4267. referrer out of the URLArgs and pass it along.
  4268. * kwq/KWQKHTMLPartImpl.h: Change parameters to urlSelected
  4269. and submitForm to allow KHTML to do more of the work. Add
  4270. referrer helper function.
  4271. * kwq/KWQKHTMLPartImpl.mm:
  4272. (KWQKHTMLPartImpl::bridgeForFrameName): Pass referrer of nil
  4273. when opening a blank window.
  4274. (KWQKHTMLPartImpl::referrer): Extract referrer from metadata.
  4275. (KWQKHTMLPartImpl::openURLRequest): Pass referrer from args
  4276. through the bridge.
  4277. (KWQKHTMLPartImpl::urlSelected): Remove code that duplicates
  4278. what's in KHTMLPart. Also pass referrer from args through the
  4279. bridge as above.
  4280. (KWQKHTMLPartImpl::submitForm): Ditto.
  4281. * kwq/kdeui/kmessagebox.h: Add information member function.
  4282. * kwq/KWQKMessageBox.mm: (KMessageBox::information): Implement.
  4283. * kwq/kdecore/kurl.h: Add encode_string member function.
  4284. * kwq/KWQKURL.mm:
  4285. (KURL::KURL): Fix buffer overflow bug, and add an assert so we
  4286. will notice these overflows even when using the static buffer.
  4287. (KURL::parse): Added a similar assert, even though I didn't fix
  4288. any overflow bug here.
  4289. (KURL::encode_string): Implemented this, but didn't test it.
  4290. * kwq/KWQLoaderImpl.mm: (KWQServeRequest): Pass referrer through
  4291. the bridge.
  4292. * kwq/WebCoreBridge.h: Add referrer parameters to loadURL, postWithURL,
  4293. openNewWindowWithURL, and startLoadingResource.
  4294. * kwq/kparts/browserextension.h: Implement setDoPost, setContentType,
  4295. const version of metaData().
  4296. * kwq/qt/qstring.h: Implement fromLatin1(const char *, int).
  4297. * WebCore-tests.exp: Not sure why, but I needed to remove isMalformed,
  4298. and the tests seem to still work with it removed.
  4299. 2002-09-11 David Hyatt <hyatt@apple.com>
  4300. This patch fixes a slew of bugs. It is an implementation
  4301. of the IE extensions offsetLeft, offsetTop, and offsetParent.
  4302. Konqueror actually had implementations for these properties
  4303. that were totally wrong, leading any DHTML that would use
  4304. these properties (like the DHTML on brainjar.com or livepage.apple.com)
  4305. to misposition child elements.
  4306. With these properties now implemented, the menus on brainjar.com
  4307. position correctly, and the marquee on livepage.apple.com once
  4308. again shows up (and now you can see how I've regressed clipping
  4309. by not shoving it into the layer system as well).
  4310. Next up will be fixing the clipping bug on livepage.apple.com.
  4311. * khtml/ecma/kjs_dom.cpp:
  4312. (DOMNode::getValueProperty):
  4313. * khtml/rendering/render_flow.cpp:
  4314. (RenderFlow::offsetHeight):
  4315. (RenderFlow::offsetLeft):
  4316. (RenderFlow::offsetTop):
  4317. * khtml/rendering/render_flow.h:
  4318. * khtml/rendering/render_object.cpp:
  4319. (RenderObject::offsetLeft):
  4320. (RenderObject::offsetTop):
  4321. (RenderObject::offsetParent):
  4322. * khtml/rendering/render_object.h:
  4323. 2002-09-10 David Hyatt <hyatt@apple.com>
  4324. Get more elements on mrskin painting as well as the menus
  4325. on brainjar.com.
  4326. * khtml/rendering/render_flow.cpp:
  4327. (RenderFlow::layout):
  4328. * khtml/rendering/render_layer.cpp:
  4329. (RenderLayer::constructZTree):
  4330. * khtml/rendering/render_object.cpp:
  4331. (RenderObject::setLayouted):
  4332. * khtml/rendering/render_object.h:
  4333. 2002-09-10 David Hyatt <hyatt@apple.com>
  4334. Fix the CSS clip property.
  4335. * khtml/css/cssparser.cpp:
  4336. (StyleBaseImpl::parseValue):
  4337. * khtml/css/cssstyleselector.cpp:
  4338. * khtml/ecma/kjs_css.cpp:
  4339. (DOMCSSStyleDeclaration::tryPut):
  4340. * khtml/rendering/render_box.cpp:
  4341. (RenderBox::calcClip):
  4342. * khtml/rendering/render_flow.cpp:
  4343. (RenderFlow::printObject):
  4344. * khtml/rendering/render_replaced.cpp:
  4345. (RenderReplaced::print):
  4346. * khtml/rendering/render_style.cpp:
  4347. (StyleVisualData::StyleVisualData):
  4348. (RenderStyle::diff):
  4349. * khtml/rendering/render_style.h:
  4350. 2002-09-10 Richard Williamson <rjw@apple.com>
  4351. Fixed broken DOM handling of click count. DOM click
  4352. events can be tested with Labyrinth/Test/html/mousetest.html.
  4353. Preparation work for double and triple click selection.
  4354. * khtml/khtml_events.cpp:
  4355. * khtml/khtml_events.h:
  4356. * khtml/khtml_part.cpp:
  4357. (KHTMLPart::khtmlMouseTripleClickEvent):
  4358. * khtml/khtml_part.h:
  4359. * khtml/khtmlview.cpp:
  4360. (KHTMLView::viewportMousePressEvent):
  4361. (KHTMLView::viewportMouseTripleClickEvent):
  4362. (KHTMLView::viewportMouseDoubleClickEvent):
  4363. (KHTMLView::viewportMouseReleaseEvent):
  4364. * khtml/khtmlview.h:
  4365. * kwq/KWQEvent.mm:
  4366. (QMouseEvent::QMouseEvent):
  4367. * kwq/WebCoreBridge.mm:
  4368. (-[WebCoreBridge mouseUp:]):
  4369. (-[WebCoreBridge mouseDown:]):
  4370. * kwq/qt/qevent.h:
  4371. 2002-09-10 David Hyatt <hyatt@apple.com>
  4372. Fix FOUC to behave correctly. I was smoking crack when I
  4373. implemented this the first time (mainly because KHTML had
  4374. a badly named API that didn't mean even remotely what
  4375. I thought it should).
  4376. * khtml/html/html_headimpl.cpp:
  4377. (HTMLLinkElementImpl::process):
  4378. (HTMLLinkElementImpl::setStyleSheet):
  4379. (HTMLLinkElementImpl::sheetLoaded):
  4380. (HTMLStyleElementImpl::childrenChanged):
  4381. (HTMLStyleElementImpl::sheetLoaded):
  4382. 2002-09-10 Maciej Stachowiak <mjs@apple.com>
  4383. WebCore part of fix for:
  4384. 2952837 - Slide shows on homepage.mac.com don't show pictures, captions
  4385. 2942073 - Deferring [BrowserDocument goToInitialURL] can cause problems
  4386. 3021360 - second window pops up on 'Search' at chrysler.com
  4387. 3030485 - Unexpected new window created with no scroll bars at sony.com
  4388. * kwq/KWQKHTMLPartBrowserExtension.mm:
  4389. (KHTMLPartBrowserExtension::createNewWindow): Reuse existing
  4390. frame if possible. Pass frame name when opening a new window.
  4391. * kwq/KWQKHTMLPartImpl.mm:
  4392. (KWQKHTMLPartImpl::bridgeForFrameName): Don't warn when opening a
  4393. new window. Check non-descendant frames too.
  4394. (KWQKHTMLPartImpl::urlSelected): Pass frame name when opening window.
  4395. * kwq/WebCoreBridge.h: Add frameName argument to openNewWindowWithURL:.
  4396. 2002-09-10 Darin Adler <darin@apple.com>
  4397. Add back the APPLE_CHANGES for a few frame cases. We need to do some real testing
  4398. before we remove our alternate versions of these (but I still hope we do remove them).
  4399. * khtml/khtml_part.cpp:
  4400. (KHTMLPart::findFrame): Back to the old way.
  4401. (KHTMLPart::frameExists): Ditto.
  4402. (KHTMLPart::frames): Ditto.
  4403. 2002-09-10 Darin Adler <darin@apple.com>
  4404. - fixed 2942809 -- remove all direct access to "WebKit" defaults from WebCore
  4405. * kwq/WebCoreSettings.h: Add willLoadImagesAutomatically and userStyleSheetLocation.
  4406. * kwq/WebCoreSettings.m:
  4407. (-[WebCoreSettings _updateAllViews]): Added. Placeholder for a function that will
  4408. cause all views to update styles and layout.
  4409. (-[WebCoreSettings setStandardFontFamily:]): Call _updateAllViews if a change happened.
  4410. (-[WebCoreSettings setFixedFontFamily:]): Ditto.
  4411. (-[WebCoreSettings setSerifFontFamily:]): Ditto.
  4412. (-[WebCoreSettings setSansSerifFontFamily:]): Ditto.
  4413. (-[WebCoreSettings setCursiveFontFamily:]): Ditto.
  4414. (-[WebCoreSettings setFantasyFontFamily:]): Ditto.
  4415. (-[WebCoreSettings setMinimumFontSize:]): Ditto.
  4416. (-[WebCoreSettings setDefaultFontSize:]): Ditto.
  4417. (-[WebCoreSettings setDefaultFixedFontSize:]): Ditto.
  4418. (-[WebCoreSettings setWillLoadImagesAutomatically:]): Added.
  4419. (-[WebCoreSettings willLoadImagesAutomatically]): Added.
  4420. (-[WebCoreSettings setUserStyleSheetLocation:]): Added. Call _updateAllViews if a change happened.
  4421. (-[WebCoreSettings userStyleSheetLocation]): Added.
  4422. * WebCore.exp: Add WebCoreSettings to the exported class list.
  4423. * kwq/KWQKHTMLSettings.mm: Get settings from WebCoreSettings rather than going
  4424. directly at WebKit user defaults.
  4425. * kwq/KWQKConfigBase.mm:
  4426. (KConfig::readNumEntry): Check key.
  4427. (KConfig::readUnsignedNumEntry): Use WebCoreSettings to get the value of the
  4428. "JavaScript can open windows automatically" setting, rather than going directly
  4429. at a WebKit user default.
  4430. (KConfig::readColorEntry): Remove log message. This is implemented well enough.
  4431. - fixed 3015877 -- either wean WebCore from _web_URLFromString, or make it public API in WebFoundation
  4432. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::redirectionTimerStartedOrStopped):
  4433. Use KURL to make an NSURL rather than using [NSURL _web_URLWithString:].
  4434. * kwq/KWQKJavaAppletWidget.mm: (KJavaAppletWidget::setBaseURL): Ditto.
  4435. * kwq/WebCoreBridge.mm: (-[WebCoreBridge completeURLForDOMString:]): Ditto.
  4436. After fixing the above bugs, I noticed that I could remove the WebFoundation dependency.
  4437. * WebCore.pbproj/project.pbxproj: Remove WebFoundation framework.
  4438. * kwq/WebCoreBridge.h: Replace reportError with reportBadURL.
  4439. * kwq/KWQLoaderImpl.mm: (KWQServeRequest): Use reportBadURL instead of reportError.
  4440. This was the last bit of direct dependency on WebFoundation.
  4441. Do some preparation work for implementing "referrer".
  4442. * khtml/khtml_part.cpp: Remove lots of APPLE_CHANGES and compile more
  4443. original code. This in preparation for using the "referrer" code from KHTML.
  4444. * khtml/khtmlview.h: Ditto.
  4445. * khtml/misc/loader.cpp: Ditto.
  4446. * kwq/kdecore/kurl.h: Add things needed by code formerly inside APPLE_CHANGES.
  4447. * kwq/KWQKURL.mm: (KURL::hasRef): Ditto.
  4448. (urlcmp): Implement in a simple-minded way. Needed by some code formerly inside
  4449. APPLE_CHANGES. We can make a more full-featured version when and if we need it.
  4450. * kwq/kio/global.h: Ditto.
  4451. * kwq/kio/job.h: Ditto.
  4452. * kwq/kio/jobclasses.h: Ditto.
  4453. * kwq/KWQKjobclasses.mm: Ditto.
  4454. * kwq/kparts/browserextension.h:
  4455. * kwq/kparts/part.h: Ditto.
  4456. * kwq/qt/qstringlist.h: Ditto.
  4457. * kwq/KWQStringList.mm: (QStringList::pop_front): Ditto.
  4458. * kwq/qt/qvaluelist.h: Ditto.
  4459. * kwq/KWQValueListImpl.h: Ditto.
  4460. * kwq/KWQValueListImpl.mm: (KWQValueListImpl::isEqual): Ditto.
  4461. Other changes.
  4462. * kwq/KWQApplication.mm:
  4463. (QApplication::setOverrideCursor): Don't report an error for this, it's OK
  4464. to do nothing.
  4465. (QApplication::restoreOverrideCursor): Ditto.
  4466. 2002-09-09 Richard Williamson <rjw@apple.com>
  4467. Implemented disable images automatically (2896319).
  4468. * kwq/KWQKHTMLSettings.mm:
  4469. (KHTMLSettings::autoLoadImages):
  4470. 2002-09-09 Darin Adler <darin@apple.com>
  4471. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::nextKeyView):
  4472. Remove stray printf.
  4473. 2002-09-09 David Hyatt <hyatt@apple.com>
  4474. Switching over to the layer system for the handling of mouse
  4475. events.
  4476. * khtml/rendering/render_flow.cpp:
  4477. (RenderFlow::nodeAtPoint):
  4478. * khtml/rendering/render_image.cpp:
  4479. (RenderImage::nodeAtPoint):
  4480. * khtml/rendering/render_layer.cpp:
  4481. (RenderLayer::paint):
  4482. (RenderLayer::nodeAtPoint):
  4483. (RenderLayer::constructZTree):
  4484. * khtml/rendering/render_layer.h:
  4485. * khtml/rendering/render_object.cpp:
  4486. (RenderObject::nodeAtPoint):
  4487. * khtml/xml/dom_docimpl.cpp:
  4488. (DocumentImpl::prepareMouseEvent):
  4489. * kwq/WebCoreBridge.mm:
  4490. (-[WebCoreBridge drawRect:withPainter:]):
  4491. (-[WebCoreBridge elementAtPoint:]):
  4492. * kwq/qt/qrect.h:
  4493. 2002-09-09 Darin Adler <darin@apple.com>
  4494. * khtml/rendering/render_layer.h: Add a call to delete to fix a storage leak.
  4495. 2002-09-09 Darin Adler <darin@apple.com>
  4496. * khtml/misc/helper.cpp: (khtml::setNamedColor): Add a missing return I spotted.
  4497. * kwq/KWQApplication.mm:
  4498. * kwq/KWQChar.mm:
  4499. * kwq/KWQCompletion.mm:
  4500. * kwq/KWQCursor.mm:
  4501. * kwq/KWQEvent.mm:
  4502. * kwq/KWQFontInfo.mm:
  4503. * kwq/KWQFontMetrics.mm:
  4504. * kwq/KWQInputDialog.mm:
  4505. * kwq/KWQKConfigBase.mm:
  4506. * kwq/KWQKFileDialog.mm:
  4507. * kwq/KWQKFileItem.mm:
  4508. * kwq/KWQKGlobalSettings.mm:
  4509. * kwq/KWQKHTMLSettings.mm:
  4510. * kwq/KWQKIconLoader.mm:
  4511. * kwq/KWQKMimeType.mm:
  4512. * kwq/KWQKSimpleConfig.mm:
  4513. * kwq/KWQKjobclasses.mm:
  4514. * kwq/KWQKnetaccess.mm:
  4515. * kwq/KWQLineEdit.mm:
  4516. * kwq/KWQScrollView.mm:
  4517. * kwq/KWQString.mm:
  4518. * kwq/KWQWidget.mm:
  4519. * kwq/KWQbrowserinterface.mm:
  4520. * kwq/KWQtextstream.mm:
  4521. * kwq/KWQxml.mm:
  4522. Change various LOG(NotYetImplemented) to ERROR, FATAL, or removed them entirely.
  4523. This will help us with the task of getting every last one either "not implemented
  4524. on purpose" or implemented. I'm not sure the NotYetImplemented log channel is
  4525. useful, because it's chock full of continuous "direction not implemented" messages.
  4526. * kwq/KWQLogging.h:
  4527. * kwq/KWQLogging.m:
  4528. Removed the NeverImplemented logging channel. The distinction is no longer worth
  4529. keeping around. We use NotYetImplemented instead.
  4530. 2002-09-08 Darin Adler <darin@apple.com>
  4531. Switch over to new assertion/logging scheme.
  4532. * kwq/KWQAssertions.h: Added.
  4533. * kwq/KWQAssertions.m: Added.
  4534. * kwq/KWQLogging.h: Added.
  4535. * kwq/KWQLogging.m: Added.
  4536. * kwq/kwqdebug.h: Removed.
  4537. * kwq/kwqdebug.mm: Removed.
  4538. * WebCore.pbproj/project.pbxproj: Update to reflect above changes.
  4539. * kwq/KWQApplication.mm:
  4540. * kwq/KWQChar.mm:
  4541. * kwq/KWQColor.mm:
  4542. * kwq/KWQComboBox.mm:
  4543. * kwq/KWQCompletion.mm:
  4544. * kwq/KWQCursor.mm:
  4545. * kwq/KWQDrawUtil.mm:
  4546. * kwq/KWQEvent.mm:
  4547. * kwq/KWQFontInfo.mm:
  4548. * kwq/KWQFontMetrics.mm:
  4549. * kwq/KWQFrame.mm:
  4550. * kwq/KWQHBox.mm:
  4551. * kwq/KWQInputDialog.mm:
  4552. * kwq/KWQInvisibleButton.mm:
  4553. * kwq/KWQKConfigBase.mm:
  4554. * kwq/KWQKFileDialog.mm:
  4555. * kwq/KWQKFileItem.mm:
  4556. * kwq/KWQKGlobalSettings.mm:
  4557. * kwq/KWQKHTMLPartImpl.mm:
  4558. * kwq/KWQKHTMLSettings.mm:
  4559. * kwq/KWQKIconLoader.mm:
  4560. * kwq/KWQKJob.mm:
  4561. * kwq/KWQKLocale.mm:
  4562. * kwq/KWQKMimeType.mm:
  4563. * kwq/KWQKPartsEvent.mm:
  4564. * kwq/KWQKSimpleConfig.mm:
  4565. * kwq/KWQKURL.mm:
  4566. * kwq/KWQKWin.mm:
  4567. * kwq/KWQKWinModule.mm:
  4568. * kwq/KWQKjobclasses.mm:
  4569. * kwq/KWQKnetaccess.mm:
  4570. * kwq/KWQLabel.mm:
  4571. * kwq/KWQLineEdit.mm:
  4572. * kwq/KWQListBox.mm:
  4573. * kwq/KWQListImpl.mm:
  4574. * kwq/KWQLoaderImpl.mm:
  4575. * kwq/KWQObject.mm:
  4576. * kwq/KWQPaintDeviceMetrics.mm:
  4577. * kwq/KWQPainter.mm:
  4578. * kwq/KWQPixmap.mm:
  4579. * kwq/KWQRegion.mm:
  4580. * kwq/KWQScrollView.mm:
  4581. * kwq/KWQSlot.mm:
  4582. * kwq/KWQString.mm:
  4583. * kwq/KWQTimer.mm:
  4584. * kwq/KWQWidget.mm:
  4585. * kwq/KWQbrowserinterface.mm:
  4586. * kwq/KWQtextcodec.mm:
  4587. * kwq/KWQtextstream.mm:
  4588. * kwq/KWQxml.mm:
  4589. * kwq/WebCoreBridge.mm:
  4590. * kwq/WebCoreCookieAdapter.m:
  4591. * kwq/WebCoreHistory.m:
  4592. * kwq/WebCoreImageRendererFactory.m:
  4593. * kwq/WebCoreTextRendererFactory.m:
  4594. * kwq/WebCoreViewFactory.m:
  4595. Update to use new assertions and logging macros.
  4596. In some cases, just removed unneeded includes.
  4597. 2002-09-08 David Hyatt <hyatt@apple.com>
  4598. Landing the new layer system and turning it on for painting of
  4599. all types of positioned blocks (and for painting the root
  4600. and HTML layers as well).
  4601. Event handling is not yet using the new layer system, so you
  4602. may see oddities like DHTML menus now displaying correctly but
  4603. events not working (since the event code may still be stacking
  4604. incorrectly and think the DHTML is behind other content).
  4605. * khtml/css/cssstyleselector.cpp:
  4606. * khtml/rendering/render_box.cpp:
  4607. (RenderBox::setStyle):
  4608. (RenderBox::calcHeight):
  4609. (RenderBox::calcAbsoluteHorizontal):
  4610. * khtml/rendering/render_container.cpp:
  4611. (RenderContainer::addChild):
  4612. (RenderContainer::removeChildNode):
  4613. * khtml/rendering/render_flow.cpp:
  4614. (RenderFlow::setStyle):
  4615. (RenderFlow::printObject):
  4616. (RenderFlow::printSpecialObjects):
  4617. (RenderFlow::layout):
  4618. (RenderFlow::layoutSpecialObjects):
  4619. (RenderFlow::layoutBlockChildren):
  4620. (RenderFlow::insertSpecialObject):
  4621. * khtml/rendering/render_flow.h:
  4622. * khtml/rendering/render_html.cpp:
  4623. (RenderHtml::layout):
  4624. * khtml/rendering/render_image.cpp:
  4625. (RenderImage::printObject):
  4626. * khtml/rendering/render_layer.cpp:
  4627. (RenderLayer::updateLayerPosition):
  4628. (RenderLayer::enclosingAncestor):
  4629. (RenderLayer::addChild):
  4630. (RenderLayer::convertToLayerCoords):
  4631. (RenderLayer::paint):
  4632. (RenderLayer::constructZTree):
  4633. (RenderLayer::RenderZTreeNode::constructLayerList):
  4634. * khtml/rendering/render_layer.h:
  4635. * khtml/rendering/render_replaced.cpp:
  4636. (RenderReplaced::print):
  4637. (RenderWidget::printObject):
  4638. * khtml/rendering/render_root.cpp:
  4639. (RenderRoot::calcHeight):
  4640. (RenderRoot::layout):
  4641. (RenderRoot::printObject):
  4642. * khtml/rendering/render_root.h:
  4643. * khtml/rendering/render_style.cpp:
  4644. (StyleBoxData::StyleBoxData):
  4645. (StyleBoxData::operator==):
  4646. * khtml/rendering/render_style.h:
  4647. * kwq/WebCoreBridge.mm:
  4648. (-[WebCoreBridge drawRect:withPainter:]):
  4649. * kwq/qt/qrect.h:
  4650. 2002-09-06 Maciej Stachowiak <mjs@apple.com>
  4651. Fix another instance of the same problem:
  4652. * kwq/KWQString.mm:
  4653. (QString::detach):
  4654. 2002-09-06 Maciej Stachowiak <mjs@apple.com>
  4655. Fix optimized build:
  4656. * kwq/KWQString.mm:
  4657. (QString::detachInternal): Uselessly Initialize newData to NULL
  4658. since the compiler can't tell that FATAL won't return.
  4659. 2002-09-06 Darin Adler <darin@apple.com>
  4660. * kwq/WebCoreResourceLoader.h:
  4661. Define WebCoreResourceHandle protocol.
  4662. * kwq/kio/jobclasses.h:
  4663. * kwq/KWQKjobclasses.mm:
  4664. * kwq/KWQLoaderImpl.mm: (KWQServeRequest):
  4665. * kwq/WebCoreBridge.h:
  4666. Use WebCoreResourceHandle instead of WebResourceHandle.
  4667. * kwq/KWQString.mm: (QString::fill): Fix case where the new string
  4668. is going to be empty, but the old string was not. Before, it leaked
  4669. a handle.
  4670. * kwq/character-sets.txt: Updated to 2002-06-14 version from 2001-08-23 version.
  4671. * kwq/mac-encodings.txt: Updated encoding names to include ones gleaned from
  4672. the I18N-Charset-1.17 Perl module.
  4673. * kwq/KWQCharsets.mm: Formatting tweaks.
  4674. 2002-09-06 Richard Williamson <rjw@apple.com>
  4675. Start using khtml's 'toAdd' parameter to justify text.
  4676. * khtml/rendering/font.cpp:
  4677. (Font::drawText):
  4678. Normalize all calls to get width to minimize use of
  4679. ObjC. Will make it easier to use IMPL cache later.
  4680. * kwq/KWQFontMetrics.mm:
  4681. (QFontMetrics::width):
  4682. (QFontMetrics::floatWidth):
  4683. (QFontMetrics::floatCharacterWidth):
  4684. Pass additional 'toAdd' parameter.
  4685. * kwq/KWQPainter.mm:
  4686. (QPainter::drawText):
  4687. * kwq/qt/qpainter.h:
  4688. Remove methods now that width calls are normalized to single
  4689. method.
  4690. * kwq/WebCoreTextRenderer.h:
  4691. === Alexander-22 ===
  4692. 2002-09-05 Richard Williamson <rjw@apple.com>
  4693. Add the first child text node of the element to the
  4694. element dictionary. This will be used as a link 'label'.
  4695. * kwq/WebCoreBridge.h:
  4696. * kwq/WebCoreBridge.mm:
  4697. (-[WebCoreBridge elementAtPoint:]):
  4698. 2002-09-05 Richard Williamson <rjw@apple.com>
  4699. Removed debugging.
  4700. * khtml/khtml_part.cpp:
  4701. (KHTMLPart::closeURL):
  4702. 2002-09-05 Richard Williamson <rjw@apple.com>
  4703. Always call KHTMLPart::closeURL when a new document is loaded.
  4704. Added support for saving and restoring document state in
  4705. the back/forward list. Document state includes form data.
  4706. * khtml/khtml_part.cpp:
  4707. (KHTMLPart::openURL):
  4708. (KHTMLPart::closeURL):
  4709. (KHTMLPart::begin):
  4710. * kwq/KWQKHTMLPartImpl.h:
  4711. * kwq/KWQKHTMLPartImpl.mm:
  4712. (KWQKHTMLPartImpl::saveDocumentState):
  4713. (KWQKHTMLPartImpl::restoreDocumentState):
  4714. * kwq/WebCoreBridge.h:
  4715. * kwq/WebCoreBridge.mm:
  4716. (-[WebCoreBridge saveDocumentState]):
  4717. (-[WebCoreBridge restoreDocumentState]):
  4718. 2002-09-04 Darin Adler <darin@apple.com>
  4719. * WebCore.pbproj/project.pbxproj:
  4720. * kwq/KWQObject.mm:
  4721. * kwq/KWQPainter.mm:
  4722. * kwq/KWQTimer.mm:
  4723. * kwq/WebCoreCookieAdapter.h:
  4724. * kwq/WebCoreImageRenderer.h:
  4725. * kwq/WebCoreImageRendererFactory.h:
  4726. Tweaks, no substantive changes.
  4727. 2002-09-02 David Hyatt <hyatt@apple.com>
  4728. Tweak the damage rect testing to account for the fact that a child
  4729. layer may fall entirely outside the bounds of its parent layer.
  4730. * khtml/rendering/render_layer.cpp:
  4731. (RenderLayer::constructZTree):
  4732. 2002-08-31 Darin Adler <darin@apple.com>
  4733. - fixed 3038336 -- repro crash in QTextDecoder trying to display UTF-16 file
  4734. * kwq/mac-encodings.txt: Hook up the UTF-16 encoding to the name iso-10646-ucs-2.
  4735. We have a long way to go to get this right. There are almost certainly going to
  4736. be other bugs with 16-bit character pages.
  4737. * kwq/KWQKHTMLSettings.mm: (KHTMLSettings::encoding): Just return "latin1",
  4738. not "NSISOLatin1StringEncoding".
  4739. * kwq/KWQString.mm: (QString::fromStringWithEncoding): Pass true for the
  4740. "pay attention to BOM" flag.
  4741. * khtml/rendering/render_object.cpp: Take out unneeded APPLE_CHANGES.
  4742. 2002-08-30 Ken Kocienda <kocienda@apple.com>
  4743. Fixed a problem in this function where broken UTF-8 would cause a crash.
  4744. * WebCore.pbproj/project.pbxproj:
  4745. * kwq/KWQString.mm:
  4746. (QString::fromStringWithEncoding)
  4747. 2002-08-30 Richard Williamson <rjw@apple.com>
  4748. Removed debugging log.
  4749. * kwq/KWQString.mm:
  4750. (QString::fromStringWithEncoding):
  4751. 2002-08-30 Richard Williamson <rjw@apple.com>
  4752. Made decoder more robust wrt nulls in content. Changed use
  4753. of QCString to null safe QString rather than modify
  4754. content.
  4755. * khtml/misc/decoder.cpp:
  4756. (Decoder::decode):
  4757. (Decoder::flush):
  4758. * khtml/misc/decoder.h:
  4759. * kwq/KWQString.mm:
  4760. (QString::fromStringWithEncoding):
  4761. 2002-08-30 Darin Adler <darin@apple.com>
  4762. - fixed 3027407 -- Console error refers to closed bug
  4763. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::bridgeForFrameName):
  4764. Update bug number from 2959902 to 2942073.
  4765. - fixed 3027532 -- can't tab into or out of textareas
  4766. * kwq/KWQTextArea.h: Add setFont:.
  4767. * kwq/KWQTextArea.mm:
  4768. (-[KWQTextArea _createTextView]): Make a KWQTextAreaTextView.
  4769. (-[KWQTextArea textDidChange:]): Send text changed messages when the text
  4770. is changed, not when done editing. I did this for KWQNSTextField a while ago;
  4771. it's tragic that AppKit leads us to have two separate classes for these nearly
  4772. identical purposes.
  4773. (-[KWQTextArea setFont:]): Call setFont on the text view.
  4774. (-[KWQTextArea becomeFirstResponder]): Call makeFirstResponder on the text view.
  4775. (-[KWQTextArea nextKeyView]): Do that voodoo, just like KWQNSTextField.
  4776. (-[KWQTextArea previousKeyView]): Ditto.
  4777. (-[KWQTextArea nextValidKeyView]): Ditto.
  4778. (-[KWQTextArea previousValidKeyView]): Ditto.
  4779. (-[KWQTextAreaTextView insertTab:]): Select the next key view. We don't get this
  4780. automatically because this is not a field editor. But being a field editor leads
  4781. to other unwanted behavior.
  4782. (-[KWQTextAreaTextView insertBacktab:]): Ditto.
  4783. (-[KWQTextAreaTextView becomeFirstResponder]): Select all on entry.
  4784. (-[KWQTextAreaTextView shouldDrawInsertionPoint]): Don't draw insertion point
  4785. when we are not the first responder.
  4786. (-[KWQTextAreaTextView selectedTextAttributes]): Don't draw the selection when
  4787. we are not the first responder.
  4788. * kwq/qt/qtextedit.h:
  4789. * kwq/KWQTextEdit.mm: (QTextEdit::setFont): Call -[KWQTextArea setFont:].
  4790. (QTextEdit::focusPolicy): Always return TabFocus, because the top level widget
  4791. is not an NSControl so QWidget::focusPolicy does not suffice.
  4792. * kwq/qt/qwidget.h: Make focusPolicy virtual.
  4793. * kwq/qt/qfont.h:
  4794. * kwq/KWQFont.mm: (QFont::getNSFont): Add this helper function
  4795. so we don't have to repeat this in multiple places.
  4796. * kwq/KWQLineEdit.mm: (QLineEdit::setFont): Use QFont::getNSFont.
  4797. * force-clean-timestamp: For you poor bastards who aren't using the new
  4798. Project Builder yet.
  4799. 2002-08-30 Darin Adler <darin@apple.com>
  4800. * WebCore.pbproj/project.pbxproj: Allowed the new Project Builder to put in
  4801. encodings for each file.
  4802. 2002-08-29 David Hyatt <hyatt@apple.com>
  4803. Begin connecting the layer system. The root box and the <html>
  4804. box now construct layers for themselves. Those layers are
  4805. connected in a layer tree properly and they correctly update
  4806. their positions.
  4807. Implemented all the code for layer construction and for keeping
  4808. the layer tree in sync with the render object tree.
  4809. The goal is to get the layer tree fully constructed and correct
  4810. (with lots of testing) before actually switching over to it for
  4811. painting.
  4812. This change requires a clean of WebCore.
  4813. * force-clean-timestamp:
  4814. * khtml/rendering/render_box.cpp:
  4815. (RenderBox::RenderBox):
  4816. (RenderBox::~RenderBox):
  4817. (RenderBox::setPos):
  4818. (RenderBox::positionChildLayers):
  4819. * khtml/rendering/render_box.h:
  4820. * khtml/rendering/render_container.cpp:
  4821. (RenderContainer::~RenderContainer):
  4822. (RenderContainer::addChild):
  4823. (RenderContainer::removeChildNode):
  4824. * khtml/rendering/render_container.h:
  4825. * khtml/rendering/render_html.cpp:
  4826. (RenderHtml::RenderHtml):
  4827. * khtml/rendering/render_layer.cpp:
  4828. (RenderLayer::updateLayerPosition):
  4829. * khtml/rendering/render_layer.h:
  4830. * khtml/rendering/render_object.h:
  4831. * khtml/rendering/render_root.cpp:
  4832. (RenderRoot::RenderRoot):
  4833. === Alexander-21 ===
  4834. 2002-08-28 David Hyatt <hyatt@apple.com>
  4835. Implement the flattening algorithm that walks the layer
  4836. hierarchy and produces the correct layer list for back
  4837. to front painting. (Still under construction. Not used yet.)
  4838. * khtml/rendering/render_layer.cpp:
  4839. (sortByZOrder):
  4840. (RenderLayer::RenderZTreeNode::constructLayerList):
  4841. * khtml/rendering/render_layer.h:
  4842. 2002-08-28 Richard Williamson <rjw@apple.com>
  4843. More tweaks to ccs.
  4844. Added underline to visited links.
  4845. Made outline for active normal and visited links gray.
  4846. * khtml/css/html4.css:
  4847. 2002-08-28 Richard Williamson <rjw@apple.com>
  4848. Fixed outline of for active link style.
  4849. * khtml/css/html4.css:
  4850. * kwq/KWQPainter.mm:
  4851. (QPainter::drawLine):
  4852. 2002-08-28 David Hyatt <hyatt@apple.com>
  4853. Adding knowledge to the style system of auto z-indices. The old
  4854. code doesn't use this yet, but the new layering code will.
  4855. Also wrote the ztree construction function (not used yet) and
  4856. stubbed out the display list flattening routines.
  4857. * khtml/rendering/render_layer.cpp:
  4858. (RenderLayer::convertToLayerCoords):
  4859. (RenderLayer::constructZTree):
  4860. (RenderLayer::constructLayerList):
  4861. * khtml/rendering/render_layer.h:
  4862. * khtml/rendering/render_style.cpp:
  4863. (StyleBoxData::StyleBoxData):
  4864. * khtml/rendering/render_style.h:
  4865. 2002-08-28 Darin Adler <darin@apple.com>
  4866. - fixed 2977587 -- JavaScript code that reads the values of text areas
  4867. misses the last line if no trailing CR
  4868. * kwq/KWQTextArea.mm: (-[KWQTextArea paragraphs]):
  4869. 2002-08-28 David Hyatt <hyatt@apple.com>
  4870. Putting design notes and API details for the layering system
  4871. into the header file.
  4872. * khtml/rendering/render_layer.h:
  4873. 2002-08-28 Darin Adler <darin@apple.com>
  4874. * kwq/mac-encodings.txt: Sort all the character set names alphabetically, and use all lower case.
  4875. * kwq/make-charset-table.pl: Require lower-case sorted lists of character set names.
  4876. 2002-08-28 Darin Adler <darin@apple.com>
  4877. - fixed 3032148 -- Button not disabled in page
  4878. * kwq/KWQWidget.mm: (QWidget::setEnabled): Call setEnabled:
  4879. on the NSView if it implements it.
  4880. 2002-08-28 Darin Adler <darin@apple.com>
  4881. - fixed 3030212 -- Problems rendering pages that specify "x-mac-roman" character
  4882. set (like our Danish help pages)
  4883. * kwq/mac-encodings.txt: Added x-mac-roman as an alias for macintosh.
  4884. 2002-08-27 Darin Adler <darin@apple.com>
  4885. * force-clean-timestamp: Dave's changes require a full build. I found out the
  4886. hard way, by debugging for a while.
  4887. 2002-08-27 Richard Williamson <rjw@apple.com>
  4888. * kwq/WebCoreBridge.h:
  4889. Fixed constants to conform to WebKit. These need to be shared.
  4890. 2002-08-27 David Hyatt <hyatt@apple.com>
  4891. Change relative positioned blocks so that they are treated as special objects and
  4892. painted last along with absolutely positioned blocks and floaters. Note that the
  4893. entire special object system is fundamentally flawed, and it needs to be replaced
  4894. with a real layering subsystem.
  4895. This checkin at least gets relatively positioned divs painting correctly some of
  4896. the time (in the cases where the containing blocks of absolute and relative positioned
  4897. divs happen to be the same). It does not, however, deal with the problem of ensuring
  4898. correct stacking of positioned elements with different containing blocks.
  4899. render_layer.h and .cpp include a new implementation (not used yet, just the beginnings)
  4900. of a layering subsystem that I am going to be working on over the next few days
  4901. that will eventually be responsible for handling event dispatching and painting and that
  4902. will also understand how to deal with form controls and other objects that have Cocoa
  4903. views.
  4904. * WebCore.pbproj/project.pbxproj:
  4905. * khtml/rendering/render_box.cpp:
  4906. (RenderBox::RenderBox):
  4907. * khtml/rendering/render_box.h:
  4908. * khtml/rendering/render_flow.cpp:
  4909. (RenderFlow::printObject):
  4910. (RenderFlow::printSpecialObjects):
  4911. (RenderFlow::layoutSpecialObjects):
  4912. (RenderFlow::layoutBlockChildren):
  4913. (RenderFlow::insertSpecialObject):
  4914. * khtml/rendering/render_flow.h:
  4915. * khtml/rendering/render_layer.cpp: Added.
  4916. (RenderLayer::RenderLayer):
  4917. (RenderLayer::~RenderLayer):
  4918. (RenderLayer::addChild):
  4919. (RenderLayer::removeChild):
  4920. * khtml/rendering/render_layer.h: Added.
  4921. 2002-08-27 Darin Adler <darin@apple.com>
  4922. - fixed 3031952 -- null-dereference in dispatchToUInt32 closing window
  4923. * khtml/ecma/kjs_window.cpp: (History::getValueProperty):
  4924. Use Undefined(), not Value() for an error result. Value() is pure evil.
  4925. 2002-08-27 Darin Adler <darin@apple.com>
  4926. - fixed 3021018 -- Crash selecting from popup just after choosing radio button
  4927. * kwq/KWQComboBox.mm:
  4928. (QComboBox::QComboBox): Pass the widget in when creating the cell.
  4929. (-[KWQPopUpButtonCell initWithWidget:]): Store a widget pointer.
  4930. (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]): Get to the bridge
  4931. and tell it to defer loading while we track the mouse.
  4932. * kwq/KWQKHTMLPartImpl.h: Add bridgeForWidget.
  4933. * kwq/KWQKHTMLPartImpl.mm:
  4934. (KWQKHTMLPartImpl::nextKeyViewForWidget): Use nodeForWidget and partForNode.
  4935. (KWQKHTMLPartImpl::bridgeForWidget): Added. Use nodeForWidget and partForNode.
  4936. (KWQKHTMLPartImpl::partForNode): Move code here from nextKeyViewForWidget.
  4937. (KWQKHTMLPartImpl::nodeForWidget): Move code here from nextKeyViewForWidget.
  4938. * kwq/WebCoreBridge.h: Add defersLoading and setDefersLoading. Both are already
  4939. in WebKit.
  4940. 2002-08-26 David Hyatt <hyatt@apple.com>
  4941. Fix for 3026006. Ensure that TABLES inside <div>s with align="right"
  4942. are properly positioned. <div align="right"> was completely
  4943. unimplemented. This patch implements it for the common cases
  4944. (nested divs, tables within divs, and paragraphs).
  4945. * khtml/css/html4.css:
  4946. 2002-08-26 Darin Adler <darin@apple.com>
  4947. * khtml/rendering/render_list.cpp:
  4948. Make file match the original KDE more closely (no substantive change).
  4949. 2002-08-26 Richard Williamson <rjw@apple.com>
  4950. * WebCore.exp:
  4951. Added WebCoreHistory
  4952. * WebCore.pbproj/project.pbxproj:
  4953. Added WebCoreHistory
  4954. * kwq/KWQKHistoryProvider.mm:
  4955. Use WebCoreHistory to determine visited link.
  4956. * kwq/WebCoreHistory.h: Added.
  4957. * kwq/WebCoreHistory.m: Added.
  4958. Stage 1. Use WebKit's WebHistory. Writing
  4959. of history and initialization still handled
  4960. by Alex until stage 2.
  4961. (+[WebCoreHistory setSharedHistory:]):
  4962. (+[WebCoreHistory sharedHistory]):
  4963. (-[WebCoreHistory containsURL:]):
  4964. * kwq/KWQString.mm:
  4965. (QString::compare):
  4966. Optimization, use strcmp when both src and dst have valid ascii.
  4967. 2002-08-26 David Hyatt <hyatt@apple.com>
  4968. - Patch drawText to understand right-aligned drawing.
  4969. - Fixed <ul> bullets so that they position properly.
  4970. - Fixed bugs with horizontal and vertical positioning of
  4971. <ol> bullets.
  4972. * khtml/rendering/render_list.cpp:
  4973. (RenderListMarker::printObject):
  4974. * kwq/KWQPainter.mm:
  4975. (QPainter::drawText):
  4976. 2002-08-24 Darin Adler <darin@apple.com>
  4977. - fixed 3032072 -- Crash on reload in DOM::DocumentImpl::~DocumentImpl [unified]()
  4978. This was a tough one to debug.
  4979. Turned out to be a subtle bug in our new QConstString implementation.
  4980. * kwq/KWQString.mm:
  4981. (QStringData::makeAscii): Don't invalidate the Unicode buffer unless the ASCII
  4982. buffer is taking over the internal buffer from the Unicode. In other cases, it's
  4983. important not to invalidate the Unicode because it can result in the Unicode being
  4984. freed and re-created when unicode() is called, which is disastrous in the QConstString
  4985. case because we can't free the Unicode.
  4986. (QStringData::makeUnicode): Make the corresponding change for ASCII too. In this
  4987. case, it's just an optimization, not a bug fix.
  4988. (QString::insert), (QString::remove), (QString::fill), (QString::operator+=):
  4989. Mark the other string invalid whenever we modify either the ASCII or the Unicode
  4990. string. This was handled correctly for some operations before, but not all, and it
  4991. now matters because makeAscii and makeUnicode will now allow this state.
  4992. Fixed a separate QString problem; I think I may have introduced this one.
  4993. * kwq/KWQString.mm:
  4994. (QString::getNSString): Since by ASCII, we actually mean ISO Latin 1, we can't use
  4995. [NSString stringWithCString:]. Use CFStringCreateWithCString instead, pass
  4996. CFStringCreateWithCString as the encoding, and use autorelease. We shouldn't really
  4997. use the term ASCII in this class for the 8-bit-per-character buffer. Something more
  4998. like Latin1 would be a more accurate way to refer to it. Maybe I'll do that renaming
  4999. after talking to Richard about it on Monday.
  5000. Fixed a small storage leak.
  5001. * khtml/css/css_valueimpl.cpp: (CSSPrimitiveValueImpl::cleanup): Added braces to
  5002. fix obviously-incorrect if/else grouping.
  5003. 2002-08-23 Darin Adler <darin@apple.com>
  5004. Got the kurl-test in the Tests directory working again.
  5005. * kwq/KWQKURL.mm: (KURL::KURL): Fixed problem where relative path resolution code
  5006. for "../" could eat up the host name too, treating it as part of the path.
  5007. 2002-08-23 Darin Adler <darin@apple.com>
  5008. - fixed 3032058 -- Links on local developer doc pages all broken (all local files?)
  5009. * kwq/KWQKURL.mm: (KURL::getNSURL): Re-added a workaround for CFURL bug 2908969.
  5010. We have to hack to make NSURL take "file:/" URLs.
  5011. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::nextKeyViewInFrame): Add a nil check.
  5012. I ran into this because my frame failed to load.
  5013. 2002-08-23 Maciej Stachowiak <mjs@apple.com>
  5014. A few more KURL changes that reduce it down to background noise
  5015. level.
  5016. For me this gave another 1-2% improvement on cvs-base.
  5017. * kwq/kdecore/kurl.h:
  5018. * kwq/KWQKURL.mm:
  5019. (KURL::KURL): In the relative constructor, do all work in a char
  5020. array for the relative path case, and leave it up to ::parse to
  5021. create a QString.
  5022. (KURL::parse): Do all work in a char array, only creating a
  5023. QString at the end if needed. Also, take an optional pointer to
  5024. the QString that the char * was created from, and if the final
  5025. processed URL is the same as the original, assign the original
  5026. instead of creating a new QString.
  5027. (KURL::setProtocol): Adjust for prase() interface change.
  5028. (KURL::setHost): Likewise.
  5029. (KURL::setPort): Likewise.
  5030. (KURL::setRef): Likewise.
  5031. (KURL::setQuery): Likewise.
  5032. (KURL::setPath): Likewise.
  5033. (appendEscapingBadChars): Instead of taking and returning
  5034. a QString like the old escapeBadChars, copy from and write into
  5035. existing C string buffers.
  5036. 2002-08-22 Darin Adler <darin@apple.com>
  5037. * force-clean-timestamp: Without this, I crash on startup.
  5038. 2002-08-22 Maciej Stachowiak <mjs@apple.com>
  5039. Brand new KURL implementation which avoids CFURL, CFString, and
  5040. all that other allocation-happy goodness and instead does as much
  5041. work as possible with raw ASCII buffers.
  5042. For me this gave a ~5% performance improvement on cvs-base.
  5043. * kwq/KWQKURL.mm:
  5044. (KURL::KURL):
  5045. (KURL::hasPath):
  5046. (KURL::protocol):
  5047. (KURL::host):
  5048. (KURL::port):
  5049. (KURL::pass):
  5050. (KURL::user):
  5051. (KURL::ref):
  5052. (KURL::query):
  5053. (KURL::path):
  5054. (KURL::setProtocol):
  5055. (KURL::setHost):
  5056. (KURL::setPort):
  5057. (KURL::setRef):
  5058. (KURL::setQuery):
  5059. (KURL::setPath):
  5060. (KURL::prettyURL):
  5061. (KURL::decode_string):
  5062. (escapeBadChars):
  5063. (KURL::parse):
  5064. (KURL::getNSURL):
  5065. * kwq/kdecore/kurl.h:
  5066. * khtml/khtml_part.cpp:
  5067. (KHTMLPart::end): Don't call KURL::clearCaches() any more.
  5068. 2002-08-22 Darin Adler <darin@apple.com>
  5069. * kwq/KWQButton.mm: (QButton::~QButton): Disconnect the view
  5070. from the widget by doing setTarget:nil.
  5071. * kwq/KWQComboBox.mm: (QComboBox::~QComboBox): Ditto.
  5072. 2002-08-22 David Hyatt <hyatt@apple.com>
  5073. Add vertical margins for checkboxes and radios. A later rule
  5074. in the file was overriding my earlier attempt to set up these margins.
  5075. * khtml/css/html4.css:
  5076. 2002-08-22 Richard Williamson <rjw@apple.com>
  5077. New faster char * append (actually insert) for mjs.
  5078. * kwq/KWQString.mm:
  5079. (QString::insert):
  5080. * kwq/qt/qstring.h:
  5081. 2002-08-22 Darin Adler <darin@apple.com>
  5082. Some small QString improvements.
  5083. * kwq/qt/qstring.h: Add printf attribute to sprintf member function.
  5084. * kwq/KWQString.mm:
  5085. Remove extra \n characters from QSTRING_FAILURE calls. Change some
  5086. fprintf to QSTRING_FAILURE. Change some QSTRING_FAILURE to KWQ_ASSERT.
  5087. (QStringData::makeAscii): Fix bug where it would update _maxAscii
  5088. with a new size even when it didn't allocate a new buffer.
  5089. (QStringData::makeUnicode): Fix bug where it would update _maxUnicode
  5090. with a new size even when it didn't allocate a new buffer.
  5091. (QString::utf8): Fix bug where it assumed the UTF-8 form of a string
  5092. has the same length as the Unicode version. Also save one allocation
  5093. by doing it right into the QCString.
  5094. (QString::local8Bit): Just call utf8().
  5095. (QString::setNum): Have all these call our sprintf.
  5096. (QString::sprintf): Format once to get the length. Then do the second
  5097. format right into the string buffer. This way we don't have to do
  5098. any allocation at all, nor use CFString.
  5099. === Alexander-20 ===
  5100. 2002-08-22 Darin Adler <darin@apple.com>
  5101. Fixed a one-click crasher that Ken and Don told me about.
  5102. * kwq/KWQObject.mm: (QObject::QObject): Initialize m_eventFilterObject.
  5103. 2002-08-21 Darin Adler <darin@apple.com>
  5104. - fixed 3021908 -- text areas should be plain text only
  5105. * kwq/KWQTextArea.mm:
  5106. (-[KWQTextArea _createTextView]): setRichText:NO
  5107. (-[KWQTextArea dealloc]): Release the text view so we don't leak.
  5108. 2002-08-21 Darin Adler <darin@apple.com>
  5109. * kwq/KWQNSViewExtras.m: (-[NSClipView _KWQ_scrollRectToVisible:inView:]):
  5110. Use bounds, not visibleRect. Seems to work better.
  5111. 2002-08-21 John Sullivan <sullivan@apple.com>
  5112. - commented out (with FIXME 2935687) the code that was advertising in
  5113. the status bar that shift-command would open a link behind the
  5114. current window, since it doesn't.
  5115. * kwq/KWQKHTMLPartImpl.mm:
  5116. (KWQKHTMLPartImpl::overURL):
  5117. 2002-08-21 Darin Adler <darin@apple.com>
  5118. Fix for two problems with password fields.
  5119. 1) Return wasn't working.
  5120. 2) They were wrapping instead of scrolling.
  5121. * kwq/KWQNSTextField.mm:
  5122. (-[KWQNSTextField setUpTextField:]): Shared initialization, needed by both
  5123. the text field and the secure field. This includes the two things we needed
  5124. for the password text field; wiring up action properly and setScrollable:YES.
  5125. (-[KWQNSTextField initWithFrame:]): Use setUpTextField.
  5126. (-[KWQNSTextField setPasswordMode:]): Use setUpTextField.
  5127. 2002-08-21 David Hyatt <hyatt@apple.com>
  5128. Fix for 3015372, tables and blocks nested inside other tables
  5129. don't center. This fixes a lot of sites, from the forum
  5130. sites to the www.ve3d.com voodooextreme site.
  5131. * khtml/html/html_tableimpl.cpp:
  5132. (HTMLTablePartElementImpl::parseAttribute):
  5133. 2002-08-21 Darin Adler <darin@apple.com>
  5134. - fixed 3027927 -- selected text fields do not cause the web view to scroll to reveal them
  5135. * kwq/KWQNSTextField.mm:
  5136. (-[KWQNSTextField becomeFirstResponder]): Call [self _KWQ_scrollFrameToVisible].
  5137. (-[KWQSecureTextField becomeFirstResponder]): Call [self _KWQ_scrollFrameToVisible].
  5138. * kwq/KWQNSViewExtras.h: Added. New scrolling functions.
  5139. * kwq/KWQNSViewExtras.m: Added. New scrolling functions.
  5140. * WebCore.pbproj/project.pbxproj: Added KWQNSViewExtras.
  5141. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::nextKeyViewInFrame):
  5142. Make sure superview and position is set up properly before we try to tab to something.
  5143. * kwq/KWQWidget.mm: (QWidget::setFocus):
  5144. Make sure superview and position is set up properly before we try to focus something.
  5145. Unrelated change.
  5146. * kwq/KWQInvisibleButton.h:
  5147. * kwq/KWQInvisibleButton.mm:
  5148. Add KWQ prefix to the name of the private Objective C class to avoid potential conflicts.
  5149. 2002-08-21 Darin Adler <darin@apple.com>
  5150. Implemented baseline alignment for form elements. We decided that this was better
  5151. than what we're currently doing. But it will look even better when the font of the
  5152. text field matches the font of the surrounding text, so we should consider that.
  5153. I also nudged the text down one pixel in popup menus, to match buttons. I think we
  5154. probably should suggest that this be done in Aqua by default (buttons and popup menus
  5155. already match in the normal size; this is the small size).
  5156. * khtml/rendering/render_form.h: Remove some APPLE_CHANGES.
  5157. * khtml/rendering/render_form.cpp:
  5158. (RenderFormElement::baselinePosition): Use the widget's concept of the baseline
  5159. position (the new QWidget::baselinePosition function).
  5160. (RenderButton::baselinePosition): Just call the inherited version.
  5161. (RenderSubmitButton::baselinePosition): Remove our ifdef because we want what the
  5162. original code said, which was just calling the inherited version.
  5163. (RenderLineEdit::baselinePosition): Removed our added method since we want to just
  5164. call the inherited version.
  5165. (RenderSelect::baselinePosition): Just call the inherited version for the pop up
  5166. menu case. For the list box, just left the old code alone until someone can take
  5167. a look at it.
  5168. * kwq/qt/qwidget.h: Added new virtual baselinePosition function.
  5169. * kwq/KWQWidget.mm: (QWidget::baselinePosition): Default for baseline is the bottom.
  5170. * kwq/qt/qlineedit.h:
  5171. * kwq/KWQLineEdit.mm:
  5172. (QLineEdit::baselinePosition): Compute the baseline based on how NSTextField does it.
  5173. Compared to the other widgets this was easy, because the cell's drawingRectForBounds
  5174. gives you the place where the top of the line is. It does use defaultLineHeightForFont,
  5175. which is not used by other widgets, but that's no real problem.
  5176. * kwq/qt/qbutton.h:
  5177. * kwq/KWQButton.mm: Moved all the code that's push-button specific into QPushButton.
  5178. * kwq/qt/qpushbutton.h:
  5179. * kwq/KWQPushButton.mm:
  5180. (QPushButton::QPushButton): Set the bezel style of the button.
  5181. (QPushButton::sizeHint): Moved here from QButton.
  5182. (QPushButton::frameGeometry): Moved here from QButton.
  5183. (QPushButton::setFrameGeometry): Moved here from QButton.
  5184. (QPushButton::baselinePosition): Compute the baseline based on how NSButton does it.
  5185. The rule for the style of button we use is "centered vertically in the available space,
  5186. offset by kThemePushButtonSmallTextOffset", so I had to hardcode the value of
  5187. kThemePushButtonSmallTextOffset; I called it VERTICAL_FUDGE_FACTOR (2).
  5188. * kwq/qt/qcombobox.h:
  5189. * kwq/KWQComboBox.mm:
  5190. (-[KWQPopUpButtonCell drawInteriorWithFrame:inView:]): Custom cell class that nudges
  5191. the text down one pixel.
  5192. (QComboBox::QComboBox): Attach the custom cell class.
  5193. (QComboBox::baselinePosition): Compute the baseline based on how NSPopUpButton does it.
  5194. The rule for the style of pop-up button we use is "CELLOFFSET pixels down from the top",
  5195. so I had to hardcode the value of CELLOFFSET; I called it VERTICAL_FUDGE_FACTOR (2).
  5196. * force-clean-timestamp: Yes, again.
  5197. 2002-08-20 Darin Adler <darin@apple.com>
  5198. - fix 3028936 -- fields are not submitting the correct data if they are selected
  5199. when you submit
  5200. * kwq/KWQNSTextField.mm: (-[KWQNSTextField controlTextDidChange:]):
  5201. Call widget->textChanged and set edited to true here. The old code had two problems.
  5202. First, it only sent textChanged from controlTextDidEndEditing. Second, it overrode
  5203. textDidChange without calling super, preventing controlTextDidChange from being
  5204. sent to the delegate.
  5205. 2002-08-20 David Hyatt <hyatt@apple.com>
  5206. Fix background positioning so that it works with table cells.
  5207. This fixes the tabs on www.msn.com.
  5208. * khtml/rendering/render_box.cpp:
  5209. (RenderBox::printBackground):
  5210. * khtml/rendering/render_table.h:
  5211. 2002-08-20 Darin Adler <darin@apple.com>
  5212. WebCore part of support for tabbing into and out of the toolbar.
  5213. * kwq/KWQKHTMLPartImpl.h: Renamed static nextKeyView to nextKeyViewForWidget.
  5214. Added nextKeyViewInFrameHierarchy.
  5215. * kwq/KWQKHTMLPartImpl.mm:
  5216. (KWQKHTMLPartImpl::nextKeyViewInFrameHierarchy): New name for the old nextKeyView.
  5217. (KWQKHTMLPartImpl::nextKeyView): Added. Does all the logic for handling views outside
  5218. the frame hierarchy that used to be only in the static nextKeyView.
  5219. (KWQKHTMLPartImpl::nextKeyViewForWidget): New name for the static nextKeyView, which
  5220. now just does the widget-specific bits. Removed null check in here that's no longer needed.
  5221. * kwq/KWQNSTextField.mm: Update to call nextKeyViewForWidget.
  5222. * kwq/WebCoreBridge.h: Added nextKeyViewInsideWebViews, previousKeyViewInsideWebViews,
  5223. nextKeyViewOutsideWebViews, and previousKeyViewOutsideWebViews.
  5224. * kwq/WebCoreBridge.mm:
  5225. (-[WebCoreBridge nextKeyViewInsideWebViews]): Call nextKeyViewInFrameHierarchy.
  5226. (-[WebCoreBridge previousKeyViewInsideWebViews]): Call nextKeyViewInFrameHierarchy.
  5227. Introduced QString to sprong. See <http://www.goat.demon.co.uk/sprong.html>.
  5228. A few other tweaks to QString API; wean it from mutable strings.
  5229. * kwq/qt/qstring.h:
  5230. * kwq/KWQString.mm: Sprongify it.
  5231. (QString::setBufferFromCFString): Add a fixed-size buffer to avoid malloc.
  5232. (QString::getCFString): Replace getCFMutableString with this.
  5233. (QString::getNSString): Use NSString directly.
  5234. * kwq/KWQDictImpl.mm:
  5235. * kwq/KWQKURL.mm:
  5236. * kwq/KWQStringList.mm:
  5237. * kwq/KWQtextcodec.mm:
  5238. * kwq/WebCoreBridge.mm:
  5239. Use getCFString, not getCFMutableString.
  5240. 2002-08-19 Darin Adler <darin@apple.com>
  5241. * force-clean-timestamp: Richard's changes require a clean build.
  5242. 2002-08-19 Richard Williamson <rjw@apple.com>
  5243. QString rewrite. Much faster now.
  5244. QString has an inline rep, QStringData, which
  5245. has an inline character buffer. reps are
  5246. referenced indirectly via a handle. inline
  5247. reps are detached when necessary. Typical
  5248. stack based usage requires no allocations
  5249. for small string. Attempts are made to avoid
  5250. costly conversions between ascii and unicode.
  5251. Extensive diagnostics can be enable by
  5252. defining QSTRING_DEBUG_ALLOCATIONS and calling
  5253. _printQStringAllocationStatistics().
  5254. There appear to be a few small lingering leaks
  5255. that I need to track down.
  5256. * WebCore-tests.exp:
  5257. Added symbols for qstring-test.cpp.
  5258. * khtml/css/cssstyleselector.cpp:
  5259. Removed old string optimization hack.
  5260. * kwq/KWQString.mm:
  5261. Rewrite.
  5262. (_isOnStack):
  5263. (countInstance):
  5264. (allocatedBuffers):
  5265. (ALLOC_CHAR):
  5266. (REALLOC_CHAR):
  5267. (DELETE_CHAR):
  5268. (ALLOC_QCHAR):
  5269. (REALLOC_QCHAR):
  5270. (DELETE_QCHAR):
  5271. (_printQStringAllocationStatistics):
  5272. (ucstrcmp):
  5273. (ucstrncmp):
  5274. (ucstrnicmp):
  5275. (ok_in_base):
  5276. (QStringData::QStringData):
  5277. (QStringData::initialize):
  5278. (QStringData::operator new):
  5279. (QStringData::operator delete):
  5280. (QString::makeSharedNullHandle):
  5281. (QString::makeSharedNull):
  5282. (QStringData::~QStringData):
  5283. (QStringData::ascii):
  5284. (QStringData::increaseAsciiSize):
  5285. (QStringData::unicode):
  5286. (QStringData::increaseUnicodeSize):
  5287. (QStringData::makeAscii):
  5288. (QStringData::makeUnicode):
  5289. (QString::setBufferFromCFString):
  5290. (QString::fromStringWithEncoding):
  5291. (QString::fromCFMutableString):
  5292. (QString::fromCFString):
  5293. (QString::fromNSString):
  5294. (QString::getCFMutableString):
  5295. (QString::getNSString):
  5296. (QString::~QString):
  5297. (QString::QString):
  5298. (QString::operator=):
  5299. (QString::at):
  5300. (QString::unicode):
  5301. (QString::compare):
  5302. (QString::startsWith):
  5303. (QString::endsWith):
  5304. (QString::latin1):
  5305. (QString::isNull):
  5306. (QString::find):
  5307. (QString::findRev):
  5308. (QString::contains):
  5309. (QString::toShort):
  5310. (QString::toUShort):
  5311. (QString::toInt):
  5312. (QString::toUInt):
  5313. (QString::toLong):
  5314. (QString::toULong):
  5315. (QString::toDouble):
  5316. (QString::findArg):
  5317. (QString::arg):
  5318. (QString::left):
  5319. (QString::right):
  5320. (QString::mid):
  5321. (QString::copy):
  5322. (QString::lower):
  5323. (QString::stripWhiteSpace):
  5324. (QString::simplifyWhiteSpace):
  5325. (QString::deref):
  5326. (QString::setUnicode):
  5327. (QString::setLatin1):
  5328. (QString::sprintf):
  5329. (QString::append):
  5330. (QString::insert):
  5331. (QString::detachInternal):
  5332. (QString::detach):
  5333. (QString::remove):
  5334. (QString::replace):
  5335. (QString::forceUnicode):
  5336. (QString::setLength):
  5337. (QString::truncate):
  5338. (QString::fill):
  5339. (QString::operator+=):
  5340. (QString::convertToQCString):
  5341. (operator==):
  5342. (QConstString::QConstString):
  5343. (QConstString::~QConstString):
  5344. (_initializeHandleNodeBlock):
  5345. (_allocatePageNode):
  5346. (_initializeHandleNodes):
  5347. (_allocateNode):
  5348. (allocateHandle):
  5349. (freeHandle):
  5350. * kwq/qt/qstring.h:
  5351. Rewrite
  5352. 2002-08-19 Maciej Stachowiak <mjs@apple.com>
  5353. * Makefile.am: Added new mechanism to clean only the objects that
  5354. depend on JavaScript.
  5355. * force-js-clean-timestamp: Touched since I changed JSC just now.
  5356. * .cvsignore: Ignore previous-js-clean-timestamp.
  5357. 2002-08-19 Darin Adler <darin@apple.com>
  5358. Fixed tab cycle on slashdot.org and elsewhere by being stricter about what is
  5359. included in the tab cycle.
  5360. * kwq/KWQWidget.mm: (QWidget::focusPolicy): Use the same rule as AppKit.
  5361. 2002-08-19 David Hyatt <hyatt@apple.com>
  5362. Tweak baselines to look a little better for form controls.
  5363. This will be redone by Darin to really baseline align... this
  5364. is just temporary.
  5365. Also adding 3px margins to <input> and <textarea> and <select>.
  5366. * khtml/css/html4.css:
  5367. * khtml/rendering/render_form.cpp:
  5368. (RenderButton::baselinePosition):
  5369. (RenderSelect::baselinePosition):
  5370. 2002-08-19 Darin Adler <darin@apple.com>
  5371. - fixed 3027791 -- Crash when pressing "tab" after going to http://slashdot.org/
  5372. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::nextKeyViewInFrame): Add null check.
  5373. 2002-08-19 Darin Adler <darin@apple.com>
  5374. Put in more robust version of the next/previous key view checking
  5375. that matches what I did in WebHTMLView.
  5376. * kwq/KWQNSTextField.h: Add inNextValidKeyView instance variable.
  5377. * kwq/KWQNSTextField.mm:
  5378. (-[KWQNSTextField dealloc]): No need to nil out widget.
  5379. (-[KWQNSTextField nextKeyView]): Only do the computation when called from nextValidKeyView.
  5380. (-[KWQNSTextField previousKeyView]): Only do the computation when called from previousValidKeyView.
  5381. (-[KWQNSTextField nextValidKeyView]): Set boolean.
  5382. (-[KWQNSTextField previousValidKeyView]): Set boolean.
  5383. (-[KWQSecureTextField nextKeyView]): Only do the computation when called from nextValidKeyView.
  5384. (-[KWQSecureTextField previousKeyView]): Only do the computation when called from nextValidKeyView.
  5385. (-[KWQSecureTextField nextValidKeyView]): Set boolean.
  5386. (-[KWQSecureTextField previousValidKeyView]): Set boolean.
  5387. Unrelated change.
  5388. * kwq/mac-encodings.txt: Add an encoding name of gb18030, since I saw mention of it in bug 3002016.
  5389. 2002-08-19 Darin Adler <darin@apple.com>
  5390. Support so that WebKit can tab into a web view's fields.
  5391. * kwq/KWQKHTMLPartImpl.h: Made another nextKeyView() version public.
  5392. * kwq/WebCoreBridge.h: Add new methods, change parameters to one existing one.
  5393. * kwq/WebCoreBridge.mm:
  5394. (-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]):
  5395. Remove width and height parameters. The passed-in view already has the correct
  5396. width and height.
  5397. (-[WebCoreBridge nextKeyView]): Call nextKeyView() with node == 0.
  5398. (-[WebCoreBridge previousKeyView]): Call nextKeyView() with node == 0.
  5399. 2002-08-19 Darin Adler <darin@apple.com>
  5400. First cut at implementation of "tab to change focus": Lots of loose ends, but it's
  5401. going well.
  5402. * kwq/KWQNSTextField.h: Change initWithWidget to initWithQLineEdit.
  5403. * kwq/KWQNSTextField.mm:
  5404. (-[KWQNSTextField initWithQLineEdit:]): Keep a QLineEdit pointer so we don't cast later.
  5405. (-[KWQNSTextField dealloc]): Sets widget to 0 to make nextKeyView and previousKeyView
  5406. return nil while deallocating.
  5407. (-[KWQNSTextField setPasswordMode:]): Pass widget when creating secure text field so it
  5408. can handle the next/previous links properly.
  5409. (-[KWQNSTextField nextKeyView]): Added. Calls KWQKHTMLPartImpl::nextKeyView.
  5410. (-[KWQNSTextField previousKeyView]): Added. Calls KWQKHTMLPartImpl::nextKeyView.
  5411. (-[KWQTextFieldCell isOpaque]): Added. Returns NO; fixes focus rectangle updating.
  5412. (-[KWQSecureTextField initWithQWidget:]): Added.
  5413. (-[KWQSecureTextField dealloc]): Added. Sets widget to 0 to make nextKeyView and
  5414. previousKeyView return nil while deallocating.
  5415. (-[KWQSecureTextField nextKeyView]): Added. Calls KWQKHTMLPartImpl::nextKeyView.
  5416. (-[KWQSecureTextField previousKeyView]): Added. Calls KWQKHTMLPartImpl::nextKeyView.
  5417. * kwq/KWQKHTMLPartImpl.h: Add KWQSelectionDirection. Change name of getBridge() to
  5418. bridge(), getDocument() to document(), getRenderer() to renderer(), getBridgeForFrameName()
  5419. to bridgeForFrameName(). Also added nextKeyView family of member functions.
  5420. * kwq/KWQKHTMLPartImpl.mm:
  5421. (KWQKHTMLPartImpl::nextKeyViewInFrame): Added.
  5422. (KWQKHTMLPartImpl::nextKeyView): Added.
  5423. * kwq/qt/qwidget.h: Remove unneeded parameters from constructor. Also added a
  5424. constructor that takes an NSView.
  5425. * kwq/KWQWidget.mm:
  5426. (QWidget::QWidget): Don't store focus policy (it was uninitialized before).
  5427. (QWidget::focusPolicy): Return TabFocus for any widget that has a view with a first
  5428. responder, NoFocus for any other.
  5429. (QWidget::setFocusPolicy): Do nothing.
  5430. (QWidget::setFocusProxy): Do nothing.
  5431. * kwq/qt/qobject.h: Store the event filter object when installEventFilter is called.
  5432. This is used to find the RenderWidget for a QWidget by the new tabbing code.
  5433. * kwq/KWQObject.mm: Removed event-filter functions. Two are now inlines, one deleted.
  5434. Other changes related to KWQKHTMLPartImpl improvements.
  5435. * kwq/KWQKHTMLPartBrowserExtension.mm:
  5436. * kwq/KWQKHTMLPartImpl.mm:
  5437. * kwq/KWQLoaderImpl.mm:
  5438. * kwq/WebCoreBridge.mm:
  5439. Update for KWQKHTMLPartImpl member name changes.
  5440. Various improvements for other widget implementations.
  5441. * kwq/qt/qbutton.h:
  5442. * kwq/KWQButton.mm: Stop using KWQNSButton. Instead just use a button adapter
  5443. object, and a plain old NSButton.
  5444. (QButton::QButton): Put all the NSButton setup in here.
  5445. (QButton::~QButton): Release the adapter here.
  5446. (QButton::clicked): Move this in here because it's virtual now so that QCheckBox
  5447. can override it.
  5448. (-[KWQButtonAdapter initWithQButton:]): Added.
  5449. (-[KWQButtonAdapter action:]): Just call clicked().
  5450. * kwq/qt/qpushbutton.h: Don't pass unused parent pointer to QButton constructor.
  5451. * kwq/KWQPushButton.mm: (QPushButton::QPushButton): Don't pass unused parent pointer to
  5452. QButton contructor.
  5453. * kwq/qt/qcheckbox.h:
  5454. * kwq/KWQCheckBox.mm: Just use NSButton, not KWQNSButton.
  5455. (QCheckBox::clicked): Move the state-changed logic here; used to be in KWQNSButton.
  5456. * kwq/KWQRadioButton.mm:
  5457. (QRadioButton::QRadioButton): Don't pass unused parent pointer to
  5458. QButton contructor.
  5459. * kwq/qt/qcombobox.h:
  5460. * kwq/KWQComboBox.mm:
  5461. (QComboBox::QComboBox): Removed extra constructor. Make a plain NSPopUpButton,
  5462. and use an adapter object, rather than having a KWQNSComboBox.
  5463. (QComboBox::~QComboBox): Release the adapter.
  5464. (QComboBox::insertItem): New implementation. No need to keep an items array around,
  5465. because the menu does that just fine.
  5466. (QComboBox::clear): Remove the items from the pop-up button directly.
  5467. (-[KWQComboBoxAdapter initWithQComboBox:]): Added.
  5468. (-[KWQComboBoxAdapter action:]): Just call activated().
  5469. * kwq/kdeui/kcombobox.h: Empty this out and make it use only inlines.
  5470. * khtml/rendering/render_form.cpp: (RenderSelect::updateFromElement):
  5471. Remove the setSize()/doneLoading() optimization for QComboBox because the new
  5472. simpler QComboBox implementation obviates the speed problem this was originally
  5473. intended to fix.
  5474. * kwq/qt/qlineedit.h:
  5475. * kwq/KWQLineEdit.mm: (QLineEdit::QLineEdit): Call initWithQLineEdit instead of
  5476. initWithWidget. Also don't take an unused parent pointer parameter.
  5477. * kwq/kdeui/klineedit.h: Empty this out and make it use only inlines.
  5478. * kwq/qt/qframe.h: Remove unused parent pointer from constructor.
  5479. * kwq/KWQFrame.mm: Remove unneeded constructor.
  5480. * kwq/KWQHBox.mm: (QHBox::QHBox): Don't pass unused parent pointer to QFrame.
  5481. * kwq/KWQLabel.mm: (QLabel::QLabel): Don't pass unused parent pointer to QFrame.
  5482. * kwq/qt/qscrollview.h: Make constructor inline.
  5483. * kwq/KWQScrollView.mm: Remove unneeded constructor.
  5484. * kwq/KWQWindowWidget.h: Remove unneeded constructor.
  5485. * WebCore.pbproj/project.pbxproj: Remove KWQKComboBox.mm, KWQKLineEdit.mm,
  5486. and KWQScrollBar.h.
  5487. * kwq/KWQKComboBox.mm: Removed.
  5488. * kwq/KWQKLineEdit.mm: Removed.
  5489. * kwq/KWQScrollBar.h: Removed. Unused.
  5490. * kwq/KWQTextArea.h: Change initWithWidget to initWithQTextEdit.
  5491. * kwq/KWQTextArea.mm: (-[KWQTextArea initWithQTextEdit:]): Changed name.
  5492. * kwq/KWQTextEdit.mm: (QTextEdit::QTextEdit): Call initWithQTextEdit instead of
  5493. initWithWidget.
  5494. * kwq/KWQView.h: Eliminated KWQNSButton, KWQNSComboBox, and KWQNSScrollView.
  5495. * kwq/KWQView.mm: Ditto.
  5496. Housekeeping.
  5497. * force-clean-timestamp: Yes, again.
  5498. * khtml/khtml_part.h: Rearrange APPLE_CHANGES a bit.
  5499. * kwq/qt/qvaluelist.h: Added -- as well as ++ for the const iterator, and fixed some
  5500. minor const issues. At one point I needed this for the focus changes, but not any more.
  5501. 2002-08-16 Darin Adler <darin@apple.com>
  5502. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::userAgent):
  5503. Call bridge's userAgentForURL: method.
  5504. * kwq/WebCoreBridge.h: Added userAgentForURL: to the protocol
  5505. 2002-08-16 Darin Adler <darin@apple.com>
  5506. Step 2 in adding user agent API to WebKit and WebFoundation.
  5507. In this step, I change WebCore so that it the KWQKHTMLPartImpl
  5508. is responsible for fetching the user agent. Later it will
  5509. get the user agent from WebKit via the bridge.
  5510. * khtml/ecma/kjs_navigator.cpp: (Navigator::getValueProperty):
  5511. Get the user agent from the part, not KProtocolManager.
  5512. * khtml/ecma/kjs_proxy.cpp: (KJSProxyImpl::initScript):
  5513. Get the user agent from the part, not KProtocolManager.
  5514. * kwq/KWQKHTMLPartImpl.h: Add userAgent member function.
  5515. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::userAgent): Added.
  5516. * WebCore.pbproj/project.pbxproj: Removed KWQKProtocolManager.mm.
  5517. * kwq/KWQKProtocolManager.mm: Removed.
  5518. * kwq/kio/kprotocolmanager.h: Made empty.
  5519. 2002-08-16 Maciej Stachowiak <mjs@apple.com>
  5520. * force-clean-timestamp: Need to rebuild for JavaScriptCore changes.
  5521. 2002-08-16 Darin Adler <darin@apple.com>
  5522. - fixed 3023851 -- screen garbage created by scrolling text
  5523. Our implementation of clipRegion didn't reflect the clip that was
  5524. already set for the view, so we drew outside the view. To fix it,
  5525. I eliminated the clipRegion call and changed clients to use a new
  5526. addClip call instead that doesn't require getting the clip in the
  5527. form of a region (which is not really possible with CoreGraphics).
  5528. * khtml/rendering/render_box.cpp: (RenderBox::calcClip):
  5529. Call addClip instead of clipRegion(), intersect(), setClipRegion().
  5530. * kwq/qt/qpainter.h: Added addClip(), removed clipRegion(), setClipRegion().
  5531. * kwq/KWQPainter.mm: (QPainter::addClip): Calls [NSBezierPath clipRect:].
  5532. * kwq/qt/qregion.h: Went back to a single-path implementation, since
  5533. we don't need intersect() any more. Also removed isNull() and setClip().
  5534. * kwq/KWQRegion.mm:
  5535. (QRegion::QRegion): New simpler versions.
  5536. (QRegion::~QRegion): Release the path.
  5537. (QRegion::operator=): Copy the other path.
  5538. (QRegion::contains): Call [containsPoint:].
  5539. (QRegion::translate): Call [transformUsingAffineTransform:].
  5540. (QRegion::boundingRect): Call [bounds].
  5541. 2002-08-16 Darin Adler <darin@apple.com>
  5542. - fixed 3026042 -- hide frames button at developer documentation doesn't work
  5543. This regression was introduced by the anchor changes we made just after
  5544. the Alexander-15 release.
  5545. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::urlSelected):
  5546. Make decisions about special handling for links with anchors based
  5547. on the target frame, not the current frame.
  5548. 2002-08-16 Maciej Stachowiak <mjs@apple.com>
  5549. * force-clean-timestamp: rebuild for JavaScriptCore changes.
  5550. 2002-08-16 David Hyatt <hyatt@apple.com>
  5551. Fix for the intuit.com and eweek.com <form><tr> bgcolor problem.
  5552. Improve the error handling of the parser so that it doesn't
  5553. lose attributes when errors like this occur in a page.
  5554. * khtml/html/htmlparser.cpp:
  5555. (KHTMLParser::~KHTMLParser):
  5556. (KHTMLParser::reset):
  5557. (KHTMLParser::parseToken):
  5558. (KHTMLParser::insertNode):
  5559. * khtml/html/htmlparser.h:
  5560. 2002-08-15 Darin Adler <darin@apple.com>
  5561. - fixed 2983959 -- pages that try to use JavaScript to focus fail to do so
  5562. * kwq/KWQWidget.mm: (QWidget::setFocus): Call makeFirstResponder.
  5563. 2002-08-15 Darin Adler <darin@apple.com>
  5564. Give the same good loving to the check boxes and radio buttons.
  5565. I'm not saying our rules for where to position them are great, but
  5566. the rules are implemented cleanly and thus easier to tweak.
  5567. Got rid of the old Action system altogether, using signals now.
  5568. * khtml/rendering/render_form.h: Remove now-unneeded APPLE_CHANGES.
  5569. * khtml/rendering/render_form.cpp:
  5570. (RenderButton::baselinePosition): All the buttons now share a single
  5571. version of this call, since none need any special baseline hacking at
  5572. the moment.
  5573. (RenderSubmitButton::baselinePosition): Just call the RenderButton version.
  5574. * kwq/KWQCheckBox.mm:
  5575. (QCheckBox::sizeHint): Use 12x12, not 22x22.
  5576. (QCheckBox::frameGeometry): Adjust for margins.
  5577. (QCheckBox::setFrameGeometry): Adjust for margins.
  5578. * kwq/KWQRadioButton.mm:
  5579. (QRadioButton::sizeHint): Use 12x12, not 22x22.
  5580. (QRadioButton::frameGeometry): Adjust for margins.
  5581. (QRadioButton::setFrameGeometry): Adjust for margins.
  5582. * kwq/qt/qcombobox.h:
  5583. * kwq/KWQComboBox.mm: (QComboBox::QComboBox): Set up the activated signal.
  5584. * kwq/KWQView.mm: (-[KWQNSComboBox action:]): Emit the activated signal.
  5585. * kwq/KWQListBox.h:
  5586. * kwq/KWQListBox.mm:
  5587. (-[KWQBrowserDelegate browserSingleClick:]): Send a selectionChanged signal
  5588. and a clicked signal instead of a ACTION_LISTBOX_CLICKED.
  5589. (QListBox::QListBox): Set up the clicked and selectionChanged signals.
  5590. * kwq/qt/qobject.h: Remove Actions, ACTION_TEXT_AREA_END_EDITING,
  5591. ACTION_LISTBOX_CLICKED, ACTION_COMBOBOX_CLICKED, emitAction, performAction,
  5592. and target.
  5593. * kwq/KWQObject.mm:
  5594. (QObject::connect): Remove the target hack, no longer needed.
  5595. (QObject::QObject): Remove target initialization.
  5596. * kwq/KWQSlot.mm: (KWQSlot::KWQSlot), (KWQSlot::call):
  5597. Added selected and selectionChanged slots.
  5598. * kwq/KWQTextArea.mm:
  5599. (-[KWQTextArea textDidEndEditing:]): Removed code to emit the
  5600. ACTION_TEXT_AREA_END_EDITING action, which was no longer used.
  5601. * force-clean-timestamp: Yes, again.
  5602. 2002-08-15 Darin Adler <darin@apple.com>
  5603. - fixed 3017376 -- button height is too tall
  5604. Reworked how widget sizing and positioning is done for a few of the most important
  5605. widget types.
  5606. * khtml/rendering/render_form.h: Remove more of the performAction hackery.
  5607. * khtml/rendering/render_form.cpp:
  5608. (RenderCheckBox::calcMinMaxWidth): Get size from widget.
  5609. (RenderRadioButton::calcMinMaxWidth): Get size from widget.
  5610. (RenderSubmitButton::RenderSubmitButton): Remove old unneeded APPLE_CHANGES.
  5611. (RenderSubmitButton::baselinePosition): Put the bottom of the button on the
  5612. baseline without any magic numbers.
  5613. (RenderLineEdit::baselinePosition): Put the bottom of the text field two pixels
  5614. below the baseline without any other magic numbers.
  5615. (RenderLineEdit::calcMinMaxWidth): Get size from widget.
  5616. (RenderSelect::baselinePosition): Put the bottom of the menu on the
  5617. baseline without any magic numbers. List box case is untouched for now.
  5618. * kwq/qt/qbutton.h:
  5619. * kwq/KWQButton.mm:
  5620. (QButton::QButton): Move most of the setup into KWQNSButton.
  5621. (QButton::sizeHint): Use cellSize, account for margins.
  5622. (QButton::frameGeometry): Adjust for margins.
  5623. (QButton::setFrameGeometry): Adjust for margins.
  5624. * kwq/qt/qcheckbox.h:
  5625. * kwq/KWQCheckBox.mm:
  5626. (QCheckBox::QCheckBox): QButton takes care of most of the setup now.
  5627. (QCheckBox::sizeHint): Added.
  5628. (QCheckBox::frameGeometry): Adjust for margins.
  5629. (QCheckBox::setFrameGeometry): Adjust for margins.
  5630. * kwq/qt/qcombobox.h:
  5631. * kwq/KWQComboBox.mm:
  5632. (QComboBox::init): KWQNSComboBox takes care of most of the setup now.
  5633. (QComboBox::sizeHint): Adjust for margins.
  5634. (QComboBox::frameGeometry): Adjust for margins.
  5635. (QComboBox::setFrameGeometry): Adjust for margins.
  5636. * kwq/qt/qlineedit.h:
  5637. * kwq/KWQLineEdit.mm:
  5638. (QLineEdit::sizeForCharacterWidth): Added.
  5639. (QLineEdit::frameGeometry): Adjust for margins.
  5640. (QLineEdit::setFrameGeometry): Adjust for margins.
  5641. * kwq/qt/qradiobutton.h:
  5642. * kwq/KWQRadioButton.mm:
  5643. (QRadioButton::QRadioButton): QButton takes care of most of the setup now.
  5644. (QRadioButton::sizeHint): Added.
  5645. (QRadioButton::frameGeometry): Adjust for margins.
  5646. (QRadioButton::setFrameGeometry): Adjust for margins.
  5647. * kwq/qt/qwidget.h:
  5648. * kwq/KWQWidget.mm:
  5649. (QWidget::setFrameGeometry): New name for internalSetGeometry, now public.
  5650. - fixed 3010695 -- Slashdot.org starts with password field focused, but shouldn't
  5651. Added KWQSecureTextField to work around the bug.
  5652. * kwq/KWQNSTextField.h: Made formatter and other details private.
  5653. * kwq/KWQNSTextField.mm:
  5654. (+[KWQNSTextField initialize]): Set up custom cell class that works around focus border.
  5655. (-[KWQNSTextField initWithFrame:]): Put the work in here, since this is NSView's designated
  5656. initializer.
  5657. (-[KWQNSTextField initWithWidget:]): Now just calls [init] which calls [initWithFrame],
  5658. and then sets the widget.
  5659. (-[KWQNSTextField action:]): Use the returnPressed signal instead of ACTION_TEXT_FIELD.
  5660. (-[KWQNSTextField controlTextDidEndEditing:]): Use textChanged signal instead of
  5661. ACTION_TEXT_FIELD_END_EDITING.
  5662. (-[KWQNSTextField dealloc]): Release the secureField (was a leak).
  5663. (-[KWQNSTextField updateSecureFieldFrame]): Added. Used to keep secure field in the right
  5664. place.
  5665. (-[KWQNSTextField setFrameSize:]): Added. Calls updateSecureFieldFrame.
  5666. (-[KWQNSTextField setPasswordMode:]): Change all the details, but this does the same
  5667. thing it used to.
  5668. (-[KWQNSTextField selectText:]): Only call selectText on one of the two field, since it
  5669. causes the field to grab focus and we don't want to do that twice.
  5670. (-[KWQNSTextField setStringValue:]): Set the string value in both fields any time someone
  5671. gives us a new value.
  5672. (-[KWQNSTextField setFont:]): Set the font in both fields any time someone gives us a new
  5673. font.
  5674. (-[KWQTextFieldCell cellSizeForBounds:]): Add space for focus border.
  5675. (-[KWQTextFieldCell drawWithFrame:inView:]): Inset by focus border.
  5676. (-[KWQTextFieldCell editWithFrame:inView:editor:delegate:event:]): Inset by focus border.
  5677. (-[KWQTextFieldCell selectWithFrame:inView:editor:delegate:start:length:]): Inset by focus border.
  5678. (-[KWQSecureTextField selectText:]): Override to do nothing while in setFrameSize to work around
  5679. bug in AppKit.
  5680. (-[KWQSecureTextField setFrameSize:]): Set flag to trigger selectText check.
  5681. - fixed 3025166 -- check boxes and radio buttons on google.com's preferences pages
  5682. are not "linked"
  5683. We were not emitting onClicked for check boxes.
  5684. * kwq/KWQView.h: No need to pass frames any more. Default is empty.
  5685. * kwq/KWQView.mm:
  5686. (-[KWQView initWithFrame:]): Do most of the work in here.
  5687. (-[KWQView initWithWidget:]): Just call [init] and set up widget.
  5688. (-[KWQNSButton initWithFrame:]): Do most of the work in here. Remove the special
  5689. cell class, and always use a small control with the small system font.
  5690. (-[KWQNSButton initWithWidget:]): Just call [init] and set up widget.
  5691. (-[KWQNSButton action:]): Call the clicked() signal instead of ACTION_BUTTON_CLICKED.
  5692. (-[KWQNSButton stateChanged:]): Call the stateChanged() signal instead of
  5693. ACTION_CHECKBOX_CLICKED.
  5694. (-[KWQNSComboBox initWithFrame:]): Do most of the work in here.
  5695. (-[KWQNSComboBox initWithWidget:]): Just call [init] and set up widget.
  5696. (-[KWQNSScrollView initWithWidget:]): Just call [init] and set up widget.
  5697. - fixed 3025211 -- find person in Apple directory never displays person information
  5698. When I enabled the code to wait and not redirect until loads are complete, that
  5699. broke this case, because we didn't have enough hooked up to notice loads completing.
  5700. I hooked everything up and its working now.
  5701. * khtml/khtml_part.h: Add started().
  5702. * khtml/khtml_part.cpp:
  5703. (KHTMLPart::restoreURL): Un-ifdef emission of started().
  5704. (KHTMLPart::openURL): Un-ifdef emission of started().
  5705. (KHTMLPart::end): Don't do an explicit call to slotFinishedParsing().
  5706. We actually hook up a signal for this now.
  5707. (KHTMLPart::slotChildCompleted): Un-ifdef the rest of the code here.
  5708. * khtml/xml/dom_docimpl.h:
  5709. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::DocumentImpl):
  5710. * khtml/xml/xml_tokenizer.h:
  5711. Do the necessary setup so we can use KWQSignal for finishedParsing.
  5712. * kwq/KWQKHTMLPartImpl.mm:
  5713. (KHTMLPart::started): Added. Calls slotChildStarted on parent.
  5714. (KHTMLPart::completed): Added slotParentCompleted calls.
  5715. * kwq/qt/qobject.h: Add sender() and KWQObjectSenderScope.
  5716. * kwq/KWQObject.mm:
  5717. (KWQObjectSenderScope::KWQObjectSenderScope): Added. Sets sender() and saves the old value.
  5718. (KWQObjectSenderScope::~KWQObjectSenderScope): Added. Resets sender().
  5719. * kwq/KWQSignal.h:
  5720. * kwq/KWQSlot.h:
  5721. * kwq/KWQSignal.mm: (KWQSignal::call): Added overloads for calling signals with int and
  5722. QString parameters. Also set up sender() using KWQObjectSenderScope.
  5723. * kwq/KWQSlot.mm: (KWQSlot::KWQSlot), (KWQSlot::call): Add support for one signal
  5724. (calls through to whatever is connected to that signal's slot) and six new slots.
  5725. * kwq/KWQsignals.mm:
  5726. (Tokenizer::Tokenizer): Construct the finishedParsing signal.
  5727. (Tokenizer::finishedParsing): Emit the finishedParsing signal.
  5728. - fixed 3025170 -- right sides of borders placed incorrectly around table cells
  5729. There was some silly code that I just removed.
  5730. * khtml/rendering/render_table.cpp:
  5731. (RenderTable::addColInfo): Turn off the half-assed collapse borders stuff here.
  5732. - other changes
  5733. * force-clean-timestamp: Big changes; full rebuild needed.
  5734. * khtml/khtmlview.cpp: (KHTMLView::~KHTMLView): Make the code to kill
  5735. the timers be unconditional, just in case.
  5736. * kwq/KWQCharsets.mm: (buildDictionaries): Remove UTF-16 special case since it's now
  5737. in the character sets table.
  5738. * kwq/qt/qpoint.h:
  5739. * kwq/KWQPoint.mm:
  5740. (QPoint::QPoint): Converts from NSPoint.
  5741. (QPoint::operator NSPoint): Converts to NSPoint.
  5742. * kwq/qt/qrect.h:
  5743. * kwq/KWQRect.mm:
  5744. (QRect::QRect): Converts from NSRect.
  5745. (QRect::isEmpty): Fix backwards logic.
  5746. (QRect::operator NSRect): Converts to NSRect.
  5747. * kwq/qt/qsize.h:
  5748. * kwq/KWQSize.mm:
  5749. (QSize::QSize): Converts from NSSize.
  5750. (QSize::operator NSSize): Converts to NSSize.
  5751. * kwq/qt/qpushbutton.h:
  5752. * kwq/KWQPushButton.mm: Removed unused methods.
  5753. * kwq/KWQRegion.mm: Use new QPoint/NSPoint/QRect/NSRect functions.
  5754. * kwq/KWQScrollView.mm: (QScrollView::addChild): Update comment.
  5755. * kwq/KWQTextArea.h:
  5756. * kwq/KWQTextArea.mm:
  5757. (-[KWQTextArea initWithFrame:]): Do most of the work in here.
  5758. (-[KWQTextArea initWithWidget:]): Just call [init] and set up widget.
  5759. * kwq/KWQTextEdit.mm: (QTextEdit::QTextEdit): Don't pass an empty frame any more.
  5760. * kwq/KWQWindowWidget.h:
  5761. * kwq/KWQWindowWidget.mm: Update for name change.
  5762. * kwq/WebCoreTestController.h: Placeholder for the feature I should be working on.
  5763. === Alexander-19 ===
  5764. === Alexander-18 ===
  5765. 2002-08-15 Maciej Stachowiak <mjs@apple.com>
  5766. * force-clean-timestamp: Need to rebuild for JavaScriptCore
  5767. changes.
  5768. 2002-08-14 David Hyatt <hyatt@apple.com>
  5769. ROFL. The KHTML table code had a hardcoded "20" being
  5770. subtracted out of table heights instead of using the
  5771. actual margins on the <body> element. This patch
  5772. removes the hardcoded "20" and replaces it with the
  5773. actual <body> margins.
  5774. * khtml/rendering/render_table.cpp:
  5775. (RenderTable::layoutRows):
  5776. 2002-08-14 David Hyatt <hyatt@apple.com>
  5777. Fix marginwidth and marginheight on the <body> element.
  5778. These attributes were not applying the correct margins,
  5779. which would cause many many pages to mis-render!
  5780. * khtml/html/html_baseimpl.cpp:
  5781. (HTMLBodyElementImpl::parseAttribute):
  5782. 2002-08-14 David Hyatt <hyatt@apple.com>
  5783. Ensure that a rendering object gets built for <fieldset>
  5784. elements. Content inside a <fieldset> was being discarded
  5785. and not rendered.
  5786. This fixes the top frame on blogger comment posting so that
  5787. it shows up properly.
  5788. * khtml/html/html_formimpl.cpp:
  5789. (HTMLFieldSetElementImpl::attach):
  5790. * khtml/html/html_formimpl.h:
  5791. 2002-08-14 Darin Adler <darin@apple.com>
  5792. Fix the build.
  5793. * khtml/ecma/kjs_html.cpp: (KJS::HTMLDocument::putValue):
  5794. Add braces and fix a syntax error.
  5795. * kwq/mac-encodings.txt: Add comments. Make utf-16 be a synonym for
  5796. utf-8 rather than having it actually try to treat things as 16-bit.
  5797. We will have to revisit this, but for now it makes zingermans.com work again.
  5798. * kwq/make-charset-table.pl: Allow comments.
  5799. 2002-08-14 Maciej Stachowiak <mjs@apple.com>
  5800. Fixed a JavaScript object leak that was plaguing ign.com and
  5801. livepage.apple.com, among other things.
  5802. * khtml/ecma/kjs_html.cpp:
  5803. (KJS::HTMLDocument::putValue): Create a Value wrapper for a newly allocated
  5804. DOMNode object that's not used past this function so it gets GC'd properly.
  5805. (KJS::HTMLElement::putValue): Likewise.
  5806. 2002-08-14 Maciej Stachowiak <mjs@apple.com>
  5807. * khtml/ecma/kjs_window.cpp: Fix to build clean after
  5808. JavaScriptCore live class changes (this way of handling it is kind
  5809. of a hack, but kjs is unhappy to have Boolean defined so it can't
  5810. unconditionally include CoreFoundation.h in collector.h; will fix
  5811. better later).
  5812. 2002-08-13 Maciej Stachowiak <mjs@apple.com>
  5813. Add the ability to determine the classes of live JavaScript
  5814. objects, to help with leak fixing.
  5815. * kwq/WebCoreJavaScript.h:
  5816. * kwq/WebCoreJavaScript.mm:
  5817. (+[WebCoreJavaScript liveObjectClasses]):
  5818. 2002-08-13 David Hyatt <hyatt@apple.com>
  5819. An initial implementation of percentage height table cells.
  5820. This implementation will properly distribute space among
  5821. rows with percentage table cells, although there could be
  5822. issues with percentage height cells that span rows.
  5823. I have also fixed replaced elements so that they understand when they
  5824. are a percentage height and contained within a percentage height
  5825. cell that they can grow. This fixes the textarea on bloggers'
  5826. comment posting page so that it sizes properly.
  5827. There are many issues remaining with this implementation;
  5828. blocks need to be taught how to flex when they specify a percent
  5829. height. There is also some sort of rounding error with tables
  5830. that specify a height of 100% that I haven't yet figured out.
  5831. (This error was present before my changes, and it's still present
  5832. after my changes.)
  5833. Also, percentage height tables seem to "lock" to the largest size
  5834. they've ever been and don't properly relayout when they become
  5835. smaller. Again, this bug existed before my changes.
  5836. * khtml/rendering/render_box.cpp:
  5837. (RenderBox::calcReplacedHeight):
  5838. * khtml/rendering/render_table.cpp:
  5839. (RenderTable::RenderTable):
  5840. (RenderTable::calcRowHeight):
  5841. (RenderTable::layout):
  5842. (RenderTable::layoutRows):
  5843. (RenderTable::print):
  5844. (RenderTableCell::RenderTableCell):
  5845. * khtml/rendering/render_table.h:
  5846. 2002-08-13 Darin Adler <darin@apple.com>
  5847. Character set handling improvements. In total, this adds 92 new character encoding
  5848. names to the list we know how to handle (299, up from 207), so it probably makes
  5849. some pages work that didn't work before. It probably also adds character encoding
  5850. names that are never used in practice.
  5851. * kwq/character-sets.txt: Took out all but one of our changes. We now handle aliases
  5852. that are not in this file by adding them to mac-encodings.txt.
  5853. * kwq/mac-encodings.txt: Added. Lists CFStringEncoding values and IANA names for them.
  5854. We keep this file small by using the aliasing in character-sets.txt, and we also continue
  5855. to get MIB numbers from character-sets.txt.
  5856. * kwq/make-charset-table.pl: Rewrote to read from new format mac-encodings.txt file, and
  5857. check for new kinds of errors.
  5858. * kwq/.cvsignore: Don't ignore the make-mac-encodings files any more, since we
  5859. don't compile that any more.
  5860. * kwq/Makefile.am: Remove rules for compiling and running make-mac-encodings.
  5861. * kwq/make-mac-encodings.c: Removed.
  5862. 2002-08-13 Darin Adler <darin@apple.com>
  5863. - fixed 3023439 -- support for windows-874 charset for thai
  5864. * kwq/character-sets.txt: Added cp874 and windows-874.
  5865. * kwq/make-charset-table.pl: Fix bug where it would right out a bad MIB enum for
  5866. the many Macintosh character sets without associated MIB numbers.
  5867. 2002-08-13 Darin Adler <darin@apple.com>
  5868. Some QRegion fixes inspired by Dave's clipping work.
  5869. * kwq/qt/qregion.h: Add setClip, remove getNSBezierPath.
  5870. * kwq/KWQRegion.mm:
  5871. (NSMakePoint): Added. Helper function; could go in a header some day.
  5872. (NSMakeRect): Added. Helper function; could go in a header some day.
  5873. (MakeQRect): Added. Helper function; could go in a header some day.
  5874. (QRegion::QRegion): Make a paths array instead of a single path. Also, change things
  5875. so we actually copy the paths. The old code might translate a path that was shared
  5876. by two QRegion objects.
  5877. (QRegion::intersect): Merge the paths arrays of the two passed-in paths.
  5878. (QRegion::contains): Return true only if all paths in the array contain the point.
  5879. (QRegion::isNull): Return true if any of the paths in the array are empty.
  5880. (QRegion::translate): Translate all the paths in the array.
  5881. (QRegion::boundingRect): Return the intersection of the bounding rects of all the
  5882. paths in the array.
  5883. (QRegion::setClip): Call setClip on the first path, and addClip on the others.
  5884. * kwq/KWQPainter.mm: (QPainter::setClipRegion): Use QRegion::setClip().
  5885. 2002-08-12 David Hyatt <hyatt@apple.com>
  5886. Reverting a change that I unintentionally checked in last
  5887. week. I wasn't yet ready to land it. It may work, but I
  5888. want to test it more first.
  5889. * khtml/rendering/render_flow.cpp:
  5890. (RenderFlow::layoutBlockChildren):
  5891. 2002-08-12 David Hyatt <hyatt@apple.com>
  5892. Implement clipping. The one thing that still needs
  5893. to be done is that the intersect method in KWQRegion.mm
  5894. needs to be implemented. Even without that, this gets
  5895. the ticker on livepage.apple.com clipping properly.
  5896. * kwq/KWQPainter.mm:
  5897. (QPainter::xForm):
  5898. (QPainter::save):
  5899. (QPainter::restore):
  5900. (QPainter::setClipRegion):
  5901. * kwq/qt/qregion.h:
  5902. 2002-08-12 David Hyatt <hyatt@apple.com>
  5903. Make the news ticker on livepage.apple.com scroll properly.
  5904. It still doesn't clip though. Fixing this involved correctly
  5905. dirtying the render tree when dynamic DOM changes occurred
  5906. (this was a bug in KHTML's DOM), as well as providing an
  5907. implementation of the MSIE offsetWidth extension that took
  5908. inlines into account (KHTML's impl was always returning a width
  5909. of 0 for inlines).
  5910. * khtml/ecma/kjs_dom.cpp:
  5911. (DOMNode::getValueProperty):
  5912. * khtml/rendering/render_flow.cpp:
  5913. (RenderFlow::offsetWidth):
  5914. (RenderFlow::offsetHeight):
  5915. * khtml/rendering/render_flow.h:
  5916. * khtml/rendering/render_object.h:
  5917. * khtml/xml/dom_nodeimpl.cpp:
  5918. (NodeBaseImpl::insertBefore):
  5919. (NodeBaseImpl::replaceChild):
  5920. (NodeBaseImpl::appendChild):
  5921. 2002-08-12 Darin Adler <darin@apple.com>
  5922. * khtml/misc/loader.cpp: (Cache::insertInLRUList):
  5923. Add missing piece of the last check-in.
  5924. 2002-08-12 Darin Adler <darin@apple.com>
  5925. At Ken's urging, fixed the loader cache to be more efficient.
  5926. Gives 1% on the cvs-base test.
  5927. * force-clean-timestamp: This requires a full rebuild.
  5928. * khtml/misc/loader.h:
  5929. * khtml/misc/loader.cpp:
  5930. (CachedObject::~CachedObject): No longer inline, which is fine since
  5931. it was a virtual function anyway. Remove from the LRU list.
  5932. (CachedObject::setRequest): Add to the LRU list if it qualifies now.
  5933. (CachedObject::ref): Remove from the LRU list.
  5934. (CachedObject::deref): Add to the LRU list if it qualifies now.
  5935. (CachedCSSStyleSheet::ref): Call CachedObject::ref.
  5936. (CachedCSSStyleSheet::deref): Call CachedObject::deref.
  5937. (CachedScript::ref): Call CachedObject::ref.
  5938. (CachedScript::deref): Call CachedObject::deref.
  5939. (CachedImage::ref): Call CachedObject::ref.
  5940. (CachedImage::deref): Call CachedObject::deref.
  5941. (Cache::init): No "LRU list" to create.
  5942. (Cache::clear): No "LRU list" to delete.
  5943. (Cache::requestImage): Call moveToHeadOfLRUList.
  5944. (Cache::requestStyleSheet): Call moveToHeadOfLRUList.
  5945. (Cache::requestScript): Call moveToHeadOfLRUList.
  5946. (Cache::flush): New algorithm.
  5947. (Cache::removeCacheEntry): Call removeFromLRUList.
  5948. (Cache::removeFromLRUList): Added.
  5949. (Cache::moveToHeadOfLRUList): Added.
  5950. (Cache::insertInLRUList): Added.
  5951. * kwq/KWQLoaderImpl.mm: (KWQCheckIfReloading):
  5952. * kwq/WebCoreBridge.h:
  5953. Change dataSourceIsReloading to isReloading.
  5954. 2002-08-12 David Hyatt <hyatt@apple.com>
  5955. Fix for the crash (assert) at mlb.com (3014322). recalcStyle was
  5956. re-entrant, causing the render tree to be reconstructed
  5957. while in the process of being destroyed.
  5958. Also patched object frame to only fire load/unload if
  5959. render objects exist (since the plugin cannot load without
  5960. the render object initializing it anyway).
  5961. * khtml/html/html_objectimpl.cpp:
  5962. (HTMLObjectElementImpl::attach):
  5963. (HTMLObjectElementImpl::detach):
  5964. * khtml/xml/dom_docimpl.cpp:
  5965. (DocumentImpl::DocumentImpl):
  5966. (DocumentImpl::recalcStyle):
  5967. * khtml/xml/dom_docimpl.h:
  5968. 2002-08-12 Darin Adler <darin@apple.com>
  5969. * force-clean-timestamp: Need a full build because of KJS changes.
  5970. * khtml/ecma/kjs_window.h: Need to store an Object, not an ObjectImp, because there's no way
  5971. to copy an ObjectImp. KJS changes caught this mistake.
  5972. 2002-08-12 Darin Adler <darin@apple.com>
  5973. - re-fixed 2948387 -- stop button flashes to "go" two extra times while loading citibank.com
  5974. It turns out Maciej and I rebroke this when we made the "completed" code run.
  5975. There was a related APPLE_CHANGES that had to be removed so that we do each redirect only once.
  5976. Doing the redirect multiple times sent confusing signals to the web browser.
  5977. * khtml/khtml_part.cpp: (KHTMLPart::scheduleRedirection): Remove APPLE_CHANGES so we don't
  5978. try to redirect until the page is complete.
  5979. === Alexander-17 ===
  5980. 2002-08-10 Ken Kocienda <kocienda@apple.com>
  5981. Check box in target setting panel to enable prebinding.
  5982. * WebCore.pbproj/project.pbxproj
  5983. 2002-08-10 Ken Kocienda <kocienda@apple.com>
  5984. Added an extra function which checks with WebKit to see if
  5985. the load is a reload. If it is, the WebCore cache is bypassed.
  5986. * khtml/misc/loader.cpp:
  5987. (DocLoader::requestImage): Added acall to new KWQCheckIfReloading function.
  5988. (DocLoader::requestStyleSheet): Ditto.
  5989. (DocLoader::requestScript): Ditto.
  5990. * kwq/KWQLoaderImpl.h:
  5991. * kwq/KWQLoaderImpl.mm:
  5992. (KWQCheckIfReloading): New function which checks with WebKit to see if the load is a reload.
  5993. * kwq/WebCoreBridge.h:
  5994. 2002-08-09 Darin Adler <darin@apple.com>
  5995. * force-clean-timestamp: JavaScriptCore headers changed that require a full build here.
  5996. 2002-08-09 Darin Adler <darin@apple.com>
  5997. - fixed 3018063 -- frame problems at directory.apple.com
  5998. - fixed 3021484 -- Go to "xxxx" mouseover status message should not show ".."
  5999. Basically, we had no frame targeting for forms. I made the form code share
  6000. the same frame targeting code we use for clicking on URLs.
  6001. * khtml/khtml_part.cpp: (KHTMLPart::openURLInFrame): Don't compile this
  6002. function at all any more.
  6003. * kwq/KWQKHTMLPartBrowserExtension.mm:
  6004. (KHTMLPartBrowserExtension::openURLRequest): Call the impl's openURLRequest
  6005. instead of calling the part's openURLInFrame. Clearer.
  6006. * kwq/KWQKHTMLPartImpl.h: Remove openURLInFrame, add openURLRequest.
  6007. Change urlSelected args parameter to a const reference. Add private
  6008. getBridgeForFrameName helper function.
  6009. * kwq/KWQKHTMLPartImpl.mm:
  6010. (KWQKHTMLPartImpl::getBridgeForFrameName): Moved rules for choosing a frame
  6011. here from urlSelected so they can be shared.
  6012. (KWQKHTMLPartImpl::openURLRequest): Use getBridgeForFrameName instead of
  6013. having our own different code for finding the right frame.
  6014. (KWQKHTMLPartImpl::urlSelected): Move frame choosing code into getBridgeForFrameName.
  6015. (KWQKHTMLPartImpl::submitForm): Use getBridgeForFrameName instead of always
  6016. ignoring the target and using our own frame.
  6017. (KWQKHTMLPartImpl::overURL): Take base targeting into account when making the
  6018. status bar messages, and use the completed URL, not the partial, for the message.
  6019. 2002-08-09 Darin Adler <darin@apple.com>
  6020. - fixed 2945441 -- base target is ignored
  6021. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::urlSelected):
  6022. Add code to respect the base target in the document. It would be way better
  6023. to use more of the KHTML code instead of copying it a line at a time into
  6024. KWQ -- that can come later when the fire drill is over.
  6025. === milestone 0.5 ===
  6026. === Alexander-16 ===
  6027. 2002-08-09 Darin Adler <darin@apple.com>
  6028. - fixed 3020594 -- crash in KWQKHTMLPartImpl::end() visiting particular page
  6029. * khtml/khtml_part.cpp: (KHTMLPart::end): Our hacked alternative to a signal
  6030. requires a NULL check.
  6031. 2002-08-08 Maciej Stachowiak <mjs@apple.com>
  6032. Fix to get onLoad to fire, so the iBench test works.
  6033. * khtml/khtml_part.cpp:
  6034. (KHTMLPart::checkCompleted): Put back some needed code that was
  6035. ifdef'd out (the part that emits completed()).
  6036. (KHTMLPart::slotChildCompleted): Enabled; ifdef'd out part.
  6037. (KHTMLPart::frame): Enabled.
  6038. * khtml/khtml_part.h:
  6039. * kwq/KWQKHTMLPartImpl.mm:
  6040. (KHTMLPart::completed): Hack to get completed signal delivered to
  6041. parent.
  6042. (KWQKHTMLPartImpl::requestFrame): Initialize m_part
  6043. * kwq/WebCoreBridge.h: createChildFrameNamed method now returns
  6044. the bridge for the child frame.
  6045. 2002-08-08 Richard Williamson <rjw@apple.com>
  6046. Move stuff out of core into kit.
  6047. * kwq/WebCoreBridge.mm:
  6048. (-[WebCoreBridge drawRect:withPainter:]):
  6049. * kwq/WebCoreTextRendererFactory.h:
  6050. * kwq/WebCoreTextRendererFactory.m:
  6051. 2002-08-08 Darin Adler <darin@apple.com>
  6052. - fixed 3019353 -- Japanese (Autodetect) encoding not properly supported
  6053. * kwq/make-charset-table.pl: Add a "japanese-autodetect" entry to the table
  6054. explicitly, with a hardcoded encoding value. This should be good enough.
  6055. * kwq/KWQKHTMLSettings.mm: (KHTMLSettings::mediumFixedFontSize):
  6056. * kwq/WebCoreEncodings.h:
  6057. * kwq/WebCoreSettings.h:
  6058. * kwq/WebCoreSettings.m:
  6059. Change "fixed font size" to "default fixed font size".
  6060. Placeholders for the "drawing observer" method that I'll be using
  6061. to implement the "dump page as diffable text" feature.
  6062. * kwq/WebCoreTestController.h: Added.
  6063. * kwq/WebCoreTestController.m: Added.
  6064. * WebCore.exp: Mention new class.
  6065. * WebCore.pbproj/project.pbxproj: Mention new files.
  6066. 2002-08-08 Maciej Stachowiak <mjs@apple.com>
  6067. Added an SPI that can be used to get at the WebCore
  6068. charset-name/encoding table; this is useful for a couple of things
  6069. in WebKit.
  6070. * kwq/WebCoreEncodings.h: Added.
  6071. * kwq/WebCoreEncodings.mm: Added.
  6072. (+[WebCoreEncodings charsetNameForEncoding:]):
  6073. (+[WebCoreEncodings encodingForCharsetName:]):
  6074. * WebCore.exp: Export the new class.
  6075. * WebCore.pbproj/project.pbxproj: Add new files.
  6076. 2002-08-08 Richard Williamson <rjw@apple.com>
  6077. Changes to coalesce all drawing calls of the same text
  6078. style and color into one call to CG. Significantly
  6079. improves drawing time. My tests should about 7-8% on
  6080. ALL pages. Disabled the code for now until I can verify
  6081. on speed improvements on Ken's test rig.
  6082. * kwq/WebCoreBridge.mm:
  6083. (-[WebCoreBridge drawRect:withPainter:]):
  6084. * kwq/WebCoreTextRendererFactory.h:
  6085. * kwq/WebCoreTextRendererFactory.m:
  6086. (-[WebCoreTextRendererFactory endCoalesceTextDrawing]):
  6087. (-[WebCoreTextRendererFactory startCoalesceTextDrawing]):
  6088. 2002-08-07 Maciej Stachowiak <mjs@apple.com>
  6089. WebCore work for:
  6090. - fixed 2956008 - Need API for getting/setting text encoding for current page
  6091. * kwq/KWQKHTMLPartImpl.h:
  6092. * kwq/KWQKHTMLPartImpl.mm:
  6093. (KWQKHTMLPartImpl::slotData): Handle the possibility of override encoding -
  6094. one that's not just a hint from the server but should override
  6095. * kwq/WebCoreBridge.h:
  6096. * kwq/WebCoreBridge.mm:
  6097. (-[WebCoreBridge addData:withEncoding:]): Adjust for slotData interface change.
  6098. (-[WebCoreBridge addData:withOverrideEncoding:]): New method that allows
  6099. passing override encoding as a CFStringEncoding.
  6100. (-[WebCoreBridge textEncoding]): Return the current text encoding.
  6101. 2002-08-07 David Hyatt <hyatt@apple.com>
  6102. Adding support for a separate fixed font size to WebCore.
  6103. Your fixed font size pref will now be honored when the
  6104. generic monospace family is used.
  6105. * khtml/css/cssstyleselector.cpp:
  6106. * khtml/css/cssstyleselector.h:
  6107. * khtml/rendering/font.h:
  6108. * khtml/rendering/render_flow.cpp:
  6109. (RenderFlow::layoutBlockChildren):
  6110. * kwq/KWQKHTMLSettings.mm:
  6111. (KHTMLSettings::mediumFixedFontSize):
  6112. * kwq/WebCoreSettings.h:
  6113. * kwq/WebCoreSettings.m:
  6114. (-[WebCoreSettings setFixedFontSize:]):
  6115. (-[WebCoreSettings fixedFontSize]):
  6116. * kwq/khtml/khtml_settings.h:
  6117. 2002-08-07 Darin Adler <darin@apple.com>
  6118. - fixed 3017499 -- One-click crasher at hondamotorcycle.com
  6119. * kwq/KWQKURL.mm: (operator==): Just compare the strings.
  6120. Faster and safer.
  6121. 2002-08-07 Richard Williamson <rjw@apple.com>
  6122. Removed debug log.
  6123. * kwq/KWQFrame.mm:
  6124. (QFrame::setFrameStyle):
  6125. * kwq/WebCoreBridge.mm:
  6126. (-[WebCoreBridge drawRect:withPainter:]):
  6127. 2002-08-07 Darin Adler <darin@apple.com>
  6128. * kwq/KWQKURL.mm: (KURL::KWQKURLPrivate::decompose): Use CFURLCopyPath
  6129. instead calling _NSParseStringToGenericURLComponents.
  6130. 2002-08-07 Richard Williamson <rjw@apple.com>
  6131. Turned off temporary debugging I accidentally checked in.
  6132. * kwq/WebCoreBridge.mm:
  6133. (-[WebCoreBridge drawRect:withPainter:]):
  6134. 2002-08-06 David Hyatt <hyatt@apple.com>
  6135. Make user stylesheet changes dynamic. Web documents will now
  6136. update as the user stylesheet is applied and unapplied. Altered
  6137. how reapplyStyles works a bit.
  6138. * khtml/khtml_part.cpp:
  6139. (KHTMLPart::reparseConfiguration):
  6140. * khtml/xml/dom_docimpl.cpp:
  6141. (DocumentImpl::setUserStyleSheet):
  6142. * kwq/WebCoreBridge.mm:
  6143. (-[WebCoreBridge reapplyStyles]):
  6144. 2002-08-06 David Hyatt <hyatt@apple.com>
  6145. Enable user stylesheet support. It works from a fresh start but
  6146. is not yet completely dynamic.
  6147. * khtml/khtml_part.cpp:
  6148. (KHTMLPart::setUserStyleSheet):
  6149. * kwq/KWQKHTMLSettings.mm:
  6150. (KHTMLSettings::userStyleSheet):
  6151. 2002-08-06 Darin Adler <darin@apple.com>
  6152. - fixed 2965321 -- Crash on window close in kthml::Loader::cancelRequests from particular page
  6153. * khtml/misc/loader.cpp: (Loader::servePendingRequests):
  6154. Look at return value from KWQServeRequest instead of assuming it will always succeed.
  6155. * kwq/KWQLoaderImpl.h: Add return value for KWQServeRequest.
  6156. * kwq/KWQLoaderImpl.mm: (KWQServeRequest): Return false if we fail to make either the NSURL
  6157. or the WebResourceHandle. Also make sure that we delete the job if necessary.
  6158. 2002-08-06 John Sullivan <sullivan@apple.com>
  6159. * force-clean-timestamp:
  6160. Edited this file to force a make clean in WebCore after
  6161. discovering that it was necessary the hard way. I'm not
  6162. sure which earlier checkin made this be required.
  6163. 2002-08-06 Darin Adler <darin@apple.com>
  6164. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::overURL):
  6165. Fix crash in overURL, another case just like bug 3006336.
  6166. 2002-08-06 Richard Williamson <rjw@apple.com>
  6167. Frame resizing related changes. Frames are now resizable
  6168. w/ a resize bar. Still need to draw frame borders.
  6169. * khtml/rendering/render_frames.cpp:
  6170. (RenderFrameSet::userResize):
  6171. (RenderFrame::slotViewCleared):
  6172. * kwq/KWQFrame.mm:
  6173. (QFrame::setFrameStyle):
  6174. (QFrame::frameStyle):
  6175. (QFrame::frameWidth):
  6176. * kwq/KWQWidget.mm:
  6177. (QWidget::lockDrawingFocus):
  6178. (QWidget::unlockDrawingFocus):
  6179. (QWidget::flushDrawing):
  6180. (QWidget::enableFlushDrawing):
  6181. (QWidget::disableFlushDrawing):
  6182. (QWidget::setDrawingAlpha):
  6183. (QWidget::displayRect):
  6184. * kwq/WebCoreBridge.mm:
  6185. (-[WebCoreBridge drawRect:withPainter:]):
  6186. * kwq/qt/qframe.h:
  6187. * kwq/qt/qwidget.h:
  6188. 2002-08-06 Maciej Stachowiak <mjs@apple.com>
  6189. Removed some APPLE_CHANGES no longer needed after the part change.
  6190. * khtml/khtml_part.cpp:
  6191. (KHTMLPart::openedByJS): Don't call impl version.
  6192. (KHTMLPart::setOpenedByJS): Don't call impl version.
  6193. * kwq/KWQKHTMLPartImpl.h:
  6194. * kwq/KWQKHTMLPartImpl.mm: Removed openedByJS and setOpenedByJS.
  6195. * kwq/WebCoreBridge.h: Don't prototype setOpenedByScript: and
  6196. openedByScript methods now that they are not needed.
  6197. 2002-08-06 David Hyatt <hyatt@apple.com>
  6198. Make checkboxes and radio buttons use the small control
  6199. size. Tweak their baselines to not use font metrics and
  6200. to line up properly. (voodooextreme.com nearly renders
  6201. the left column correctly now.)
  6202. * khtml/rendering/render_form.cpp:
  6203. (RenderCheckBox::baselinePosition):
  6204. (RenderRadioButton::baselinePosition):
  6205. * khtml/rendering/render_form.h:
  6206. * kwq/KWQCheckBox.mm:
  6207. (QCheckBox::QCheckBox):
  6208. * kwq/KWQRadioButton.mm:
  6209. (QRadioButton::QRadioButton):
  6210. 2002-08-06 John Sullivan <sullivan@apple.com>
  6211. WebCore part of fix for 2915396 -- implement larger/smaller font
  6212. or page zoom functionality
  6213. * khtml/khtml_part.cpp:
  6214. (KHTMLPart::setZoomFactor): inside APPLE_CHANGES, remove use of
  6215. KHTML limits for zoom factor; this is a client responsibility in
  6216. our model.
  6217. 2002-08-06 Darin Adler <darin@apple.com>
  6218. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::urlSelected):
  6219. Put in a check for nil that I missed.
  6220. 2002-08-06 Darin Adler <darin@apple.com>
  6221. - fixed 2948805 -- Need WebKit API for larger/smaller font feature
  6222. * khtml/khtml_part.cpp:
  6223. (KHTMLPart::clear): Head in the direction of using the m_frames and
  6224. m_objects arrays, by turning some APPLE_CHANGES code on.
  6225. (KHTMLPart::checkCompleted): More code turned on here.
  6226. (KHTMLPart::checkEmitLoadEvent): And more code turned on here.
  6227. (KHTMLPart::parentPart): Remove APPLE_CHANGES version. We can use the original now.
  6228. (KHTMLPart::setZoomFactor): Remove APPLE_CHANGES. We want this function now.
  6229. * khtml/khtml_part.h: Remove some APPLE_CHANGES to make xmlDocImpl public.
  6230. No longer needed.
  6231. * khtml/khtmlpart_p.h: Remove a bunch of APPLE_CHANGES.
  6232. * kwq/KWQKHTMLPartImpl.h: Remove parentPart(), add getDocument() and getRenderer().
  6233. * kwq/KWQKHTMLPartImpl.mm:
  6234. (KWQKHTMLPartImpl::urlSelected): Use parentPart() instead of [bridge parent].
  6235. (KWQKHTMLPartImpl::requestFrame): Set up a ChildFrame in the m_frames array.
  6236. (KWQKHTMLPartImpl::layout): Use getRenderer().
  6237. (KWQKHTMLPartImpl::getDocument): Added.
  6238. (KWQKHTMLPartImpl::getRenderer): Added.
  6239. * kwq/WebCoreBridge.h: Add [setParent:], remove [parent].
  6240. * kwq/WebCoreBridge.mm:
  6241. (-[WebCoreBridge setParent:]): Added.
  6242. (-[WebCoreBridge reapplyStyles]): Use getDocument().
  6243. (-[WebCoreBridge forceLayout]): Use getRenderer().
  6244. (-[WebCoreBridge drawRect:withPainter:]): Use getRenderer().
  6245. (-[WebCoreBridge copyDOMTree:]): Use getDocument().
  6246. (-[WebCoreBridge copyRenderTree:]): Use getRenderer().
  6247. (-[WebCoreBridge completeURLForDOMString:]): Use getDocument().
  6248. (-[WebCoreBridge elementAtPoint:]): Use getRenderer().
  6249. (-[WebCoreBridge setTextSizeMultiplier:]):
  6250. * kwq/khtml/khtml_ext.h: Add dummy setEnabled function to make khtml_part.cpp compile.
  6251. * kwq/kparts/part.h: Add real parent() and setParent() implementation.
  6252. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  6253. Fixed crashers and leaks that come up when changing the view
  6254. associated with a part.
  6255. * khtml/khtmlview.cpp:
  6256. (KHTMLView::~KHTMLView): Don't zero out the part's view, because
  6257. that will mess up setting a new one.
  6258. * kwq/WebCoreBridge.mm:
  6259. (-[WebCoreBridge createKHTMLViewWithNSView:width:height:marginWidth:marginHeight:]):
  6260. Destroy the old view if we own it.
  6261. 2002-08-05 Darin Adler <darin@apple.com>
  6262. * kwq/KWQKHTMLPartImpl.mm:
  6263. (KWQKHTMLPartImpl::openURLInFrame):
  6264. (KWQKHTMLPartImpl::urlSelected):
  6265. (KWQKHTMLPartImpl::requestFrame):
  6266. (KWQKHTMLPartImpl::requestObject):
  6267. Add some nil checks before making calls with nil NSURL objects.
  6268. But we also have to figure out how to report some kind of error
  6269. in these cases, because the current behavior is not so good.
  6270. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  6271. - fixed 3007072 - need to be able to build fat
  6272. * WebCore.pbproj/project.pbxproj: Fixed DeploymentFat build.
  6273. 2002-08-05 Darin Adler <darin@apple.com>
  6274. - fixed 3016374 -- Change font default from small back to medium
  6275. * khtml/css/cssstyleselector.cpp:
  6276. (CSSStyleSelector::computeFontSizes): Change back to basing everything on
  6277. mediumFontSize() as opposed to a defaultFontSize that was the same as "small".
  6278. (CSSStyleSelector::applyRule): Default is m_fontSizes[3] again.
  6279. * khtml/html/html_inlineimpl.cpp: (HTMLFontElementImpl::parseAttribute):
  6280. Shift all the sizes up one, so 3 is now medium. It's important that 3 be the same as the default.
  6281. * khtml/html/html_tableimpl.cpp: (HTMLTableElementImpl::attach): Change the default back to medium.
  6282. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyle): Change the default back to [3].
  6283. * kwq/KWQKHTMLSettings.mm: (KHTMLSettings::mediumFontSize): Change name back.
  6284. * kwq/khtml/khtml_settings.h: Change name back to medium.
  6285. Do a little bit of wiring for the "text size multiplier" feature.
  6286. * kwq/WebCoreBridge.h:
  6287. * kwq/WebCoreBridge.mm: (-[WebCoreBridge setTextSizeMultiplier:]): Added.
  6288. 2002-08-05 Darin Adler <darin@apple.com>
  6289. - fixed 3009321 -- bookmark and history menus show black square for (tm)
  6290. * khtml/html/htmltokenizer.cpp:
  6291. (HTMLTokenizer::parseSpecial): Call fixUpChar.
  6292. (HTMLTokenizer::parseText): Call fixUpChar.
  6293. (HTMLTokenizer::parseTag): Call fixUpChar.
  6294. 2002-08-05 Darin Adler <darin@apple.com>
  6295. - fixed 3016795 -- http://www.google.co.il/ fails to decode
  6296. * kwq/make-charset-table.pl: Added a hack that makes us treat for
  6297. iso-8859-8-e and iso-8859-8-i the same as iso-8859-8; may not be exactly
  6298. right, but it's probably OK modulo the actual bidi support.
  6299. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  6300. * kwq/KWQKHTMLPartImpl.mm:
  6301. (KWQKHTMLPartImpl::slotData): Simplified a bit.
  6302. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  6303. Merged KHTMLPart::end method with khtml original.
  6304. * khtml/khtml_part.cpp:
  6305. (KHTMLPart::end): Remove call to impl. Use original version, but
  6306. clear KURL cache and call slotFinishedParsing as well.
  6307. * kwq/KWQKHTMLPartImpl.h:
  6308. * kwq/KWQKHTMLPartImpl.mm:
  6309. (KWQKHTMLPartImpl::end): Removed.
  6310. (KWQKHTMLPartImpl::gotoBaseAnchor): Removed. No longer needed.
  6311. * kwq/KWQKURL.mm:
  6312. (KURL::encodedHtmlRef): Implemented.
  6313. (KURL::htmlRef): Implemented.
  6314. * kwq/WebCoreBridge.h:
  6315. * kwq/WebCoreBridge.mm:
  6316. (-[WebCoreBridge scrollToBaseAnchor]): Removed. No longer needed.
  6317. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  6318. Merged KHTMLPart::openURL method with khtml original.
  6319. * khtml/khtml_part.cpp:
  6320. (KHTMLPart::openURL): Don't call the impl version. Leave most of
  6321. this #ifdef'd, except the parts that look useful.
  6322. * kwq/KWQKHTMLPartImpl.h:
  6323. * kwq/KWQKHTMLPartImpl.mm:
  6324. (KWQKHTMLPartImpl::openURL): Removed.
  6325. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  6326. Merged KHTMLPart::begin method with khtml original.
  6327. * khtml/khtml_part.cpp:
  6328. (KHTMLPart::begin): Restore this method and don't call the impl
  6329. version. ifdef out the parts that don't compile.
  6330. * kwq/KWQKHTMLPartImpl.h:
  6331. * kwq/KWQKHTMLPartImpl.mm:
  6332. (KWQKHTMLPartImpl::begin): Removed.
  6333. * kwq/KWQKHTMLSettings.mm:
  6334. (KHTMLSettings::showAnimations): Implemented; always return false.
  6335. (KHTMLSettings::userStyleSheet): Implemented; always return empty
  6336. string.
  6337. * kwq/kdecore/kurl.h: Implemented isValid as inline method.
  6338. 2002-08-04 David Hyatt <hyatt@apple.com>
  6339. Fix my bungled CSS for input fields in the user agent style
  6340. sheet.
  6341. * khtml/css/html4.css:
  6342. 2002-08-03 Darin Adler <darin@apple.com>
  6343. - fixed 2943519 - &#149; is rendered as an asterisk rather than a bullet
  6344. * khtml/html/htmltokenizer.cpp: (fixUpChar): Replaced the macro of this
  6345. name by an inline function that follows the Unicode specification. The
  6346. macro was both making Windows Latin 1 extensions character codes
  6347. (like 149 for bullet) work, but also mapping to characters that were
  6348. suitable for Qt. Since OS X has no problem with the real Unicode values,
  6349. we don't need that hack.
  6350. 2002-08-02 Darin Adler <darin@apple.com>
  6351. - fixed 3015522 -- crash decoding http://www.haaretz.co.il/
  6352. * khtml/misc/decoder.cpp: (Decoder::setEncoding): Put some hacks for
  6353. handling Hebrew text encoding inside ifndef APPLE_CHANGES. It's not clear
  6354. that these or the equivalent are needed for WebCore (they are related to
  6355. the as-yet unimplemented bidirectional text support) and they were making
  6356. us crash.
  6357. - fixed 2949235 -- checkboxes in wrong place until you scroll away and back
  6358. I fixed this once before, then removed that fix in favor of a simpler one.
  6359. But the simpler one didn't work, and I didn't test it properly. Now I have
  6360. a fix that works without the drawbacks of the original.
  6361. * khtml/rendering/render_replaced.cpp: (RenderWidget::layout): Remove the
  6362. call to move the widget aside. This does no good because it's only called
  6363. if the widget is told it needs to layout, which only happens if it's resized.
  6364. * khtml/rendering/render_root.cpp: (RenderRoot::layout): Call a KWQ function
  6365. so we can do some work at layout time.
  6366. * kwq/KWQKHTMLPartImpl.mm:
  6367. (moveWidgetsAside): Added. Function used recursively to move all widgets aside.
  6368. (KWQKHTMLPartImpl::layout): Added. Called at layout time; moves all the widgets
  6369. aside. They are moved back when print functions are called.
  6370. WebCore support for feature where client redirects are treated as if the
  6371. page was continuing to load. A big part of this was changing redirection
  6372. so that it uses QTimer, allowing us to use more of the original KHTMLPart
  6373. code. I added a feature to QTimer that KWQKHTMLPartImpl uses to monitor
  6374. what KHTMLPart does with the timer.
  6375. * kwq/qt/qobject.h: Changed "slots" definition so that all slots are public (to help
  6376. KWQSlot get at them). Added a prefix for the slot and signal strings, so that we can detect
  6377. the case where it's trying to connect a slot to another slot. Implement the convenience
  6378. version of connect here in the header. Implement blockSignals. Remove setTarget.
  6379. Make target mutable. Add new m_signalListHead and m_signalsBlocked.
  6380. * kwq/KWQObject.mm:
  6381. (QObject::findSignal): Added. Helper function that locates a signal by name.
  6382. (QObject::connect): Connects a signal to a slot using the new KWQSignal and KWQSlot.
  6383. (QObject::disconnect): Disconnects, similar to the above.
  6384. (QObject::QObject): Initialize target, m_signalListHead, and m_signalsBlocked.
  6385. (QObject::~QObject): Assert that m_signalListHead is 0.
  6386. * khtml/khtml_part.cpp:
  6387. (KHTMLPart::init): Move the code that connects the redirection timer out
  6388. of APPLE_CHANGES.
  6389. (KHTMLPart::~KHTMLPart): Remove the APPLE_CHANGES around the code that
  6390. stops the redirection timer.
  6391. (KHTMLPart::restoreURL): Remove the APPLE_CHANGES around the code that
  6392. stops the redirection timer.
  6393. (KHTMLPart::openURL): Move the APPLE_CHANGES so the code that stops the
  6394. redirection timer will run.
  6395. (KHTMLPart::closeURL): Remove the APPLE_CHANGES around the code that
  6396. stops the redirection timer.
  6397. (KHTMLPart::scheduleRedirection): Remove most of this function from the
  6398. APPLE_CHANGES. We still probably need to revisit the handling of m_bComplete.
  6399. * kwq/KWQSignal.h: Added.
  6400. * kwq/KWQSignal.mm: Added.
  6401. * kwq/KWQSlot.h: Added.
  6402. * kwq/KWQSlot.mm: Added.
  6403. * WebCore.pbproj/project.pbxproj: Added KWQSignal.h/mm, KWQSlot.h/mm.
  6404. * khtml/misc/loader.h: Simplify APPLE_CHANGES ifdefs since all slots are now public.
  6405. * force-clean-timestamp: Touch this since header files were changed.
  6406. * khtml/ecma/kjs_window.cpp:
  6407. (Window::get): Disable the "name" part of this. We can re-enable it if we
  6408. need it, but every QObject had a name because of this one piece of code,
  6409. and I don't think it was effectively setting the frame name.
  6410. (Window::put): Disable the "name" part of this for the same reason.
  6411. (History::getValueProperty): Disable the "length" part of this. It was
  6412. calling some unimplemented stuff. We can re-enable this and implement
  6413. what we need in KWQ then.
  6414. * khtml/rendering/render_form.h: Remove RenderTextArea::performAction, because I
  6415. changed this one case to use the new connect machinery. We can convert all the other
  6416. form items to use the new machinery, and then eliminate performAction altogether.
  6417. * khtml/rendering/render_form.cpp:
  6418. (RenderSubmitButton::RenderSubmitButton): Remove unneeded setTarget. For the moment,
  6419. connect takes care of this, and in the long run we won't need to set the target at all.
  6420. (RenderLineEdit::RenderLineEdit): Ditto.
  6421. * khtml/rendering/render_frames.h:
  6422. * khtml/rendering/render_frames.cpp: Put partLoadingErrorNotify inside ifndef APPLE_CHANGES
  6423. because it uses a bunch of Qt stuff that's not used anywhere else, and we never call it.
  6424. * kwq/KWQKHTMLPartImpl.h: Remove scheduleRedirection, timerEvent, and m_redirectionTimer,
  6425. add redirectionTimerStartedOrStopped and layout.
  6426. * kwq/KWQKHTMLPartImpl.mm:
  6427. (redirectionTimerMonitor): Added. Small stub that calls redirectionTimerStartedOrStopped.
  6428. (KWQKHTMLPartImpl::KWQKHTMLPartImpl): Set up a monitor on the redirection timer.
  6429. (KWQKHTMLPartImpl::~KWQKHTMLPartImpl): Remove now-unneeded killTimer call.
  6430. (KWQKHTMLPartImpl::jumpToSelection): Simplify by using dynamic_cast instead of render_name().
  6431. (KWQKHTMLPartImpl::redirectionTimerStartedOrStopped): Added. Calls bridge to report client
  6432. redirect events whenever the redirection timer is started or stopped.
  6433. * kwq/qt/qtextedit.h: Define a KWQSignal for textChanged, and a function that calls it.
  6434. * kwq/KWQTextEdit.mm: (QTextEdit::QTextEdit): Set up a KWQSignal for textChanged.
  6435. * kwq/KWQTextArea.mm: (-[KWQTextArea textDidEndEditing:]): Instead of calling emitAction,
  6436. call textChanged, which will emit the signal using the new signal machinery.
  6437. * kwq/qt/qtimer.h:
  6438. * kwq/KWQTimer.mm:
  6439. (+[KWQTimerTarget targetWithQTimer:]): Added. Used to implement QTimer in terms of NSTimer.
  6440. (-[KWQTimerTarget timerFired:]): Added. Used to implement QTimer in terms of NSTimer.
  6441. (QTimer::QTimer): Added.
  6442. (QTimer::isActive): Implemented.
  6443. (QTimer::start): Implemented.
  6444. (QTimer::stop): Implemented.
  6445. (QTimer::setMonitor): Implemented.
  6446. (QTimer::fire): Implemented.
  6447. * kwq/WebCoreBridge.h: Changed name of gotoAnchor to scrollToAnchor. Added client redirect
  6448. methods.
  6449. * kwq/WebCoreBridge.mm: (-[WebCoreBridge scrollToAnchor:]): Changed name.
  6450. 2002-08-02 David Hyatt <hyatt@apple.com>
  6451. Lots of form control changes.
  6452. - Inputs and textareas now respond to setFont and can have their font set by the Web page
  6453. explicitly. These fields emulate the WinIE behavior of defaulting to the UI system font
  6454. and only picking up new fonts if they are explicitly specified on the element itself.
  6455. - Buttons and selects use the small versions now.
  6456. - Stopped trying to align controls along baselines of their interior text. Konqueror is
  6457. the only browser that does this, and it looks bad on many pages. With this patch controls
  6458. align along their bottom borders (which extend slightly below the baseline of surrounding
  6459. text). This matches Gecko, MacIE, and WinIE behavior.
  6460. - Stopped using monospace for textareas and inputs.
  6461. - Fixed a bug with inputs not calling setScrollable on their cells.
  6462. * khtml/css/html4.css:
  6463. * khtml/rendering/render_form.cpp:
  6464. (RenderSubmitButton::calcMinMaxWidth):
  6465. (RenderSubmitButton::baselinePosition):
  6466. (RenderLineEdit::baselinePosition):
  6467. (RenderSelect::baselinePosition):
  6468. * khtml/rendering/render_form.h:
  6469. * kwq/KWQButton.mm:
  6470. (QButton::QButton):
  6471. (QButton::sizeHint):
  6472. * kwq/KWQComboBox.mm:
  6473. (QComboBox::init):
  6474. * kwq/KWQLineEdit.mm:
  6475. (QLineEdit::cursorPosition):
  6476. (QLineEdit::setFont):
  6477. * kwq/KWQNSTextField.mm:
  6478. (-[KWQNSTextField initWithFrame:widget:]):
  6479. * kwq/KWQView.mm:
  6480. (-[KWQNSButtonCell cellSizeForBounds:]):
  6481. (+[KWQNSButton initialize]):
  6482. * kwq/WebCoreTextRendererFactory.h:
  6483. * kwq/WebCoreTextRendererFactory.m:
  6484. (-[WebCoreTextRendererFactory fontWithFamily:traits:size:]):
  6485. * kwq/qt/qbutton.h:
  6486. * kwq/qt/qlineedit.h:
  6487. 2002-08-01 Darin Adler <darin@apple.com>
  6488. - fixed 2841277 -- support for charset=gb2312
  6489. * kwq/character-sets.txt: Added "euc-cn" to the list of aliases for
  6490. "gb2312", since that's the name used by CFStringEncoding for that
  6491. character set.
  6492. 2002-08-01 Maciej Stachowiak <mjs@apple.com>
  6493. Remove KWQKHTMLPartImpl's setBaseURL method and m_baseURL field,
  6494. since nothing should really need them any more.
  6495. * kwq/KWQKHTMLPartImpl.h:
  6496. * kwq/KWQKHTMLPartImpl.mm:
  6497. (KWQKHTMLPartImpl::begin): Set base URL on document, if it exists.
  6498. (KWQKHTMLPartImpl::requestFrame): Get base URL from document.
  6499. (KWQKHTMLPartImpl::requestObject): Ditto.
  6500. (KWQKHTMLPartImpl::frames): Ditto.
  6501. (KWQKHTMLPartImpl::setBaseURL): Removed.
  6502. 2002-08-01 Richard Williamson <rjw@apple.com>
  6503. Added method to allow WebKit to direct khtml to
  6504. goto to an anchor point. Need for back/forward.
  6505. * kwq/KWQKHTMLPartImpl.mm:
  6506. (KWQKHTMLPartImpl::urlSelected):
  6507. * kwq/WebCoreBridge.h:
  6508. * kwq/WebCoreBridge.mm:
  6509. (-[WebCoreBridge gotoAnchor:]):
  6510. 2002-08-01 Ken Kocienda <kocienda@apple.com>
  6511. Tweaked WebCore cache settings. The WebCore cache will now grow
  6512. to 1 MB (was 512k). The maximum cacheable item is 16k instead of 40k.
  6513. * khtml/misc/loader.cpp
  6514. === Alexander-15 ===
  6515. 2002-08-01 Maciej Stachowiak <mjs@apple.com>
  6516. Restored the original KHTMLPart::write() now that none of our
  6517. changes in the impl version are beneficial in any way.
  6518. * khtml/khtml_part.cpp:
  6519. (KHTMLPart::write): Restore original code in lieue of calling impl
  6520. version.
  6521. * kwq/KWQKHTMLPartImpl.h:
  6522. * kwq/KWQKHTMLPartImpl.mm:
  6523. (KWQKHTMLPartImpl::openURL): Remove initialization of
  6524. m_decodingStarted, since it is now gone.
  6525. (KWQKHTMLPartImpl::write): Removed.
  6526. 2002-08-01 Maciej Stachowiak <mjs@apple.com>
  6527. Removed m_documentSource and remaining ill-conceived uses thereof.
  6528. * kwq/KWQKHTMLPartImpl.h:
  6529. * kwq/KWQKHTMLPartImpl.mm:
  6530. (KWQKHTMLPartImpl::openURL): Don't initialize it.
  6531. (KWQKHTMLPartImpl::write): Don't use it.
  6532. 2002-08-01 Maciej Stachowiak <mjs@apple.com>
  6533. Remove stuff formerly useful for "View Reconstructed Source"
  6534. feature but now useless.
  6535. * kwq/KWQKHTMLPartImpl.h:
  6536. * kwq/KWQKHTMLPartImpl.mm:
  6537. (KWQKHTMLPartImpl::documentSource): Removed.
  6538. * kwq/WebCoreBridge.h:
  6539. * kwq/WebCoreBridge.mm:
  6540. (-[WebCoreBridge documentTextFromDOM]): Removed.
  6541. 2002-07-31 Darin Adler <darin@apple.com>
  6542. * kwq/qt/qptrvector.h:
  6543. * kwq/qt/qvector.h:
  6544. * kwq/KWQVectorImpl.h:
  6545. * kwq/KWQVectorImpl.mm:
  6546. * force-clean-timestamp:
  6547. New implementation of QVector that does not use CFArray. Should fix some data()
  6548. anomalies. Shares wierdnesses with the original Qt class.
  6549. * WebCore-tests.exp: Remove old QVector entry points and add new ones.
  6550. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::write): Did a tiny optimization
  6551. by initializing the QString rather than first assigning and then initializing.
  6552. Also reworded some comments and rearranged code to make it clearer that
  6553. m_decodingStarted is now used only to decide when to call determineParseMode.
  6554. * khtml/css/cssparser.cpp: Removed the APPLE_CHANGES around a change that's
  6555. fine for non-Apple use as well.
  6556. 2002-07-30 Maciej Stachowiak <mjs@apple.com>
  6557. Fixes of various bugs that prevented Alexander from running the
  6558. Mozilla page load test.
  6559. - fixed 3008682 - Alexander cannot run Mozilla-PLT
  6560. * khtml/misc/decoder.cpp:
  6561. (Decoder::decode): Don't drop the accumulated buffer if the document
  6562. happens to be unicode!
  6563. * kwq/KWQCString.mm:
  6564. (operator==): Fix reversed logic when comparing an empty QCString
  6565. to a const char *.
  6566. * kwq/KWQKHTMLPartImpl.mm:
  6567. (KWQKHTMLPartImpl::slotData): Set complete flag later so that
  6568. initializing it to false doesn't clobber setting it.
  6569. (KWQKHTMLPartImpl::begin): Initialize complete flag to false.
  6570. (KWQKHTMLPartImpl::write): Don't buffer things up for the decoder -
  6571. the decoder does that internally.
  6572. * kwq/WebCoreBridge.h, kwq/WebCoreBridge.mm: Remove setURL: method.
  6573. 2002-07-30 Richard Williamson <rjw@apple.com>
  6574. Don't create unnecessary unicode string. Of the
  6575. 95695 unnecessary unicode allocations we do loading
  6576. the base test, this usage accounted for 7185. Most
  6577. of the others come from DOMString to QConstString to
  6578. QString to unicode() conversion during parsing. All
  6579. that unnecessary work needs to be removed.
  6580. * kwq/KWQColor.mm:
  6581. (decodeColorFromHexColorString):
  6582. 2002-07-30 David Hyatt <hyatt@apple.com>
  6583. Ok, this time i've got it. I hope. I think. Fingers crossed.
  6584. Putting the table recalc check back in one more time. :)
  6585. * khtml/rendering/render_table.cpp:
  6586. (RenderTable::addColumns):
  6587. (RenderTable::addColInfo):
  6588. 2002-07-30 David Hyatt <hyatt@apple.com>
  6589. Backing myself out again. No crashes, but now pages stall.
  6590. #*^&*#@^%*&!!!!
  6591. * khtml/rendering/render_table.cpp:
  6592. (RenderTable::recalcColInfo):
  6593. (RenderTable::addColInfo):
  6594. 2002-07-30 David Hyatt <hyatt@apple.com>
  6595. Putting my table patch back in. Also optimizing the code
  6596. to avoid deleting and recreating the same colinfo over
  6597. and over again. Now colinfos can recalc their own
  6598. information.
  6599. * khtml/rendering/render_table.cpp:
  6600. (RenderTable::addColumns):
  6601. (RenderTable::recalcColInfo):
  6602. (RenderTable::addColInfo):
  6603. (RenderTable::calcMinMaxWidth):
  6604. * khtml/rendering/render_table.h:
  6605. 2002-07-30 Richard Williamson <rjw@apple.com>
  6606. Inline critical function.
  6607. * kwq/KWQString.mm:
  6608. (compareToLatinCharacter):
  6609. 2002-07-30 Richard Williamson <rjw@apple.com>
  6610. Wow! Avoid creation of unicode string when only a single character
  6611. is needed. Simple change for big gains, 7% - 10% improvement
  6612. on cached pages. Other similar gains may remain to be had.
  6613. * khtml/css/cssparser.cpp:
  6614. 2002-07-30 Darin Adler <darin@apple.com>
  6615. * khtml/css/makevalues: Fail if we don't find gperf.
  6616. 2002-07-30 David Hyatt <hyatt@apple.com>
  6617. Back myself out. I seem to have stumbled onto another bug.
  6618. Until I figure it out, turn this back off.
  6619. * khtml/rendering/render_table.cpp:
  6620. (RenderTable::addColumns):
  6621. (RenderTable::addColInfo):
  6622. 2002-07-30 David Hyatt <hyatt@apple.com>
  6623. Fix for 3000604, 2902173, 2921313. Ensure that tables recalc their
  6624. column widths like they are supposed to. This fixes livepage.apple.com,
  6625. applemuseum.com, and many other pages (that didn't have bugs filed).
  6626. Yay!
  6627. * khtml/rendering/render_table.cpp:
  6628. (RenderTable::recalcColInfo):
  6629. (RenderTable::addColInfo):
  6630. 2002-07-29 David Hyatt <hyatt@apple.com>
  6631. Fix for 3008660, arstechnica regression. Move the acquisition
  6632. of the document's text color (and the addition of CSS properties)
  6633. to the attach() call instead of the constructor. The table won't
  6634. add the properties until it is building its render object.
  6635. Also removing the #ifndef around the layout scheduler. This fixes
  6636. :hover feedback and reflows from things like the marquee on
  6637. livepage.apple.com.
  6638. * khtml/html/html_tableimpl.cpp:
  6639. (HTMLTableElementImpl::HTMLTableElementImpl):
  6640. (HTMLTableElementImpl::id):
  6641. (HTMLTableElementImpl::attach):
  6642. * khtml/html/html_tableimpl.h:
  6643. * khtml/rendering/render_object.h:
  6644. 2002-07-29 Darin Adler <darin@apple.com>
  6645. - fixed 3010875 -- Find only works for latin characters
  6646. - dealt with part of 2948387 -- stop button flashes to "go" twice while loading citibank.com
  6647. * force-clean-timestamp: Make everyone do a make clean because dependencies won't do
  6648. the right thing.
  6649. * khtml/khtml_part.h:
  6650. * khtml/khtml_part.cpp: (KHTMLPart::slotRedirect): Changed the APPLE_CHANGES ifdefs around
  6651. in this function so we can start using it again.
  6652. (KHTMLPart::jumpToSelection): Removed. The bridge goes straight to the impl.
  6653. * kwq/WebCoreBridge.mm: (-[WebCoreBridge jumpToSelection]): Go straight to the impl.
  6654. * WebCore-tests.exp: One new export needed for tests with change to qstring.h.
  6655. * kwq/qt/qevent.h:
  6656. * kwq/KWQEvent.mm: Removed unused stuff.
  6657. * kwq/KWQKHTMLPartImpl.h: Removed redirectURL(); we now use KHTMLPart::slotRedirect().
  6658. * kwq/KWQKHTMLPartImpl.mm:
  6659. (KWQKHTMLPartImpl::write): Call latin1() explicitly in here for m_documentSource. It was being
  6660. done implicitly before.
  6661. (KWQKHTMLPartImpl::scheduleRedirection): Get rid of 1-second minimum delay for meta refresh.
  6662. (KWQKHTMLPartImpl::timerEvent): Call KHTMLPart::slotRedirect() instead of redirectURL(), because
  6663. they were identical, so we don't need our own copy.
  6664. * kwq/kdeui/kmessagebox.h:
  6665. * kwq/KWQKMessageBox.mm: (KMessageBox::questionYesNo): Added dontAskAgain string parameter.
  6666. Before, it was being turned into a bool!
  6667. * kwq/KWQKProtocolManager.mm: Tweak and add FIXME.
  6668. * kwq/qt/qstring.h: Remove implicit conversion to const char *, which causes only pain.
  6669. * kwq/KWQString.mm:
  6670. (QString::find): Add caseSensitive parameter to the QString overload of this.
  6671. (QString::contains): Add a QString version of this.
  6672. * kwq/character-sets.txt: Add the MIB number for ISO-10646-J-1.
  6673. * kwq/make-charset-table.pl: Remove special case for ISO-10646-J-1 MIB number.
  6674. 2002-07-29 Richard Williamson <rjw@apple.com>
  6675. Fixed 3009074. Added KHTMLPart::jumpToSelection and related scaffolding (part impl, bridge, etc.)
  6676. * khtml/khtml_part.cpp:
  6677. (KHTMLPart::jumpToSelection):
  6678. * khtml/khtml_part.h:
  6679. * kwq/KWQKHTMLPartImpl.h:
  6680. * kwq/KWQKHTMLPartImpl.mm:
  6681. (KWQKHTMLPartImpl::jumpToSelection):
  6682. * kwq/WebCoreBridge.h:
  6683. * kwq/WebCoreBridge.mm:
  6684. (-[WebCoreBridge jumpToSelection]):
  6685. 2002-07-29 Richard Williamson <rjw@apple.com>
  6686. Fixed 3009067. We were not correctly testing the first character of the node string. Fixed in KWQString.
  6687. This highlighted another problem. KWQ does not support unichar * string find w/ case sensitive argument.
  6688. KWQString implements QString::find(const char *chs, int index, bool caseSensitive), so QStrings passed
  6689. will be auto-cast to char *. Filed 3010875 to track that issue.
  6690. * kwq/KWQString.mm:
  6691. (compareToLatinCharacter):
  6692. (QString::find):
  6693. 2002-07-26 David Hyatt <hyatt@apple.com>
  6694. Changing the default user agent to be Gecko. This fixes
  6695. the layout issues with livepage.apple.com. We simply
  6696. cannot support absolute positioning while claiming to
  6697. be Mac MSIE, since Mac MSIE incorrectly computes the containing
  6698. block and sites have to correct for that.
  6699. * kwq/KWQKProtocolManager.mm:
  6700. (KProtocolManager::userAgentForHost):
  6701. 2002-07-26 David Hyatt <hyatt@apple.com>
  6702. Fix for 2944382, NOWRAP was being incorrectly applied in KHTML.
  6703. It was being ignored incorrectly if a fixed width was specified
  6704. on a cell. This width on the cell is actually irrelevant and
  6705. should not have been checked, since NOWRAP will affect the
  6706. whole column and not just a specific cell.
  6707. * khtml/rendering/render_table.cpp:
  6708. (RenderTableCell::calcMinMaxWidth):
  6709. 2002-07-25 Darin Adler <darin@apple.com>
  6710. * WebCore.pbproj/project.pbxproj: Add DeploymentFat build style.
  6711. - fixed 3007532 -- Main documentation frame doesn't load on Apple docs page
  6712. This was caused by my recent fix for the "checkboxes in wrong place" bug.
  6713. While discussing that bug fix with Richard, I realized that I needed to do the
  6714. work at layout time, not print time. Luckily, this code ends up being simpler
  6715. than the original solution.
  6716. * khtml/rendering/render_replaced.cpp:
  6717. (RenderWidget::resizeWidget): Take out size limits based on X limits.
  6718. (RenderWidget::layout): Move widgets off into far away coordinate space when
  6719. layout happens. They get moved back on to the right position during the print process.
  6720. * kwq/KWQKHTMLPartImpl.h:
  6721. * kwq/KWQKHTMLPartImpl.mm: Removed paint, buildViewsNotYetAddedSet, viewsNotYetAdded,
  6722. and addedWidget.
  6723. * kwq/KWQScrollView.mm: (QScrollView::addChild): Removed call to addedWidget.
  6724. * kwq/WebCoreBridge.mm: (-[WebCoreBridge drawRect:withPainter:]): Put the call to the
  6725. renderer to print back in here, since it's simple again.
  6726. * kwq/KWQWidget.mm: (QWidget::internalSetGeometry): Left in a couple of asserts that
  6727. were useful in narrowing this one down.
  6728. 2002-07-25 David Hyatt <hyatt@apple.com>
  6729. Floated images using "align" should have margins to prevent the text from running right
  6730. up against them. Matches IE and Mozilla behavior.
  6731. * khtml/css/html4.css:
  6732. 2002-07-25 David Hyatt <hyatt@apple.com>
  6733. Fix <blockquote> tags to have top and bottom margins of 1em. This matches the <blockquote>
  6734. behavior in Gecko.
  6735. * khtml/css/html4.css:
  6736. 2002-07-25 Darin Adler <darin@apple.com>
  6737. - fixed 2965269 -- sizes reported to progress handler from KWQCheckCacheObjectStatus for images are wrong
  6738. - fixed 3006054 -- assert error failingURL != nil
  6739. * khtml/misc/loader.h: Add dataSize() and m_dataSize.
  6740. * khtml/misc/loader.cpp:
  6741. (CachedImage::CachedImage): Initialize m_dataSize.
  6742. (CachedImage::data): Update m_dataSize.
  6743. * kwq/kio/jobclasses.h:
  6744. * kwq/KWQKjobclasses.mm: Store a KURL instead of an NSURL, because KURL can hold any string.
  6745. * kwq/KWQLoaderImpl.mm:
  6746. (KWQServeRequest): Send an error with [WebCoreBridge reportError:] if the URL is so bad we can't
  6747. construct an NSURL from it. This is the only case in all our code where we need to have failingURL
  6748. accept a string.
  6749. (KWQCheckCacheObjectStatus): If the object is an image, use the dataSize() rather than size().
  6750. The size() is a (bad) estimate of how much memory is used in the case of an image, but we want
  6751. to report the size of the original data.
  6752. * kwq/WebCoreBridge.h: Add a [reportError:] method.
  6753. 2002-07-25 David Hyatt <hyatt@apple.com>
  6754. Fix for huge white space problem on appleturns.com, bug 2947818. Vertical-align
  6755. was being applied to block-level elts in violation of the CSS2 spec. Vertical-align
  6756. is only supposed to apply to inline-level elts and table cells. getVerticalPosition
  6757. will now bail if the element is block-level.
  6758. * khtml/rendering/render_object.cpp:
  6759. (RenderObject::getVerticalPosition):
  6760. 2002-07-25 Chris Blumenberg <cblu@apple.com>
  6761. * kwq/WebCoreBridge.h:
  6762. * kwq/WebCoreBridge.mm:
  6763. (-[WebCoreBridge elementAtPoint:]): renamed
  6764. 2002-07-25 David Hyatt <hyatt@apple.com>
  6765. Fix for bug 2992158, the calendar on www.blog.org in the upper
  6766. right was shoved offscreen (and causing a horizontal scrollbar
  6767. to be necessary). KHTML was not recomputing the margins for
  6768. the table when it became displaced by the float. It was also
  6769. mispositioning the float itself.
  6770. * khtml/rendering/render_box.h:
  6771. * khtml/rendering/render_flow.cpp:
  6772. (RenderFlow::layoutBlockChildren):
  6773. (RenderFlow::addOverHangingFloats):
  6774. 2002-07-24 David Hyatt <hyatt@apple.com>
  6775. Fix for bug 2953423, viamichelin.com lays out incorrectly.
  6776. Remove a completely bogus optimization in the KHTML code that
  6777. attempted to bail when the specified width was 0. This was
  6778. a very basic problem, and it should fix other pages that were
  6779. laying out incorrectly as well.
  6780. * khtml/rendering/render_flow.cpp:
  6781. (RenderFlow::layout):
  6782. 2002-07-24 Darin Adler <darin@apple.com>
  6783. * khtml/khtml_part.cpp: (KHTMLPart::clear): Remove code that reset m_frameNameId,
  6784. to complete Maciej's change to fix bug 3006354.
  6785. 2002-07-24 Darin Adler <darin@apple.com>
  6786. - fixed 2906567 -- Font size calculations should use 96 dpi instead of 72 dpi
  6787. - fixed 3005932 -- fonts specified in 'ex' units rendered waaaaaaay too large
  6788. * khtml/css/cssstyleselector.cpp: (CSSStyleSelector::computeFontSizes):
  6789. Use a default font size that's the same as small, rather than a "medium font
  6790. size". Don't multiply the values from settings by the scaling factor.
  6791. (CSSStyleSelector::applyRule): Make the default font size here for nodes with
  6792. no parents be small (m_fontSizes[2]) rather than medium (m_fontSizes[3]).
  6793. * khtml/html/html_inlineimpl.cpp: (parseFontSizeNumber): Added. Tolerant of
  6794. non-numeric characters after the numeric size. Also distinguishes a size like
  6795. "0" from something that's not a numeric size at all.
  6796. (HTMLFontElementImpl::parseAttribute): Use parseFontSizeNumber, but also make
  6797. size 3 be the same as CSS_VAL_SMALL, not CSS_VAL_MEDIUM. This mistake (using
  6798. CSS_VAL_MEDIUM) led to all kinds of strangeness in the KHTML code, including
  6799. mishandling of 0 and the need to create CSS_VAL__KONQ_XXX_LARGE. Also change
  6800. code so that 0 is treated as CSS_VAL_SMALL (same as 3) rather than CSS_VAL_XX_SMALL.
  6801. This makes 0 between -1 and +1.
  6802. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyle): Make default font
  6803. size be small (fontSizes()[2]) rather than medium (fontSizes()[3]).
  6804. * khtml/html/html_tableimpl.cpp: (HTMLTableElementImpl::HTMLTableElementImpl):
  6805. Make default font size be CSS_VAL_SMALL, not CSS_VAL_MEDIUM.
  6806. * kwq/qt/qfontmetrics.h:
  6807. * kwq/KWQFontMetrics.mm: (QFontMetrics::xHeight): Added.
  6808. * kwq/WebCoreTextRenderer.h: Added xHeight.
  6809. * khtml/css/css_valueimpl.cpp: (CSSPrimitiveValueImpl::computeLengthFloat):
  6810. Use xHeight rather than computing the height of an actual letter 'x'.
  6811. * khtml/rendering/render_object.cpp: (RenderObject::getVerticalPosition):
  6812. Use xHeight rather than computing the height of an actual letter 'x'.
  6813. * kwq/WebCoreBridge.mm: (-[WebCoreBridge reapplyStyles]): Fixed backwards
  6814. if that prevented font changes from being reflected in the browser window.
  6815. * kwq/khtml/khtml_settings.h:
  6816. * kwq/KWQKHTMLSettings.mm:
  6817. (KHTMLSettings::defaultFontSize):
  6818. * kwq/WebCoreSettings.h:
  6819. * kwq/WebCoreSettings.m:
  6820. (-[WebCoreSettings setDefaultFontSize:]):
  6821. (-[WebCoreSettings defaultFontSize]):
  6822. Replace mediumFontSize with defaultFontSize.
  6823. * WebCore.pbproj/project.pbxproj: Rearrange some of the files.
  6824. 2002-07-24 Richard Williamson <rjw@apple.com>
  6825. Support for find in HTML.
  6826. * kwq/WebCoreBridge.h:
  6827. * kwq/WebCoreBridge.mm:
  6828. (-[WebCoreBridge searchFor:direction:caseSensitive:]):
  6829. 2002-07-24 Darin Adler <darin@apple.com>
  6830. - fixed 2949235 -- checkboxes in wrong place until you scroll away and back
  6831. The problem here was that we put views in when we print, but we never removed them.
  6832. I added code to keep track of existing views, and remove them if they are not re-added.
  6833. * kwq/KWQKHTMLPartImpl.h: Add paint, addedWidget, buildViewsNotAddedSet, and viewsNotYetAdded.
  6834. It might be nice to find a different place to hang this that is not included by the KHTML code.
  6835. But I think that having this on the bridge would be worse.
  6836. * kwq/KWQKHTMLPartImpl.mm:
  6837. (KWQKHTMLPartImpl::paint): Added. Removes any views that are not explicitly added by RenderWidget
  6838. during the print process.
  6839. (KWQKHTMLPartImpl::addedWidget): Added. Called by KWQScrollView to tell us a view was added.
  6840. (KWQKHTMLPartImpl::buildViewsNotYetAddedSet): Added. Used to build the initial set of views.
  6841. * kwq/KWQScrollView.mm: (QScrollView::addChild): Added call to KWQKHTMLPartImpl::addedWidget.
  6842. * kwq/WebCoreBridge.mm: (-[WebCoreBridge drawRect:withPainter:]): Calls KWQKHTMLPartImpl::paint.
  6843. * kwq/KWQWindowWidget.mm: (KWQWindowWidget::frameGeometry), (KWQWindowWidget::mapToGlobal),
  6844. (KWQWindowWidget::mapFromGlobal), (KWQWindowWidget::internalSetGeometry):
  6845. Fixed logic to work properly for windows not on main screen.
  6846. * khtml/khtml_part.cpp: Moved the boundary of an existing ifndef APPLE_CHANGES so that
  6847. KHTMLPart::show() and hide() are not compiled, mainly for clarity.
  6848. * khtml/rendering/render_replaced.cpp: (RenderWidget::detach): Removed unneeded APPLE_CHANGES.
  6849. * kwq/KWQWindowWidget.h: Removed some unneeded virtual functions.
  6850. * kwq/qt/qscrollview.h: Removed some unneeded virtual functions, made others non-virtual.
  6851. * kwq/qt/qwidget.h: Removed some unneeded virtual functions, made others non-virtual.
  6852. * kwq/KWQWidget.mm: Removed a lot of unused and unneeded stuff.
  6853. * force-clean-timestamp: Needed to do this because I changed header files.
  6854. 2002-07-24 Darin Adler <darin@apple.com>
  6855. - fixed 3006329 - space should be stripped from beginning of relative url
  6856. * kwq/KWQKURL.mm: (KURL::normalizeRelativeURLString): Added a call to stripWhiteSpace.
  6857. 2002-07-24 Maciej Stachowiak <mjs@apple.com>
  6858. Made frame names globally unique, not just unique per parent frame
  6859. - this is needed to avoid triggering the assertion in 3006354
  6860. (Assertion failure on salon.com). Clearing my cache made the
  6861. assertion go away by itself, but it seems good to avoid the
  6862. possibility of triggering it in the future.
  6863. * khtml/khtmlpart_p.h: Make m_frameNameId static.
  6864. * khtml/khtml_part.cpp: Initialize it here.
  6865. 2002-07-24 Darin Adler <darin@apple.com>
  6866. - fixed 3006336 -- crash in _NSDescriptionWithLocaleFunc
  6867. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::overURL):
  6868. Don't use the result of getNSString() on a C++ temporary object.
  6869. We could also fix this by doing retain autorelease in getNSString().
  6870. 2002-07-23 Chris Blumenberg <cblu@apple.com>
  6871. More plumbing for contextual menu support.
  6872. * kwq/WebCoreBridge.h:
  6873. * kwq/WebCoreBridge.mm:
  6874. (-[WebCoreBridge completeURLForDOMString:]): renamed
  6875. (-[WebCoreBridge elementInfoAtPoint:]): renamed
  6876. * kwq/qt/qpixmap.h: added an accessor to the WebCoreImageRenderer
  6877. 2002-07-23 Darin Adler <darin@apple.com>
  6878. * WebCore.pbproj/project.pbxproj: Fix file reference types to be more consistent.
  6879. * khtml/html/htmltokenizer.cpp:
  6880. (HTMLTokenizer::parseTag): Changed indenting to use spaces, makes our diff with
  6881. KDE smaller.
  6882. (HTMLTokenizer::end): Remove unneeded APPLE_CHANGES.
  6883. * kwq/KWQDOMNode.cpp: Tweak.
  6884. * kwq/KWQDOMNode.h: Tweak.
  6885. 2002-07-23 David Hyatt <hyatt@apple.com>
  6886. Fix bug 2803155 - images not displayed on http://bscw.gmd.de.
  6887. My fix is to use our newfound quirks mode to implement a comment
  6888. parsing quirk (this is how Mozilla handles this same issue).
  6889. Only in quirks mode, the tokenizer will treat <!--> atomically as
  6890. a complete comment.
  6891. This is bug 34302 on bugs.kde.org, for those who are curious.
  6892. * khtml/html/htmltokenizer.cpp:
  6893. (HTMLTokenizer::parseTag):
  6894. 2002-07-23 Chris Blumenberg <cblu@apple.com>
  6895. Initial plumbing for contextual menu support.
  6896. * WebCore.pbproj/project.pbxproj:
  6897. * kwq/KWQDOMNode.cpp: Added.
  6898. (isImage):
  6899. * kwq/KWQDOMNode.h: Added.
  6900. * kwq/WebCoreBridge.h:
  6901. * kwq/WebCoreBridge.mm:
  6902. (-[WebCoreBridge _URLForDOMString:]): added
  6903. (-[WebCoreBridge _elementInfoForMouseEvent:]): added
  6904. 2002-07-23 Richard Williamson <rjw@apple.com>
  6905. Turn on find related code in part in preparation for
  6906. implementing find in WebKit.
  6907. * khtml/khtml_part.cpp:
  6908. (KHTMLPart::init):
  6909. (KHTMLPart::clear):
  6910. (KHTMLPart::findTextNext):
  6911. 2002-07-23 David Hyatt <hyatt@apple.com>
  6912. Fixing two bugs here. The first is bug with @import sheets not inheriting strict parsing mode from their parent sheet.
  6913. This means all @import sheets are being treated as strict mode!
  6914. The second bug is in KWQ. We were never calling determineParseMode, so we always defaulted to strict mode, and therefore
  6915. were highly intolerant of unitless numbers on absolutely positioned blocks. This fixes many problems, notably www.netscape.com
  6916. and ZDNet.com on the cvs-base tests.
  6917. * khtml/css/cssparser.h:
  6918. * kwq/KWQKHTMLPartImpl.mm:
  6919. (KWQKHTMLPartImpl::write):
  6920. 2002-07-23 Darin Adler <darin@apple.com>
  6921. - fixed 3004818 -- relative urls are assembled incorrectly at ticketmaster
  6922. - fixed 2999279 -- Invalid URI in request at subpage of swatch.com
  6923. The issue here is URLs with paths that start with "/../". RFC 2396 says one
  6924. thing, and that's what CFURL does. But real web browsers do another thing.
  6925. * kwq/KWQKURL.mm:
  6926. (KURL::KWQKURLPrivate::KWQKURLPrivate): Clean up a bit by removing unneeded init().
  6927. (escapeQString): Don't make a copy of the passed-in QString.
  6928. (pathEndsWithSlash): Don't make a copy of the passed-in QString.
  6929. (copyEscapedPath): Make this a static function instead of extern.
  6930. (KURL::KWQKURLPrivate::decompose): Add the new "../" and "./" logic.
  6931. 2002-07-23 David Hyatt <hyatt@apple.com>
  6932. * khtml/rendering/font.cpp:
  6933. Fix deployment build bustage by including <algorithm>.
  6934. * khtml/rendering/render_frames.cpp:
  6935. (RenderPartObject::calcReplacedWidth):
  6936. Fix a bug with http://www.moveabletype.com's top portion
  6937. not showing up (bug 2986714). A hack was being improperly
  6938. applied to fixed width plugins, when it should have only
  6939. been applied to variable width plugins.
  6940. 2002-07-23 Darin Adler <darin@apple.com>
  6941. * Makefile.am: Clean based on all, not all-am, so it happens before subdirs
  6942. if any.
  6943. 2002-07-23 Darin Adler <darin@apple.com>
  6944. Changes require a make clean because of the Project Builder bug.
  6945. So I added the "make clean timestamp" hackery.
  6946. * .cvsignore: Ignore the new clean timestamp.
  6947. * force-clean-timestamp: Added.
  6948. * Makefile.am: Add rules for making clean happen.
  6949. * khtml/html/html_formimpl.cpp:
  6950. (HTMLGenericFormElementImpl::defaultEventHandler): Fix NULL dereference
  6951. bug in here that I ran into. Code later down in the same function has
  6952. the check for NULL, so clearly this is just a bug.
  6953. * khtml/rendering/font.cpp:
  6954. (Font::drawText): Simplify by using new drawText that takes a QChar array,
  6955. no need to make a QConstString.
  6956. * khtml/rendering/render_text.cpp:
  6957. (TextSlave::printDecoration): Simplify by using new drawUnderlineForText that
  6958. takes a QChar array, no need to make a QConstString.
  6959. * kwq/WebCoreTextRenderer.h: Change underline-drawing to use a UniChar array.
  6960. * kwq/qt/qpainter.h:
  6961. * kwq/KWQPainter.mm:
  6962. (QPainter::drawText): Change to take QChar array instead of a QString, but
  6963. also discovered a bizarre overloading thing that was happening before and
  6964. dealt with that by adding a new drawText that still does take a QString.
  6965. (QPainter::drawUnderlineForText): Change to take QChar array.
  6966. * kwq/qt/qcolor.h: Mark constructor explicit, so we don't get subtle strangess
  6967. like where the string to draw was being converted to a QColor.
  6968. * khtml/css/cssstyleselector.cpp: No need for APPLE_CHANGES for
  6969. this change any more.
  6970. * kwq/kdecore/kcharsets.h:
  6971. * kwq/KWQKCharsets.mm: Remove unused functions.
  6972. * kwq/khtml/khtml_settings.h:
  6973. * kwq/KWQKHTMLSettings.mm: Remove unused functions.
  6974. * kwq/qt/qfont.h:
  6975. * kwq/KWQFont.mm: Simplify.
  6976. * kwq/KWQPaintDeviceMetrics.mm: Simplify.
  6977. * kwq/qt/qtextcodec.h:
  6978. * kwq/KWQtextcodec.mm: (QTextCodec::codecForName): Remove unused parameter.
  6979. 2002-07-23 David Hyatt <hyatt@apple.com>
  6980. The STYLE element was ignoring both the media and type
  6981. attributes (unlike its cousin, the LINK element). This
  6982. patch implements support for media and type and further
  6983. stops us from loading stylesheets that we should have no
  6984. business parsing.
  6985. * khtml/html/html_headimpl.cpp:
  6986. (HTMLLinkElementImpl::process):
  6987. (HTMLStyleElementImpl::parseAttribute):
  6988. (HTMLStyleElementImpl::insertedIntoDocument):
  6989. (HTMLStyleElementImpl::removedFromDocument):
  6990. (HTMLStyleElementImpl::childrenChanged):
  6991. (HTMLStyleElementImpl::sheetLoaded):
  6992. * khtml/html/html_headimpl.h:
  6993. === Alexander-14 ===
  6994. 2002-07-23 David Hyatt <hyatt@apple.com>
  6995. * khtml/html/html_objectimpl.cpp:
  6996. (HTMLObjectElementImpl::attach):
  6997. Oops. I accidentally removed the call to an ancestor class
  6998. attach function. What made this subtle is that it deliberately
  6999. skipped over a couple of base classes and called the one three
  7000. superclasses up. When I went to put it back in, I messed up
  7001. and called the base class instead of the distant ancestor.
  7002. Silly me. marvel.com and matadorrecords.com should be ok now.
  7003. 2002-07-22 Darin Adler <darin@apple.com>
  7004. * khtml/rendering/render_text.cpp:
  7005. (TextSlave::printSelection): Add comments to APPLE_CHANGES.
  7006. (TextSlave::printDecoration): Add comments to APPLE_CHANGES.
  7007. (TextSlave::checkSelectionPoint): Add comments to APPLE_CHANGES.
  7008. * khtml/xml/dom_stringimpl.cpp: Add comments to APPLE_CHANGES.
  7009. * khtml/xml/xml_tokenizer.cpp: (XMLTokenizer::end): Remove APPLE_CHANGES.
  7010. * kwq/KWQsignals.mm: Add a new signal dummy function.
  7011. * kwq/WebCoreJavaScript.h: Fix header.
  7012. * kwq/WebCoreJavaScript.mm: Fix header.
  7013. * kwq/WebCoreSettings.h: Added. Not used yet.
  7014. * kwq/WebCoreSettings.m: Added. Not used yet.
  7015. * WebCore.pbproj/project.pbxproj: Added WebCoreSettings.h and .m.
  7016. * English.lproj/InfoPlist.strings: Fixed a spelling error.
  7017. * kwq/WebCoreTextRendererFactory.h: Tweak.
  7018. 2002-07-22 Maciej Stachowiak <mjs@apple.com>
  7019. Fixed Radar 3004897 - assert at mapquest
  7020. * khtml/html/html_baseimpl.cpp:
  7021. (HTMLIFrameElementImpl::attach): Put back frame name uniqueness
  7022. check. Lack of this check was causing duplicate frames to be left
  7023. floating in space.
  7024. * kwq/KWQKHTMLPartImpl.mm:
  7025. (KWQKHTMLPartImpl::requestFrame): Add an assertion that no frame
  7026. of the requested name already exists.
  7027. 2002-07-22 David Hyatt <hyatt@apple.com>
  7028. Fix for bug 3004889, plugin content on stylesheet pages not
  7029. showing up. The rendering tree needed to perform an update
  7030. when all children had arrived, and this was being handled by
  7031. the parser. With async rendering construction, I had to store
  7032. this in the content node instead, so it could do the update
  7033. once the render object was built at a later date.
  7034. * khtml/html/html_objectimpl.cpp:
  7035. (HTMLObjectElementImpl::HTMLObjectElementImpl):
  7036. (HTMLObjectElementImpl::attach):
  7037. * khtml/html/html_objectimpl.h:
  7038. * khtml/html/htmlparser.cpp:
  7039. (KHTMLParser::processCloseTag):
  7040. 2002-07-22 David Hyatt <hyatt@apple.com>
  7041. This checkin adds support for querying the selected style set,
  7042. for querying the preferred style set, and for changing the
  7043. selected style set dynamically. With this checkin, a Web page
  7044. in Alexander now has the capability to present its own alternate
  7045. stylesheet UI in the page and to toggle between sets using script.
  7046. * khtml/dom/css_stylesheet.cpp:
  7047. (DocumentStyle::preferredStylesheetSet):
  7048. (DocumentStyle::setSelectedStylesheetSet):
  7049. (DocumentStyle::selectedStylesheetSet):
  7050. * khtml/dom/css_stylesheet.h:
  7051. Added new methods to the DocumentStyle interface as per Hixie's
  7052. proposed spec.
  7053. * khtml/dom/dom_doc.cpp:
  7054. * khtml/dom/dom_doc.h:
  7055. * khtml/ecma/kjs_dom.cpp:
  7056. (DOMDocument::getValueProperty):
  7057. (DOMDocument::tryPut):
  7058. (DOMDocument::putValue):
  7059. * khtml/ecma/kjs_dom.h:
  7060. Implement the JS binding glue for the new properties.
  7061. * khtml/xml/dom_docimpl.cpp:
  7062. (DocumentImpl::processHttpEquiv):
  7063. (DocumentImpl::preferredStylesheetSet):
  7064. (DocumentImpl::selectedStylesheetSet):
  7065. (DocumentImpl::setSelectedStylesheetSet):
  7066. (DocumentImpl::recalcStyleSelector):
  7067. * khtml/xml/dom_docimpl.h:
  7068. The implementation of the new properties. Also fixed a bug
  7069. caused by the 3.02 merge in the stylesheet filtering code in
  7070. recalcStyleSelector.
  7071. 2002-07-22 Maciej Stachowiak <mjs@apple.com>
  7072. Merged WebCoreBridge and WebCoreFrameBridge.
  7073. * kwq/KWQKHTMLPartImpl.mm:
  7074. (KWQKHTMLPartImpl::openURLInFrame): Use bridge, not frameBridge.
  7075. (KWQKHTMLPartImpl::urlSelected): Use bridge, not frameBridge.
  7076. (KWQKHTMLPartImpl::submitForm): Use bridge, not frameBridge.
  7077. (KWQKHTMLPartImpl::findFrame): Use bridge, not frameBridge.
  7078. (KWQKHTMLPartImpl::frames): Use bridge, not frameBridge.
  7079. * kwq/WebCoreBridge.h:
  7080. * kwq/WebCoreBridge.mm:
  7081. (-[WebCoreBridge dealloc]): Free RenderPart if set.
  7082. (-[WebCoreBridge renderPart]): Moved here from WebFrameBridge.
  7083. (-[WebCoreBridge setRenderPart:]): Moved here from WebFrameBridge.
  7084. (-[WebCoreBridge copyRenderNode:khtml::copier:]): No more need to get render part from frame bridge.
  7085. (-[WebCoreBridge installInFrame:]): No more need to get render part from frame bridge.
  7086. * kwq/WebCoreFrameBridge.h: Removed.
  7087. * kwq/WebCoreFrameBridge.mm: Removed.
  7088. * WebCore.exp: Removed WebCoreFrameBridge.
  7089. * WebCore.pbproj/project.pbxproj: Removed WebCoreFrameBridge.
  7090. 2002-07-21 Maciej Stachowiak <mjs@apple.com>
  7091. Removed provisional/committed distinction from WebCore and the
  7092. WebCore SPI. WebCore will never see a provisional data source or
  7093. provisional anything, any more.
  7094. * kwq/KWQScrollView.mm: Remove mention of provisional widget from comment.
  7095. * kwq/WebCoreFrameBridge.h: Remove commitedBridge method, and remove comment
  7096. about provisionality from bridge method.
  7097. * kwq/KWQKHTMLPartImpl.mm:
  7098. (KWQKHTMLPartImpl::write): Remove bogus comment about provisional/committed
  7099. transition.
  7100. (KWQKHTMLPartImpl::findFrame): Call bridge, not committedBridge.
  7101. (KWQKHTMLPartImpl::frames): Likewise.
  7102. 2002-07-21 Darin Adler <darin@apple.com>
  7103. * khtml/*: Roll KDE 3.0.2 changes in. Also switch to not using APPLE_CHANGES
  7104. for some of the changes that we definitely want to contribute upstream.
  7105. * WebCore.pbproj/project.pbxproj: Add KWQStyle.mm, remove KWQStyle.h, moving contents
  7106. into qstyle.h.
  7107. * kwq/KWQApplication.mm: (QApplication::globalStrut): Remove _logNotYetImplemented().
  7108. * kwq/KWQButton.mm: (QButton::QButton): Use plain release, not autorelease.
  7109. * kwq/KWQComboBox.mm: (QComboBox::init): Use plain release, not autorelease.
  7110. * kwq/KWQListBox.mm: (QListBox::QListBox): Use plain release, not autorelease.
  7111. * kwq/KWQPainter.mm: (QPainter::drawArc): Use plain release, not autorelease.
  7112. * kwq/KWQKHTMLPartBrowserExtension.mm: Remove import of KWQKHTMLPartImpl.h, now that
  7113. it's always part of khtml_part.h.
  7114. * kwq/KWQKHTMLPartImpl.cpp: Simplify.
  7115. * kwq/KWQKHTMLPartImpl.h: Add wrapper to allow multiple inclusion. Don't include
  7116. khtml_part.h any more, since that file now includes this one to minimize changes to
  7117. KDE code that needs to get to functions in here.
  7118. * kwq/KWQKHTMLPartImpl.mm:
  7119. (KHTMLPart::onURL), (KHTMLPart::nodeActivated), (KHTMLPart::setStatusBarText):
  7120. Moved here from khtml_part.cpp.
  7121. * kwq/KWQLoaderImpl.mm: Include khtml_part.h instead of KWQKHTMLPartImpl.h.
  7122. * kwq/KWQPushButton.mm:
  7123. (buttonFontMetrics), (QPushButton::fontMetrics): Added. Used by the form code to size buttons.
  7124. * kwq/KWQStyle.mm: Added.
  7125. (QStyle::sizeFromContents): Added. Used by the form code to size buttons.
  7126. * kwq/KWQStyle.h: Removed.
  7127. * kwq/qt/qstyle.h: Moved contents of KWQStyle.h in here.
  7128. * kwq/qt/qwidget.h: Include <qstyle.h> rather than KWQStyle.h.
  7129. * kwq/WebCoreBridge.mm: (-[WebCoreBridge isFrameSet]): Call straight to impl.
  7130. * kwq/kdeui/klineedit.h: Add KLineEdit::frameWidth().
  7131. * kwq/qt/qnamespace.h: Remove GUIStyle, MacStyle, and WindowsStyle.
  7132. * kwq/qt/qpaintdevice.h: Add QInternal, QInternal::Printer, and QPaintDevice::devType().
  7133. * kwq/qt/qpainter.h: Add QPainter::device().
  7134. * kwq/qt/qpushbutton.h: Add QPushButton::fontMetrics().
  7135. 2002-07-21 Maciej Stachowiak <mjs@apple.com>
  7136. Fix a recent regression that made JavaScript window closing
  7137. crash. Window closing was counting on delayed dealloc/destruction
  7138. of things associated with the window, but now that we have made
  7139. deallocs more synchronous, we need to add an explicit delay in
  7140. this case.
  7141. Also, change some fprintf diagnostics of things that should never
  7142. happen into assertions, since I actually ran into one.
  7143. * kwq/KWQKHTMLPartImpl.h:
  7144. * kwq/KWQKHTMLPartImpl.mm:
  7145. (KWQKHTMLPartImpl::slotData): Change fprintf diagnostic to assertion,
  7146. remove comment that the diagnostic should be removed.
  7147. (KWQKHTMLPartImpl::end): Change fprintf diagnostic to assertion,
  7148. remove comment that the diagnostic should be removed.
  7149. (KWQKHTMLPartImpl::scheduleClose): Renamed from close, changed to schedule
  7150. window closing from the run loop rather than doing it immediately.
  7151. * khtml/ecma/kjs_window.cpp:
  7152. (Window::scheduleClose): Adjusted for above rename.
  7153. 2002-07-21 David Hyatt <hyatt@apple.com>
  7154. * khtml/html/html_headimpl.cpp:
  7155. (HTMLLinkElementImpl::process):
  7156. Fix incorrect handling of alternate stylesheets that could
  7157. cause KHTML to incorrectly interpret alternate representation
  7158. links (e.g., <link rel=alternate> to a PDF representation)) as
  7159. alternate stylesheets instead.
  7160. * khtml/xml/dom_docimpl.cpp:
  7161. (DocumentImpl::processHttpEquiv):
  7162. Add support for the selection of alternate stylesheets and
  7163. preferred stylesheet sets as specified in section 14.3.2 of
  7164. the HTML 4.0 spec. If you want to hook up a UI to expose
  7165. alternate stylesheets, the back end code is ready to rock. :)
  7166. (DocumentImpl::recalcStyleSelector):
  7167. Fixed a bug in recalcStyleSelector that could lead it to
  7168. pick an alternate stylesheet as a preferred set incorrectly
  7169. (thus loading alternate stylesheets when it shouldn't). This
  7170. is probably the cause of bungled display on some pages with
  7171. alternate stylesheets (e.g., Eric Meyer's pages).
  7172. On Ian Hickson's simple import test suite, we now pass tests 35 and
  7173. 36 (where before both were failed).
  7174. 2002-07-21 Maciej Stachowiak <mjs@apple.com>
  7175. * Makefile.am: Remove products from symroots on `make clean'.
  7176. 2002-07-21 Maciej Stachowiak <mjs@apple.com>
  7177. * WebCore.pbproj/project.pbxproj: Set directories for the group
  7178. folders, so that creating new files in them will put them in the
  7179. right directory by default.
  7180. 2002-07-21 David Hyatt <hyatt@apple.com>
  7181. Fixing bug 3003837, list boxes are extremely slow. The
  7182. buildup of a list box was order n squared, since on every
  7183. insert of an item the list box was rebuilding its entire
  7184. contents. This patch adds smarts to the list buildup, so that
  7185. the underlying NSBrowser only rebuilds itself one time, after
  7186. all the items have been inserted.
  7187. This speeds up the Bugzilla forms page on cvs-base by 60%.
  7188. * khtml/rendering/render_form.cpp:
  7189. (RenderSelect::updateFromElement):
  7190. Patched to make calls to beginBatchInsert and endBatchInsert
  7191. on KListBox.
  7192. * kwq/KWQListBox.h:
  7193. * kwq/KWQListBox.mm:
  7194. (QListBox::QListBox):
  7195. (QListBox::insertItem):
  7196. (QListBox::beginBatchInsert):
  7197. (QListBox::endBatchInsert):
  7198. If in the middle of a batch insert, the insertitem function will
  7199. not rebuild the NSBrowser's list. endBatchInsert will actually
  7200. do this now.
  7201. 2002-07-20 David Hyatt <hyatt@apple.com>
  7202. This patch fixes the FOUC (flash of unstyled content) problem.
  7203. * khtml/css/cssstyleselector.cpp:
  7204. * khtml/css/cssstyleselector.h:
  7205. If stylesheets are still loading, the styleForElement method
  7206. will return a default "display: none" style that prevents
  7207. the rendering tree from being built for that element.
  7208. * khtml/html/html_headimpl.cpp:
  7209. (HTMLLinkElementImpl::process):
  7210. (HTMLLinkElementImpl::setStyleSheet):
  7211. (HTMLStyleElementImpl::sheetLoaded):
  7212. The link element has been patched to notify the document
  7213. when stylesheet loads start and finish.
  7214. * khtml/html/htmlparser.cpp:
  7215. (KHTMLParser::startBody):
  7216. This function has been hacked to unblock the layout of
  7217. inlines within a block. This can be done the moment the
  7218. stylesheet loads have been kicked off (you don't have to
  7219. wait for them to finish).
  7220. * khtml/rendering/render_object.h:
  7221. Contains a new method for recursively descending into the
  7222. render tree to unblock the layout of inlines. This is done
  7223. as soon as the <body> is encountered, so the render tree is
  7224. small at the time the unblocking occurs.
  7225. * khtml/xml/dom_docimpl.cpp:
  7226. (DocumentImpl::DocumentImpl):
  7227. (DocumentImpl::stylesheetLoaded):
  7228. (DocumentImpl::updateStyleSelector):
  7229. The new function, stylesheetLoaded, is invoked by link elements
  7230. when a stylesheet loads. It simply decrements the loading sheet
  7231. count and calls updateStyleSelector. updateStyleSelector has
  7232. been patched to avoid the recalculation of style until all
  7233. stylesheets have loaded.
  7234. * khtml/xml/dom_docimpl.h:
  7235. Two new methods. The first, stylesheetLoaded, is described
  7236. above. The second is haveStylesheetsLoaded, which indicates
  7237. whether or not all the sheets have completed loading. A single
  7238. new member variable, m_pendingStylesheets, tracks the number
  7239. of sheets currently pending.
  7240. 2002-07-20 Darin Adler <darin@apple.com>
  7241. * khtml/css/css_ruleimpl.cpp: (CSSImportRuleImpl::~CSSImportRuleImpl):
  7242. Fix a potential leak by doing setParent(0) here just as is done in
  7243. CSSMediaRuleImpl.
  7244. * kwq/WebCoreBridge.h: Fix a misspelling of visible.
  7245. 2002-07-20 Maciej Stachowiak <mjs@apple.com>
  7246. Changed the code to handle "icon" and "SHORTCUT ICON" links
  7247. separately, and give higher priority to the former.
  7248. - fixed 3003672 - Assertion failure related to iconloader on metafilter
  7249. * khtml/html/html_headimpl.cpp:
  7250. (HTMLLinkElementImpl::process): Changed to handle both "icon" and
  7251. "SHORTCUT ICON" links properly.
  7252. * kwq/KWQKHTMLPartBrowserExtension.mm:
  7253. (KHTMLPartBrowserExtension::setIconURL): Moved here from
  7254. KWQKHTMLPartImpl to do it more the way KDE does.
  7255. (KHTMLPartBrowserExtension::setTypedIconURL): New method for
  7256. handling moz-style icon links, which include a type as well as a
  7257. URL.
  7258. * kwq/KWQKHTMLPartImpl.h:
  7259. * kwq/KWQKHTMLPartImpl.mm:
  7260. (KWQKHTMLPartImpl::loadIcon): Removed.
  7261. * kwq/WebCoreBridge.h: Prototype setIcon: and setIcon:withType: methods.
  7262. * kwq/khtml/khtml_ext.h: Prototype new methods.
  7263. * kwq/kparts/browserextension.h: Make setIcon pure virtual instead
  7264. of a no-op.
  7265. 2002-07-19 Chris Blumenberg <cblu@apple.com>
  7266. Per darin, only define loadIcon in KWQKHTMLPartImpl
  7267. * khtml/html/html_headimpl.cpp:
  7268. (HTMLLinkElementImpl::process):
  7269. * khtml/khtml_part.cpp:
  7270. * khtml/khtml_part.h:
  7271. 2002-07-19 Chris Blumenberg <cblu@apple.com>
  7272. * khtml/html/html_headimpl.cpp:
  7273. (HTMLLinkElementImpl::process): added an APPLE_CHANGES
  7274. * khtml/khtml_part.cpp:
  7275. (KHTMLPart::loadIcon): added
  7276. * khtml/khtml_part.h: added loadIcon
  7277. * kwq/KWQKHTMLPartImpl.h: added loadIcon
  7278. * kwq/KWQKHTMLPartImpl.mm: added loadIcon
  7279. (KWQKHTMLPartImpl::loadIcon):
  7280. * kwq/WebCoreBridge.h: added loadIcon
  7281. 2002-07-19 Darin Adler <darin@apple.com>
  7282. * khtml/css/makeprop: Fail if we don't find gperf.
  7283. * khtml/misc/makeattrs: Fail if we don't find gperf.
  7284. * khtml/misc/maketags: Fail if we don't find gperf.
  7285. 2002-07-19 Maciej Stachowiak <mjs@apple.com>
  7286. * kwq/WebCoreBridge.mm:
  7287. (-[WebCoreBridge installInFrame:]): Assert that this bridge is
  7288. either for the main frame, or that it's frame has a render
  7289. part. If neither of these conditions is met, the view will never
  7290. get installed in the view hiearchy leading to nasty silent
  7291. failure; and this condition should be guaranteed.
  7292. 2002-07-18 David Hyatt <hyatt@apple.com>
  7293. * khtml/css/css_valueimpl.cpp:
  7294. Changed the QRegExps used for font family matching to statics. Helped out
  7295. one page on the base tests a fair bit. Overall (spread over all 40 pages)
  7296. it's not that big though.
  7297. 2002-07-18 David Hyatt <hyatt@apple.com>
  7298. Small change that gives us 25% speedup (uncached) on the cvs-base suite.
  7299. * khtml/css/cssstyleselector.cpp:
  7300. Optimized CLASS style comparison to avoid allocing QStrings when the CLASS
  7301. attribute only contains one entry (as opposed to a list of entries).
  7302. === Alexander-13 ===
  7303. 2002-07-17 Darin Adler <darin@apple.com>
  7304. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::requestFrame):
  7305. Take out bogus check for nil path -- a URL with a nil path is OK, for example "about:blank".
  7306. Also improved log message.
  7307. 2002-07-16 Maciej Stachowiak <mjs@apple.com>
  7308. Moved URL mouseover status to KWQKHTMLPartImpl, and made it
  7309. responsive to modifier key presses, if enabled. Fixes:
  7310. Radar 2980152 - Link mouseover status messages are not localizable
  7311. Radar 2982043 - Link mouse-over status should change in response to modifier keys
  7312. * khtml/khtml_part.cpp:
  7313. (KHTMLPart::overURL): Remove extensive APPLE_CHANGES, and just call the
  7314. impl method.
  7315. * kwq/KWQKHTMLPartImpl.h: Prototype overURL method.
  7316. * kwq/KWQKHTMLPartImpl.mm:
  7317. (KWQKHTMLPartImpl::overURL): Construct status messages using format strings
  7318. for localizability; change message in response to modifiers if modifier
  7319. tracking is enabled.
  7320. * kwq/WebCoreBridge.h: Prototype modifierTrackingEnabled method.
  7321. 2002-07-16 Richard Williamson <rjw@apple.com>
  7322. Fixed field length test. We were testing >= instead of >.
  7323. * kwq/KWQNSTextField.mm:
  7324. (-[KWQNSTextFieldFormatter isPartialStringValid:newEditingString:errorDescription:]):
  7325. 2002-07-16 Darin Adler <darin@apple.com>
  7326. - fixed 2997244 -- crash when visiting cnn.com followed by another page
  7327. Turns out the requestFrame code I've been tinkering with used to be
  7328. dead code until we accidentally re-triggered the code path.
  7329. * khtml/html/html_baseimpl.cpp: (HTMLFrameElementImpl::attach):
  7330. Remove APPLE_CHANGES that were causing us to reuse the same frame which
  7331. were an attempt to fix a frame targeting problem that was actually elsewhere.
  7332. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::requestFrame): Remove the code
  7333. that handles the case of an already-existing frame with the same name. This
  7334. is handled at a higher level.
  7335. * kwq/WebCoreBridge.h: Remove now-unneeded childFrameNamed method.
  7336. 2002-07-16 Darin Adler <darin@apple.com>
  7337. - fixed 2998692 -- crash when you type "googl" into the page address
  7338. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::requestFrame): Check for
  7339. a nil part here to restore the old behavior. Whether that's OK or not
  7340. is another question that I'd prefer to deal with later.
  7341. 2002-07-16 Darin Adler <darin@apple.com>
  7342. * almost every file: Renamed IF* -> Web*.
  7343. 2002-07-15 Darin Adler <darin@apple.com>
  7344. A teeny weeny bit of refactoring.
  7345. * kwq/WebCoreBridge.mm:
  7346. (-[WebCoreBridge stateForEvent:]): Replaces addModifiers:toState:.
  7347. (-[WebCoreBridge mouseUp:]): Use stateForEvent:.
  7348. (-[WebCoreBridge mouseDown:]): Use stateForEvent:.
  7349. (-[WebCoreBridge mouseMoved:]): Use stateForEvent:.
  7350. 2002-07-15 Richard Williamson <rjw@apple.com>
  7351. Added isFrameSet method.
  7352. * WebCore.pbproj/project.pbxproj:
  7353. * khtml/khtml_part.cpp:
  7354. (KHTMLPart::isFrameSet):
  7355. * khtml/khtml_part.h:
  7356. * kwq/KWQKHTMLPart.mm:
  7357. * kwq/KWQKHTMLPartImpl.cpp: Added.
  7358. (KWQKHTMLPartImpl::isFrameSet):
  7359. * kwq/KWQKHTMLPartImpl.h:
  7360. * kwq/WebCoreBridge.h:
  7361. * kwq/WebCoreBridge.mm:
  7362. (-[WebCoreBridge isFrameSet]):
  7363. 2002-07-15 Darin Adler <darin@apple.com>
  7364. * WebCore.pbproj/project.pbxproj: Removed KWQKPrinter.mm.
  7365. * kwq/KWQKPrinter.mm: Removed.
  7366. 2002-07-15 Darin Adler <darin@apple.com>
  7367. * WebCore.pbproj/project.pbxproj: Removed unused qpopupmenu.h.
  7368. * kwq/kdecore/ksimpleconfig.h: Removed unnecessary include of <config.h>.
  7369. * kwq/kio/global.h: Removed unnecessary include of <config.h>.
  7370. * kwq/kio/kprinter.h: Emptied out this file.
  7371. * kwq/qt/qpopupmenu.h: Removed.
  7372. * kwq/qt/qstylesheet.h: Removed unnecessary include of <config.h>.
  7373. * kwq/qt/qtextedit.h: Removed unnecessary include of <config.h>.
  7374. 2002-07-15 Darin Adler <darin@apple.com>
  7375. * kwq/qt/qfontmetrics.h: Remove unused, and not properly implemented,
  7376. empty constructor. Add some const that was missing. Remove most of the
  7377. parameters of size().
  7378. * kwq/KWQFontMetrics.mm:
  7379. (QFontMetrics::charWidth): Add const.
  7380. (QFontMetrics::floatWidth): Add const.
  7381. (QFontMetrics::floatCharacterWidth): Add const.
  7382. (QFontMetrics::size): Remove unused parameters.
  7383. * kwq/WebCoreTextRenderer.h: Remove two unused drawString methods and one
  7384. unused widthForCharacters method.
  7385. 2002-07-14 Darin Adler <darin@apple.com>
  7386. * kwq/WebCoreFrame.mm: (-[WebCoreFrame dealloc]): Fix NULL-dereferencing
  7387. problem that was hidden by the "leak the world" bug in WebBrowser.
  7388. 2002-07-14 Maciej Stachowiak <mjs@apple.com>
  7389. Assign getView() results to variable of appropriate type to work
  7390. around apparent ObjC++ compiler bug. I wonder why other people
  7391. aren't running into this (and why I haven't run into it before).
  7392. * kwq/KWQButton.mm:
  7393. (QButton::setText):
  7394. (QButton::text):
  7395. * kwq/KWQLineEdit.mm:
  7396. (QLineEdit::setEchoMode):
  7397. (QLineEdit::setText):
  7398. (QLineEdit::text):
  7399. (QLineEdit::setMaxLength):
  7400. (QLineEdit::isReadOnly):
  7401. (QLineEdit::setReadOnly):
  7402. (QLineEdit::maxLength):
  7403. (QLineEdit::selectAll):
  7404. (QLineEdit::edited):
  7405. (QLineEdit::setEdited):
  7406. 2002-07-14 Darin Adler <darin@apple.com>
  7407. * WebCore-tests.exp: Tests needed access to QPoint, QString, and KURL symbols
  7408. that were formerly exported for the benefit of WebKit.
  7409. * kwq/KWQPixmap.mm: I needed to touch something since .exp files don't cause
  7410. a rebuild, so I fixed a comment in here.
  7411. 2002-07-14 Darin Adler <darin@apple.com>
  7412. Changes to WebCore that allow WebKit to work through Objective C without going
  7413. straight to the KHTML headers. Also remove a bunch of unused stuff, especially
  7414. in QPainter.
  7415. * WebCore.exp: Export the new classes WebCoreCache and WebCoreJavaScript.
  7416. Don't export any C++ symbols at all.
  7417. * WebCore.pbproj/project.pbxproj: Remove KWQWMatrix.mm, add WebCoreCache.*
  7418. and WebCoreJavaScript.*.
  7419. * khtml/khtml_part.cpp: Put more unused code inside ifndef APPLE_CHANGES.
  7420. * khtml/khtmlview.cpp: Put unused code inside #ifndef APPLE_CHANGES
  7421. * khtml/khtmlview.h: Put unused virtual functions inside #ifndef APPLE_CHANGES.
  7422. * khtml/misc/loader.cpp: (CachedImage::tiled_pixmap): Change this so it
  7423. always returns pixmap(). Handling it at this level is better than changing
  7424. all the callers for now.
  7425. * khtml/rendering/render_box.cpp: (RenderBox::printBackground): Took out the
  7426. APPLE_CHANGES now that tiled_pixmap() always just returns pixmap().
  7427. * khtml/rendering/render_frames.cpp: (RenderFrameSet::userResize): Put some
  7428. unused code inside APPLE_CHANGES.
  7429. * kwq/KWQKHTMLPart.mm:
  7430. (KWQKHTMLPartImpl::requestFrame): Made it get the view using the bridge, since we
  7431. don't have a [widget] method on the frame any more.
  7432. (KWQKHTMLPartImpl::findFrame): Used committedBridge instead of bridge, since
  7433. I changed bridge to return the provisional if available.
  7434. (KWQKHTMLPartImpl::frames): Used committedBridge instead of bridge, since
  7435. I changed bridge to return the provisional if available.
  7436. * kwq/qt/qpixmap.h: Put an empty version of QWMatrix in here. We don't actually ever
  7437. need a real matrix, just a class to let us compile.
  7438. * kwq/qt/qpainter.h: Moved QWMatrix into qpixmap.h. Removed constructors that take
  7439. QPixmap and QWidget. Removed unused variants of drawText. Removed unused setClipping,
  7440. setClipRect, hasClipping, translate, scale, begin, end, and device functions.
  7441. * kwq/KWQPainter.mm:
  7442. (QPainter::QPainter): Remove the constructors that take a paint device, widget,
  7443. or pixmap. We can get away without them.
  7444. (QPainter::save): Simplify. Also remove the optimization for painters without
  7445. stacks, since having an empty stack is very inexpensive.
  7446. (QPainter::restore): Simplify.
  7447. (QPainter::_drawPoints): Move paintingDisabled check in here.
  7448. (QPainter::drawText): Removed many unused drawText variants.
  7449. * kwq/KWQView.h: Tweaked.
  7450. * kwq/KWQView.mm: Removed [KWQView drawRect:].
  7451. * kwq/KWQWMatrix.mm: Removed.
  7452. * kwq/qt/qwidget.h: Removed paint() virtual function.
  7453. * kwq/KWQWidget.mm: Removed QWidget::paint().
  7454. * kwq/WebCoreBridge.h: Added new methods installInFrame:, removeFromFrame,
  7455. mouseDown:, mouseUp:, mouseMoved:, mouseDragged:, copyDOMTree:, and copyRenderTree:.
  7456. * kwq/WebCoreBridge.mm:
  7457. (-[WebCoreBridge dealloc]): Call removeFromFrame.
  7458. (-[WebCoreBridge createKHTMLViewWithNSView:width:height:marginWidth:marginHeight:]):
  7459. Don't return the view any more, also set bridgeOwnsKHTMLView to YES.
  7460. (-[WebCoreBridge copyDOMNode:DOM::copier:]): Added helper method for copyDOMTree.
  7461. (-[WebCoreBridge copyDOMTree:]): Added method to be used by IFDOMNode to get at DOM
  7462. tree without using C++.
  7463. (-[WebCoreBridge copyRenderNode:khtml::copier:]): Added helper method for copyRenderTree.
  7464. (-[WebCoreBridge copyRenderTree:]): Added method to be used by IFRenderNode to get at
  7465. render tree without using C++.
  7466. (-[WebCoreBridge removeFromFrame]): Added. Deletes the view if we own it. We don't want
  7467. to wait for dealloc time to do this, since a lingering view might be visible.
  7468. (-[WebCoreBridge installInFrame:]): Added. Does a set of things we need to do at the
  7469. time we commit a provisional data source.
  7470. (-[WebCoreBridge addModifiers:toState:]): Moved here from IFHTMLView.
  7471. (-[WebCoreBridge mouseUp:]): Added. Used to get a mouse up event to the KHTMLView.
  7472. (-[WebCoreBridge mouseDown:]): Added. Used to get a mouse down event to the KHTMLView.
  7473. (-[WebCoreBridge mouseMoved:]): Added. Used to get a mouse moved event to the KHTMLView.
  7474. (-[WebCoreBridge mouseDragged:]): Added. Used to get a mouse moved event to the KHTMLView
  7475. in the case where we are dragging -- perhaps could be merged with mouseMoved.
  7476. * kwq/WebCoreCache.h: Added. Allows control of the WebCore cache; previously done directly
  7477. in IFCache in WebKit.
  7478. * kwq/WebCoreCache.mm: Added.
  7479. * kwq/WebCoreFrame.h: Remove widget method. Change semantics of bridge method to return
  7480. provisional bridge if available, which corresponds to what the widget method did before.
  7481. Added a committedBridge method that has the semantics that bridge did before.
  7482. * kwq/WebCoreJavaScript.h: Added. Returns statistics about the state of JavaScript objects;
  7483. previously done directly in IFCache in WebKit.
  7484. * kwq/WebCoreJavaScript.mm: Added.
  7485. 2002-07-13 Darin Adler <darin@apple.com>
  7486. * WebCore.pbproj/project.pbxproj: Add a few files that are sources
  7487. although they should not be compiled for any target.
  7488. * kwq/qt/qpushbutton.h: Simplified.
  7489. * kwq/KWQPushButton.mm: (QPushButton::QPushButton): Implemented text parameter.
  7490. 2002-07-13 Darin Adler <darin@apple.com>
  7491. * ForwardingHeaders/*: Added. New approach to headers to try to
  7492. make Project Builder's header dependency support work even for
  7493. includes like #include <render/render_object.h>.
  7494. * kwq/kjs/*: Removed. Now part of ForwardingHeaders.
  7495. * Makefile.am: Remove embed.am support.
  7496. * WebCore.pbproj/project.pbxproj: Remove other search paths, and
  7497. add ForwardingHeaders directory as a search path. Add qucomextra_p.h.
  7498. * khtml/ecma/kjs_navigator.cpp: Made gratuitous changes to touch this
  7499. file to make things build without requiring clean rebuild.
  7500. * khtml/rendering/render_form.cpp: Removed many unneeded QObject::
  7501. qualifiers from inside APPLE_CHANGES to touch this file to make things
  7502. build without requiring clean rebuild.
  7503. * kwq/KWQButton.mm: (QButton::setText), (QButton::text):
  7504. * kwq/KWQColor.mm: (QColor::setNamedColor):
  7505. * kwq/KWQKConfigBase.mm: (KConfig::readEntry):
  7506. * kwq/KWQKHTMLSettings.mm: (KHTMLSettings::stdFontName), (KHTMLSettings::fixedFontName):
  7507. (KHTMLSettings::serifFontName), (KHTMLSettings::sansSerifFontName),
  7508. (KHTMLSettings::cursiveFontName), (KHTMLSettings::fantasyFontName), (KHTMLSettings::encoding):
  7509. * kwq/KWQKLocale.mm: (i18n):
  7510. * kwq/KWQKMessageBox.mm: (KMessageBox::error), (KMessageBox::warningYesNo):
  7511. (KMessageBox::questionYesNo), (KMessageBox::sorry):
  7512. * kwq/KWQListBox.mm: (-[KWQBrowserDelegate browser:willDisplayCell:atRow:column:]):
  7513. * kwq/WebCoreBridge.mm: (-[WebCoreBridge selectedText]):
  7514. Wean from QSTRING_TO_NSSTRING and NSSTRING_TO_QSTRING.
  7515. * kwq/KWQComboBox.mm:
  7516. (QComboBox::insertItem): Wean from QSTRING_TO_NSSTRING. Note that this
  7517. now stores a copy of the string in the array. The old version was unsafe
  7518. if anyone later modified the QString that was passed in.
  7519. * kwq/KWQFontMetrics.mm: (QFontMetrics::width):
  7520. * kwq/KWQPainter.mm: (QPainter::drawUnderlineForText), (QPainter::drawText):
  7521. Wean from QSTRING_TO_NSSTRING_LENGTH and _FAST_QSTRING_TO_NSSTRING. We still have
  7522. speed as high as before, in the "length" case slightly faster.
  7523. * kwq/qt/qstring.h: Remove QSTRING_TO_NSSTRING family of macros.
  7524. * kwq/KWQInvisibleButton.mm:
  7525. * kwq/KWQKHTMLPart.mm:
  7526. * kwq/KWQKHTMLPartBrowserExtension.mm:
  7527. * kwq/KWQKJavaAppletWidget.mm:
  7528. * kwq/KWQKloader.mm:
  7529. * kwq/KWQView.mm:
  7530. * kwq/KWQsignals.mm:
  7531. * kwq/WebCoreBridge.mm:
  7532. * kwq/kdecore/kconfig.h:
  7533. * kwq/kdecore/klibloader.h:
  7534. * kwq/kdecore/klocale.h:
  7535. * kwq/khtml/khtml_ext.h:
  7536. * kwq/khtml/khtml_factory.h:
  7537. * kwq/kio/kmimetype.h:
  7538. Remove subdirectory prefix from imports to match Project Builder include scheme.
  7539. * kwq/KWQKCursor.mm: (+[NSCursor _WebCore_linkCursor]):
  7540. * kwq/KWQKLocale.mm: (i18n):
  7541. * kwq/KWQKstddirs.mm: (locate):
  7542. Use bundleForClass instead of bundleWithIdentifier to avoid any potential problems
  7543. with multiple versions of the framework installed on the same system.
  7544. * kwq/KWQKLineEdit.mm:
  7545. (KLineEdit::completionBox): Remove _logNotYetImplemented, since this is implemented
  7546. well enough for our needs now, and if we need to implement it later, it will become
  7547. clear from the application behavior. This should be the destiny of most of these.
  7548. * kwq/kdecore/kglobal.h: Simplify.
  7549. * kwq/KWQKGlobal.mm: Simplify.
  7550. * kwq/qt/qlineedit.h: Simplify.
  7551. * kwq/KWQLineEdit.mm: Simplify.
  7552. * kwq/KWQPaintDeviceMetrics.mm: Remove unneeded import.
  7553. * kwq/qt/qbutton.h: Remove unneeded destructor.
  7554. 2002-07-13 Richard Williamson <rjw@apple.com>
  7555. * kwq/KWQPainter.mm:
  7556. Added disable drawing mode.
  7557. (QPainter::drawRect):
  7558. (QPainter::drawLine):
  7559. (QPainter::drawEllipse):
  7560. (QPainter::drawArc):
  7561. (QPainter::drawLineSegments):
  7562. (QPainter::drawPolyline):
  7563. (QPainter::drawPolygon):
  7564. (QPainter::drawConvexPolygon):
  7565. (QPainter::drawPixmap):
  7566. (QPainter::drawTiledPixmap):
  7567. (QPainter::drawText):
  7568. (QPainter::drawUnderlineForText):
  7569. (QPainter::fillRect):
  7570. (QPainter::setPaintingDisabled):
  7571. * kwq/KWQWidget.mm:
  7572. (QWidget::frameGeometry):
  7573. Use the IFWebView's geometry.
  7574. * kwq/WebCoreBridge.h:
  7575. * kwq/WebCoreBridge.mm:
  7576. (-[WebCoreBridge _drawRect:withPainter:]):
  7577. (-[WebCoreBridge drawRect:]):
  7578. (-[WebCoreBridge adjustFrames:]):
  7579. Added adjustFrames:. Factored some code.
  7580. * kwq/qt/qpainter.h:
  7581. Added setPaintingDisabled.
  7582. * khtml/html/html_baseimpl.cpp:
  7583. (HTMLFrameElementImpl::attach):
  7584. (HTMLIFrameElementImpl::attach):
  7585. Removed uniqueness check. Need to revisit vis-a-vis provisional ds.
  7586. 2002-07-12 Darin Adler <darin@apple.com>
  7587. * WebCore.pbproj/project.pbxproj: Add WebCoreFrame.mm, also export all
  7588. the WebCore headers as Private so WebKit can see them.
  7589. * khtml/khtmlview.cpp: (KHTMLView::drawContents): Remove APPLE_CHANGES
  7590. since we don't use this function any more.
  7591. * kwq/KWQDef.h: Since <sys/types.h> now includes ushort and uint, update
  7592. code here to take that into account.
  7593. * kwq/KWQKHTMLPartImpl.h: Added getView().
  7594. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPartImpl::getView): Added. Used by bridge.
  7595. * kwq/qt/qpainter.h:
  7596. * kwq/KWQPainter.mm: Simplify a bit, and remove some unused stuff.
  7597. * kwq/WebCoreBridge.h: Add reapplyStyles, forceLayout, drawRect:.
  7598. * kwq/WebCoreBridge.mm:
  7599. (-[WebCoreBridge reapplyStyles]): Added.
  7600. (-[WebCoreBridge forceLayout]): Added.
  7601. (-[WebCoreBridge drawRect:]): Added.
  7602. * kwq/WebCoreFrame.h: Make this a class as well as an interface.
  7603. * kwq/WebCoreFrame.mm: Added.
  7604. * WebCore.exp: Since WebCoreFrame is now a class as well as a protocol,
  7605. export it so we can subclass.
  7606. 2002-07-12 Darin Adler <darin@apple.com>
  7607. Build WebCore with Project Builder instead of make.
  7608. Also wean WebCore from peeking inside the WebKit bundle.
  7609. * WebCore.pbproj/.cvsignore: Added.
  7610. * WebCore.pbproj/project.pbxproj: Added.
  7611. * Makefile.am: Removed rules about building the framework,
  7612. and just use pbxbuild instead.
  7613. * dummy.mm: Removed.
  7614. * khtml/Makefile.am: Removed everything but SUBDIRS.
  7615. * khtml/css/Makefile.am: Removed everything but the rules for
  7616. generated sources.
  7617. * khtml/dom/Makefile.am: Removed.
  7618. * khtml/ecma/Makefile.am: Removed everything but the rules for
  7619. generated sources.
  7620. * khtml/html/Makefile.am: Removed everything but the rules for
  7621. generated sources.
  7622. * khtml/misc/Makefile.am: Removed everything but the rules for
  7623. generated sources.
  7624. * khtml/rendering/Makefile.am: Removed.
  7625. * khtml/xml/Makefile.am: Removed.
  7626. * kwq/Makefile.am: Removed everything but the rules for
  7627. generated sources.
  7628. * kwq/KWQKLocale.mm: (i18n): Look in WebCore bundle, not WebKit bundle.
  7629. * kwq/KWQKstddirs.mm:
  7630. (locate): Look in WebCore bundle, not WebKit bundle. Also, always assume
  7631. we are looking for html4.css.
  7632. (locateLocal): Don't waste code making a bad path, just return empty string.
  7633. * kwq/qt/qpixmap.h:
  7634. * kwq/KWQPixmap.mm: Changed convertToImage() to an inline since we
  7635. never need to implement it.
  7636. * kwq/KWQKDebug.mm: Removed.
  7637. * kwq/KWQKImageIO.mm: Removed.
  7638. * kwq/kdecore/kcmdlineargs.h: Emptied out the file.
  7639. * kwq/kdecore/kdebug.h: Made the do-nothing code here all be
  7640. inlines for smaller code size.
  7641. * kwq/KWQScrollBar.h: Fixed header guard.
  7642. * .cvsignore:
  7643. * kwq/.cvsignore:
  7644. * khtml/dom/.cvsignore: Removed.
  7645. * khtml/rendering/.cvsignore: Removed.
  7646. * khtml/xml/.cvsignore: Removed.
  7647. * kwq/kdecore/.cvsignore: Removed.
  7648. * kwq/qt/.cvsignore: Removed.
  7649. Don't ignore things we don't generate any more.
  7650. * kwq/kjs/collector.h: Added.
  7651. * kwq/kjs/internal.h: Added.
  7652. * kwq/kjs/interpreter.h: Added.
  7653. * kwq/kjs/lookup.h: Added.
  7654. * kwq/kjs/object.h: Added.
  7655. Used so that khtml can see the headers from JavaScriptCore.
  7656. 2002-07-11 Maciej Stachowiak <mjs@apple.com>
  7657. Fixed Radar 2953254 - JavaScript window.scroll() and
  7658. window.scrollBy() do not work
  7659. * khtml/ecma/kjs_window.cpp:
  7660. (WindowFunc::tryCall): Handle Scroll the same as ScrollBy.
  7661. * kwq/KWQScrollView.mm:
  7662. (QScrollView::scrollBy): Implement this method, since it's needed
  7663. for JS scrolling.
  7664. 2002-07-10 Darin Adler <darin@apple.com>
  7665. - fixed 2978796 -- Client-side image map not working
  7666. * kwq/KWQRegion.mm: (QRegion::QRegion): Implement constructor that
  7667. takes a QPointArray.
  7668. * kwq/qt/qarray.h: Fix some const loopholes.
  7669. * kwq/KWQCString.mm:
  7670. (QCString::find): Use const char * instead of char *.
  7671. (QCString::contains): Use const char * instead of char *.
  7672. (QCString::right): Use const char * instead of char *.
  7673. (QCString::mid): Use const char * instead of char *.
  7674. 2002-07-10 Maciej Stachowiak <mjs@apple.com>
  7675. WebCore part of fix for:
  7676. Radar 2953250 - JavaScript window.focus() and window.blur()
  7677. methods don't work
  7678. * khtml/ecma/kjs_window.cpp:
  7679. (WindowFunc::tryCall): Call the appropriate things on focus and blur.
  7680. * kwq/KWQKHTMLPart.mm:
  7681. (KWQKHTMLPartImpl::unfocusWindow): Implemented by calling bridge.
  7682. * kwq/KWQKHTMLPartImpl.h, kwq/KWQWidget.mm:
  7683. (QWidget::setActiveWindow): Implemented by ordering the window
  7684. front and making it key.
  7685. * kwq/WebCoreBridge.h: Prototype new bridge method.
  7686. 2002-07-10 Darin Adler <darin@apple.com>
  7687. - fixed 2979153 -- charset sjis page is gibberish
  7688. * kwq/character-sets.txt: Add x-sjis as an alias for Shift JIS.
  7689. 2002-07-10 Darin Adler <darin@apple.com>
  7690. * kwq/KWQPixmap.mm:
  7691. (QPixmap::QPixmap): Restore the imageRenderer == nil case to fix a regression
  7692. related to resized images. Otherwise, isNull was returning true for all images.
  7693. In copy constructor, set needCopyOnWrite on both the source and destination;
  7694. setting it on the destination was not enough.
  7695. (QPixmap::receivedData): Create the imageRenderer if it's nil.
  7696. (QPixmap::operator=): Set needCopyOnWrite on both the source and destination.
  7697. * kwq/qt/qpixmap.h: Make needCopyOnWrite mutable so we can set it on the source
  7698. when copying or assigning.
  7699. 2002-07-10 Darin Adler <darin@apple.com>
  7700. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPartImpl::setBaseURL):
  7701. Call setBaseURL on the underlying document all the time, not just
  7702. when we add a missing "/" character.
  7703. 2002-07-07 Maciej Stachowiak <mjs@apple.com>
  7704. WebCore part of fix for Radar 2953431 - JavaScript window.close()
  7705. method is not working
  7706. * khtml/ecma/kjs_window.cpp:
  7707. (Window::scheduleClose): In AppleChanges
  7708. * khtml/khtml_part.cpp:
  7709. (KHTMLPart::openedByJS): Call kwq implementations, because we need
  7710. to remember the openedByJS state across location changes, which in
  7711. our case means replacing the part.
  7712. (KHTMLPart::setOpenedByJS): Likewise.
  7713. * kwq/KWQKHTMLPart.mm:
  7714. (KWQKHTMLPartImpl::openedByJS): Implement by calling bridge.
  7715. (KWQKHTMLPartImpl::setOpenedByJS): Likewise.
  7716. (KWQKHTMLPartImpl::close): Likewise.
  7717. * kwq/KWQKHTMLPartImpl.h: Prototype new PartImpl methods.
  7718. * kwq/WebCoreBridge.h: Prototype new bridge methods.
  7719. 2002-07-06 Darin Adler <darin@apple.com>
  7720. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPartImpl::write): Remove reference
  7721. to nonexistent class in a comment.
  7722. * kwq/KWQKHTMLPartImpl.h: Remove unused and unimplemented getDataSource().
  7723. 2002-07-04 Maciej Stachowiak <mjs@apple.com>
  7724. Say "Go to" instead of "Link to" for links that won't open a new
  7725. window. Also, the code is now set up to change the status text
  7726. when modifier keys are pressed, but the code is disabled for now
  7727. because it's impossible to do reliably.
  7728. * khtml/khtml_part.cpp:
  7729. (KHTMLPart::overURL):
  7730. (KHTMLPart::khtmlMouseMoveEvent):
  7731. * khtml/khtml_part.h:
  7732. 2002-07-03 Darin Adler <darin@apple.com>
  7733. A small KURL speed improvement.
  7734. * khtml/misc/loader.cpp:
  7735. (Cache::requestImage):
  7736. (Cache::requestStyleSheet):
  7737. (Cache::requestScript):
  7738. Don't do the isMalformed check, because it's expensive and has no clear benefit.
  7739. There's no harm in caching null results for malformed URLs.
  7740. * kwq/KWQKURL.mm:
  7741. (KURL::KURL): Make the default constructor faster by not running all the
  7742. normalize code on the empty string.
  7743. === Alexander-11 ===
  7744. 2002-07-03 Maciej Stachowiak <mjs@apple.com>
  7745. WebCore part of fixes for:
  7746. Radar 2950616 - JavaScript window.screenX and window.screenY always return -1
  7747. Radar 2950614 - JavaScript window.screenLeft and window.screenTop
  7748. properties are unimplemented
  7749. Radar 2950609 - JavaScript window.outerHeight and
  7750. window.outerWidth properties always return 0
  7751. * khtml/ecma/kjs_window.h:
  7752. * khtml/ecma/kjs_window.cpp:
  7753. (Window::get): Make ScreenLeft and ScreenTop synonyms for ScreenX
  7754. and ScreenY respectively.
  7755. * kwq/KWQKHTMLPart.mm:
  7756. (KWQKHTMLPartImpl::setView): Set the real part's view too.
  7757. * kwq/kdecore/kwin.h: Remove unneeded fields.
  7758. * kwq/KWQKWin.mm:
  7759. (KWin::info): Implemented.
  7760. * kwq/qt/qwidget.h:
  7761. * kwq/KWQWidget.mm:
  7762. (QWidget::winId): Return long instead of int, to make sure there
  7763. is room for a pointer even on 64-bit architectures.
  7764. (QWidget::mapToGlobal): Use the top level widget to map.
  7765. 2002-07-03 Richard Williamson <rjw@apple.com>
  7766. * kwq/KWQScrollView.mm:
  7767. (QScrollView::addChild):
  7768. Fixed regression that caused IFWebView frame origin to sometimes
  7769. never be set correctly. (khtml sets the x origin to -500000
  7770. during initialization, and it was never getting set correctly).
  7771. This problem manifested itself as blank white frames.
  7772. * kwq/KWQWidget.mm:
  7773. (QWidget::internalSetGeometry):
  7774. 2002-07-03 Maciej Stachowiak <mjs@apple.com>
  7775. WebKit part of fix for:
  7776. Radar 2943465 - JavaScript window.defaultStatus property not implemented
  7777. Radar 2943464 - JavaScript window.status property is not implemented
  7778. Radar 2926213 - show url of moused-over link in status bar
  7779. Also fixed:
  7780. Radar 2980091 - KHTMLPart::findFrame() and KHTML::frameExists()
  7781. should search all frames, not just child frames
  7782. * khtml/khtml_part.cpp:
  7783. (KHTMLPart::overURL): Unifdef most of this, but adjust the wording.
  7784. (KHTMLPart::setStatusBarText): Implement by calling KWQKHTMLPartImpl.
  7785. * khtml/khtml_part.h:
  7786. * kwq/KWQKHTMLPart.mm:
  7787. (KWQKHTMLPartImpl::frameExists): Search all frames, not just child frames.
  7788. (KWQKHTMLPartImpl::findFrame): Search all frames, not just child frames.
  7789. (KWQKHTMLPartImpl::setStatusBarText): Implemented by calling WebCoreBridge.
  7790. * kwq/KWQKHTMLPartImpl.h:
  7791. * kwq/WebCoreBridge.h: Declare new setStatusText method
  7792. * kwq/kparts/part.h: Remove setStatusBarText method.
  7793. 2002-07-02 Darin Adler <darin@apple.com>
  7794. - fixed 2978806 -- Crash going to ebay home page
  7795. * khtml/ecma/kjs_navigator.cpp: (PluginBase::PluginBase): Check to be sure
  7796. that we are not at the end of the "tokens" collection before dereferencing
  7797. the iterator.
  7798. 2002-07-01 Maciej Stachowiak <mjs@apple.com>
  7799. Fixed Radar 2953256 - JavaScript window.moveTo() and
  7800. window.moveBy() methods do not work
  7801. This was done by creating a class to wrap an NSWindow as a
  7802. QWidget, which should be useful for many other window-related
  7803. features.
  7804. * kwq/KWQWidget.mm:
  7805. (QWidget::x): Implement in terms of the virtual frameGeometry() method.
  7806. (QWidget::y): Likewise.
  7807. (QWidget::width): Likewise.
  7808. (QWidget::height): Likewise.
  7809. (QWidget::size): Likewise.
  7810. (QWidget::pos): Likewise.
  7811. (QWidget::topLevelWidget): Implement by creating a KWQWindowWidget
  7812. (QWidget::isVisible): Added FIXME comment.
  7813. * kwq/KWQWindowWidget.h: Added.
  7814. * kwq/KWQWindowWidget.mm: Added.
  7815. (KWQWindowWidget::fromNSWindow): Static method that maintains a
  7816. dictionary of top-level widgets, and creates them on demand.
  7817. (deleteOnWindowClose): Delete top level widget on close.
  7818. (KWQWindowWidget::KWQWindowWidget):
  7819. (KWQWindowWidget::~KWQWindowWidget):
  7820. (KWQWindowWidget::sizeHint): Implemented using NSWindow.
  7821. (KWQWindowWidget::minimumSizeHint): Likewise.
  7822. (KWQWindowWidget::frameGeometry): Likewise.
  7823. (KWQWindowWidget::topLevelWidget): Likewise.
  7824. (KWQWindowWidget::mapToGlobal): Likewise.
  7825. (KWQWindowWidget::mapFromGlobal): Likewise.
  7826. (KWQWindowWidget::setCursor): No-op implementation.
  7827. (KWQWindowWidget::internalSetGeometry): Implemented using NSWindow.
  7828. * kwq/Makefile.am: Add new files to build.
  7829. * kwq/qt/qwidget.h: Make methods virtual as needed.
  7830. 2002-07-01 Darin Adler <darin@apple.com>
  7831. * khtml/css/cssparser.cpp:
  7832. * khtml/misc/htmlhashes.cpp:
  7833. Remove workaround for a PFE bug that no longer affects us.
  7834. * khtml/xml/dom_nodeimpl.h:
  7835. * khtml/xml/dom_nodeimpl.cpp:
  7836. Remove some unneeded APPLE_CHANGES.
  7837. * WebCore.exp: One less symbol to export.
  7838. 2002-06-29 Maciej Stachowiak <mjs@apple.com>
  7839. WebCore part of fix for:
  7840. Radar 2942074 - JavaScript size, positioning and feature
  7841. parameters to window.open are ignored
  7842. * kwq/WebCoreBridge.h: Add new calls needed for window
  7843. size/position/feature getting and setting.
  7844. * kwq/KWQKHTMLPartBrowserExtension.mm:
  7845. (KHTMLPartBrowserExtension::createNewWindow): Set properties on window
  7846. after creating it using new bridge calls; make it visible.
  7847. * khtml/ecma/kjs_window.cpp:
  7848. (WindowFunc::tryCall): Support scrollbars feature too.
  7849. * kwq/kparts/browserextension.h: Include scrollbar setting stuff.
  7850. 2002-06-28 Richard Williamson <rjw@apple.com>
  7851. Use float character measurement to determine selection
  7852. region. Necessary to ensure accuracy of selection
  7853. region. First step towards weaning khtml off int
  7854. measurements.
  7855. * khtml/rendering/font.cpp:
  7856. (Font::floatWidth):
  7857. (Font::floatCharacterWidth):
  7858. * khtml/rendering/font.h:
  7859. * khtml/rendering/render_text.cpp:
  7860. (TextSlave::checkSelectionPoint):
  7861. * kwq/KWQFontMetrics.mm:
  7862. (QFontMetrics::floatWidth):
  7863. (QFontMetrics::floatCharacterWidth):
  7864. * kwq/WebCoreTextRenderer.h:
  7865. * kwq/qt/qfontmetrics.h:
  7866. 2002-06-27 Chris Blumenberg <cblu@apple.com>
  7867. Added an APPLE_CHANGES to fix 2894742. The attributes of an EMBED tag
  7868. must override the attributes of PARAM tags.
  7869. * khtml/rendering/render_frames.cpp:
  7870. (RenderPartObject::updateWidget):
  7871. 2002-06-27 Darin Adler <darin@apple.com>
  7872. - fixed 2973342 -- copied text seems to have an extra blank line between paragraphs
  7873. * khtml/khtml_part.cpp: (KHTMLPart::selectedText):
  7874. Get rid of code that was adding an extraneous newline at the
  7875. ends of various types of nodes, including <P>
  7876. 2002-06-27 Darin Adler <darin@apple.com>
  7877. Fix Java. My changes this morning broke it.
  7878. * khtml/rendering/render_applet.cpp: (RenderApplet::processArguments):
  7879. Re-add required APPLE_CHANGES. Pass arguments to KJavaAppletWidget::processArguments.
  7880. * kwq/khtml/java/kjavaappletwidget.h: Added KJavaAppletWidget::processArguments.
  7881. * kwq/KWQKJavaAppletWidget.mm: (KJavaAppletWidget::processArguments): Added.
  7882. Some QFont fixes.
  7883. * kwq/qt/qfont.h: Remove unused setPixelSizeFloat.
  7884. * kwq/KWQFont.mm: Change to keep family names in a set. Since there are only
  7885. a small number of family names ever encountered, this is a bit of a memory win.
  7886. (QFont::QFont): Don't retain the family name.
  7887. (QFont::~QFont): Don't release the family name.
  7888. (QFont::setFamily): Put the family name in a set, and use the one from the set.
  7889. (QFont::operator=): Don't retain or release.
  7890. (QFont::operator==): Use == to compare the name.
  7891. === Alexander-10 ===
  7892. 2002-06-27 Richard Williamson <rjw@apple.com>
  7893. Method name changes in preparation for fixing
  7894. TextSlave::checkSelectionPoint().
  7895. * kwq/WebCoreTextRenderer.h:
  7896. 2002-06-27 Richard Williamson <rjw@apple.com>
  7897. Removed calls to old method.
  7898. * kwq/KWQPainter.mm:
  7899. (QPainter::drawText):
  7900. * kwq/WebCoreTextRenderer.h:
  7901. Removed old methods.
  7902. 2002-06-27 Darin Adler <darin@apple.com>
  7903. * khtml/rendering/render_applet.cpp: Remove include of <iostream.h> to avoid bloat.
  7904. (RenderApplet::RenderApplet): Remove APPLE_CHANGES.
  7905. (RenderApplet::processArguments): Remove APPLE_CHANGES.
  7906. This file is now back to 100% the same as the KDE original.
  7907. * kwq/khtml/java/kjavaappletwidget.h: Added a bit of stuff so we match the interface
  7908. of the KDE original and don't need APPLE_CHANGES.
  7909. * kwq/KWQKJavaAppletWidget.mm: Remove include of <iostream.h> to avoid bloat.
  7910. (KJavaAppletWidget::KJavaAppletWidget): Update for parameters that match the
  7911. KDE original.
  7912. (KJavaAppletWidget::~KJavaAppletWidget): Added.
  7913. (KJavaAppletWidget::setBaseURL): Added.
  7914. (KJavaAppletWidget::setParameter): Put strings into an NSMutableDictionary.
  7915. (KJavaAppletWidget::showApplet): Use the new baseURL and parameters dictionary.
  7916. * kwq/WebCoreViewFactory.h: Add baseURL parameter.
  7917. * kwq/WebCoreViewFactory.m:
  7918. (-[WebCoreViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]): Add baseURL parameter.
  7919. * kwq/kdecore/kurl.h: Fix NSURL definition to fit idiom.
  7920. * kwq/qt/qmap.h: Added the const version of the [] operator.
  7921. * khtml/ecma/kjs_navigator.cpp: Tweak whitespace.
  7922. * khtml/html/html_documentimpl.cpp: Tweak to make it a little closer to original.
  7923. * kwq/KWQKCookieJar.h: Reduce includes.
  7924. * kwq/KWQKCookieJar.mm: Move includes in here.
  7925. * kwq/WebCoreCookieAdapter.h: Fix comment that emacs munged.
  7926. 2002-06-27 Richard Williamson <rjw@apple.com>
  7927. * kwq/WebCoreBridge.h:
  7928. * kwq/WebCoreBridge.mm:
  7929. (-[WebCoreBridge selectAll]):
  7930. Select all using the part.
  7931. 2002-06-27 Maciej Stachowiak <mjs@apple.com>
  7932. WebCore part of fixes for JavaScript cookie bugs:
  7933. 2943749 - JavaScript navigator.cookieEnabled property is always "true"
  7934. 2856039 - JavaScript document.cookies property is not implemented
  7935. Thereby also fixing:
  7936. 2944378 - Trying to log into my Yahoo web mail account sent
  7937. Alexander into a loop
  7938. * kwq/KWQKCookieJar.h: Added.
  7939. * kwq/KWQKCookieJar.mm: Added.
  7940. (KWQKCookieJar::cookie): C++ veneer over WebCoreCookieAdapter call.
  7941. (KWQKCookieJar::setCookie): Likewise.
  7942. (KWQKCookieJar::cookieEnabled): Likewise.
  7943. * kwq/Makefile.am: Add new files to build.
  7944. * kwq/WebCoreCookieAdapter.h: Added.
  7945. * kwq/WebCoreCookieAdapter.m: Added.
  7946. (+[WebCoreCookieAdapter sharedAdapter]): Method to return shared
  7947. instance, al la the WebCoreFactory classes.
  7948. (-[WebCoreCookieAdapter init]): Establish self as shared instance.
  7949. (-[WebCoreCookieAdapter cookiesEnabled]): No-op implementation.
  7950. (-[WebCoreCookieAdapter cookiesForURL:]): Likewise.
  7951. (-[WebCoreCookieAdapter setCookies:forURL:]): Likewise.
  7952. * WebCore.exp: Export WebCoreCookieAdapter class.
  7953. * khtml/ecma/kjs_navigator.cpp:
  7954. (Navigator::getValueProperty): Call appropriate KWQCookieJar method.
  7955. * khtml/html/html_documentimpl.cpp:
  7956. (HTMLDocumentImpl::cookie): Call appropriate KWQCookieJar method.
  7957. (HTMLDocumentImpl::setCookie): Likewise
  7958. 2002-06-27 Chris Blumenberg <cblu@apple.com>
  7959. Fix to support sending PARAM tags to the Java plug-in.
  7960. * khtml/rendering/render_applet.cpp:
  7961. (RenderApplet::RenderApplet): removed APPLE_CHANGES
  7962. (RenderApplet::layout): removed APPLE_CHANGES
  7963. * kwq/KWQKJavaAppletWidget.mm:
  7964. (KJavaAppletWidget::KJavaAppletWidget): removed setView
  7965. (KJavaAppletWidget::showApplet): call setView here
  7966. * kwq/WebCoreViewFactory.h:
  7967. * kwq/WebCoreViewFactory.m:
  7968. (-[WebCoreViewFactory viewForJavaAppletWithFrame:andArguments:]): renamed
  7969. * kwq/khtml/java/kjavaappletwidget.h: added KJavaApplet
  7970. 2002-06-26 Richard Williamson <rjw@apple.com>
  7971. Many improvements to selection. More Cocoa like,
  7972. normalized all text drawing code paths for selected
  7973. and unselected cases. Still need to work on
  7974. TextSlave::checkSelectionPoint. Fixed redraw region
  7975. problems.
  7976. khtml redraw the entire visible region when selection changes.
  7977. This could be optimzed.
  7978. * khtml/rendering/font.cpp:
  7979. (Font::drawText):
  7980. (Font::width):
  7981. * khtml/rendering/render_text.cpp:
  7982. (TextSlave::printSelection):
  7983. * kwq/KWQPainter.mm:
  7984. (QPainter::drawText):
  7985. (QPainter::selectedTextBackgroundColor):
  7986. * kwq/KWQScrollView.mm:
  7987. (QScrollView::contentsX):
  7988. (QScrollView::contentsY):
  7989. * kwq/WebCoreTextRenderer.h:
  7990. * kwq/qt/qpainter.h:
  7991. 2002-06-26 Maciej Stachowiak <mjs@apple.com>
  7992. Implement KHTMLPart::findFrame() to fix the following Radar bugs:
  7993. Radar 2943177 - infinite JavaScript loop sfcu.org online bill paying
  7994. Radar 2950580 - Unknown JavaScript properties on the Window object return self instead of Undefined
  7995. * khtml/khtml_part.cpp:
  7996. (KHTMLPart::findFrame):
  7997. * kwq/KWQKHTMLPart.mm:
  7998. (KWQKHTMLPartImpl::findFrame):
  7999. * kwq/KWQKHTMLPartImpl.h:
  8000. 2002-06-26 Darin Adler <darin@apple.com>
  8001. - fixed 2969378 -- "A with hat" characters (Unicode 00C2) showing up at Zingermans.com
  8002. * kwq/KWQCharsets.mm: (buildDictionaries): Put UTF-16 in the dictionary, but pointing
  8003. at the string encoding for UTF-8. This mimics what Internet Explorer does.
  8004. * kwq/KWQtextcodec.mm: (QTextCodec::fromUnicode): Fix implementation so it will convert
  8005. the specified encoding instead of always Latin-1.
  8006. 2002-06-26 Darin Adler <darin@apple.com>
  8007. Fixed (or at least worked around) a crash I saw where KWQKHTMLPartImpl::end was
  8008. making calls after the KHTMLView was gone. This is specific to our APPLE_CHANGES
  8009. code; it's handled differently in KDE.
  8010. * khtml/khtml_part.h: Added detachView.
  8011. * khtml/khtml_part.cpp: (KHTMLPart::detachView): Added. Nils out the view pointer.
  8012. * khtml/khtmlview.cpp: (KHTMLView::~KHTMLView): Call m_part->detachView().
  8013. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPartImpl::end): Don't try to make calls to the view
  8014. if it's nil.
  8015. 2002-06-25 Richard Williamson <rjw@apple.com>
  8016. Support for khtml style selection drawing. Ugly,
  8017. we'll want to make this more Mac like.
  8018. * khtml/rendering/font.cpp:
  8019. (Font::drawText):
  8020. Enable khtml code path. Removed APPLE_CHANGES
  8021. * kwq/KWQFontMetrics.mm:
  8022. (QFontMetrics::charWidth):
  8023. Implemented in terms of width().
  8024. * kwq/KWQPainter.mm:
  8025. (QPainter::drawText):
  8026. Implemented.
  8027. * kwq/qt/qfontmetrics.h:
  8028. Added QFontMetrics::charWidth.
  8029. 2002-06-25 Richard Williamson <rjw@apple.com>
  8030. Support for rudimentary plain text 'copy'.
  8031. * kwq/WebCoreBridge.h:
  8032. * kwq/WebCoreBridge.mm:
  8033. (-[WebCoreBridge selectedText]):
  8034. 2002-06-25 Richard Williamson <rjw@apple.com>
  8035. Enabled progressive image loading code.
  8036. * khtml/misc/loader.cpp:
  8037. (CachedImage::data):
  8038. * kwq/KWQPixmap.mm:
  8039. (QPixmap::QPixmap):
  8040. 2002-06-25 Darin Adler <darin@apple.com>
  8041. Removed remaining uses of BORROWED defines.
  8042. Made some simplifications and formatting fixes. All safe.
  8043. * kwq/KWQArrayImpl.h:
  8044. * kwq/KWQArrayImpl.mm:
  8045. * kwq/KWQChar.mm:
  8046. * kwq/KWQCharsets.mm:
  8047. * kwq/KWQFile.mm:
  8048. * kwq/KWQKCursor.mm:
  8049. * kwq/KWQKHTMLPart.mm:
  8050. * kwq/KWQListImpl.h:
  8051. * kwq/KWQMapImpl.mm:
  8052. * kwq/KWQString.mm:
  8053. * kwq/KWQValueListImpl.mm:
  8054. * kwq/KWQVectorImpl.h:
  8055. * kwq/KWQtextcodec.mm:
  8056. * kwq/make-charset-table.pl:
  8057. * kwq/make-mac-encodings.c:
  8058. * kwq/qt/qfile.h:
  8059. * kwq/qt/qregexp.h:
  8060. * kwq/qt/qtextcodec.h:
  8061. * WebCore-tests.exp: Small change to exports for the array test.
  8062. 2002-06-24 Chris Blumenberg <cblu@apple.com>
  8063. Changed the plug-in view constructor to take NSURL's rather
  8064. than URL strings.
  8065. * kwq/KWQKHTMLPart.mm:
  8066. (KWQKHTMLPartImpl::requestObject):
  8067. * kwq/WebCoreViewFactory.h:
  8068. * kwq/WebCoreViewFactory.m:
  8069. 2002-06-24 Darin Adler <darin@apple.com>
  8070. * khtml/khtmlview.cpp: (KHTMLView::~KHTMLView): Put APPLE_CHANGES
  8071. later in the sequence so we don't deref the part before the code
  8072. gets to run.
  8073. * kwq/kwqdebug.h: Re-add the __format__ attribute, now that Radar
  8074. 2920557 is fixed.
  8075. 2002-06-21 Darin Adler <darin@apple.com>
  8076. * kwq/KWQFont.mm: Made it store a copy of the family name instead of
  8077. storing a reference to the mutable CFString.
  8078. * kwq/KWQPainter.mm:
  8079. (QPainter::drawPixmap): Simplified.
  8080. (QPainter::drawTiledPixmap): Used the new [tileInRect:].
  8081. * kwq/WebCoreImageRenderer.h: Added [tileInRect:], removed [drawInRect:],
  8082. and also removed view parameter from [beginAnimation].
  8083. * kwq/qt/qpixmap.h: Removed unneeded getImageRenderer().
  8084. 2002-06-21 Darin Adler <darin@apple.com>
  8085. - fixed 2964718 -- crash in KWQCheckCacheObjectStatus
  8086. * kwq/KWQKloader.mm: (KWQCheckCacheObjectStatus):
  8087. Handle case of nil object. Add comments. Remove questionable use
  8088. of floating point abs() to convert always positive int to uint.
  8089. 2002-06-20 Darin Adler <darin@apple.com>
  8090. * kwq/KWQKCharsets.mm: Removed unneeded parts.
  8091. * kwq/KWQStyle.mm: Removed.
  8092. * kwq/KWQToolTip.mm: Removed.
  8093. * kwq/KWQVariant.mm: Simplified.
  8094. * kwq/Makefile.am: Removed KWQStyle.mm and KWQToolTip.mm.
  8095. * kwq/KWQRefPtr.h: Streamlined implementation that inlines
  8096. a bit less and is more efficient for creating empty pointers.
  8097. * kwq/KWQStyle.h: Removed unused stuff.
  8098. * kwq/kdecore/kcharsets.h: Removed unneeded parts.
  8099. * kwq/qt/qsortedlist.h: Removed unneeded parts.
  8100. * kwq/qt/qtooltip.h: Removed unneeded parts.
  8101. * kwq/qt/qvariant.h: Removed unneeded parts.
  8102. * khtml/khtmlview.cpp: (KHTMLView::~KHTMLView):
  8103. Remove unneeded APPLE_CHANGES -- no need to nil something out in
  8104. a destructor.
  8105. === Alexander-9 ===
  8106. 2002-06-19 Richard Williamson <rjw@apple.com>
  8107. * kwq/KWQScrollView.mm:
  8108. (QScrollView::addChild):
  8109. Fixed regression from fix to 2956444. Wrong view was being checked
  8110. for conformance to WebCoreFrameView.
  8111. * kwq/KWQWidget.mm:
  8112. (QWidget::internalSetGeometry):
  8113. Fixed regression from fix to 2956444. Wrong view was being checked
  8114. for conformance to WebCoreFrameView.
  8115. 2002-06-19 Richard Williamson <rjw@apple.com>
  8116. * khtml/khtmlview.cpp: (KHTMLView::~KHTMLView):
  8117. Tweak
  8118. * khtml/rendering/render_image.cpp:
  8119. (RenderImage::setPixmap):
  8120. Call stopAnimations when a image changes, i.e. may be changed
  8121. by JS.
  8122. * kwq/KWQPixmap.mm:
  8123. (QPixmap::stopAnimations):
  8124. Call image renderer's stopAnimation.
  8125. * kwq/qt/qpixmap.h:
  8126. Added stopAnimations.
  8127. 2002-06-19 Darin Adler <darin@apple.com>
  8128. - fixed 2956444 -- mac os x feedback form missing textarea
  8129. * kwq/WebCoreFrameView.h: Added.
  8130. * kwq/KWQWidget.mm:
  8131. (QWidget::setCursor): Checked for cursor-setting call based on the
  8132. WebCoreFrameView protocol instead of using an informal protocol.
  8133. Also walk up the view chain so the cursor actually gets set.
  8134. (QWidget::internalSetGeometry): Changed the special case in here to use the new
  8135. WebCoreFrameView protocol, so it won't happen for all NSScrollView objects.
  8136. Also add comments to explain the hack better and mention the code in QScrollView.
  8137. * kwq/KWQScrollView.mm:
  8138. (-[NSView _KWQ_isScrollView]): Gave these KWQ names instead of IF names.
  8139. (-[NSView _KWQ_getDocumentView]): Gave these KWQ names instead of IF names.
  8140. (QScrollView::addChild): Changed the special case in here to use the new
  8141. WebCoreFrameView protocol, so it won't happen for all NSScrollView objects.
  8142. Also add comments to explain the hack better and mention the code in QWidget.
  8143. Other changes:
  8144. * kwq/kwqdebug.h: Cloned improved assert code from WebFoundation.
  8145. * kwq/KWQTextArea.h: Removed unused isReadOnly/setReadOnly.
  8146. * kwq/KWQTextArea.mm: Removed unused isReadOnly/setReadOnly.
  8147. * kwq/WebCoreViewFactory.h: Removed extraneous import and WebCoreCursorSetting
  8148. API from here.
  8149. * kwq/KWQTextEdit.mm: Tweaked.
  8150. * kwq/kparts/part.h: Tweaked.
  8151. 2002-06-18 Kenneth Kocienda <kocienda@apple.com>
  8152. Fix for this bug:
  8153. Radar 2928483 (activity viewer does not show all the pieces of a web page when the page is cached)
  8154. * khtml/misc/loader.cpp:
  8155. (DocLoader::requestImage): Added APPLE_CHANGES call to the KWQCheckCacheObjectStatus function
  8156. described below
  8157. (DocLoader::requestStyleSheet): ditto
  8158. (DocLoader::requestScript): ditto
  8159. * kwq/KWQKloader.mm:
  8160. (KWQCheckCacheObjectStatus): New function that informs WebKit of the
  8161. fact that a URL was loaded from the WebCore/khtml cache.
  8162. * kwq/KWQLoaderImpl.h: Added prototype for KWQCheckCacheObjectStatus
  8163. * kwq/WebCoreBridge.h: Added KWQCheckCacheObjectStatus to WebCoreBridge protocol
  8164. 2002-06-18 Darin Adler <darin@apple.com>
  8165. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPartImpl::~KWQKHTMLPartImpl):
  8166. Remove an NSLog I left in by accident.
  8167. 2002-06-17 Richard Williamson <rjw@apple.com>
  8168. Fixed window.open regression.
  8169. Partial fix to targeting frame of new name.
  8170. * kwq/KWQKHTMLPart.mm:
  8171. (KWQKHTMLPartImpl::urlSelected):
  8172. Partial fix to frame not found problem.
  8173. * kwq/KWQKHTMLPartBrowserExtension.mm:
  8174. (KHTMLPartBrowserExtension::createNewWindow):
  8175. Fix for window.open regression.
  8176. * kwq/WebCoreBridge.h:
  8177. Changed return type of openNewWindowWithURL:
  8178. 2002-06-17 Darin Adler <darin@apple.com>
  8179. Fixed a storage leak.
  8180. * kwq/WebCoreBridge.mm: (-[WebCoreBridge documentTextFromDOM]): Add a missing autorelease.
  8181. Remove a bunch of loader-related APPLE_CHANGES.
  8182. * khtml/misc/loader.h: Remove KWQURLLoadClient and KWQLoaderImpl.
  8183. * khtml/misc/loader.cpp:
  8184. (Loader::Loader): Remove unneeded KWQLoaderImpl object.
  8185. (Loader::~Loader): Remove unneeded KWQLoaderImpl object.
  8186. (Loader::servePendingRequests): Call KWQServeRequest instead of KWQLoaderImpl::serveRequest.
  8187. (Loader::slotFinished): Remove unneeded KWQLoaderImpl::objectFinished.
  8188. * kwq/KWQLoaderImpl.h:
  8189. * kwq/KWQKloader.mm: (KWQServeRequest): Replaces the KWQLoaderImpl class. The rest of what
  8190. was in this class was obsolete.
  8191. 2002-06-17 Richard Williamson <rjw@apple.com>
  8192. Fixed www.2cpu.com regression. QWidget::_displayRect was displaying the wrong
  8193. view. This was a regression that would impact all DHTML.
  8194. * khtml/khtmlview.cpp:
  8195. (KHTMLView::timerEvent):
  8196. * kwq/KWQScrollView.mm:
  8197. (QScrollView::updateContents):
  8198. * kwq/KWQWidget.mm:
  8199. (QWidget::QWidget):
  8200. (QWidget::endEditing):
  8201. * kwq/qt/qwidget.h:
  8202. 2002-06-17 Darin Adler <darin@apple.com>
  8203. Fixed bug where some images would get left behind when scrolling. Turned out it
  8204. was all the tiled images that were getting left behind.
  8205. * kwq/KWQPainter.mm: (QPainter::drawTiledPixmap): Fixed to get the view for
  8206. coordinates from [NSView focusView] the way drawPixmap does, rather than using
  8207. data->widget->getView(), which gives the scroll view instead of the scrolled view.
  8208. 2002-06-16 Darin Adler <darin@apple.com>
  8209. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPartImpl::frames):
  8210. Fixed this function to get from frames to parts properly. It was still
  8211. assuming that [WebCoreBridge childFrames] would return a list of WebCoreBridge
  8212. objects, but now it returns WebCoreFrame objects.
  8213. * kwq/WebCoreFrame.h: Added [WebCoreFrame bridge] for the case above.
  8214. Note that it always gives the "committed" bridge, not the provisional one.
  8215. 2002-06-16 Darin Adler <darin@apple.com>
  8216. Add a separate WebCoreFrame alongside WebCoreBridge to facilitate
  8217. handling of frames with no HTML content in them. This probably fixes
  8218. frames named "_blank".
  8219. Also fixed the build, because a clean build failed.
  8220. * kwq/KWQKHTMLPart.mm:
  8221. (KWQKHTMLPartImpl::openURLInFrame):
  8222. (KWQKHTMLPartImpl::urlSelected):
  8223. (KWQKHTMLPartImpl::requestFrame):
  8224. (KWQKHTMLPartImpl::submitForm):
  8225. (KWQKHTMLPartImpl::parentPart):
  8226. Work with WebCoreFrame objects instead of WebCoreBridge objects when dealing with
  8227. frame operations -- loading new URLs mainly.
  8228. * kwq/WebCoreBridge.h: Removed frame-related operations, now they are on WebCoreFrame.
  8229. Broke out WebCoreResourceLoader into its own file. Added comments.
  8230. * kwq/WebCoreFrame.h: Added.
  8231. * kwq/WebCoreResourceLoader.h: Added.
  8232. * kwq/KWQKloader.mm: Include WebCoreResourceLoader.h now that it's broken out.
  8233. * WebCore-tests.exp: Tests still need QString::latin1(), although we don't need
  8234. to export it for WebKit any more.
  8235. 2002-06-16 Darin Adler <darin@apple.com>
  8236. Moved the IFURLHandleClient subclass to WebKit, so it can some day be merged
  8237. with the one for the frames themselves; this one is for resources.
  8238. * kwq/kio/jobclasses.h:
  8239. * kwq/KWQKjobclasses.mm:
  8240. (TransferJob::setHandle): Replaced the old TransferJob::begin with this.
  8241. * kwq/KWQLoaderImpl.h: Remove setClient.
  8242. * kwq/KWQKloader.mm:
  8243. (-[WebCoreResourceLoader initWithLoader:job:]): Added.
  8244. (-[WebCoreResourceLoader dealloc]): Added.
  8245. (-[WebCoreResourceLoader addData:]): Added.
  8246. (-[WebCoreResourceLoader cancel]): Added.
  8247. (-[WebCoreResourceLoader finish]): Added.
  8248. (KWQLoaderImpl::serveRequest): Use [WebCoreBridge startLoadingResource:withURL:].
  8249. * khtml/misc/loader.cpp: (Loader::load): Removed unneeded call to setClient.
  8250. * kwq/WebCoreBridge.h: Remove unneeded methods. Added [WebCoreBridge startLoadingResource:withURL:].
  8251. 2002-06-15 Darin Adler <darin@apple.com>
  8252. Fix frame-related calls. I was always searching all the frames, which was disastrous.
  8253. Also do name changes.
  8254. * kwq/KWQKHTMLPart.mm:
  8255. (KWQKHTMLPartImpl::urlSelected): Use descendantFrameNamed rather than frameNamed.
  8256. (KWQKHTMLPartImpl::requestFrame): Use childFrameNamed rather than frameNamed.
  8257. (KWQKHTMLPartImpl::frameExists): Use childFrameNamed rather than frameNamed.
  8258. * kwq/KWQScrollView.mm: (QScrollView::addChild): Asserts I used while debugging.
  8259. * kwq/WebCoreBridge.h: Add new calls. Change names of old ones to include the
  8260. word frame consistently. (Also bits of new work that will do no harm, but are
  8261. not really needed yet.)
  8262. 2002-06-15 Darin Adler <darin@apple.com>
  8263. * kwq/KWQKloader.mm:
  8264. (-[KWQURLLoadClient IFURLHandle:didRedirectToURL:]):
  8265. Rolled out an assert I added by accident that will break Deployment builds.
  8266. 2002-06-15 Darin Adler <darin@apple.com>
  8267. * kwq/KWQKloader.mm:
  8268. (-[KWQURLLoadClient IFURLHandleResourceDidCancelLoading:]):
  8269. (-[KWQURLLoadClient IFURLHandleResourceDidFinishLoading:data:]):
  8270. (-[KWQURLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  8271. Fixed the order so the URL handles are removed before we send notifications
  8272. as before my change. This seems to fix the rest of the breakage.
  8273. 2002-06-15 Darin Adler <darin@apple.com>
  8274. * kwq/KWQKloader.mm: (-[KWQURLLoadClient initWithLoader:bridge:]):
  8275. Fix bridge/m_bridge typo that was responsible for at least some of the breakage
  8276. I caused.
  8277. 2002-06-15 Richard Williamson <rjw@apple.com>
  8278. Fixed factoring problem.
  8279. * kwq/KWQScrollView.mm:
  8280. (-[NSView _IF_getDocumentView]):
  8281. (-[NSView _IF_isScrollView]):
  8282. (QScrollView::visibleWidth):
  8283. (QScrollView::visibleHeight):
  8284. (QScrollView::contentsWidth):
  8285. (QScrollView::contentsHeight):
  8286. (QScrollView::contentsX):
  8287. (QScrollView::contentsY):
  8288. (QScrollView::setContentsPos):
  8289. (QScrollView::addChild):
  8290. (QScrollView::resizeContents):
  8291. (QScrollView::contentsToViewport):
  8292. (QScrollView::viewportToContents):
  8293. * kwq/qt/qscrollview.h:
  8294. 2002-06-15 Darin Adler <darin@apple.com>
  8295. * kwq/WebCoreBridge.mm:
  8296. (-[WebCoreBridge createKHTMLViewWithNSView:width:height:marginWidth:marginHeight:]):
  8297. Implement the rule where a negative number means "don't set the margin".
  8298. 2002-06-15 Darin Adler <darin@apple.com>
  8299. * kwq/kio/jobclasses.h: Removed import of WebFoundation.h.
  8300. * kwq/KWQKjobclasses.mm: Added import of IFURLHandle.h.
  8301. * kwq/KWQKloader.mm: Added import of IFError.h and IFURLHandle.h.
  8302. * kwq/WCLoadProgress.h: Removed.
  8303. * kwq/WCWebDataSource.h: Removed.
  8304. * kwq/KWQKHTMLPart.mm: Removed import of WCWebDataSource.h.
  8305. * *.mm: Changed all includes to imports using a perl script.
  8306. 2002-06-15 Darin Adler <darin@apple.com>
  8307. - fixed 2942808 -- remove all calls to WebKit from WebCore
  8308. More work on the bridge. Now we don't call anything in WebKit explicitly,
  8309. although there are still implicit connections that need to be fixed.
  8310. * WebCore.exp: Remove exports that are no longer needed, now that
  8311. WebKit is using the bridge to get at more things.
  8312. * khtml/misc/loader.h:
  8313. * khtml/misc/loader.cpp:
  8314. (CachedCSSStyleSheet::CachedCSSStyleSheet):
  8315. (CachedScript::CachedScript):
  8316. (CachedImage::CachedImage):
  8317. Remove the extra parameter to the CachedObject constructor. We don't
  8318. need it any more, so we can remove all these APPLE_CHANGES.
  8319. * kwq/KWQKHTMLPart.mm: Remove getDataSource.
  8320. * kwq/KWQLoaderImpl.h: Remove destructor.
  8321. * kwq/KWQKloader.mm:
  8322. (-[KWQURLLoadClient initWithLoader:bridge:]): Keep the bridge around instead
  8323. of the data source.
  8324. (-[KWQURLLoadClient dealloc]): Release the bridge instead of the data source.
  8325. Also put another workaround for 2954901 here, like in WebKit.
  8326. (-[KWQURLLoadClient IFURLHandleResourceDidBeginLoading:]):
  8327. (-[KWQURLLoadClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  8328. (-[KWQURLLoadClient doneWithHandle:error:]):
  8329. (-[KWQURLLoadClient IFURLHandleResourceDidCancelLoading:]):
  8330. (-[KWQURLLoadClient IFURLHandleResourceDidFinishLoading:data:]):
  8331. (-[KWQURLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  8332. (-[KWQURLLoadClient IFURLHandle:didRedirectToURL:]):
  8333. (KWQLoaderImpl::setClient):
  8334. (KWQLoaderImpl::serveRequest):
  8335. Use the bridge to do all the heavy lifting, and put lots of common code into
  8336. a doneWithHandle:error: method. Also store the URL so the redirect code works
  8337. properly for multiple redirects and add asserts like the ones in IFMainURLHandleClient.
  8338. (KWQLoaderImpl::objectFinished): Add a comment.
  8339. * kwq/WebCoreBridge.h: Make header so it can be included from plain Objective C,
  8340. not just Objective C++. Add a bunch of methods for bridging in to WebCore as opposed
  8341. to out of WebCore. Add new methods for bridging out from WebCore too for all the
  8342. progress hooks. Put all the subclass responsibility methods into a protocol
  8343. in such a way that we don't need to implement them in the base class, and subclasses
  8344. can set things up so they get errors if they forget to implement anything.
  8345. * kwq/WebCoreBridge.mm:
  8346. (-[WebCoreBridge openURL:]): Added.
  8347. (-[WebCoreBridge addData:withEncoding:]): Added.
  8348. (-[WebCoreBridge closeURL]): Added.
  8349. (-[WebCoreBridge end]): Added.
  8350. (-[WebCoreBridge setURL:]): Added.
  8351. (-[WebCoreBridge createKHTMLViewWithNSView:width:height:marginWidth:marginHeight:]): Added.
  8352. (-[WebCoreBridge documentTextFromDOM]): Added.
  8353. (-[WebCoreBridge scrollToBaseAnchor]): Added.
  8354. * kwq/external.h: Removed.
  8355. 2002-06-15 Maciej Stachowiak <mjs@apple.com>
  8356. Get current bits per pixel from CoreGraphics, thereby fixing
  8357. Radar 2943736 - JavaScript screen.colorDepth and screen.pixelDepth properties always returns 32,
  8358. regardless of real depth
  8359. * kwq/KWQPaintDeviceMetrics.mm:
  8360. (QPaintDeviceMetrics::depth):
  8361. 2002-06-15 Maciej Stachowiak <mjs@apple.com>
  8362. Removed product and vendor properties, thereby fixing:
  8363. Radar 2943751 - JavaScript navigator.product property is "Konqueror/khtml"
  8364. Radar 2943753 - JavaScript navigator.vendor property is "KDE"
  8365. * khtml/ecma/kjs_navigator.cpp:
  8366. (Navigator::getValueProperty): Return undefined for the above mentioned properties.
  8367. 2002-06-15 Maciej Stachowiak <mjs@apple.com>
  8368. Implemented functionality needed for missing Screen properties, thereby fixing the following
  8369. bugs:
  8370. Radar 2943730 - JavaScript screen.availHeight property is not implemented
  8371. Radar 2943732 - JavaScript screen.availLeft property is not implemented
  8372. Radar 2943734 - JavaScript screen.availTop property not implemented
  8373. Radar 2943735 - JavaScript screen.availWidth property is not implemented
  8374. * kwq/KWQKWinModule.mm:
  8375. (KWinModule::workArea): Return the correct screen size to fix the above bugs.
  8376. 2002-06-14 Richard Williamson <rjw@apple.com>
  8377. Changed IFResourceProgressHandler to pass back resource handle instead of
  8378. string description. This will address the needs descibed in 2954160.
  8379. * kwq/KWQKloader.mm:
  8380. (-[KWQURLLoadClient IFURLHandleResourceDidBeginLoading:]):
  8381. (-[KWQURLLoadClient IFURLHandleResourceDidCancelLoading:]):
  8382. (-[KWQURLLoadClient IFURLHandleResourceDidFinishLoading:data:]):
  8383. (-[KWQURLLoadClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  8384. (-[KWQURLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  8385. (-[KWQURLLoadClient IFURLHandle:didRedirectToURL:]):
  8386. (KWQLoaderImpl::serveRequest):
  8387. * kwq/external.h:
  8388. 2002-06-14 Darin Adler <darin@apple.com>
  8389. * kwq/KWQDateTime.mm: Add ifdefs needed to make Deployment build compile.
  8390. 2002-06-14 Darin Adler <darin@apple.com>
  8391. Worked on eliminating calls to WebKit. About 3/4 done.
  8392. * WebCore.exp: Export new WebCoreBridge class, fewer other things.
  8393. * WebCorePrefix.h: #include <ostream> in debug builds; we couldn't
  8394. before because of a PFE bug that has since been fixed (2920556).
  8395. * khtml/html/html_objectimpl.cpp: (HTMLObjectElementImpl::attach):
  8396. Add a comment explaining our latest change here.
  8397. * khtml/khtml_part.cpp: (KHTMLPart::~KHTMLPart): Fix storage leak
  8398. by deleting m_hostExtension.
  8399. * khtml/misc/loader.h: Set type properly on client member so we
  8400. don't have to do so much casting.
  8401. * kwq/KWQKHTMLPartImpl.h: Add getBridge and setBridge, remove setDataSource.
  8402. * kwq/KWQKHTMLPart.mm:
  8403. (KWQKHTMLPartImpl::KWQKHTMLPartImpl): Eliminate m_dataSource.
  8404. (KWQKHTMLPartImpl::openURLInFrame): Use WebCoreBridge.
  8405. (KWQKHTMLPartImpl::urlSelected): Use WebCoreBridge.
  8406. (KWQKHTMLPartImpl::requestFrame): Use WebCoreBridge.
  8407. (KWQKHTMLPartImpl::requestObject): Move WebCoreViewFactory code
  8408. here; we don't need an entire WCPluginWidget file just for this
  8409. function.
  8410. (KWQKHTMLPartImpl::submitForm): Use WebCoreBridge.
  8411. (KWQKHTMLPartImpl::frameExists): Use WebCoreBridge.
  8412. (KWQKHTMLPartImpl::frames): Use WebCoreBridge.
  8413. (KWQKHTMLPartImpl::setTitle): Use WebCoreBridge.
  8414. (KWQKHTMLPartImpl::getDataSource): Use WebCoreBridge.
  8415. (KWQKHTMLPartImpl::parentPart): Use WebCoreBridge.
  8416. * kwq/KWQKHTMLPartBrowserExtension.mm:
  8417. (KHTMLPartBrowserExtension::createNewWindow): Use WebCoreBridge.
  8418. * kwq/KWQKloader.mm: Move the part of external.h that we still use in
  8419. here, with the expectation of eliminating it soon. Also renamed
  8420. URLLoadClient to KWQURLLoadClient so we don't hog namespace.
  8421. * kwq/qt/qscrollview.h:
  8422. * kwq/KWQScrollView.mm: Used helper functions to do the "documentView"
  8423. selector thing more consistently.
  8424. * kwq/KWQWidget.mm: Get interface for changing the cursor from
  8425. WebCoreViewFactory.h instead of from external.h.
  8426. * kwq/WebCoreViewFactory.h:
  8427. * kwq/Makefile.am: Remove WCPluginWidget.mm, add WebCoreBridge.mm.
  8428. * kwq/WCPluginWidget.h: Removed.
  8429. * kwq/WCPluginWidget.mm: Removed.
  8430. * kwq/WebCoreBridge.h: Added.
  8431. * kwq/WebCoreBridge.mm: Added.
  8432. * kwq/qt/qarray.h: Use <ostream> instead of <iostream>.
  8433. * kwq/qt/qcstring.h: Remove <iostream> include since we include <qarray.h>.
  8434. * kwq/qt/qdatetime.h: Replace unconditional <iostream> include with a
  8435. conditional <ostream> include. Also made streaming operators conditional.
  8436. * kwq/qt/qlist.h: Use <ostream> instead of <iostream>.
  8437. * kwq/qt/qmap.h: Use <ostream> instead of <iostream>.
  8438. * kwq/qt/qpoint.h: Use <iosfwd> instead of <iostream>.
  8439. * kwq/qt/qsize.h: Use <iosfwd> instead of <iostream>.
  8440. * kwq/qt/qvaluelist.h: Use <ostream> instead of <iostream>.
  8441. * kwq/qt/qvector.h: Replace unconditional <iostream> include with a
  8442. conditional <ostream> include. Also made streaming operators conditional.
  8443. 2002-06-14 Richard Williamson <rjw@apple.com>
  8444. Name change view -> webView.
  8445. * kwq/KWQKHTMLPart.mm:
  8446. (KWQKHTMLPartImpl::requestFrame):
  8447. * kwq/external.h:
  8448. 2002-06-14 Chris Blumenberg <cblu@apple.com>
  8449. Put #ifndef APPLE_CHANGES around one line that
  8450. was causing EMBED and OBJECT tags to not have render objects.
  8451. * khtml/html/html_objectimpl.cpp:
  8452. (HTMLObjectElementImpl::attach):
  8453. 2002-06-14 Chris Blumenberg <cblu@apple.com>
  8454. Committing Richard's changes to KWQPainter
  8455. 2002-06-13 Richard Williamson <rjw@apple.com>
  8456. More cleanup to deal with special case of provisional view
  8457. not being in a scrollview.
  8458. * kwq/KWQScrollView.mm:
  8459. (QScrollView::contentsWidth):
  8460. (QScrollView::contentsHeight):
  8461. (QScrollView::contentsX):
  8462. (QScrollView::contentsY):
  8463. 2002-06-13 Richard Williamson <rjw@apple.com>
  8464. * kwq/KWQWidget.mm: (QWidget::setCursor): restored code
  8465. * kwq/external.h: removed definitions no longer needed
  8466. * khtml/rendering/render_form.cpp: (RenderLineEdit::calcMinMaxWidth): tweaked size
  8467. 2002-06-12 Kenneth Kocienda <kocienda@apple.com>
  8468. * kwq/kwqdebug.h: Made assertion failure console message bolder and easier to see.
  8469. 2002-06-11 Darin Adler <darin@apple.com>
  8470. * kwq/KWQKURL.mm:
  8471. (RelativeURLKeyRetainCallBack): Use a ref count.
  8472. (RelativeURLKeyReleaseCallBack): Use a ref count instead of assuming there will
  8473. never be more than one reference.
  8474. (KURL::normalizeRelativeURLString): Remove the workaround for CFURL bug 2891336.
  8475. (operator==): Don't put URLs on the autorelease pool just to compare them.
  8476. 2002-06-10 Darin Adler <darin@apple.com>
  8477. * khtml/css/cssstyleselector.cpp: Fix uninitialized variable warning.
  8478. 2002-06-10 Darin Adler <darin@apple.com>
  8479. Merged in changes from KDE 3.0.1.
  8480. * kwq/kdecore/kurl.h:
  8481. * kwq/KWQKURL.mm: (operator==): New, needed by some 3.0.1 code.
  8482. * kwq/qt/qpalette.h: Add QPalette::NColorGroups and QColorGroup::NColorRoles.
  8483. * kwq/KWQPalette.mm: Simplify by getting rid of "private" indirection.
  8484. (QPalette::color): New, needed by some 3.0.1 code.
  8485. * kwq/KWQColorGroup.mm: Simplify by getting rid of "private" indirection.
  8486. * kwq/qt/qstring.h:
  8487. * kwq/KWQString.mm: (QConstString::QConstString): Change parameter to const QChar *
  8488. to match Qt so we compile.
  8489. * kwq/qt/qtextedit.h:
  8490. * kwq/KWQTextEdit.mm: (QTextEdit::setTabStopWidth): Add unimplemented placeholder,
  8491. needed by some 3.0.1 code.
  8492. * kwq/qt/qvaluelist.h:
  8493. * kwq/KWQValueListImpl.h:
  8494. * kwq/KWQValueListImpl.mm: Simplify implementation.
  8495. * WebCore-tests.exp: Update for changes in QValueList implementation.
  8496. * kwq/kdecore/klibloader.h: Add include of <kio/global.h> to make something compile.
  8497. * kwq/khtml/java/kjavaappletcontext.h: Add JType and constructor that takes DCOPObject*.
  8498. * kwq/kio/global.h: Add KIO::CacheControl.
  8499. * khtml/css/css_ruleimpl.cpp:
  8500. * khtml/css/css_ruleimpl.h:
  8501. * khtml/css/css_stylesheetimpl.cpp:
  8502. * khtml/css/css_stylesheetimpl.h:
  8503. * khtml/css/css_valueimpl.cpp:
  8504. * khtml/css/css_valueimpl.h:
  8505. * khtml/css/cssparser.cpp:
  8506. * khtml/css/cssparser.h:
  8507. * khtml/css/cssstyleselector.cpp:
  8508. * khtml/css/cssstyleselector.h:
  8509. * khtml/css/html4.css:
  8510. * khtml/dom/css_rule.cpp:
  8511. * khtml/dom/css_rule.h:
  8512. * khtml/dom/css_stylesheet.cpp:
  8513. * khtml/dom/css_stylesheet.h:
  8514. * khtml/dom/css_value.cpp:
  8515. * khtml/dom/dom2_events.cpp:
  8516. * khtml/dom/dom2_range.cpp:
  8517. * khtml/dom/dom2_range.h:
  8518. * khtml/dom/dom2_views.cpp:
  8519. * khtml/dom/dom_doc.cpp:
  8520. * khtml/dom/dom_element.cpp:
  8521. * khtml/dom/dom_exception.h:
  8522. * khtml/dom/dom_node.cpp:
  8523. * khtml/dom/dom_string.cpp:
  8524. * khtml/dom/dom_text.cpp:
  8525. * khtml/dom/dom_xml.cpp:
  8526. * khtml/dom/html_base.cpp:
  8527. * khtml/dom/html_block.cpp:
  8528. * khtml/dom/html_document.cpp:
  8529. * khtml/dom/html_element.cpp:
  8530. * khtml/dom/html_element.h:
  8531. * khtml/dom/html_form.cpp:
  8532. * khtml/dom/html_head.cpp:
  8533. * khtml/dom/html_image.cpp:
  8534. * khtml/dom/html_inline.cpp:
  8535. * khtml/dom/html_list.cpp:
  8536. * khtml/dom/html_misc.cpp:
  8537. * khtml/dom/html_object.cpp:
  8538. * khtml/dom/html_table.cpp:
  8539. * khtml/ecma/kjs_html.cpp:
  8540. * khtml/ecma/kjs_proxy.cpp:
  8541. * khtml/ecma/kjs_traversal.cpp:
  8542. * khtml/ecma/kjs_window.cpp:
  8543. * khtml/html/html_baseimpl.cpp:
  8544. * khtml/html/html_formimpl.cpp:
  8545. * khtml/html/html_miscimpl.h:
  8546. * khtml/html/html_objectimpl.cpp:
  8547. * khtml/html/html_objectimpl.h:
  8548. * khtml/html/htmlparser.cpp:
  8549. * khtml/html/htmlparser.h:
  8550. * khtml/html/htmltokenizer.cpp:
  8551. * khtml/html/htmltokenizer.h:
  8552. * khtml/khtml_part.cpp:
  8553. * khtml/khtmlpart_p.h:
  8554. * khtml/khtmlview.cpp:
  8555. * khtml/misc/helper.cpp:
  8556. * khtml/misc/khtmllayout.h:
  8557. * khtml/misc/loader.cpp:
  8558. * khtml/misc/loader.h:
  8559. * khtml/misc/loader_client.h:
  8560. * khtml/misc/shared.h: Added.
  8561. * khtml/rendering/bidi.cpp:
  8562. * khtml/rendering/break_lines.cpp:
  8563. * khtml/rendering/font.cpp:
  8564. * khtml/rendering/render_applet.cpp:
  8565. * khtml/rendering/render_applet.h:
  8566. * khtml/rendering/render_container.cpp:
  8567. * khtml/rendering/render_form.cpp:
  8568. * khtml/rendering/render_form.h:
  8569. * khtml/rendering/render_frames.cpp:
  8570. * khtml/rendering/render_image.cpp:
  8571. * khtml/rendering/render_object.cpp:
  8572. * khtml/rendering/render_object.h:
  8573. * khtml/rendering/render_replaced.cpp:
  8574. * khtml/rendering/render_replaced.h:
  8575. * khtml/rendering/render_root.cpp:
  8576. * khtml/rendering/render_style.cpp:
  8577. * khtml/rendering/render_style.h:
  8578. * khtml/rendering/render_table.cpp:
  8579. * khtml/rendering/render_table.h:
  8580. * khtml/rendering/render_text.cpp:
  8581. * khtml/rendering/render_text.h:
  8582. * khtml/xml/dom2_eventsimpl.h:
  8583. * khtml/xml/dom2_rangeimpl.h:
  8584. * khtml/xml/dom2_traversalimpl.cpp:
  8585. * khtml/xml/dom2_traversalimpl.h:
  8586. * khtml/xml/dom2_viewsimpl.h:
  8587. * khtml/xml/dom_docimpl.cpp:
  8588. * khtml/xml/dom_docimpl.h:
  8589. * khtml/xml/dom_elementimpl.h:
  8590. * khtml/xml/dom_nodeimpl.cpp:
  8591. * khtml/xml/dom_nodeimpl.h:
  8592. * khtml/xml/dom_stringimpl.cpp:
  8593. * khtml/xml/dom_stringimpl.h:
  8594. * khtml/xml/xml_tokenizer.h:
  8595. Merge in 3.0.1 changes and add APPLE_CHANGES as necessary to get it to compile.
  8596. 2002-06-07 Darin Adler <darin@apple.com>
  8597. * Makefile.am: Use new shared "embed.am" file so we don't need four copies of
  8598. the embedding rules for WebFoundation, JavaScriptCore, WebCore, and WebKit.
  8599. 2002-06-07 Maciej Stachowiak <mjs@apple.com>
  8600. * Makefile.am: Rename libwebcore.dylib to libwebcore.a; since this
  8601. target is just a fake for dependency purposes, it doesn't matter
  8602. what it's called.
  8603. * .cvsignore: Update ignorance.
  8604. 2002-06-07 Darin Adler <darin@apple.com>
  8605. * Makefile.am: I was running into failures in the embed rule, so I made it
  8606. always remove the framework before copying the new one in. This is better
  8607. for cases where a header was removed, too, so maybe we should do this in
  8608. the other directories.
  8609. * kwq/KWQDrawUtil.mm:
  8610. * kwq/KWQKComboBox.mm:
  8611. * kwq/KWQKConfigBase.mm:
  8612. * kwq/KWQKDebug.mm:
  8613. * kwq/KWQKMessageBox.mm:
  8614. * kwq/KWQKMimeType.mm:
  8615. * kwq/KWQKPrinter.mm:
  8616. * kwq/KWQKURL.mm:
  8617. * kwq/KWQMapImpl.mm:
  8618. * kwq/KWQObject.mm:
  8619. * kwq/KWQRegExp.mm:
  8620. * kwq/KWQRegion.mm:
  8621. * kwq/KWQScrollView.mm:
  8622. * kwq/KWQStringList.mm:
  8623. Remove repeated default values for parameters -- the new compiler
  8624. won't allow these and they are illegal C++.
  8625. 2002-06-07 Darin Adler <darin@apple.com>
  8626. * kwq/KWQPtrDictImpl.h: Use CoreFoundation.h -- new compiler
  8627. is picky about the difference between struct and typedef.
  8628. * kwq/KWQValueListImpl.h: Add a friend declaration that we need
  8629. because the new compiler is more strict.
  8630. - fix 2949882 -- joecartoon.com crashes
  8631. * khtml/ecma/kjs_window.cpp: (Window::get): Turn off some code that
  8632. doesn't work for us -- similar to code elsewhere in this file that
  8633. was also turned off.
  8634. 2002-06-07 Chris Blumenberg <cblu@apple.com>
  8635. Made IFWebController a class.
  8636. Fixed all places where IFWebController was referred to as a protocol.
  8637. Renamed IFBaseWebController files to IFWebController.
  8638. IFWebController.h replaces IFWebBaseController.h.
  8639. * kwq/KWQKHTMLPart.mm:
  8640. (KWQKHTMLPartImpl::requestFrame):
  8641. * kwq/KWQKHTMLPartBrowserExtension.mm:
  8642. (KHTMLPartBrowserExtension::createNewWindow):
  8643. * kwq/KWQKloader.mm:
  8644. (-[URLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  8645. (-[URLLoadClient IFURLHandle:didRedirectToURL:]):
  8646. (KWQLoaderImpl::serveRequest):
  8647. * kwq/external.h:
  8648. === Alexander-8 ===
  8649. 2002-06-07 Darin Adler <darin@apple.com>
  8650. Try to make Jersey work again.
  8651. * kwq/KWQInvisibleButton.h: Simplify includes.
  8652. * kwq/KWQInvisibleButton.mm: Simplify includes.
  8653. 2002-06-05 Darin Adler <darin@apple.com>
  8654. Some fixes to speed up the citibank.com page, and other related changes.
  8655. * khtml/ecma/kjs_dom.cpp: (DOMNode::getValueProperty): Only do a layout
  8656. if it's actually needed. This speeds things up immensely, and I'm pretty
  8657. sure it's correct.
  8658. * kwq/KWQListImpl.h: To speed things up, get rid of the "private part"
  8659. level of indirection. This is particularly vital for list iterators, which
  8660. are created and destroyed a lot on the stack. Also made trivial functions
  8661. be inline.
  8662. * kwq/KWQListImpl.mm:
  8663. (copyList): Now a static function rather than a member of the now-defunct
  8664. private class.
  8665. (KWQListImpl::KWQListImpl): Set up all the new members that used to be in
  8666. the separate private object.
  8667. (KWQListImpl::~KWQListImpl): Update the iterator-detaching code to do it
  8668. the new way, with intrusive list. Also, use clear() instead of having our
  8669. own code to delete the list -- note this is only used after the level above
  8670. us does a clear() anyway.
  8671. (KWQListImpl::clear): Use a loop to delete all the nodes rather than making
  8672. a delete of one node recursively delete the next -- iteration is more efficient,
  8673. and also easier to understand in this case. Also update all the iterators so
  8674. they don't point to deleted nodes.
  8675. (KWQListImpl::containsRef): Update to return the count, rather than just a
  8676. true or false value, since that's how the class is defined.
  8677. (KWQListImpl::assign): Delete the items if asked to (fixes a FIXME). Also
  8678. use a new swap member function since there's more to swap now.
  8679. (KWQListImpl::addIterator): Rewrite to use an intrusive linked list.
  8680. (KWQListImpl::removeIterator): Rewrite to use an intrusive linked list; this
  8681. makes it much faster since it doesn't have to search the list.
  8682. (KWQListImpl::swap): Implement this private member function used by assign.
  8683. (KWQListIteratorImpl::KWQListIteratorImpl): Set up the new members that
  8684. used to be in the separate private object.
  8685. * kwq/qt/qlist.h: Re-add the operator= definition. This would cause a storage
  8686. leak, although I haven't actually observed the leak.
  8687. * kwq/qt/qbuffer.h: Initialize opened to false. This was causing a test failure.
  8688. * kwq/KWQDictImpl.h:
  8689. * kwq/KWQDictImpl.mm: Streamline implementation a bit by getting rid of
  8690. unneeded copy constructor definition and making trivial constructor for
  8691. iterator inline.
  8692. * kwq/KWQPtrDictImpl.h: Remove unneeded include.
  8693. * WebCore-tests.exp: Update for changes in the entry points
  8694. used by the tests.
  8695. 2002-06-05 Richard Williamson <rjw@apple.com>
  8696. Fixed 2938552. This required an implementation of KHTMLPart::frames which
  8697. is used by the JS window.frames property.
  8698. * khtml/khtml_part.cpp:
  8699. (KHTMLPart::frames):
  8700. * kwq/KWQKHTMLPart.mm:
  8701. (KWQKHTMLPartImpl::frames):
  8702. * kwq/KWQKHTMLPartImpl.h:
  8703. 2002-06-05 Richard Williamson <rjw@apple.com>
  8704. Fixed window.top JS property (2939353). This caused funny recursion problems at
  8705. www.megapixel.net and other pages that try to pop frames.
  8706. * khtml/khtml_part.cpp:
  8707. (KHTMLPart::parentPart):
  8708. * kwq/KWQKHTMLPart.mm:
  8709. (KWQKHTMLPartImpl::parentPart):
  8710. * kwq/KWQKHTMLPartImpl.h:
  8711. 2002-06-05 Richard Williamson <rjw@apple.com>
  8712. Cleaned up call to frameNamed:. Now use frame relative naming.
  8713. Fixed various frame related bugs.
  8714. * kwq/KWQKHTMLPart.mm:
  8715. (KWQKHTMLPartImpl::urlSelected):
  8716. * kwq/external.h:
  8717. 2002-06-04 Richard Williamson <rjw@apple.com>
  8718. * kwq/KWQKHTMLPart.mm:
  8719. (KWQKHTMLPartImpl::timerEvent):
  8720. (KWQKHTMLPartImpl::redirectURL):
  8721. Renamed redirectJS to redirectURL to more correctly reflect it's
  8722. function.
  8723. (KWQKHTMLPartImpl::urlSelected):
  8724. Fixed 2935505. We now pop out of a frame if a link is clicked in a frame
  8725. and that frame is the only frame in a frameset. This emulates the behavior of IE.
  8726. * kwq/KWQKHTMLPartImpl.h:
  8727. * kwq/external.h:
  8728. 2002-06-04 Richard Williamson <rjw@apple.com>
  8729. More exclusion for pre 6C48.
  8730. * kwq/KWQPixmap.mm:
  8731. (QPixmap::QPixmap):
  8732. 2002-06-04 Kenneth Kocienda <kocienda@apple.com>
  8733. * kwq/kwqdebug.h: Added a line of stderr output into the
  8734. assertion failure code so that we have some idea of what happened.
  8735. 2002-06-04 Richard Williamson <rjw@apple.com>
  8736. Changes to support progressive image loading. Currently disabled
  8737. until 2945218 is fixed.
  8738. * khtml/misc/loader.cpp:
  8739. * kwq/KWQKloader.mm:
  8740. * kwq/KWQPixmap.mm:
  8741. * kwq/WebCoreImageRenderer.h:
  8742. * kwq/WebCoreImageRendererFactory.h:
  8743. * kwq/WebCoreImageRendererFactory.m:
  8744. * kwq/qt/qpixmap.h:
  8745. 2002-06-04 Darin Adler <darin@apple.com>
  8746. - fixed 2943897 -- Initial uncached load of amazon.com renders partial page.
  8747. * khtml/khtml_part.cpp: (KHTMLPart::setEncoding): Put the code that
  8748. reloads the page when the encoding is changed back inside APPLE_CHANGES.
  8749. This was causing partial loads because of how it interacts with our
  8750. way of saving up text and not decoding until we discover what the
  8751. encoding is.
  8752. 2002-06-03 Darin Adler <darin@apple.com>
  8753. * LICENSE: Add 2002.
  8754. * kwq/KWQApplication.mm:
  8755. * kwq/kdecore/kapplication.h:
  8756. * kwq/qt/qapplication.h:
  8757. Found a way to simplify the application objects by making more of
  8758. the functions static so we don't need to actually allocate an object.
  8759. * kwq/Makefile.am:
  8760. * kwq/KWQKApplication.mm: Removed.
  8761. * kwq/kdecore/kapp.h: Removed.
  8762. 2002-06-03 Darin Adler <darin@apple.com>
  8763. A few more unused things.
  8764. * kwq/Makefile.am: Removed KWQKProcess.mm
  8765. * kwq/KWQKProcess.mm: Removed.
  8766. * kwq/KWQStrList.h: Removed.
  8767. * kwq/kdecore/kprocess.h: Removed.
  8768. 2002-06-03 Darin Adler <darin@apple.com>
  8769. Forgot one file.
  8770. * kwq/qt/qframe.h: Added.
  8771. 2002-06-03 Darin Adler <darin@apple.com>
  8772. Get rid of many unneeded APPLE_CHANGES.
  8773. Also get rid of _KWQ_ and _KWQ_PEDANTIC_.
  8774. * WebCore.exp: Don't export DomShared::ref/deref any more.
  8775. * WebCore-tests.exp: Changed around as needed due to changes in
  8776. the classes being tested.
  8777. * khtml/html/htmlparser.cpp:
  8778. * khtml/html/htmltokenizer.cpp:
  8779. Simplified APPLE_CHANGES for better merging.
  8780. * khtml/dom/dom_misc.h:
  8781. * khtml/dom/dom_misc.cpp:
  8782. * khtml/dom/html_document.cpp:
  8783. * khtml/khtmlview.cpp:
  8784. * khtml/ecma/kjs_css.h:
  8785. * khtml/ecma/kjs_dom.cpp:
  8786. * khtml/ecma/kjs_dom.h:
  8787. * khtml/ecma/kjs_window.cpp:
  8788. * khtml/html/html_formimpl.cpp:
  8789. * khtml/html/html_objectimpl.cpp:
  8790. * khtml/misc/helper.cpp:
  8791. * khtml/rendering/bidi.cpp:
  8792. * khtml/rendering/render_flow.cpp:
  8793. * khtml/rendering/render_form.cpp:
  8794. * khtml/rendering/render_text.cpp:
  8795. * khtml/xml/xml_tokenizer.h:
  8796. * kwq/qt/qtextedit.h:
  8797. Remove now-unneeded APPLE_CHANGES.
  8798. * khtml/misc/loader.cpp: (CachedImage::pixmap): Turned off more of
  8799. the QMovie code.
  8800. * khtml/html/html_documentimpl.cpp:
  8801. * khtml/html/htmltokenizer.h:
  8802. * khtml/xml/dom_elementimpl.h:
  8803. * kwq/KWQKHTMLPart.mm:
  8804. Formatting and other minor tweaks.
  8805. * kwq/KWQApplication.mm: (QApplication::sendEvent): Implemented.
  8806. * kwq/KWQChar.mm: (QChar::direction): Improved implementation.
  8807. * kwq/KWQCollection.h: Removed.
  8808. * kwq/KWQIcon.h: Removed.
  8809. * kwq/Makefile.am: Removed following files.
  8810. * kwq/KWQKCompletionBox.mm: Removed.
  8811. * kwq/KWQKFactory.mm: Removed.
  8812. * kwq/KWQListBox.mm: Removed.
  8813. * kwq/KWQKImageIO.mm: Removed.
  8814. * kwq/KWQObject.mm: (QObject::event): Added, does nothing.
  8815. (QObject::inherits): Put in real implementation (good enough for us).
  8816. * kwq/WCWebDataSource.h: Removed extern declaration of global.
  8817. * kwq/KWQCursor.mm: (QCursor::handle): Made the handle be an
  8818. NSCursor *.
  8819. * kwq/external.h: Moved [IFWebView setFrameSize:] here.
  8820. Got rid of IFAnimatedImage.
  8821. * kwq/KWQDef.h: Remove unused Q_INT8, Q_INT16, Q_UINT8, Q_UINT16,
  8822. QCOORD, WFlags, WId, ASSERT, CHECK_PTR, Q_EXPORT, Q_PACKED,
  8823. QT_STATIC_CONST, QT_STATIC_CONST_IMPL. Define _KWQ_IOSTREAM_ only
  8824. when NDEBUG is not defined.
  8825. * kwq/KWQBuffer.mm:
  8826. * kwq/KWQCString.mm:
  8827. * kwq/KWQCollection.mm:
  8828. * kwq/KWQCompletion.h:
  8829. * kwq/KWQCompletion.mm:
  8830. * kwq/KWQFrame.h:
  8831. * kwq/KWQFrame.mm:
  8832. * kwq/KWQHBox.mm:
  8833. * kwq/KWQKFileItem.mm:
  8834. * kwq/KWQKIconLoader.mm:
  8835. * kwq/KWQKLineEdit.mm:
  8836. * kwq/KWQKProtocolManager.mm:
  8837. * kwq/KWQLabel.mm:
  8838. * kwq/KWQListBox.h:
  8839. * kwq/KWQMovie.mm:
  8840. * kwq/KWQWidget.mm:
  8841. * kwq/KWQxml.mm:
  8842. * kwq/qt/qbuffer.h:
  8843. * kwq/kdecore/kdebug.h:
  8844. * kwq/kdecore/kglobal.h:
  8845. * kwq/kdecore/kglobalsettings.h:
  8846. * kwq/kdecore/kiconloader.h:
  8847. * kwq/kdecore/kstaticdeleter.h:
  8848. * kwq/kdecore/kstringhandler.h:
  8849. * kwq/kdeui/kcombobox.h:
  8850. * kwq/kdeui/kcompletionbox.h:
  8851. * kwq/kdeui/klineedit.h:
  8852. * kwq/kdeui/klistbox.h:
  8853. * kwq/kdeui/kmessagebox.h:
  8854. * kwq/kio/kfileitem.h:
  8855. * kwq/kio/kimageio.h:
  8856. * kwq/kio/kmimetype.h:
  8857. * kwq/kio/kprotocolmanager.h:
  8858. * kwq/kio/netaccess.h:
  8859. * kwq/qt/qxml.h:
  8860. * kwq/kparts/browserinterface.h:
  8861. * kwq/kparts/factory.h:
  8862. * kwq/kparts/part.h:
  8863. * kwq/qt/qarray.h:
  8864. * kwq/qt/qcollection.h:
  8865. * kwq/qt/qcstring.h:
  8866. * kwq/qt/qcursor.h:
  8867. * kwq/qt/qdict.h:
  8868. * kwq/qt/qhbox.h:
  8869. * kwq/qt/qlabel.h:
  8870. * kwq/qt/qlist.h:
  8871. * kwq/qt/qmap.h:
  8872. * kwq/qt/qmovie.h:
  8873. * kwq/qt/qobject.h:
  8874. * kwq/qt/qpaintdevicemetrics.h:
  8875. * kwq/qt/qpainter.h:
  8876. * kwq/qt/qpoint.h:
  8877. * kwq/qt/qradiobutton.h:
  8878. * kwq/qt/qrect.h:
  8879. * kwq/qt/qregion.h:
  8880. * kwq/qt/qscrollview.h:
  8881. * kwq/qt/qsize.h:
  8882. * kwq/qt/qstack.h:
  8883. * kwq/qt/qstringlist.h:
  8884. * kwq/qt/qtextedit.h:
  8885. * kwq/qt/qvaluelist.h:
  8886. * kwq/qt/qvector.h:
  8887. * kwq/qt/qwidget.h:
  8888. * kwq/qt/qxml.h:
  8889. Removed unused stuff.
  8890. * kwq/KWQListBox.mm:
  8891. * kwq/KWQMapImpl.h:
  8892. * kwq/KWQMapImpl.mm:
  8893. * kwq/KWQPainter.mm:
  8894. * kwq/KWQPoint.mm:
  8895. * kwq/KWQRadioButton.mm:
  8896. * kwq/KWQRect.mm:
  8897. * kwq/KWQRegion.mm:
  8898. * kwq/KWQScrollBar.h:
  8899. * kwq/KWQScrollView.mm:
  8900. * kwq/KWQSize.mm:
  8901. * kwq/KWQStringList.mm:
  8902. * kwq/KWQbrowserinterface.mm:
  8903. Simplified.
  8904. * kwq/kdecore/kurl.h:
  8905. Added include to match what's expected by clients.
  8906. * kwq/qt/qobjectlist.h: Added. Empty file to make includers happy.
  8907. * kwq/khtml/khtml_printsettings.h: Added. Empty file.
  8908. * kwq/qt/qobjectlist.h: Added. Empty file.
  8909. * kwq/kio/kssl/ksslkeygen.h: Define just enough to make callers
  8910. happy.
  8911. * kwq/qt/qobject.h: Added event().
  8912. * kwq/kparts/part.h: Added bool return type to event().
  8913. * kwq/qt/qvector.h: Added QGVector base class.
  8914. 2002-06-01 Darin Adler <darin@apple.com>
  8915. * kwq/KWQPtrDictImpl.mm: (KWQPtrDictPrivate::~KWQPtrDictPrivate):
  8916. Fix compile error.
  8917. 2002-05-31 Darin Adler <darin@apple.com>
  8918. Fix infinite loop while cancelling bug that was caused by dictionary
  8919. iterators not getting updated when keys are removed.
  8920. * kwq/KWQPtrDictImpl.mm:
  8921. (KWQPtrDictPrivate::KWQPtrDictPrivate): Set iterators list to 0.
  8922. (KWQPtrDictPrivate::~KWQPtrDictPrivate): Tell iterators dict is gone.
  8923. (KWQPtrDictImpl::remove): Tell each iterator that the item was removed.
  8924. (KWQPtrDictIteratorPrivate::KWQPtrDictIteratorPrivate): Insert the
  8925. iterator into a list with a head stored in the dict.
  8926. (KWQPtrDictIteratorPrivate::~KWQPtrDictIteratorPrivate): Remove the
  8927. iterator from the list.
  8928. (KWQPtrDictIteratorPrivate::remove): Remove the key from the iterator's
  8929. private storage.
  8930. (KWQPtrDictIteratorPrivate::dictDestroyed): Clear out the dict pointer
  8931. and set the count to 0.
  8932. * kwq/KWQPtrDictImpl.h: Move private classes out so they can get at each
  8933. other without being friends of each other.
  8934. * kwq/qt/qptrdict.h: Simplify a bit.
  8935. 2002-05-31 Darin Adler <darin@apple.com>
  8936. * khtml/khtmlview.h: Add KWQKHTMLPartImpl as friend class, remove khtml_part.h
  8937. include that we added inside APPLE_CHANGES.
  8938. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPartImpl::end): Reinstate a line of code that
  8939. required friend status.
  8940. * kwq/KWQView.mm: Add include of khtml_part.h.
  8941. 2002-05-31 Darin Adler <darin@apple.com>
  8942. * kwq/kwqdebug.h: Don't use displayableString; it's an SPI and those
  8943. are no nos inside WebCore.
  8944. 2002-05-31 Darin Adler <darin@apple.com>
  8945. * kwq/kio/jobclasses.h: Removed SimpleJob and made Job just enough for
  8946. TransferJob to inherit from it. Removed unused stuff and made url() return
  8947. an NSURL rather than a KURL.
  8948. * kwq/KWQKjobclasses.mm: Removed much of the code, and reworked what
  8949. remains to simplify it.
  8950. * kwq/KWQKloader.mm: Update users of TransferJob::url since it now returns
  8951. an NSURL rather than a KURL.
  8952. * kwq/kio/job.h: Simplify.
  8953. * kwq/KWQKJob.mm: Simplify.
  8954. * kwq/kio/scheduler.h: Emptied this file out.
  8955. * kwq/KWQKScheduler.mm: Removed.
  8956. * kwq/Makefile.am: Removed KWQKScheduler.mm.
  8957. 2002-05-31 Darin Adler <darin@apple.com>
  8958. Remove some unused stuff; total of 1000s of lines.
  8959. * Makefile.am: Removed some strange uses of "./" and
  8960. improved stamp-related rules.
  8961. * WebCore-tests.exp: Removed QDir functions.
  8962. * khtml/Makefile.am: Removed java subdirectory.
  8963. * khtml/java/*: Removed.
  8964. * khtml/rendering/render_applet.cpp: Rearrange APPLE_CHANGES so
  8965. that we use our own KJavaAppletWidget rather than a QWidget.
  8966. * kwq/khtml/java/kjavaappletcontext.h: Added.
  8967. * kwq/khtml/java/kjavaappletwidget.h: Added.
  8968. * kwq/KWQKJavaAppletWidget.mm: Added. Replaces WCJavaAppletWidget.mm.
  8969. * kwq/KWQsignals.mm: Removed java-related signals.
  8970. * khtml/css/Makefile.am:
  8971. * khtml/misc/Makefile.am:
  8972. Improve stamp-related rules.
  8973. * khtml/misc/loader.cpp: Move around and add ifdefs so we don't
  8974. need as much KWQ code. Maybe revisit this later -- related to the
  8975. KDE implementation of animated and progressive loading images,
  8976. which we probably don't need, but it may integrate slightly better than
  8977. doing our hacks inside QPixmap.
  8978. * kwq/KWQApplication.mm:
  8979. * kwq/KWQFontInfo.mm:
  8980. * kwq/KWQInputDialog.mm:
  8981. * kwq/KWQKFileDialog.mm:
  8982. * kwq/KWQKHTMLPartBrowserExtension.mm:
  8983. * kwq/KWQKWin.mm:
  8984. * kwq/KWQKWinModule.mm:
  8985. * kwq/KWQKstddirs.mm:
  8986. * kwq/KWQPixmap.mm:
  8987. Simplified, removed unused code, minor tweaks.
  8988. * kwq/Makefile.am: Removed all the old files, added some new ones.
  8989. * kwq/KWQBitmap.mm: Removed.
  8990. * kwq/KWQBrush.mm: Removed.
  8991. * kwq/KWQDCOPClient.mm: Removed.
  8992. * kwq/KWQDataStream.h: Removed.
  8993. * kwq/KWQDir.mm: Removed.
  8994. * kwq/KWQFontDatabase.mm: Removed.
  8995. * kwq/KWQImage.mm: Removed.
  8996. * kwq/KWQKInstance.mm: Removed.
  8997. * kwq/KWQPaintDevice.mm: Removed.
  8998. * kwq/KWQPart.mm: Removed.
  8999. * kwq/KWQasyncimageio.mm: Removed.
  9000. * kwq/KWQasyncio.mm: Removed.
  9001. * kwq/KWQbrowserextension.mm: Removed.
  9002. * kwq/WCJavaAppletWidget.h: Removed.
  9003. * kwq/WCJavaAppletWidget.mm: Removed.
  9004. * kwq/qt/qdatastream.h: Removed.
  9005. * kwq/qt/qdir.h: Removed.
  9006. * kwq/qt/qlayout.h: Removed.
  9007. * kwq/KWQCursor.mm:
  9008. (QCursor::handle): Return the cursor object as an integer rather than
  9009. just returning 0; makes the code that uses handle() more likely to work
  9010. although it introduces a 64-bit cleanliness problem.
  9011. * kwq/KWQEvent.mm: Initialize event type in QEvent subclasses.
  9012. * kwq/WebCoreImageRenderer.h: Added NSObject and NSCopying protocols to
  9013. the WebCoreImageRenderer protocol.
  9014. * kwq/kwqdebug.h: Use displayableString in DEBUG_OBJECT for better logging.
  9015. * kwq/dcop/dcopclient.h:
  9016. * kwq/kdecore/kstddirs.h:
  9017. * kwq/kdecore/kwin.h:
  9018. * kwq/kdecore/kwinmodule.h:
  9019. * kwq/kfile/kfiledialog.h:
  9020. * kwq/kparts/browserextension.h:
  9021. * kwq/kparts/event.h:
  9022. * kwq/qt/qapplication.h:
  9023. * kwq/qt/qasyncimageio.h:
  9024. * kwq/qt/qasyncio.h:
  9025. * kwq/qt/qbitmap.h:
  9026. * kwq/qt/qbrush.h:
  9027. * kwq/qt/qbutton.h:
  9028. * kwq/qt/qcheckbox.h:
  9029. * kwq/qt/qcollection.h:
  9030. * kwq/qt/qcolor.h:
  9031. * kwq/qt/qcombobox.h:
  9032. * kwq/qt/qcursor.h:
  9033. * kwq/qt/qdrawutil.h:
  9034. * kwq/qt/qevent.h:
  9035. * kwq/qt/qfont.h:
  9036. * kwq/qt/qfontdatabase.h:
  9037. * kwq/qt/qfontinfo.h:
  9038. * kwq/qt/qimage.h:
  9039. * kwq/qt/qinputdialog.h:
  9040. * kwq/qt/qintcache.h:
  9041. * kwq/qt/qintdict.h:
  9042. * kwq/qt/qpaintdevice.h:
  9043. * kwq/qt/qpixmap.h:
  9044. * kwq/qt/qstring.h:
  9045. Removed lots of unused stuff, including old conditionals and the like.
  9046. * khtml/khtml_part.cpp:
  9047. (KHTMLPart::khtmlMouseMoveEvent): Add missing parenthesis.
  9048. 2002-05-30 Maciej Stachowiak <mjs@apple.com>
  9049. WebCore part of fixes for:
  9050. Radar 2926169 - no support for window.open
  9051. Radar 2890469 - Preference to prevent JavaScript from automatically
  9052. opening new windows doesn't work
  9053. Radar 2938569 - link cursor does not appear on some pages
  9054. * khtml/ecma/kjs_window.cpp:
  9055. (WindowFunc::tryCall): #ifdef'd out some parts of this code that are
  9056. broken (but fortunately also unnecessary) in our project.
  9057. * kwq/KWQKConfigBase.mm:
  9058. (KConfig::KConfig): Changes to support JavaScript window opening pref.
  9059. (KConfig::readUnsignedNumEntry): Likewise.
  9060. * kwq/KWQKHTMLPart.mm:
  9061. (KHTMLPart::openURLInFrame): Implemented.
  9062. * kwq/KWQKHTMLPartBrowserExtension.mm:
  9063. (KHTMLPartBrowserExtension::KHTMLPartBrowserExtension): Implemented.
  9064. (KHTMLPartBrowserExtension::openURLRequest): Implemented by
  9065. calling openURLInFrame on the part.
  9066. (KHTMLPartBrowserExtension::createNewWindow): Implemented by
  9067. calling new WebController openNewWindowWIthURL method.
  9068. * kwq/KWQKHTMLSettings.mm:
  9069. (KHTMLSettings::isJavaScriptEnabled): Handle renaming of pref.
  9070. * kwq/KWQView.mm:
  9071. (-[KWQHTMLView setCursor:]): Fixes to set cursor properly even if
  9072. none was set.
  9073. * kwq/external.h: Declare some new WebKit methods.
  9074. * kwq/kparts/browserextension.h: Make formerly empty methods pure virtual.
  9075. * kwq/khtml/khtml_ext.h: Declare some virtual methods.
  9076. 2002-05-30 Darin Adler <darin@apple.com>
  9077. Cut down our copied and pasted code even more.
  9078. * WebCore.exp: Change what's exported for things that moved from
  9079. KHTMLPart into KWQKHTMLPartImpl.
  9080. * khtml/.cvsignore:
  9081. * khtml/css/.cvsignore:
  9082. * khtml/dom/.cvsignore:
  9083. * khtml/ecma/.cvsignore:
  9084. * khtml/html/.cvsignore:
  9085. * khtml/java/.cvsignore:
  9086. * khtml/misc/.cvsignore:
  9087. * khtml/rendering/.cvsignore:
  9088. * khtml/xml/.cvsignore:
  9089. Some .cvsignore hygiene.
  9090. * khtml/khtml_part.cpp: Use a lot more of this file, rather than using a copy inside
  9091. the kwq directory. Now we have KWQKHTMLPartImpl for the part that does need to be in kwq.
  9092. * khtml/khtml_part.h: Add KWQKHTMLPartImpl pointer, remove most of the other APPLE_CHANGES.
  9093. * khtml/khtmlpart_p.h: Remove almost all of the APPLE_CHANGES.
  9094. * kwq/KWQKHTMLPart.mm: Changed everything from being part of KHTMLPart to be a separate
  9095. KWQKHTMLPartImpl class. Minimized copied and pasted code; still more to do.
  9096. * kwq/KWQKHTMLPartImpl.h: Added. Interface so KHTMLPart can call into kwq as necessary.
  9097. * khtml/misc/Makefile.am: Added loader.cpp.
  9098. * khtml/misc/loader.cpp: Added from KDE 3.0. Rolled most of the changes from KWQKloader.mm
  9099. in here. The kwq-specific part is now in a KWQLoaderImpl class.
  9100. * khtml/misc/loader.h: Replace LoaderPrivate with KWQLoaderImpl.
  9101. * khtml/misc/loader.moc: Added empty file.
  9102. * kwq/KWQKloader.mm: Changed everything to be a separate KWQLoaderImpl class.
  9103. Minimized copied and pasted code.
  9104. * kwq/KWQLoaderImpl.h: Added. Interface so loader can call into kwq as necessary.
  9105. * kwq/loader.moc: Removed empty file.
  9106. * kwq/kparts/historyprovider.h: Add HistoryProvider::insert.
  9107. * kwq/KWQKHistoryProvider.mm: Add HistoryProvider::insert.
  9108. * kwq/KWQKLocale.mm: (KLocale::language): Simplify.
  9109. * kwq/KWQListBox.h:
  9110. * kwq/KWQNSTextField.h:
  9111. Use import instead of include for Cocoa.h.
  9112. * kwq/KWQScrollView.mm: (QScrollView::contentsToViewport): Implement this.
  9113. * kwq/external.h: Add declarations so this can be included cleanly.
  9114. * kwq/khtml/khtml_pagecache.h: Put a no-op cache in here so we don't have to do so
  9115. many APPLE_CHANGES ifdefs.
  9116. * kwq/kparts/part.h: Put ref/deref and event/customEvent in here so they don't need
  9117. to be added to KHTMLPart.
  9118. * kwq/kio/scheduler.h: Add <qtimer.h> include to help us build (not sure if it's
  9119. really needed.
  9120. * kwq/kparts/partmanager.h: Add <qdatetime.h> include to help us build (not sure if it's
  9121. really needed.
  9122. === Alexander-7 ===
  9123. 2002-05-29 Richard Williamson <rjw@apple.com>
  9124. Changes to support animated image rendering.
  9125. Moved image rendering into webkit.
  9126. * WebCore.exp:
  9127. * kwq/KWQPainter.mm:
  9128. (QPainter::drawPixmap):
  9129. (QPainter::drawTiledPixmap):
  9130. (QPainter::translate):
  9131. (QPainter::scale):
  9132. (QPainter::begin):
  9133. (QPainter::end):
  9134. * kwq/KWQPixmap.mm:
  9135. (QPixmap::QPixmap):
  9136. (QPixmap::~QPixmap):
  9137. (QPixmap::isNull):
  9138. (QPixmap::size):
  9139. (QPixmap::rect):
  9140. (QPixmap::width):
  9141. (QPixmap::height):
  9142. (QPixmap::resize):
  9143. (QPixmap::operator=):
  9144. * kwq/Makefile.am:
  9145. * kwq/WebCoreImageRenderer.h: Added.
  9146. * kwq/WebCoreImageRendererFactory.h: Added.
  9147. * kwq/WebCoreImageRendererFactory.m: Added.
  9148. (+[WebCoreImageRendererFactory sharedFactory]):
  9149. (-[WebCoreImageRendererFactory init]):
  9150. (-[WebCoreImageRendererFactory imageRendererWithBytes:length:]):
  9151. (-[WebCoreImageRendererFactory imageRendererWithSize:]):
  9152. * kwq/qt/qpixmap.h:
  9153. 2002-05-28 Richard Williamson <rjw@apple.com>
  9154. Moved cancellation check before creation on job instance,
  9155. preventing leak.
  9156. * kwq/KWQKloader.mm:
  9157. (Loader::servePendingRequests):
  9158. 2002-05-28 Richard Williamson <rjw@apple.com>
  9159. Fixed edge case cancellation problem (actually happens a lot).
  9160. No new loads are allowed after a data source has been
  9161. set as "stopping".
  9162. * kwq/KWQKloader.mm:
  9163. (Loader::servePendingRequests):
  9164. * kwq/external.h:
  9165. 2002-05-28 Richard Williamson <rjw@apple.com>
  9166. Fixed reporting of malformed resources URLs. This fixed
  9167. exceptions that were being thrown because nil handles were
  9168. being added to datasource handle array.
  9169. * kwq/KWQKjobclasses.mm:
  9170. * kwq/KWQKloader.mm:
  9171. (Loader::servePendingRequests):
  9172. 2002-05-28 Chris Blumenberg <cblu@apple.com>
  9173. Added framework-header-stamp
  9174. * .cvsignore:
  9175. 2002-05-27 John Sullivan <sullivan@apple.com>
  9176. * Resources/linkCursor.tiff: Added. Maciej forgot to cvs add
  9177. this new file. I stole the one from haircut.
  9178. 2002-05-27 Maciej Stachowiak <mjs@apple.com>
  9179. Fixed the vexing and long-standing:
  9180. Radar 2894699 - Crash at: http://cb.apple.com/jsplugins.html
  9181. * khtml/ecma/kjs_navigator.cpp: This crash was caused by Plugin
  9182. and MimeType objects referring to data that was held and
  9183. refcounted by PluginBase, without holding a ref. I fixed it by
  9184. making these individual items participate in the refcounting as
  9185. well.
  9186. 2002-05-26 Maciej Stachowiak <mjs@apple.com>
  9187. Webcore part of fix for:
  9188. Radar 2884085 - add support for changing cursor over links
  9189. * Makefile.am: Install tiff of link cursor.
  9190. * kwq/qt/qcursor.h, kwq/KWQCursor.mm:
  9191. (QCursor::QCursor): Change QCursor to contain an NSCursor.
  9192. (QCursor::~QCursor): Likewise.
  9193. (QCursor::operator=): Likewise.
  9194. (QCursor::handle): Likewise.
  9195. * kwq/KWQKCursor.mm:
  9196. (+[NSCursor _WebCore_linkCursor]): NSCursor extension method that
  9197. provides the link cursor.
  9198. (KCursor::handCursor): Use the link cursor instead of the default
  9199. arrow cursor.
  9200. * kwq/KWQKHTMLSettings.mm:
  9201. (KHTMLSettings::changeCursor): Return TRUE; we always want cursor
  9202. tracking.
  9203. * kwq/KWQView.h, kwq/KWQView.mm:
  9204. (-[KWQHTMLView setCursor:]): Remember the new cursor and
  9205. invalidate cursor rects.
  9206. (-[KWQHTMLView resetCursorRects]): Establish cursor rect for
  9207. currently set cursor, if not default.
  9208. * kwq/KWQWidget.mm:
  9209. (QWidget::setCursor): Call setCursor: on the underlying
  9210. NSView, if implemented.
  9211. (QWidget::cursor): Implemented.
  9212. (QWidget::unsetCursor): Implemented.
  9213. 2002-05-25 Maciej Stachowiak <mjs@apple.com>
  9214. Changed WebCore to build as a framework, not a dylib, so resources
  9215. can be added to it.
  9216. * Makefile.am: Actual changes to build WebCore.framework
  9217. * Resources/Info.plist: Added.
  9218. * English.lproj/InfoPlist.strings: Added.
  9219. * WebCore-tests.exp: Added.
  9220. * WebCore.exp: Added.
  9221. * libwebcore.exp: Removed.
  9222. * libwebcoretests.exp: Removed.
  9223. * .cvsignore: Updated.
  9224. === 0.3 ===
  9225. 2002-05-24 Shelley A Sheridan <sheridan@apple.com>
  9226. * ChangeLog:
  9227. === Alexander-6 ===
  9228. 2002-05-23 Maciej Stachowiak <mjs@apple.com>
  9229. Fixes for the following (the first bug also requires WebKit and
  9230. WebBrowser changes):
  9231. Radar 2896391 - command-click should open link in new window
  9232. Radar 2935858 - two mails for each mailto:
  9233. * khtml/html/html_inlineimpl.cpp:
  9234. (HTMLAnchorElementImpl::defaultEventHandler): Set flag for Meta
  9235. key in addition to Control, Shift and Alt, since the Command key
  9236. is treated as Meta.
  9237. * kwq/KWQKHTMLPart.mm:
  9238. (KHTMLPart::urlSelected): Open a new window if the user
  9239. command-clicked.
  9240. (KHTMLPart::khtmlMouseMoveEvent): Clean up use of braces and ifdefs to
  9241. make prepare-ChangeLog happy.
  9242. (KHTMLPart::khtmlMouseReleaseEvent): Remove code that tried to
  9243. process link click events here. This made link clicks get
  9244. processed twice, now that mouse events are hooked up for real.
  9245. * kwq/external.h: prototype openNewWindowWithURL: method.
  9246. 2002-05-23 Kenneth Kocienda <kocienda@apple.com>
  9247. More work to fix this bug:
  9248. Radar 2883631 (need to implement support for META HTTP_EQUIV=REFRESH)
  9249. There was yet two more cases where the refresh timers were getting clobbered.
  9250. Fixed.
  9251. * khtml/ecma/kjs_window.cpp:
  9252. (WindowQObject::parentDestroyed)
  9253. * khtml/khtmlview.cpp:
  9254. (KHTMLView::clear)
  9255. 2002-05-23 Richard J. Williamson <rjw@apple.com>
  9256. Fixed crasher 2935757. I still need to investigate the root cause
  9257. of this problem.
  9258. * khtml/rendering/render_text.cpp:
  9259. (RenderText::setText):
  9260. 2002-05-23 Kenneth Kocienda <kocienda@apple.com>
  9261. Fixes for these bugs:
  9262. Radar 2883631 (need to implement support for META HTTP_EQUIV=REFRESH)
  9263. Radar 2935472 (Non-standard html pages don't always get decoded)
  9264. * khtml/khtml_part.cpp: Don't kill all timers. Just kill the ones for this object.
  9265. (KHTMLPart::~KHTMLPart):
  9266. * khtml/khtml_part.h: Modified interface to slotData to add a flag for when all data
  9267. for a load has been received.
  9268. * khtml/khtmlview.cpp:
  9269. (KHTMLView::~KHTMLView): Don't kill all timers. Just kill the ones for this object.
  9270. * kwq/KWQKHTMLPart.mm:
  9271. (KHTMLPart::slotData): Senses when text encoding is not available, but all data has been received.
  9272. (KHTMLPart::write): Ditto
  9273. (KHTMLPart::scheduleRedirection):
  9274. * libwebcore.exp: Changed symbol for slotData
  9275. 2002-05-23 Shelley A Sheridan <sheridan@apple.com>
  9276. * ChangeLog:
  9277. === Alexander-5 ===
  9278. 2002-05-23 Maciej Stachowiak <mjs@apple.com>
  9279. Notify when loads of sub-URLs start and stop, so panels for these
  9280. can be attached to the right windows.
  9281. * kwq/KWQKloader.mm:
  9282. (-[URLLoadClient IFURLHandleResourceDidBeginLoading:]):
  9283. (-[URLLoadClient IFURLHandleResourceDidCancelLoading:]):
  9284. (-[URLLoadClient IFURLHandleResourceDidFinishLoading:data:]):
  9285. (-[URLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  9286. (-[URLLoadClient IFURLHandle:didRedirectToURL:]):
  9287. * kwq/external.h:
  9288. 2002-05-22 Richard J. Williamson <rjw@apple.com>
  9289. Additional additional callback when resource is first loaded.
  9290. * kwq/KWQKloader.mm:
  9291. (-[URLLoadClient IFURLHandleResourceDidBeginLoading:]):
  9292. 2002-05-21 Richard J. Williamson <rjw@apple.com>
  9293. Lots of changes for DHTML.
  9294. Bugs fixes, and fixes to regressions.
  9295. * khtml/misc/decoder.cpp:
  9296. (Decoder::decode):
  9297. * khtml/rendering/render_flow.cpp:
  9298. (RenderFlow::print):
  9299. (RenderFlow::layout):
  9300. * khtml/rendering/render_text.cpp:
  9301. (RenderText::print):
  9302. * kwq/KWQKHTMLPart.mm:
  9303. (KHTMLPart::urlSelected):
  9304. * kwq/qt/qevent.h:
  9305. * kwq/qt/qstring.h:
  9306. * libwebcore.exp:
  9307. 2002-05-21 Kenneth Kocienda <kocienda@apple.com>
  9308. Fix for this bug:
  9309. Radar 2924728 (post form fails at pt.apple.com; succeeds at macosx.apple.com)
  9310. Posted forms are now submitted with the IFURLHandleFlagLoadFromOrigin
  9311. load flag set. This prevents a potential bug which may cause a page
  9312. with a form that uses itself as an action to be returned from the
  9313. cache without submitting.
  9314. * kwq/KWQKHTMLPart.mm:
  9315. (KHTMLPart::submitForm)
  9316. 2002-05-21 Kenneth Kocienda <kocienda@apple.com>
  9317. Merged these four include files into the precompiled header.
  9318. These are used for the enhanced assertion/debuggin support I
  9319. added yesterday.
  9320. <signal.h>
  9321. <sys/types.h>
  9322. <sys/time.h>
  9323. <sys/resource.h>
  9324. * WebCorePrefix.h
  9325. 2002-05-20 Darin Adler <darin@apple.com>
  9326. Forgot one file.
  9327. * khtml/khtml_part.moc: Added.
  9328. 2002-05-20 Darin Adler <darin@apple.com>
  9329. Use more of the original khtml_part.cpp; a step in the direction of factoring
  9330. our code out so more of it can go in WebKit and we don't need external.h.
  9331. * khtml/Makefile.am:
  9332. * khtml/khtml_part.cpp:
  9333. * khtml/khtml_part.h:
  9334. * khtml/khtmlpart_p.h:
  9335. Start compiling khtml_part.cpp and using khtmlpart_p.h again.
  9336. * kwq/KWQKHTMLPart.mm:
  9337. Remove code that was identical to khtml_part.cpp. We aren't going to use the
  9338. "copy and hack our copy" approach on this class for the long termk, and this
  9339. is the first step in cleaning things up.
  9340. * khtml/khtml_ext.h: Removed.
  9341. * khtml/khtml_factory.h: Removed.
  9342. * khtml/misc/loader.h:
  9343. * khtml/xml/dom_docimpl.cpp:
  9344. (DocumentImpl::recalcStyleSelector):
  9345. Remove some APPLE_CHANGES ifdefs we don't need any more.
  9346. * kwq/KWQDateTime.mm:
  9347. Simplify things like copy constructors.
  9348. * kwq/kdeui/kcursor.h:
  9349. * kwq/KWQKCursor.mm:
  9350. Add handCursor.
  9351. * kwq/KWQKHTMLFactory.mm:
  9352. Put in real implementations, not just placeholders.
  9353. * kwq/KWQKHTMLPartBrowserExtension.mm:
  9354. * kwq/KWQKInstance.mm:
  9355. * kwq/KWQPart.mm:
  9356. * kwq/KWQbrowserextension.mm:
  9357. Empty these files out, nothing in them is needed any more.
  9358. * kwq/khtml/khtml_settings.h:
  9359. * kwq/KWQKHTMLSettings.mm:
  9360. (KHTMLSettings::isJavaEnabled):
  9361. (KHTMLSettings::autoLoadImages):
  9362. (KHTMLSettings::isPluginsEnabled):
  9363. (KHTMLSettings::isJavaScriptEnabled):
  9364. (KHTMLSettings::isJavaScriptDebugEnabled):
  9365. Moved settings here from KWQKHTMLPart.mm
  9366. * kwq/kdecore/kurl.h:
  9367. * kwq/KWQKURL.mm:
  9368. (KURL::encodedHtmlRef):
  9369. (KURL::htmlRef):
  9370. Placeholders for these two, called in KHTMLPart, but maybe not really needed.
  9371. * kwq/KWQKloader.mm:
  9372. (Cache::preloadScript):
  9373. (Cache::preloadStyleSheet):
  9374. Empty functions for these, called in KHTMLPart but no implementation needed.
  9375. * kwq/qt/qtimer.h:
  9376. * kwq/KWQTimer.mm:
  9377. (QTimer::isActive):
  9378. (QTimer::start):
  9379. (QTimer::stop):
  9380. More timer functions.
  9381. * kwq/qt/qscrollview.h: Add one more function.
  9382. * kwq/kdecore/kinstance.h: Simplify.
  9383. * kwq/kdeui/kaction.h: Simplify.
  9384. * kwq/khtml/khtml_factory.h: Simplify.
  9385. * kwq/kparts/browserextension.h: Simplify.
  9386. * kwq/kparts/part.h: Simplify.
  9387. * kwq/qt/qdatetime.h: Simplify.
  9388. * kwq/kdecore/klibloader.h: Added.
  9389. * kwq/khtml/khtml_ext.h: Added.
  9390. * kwq/kparts/partmanager.h: Added.
  9391. Nearly-empty files with just simple placeholders so we can compile more.
  9392. * kwq/dcop/kdatastream.h: Added.
  9393. * kwq/kdecore/kmultipledrag.h: Added.
  9394. * kwq/kdecore/ktempfile.h: Added.
  9395. * kwq/kdecore/kurldrag.h: Added.
  9396. * kwq/kdeui/kstdaction.h: Added.
  9397. * kwq/kdeui/kxmlguifactory.h: Added.
  9398. * kwq/khtml/khtml_find.h: Added.
  9399. * kwq/khtml/khtml_iface.h: Added.
  9400. * kwq/khtml/khtml_pagecache.h: Added.
  9401. * kwq/khtml/khtml_run.h: Added.
  9402. * kwq/kio/kssl/ksslcertchain.h: Added.
  9403. * kwq/kio/kssl/ksslinfodlg.h: Added.
  9404. * kwq/kio/ktrader.h: Added.
  9405. * kwq/qt/private/qucomextra_p.h: Added.
  9406. * kwq/qt/qclipboard.h: Added.
  9407. * kwq/qt/qmetaobject.h: Added.
  9408. Empty files just so includes of these names will compile.
  9409. * libwebcoretests.exp: Remove one export that's no longer needed.
  9410. 2002-05-20 Richard J. Williamson <rjw@apple.com>
  9411. * khtml/ecma/kjs_events.cpp:
  9412. (JSEventListener::handleEvent):
  9413. * khtml/khtml_part.h:
  9414. * kwq/KWQKHTMLPart.mm:
  9415. (KHTMLPart::~KHTMLPart):
  9416. (KHTMLPart::scheduleRedirection):
  9417. (KHTMLPart::timerEvent):
  9418. (KHTMLPart::redirectJS):
  9419. (KHTMLPart::urlSelected):
  9420. * kwq/KWQVariant.mm:
  9421. (QVariant::asString):
  9422. * kwq/qt/qvariant.h:
  9423. 2002-05-20 Kenneth Kocienda <kocienda@apple.com>
  9424. * kwq/kwqdebug.h: Now includes <sys/time.h> to prevent possible
  9425. build breakage in the inclusion of <sys/resource.h>
  9426. 2002-05-20 Kenneth Kocienda <kocienda@apple.com>
  9427. Changed assertion failure code to send a SIGQUIT instead
  9428. of raising an NSException.
  9429. * kwq/kwqdebug.h
  9430. 2002-05-19 Darin Adler <darin@apple.com>
  9431. * khtml/rendering/render_object.cpp: (RenderObject::drawBorder):
  9432. Add missing break statement so borders don't draw strangely.
  9433. * khtml/rendering/render_style.h: Remove unneeded QColor workaround,
  9434. now that we handle invalid colors properly.
  9435. * kwq/KWQColor.mm:
  9436. (createStaticConstructorAutoreleasePool): New solution to the problem
  9437. of autorelease at static constructor time.
  9438. (getNamedColors): Function that creates this dictionary when needed
  9439. rather than creating it inside an init function.
  9440. (QColor::QColor): Share code with setRgb, get rid of _initialize.
  9441. (hex2int): Return -1 for bad digit rather than 0.
  9442. (decodeColorFromHexColorString): Make more robust and simpler.
  9443. (QColor::setNamedColor): Set color to invalid rather than black when
  9444. the passed in name is empty or unrecognized.
  9445. (QColor::red), (QColor::green), (QColor::blue): Round instead of truncating.
  9446. (QColor::setRgb): Set color to invalid if r, g, or b is out of range.
  9447. (QColor::operator=): Simplify.
  9448. (QColor::operator==): Handle invalid colors correctly.
  9449. (QColor::getNSColor): Return black of invalid colors.
  9450. * kwq/KWQCursor.mm: Simplify cursor globals.
  9451. * kwq/KWQPainter.mm:
  9452. (QPainter::_setColorFromBrush): Use getNSColor() to handle invalid colors correctly.
  9453. (QPainter::_setColorFromPen): Use getNSColor() to handle invalid colors correctly.
  9454. (QPainter::drawLine): Add code to respect style and width and handle endpoints in a
  9455. way that will make the lines look like Qt users expect.
  9456. (QPainter::drawText): Use getNSColor() to handle invalid colors correctly.
  9457. (QPainter::drawUnderlineForText): Use getNSColor() to handle invalid colors correctly.
  9458. (QPainter::fillRect): Use getNSColor() to handle invalid colors correctly.
  9459. * kwq/KWQPen.mm: (QPen::QPen): (QPen::setStyle): Remove use of MPenStyle.
  9460. * kwq/KWQPixmap.mm: (QPixmap::QPixmap): Add comments.
  9461. * kwq/qt/qcolor.h: Simplify ifdefs, remove cname, _initialize, globals_init, and
  9462. initGlobalColors.
  9463. * kwq/qt/qnamespace.h: Remove AlignTop, AlignBottom, SingleLine, ExpandTabs, DontPrint,
  9464. DashDotLine, DashDotDotLine, MPenStyle, WResizeNoRease, WRepaintNoErase, color0, color1,
  9465. darkRed, darkGreen, darkBlue, darkCyan, darkMagenta, darkYellow. Simplify the QColor
  9466. and QCursor globals.
  9467. * kwq/qt/qpen.h: QPainter is no longer a friend class. Remove linest.
  9468. 2002-05-17 Darin Adler <darin@apple.com>
  9469. * khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
  9470. OK. This time it's correct.
  9471. 2002-05-17 Darin Adler <darin@apple.com>
  9472. * khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
  9473. Roll the change out while I see why it causes a crash.
  9474. 2002-05-17 Darin Adler <darin@apple.com>
  9475. * khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
  9476. Remove an old incorrect fix for a style leak in here and put in
  9477. a new correct fix.
  9478. 2002-05-16 Richard J. Williamson <rjw@apple.com>
  9479. Fixed 2896350. Ignore DPI in images and render directly at pixel size.
  9480. * kwq/KWQPainter.mm:
  9481. (QPainter::drawPixmap):
  9482. * kwq/KWQPixmap.mm:
  9483. (QPixmap::QPixmap):
  9484. 2002-05-16 Richard J. Williamson <rjw@apple.com>
  9485. Fixed 2925638. Don't send last progress message from resourceDataDidBecomeAvailable,
  9486. it is sent from IFURLHandleResourceDidFinishLoading, avoiding duplication.
  9487. * kwq/KWQKloader.mm:
  9488. (-[URLLoadClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  9489. 2002-05-15 Richard J. Williamson <rjw@apple.com>
  9490. Alerts, useful for validating that js handlers work.
  9491. Validated that onsubmit is working.
  9492. * kwq/KWQKMessageBox.mm:
  9493. (KMessageBox::error):
  9494. (KMessageBox::warningYesNo):
  9495. (KMessageBox::questionYesNo):
  9496. (KMessageBox::sorry):
  9497. 2002-05-15 Darin Adler <darin@apple.com>
  9498. * kwq/qt/qguardedptr.h: Fix reversed sense of check in isNull. Fixes
  9499. a bug that was causing a lot of DHTML not to work.
  9500. 2002-05-15 Kenneth Kocienda <kocienda@apple.com>
  9501. * kwq/KWQInvisibleButton.h: Changed an #include of Cocoa.h to an #import
  9502. 2002-05-15 Darin Adler <darin@apple.com>
  9503. * kwq/KWQListImpl.mm:
  9504. (KWQListImpl::KWQListPrivate::copyList): Take out unnecessary line of code.
  9505. (KWQListImpl::KWQListPrivate::~KWQListPrivate): Delete the iterator nodes
  9506. also, not just the item nodes. Fixes a storage leak.
  9507. (KWQListIteratorImpl::KWQListIteratorPrivate::KWQListIteratorPrivate):
  9508. Change interface to take a list pointer so we don't rely on the undefined
  9509. behavior of &* on a null pointer.
  9510. (KWQListImpl::addIterator): Set up the prev pointer of the old head of
  9511. the list. This was causing the crash I was debugging.
  9512. (KWQListIteratorImpl::operator=): Simpler implementation.
  9513. 2002-05-14 Richard J. Williamson <rjw@apple.com>
  9514. Added another symbol for stack based event constructor.
  9515. Change to support onLoad.
  9516. * kwq/KWQKHTMLPart.mm:
  9517. (KHTMLPart::end):
  9518. * libwebcore.exp:
  9519. 2002-05-14 Chris Blumenberg <cblu@apple.com>
  9520. Changed slotData to slotData(NSString *encoding, const char *bytes, int length)
  9521. * khtml/khtml_part.h:
  9522. * kwq/KWQKHTMLPart.mm:
  9523. (KHTMLPart::slotData):
  9524. * libwebcore.exp:
  9525. 2002-05-14 Darin Adler <darin@apple.com>
  9526. Fixed 2925291 -- CSS2 test page causes infinite recursion, crash
  9527. * khtml/rendering/render_container.cpp: (RenderContainer::addChild):
  9528. Add code to detect the case of a render object that uses text cell
  9529. style but is not itself a text style, and make sure we don't try to
  9530. nest such an object inside an infinite number of tables.
  9531. 2002-05-14 Darin Adler <darin@apple.com>
  9532. * kwq/KWQListImpl.mm: (KWQListIteratorImpl::KWQListIteratorImpl):
  9533. Add a missing check for a null pointer.
  9534. * kwq/KWQGuardedPtr.mm: (KWQGuardedPtrBase::KWQGuardedPtrBase):
  9535. Remove an unnecessary call to "toFirst", because new iterators
  9536. already default to pointing to the first element of the list.
  9537. 2002-05-13 Darin Adler <darin@apple.com>
  9538. * kwq/KWQListImpl.mm: (KWQListImpl::~KWQListImpl): Detach all the iterators from
  9539. the list when the list is destroyed. I thought this was done before, but it seems not.
  9540. 2002-05-13 Darin Adler <darin@apple.com>
  9541. Fixed bug 2922884 (JavaScript object leak creating Image object from JavaScript).
  9542. There was a reference loop created when a document contained a variable that
  9543. referenced an image, because images held references to the document; the C++
  9544. kind that do not participate in the JavaScript garbage collection.
  9545. * khtml/ecma/kjs_html.h: Use a QGuardedPtr to the DocumentImpl instead of using
  9546. a Document object.
  9547. * khtml/ecma/kjs_html.cpp:
  9548. (Image::tryPut): Change because the "doc" pointer is now a pointer to the
  9549. DocumentImpl, not the Document. Also check for 0, since it's now a QGuardedPtr
  9550. that can become 0.
  9551. (Image::Image): Newly out of line. Changed because the "doc" pointer is now a
  9552. pointer to the DocumentImpl, not the Document.
  9553. Since the solution used QGuardedPtr, I had to implement it.
  9554. * kwq/qt/qguardedptr.h: Put the implementation in a new KWQGuardedPtrBase class,
  9555. with only the bare minimum in a template. This new implementation uses iterators
  9556. on a QPtrList, which means there's not much code needed.
  9557. * kwq/KWQGuardedPtr.mm: (KWQGuardedPtrBase::KWQGuardedPtrBase): Rewrite to use
  9558. a QPtrListIterator to a dummy list in the QObject. This reuses code nicely, but
  9559. a custom-coded solution would be a bit more efficient.
  9560. * kwq/qt/qobject.h:
  9561. * kwq/KWQObject.mm: (QObject::QObject): Create the one-element list that's used
  9562. by the QGuardedPtr instances.
  9563. Since the above code needed to copy a QPtrListIterator, I needed to support that.
  9564. * kwq/qt/qlist.h: Move the iterator's copy constructor out of the private part,
  9565. and implement it. This class was strange in that it has a public assignment
  9566. operator, but a private unimplemented copy constructor. Implementing it was trivial,
  9567. though, so this was no obstacle.
  9568. 2002-05-13 Maciej Stachowiak <mjs@apple.com>
  9569. Removed libjpeg dependency. Turns out we don't need it.
  9570. * Makefile.am: Remove -ljpeg from link line.
  9571. * khtml/misc/loader_jpeg.cpp: Removed.
  9572. * khtml/misc/loader_jpeg.h: Removed.
  9573. * khtml/misc/Makefile.am: Remve loader_jpeg from build.
  9574. 2002-05-10 Richard J. Williamson <rjw@apple.com>
  9575. Made log output match webkit logging.
  9576. * kwq/kwqdebug.mm:
  9577. (KWQLog):
  9578. 2002-05-10 Chris Blumenberg <cblu@apple.com>
  9579. Changed WCIFWebDataSourceMake to wrap around [IFWebDataSource initWithURL: attributes: flags:]
  9580. instead of initWithHandle.
  9581. * kwq/KWQKHTMLPart.mm:
  9582. (KHTMLPart::requestFrame):
  9583. (KHTMLPart::submitForm):
  9584. * kwq/WCWebDataSource.h:
  9585. * libwebcore.exp:
  9586. 2002-05-10 Darin Adler <darin@apple.com>
  9587. * kwq/WebCoreTextRenderer.h:
  9588. 2002-05-09 Richard J. Williamson <rjw@apple.com>
  9589. Added new method to avoid creation of NSString.
  9590. - (void)drawCharacters:(const UniChar *)characters length: (unsigned)length atPoint:(NSPoint)point withColor:(NSColor *)color;
  9591. * kwq/KWQPainter.mm:
  9592. (QPainter::drawText):
  9593. * kwq/WebCoreTextRenderer.h:
  9594. 2002-05-09 Kenneth Kocienda <kocienda@apple.com>
  9595. Fix for this bug:
  9596. Radar 2890624 (need to remove workaround for double free of image data from QPixmap)
  9597. The appropriate, bug-free AppKit code is now available to us on Jaguar.
  9598. Rolling out the workaround.
  9599. * kwq/KWQPixmap.mm:
  9600. (QPixmap::QPixmap)
  9601. === Alexander-3 ===
  9602. 2002-05-07 Darin Adler <darin@apple.com>
  9603. * kwq/KWQFontMetrics.mm: Fixed storage leak by initializing refCount.
  9604. 2002-05-07 Darin Adler <darin@apple.com>
  9605. Move more plugin code into WebKit.
  9606. Stop using IF for anything in WebCore to help make it clear what's part of
  9607. the BSD licensed stuff and what's part of our proprietary stuff.
  9608. * libwebcore.exp: Names of what exported changed.
  9609. * kwq/Makefile.am: Source file names changed.
  9610. * kwq/IFTextRenderer.h: Renamed to WebCoreTextRenderer.
  9611. * kwq/IFTextRendererFactory.h: Renamed to WebCoreTextRendererFactory.
  9612. * kwq/IFTextRendererFactory.m: Renamed to WebCoreTextRendererFactory.
  9613. * kwq/WebCoreTextRenderer.h: Renamed from IFTextRenderer.
  9614. * kwq/WebCoreTextRendererFactory.h: Renamed from IFTextRendererFactory.
  9615. * kwq/WebCoreTextRendererFactory.m: Renamed from IFTextRendererFactory.
  9616. * kwq/KWQFontMetrics.mm:
  9617. * kwq/KWQPainter.mm:
  9618. Updated for IF -> WebCore name change.
  9619. * kwq/WebCoreViewFactory.h: Added.
  9620. * kwq/WebCoreViewFactory.m: Added.
  9621. * kwq/KWQKConfigBase.mm: (KConfig::readEntry): (KConfig::readNumEntry):
  9622. Use the new [WebCoreViewFactory pluginsInfo] so we don't have to have
  9623. the plugin database in WebCore any more.
  9624. * kwq/WCJavaAppletWidget.h:
  9625. * kwq/WCJavaAppletWidget.mm: (IFJavaAppletWidgetCreate):
  9626. * kwq/WCPluginWidget.h:
  9627. * kwq/WCPluginWidget.mm: (IFPluginWidgetCreate):
  9628. Remove creation function machinery, and use the WebCoreViewFactory instead.
  9629. * kwq/WCPlugin.h: Moved to WebKit.
  9630. * kwq/WCPlugin.mm: Moved to WebKit.
  9631. * kwq/WCPluginDatabase.h: Moved to WebKit.
  9632. * kwq/WCPluginDatabase.mm: Moved to WebKit.
  9633. * kwq/npapi.h: Moved to WebKit.
  9634. * kwq/npapi.mm: Moved to WebKit.
  9635. 2002-05-06 Darin Adler <darin@apple.com>
  9636. * WebCorePrefix.h: Added.
  9637. * .cvsignore: Ignore the .pfe files in this directory.
  9638. * khtml/dom/dom_doc.cpp:
  9639. * khtml/dom/dom_text.cpp:
  9640. Added namespace directives as a clean workaround for a conflict
  9641. with the struct named Comment in <Carbon/AIFF.h>
  9642. * kwq/KWQFont.mm:
  9643. * kwq/KWQFontMetrics.mm:
  9644. * kwq/KWQKGlobal.mm:
  9645. * kwq/KWQListImpl.mm:
  9646. * kwq/KWQPtrDictImpl.h:
  9647. * kwq/KWQVectorImpl.mm:
  9648. * kwq/kwqdebug.h:
  9649. * kwq/qt/qcolor.h:
  9650. * kwq/qt/qcombobox.h:
  9651. * kwq/qt/qregion.h:
  9652. * kwq/qt/qstring.h:
  9653. * kwq/qt/qwidget.h:
  9654. Remove old workaround for conflicts with Fixed, Rect, and Boolean.
  9655. It does not good with a precompiled header anyway, and there is a
  9656. more elegant small fix in the KDE code itself.
  9657. * kwq/qt/qpoint.h:
  9658. * kwq/KWQPointArray.mm: (QPointArray::setPoints):
  9659. Work around bug with va_arg and PFE by not using varargs here.
  9660. * kwq/KWQRect.mm: (QRect::unite): (QRect::operator&):
  9661. Use std::min and std::max instead of defining our own MIN and MAX, which
  9662. conflict with something in one of the headers we are precompiling (error
  9663. message did not make it clear which).
  9664. * kwq/KWQView.mm: (-[KWQHTMLView layout]), (-[KWQHTMLView drawRect:]):
  9665. Switch from xNDEBUG to NDEBUG.
  9666. * kwq/Makefile.am: Remove stuff for getting at the header inside the
  9667. ApplicationServices and QD frameworks, since that code is now in WebKit.
  9668. * kwq/kwqdebug.h: Get rid of format attribute because of bug 2920557.
  9669. Switch from xNDEBUG to NDEBUG.
  9670. * kwq/kwqdebug.mm: Switch from xNDEBUG to NDEBUG.
  9671. * kwq/qt/qstring.h: Define QT_VERSION in here instead of on the command
  9672. line to work around a PFE bug with -D, Radar 2921026.
  9673. 2002-05-06 Richard J. Williamson <rjw@apple.com>
  9674. Changes to support dhmtl.
  9675. Changes to support targeting (regression after 3.0 merge).
  9676. * khtml/khtmlview.cpp:
  9677. * kwq/KWQEvent.mm:
  9678. * kwq/KWQKHTMLPart.mm:
  9679. * kwq/KWQObject.mm:
  9680. * kwq/KWQWidget.mm:
  9681. * kwq/qt/qevent.h:
  9682. * kwq/qt/qobject.h:
  9683. * kwq/qt/qwidget.h:
  9684. 2002-05-03 Darin Adler <darin@apple.com>
  9685. * khtml/css/cssstyleselector.cpp:
  9686. * khtml/dom/css_value.cpp:
  9687. * khtml/xml/dom_stringimpl.cpp:
  9688. Put in some namespace-related statements to more-elegantly work around the
  9689. conflicts between Macintosh and khtml identifiers.
  9690. 2002-05-03 Darin Adler <darin@apple.com>
  9691. * kwq/IFTextRenderer.h: Added.
  9692. * kwq/IFTextRendererFactory.h: Added.
  9693. * kwq/IFTextRendererFactory.m: Added.
  9694. These three are the new API for supplying text rendering machinery for WebCore.
  9695. The implementation is in WebKit. Later we might want to flesh out the default
  9696. implementation in WebCore so that it works OK by itself.
  9697. * khtml/rendering/font.cpp: (Font::width): Function is now "width" without
  9698. an underscore. We don't really need to hide the overload we added in this
  9699. case.
  9700. * kwq/qt/qfont.h: Simplify a lot. Doesn't hold an NSFont any more.
  9701. * kwq/KWQFont.mm:
  9702. (QFont::QFont): Eliminated the concept of "default font". Also, a QFont no
  9703. longer holds an NSFont object. That's handled inside IFTextRenderer machinery.
  9704. (QFont::~QFont): Simplify since we don't have an NSFont.
  9705. (QFont::setFamily): Simplify since we don't have an NSFont.
  9706. (QFont::setPixelSize): Simplify since we don't have an NSFont.
  9707. (QFont::setPixelSizeFloat): Simplify since we don't have an NSFont.
  9708. (QFont::setWeight): Simplify since we don't have an NSFont.
  9709. (QFont::weight): Fix a bug where it would return Normal for a QFont that was
  9710. both bold and italic.
  9711. (QFont::setItalic): Simplify since we don't have an NSFont.
  9712. (QFont::italic): Simplify since we have real "bool".
  9713. (QFont::bold): Simplify since we have real "bool".
  9714. (QFont::operator=): Simplify since we don't have an NSFont.
  9715. (QFont::operator==): Rewrite since we don't have an NSFont.
  9716. * kwq/qt/qfontmetrics.h: Simplify a little. The _width() method is now just an
  9717. overload of the width() method. The main change was removing the include of Cocoa.h.
  9718. * kwq/KWQFontMetrics.mm:
  9719. Move most of the code out of here into WebKit.
  9720. (QFontMetrics::ascent): Get it from the renderer.
  9721. (QFontMetrics::descent): Get it from the renderer.
  9722. (QFontMetrics::lineSpacing): Get it from the renderer.
  9723. (QFontMetrics::width): Get it from the renderer.
  9724. (QFontMetrics::boundingRect): Combine width and height that came from the renderer.
  9725. (QFontMetrics::size): Combine width and height that came from the renderer.
  9726. * kwq/Makefile.am: Add IFTextRendererFactory.m, remove KWQTextStorage.mm and KWQTextContainer.mm.
  9727. * kwq/KWQMetrics.h: Removed.
  9728. * kwq/KWQTextContainer.h: Removed.
  9729. * kwq/KWQTextContainer.mm: Removed.
  9730. * kwq/KWQTextStorage.h: Removed.
  9731. * kwq/KWQTextStorage.mm: Removed.
  9732. * kwq/KWQPainter.mm:
  9733. Move most of the code out of here into WebKit.
  9734. (QPainter::drawText): Call the renderer to do it.
  9735. (QPainter::drawUnderlineForText): Call the renderer to do it.
  9736. * libwebcore.exp: Export the IFTextRendererFactory class.
  9737. 2002-04-26 Darin Adler <darin@apple.com>
  9738. * kwq/make-mac-encodings.c: (main): One more place that needed a workaround
  9739. for Radar 2912404 (kCFStringEncodingInvalidId is negative even though
  9740. CFStringEncoding is unsigned).
  9741. * kwq/KWQTextArea.mm: (-[KWQTextArea paragraphs]): Do this
  9742. ourselves so we don't rely on WebFoundation.
  9743. * kwq/Makefile.am: Don't do a -I for WebFoundation.
  9744. 2002-04-26 Darin Adler <darin@apple.com>
  9745. Pay no attention to the man who is not supposed to be working.
  9746. * khtml/Makefile.am:
  9747. * khtml/css/Makefile.am:
  9748. * khtml/ecma/Makefile.am:
  9749. * khtml/html/Makefile.am:
  9750. * khtml/java/Makefile.am:
  9751. * khtml/misc/Makefile.am:
  9752. * khtml/rendering/Makefile.am:
  9753. * khtml/xml/Makefile.am:
  9754. Don't generate empty .moc files or khtmldata.h; there's no reason
  9755. not to just check them in instead. Also tweak a few build rules to
  9756. use automatic make variables.
  9757. * khtml/ecma/kjs_window.moc: Added.
  9758. * khtml/html/html_documentimpl.moc: Added.
  9759. * khtml/html/htmltokenizer.moc: Added.
  9760. * khtml/java/kjavaapplet.moc: Added.
  9761. * khtml/java/kjavaappletcontext.moc: Added.
  9762. * khtml/java/kjavaappletserver.moc: Added.
  9763. * khtml/java/kjavaappletwidget.moc: Added.
  9764. * khtml/java/kjavadownloader.moc: Added.
  9765. * khtml/java/kjavaprocess.moc: Added.
  9766. * khtml/khtmlview.moc: Added.
  9767. * khtml/misc/khtmldata.h: Added.
  9768. * khtml/rendering/render_form.moc: Added.
  9769. * khtml/rendering/render_frames.moc: Added.
  9770. * khtml/rendering/render_replaced.moc: Added.
  9771. * khtml/xml/dom_docimpl.moc: Added.
  9772. * khtml/xml/xml_tokenizer.moc: Added.
  9773. * kwq/kwqdebug.mm: Make some globals private.
  9774. 2002-04-25 Darin Adler <darin@apple.com>
  9775. * kwq/KWQMetrics.h: Add NSObject to required protocols for
  9776. the KWQLayoutFragment protocol so we can retain and release.
  9777. * kwq/KWQTextStorage.mm: (-[KWQTextStorage _buildFragmentForString:]):
  9778. Removed a cast to NSObject * that worked around the lack of the above.
  9779. 2002-04-25 Richard Williamson <rjw@apple.com>
  9780. Little changes in preparation for events.
  9781. * khtml/ecma/kjs_proxy.cpp:
  9782. (KJSProxyImpl::createHTMLEventHandler):
  9783. * kwq/KWQKHTMLPart.mm:
  9784. (KHTMLPart::createHTMLEventListener):
  9785. 2002-04-25 Darin Adler <darin@apple.com>
  9786. Add a workaround for Radar 2912404 (kCFStringEncodingInvalidId is negative even
  9787. though CFStringEncoding is unsigned)
  9788. * kwq/KWQCharsets.mm:
  9789. (KWQCFStringEncodingFromIANACharsetName):
  9790. (KWQCFStringEncodingFromMIB):
  9791. * kwq/KWQtextcodec.mm:
  9792. (QTextCodec::codecForMib):
  9793. (QTextCodec::codecForName):
  9794. * kwq/make-charset-table.pl:
  9795. Add casts to (CFStringEncoding) wherever we use kCFStringEncodingInvalidId.
  9796. 2002-04-25 Darin Adler <darin@apple.com>
  9797. Rework plugin code to prepare to move more of it into WebKit.
  9798. * khtml/rendering/render_applet.cpp:
  9799. (RenderApplet::RenderApplet): Create a widget for the applet using
  9800. the new simpler API.
  9801. * kwq/kdecore/kconfig.h:
  9802. * kwq/KWQKConfigBase.mm: Eliminate KConfigBase.
  9803. Set things up so we are poised to handle the other non-plugin
  9804. config keys easily in the future.
  9805. * kwq/KWQKHTMLPart.mm: (KHTMLPart::requestObject): Use the new simpler
  9806. IFPluginWidgetCreate API instead of the older WCPluginWidget one.
  9807. * kwq/qt/qstring.h: Add simpler conversions to/from NSString.
  9808. * kwq/KWQString.mm: (QString::fromNSString): New.
  9809. * kwq/WCPluginWidget.h: Made this API simpler both for the C++
  9810. side and the Objective-C side. There's now no class, and only one
  9811. function that needs to be supplied (normally by WebKit).
  9812. * kwq/WCJavaAppletWidget.h: Same thing for the Java case.
  9813. * kwq/WCJavaAppletWidget.mm:
  9814. (IFSetJavaAppletViewCreationFunction): New.
  9815. (IFJavaAppletWidgetCreate): New. Most of the code that was in here
  9816. is now moved into WebKit.
  9817. * kwq/WCPluginWidget.mm:
  9818. (IFSetPluginViewCreationFunction): New.
  9819. (IFPluginWidgetCreate): New. Most of the code that was in here
  9820. is now moved into WebKit.
  9821. * libwebcore.exp: Update for new function names.
  9822. 2002-04-24 Chris Blumenberg <cblu@apple.com>
  9823. Renamed [IFWebDataSource frame] to [IFWebDataSource webFrame]
  9824. * kwq/KWQKHTMLPart.mm:
  9825. (KHTMLPart::submitForm):
  9826. (KHTMLPart::khtmlMouseReleaseEvent):
  9827. * kwq/external.h:
  9828. === Alexander 0.3c2 (v1) ===
  9829. 2002-04-24 Darin Adler <darin@apple.com>
  9830. Get rid of all NEED_BOGUS_XXX.
  9831. * khtml/java/Makefile.am: Remove -DNEED_BOGUS_TEXTSTREAMS and
  9832. -DNEED_BOGUS_X_DEFINES.
  9833. * khtml/rendering/Makefile.am: Remove -DNEED_BOGUS_X_DEFINES.
  9834. * khtml/xml/Makefile.am: Remove -DNEED_BOGUS_TEXTSTREAMS.
  9835. * kwq/Makefile.am: Remove -DNEED_BOGUS_X_DEFINES and KWQKJavaEmbed.mm.
  9836. * kwq/KWQKJavaEmbed.mm: Removed.
  9837. * kwq/KWQDef.h: Remove XEvent define (inside NEED_BOGUS_X_DEFINES).
  9838. * kwq/qt/qtextstream.h: Don't look at NEED_BOGUS_TEXTSTREAMS.
  9839. * kwq/KWQtextstream.mm: Don't look at NEED_BOGUS_TEXTSTREAMS.
  9840. * khtml/java/javaembed.h: Made this just a QWidget typedef for now.
  9841. * khtml/java/kjavaappletwidget.cpp: ifdef out the unused setWindow function.
  9842. 2002-04-23 Darin Adler <darin@apple.com>
  9843. * khtml/css/css_valueimpl.cpp:
  9844. (CSSPrimitiveValueImpl::computeLengthFloat):
  9845. * khtml/css/cssstyleselector.cpp:
  9846. (CSSStyleSelector::computeFontSizes):
  9847. Remove our 72/96 dpi changes. They weren't doing much good.
  9848. But this doesn't fix all the 72/96 dpi issues. It's just the start.
  9849. * kwq/khtml/khtml_settings.h:
  9850. * kwq/KWQKHTMLSettings.mm:
  9851. Remove some unused stuff: charset(), setCharset(), availableFamilies(),
  9852. fontSizes(), SCREEN_RESOLUTION.
  9853. 2002-04-23 Kenneth Kocienda <kocienda@apple.com>
  9854. Reviewed by: Darin Adler
  9855. Fix for Radar 2908403 (Fix names in WebFoundation extensions code)
  9856. Extensions code in WebFoundation now is in its own namespace.
  9857. Where we have added categories to existing Foundation and AppKit
  9858. classes, the categories begin with the IF prefix. All method names
  9859. begin with the _IF_ prefix.
  9860. The file here was changed to use the new names.
  9861. * kwq/KWQTextArea.mm:
  9862. (-[KWQTextArea paragraphs])
  9863. 2002-04-23 Kenneth Kocienda <kocienda@apple.com>
  9864. * kwq/KWQPixmap.mm:
  9865. (QPixmap::QPixmap): Fixed unneeded leak of an NSImage in
  9866. the case where we are still covering for a double-release
  9867. bug in AppKit. No need to add insult to injury. :)
  9868. 2002-04-22 Darin Adler <darin@apple.com>
  9869. Fix width of non-breaking spaces. There's code to hack this
  9870. at the KDE level for fonts that don't have non-breaking space
  9871. characters, but we need it even for fonts that do.
  9872. Not sure why this worked better on Puma, but now it's fine on
  9873. both Puma and Jaguar.
  9874. * kwq/KWQFontMetrics.mm:
  9875. (ConvertCharactersToGlyphs): New. Turns non-breaking spaces into
  9876. normal spaces if needed.
  9877. (-[KWQLayoutInfo drawString:atPoint:withFont:color:]),
  9878. (-[KWQLayoutInfo _initializeCaches]), (_rectForString): Change to
  9879. call ConvertCharactersToGlyphs instead of ATSUConvertCharToGlyphs.
  9880. 2002-04-22 Darin Adler <darin@apple.com>
  9881. * kwq/qt/qpixmap.h:
  9882. * kwq/KWQPixmap.mm:
  9883. (QPixmap::QPixmap): Clear needsCopyOnWrite flag in all the
  9884. constructors other than the copy constructor. Set it in the copy
  9885. constructor.
  9886. (QPixmap::~QPixmap): Simplify.
  9887. (QPixmap::mask): Always return 0 rather than leaking a QBitmap each time,
  9888. since Qt uses 0 to mean "no mask".
  9889. (QPixmap::isNull): Simplify.
  9890. (QPixmap::resize): Do the copy here if we need it, and do the setScalesWhenResized:
  9891. call in here instead of trying to do it elsewhere.
  9892. (QPixmap::xForm): Only copy the pixmap once.
  9893. (QPixmap::operator=): Set the needsCopyOnWrite flag. Also change the retain/release
  9894. idiom around so we don't need to check for self-assignment.
  9895. * khtml/ecma/Makefile.am: Don't build kjs_debugwin any more.
  9896. * khtml/ecma/kjs_debugwin.cpp: Removed.
  9897. * khtml/ecma/kjs_debugwin.h: Removed.
  9898. 2002-04-22 Chris Blumenberg <cblu@apple.com>
  9899. Added a new method to WCPluginDatabase allHandledMIMETypes.
  9900. It returns an array of the mime types that plug-ins handle.
  9901. * kwq/WCPluginDatabase.h:
  9902. * kwq/WCPluginDatabase.mm:
  9903. (-[WCPluginDatabase allHandledMIMETypes]):
  9904. 2002-04-20 Darin Adler <darin@apple.com>
  9905. Problems loading iframes seemed to be due to NSURL objects that
  9906. were not normalized, so I made the NSURL creation all be done
  9907. by KURL, which fixed the problem.
  9908. * kwq/KWQKHTMLPart.mm: (KHTMLPart::requestFrame), (KHTMLPart::submitForm),
  9909. (KHTMLPart::khtmlMouseReleaseEvent):
  9910. * kwq/KWQKjobclasses.mm:
  9911. Call getNSURL instead of creating NSURLs by converting to strings.
  9912. * kwq/kdecore/kurl.h:
  9913. * kwq/KWQKURL.mm: (KURL::getNSURL): New.
  9914. 2002-04-19 Kenneth Kocienda <kocienda@apple.com>
  9915. Changes to support submission of forms using HTTP POST.
  9916. These changes move us over to using the new WebKit interface for creating
  9917. WebDataSource instances, one that passes a handle rather than just a URL,
  9918. enabling the specific request method to be communicated to WebFoundation.
  9919. This fixes:
  9920. Radar 2903602 (IFWebDataSource API must passes attributes and flags to IFURLHandle)
  9921. Fixed handling of password fields:
  9922. Radar 2903605 (WebCore form processing drops out password input data)
  9923. Added some hacks to get form <input type=image ...> working correctly:
  9924. Radar 2907198 (Forms not getting submitted correctly when <input type=image>)
  9925. * khtml/rendering/render_form.cpp: (RenderImageButton::RenderImageButton),
  9926. (RenderImageButton::~RenderImageButton), (RenderImageButton::printObject):
  9927. * khtml/rendering/render_form.h:
  9928. * kwq/KWQKHTMLPart.mm: (KHTMLPart::requestFrame), (KHTMLPart::submitForm),
  9929. (KHTMLPart::khtmlMouseReleaseEvent):
  9930. * kwq/KWQNSTextField.mm: (-[KWQNSTextField setPasswordMode:]), (-[KWQNSTextField
  9931. textDidChange:]), (-[KWQNSTextField stringValue]):
  9932. * kwq/Makefile.am:
  9933. * kwq/KWQInvisibleButton.h: Added
  9934. * kwq/KWQInvisibleButton.mm: Added
  9935. 2002-04-18 Darin Adler <darin@apple.com>
  9936. Fixes for compiling with gcc3 and more warnings.
  9937. * khtml/html/.cvsignore: Add kentities.c; I could have sworn I did this
  9938. already.
  9939. * khtml/html/Makefile.am: Remove erroneous duplicate definition of
  9940. CLEAN_FILES.
  9941. * libwebcore.exp:
  9942. * libwebcoretests.exp:
  9943. Rebuilt these lists from scratch. Almost everything in here is different
  9944. since the C++ name mangling rules changed.
  9945. * khtml/css/cssparser.cpp:
  9946. * khtml/misc/htmlhashes.cpp:
  9947. Disable inlining in part of this file as a workaround for Radar 2905890.
  9948. * kwq/KWQApplication.mm: (QDesktopWidget::screenGeometry):
  9949. Add casts to int needed to make gcc3 happy.
  9950. * kwq/KWQArrayImpl.mm: Add missing #include of <string.h>.
  9951. * kwq/KWQBitmap.mm:
  9952. * kwq/KWQFrame.mm:
  9953. * kwq/KWQLineEdit.mm:
  9954. Removed some unused copy constructors and assignment operators to avoid
  9955. warnings in them.
  9956. * kwq/KWQButton.mm: (QButton::setText):
  9957. * kwq/KWQListBox.mm: (QListBox::~QListBox), (QListBox::clear),
  9958. (QListBox::setSelectionMode), (QListBox::currentItem), (QListBox::insertItem),
  9959. (QListBox::setSelected), (QListBox::isSelected), (QListBoxItem::width),
  9960. (QListBoxItem::height):
  9961. * kwq/KWQScrollView.mm: (QScrollView::setContentsPos), (QScrollView::addChild),
  9962. (QScrollView::resizeContents), (QScrollView::viewportToContents),
  9963. Use local variables to work around Radar 2905835.
  9964. * kwq/KWQCString.mm: (operator<<):
  9965. * kwq/KWQPoint.mm: (operator<<):
  9966. * kwq/KWQRect.mm: (operator<<):
  9967. * kwq/KWQSize.mm: (operator<<):
  9968. * kwq/qt/qarray.h:
  9969. * kwq/qt/qcstring.h:
  9970. * kwq/qt/qdatetime.h:
  9971. * kwq/qt/qdict.h:
  9972. * kwq/qt/qlist.h:
  9973. * kwq/qt/qmap.h:
  9974. * kwq/qt/qpainter.h:
  9975. * kwq/qt/qpoint.h:
  9976. * kwq/qt/qptrdict.h:
  9977. * kwq/qt/qrect.h:
  9978. * kwq/qt/qsize.h:
  9979. * kwq/qt/qstack.h:
  9980. * kwq/qt/qvaluelist.h:
  9981. * kwq/qt/qvector.h:
  9982. Say std::ostream instead of just ostream.
  9983. * kwq/KWQCharsets.mm: Fix a const problem.
  9984. * kwq/KWQDateTime.mm: (QTime::elapsed), (QTime::restart): Use int instead
  9985. of uint, since these functions try to handle values that are less than 0.
  9986. (operator<<): Say std::ostream instead of just ostream.
  9987. * kwq/KWQTextArea.mm: (RangeOfParagraph): Fix an int/uint issue.
  9988. * kwq/KWQFile.mm: (QFile::KWQFilePrivate::KWQFilePrivate),
  9989. (QFile::KWQFilePrivate::~KWQFilePrivate): Use new/delete instead of
  9990. malloc/free so we don't get void * warnings.
  9991. * kwq/KWQFontMetrics.mm: (__IFFillStyleWithAttributes),
  9992. (-[KWQLayoutInfo drawString:atPoint:withFont:color:]),
  9993. (-[KWQLayoutInfo _initializeCaches]),
  9994. (_rectForString):
  9995. * kwq/KWQKURL.mm: (KURL::KWQKURLPrivate::KWQKURLPrivate),
  9996. (RelativeURLKeyRetainCallBack), (RelativeURLKeyReleaseCallBack),
  9997. (RelativeURLKeyEqualCallBack), (RelativeURLKeyHashCallBack),
  9998. (KURL::normalizeURLString), (KURL::normalizeRelativeURLString):
  9999. * kwq/KWQPainter.mm: (QPainter::save):
  10000. * kwq/KWQKloader.mm:
  10001. (-[URLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]),
  10002. (-[URLLoadClient IFURLHandle:didRedirectToURL:]):
  10003. Add type casts where necessary to make the stricter gcc3 happy.
  10004. * kwq/KWQPixmap.mm: (QPixmap::QPixmap): Explicitly initialize the underlying
  10005. QPaintDevice.
  10006. (QPixmap::size), (QPixmap::rect): Add type casts where necessary to make
  10007. the stricter gcc3 happy.
  10008. * kwq/KWQPtrDictImpl.mm: (KWQPtrDictImpl::KWQPtrDictPrivate::KWQPtrDictPrivate):
  10009. Say std::bad_alloc instead of just bad_alloc.
  10010. (invokeDeleteFuncOnValue), (KWQPtrDictImpl::clear): Pass a pointer to a function
  10011. pointer rather than a function pointer to avoid a warning about turning function
  10012. pointers into void *.
  10013. * kwq/KWQRegion.mm: (QRegion::_initialize), (QRegion::~QRegion): Use new/delete
  10014. rather than calloc/free so we don't get void * warnings.
  10015. (QRegion::boundingRect): Add type casts.
  10016. * kwq/KWQString.mm: (QString::fromStringWithEncoding): Add cast.
  10017. (QString::setNum): use %ld and %lu rather than %D and %U.
  10018. (QString::fill), (QString::convertToQCString): Add casts.
  10019. * kwq/KWQTextStorage.mm: (-[KWQTextStorage _buildFragmentForString:]):
  10020. Add a cast to make gcc3 happy.
  10021. * kwq/KWQVariant.mm: Say "friend class" instead of "friend".
  10022. * kwq/KWQVectorImpl.mm: (KWQVectorImpl::KWQVectorPrivate::KWQVectorPrivate):
  10023. Say std::bad_alloc instead of just bad_alloc.
  10024. (KWQVectorImpl::data): Replace the old autorelease trick with a new one that
  10025. doesn't require mixing malloc with NSData.
  10026. * kwq/KWQView.mm: (-[KWQHTMLView mouseUp:]), (-[KWQHTMLView mouseDown:]):
  10027. Add casts to make gcc3 happy.
  10028. * kwq/KWQWidget.mm: (QWidget::frameGeometry), (QWidget::mapToGlobal),
  10029. (QWidget::minimumSizeHint): Add casts to make gcc3 happy. Also another
  10030. workaround for Radar 2905835.
  10031. * kwq/WCPlugin.mm: (-[WCPlugin load]): Add tons of type casts so we don't have
  10032. to mix void * with function pointer types.
  10033. * kwq/WCPluginWidget.h:
  10034. * kwq/WCPluginWidget.mm: (WCIFPluginMakeFunction), (WCIFNullPluginMakeFunction):
  10035. Change types so we don't have to mix void * with function pointer types.
  10036. This caught a mistake where WCIFNullPluginMakeFunction was returning the wrong
  10037. function pointer.
  10038. * kwq/external.h: Add some missing interfaces that the pickier gcc3 needed to see.
  10039. * kwq/kwqdebug.mm: Don't compile the file if xNDEBUG is set. Otherwise we get
  10040. a warning in here.
  10041. * kwq/npapi.h: Use function pointer types for function pointers and transition
  10042. vectors so we don't have to mix void * with function pointer types.
  10043. * kwq/npapi.mm: (NPN_GetURLNotify), (NPN_GetURL),
  10044. (NPN_PostURLNotify), (NPN_PostURL), (NPN_NewStream), (NPN_Write),
  10045. (NPN_DestroyStream), (NPN_Status), (NPN_GetValue), (NPN_SetValue),
  10046. (NPN_InvalidateRect), (NPN_InvalidateRegion), (NPN_ForceRedraw):
  10047. Use local variables to work around Radar 2905835.
  10048. (functionPointerForTVector), (tVectorForFunctionPointer):
  10049. Change types around so we don't have to mix void * with function pointer types.
  10050. 2002-04-17 Darin Adler <darin@apple.com>
  10051. Fix some std:: things as a first step in compiling with gcc 3.
  10052. These fixes are all needed to compile WebBrowser with gcc 3.
  10053. * kwq/qt/qarray.h:
  10054. * kwq/qt/qcstring.h:
  10055. * kwq/qt/qlist.h:
  10056. * kwq/qt/qmap.h:
  10057. * kwq/qt/qpainter.h:
  10058. * kwq/qt/qpoint.h:
  10059. * kwq/qt/qrect.h:
  10060. * kwq/qt/qsize.h:
  10061. * kwq/qt/qvaluelist.h:
  10062. Call it std::ostream instead of ostream.
  10063. 2002-04-17 Darin Adler <darin@apple.com>
  10064. Fix build problem.
  10065. * Makefile.am: Don't build this directory before subdirs, because
  10066. we link at this level. Move the kentities.c build out of here,
  10067. because it needs to be done before khtml/html.
  10068. * khtml/html/Makefile.am: Move kentities.c build rules here.
  10069. * kentities.gperf: Removed.
  10070. * khtml/html/kentities.gperf: Added.
  10071. * .cvsignore: Don't ignore kentities.c.
  10072. * khtml/html/.cvsignore: Ignore kentities.c.
  10073. 2002-04-17 Darin Adler <darin@apple.com>
  10074. * .cvsignore: Ignore new generated files at this level.
  10075. * include/ *: Removed. We don't need this hack any more.
  10076. * src/ *: Removed. Sources are now in their new locations.
  10077. * src/libwebcore.exp: Removed. This is now in its new location.
  10078. * src/libwebcoretests.exp: Removed. This is now in its new location.
  10079. * Makefile.am: Build khtml and kwq subdirs, don't build src and include.
  10080. Also add the rules that used to be in src about linking the library and
  10081. the rules that used to be in src/kdelibs/kdecore about building the
  10082. kentitices.c file.
  10083. * dummy.mm: Moved here from src by hand.
  10084. * kentities.gperf: Moved here from src/kdelibs/kdecore by hand.
  10085. * khtml/html/Makefile.am: Add WebCore directory to includes so the
  10086. include of "kentities.c" will work.
  10087. * kwq/KWQKHTMLPart.mm:
  10088. * kwq/KWQKJavaEmbed.mm:
  10089. * kwq/KWQKloader.mm:
  10090. Correct includes so we don't need a -I for each of the subdirectories.
  10091. * kwq/khtml/java/javaembed.h: Removed. We use the one in the real
  10092. khtml directory.
  10093. * kwq/kwqdebug.h: Rolled over Chris's changes, which were done after
  10094. the cvs surgery was done.
  10095. 2002-04-17 Chris Blumenberg <cblu@apple.com>
  10096. Added a debug bit mask for plugins and downloads.
  10097. * src/kwq/kwqdebug.h:
  10098. 2002-04-16 Darin Adler <darin@apple.com>
  10099. * src/kdelibs/khtml/khtml_part.cpp: Added. Not used yet, but maybe we'll use
  10100. part of it some time soon.
  10101. * src/kdelibs/khtml/khtml_part.h: Reenabled this file, and made changes so it
  10102. could be used instead of our own header.
  10103. * src/kwq/KWQKHTMLPart.h: Removed.
  10104. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::KHTMLPart): Add parameter to match KDE.
  10105. (KHTMLPart::settings): Add const to match KDE.
  10106. (KHTMLPart::scheduleRedirection): Add parameter to match KDE.
  10107. (KHTMLPart::encoding): Add const to match KDE.
  10108. (KHTMLPart::urlCursor): Update return value to match KDE.
  10109. (KHTMLPart::urlSelected): Add parameter to match KDE.
  10110. (KHTMLPart::requestObject): Put plugins array on private object.
  10111. (KHTMLPart::frames): Remove const to match KDE.
  10112. (KHTMLPart::documentSource): Add const to match KDE.
  10113. (KHTMLPart::setTitle): Put dataSource on private object.
  10114. (KHTMLPart::setDataSource): New, not inline any more.
  10115. (KHTMLPart::getDataSource): New, not inline any more.
  10116. * src/libwebcore.exp: Update for function name changes.
  10117. * src/kwq/khtml/khtml_settings.h:
  10118. * src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::changeCursor): Add const.
  10119. * src/kwq/KWQView.mm: (-[KWQHTMLView layout]): No need to check xmlDocImpl()
  10120. and renderer() for NULL now, because KHTMLView::layout does.
  10121. * src/kwq/KWQKloader.mm: (Loader::load): Use type instead of id.
  10122. 2002-04-16 Darin Adler <darin@apple.com>
  10123. * src/kwq/kio/jobclasses.h:
  10124. * src/kwq/KWQKjobclasses.mm: (TransferJob::setError): New.
  10125. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandleResourceDidCancelLoading:]),
  10126. (-[URLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  10127. Set an error code so that the load will abort intead of continuing.
  10128. * src/kwq/KWQKHTMLPart.mm: Removed some unused code.
  10129. 2002-04-16 Kenneth Kocienda <kocienda@apple.com>
  10130. Moved IFError class from WebKit to WebFoundation.
  10131. Updated URL handle client interface to pass an IFError in
  10132. an error callback rather than a plain int. These files were
  10133. modified due to this change.
  10134. * src/kwq/KWQKHTMLPart.mm: (WCSetIFWebDataSourceMakeFunc):
  10135. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  10136. IFURLHandle:resourceDidFailLoadingWithResult:]):
  10137. Removed now unneeded file and function pointer symbol entry
  10138. since WebCore code never needs to create an IFError now that
  10139. those objects are created at a lower level (in WebFoundation).
  10140. * src/kwq/WCError.h: Removed.
  10141. * src/libwebcore.exp:
  10142. 2002-04-15 Darin Adler <darin@apple.com>
  10143. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
  10144. Remove some minor gratuitous diffs vs. KDE.
  10145. 2002-04-15 Richard Williamson <rjw@apple.com>
  10146. Updated to reflect changes in KDE.
  10147. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
  10148. 2002-04-15 Darin Adler <darin@apple.com>
  10149. * src/kdelibs/khtml/css/css_valueimpl.cpp:
  10150. (FontFamilyValueImpl::FontFamilyValueImpl): Fix comment.
  10151. * src/kdelibs/khtml/css/cssstyleselector.cpp: Remove some gratuitous diffs vs. KDE.
  10152. * src/kdelibs/khtml/html/html_objectimpl.cpp:
  10153. (HTMLEmbedElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days.
  10154. * src/kdelibs/khtml/html/html_tableimpl.cpp:
  10155. (HTMLTableElementImpl::parseAttribute),
  10156. (HTMLTablePartElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days.
  10157. * src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::processToken): Redo the
  10158. APPLE_CHANGES ifdef here.
  10159. * src/kdelibs/khtml/khtmlpart_p.h: Update to latest kde.
  10160. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::KHTMLView): Add ifdef APPLE_CHANGES.
  10161. (KHTMLView::~KHTMLView): Add ifdef APPLE_CHANGES.
  10162. (KHTMLView::print): Remove code left in here during merge process.
  10163. * src/kwq/KWQKHTMLPart.mm: Remove unused setFontSizes(), fontSizes(), and
  10164. resetFontSizes(). After the merge is landed, remove more.
  10165. * src/libwebcore.exp: Export updateStyleSelector() for WebKit.
  10166. 2002-04-15 Darin Adler <darin@apple.com>
  10167. Fix text to it displays at the right font size.
  10168. * src/kdelibs/khtml/css/cssstyleselector.cpp:
  10169. (CSSStyleSelector::computeFontSizes): Apply the same SCREEN_RESOLUTION hack here
  10170. that we do elsewhere.
  10171. * src/kdelibs/khtml/rendering/font.cpp: (Font::width): Use kMin instead of max (oops).
  10172. (Font::update): Turn off font database chicanery.
  10173. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::zoomFactor): Use zoom factor 100, not 1.
  10174. 2002-04-15 Darin Adler <darin@apple.com>
  10175. More fixes so text displays (still at wrong font size).
  10176. * src/kdelibs/khtml/rendering/font.cpp: (max): New helper.
  10177. (Font::drawText): Simplified implementation for now.
  10178. (Font::width): Simplified implementation for now.
  10179. * src/kwq/KWQColorGroup.mm: Reinstated QCOLOR_GROUP_SIZE.
  10180. * src/kwq/qt/qfontmetrics.h: Removed charWidth and changed _width to take QChar *.
  10181. * src/kwq/KWQFontMetrics.mm: Removed charWidth and changed _width to take QChar *.
  10182. 2002-04-15 Darin Adler <darin@apple.com>
  10183. Merged changes from KDE 3.0 final. Other fixes to get things compiling.
  10184. * src/kdelibs/khtml/css/css_valueimpl.cpp:
  10185. (CSSStyleDeclarationImpl::setProperty): Fix unused variable.
  10186. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::contentsContextMenuEvent):
  10187. Fix unused variable.
  10188. * src/kdelibs/khtml/rendering/font.cpp: (Font::drawText), (Font::width),
  10189. (Font::update): Disable special "nsbp" logic for now. We can reenable it
  10190. if necessary.
  10191. * src/kdelibs/khtml/rendering/render_replaced.cpp: Fix mismerge.
  10192. * src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::nodeAtPoint):
  10193. Fix unused variable.
  10194. * src/kwq/KWQApplication.mm: (QDesktopWidget::width), (QApplication::desktop):
  10195. Fix mismerge.
  10196. * src/kwq/KWQColorGroup.mm: Fix QCOLOR_GROUP_SIZE.
  10197. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::lineSpacing): New.
  10198. (QFontMetrics::width): Remove unused optimization.
  10199. * src/kwq/qt/qfontmetrics.h: Add lineSpacing().
  10200. 2002-04-15 Darin Adler <darin@apple.com>
  10201. Merged changes from previous merge pass.
  10202. 2002-03-25 Darin Adler <darin@apple.com>
  10203. Last bit of making stuff compile and link. Probably will drop the merge now
  10204. and take it up again when it's time to merge in KDE 3.0 final.
  10205. * src/kwq/KWQEvent.mm: (QFocusEvent::reason): New.
  10206. * src/kwq/KWQPainter.mm: (QPainter::drawText): New overload.
  10207. 2002-03-25 Darin Adler <darin@apple.com>
  10208. * src/kdelibs/khtml/rendering/font.cpp: (Font::width): Make it call _width so we
  10209. don't lose the optimization.
  10210. * src/kwq/KWQApplication.mm: (QDesktopWidget::screenNumber): New.
  10211. (QDesktopWidget::screenGeometry): New.
  10212. (QApplication::style): New.
  10213. * src/kwq/KWQColorGroup.mm: (QColorGroup::highlight): New.
  10214. (QColorGroup::highlightedText): New.
  10215. * src/kwq/KWQFont.mm: (QFont::setPixelSize): New.
  10216. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::charWidth): New.
  10217. * src/kwq/KWQKGlobal.mm: (KGlobal::locale): Implement.
  10218. (KLocale::KLocale): New.
  10219. (KLocale::languageList): New.
  10220. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::sheetUsed): New.
  10221. (KHTMLPart::setSheetUsed): New.
  10222. (KHTMLPart::zoomFactor): New.
  10223. * src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::mediumFontSize): New.
  10224. * src/kwq/KWQScrollView.mm: (QScrollView::childX): New.
  10225. (QScrollView::childY): New.
  10226. * src/kwq/qt/qapplication.h: style() returns a QStyle &.
  10227. * src/kwq/qt/qpalette.h: Add Highlight and HighlightedText.
  10228. 2002-03-24 Darin Adler <darin@apple.com>
  10229. More compiling. Still won't link.
  10230. * src/kdelibs/khtml/khtmlview.cpp: Disable printing and drag and drop code.
  10231. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
  10232. Temporarily turn off our smarter underlining since it relies on access to the
  10233. string, and TextSlave doesn't have that any more.
  10234. (RenderText::nodeAtPoint): Get rid of a workaround we don't need any more for
  10235. a bug that was fixed by KDE folks.
  10236. * src/kwq/KWQApplication.mm: (QApplication::desktop): Make the desktop be a
  10237. QDesktopWidget.
  10238. * src/kwq/qt/qnamespace.h: Add MetaButton.
  10239. * src/kwq/qt/qtooltip.h: Add a maybeTip virtual function member and a virtual
  10240. destructor.
  10241. 2002-03-24 Darin Adler <darin@apple.com>
  10242. Some fixes to get more stuff to compile.
  10243. * src/kdelibs/khtml/ecma/kjs_dom.cpp: (DOMDocument::getValueProperty):
  10244. Don't try to look at the private m_bComplete to display "complete". Just do
  10245. "loading" and "loaded".
  10246. * src/kdelibs/khtml/khtmlpart_p.h: #ifdef this all out for APPLE_CHANGES.
  10247. * src/kdelibs/khtml/rendering/font.cpp: (Font::update): Add an explicit cast to
  10248. int to avoid float -> int warning.
  10249. * src/kdelibs/khtml/rendering/render_table.cpp: (RenderTable::calcColMinMax):
  10250. Add an explicit cast to int to avoid uint compared with int warning.
  10251. * src/kdelibs/khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyleSelector):
  10252. Use sheetUsed() and setSheetUsed() functions on KHTMLPart intead of getting
  10253. at private fields the way the real KDE code does.
  10254. * src/kwq/KWQKHTMLPart.h: Declare zoomFactor(), sheetUsed(), and setSheetUsed().
  10255. * src/kwq/KWQStyle.h: Add PM_DefaultFramWidth as another metric.
  10256. * src/kwq/kdecore/klocale.h: Add languageList().
  10257. * src/kwq/khtml/khtml_settings.h: Add mediumFontSize().
  10258. * src/kwq/qt/qapplication.h: Add style() and QDesktopWidget.
  10259. * src/kwq/qt/qevent.h: Add reason().
  10260. * src/kwq/qt/qfont.h: Add setPixelSize(int).
  10261. * src/kwq/qt/qfontmetrics.h: Add charWidth() and _charWidth() functions.
  10262. * src/kwq/qt/qpainter.h: Add drawText() overload with position parameter.
  10263. * src/kwq/qt/qpalette.h: Add highlight() and highlightedText().
  10264. * src/kwq/qt/qscrollview.h: Add childX() and childY().
  10265. * src/kwq/KWQApplication.mm: Change KWQDesktopWidget to QDesktopWidget.
  10266. 2002-04-11 Chris Blumenberg <set EMAIL_ADDRESS environment variable>
  10267. Added a symbol for WCPluginDatabase.
  10268. * src/libwebcore.exp:
  10269. 2002-04-08 Maciej Stachowiak <mjs@apple.com>
  10270. Fix Radar 2896001 (crashes in KURL):
  10271. * src/kwq/KWQKURL.mm: (KURL::KWQKURLPrivate::KWQKURLPrivate):
  10272. Initialize refCount to 0 in the copy constructor.
  10273. 2002-04-08 Chris Blumenberg <cblu@apple.com>
  10274. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::requestObject):
  10275. * src/kwq/WCPluginWidget.h:
  10276. * src/kwq/WCPluginWidget.mm: (WCPluginWidget::WCPluginWidget):
  10277. Support new stream requests from plug-ins that are relative URL's.
  10278. 2002-04-05 Chris Blumenberg <cblu@apple.com>
  10279. * src/libwebcore.exp:
  10280. Added symbol for IFNullPluginView
  10281. 2002-04-05 Richard Williamson <rjw@apple.com>
  10282. Various scrolling, hit detection, and goto anchor fixes to account for frames being
  10283. translated in scroll views.
  10284. * src/kwq/KWQScrollView.mm: (QScrollView::setContentsPos),
  10285. (QScrollView::viewportToContents):
  10286. 2002-04-05 Chris Blumenberg <cblu@apple.com>
  10287. * src/kwq/WCPluginWidget.h:
  10288. * src/kwq/WCPluginWidget.mm: (WCSetIFNullPluginMakeFunc),
  10289. (WCPluginWidget::WCPluginWidget), (WCIFPluginMakeFunction),
  10290. (WCIFNullPluginMakeFunction):
  10291. An IFNullPluginView is now created when no plug-in for a requested
  10292. mime type is found. IFNullPluginView displays a null plug-in icon
  10293. and will eventually report this error to the WebController.
  10294. 2002-04-05 Richard Williamson <rjw@apple.com>
  10295. Hacks to support:
  10296. 1. Not loading a document when a link is to an anchor on same page.
  10297. 2. Correctly targeting frames.
  10298. Our documentation is actually useable now.
  10299. * src/kwq/KWQKHTMLPart.mm: (splitUrlTarget), (KHTMLPart::khtmlMouseReleaseEvent):
  10300. * src/kwq/external.h:
  10301. 2002-04-05 Darin Adler <darin@apple.com>
  10302. * src/kwq/KWQKloader.mm:
  10303. (-[URLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  10304. Use contentLengthReceived rather than getting the length of
  10305. availableResourceData to determine how much data has arrived.
  10306. 2002-04-05 Richard Williamson <rjw@apple.com>
  10307. More bulletproofing to deal with cleanup during deallocation.
  10308. * src/kdelibs/khtml/html/htmlparser.cpp: (KHTMLParser::popOneBlock):
  10309. * src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::processToken):
  10310. 2002-04-05 Maciej Stachowiak <mjs@apple.com>
  10311. * src/kwq/qt/qmap.h (QMapNode::~QMapNode): Cast left() and right()
  10312. to the right type to fix a leak detected by the automated leak
  10313. checking on Jersey.
  10314. 2002-04-04 Richard Williamson <rjw@apple.com>
  10315. Extra bulletproofing to prevent script execution when in partially
  10316. dealloced state.
  10317. * src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::scriptExecution):
  10318. 2002-04-04 Chris Blumenberg <cblu@apple.com>
  10319. * src/kwq/WCPlugin.mm: (-[WCPlugin load]):
  10320. * src/kwq/npapi.h:
  10321. * src/kwq/npapi.mm: (NPN_GetJavaEnv), (NPN_GetJavaPeer):
  10322. Added stubs for NPN_GetJavaEnv and NPN_GetJavaPeer. This fixes a flash crasher.
  10323. 2002-04-04 Chris Blumenberg <cblu@apple.com>
  10324. * src/kdelibs/khtml/rendering/render_frames.cpp:
  10325. (RenderPartObject::updateWidget):
  10326. * src/kwq/WCPluginWidget.mm: (WCPluginWidget::WCPluginWidget):
  10327. Moved the removal of __KHTML__ EMBED to attributes WCPluginWidget. One less APPLE_CHANGES.
  10328. 2002-04-04 Darin Adler <darin@apple.com>
  10329. Redo clobbered fixes for problems that show up only when xNDEBUG is set
  10330. * src/kwq/KWQApplication.mm: (QApplication::sendEvent):
  10331. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandleResourceDidBeginLoading:]):
  10332. Remove or ifdef otherwise-unused variables.
  10333. * src/kwq/KWQFontMetrics.mm: (_rectForString):
  10334. Add missing semicolons.
  10335. 2002-04-04 Darin Adler <darin@apple.com>
  10336. * src/kwq/KWQString.mm: (QString::unicode), (QString::latin1),
  10337. (QString::convertToQCString): Remove some excessive logging that
  10338. was getting in the way of important log messages.
  10339. 2002-04-03 Richard Williamson <rjw@apple.com>
  10340. Added support for finalURL in data source.
  10341. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandle:didRedirectToURL:]):
  10342. * src/kwq/external.h:
  10343. 2002-04-03 Darin Adler <darin@apple.com>
  10344. * src/Makefile.am: Concatenate libwebcore.exp and libwebcoretests.exp.
  10345. * src/libwebcore.exp: Update with exports that are needed when inlining is
  10346. turned off.
  10347. * src/libwebcoretests.exp: Added. Exports that we need to run the test in the
  10348. Tests directory.
  10349. * .cvsignore: Ignore the concatenated file.
  10350. 2002-04-03 Darin Adler <darin@apple.com>
  10351. * src/Makefile.am: Don't strip at all if STRIP_FLAGS are empty.
  10352. * src/kwq/qt/qtextcodec.h: Remove stray undef.
  10353. 2002-04-03 Kenneth Kocienda <kocienda@apple.com>
  10354. Updated debugging log messages to use new varargs macros.
  10355. * src/kwq/KWQApplication.mm: (QApplication::sendEvent),
  10356. (QApplication::_initialize):
  10357. * src/kwq/KWQColor.mm: (QColor::setNamedColor):
  10358. * src/kwq/KWQComboBox.mm: (QComboBox::setCurrentItem):
  10359. * src/kwq/KWQFont.mm: (QFont::getFont):
  10360. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutInfo _initializeCaches]),
  10361. (_rectForString):
  10362. * src/kwq/KWQKHTMLPart.mm: (recursive), (KHTMLPart::write), (KHTMLPart::end),
  10363. (KHTMLPart::nodeActivated):
  10364. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandleResourceDidBeginLoading:]),
  10365. (-[URLLoadClient IFURLHandleResourceDidCancelLoading:]), (-[URLLoadClient
  10366. IFURLHandleResourceDidFinishLoading:data:]), (-[URLLoadClient
  10367. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[URLLoadClient
  10368. IFURLHandle:resourceDidFailLoadingWithResult:]), (-[URLLoadClient
  10369. IFURLHandle:didRedirectToURL:]), (Loader::servePendingRequests):
  10370. * src/kwq/KWQObject.mm: (QObject::connect), (QObject::performAction):
  10371. * src/kwq/KWQScrollView.mm: (QScrollView::addChild),
  10372. (QScrollView::resizeContents), (QScrollView::updateContents),
  10373. (QScrollView::repaintContents):
  10374. * src/kwq/KWQString.mm: (QString::unicode), (QString::latin1):
  10375. * src/kwq/KWQView.mm: (-[KWQHTMLView notificationReceived:]), (-[KWQHTMLView
  10376. layout]), (-[KWQHTMLView drawRect:]), (-[KWQHTMLView resetView]), (-[KWQHTMLView
  10377. mouseDragged:]):
  10378. * src/kwq/KWQWidget.mm: (QWidget::resize), (QWidget::move):
  10379. * src/kwq/WCPlugin.mm: (-[WCPlugin initializeWithPath:]), (-[WCPlugin load]):
  10380. * src/kwq/WCPluginDatabase.mm: (findPlugins):
  10381. * src/kwq/kwqdebug.h:
  10382. * src/kwq/kwqdebug.mm: (timestamp), (KWQLog):
  10383. 2002-04-03 Darin Adler <darin@apple.com>
  10384. Fix problems that show up only when xNDEBUG is set.
  10385. * src/kwq/KWQApplication.mm: (QApplication::sendEvent):
  10386. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandleResourceDidBeginLoading:]):
  10387. * src/kwq/KWQView.mm: (-[KWQHTMLView layout]), (-[KWQHTMLView drawRect:]):
  10388. Remove or ifdef otherwise-unused variables.
  10389. * src/kwq/KWQFontMetrics.mm: (_rectForString):
  10390. * src/kwq/KWQPainter.mm: (QPainter::setRasterOp), (QPainter::translate),
  10391. (QPainter::scale):
  10392. Add missing semicolons.
  10393. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::begin):
  10394. Fix an ifdef.
  10395. 2002-04-03 Darin Adler <darin@apple.com>
  10396. * src/Makefile.am: Use nmedit and strip to remove the symbols
  10397. we don't want to export.
  10398. * src/libwebcore.exp: Added. List of symbols exported.
  10399. 2002-04-03 Maciej Stachowiak <mjs@apple.com>
  10400. * src/Makefile.am: Pave the way for cutting down the exports
  10401. list. Also, make the embed target when installing libwebcore.
  10402. 2002-04-03 Maciej Stachowiak <mjs@apple.com>
  10403. Fixed Radar 2893361 (Two frames with same name cause memory
  10404. trasher (likely double-free)) by implementing the mechanism KDE
  10405. uses to guarantee unique frame names.
  10406. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::frameExists): Actually
  10407. implement this, so that the khtml code can guarantee unique frame
  10408. names on each page.
  10409. * src/kwq/external.h: Prototype IFWebDataSource's frameExists:
  10410. method here.
  10411. 2002-04-03 Maciej Stachowiak <mjs@apple.com>
  10412. Fixed Radar 2893298 (KURL rejects spaces and other illegal but
  10413. unambiguous characters, leading to load failures).
  10414. * src/kwq/KWQKURL.mm: (KURL::KWQKURLPrivate::makeRef,
  10415. KURL::normalizeRelativeURLString): Escape forbidden characters
  10416. (ones that are never legal in a URL), except '#' (since that can
  10417. start a fragment identifier) and '%'
  10418. (since that can be the start of a valid escape sequence).
  10419. (KURL::KWQKURLPrivate::KWQKURLPrivate,
  10420. KURL::KWQKURLPrivate::compose): out of paranoia, make sure urlRef
  10421. is set to NULL if not a valid value.
  10422. 2002-04-03 Maciej Stachowiak <mjs@apple.com>
  10423. * src/kwq/kwqdebug.mm: (KWQGetLogLevel): Allocate and release
  10424. NSScanner instead of using an autoreleased one, to fix Jersey
  10425. redness whereby the regression tests leak.
  10426. 2002-04-02 Darin Adler <darin@apple.com>
  10427. * src/kwq/kwqdebug.h: Turn off logging when xNDEBUG is defined.
  10428. Remove unused stuff. Add checking for printf parameters.
  10429. * src/kwq/kwqdebug.mm: Remove unused variants.
  10430. * src/kwq/KWQApplication.mm:
  10431. * src/kwq/KWQKGlobal.mm:
  10432. * src/kwq/KWQKloader.mm:
  10433. * src/kwq/KWQObject.mm:
  10434. * src/kwq/KWQString.mm:
  10435. * src/kwq/KWQToolTip.mm:
  10436. * src/kwq/KWQWidget.mm:
  10437. * src/kwq/WCPlugin.mm:
  10438. * src/kwq/WCPluginDatabase.mm:
  10439. * src/kwq/npapi.mm:
  10440. Fix types in log statements caught by the compiler.
  10441. 2002-04-02 Richard Williamson <rjw@apple.com>
  10442. Fixed a fix, shoulda' been a #ifndef to exclude unnecessary code.
  10443. * src/kdelibs/khtml/rendering/render_replaced.cpp: (RenderWidget::detach):
  10444. 2002-04-02 Richard Williamson <rjw@apple.com>
  10445. More noisy bulletproofing. Still need to find source of problem.
  10446. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::~KHTMLPart), (KHTMLPart::slotData),
  10447. (KHTMLPart::write), (KHTMLPart::end):
  10448. 2002-04-02 Darin Adler <darin@apple.com>
  10449. Fix some small storage leaks.
  10450. * src/kwq/KWQWidget.mm: (QWidget::QWidget): Use a single shared default style
  10451. instead of creating a new one for each widget.
  10452. (QWidget::setFont): Since we store a QFont here, we don't have to delete the
  10453. old font and we don't leak.
  10454. (QWidget::setCursor): Since now store a QCursor here, we don't have to delete
  10455. the old cursor.
  10456. Also removed a lot of unused code in here.
  10457. * src/kwq/KWQKURL.mm: Minor code cleanup.
  10458. 2002-04-02 Richard Williamson <rjw@apple.com>
  10459. Added ref() of part from KHTMView.
  10460. Added log to catch m_doc == 0 case. Should never happen.
  10461. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::KHTMLView),
  10462. (KHTMLView::~KHTMLView):
  10463. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::write):
  10464. 2002-04-02 Richard Williamson <rjw@apple.com>
  10465. Removed unnecessary and erroneous call to CGContextSetCharacterSpacing.
  10466. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutInfo _initializeCaches]):
  10467. 2002-04-01 Maciej Stachowiak <mjs@apple.com>
  10468. * src/kwq/KWQKHTMLPart.mm (KHTMLPartPrivate::~KHTMLPartPrivate):
  10469. Delete the jScript interpreter if it exists, to avoid leaking
  10470. it. Also, garbage collect in this case because when we destroy the
  10471. interpreter a lot of objects will become garbage and this seems
  10472. like a good time to clean it all up.
  10473. 2002-04-01 Richard Williamson <rjw@apple.com>
  10474. Added log to catch more problems with NS/CFURL.
  10475. * src/kwq/KWQKjobclasses.mm:
  10476. 2002-04-01 Richard Williamson <rjw@apple.com>
  10477. Cleaned up lots of potentially stale references to controller.
  10478. Added ref count to part.
  10479. * src/kwq/KWQKHTMLPart.h:
  10480. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::init):
  10481. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  10482. IFURLHandle:resourceDataDidBecomeAvailable:]):
  10483. 2002-04-01 Richard Williamson <rjw@apple.com>
  10484. Changes to support correct behavior is i/frame margins and
  10485. scroll views.
  10486. * src/kdelibs/khtml/html/html_baseimpl.h:
  10487. * src/kdelibs/khtml/rendering/render_body.cpp: (RenderBody::layout):
  10488. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::requestFrame):
  10489. * src/kwq/external.h:
  10490. 2002-04-01 Kenneth Kocienda <kocienda@apple.com>
  10491. The guts of the fix for this bug:
  10492. Radar 2879234 (Redirected URLs not used for subsequent GETs)
  10493. This change, though small, will fix most of the outstanding problems
  10494. with URL redirects. Some little bits of work need to be done, but much
  10495. of that is on the UI level.
  10496. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::begin), (KHTMLPart::setBaseURL):
  10497. 2002-04-01 Darin Adler <darin@apple.com>
  10498. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::jScriptEnabled): Hook this up to the
  10499. preference from WebKit.
  10500. (KHTMLPart::jScript): Return 0 if JavaScript is disabled. This is exactly what
  10501. the original KHTMLPart from KDE did.
  10502. 2002-04-01 Darin Adler <darin@apple.com>
  10503. * src/kwq/KWQDef.h: Use KWQ_UNSIGNED_TYPES_DEFINED for compatibility with code
  10504. in JavaScriptCore that has to do the same thing.
  10505. 2002-04-01 Darin Adler <darin@apple.com>
  10506. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::restoreScrollBar): Disable code
  10507. that checks if the scroll bar is visible, because it currently doesn't do us
  10508. any good. We may want to turn it back on if we ever implement setVScrollBarMode.
  10509. (KHTMLView::viewportWheelEvent): Disable this code for now since it requires
  10510. access to the vertical scroll bar object.
  10511. * src/kdelibs/khtml/rendering/render_form.cpp:
  10512. (RenderTextArea::calcMinMaxWidth): Use our own verticalScrollBarWidth and
  10513. horizontalScrollBarHeight rather than getting scroll bar widgets.
  10514. * src/kwq/qt/qscrollview.h: Remove QScrollView::horizontalScrollBar() and
  10515. QScrollView::verticalScrollBar(), since we don't have QWidgets to return for
  10516. these two. We can re-add these later if we need to.
  10517. * src/kwq/qt/qtextedit.h: Removed QMultiLineEdit, and QTextEdit() constructor.
  10518. * src/kwq/kdeui/keditcl.h: Removed.
  10519. * src/kwq/KWQTextEdit.mm: Remove unused functions.
  10520. (QTextEdit::verticalScrollBarWidth), (QTextEdit::horizontalScrollBarHeight):
  10521. Implement these two new ones.
  10522. * src/kwq/KWQScrollView.mm: Remove unused functions.
  10523. * src/kdelibs/khtml/rendering/render_form.cpp: Fixed spelling error.
  10524. 2002-03-31 Maciej Stachowiak <mjs@apple.com>
  10525. Fix Radar 2890464 (abcnews.com renders as a blank blue page (probably a JavaScript
  10526. problem).) It turns out not to be a JavaScript problem:
  10527. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  10528. IFURLHandle:resourceDidFailLoadingWithResult:]): Report that load
  10529. is finished to KDE layers. Otherwise, the tokenizer will wait
  10530. forever for a script load completion message that never comes.
  10531. 2002-03-31 Darin Adler <darin@apple.com>
  10532. * src/kwq/KWQString.mm: (QString::toDouble): Fix to properly handle
  10533. an empty string.
  10534. 2002-03-30 Darin Adler <darin@apple.com>
  10535. * src/kdelibs/khtml/xml/dom_docimpl.cpp: (DocumentImpl::setTitle):
  10536. Call through to a new KHTMLPart::setTitle instead of the old
  10537. setWindowCaption. We want to skip the special logic for using
  10538. the URL if the title is blank, and for squeezing the title into
  10539. a smaller string, because those are handled at a higher level.
  10540. * src/kwq/KWQKHTMLPart.h: Add setTitle. Also clean up ifdefs.
  10541. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::setTitle): New. Calls
  10542. [IFWebDataSource _setTitle].
  10543. * src/kwq/kparts/part.h: Removed setWindowCaption.
  10544. * src/kwq/KWQPart.mm: Removed setWindowCaption.
  10545. * src/kwq/external.h: Add [IFWebDataSource _setTitle].
  10546. 2002-03-30 Richard Williamson <rjw@apple.com>
  10547. Added support for scrolling to anchor points.
  10548. Optimization: we always load the page, even if the URL that contains
  10549. the anchor is the current page.
  10550. * src/kwq/KWQKHTMLPart.h:
  10551. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::end), (KHTMLPart::gotoBaseAnchor),
  10552. (KHTMLPart::gotoAnchor), (KHTMLPart::setUserStyleSheet):
  10553. * src/kwq/KWQScrollView.mm: (QScrollView::setContentsPos):
  10554. 2002-03-30 Richard Williamson <rjw@apple.com>
  10555. Added log to note cases of NSURL (CFURL) being unable to
  10556. correctly initialize from URLs. This log will likely indicate
  10557. bugs in CFURL.
  10558. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::requestFrame):
  10559. 2002-03-30 Richard Williamson <rjw@apple.com>
  10560. Twiddling with baselines. kde 2.2 appears to not line up baselines correctly.
  10561. Need to experiment with kde 3.
  10562. Removed copy of function prototype, instead included the correct header.
  10563. Fixed crasher in setFocusPolicy, I don't think we even need to use kde's focus policy.
  10564. This was added during the kde 3 beta 2 merge.
  10565. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutInfo
  10566. drawString:atPoint:withFont:color:]), (-[KWQLayoutInfo
  10567. drawUnderlineForString:atPoint:withFont:color:]), (-[KWQLayoutInfo
  10568. initWithFont:]), (-[KWQLayoutInfo _initializeCaches]):
  10569. * src/kwq/KWQMetrics.h:
  10570. * src/kwq/KWQWidget.mm: (QWidget::setFocusProxy):
  10571. 2002-03-30 Darin Adler <darin@apple.com>
  10572. * src/kwq/KWQKURL.mm: (copyAndReplaceAll), (needToHideColons): New
  10573. functions used in workaround for CFURL bug.
  10574. (KURL::normalizeRelativeURLString): Add workaround for CFURL bug; hide colons
  10575. that would confuse CFURL from the CFURL code.
  10576. * src/kwq/KWQFont.mm: (QFont::getFont): Use lossyCString instead of cString for
  10577. debugging messages.
  10578. 2002-03-30 Maciej Stachowiak <mjs@apple.com>
  10579. * src/Makefile.am: Link against JavaScriptCore.framework instead
  10580. of the defunct libJavaScriptCore.dylib.
  10581. 2002-03-29 Darin Adler <darin@apple.com>
  10582. * src/kdelibs/khtml/rendering/render_image.cpp: (RenderImage::updateFromElement):
  10583. Make images with no src, or src="" be empty rather than being the page itself
  10584. loaded as an image.
  10585. 2002-03-29 Richard Williamson <rjw@apple.com>
  10586. More fixes for cancelling. Fixed some code that appears to have been
  10587. mis-merged after the KDE 3 beta 2 landing.
  10588. * src/kwq/KWQKloader.mm: (-[URLLoadClient initWithLoader:dataSource:])
  10589. 2002-03-29 Darin Adler <darin@apple.com>
  10590. * src/kwq/KWQKloader.mm: (Cache::getStatistics), (Cache::flushAll):
  10591. Fix both of these to work when cache is not yet allocated.
  10592. 2002-03-29 Richard Williamson <rjw@apple.com>
  10593. Hooked up redirect.
  10594. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandle:didRedirectToURL:]):
  10595. * src/kwq/external.h:
  10596. 2002-03-29 Kenneth Kocienda <kocienda@apple.com>
  10597. Workaround for Radar 2890624 (Double free of image data in QPixmap)
  10598. This hack is necessary for the app to run on some Jaguar system. Otherwise
  10599. images that the GIF library cannot decode will cause a crash.
  10600. * src/kwq/KWQPixmap.mm: (QPixmap::QPixmap):
  10601. 2002-03-28 Richard Williamson <rjw@apple.com>
  10602. Fixed basic font horkage caused by removal of KDE font matching code. We
  10603. now work correctly for the basic font families.
  10604. * src/kwq/KWQFont.mm: (QFont::getFont):
  10605. 2002-03-28 Darin Adler <darin@apple.com>
  10606. * src/kwq/KWQKloader.mm: (Cache::requestImage), (Cache::requestStyleSheet),
  10607. (Cache::requestScript): Set flags so the objects get freed when they are done
  10608. in cases where the cache is disabled.
  10609. 2002-03-28 Maciej Stachowiak <mjs@apple.com>
  10610. Fix Radar 2890340 (JavaScript doesn't work)
  10611. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::executeScript): Implement
  10612. the other overloaded version of this function. This is needed for
  10613. JavaScript to work.
  10614. 2002-03-28 Darin Adler <darin@apple.com>
  10615. * src/kdelibs/khtml/misc/loader.h: Added API for looking at the contents of the
  10616. cache, flushing the cache, and disabling the cache.
  10617. * src/kwq/KWQKloader.mm: (Cache::requestImage): Don't cache if disabled.
  10618. (Cache::requestStyleSheet): Don't cache if disabled.
  10619. (Cache::requestScript): Don't cache if disabled.
  10620. (Cache::flush): Simplify ifdefs.
  10621. (Cache::getStatistics), (Cache::flushAll), (Cache::setCacheDisabled): New.
  10622. 2002-03-28 Richard Williamson <rjw@apple.com>
  10623. Fixed crasher. Removed unnecessary cleanup to widget that was called after the
  10624. widget was already disposed.
  10625. * src/kdelibs/khtml/rendering/render_replaced.cpp: (RenderWidget::detach):
  10626. 2002-03-27 Richard Williamson <rjw@apple.com>
  10627. Removed problematic code. Not sure why it was necessary. For now
  10628. it prevents crasher.
  10629. * src/kdelibs/khtml/rendering/render_table.cpp: (RenderTable::addColInfo):
  10630. 2002-03-27 Darin Adler <darin@apple.com>
  10631. * src/kwq/KWQListImpl.mm: (KWQListImpl::insert): Fix disastrous name
  10632. collision which could lead to infinite loops.
  10633. 2002-03-27 Darin Adler <darin@apple.com>
  10634. * src/kwq/KWQCString.mm: (QCString::isEmpty): The || should be &&.
  10635. 2002-03-27 Darin Adler <darin@apple.com>
  10636. * src/kdelibs/khtml/css/css_valueimpl.cpp:
  10637. (FontFamilyValueImpl::FontFamilyValueImpl): Disable misguided font matching
  10638. code in khtml.
  10639. * src/kwq/KWQFont.mm: (QFont::getFont): Change the fallback so that it uses
  10640. the default font family, but the other settings as requested, rather than
  10641. using the default font.
  10642. 2002-03-27 Kenneth Kocienda <kocienda@apple.com>
  10643. Changed loadProgress->bytesSoFar to use [sender contentLengthReceived]
  10644. instead of the size of the chunk that was delivered in the callback.
  10645. This makes the activity window data more correct than it was.
  10646. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  10647. IFURLHandle:resourceDataDidBecomeAvailable:]):
  10648. 2002-03-27 Darin Adler <darin@apple.com>
  10649. * src/kdelibs/khtml/ecma/Makefile.am: Get the create_hash_table tool
  10650. from JavaScriptCore. We might need a better way to handle this later.
  10651. 2002-03-26 Maciej Stachowiak <mjs@apple.com>
  10652. Removed kjs from here - it's now been moved to JavaScriptCore at
  10653. the top level.
  10654. * src/Makefile.am: Don't link libkjs.o.
  10655. * src/kdelibs/Makefile.am: Remove kjs from subdirs.
  10656. * src/kdelibs/kjs/.cvsignore: Removed.
  10657. * src/kdelibs/kjs/Makefile.am: Removed.
  10658. * src/kdelibs/kjs/array_object.cpp: Removed.
  10659. * src/kdelibs/kjs/array_object.h: Removed.
  10660. * src/kdelibs/kjs/bool_object.cpp: Removed.
  10661. * src/kdelibs/kjs/bool_object.h: Removed.
  10662. * src/kdelibs/kjs/collector.cpp: Removed.
  10663. * src/kdelibs/kjs/collector.h: Removed.
  10664. * src/kdelibs/kjs/create_hash_table: Removed.
  10665. * src/kdelibs/kjs/date_object.cpp: Removed.
  10666. * src/kdelibs/kjs/date_object.h: Removed.
  10667. * src/kdelibs/kjs/debugger.cpp: Removed.
  10668. * src/kdelibs/kjs/debugger.h: Removed.
  10669. * src/kdelibs/kjs/error_object.cpp: Removed.
  10670. * src/kdelibs/kjs/error_object.h: Removed.
  10671. * src/kdelibs/kjs/function.cpp: Removed.
  10672. * src/kdelibs/kjs/function.h: Removed.
  10673. * src/kdelibs/kjs/function_object.cpp: Removed.
  10674. * src/kdelibs/kjs/function_object.h: Removed.
  10675. * src/kdelibs/kjs/grammar.y: Removed.
  10676. * src/kdelibs/kjs/internal.cpp: Removed.
  10677. * src/kdelibs/kjs/internal.h: Removed.
  10678. * src/kdelibs/kjs/interpreter.cpp: Removed.
  10679. * src/kdelibs/kjs/interpreter.h: Removed.
  10680. * src/kdelibs/kjs/keywords.table: Removed.
  10681. * src/kdelibs/kjs/kjs-test: Removed.
  10682. * src/kdelibs/kjs/kjs-test.chk: Removed.
  10683. * src/kdelibs/kjs/lexer.cpp: Removed.
  10684. * src/kdelibs/kjs/lexer.h: Removed.
  10685. * src/kdelibs/kjs/lookup.cpp: Removed.
  10686. * src/kdelibs/kjs/lookup.h: Removed.
  10687. * src/kdelibs/kjs/math_object.cpp: Removed.
  10688. * src/kdelibs/kjs/math_object.h: Removed.
  10689. * src/kdelibs/kjs/nodes.cpp: Removed.
  10690. * src/kdelibs/kjs/nodes.h: Removed.
  10691. * src/kdelibs/kjs/nodes2string.cpp: Removed.
  10692. * src/kdelibs/kjs/number_object.cpp: Removed.
  10693. * src/kdelibs/kjs/number_object.h: Removed.
  10694. * src/kdelibs/kjs/object.cpp: Removed.
  10695. * src/kdelibs/kjs/object.h: Removed.
  10696. * src/kdelibs/kjs/object_object.cpp: Removed.
  10697. * src/kdelibs/kjs/object_object.h: Removed.
  10698. * src/kdelibs/kjs/operations.cpp: Removed.
  10699. * src/kdelibs/kjs/operations.h: Removed.
  10700. * src/kdelibs/kjs/property_map.cpp: Removed.
  10701. * src/kdelibs/kjs/property_map.h: Removed.
  10702. * src/kdelibs/kjs/regexp.cpp: Removed.
  10703. * src/kdelibs/kjs/regexp.h: Removed.
  10704. * src/kdelibs/kjs/regexp_object.cpp: Removed.
  10705. * src/kdelibs/kjs/regexp_object.h: Removed.
  10706. * src/kdelibs/kjs/string_object.cpp: Removed.
  10707. * src/kdelibs/kjs/string_object.h: Removed.
  10708. * src/kdelibs/kjs/test.js: Removed.
  10709. * src/kdelibs/kjs/testkjs.cpp: Removed.
  10710. * src/kdelibs/kjs/types.cpp: Removed.
  10711. * src/kdelibs/kjs/types.h: Removed.
  10712. * src/kdelibs/kjs/ustring.cpp: Removed.
  10713. * src/kdelibs/kjs/ustring.h: Removed.
  10714. * src/kdelibs/kjs/value.cpp: Removed.
  10715. * src/kdelibs/kjs/value.h: Removed.
  10716. 2002-03-26 Maciej Stachowiak <mjs@apple.com>
  10717. Removed all the borrowed Qt code.
  10718. * src/kwq/KWQGlobal.mm: Renamed from qt/_qglobal.cpp to avoid
  10719. confusion about the borrowedness status of this file.
  10720. * src/kwq/Makefile.am: Removed references to kde and qt
  10721. subdirectories.
  10722. * src/kwq/kde/.cvsignore: Removed.
  10723. * src/kwq/kde/Makefile.am: Removed.
  10724. * src/kwq/kde/_kurl.cpp: Removed.
  10725. * src/kwq/kde/_kurl.h: Removed.
  10726. * src/kwq/qt/Makefile.am: Removed.
  10727. * src/kwq/qt/_qarray.h: Removed.
  10728. * src/kwq/qt/_qbuffer.cpp: Removed.
  10729. * src/kwq/qt/_qbuffer.h: Removed.
  10730. * src/kwq/qt/_qcollection.cpp: Removed.
  10731. * src/kwq/qt/_qcollection.h: Removed.
  10732. * src/kwq/qt/_qcolor.h: Removed.
  10733. * src/kwq/qt/_qcstring.cpp: Removed.
  10734. * src/kwq/qt/_qcstring.h: Removed.
  10735. * src/kwq/qt/_qdatetime.cpp: Removed.
  10736. * src/kwq/qt/_qdatetime.h: Removed.
  10737. * src/kwq/qt/_qdict.h: Removed.
  10738. * src/kwq/qt/_qdir.cpp: Removed.
  10739. * src/kwq/qt/_qdir.h: Removed.
  10740. * src/kwq/qt/_qdir_unix.cpp: Removed.
  10741. * src/kwq/qt/_qfile.cpp: Removed.
  10742. * src/kwq/qt/_qfile.h: Removed.
  10743. * src/kwq/qt/_qfileinfo.cpp: Removed.
  10744. * src/kwq/qt/_qfileinfo.h: Removed.
  10745. * src/kwq/qt/_qfileinfo_unix.cpp: Removed.
  10746. * src/kwq/qt/_qgarray.cpp: Removed.
  10747. * src/kwq/qt/_qgarray.h: Removed.
  10748. * src/kwq/qt/_qgdict.cpp: Removed.
  10749. * src/kwq/qt/_qgdict.h: Removed.
  10750. * src/kwq/qt/_qglist.cpp: Removed.
  10751. * src/kwq/qt/_qglist.h: Removed.
  10752. * src/kwq/qt/_qglobal.cpp: Removed.
  10753. * src/kwq/qt/_qgvector.cpp: Removed.
  10754. * src/kwq/qt/_qgvector.h: Removed.
  10755. * src/kwq/qt/_qiodevice.cpp: Removed.
  10756. * src/kwq/qt/_qiodevice.h: Removed.
  10757. * src/kwq/qt/_qlist.h: Removed.
  10758. * src/kwq/qt/_qmap.cpp: Removed.
  10759. * src/kwq/qt/_qmap.h: Removed.
  10760. * src/kwq/qt/_qpoint.cpp: Removed.
  10761. * src/kwq/qt/_qpoint.h: Removed.
  10762. * src/kwq/qt/_qptrdict.h: Removed.
  10763. * src/kwq/qt/_qrect.cpp: Removed.
  10764. * src/kwq/qt/_qrect.h: Removed.
  10765. * src/kwq/qt/_qregexp.cpp: Removed.
  10766. * src/kwq/qt/_qregexp.h: Removed.
  10767. * src/kwq/qt/_qregion.cpp: Removed.
  10768. * src/kwq/qt/_qregion.h: Removed.
  10769. * src/kwq/qt/_qshared.h: Removed.
  10770. * src/kwq/qt/_qsize.cpp: Removed.
  10771. * src/kwq/qt/_qsize.h: Removed.
  10772. * src/kwq/qt/_qsortedlist.h: Removed.
  10773. * src/kwq/qt/_qstack.h: Removed.
  10774. * src/kwq/qt/_qstring.cpp: Removed.
  10775. * src/kwq/qt/_qstring.h: Removed.
  10776. * src/kwq/qt/_qstringlist.cpp: Removed.
  10777. * src/kwq/qt/_qstringlist.h: Removed.
  10778. * src/kwq/qt/_qstrlist.h: Removed.
  10779. * src/kwq/qt/_qtextcodec.h: Removed.
  10780. * src/kwq/qt/_qtextstream.h: Removed.
  10781. * src/kwq/qt/_qtl.h: Removed.
  10782. * src/kwq/qt/_qurl.cpp: Removed.
  10783. * src/kwq/qt/_qurl.h: Removed.
  10784. * src/kwq/qt/_qvaluelist.h: Removed.
  10785. * src/kwq/qt/_qvector.h: Removed.
  10786. 2002-03-26 Kenneth Kocienda <kocienda@apple.com>
  10787. * src/Makefile.am:
  10788. 2002-03-26 Darin Adler <darin@apple.com>
  10789. * src/kwq/KWQKjobclasses.mm: (TransferJobPrivate::TransferJobPrivate):
  10790. Nil out the handle so we don't autorelease garbage.
  10791. * src/kwq/KWQKloader.mm:
  10792. (-[URLLoadClient IFURLHandleResourceDidCancelLoading:]),
  10793. (-[URLLoadClient IFURLHandleResourceDidFinishLoading:data:]),
  10794. (-[URLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  10795. Delete the job instead of just autoreleasing the sender. Fixes a leak.
  10796. 2002-03-26 Richard Williamson <rjw@apple.com>
  10797. Fixed leak of decoder. This caused us to leak the entire
  10798. document text for every load!
  10799. * src/kwq/KWQKHTMLPart.mm:
  10800. 2002-03-26 Darin Adler <darin@apple.com>
  10801. * src/kdelibs/khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
  10802. Fix a leak (missing delete).
  10803. * src/kwq/KWQMetrics.h:
  10804. * src/kwq/KWQFontMetrics.mm:
  10805. (-[KWQLayoutInfo drawString:atPoint:withFont:color:]): Don't bother keeping things
  10806. around that we only need to use once.
  10807. (-[KWQLayoutInfo _initializeCaches]): Create them here instead.
  10808. (-[KWQLayoutInfo dealloc]): Don't need to free them here.
  10809. 2002-03-26 Darin Adler <darin@apple.com>
  10810. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutInfo dealloc]): Free the
  10811. style groups, styles, and glyph vectors.
  10812. * src/kwq/KWQFont.mm: (QFont::getFont): Use default font if we can't
  10813. find a font from the passed-in family. Before, we were raising an
  10814. exception and quitting the application.
  10815. * src/kwq/KWQCString.mm: (QCString::isEmpty): Faster version that
  10816. doesn't call strlen.
  10817. 2002-03-25 Richard Williamson <rjw@apple.com>
  10818. Removed conditional check that prevent layout of iframes. I don't
  10819. understand why the check was being done.
  10820. * src/kdelibs/khtml/rendering/render_flow.cpp: (RenderFlow::layout):
  10821. 2002-03-25 Maciej Stachowiak <mjs@apple.com>
  10822. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::slotData): Use
  10823. -[IFURLHandle characterSet] to get the character set, instead of
  10824. parsing it out of the header by hand.
  10825. 2002-03-25 Chris Blumenberg <cblu@apple.com>
  10826. * src/kwq/WCPlugin.mm: (-[WCPlugin load]):
  10827. Temporary special case workaround for this Java plug-in bug:
  10828. 2885120
  10829. 2002-03-25 Maciej Stachowiak <mjs@apple.com>
  10830. Improved KURL performance:
  10831. * src/kwq/kdecore/kurl.h, src/kwq/KWQKURL.mm:
  10832. (KURL::normalizeURLString): New function to cache rewritten URL
  10833. strings.
  10834. (RelativeURLKeyRetainCallBack, RelativeURLKeyReleaseCallBack,
  10835. RelativeURLKeyCopyDescriptionCallBack,
  10836. RelativeURLKeyEqualCallBack, RelativeURLKeyHashCallBack,
  10837. KURL::normalizeRelativeURLString): Cache results of relative URL
  10838. resolution.
  10839. (KURL::clearCaches): function to clear the caches so they don't
  10840. grow forever.
  10841. (KURL::KURL): Set nothing but the string at construction time.
  10842. (KURL::isEmpty, KURL::isMalformed, KURL::hasPath, KURL::url,
  10843. KURL::protocol, KURL::host, KURL::port, KURL::pass, KURL::user,
  10844. KURL::ref, KURL::query, KURL::path, KURL::setProtocol,
  10845. KURL::setHost, KURL::setPort, KURL::setRef, KURL::setQuery,
  10846. KURL::setPath, KURL::prettyURL, KURL::copyOnWrite, KURL::parse,
  10847. KURL::assemble): Parse into parts on demand instead.
  10848. (KURL::swap, KURL::operator=): Handle KURL's new urlString field.
  10849. * src/kwq/KWQKloader.mm: (Cache::requestImage, Cache::requestStyleSheet,
  10850. Cache::requestScript): Don't redundantly check if KURL isMalformed.
  10851. * src/kwq/KWQKHTMLPart.mm (KHTMLPart::end): Clear KURL caches at
  10852. the end of each page load.
  10853. 2002-03-24 Darin Adler <darin@apple.com>
  10854. * src/kwq/KWQListImpl.mm: (KWQListImpl::getFirst), (KWQListImpl::getLast):
  10855. Apparently getLast needs to handle cases where the list is empty. Since
  10856. getFirst didn't handle it either, I added a check in both cases.
  10857. 2002-03-24 Darin Adler <darin@apple.com>
  10858. Add tail pointer to KWQListImpl, since that shows up on so many profiles.
  10859. * src/kwq/KWQListImpl.mm: (KWQListImpl::KWQListPrivate::copyList): Return
  10860. a tail pointer too.
  10861. (KWQListImpl::KWQListPrivate::KWQListPrivate): Set up tail pointer.
  10862. (KWQListImpl::clear): Clean tail pointer too.
  10863. (KWQListImpl::at): Special case the tail so we don't walk the whole list
  10864. when we ask for the last element.
  10865. (KWQListImpl::insert): Update the tail node to when inserting. Also add
  10866. a special case for adding at the end so we don't walk the whole list.
  10867. (KWQListImpl::remove): Update the tail node. Also, use at() in the index-
  10868. based remove so we don't ahve to replicate the logic about finding a
  10869. node with the special case for the tail.
  10870. (KWQListImpl::getLast): Trivial now.
  10871. (KWQListImpl::last): Trivial now.
  10872. (KWQListIteratorImpl::toLast): Trivial now.
  10873. * src/kwq/KWQString.mm: (QString::operator=): Remove unneeded line of code.
  10874. 2002-03-24 Richard Williamson <rjw@apple.com>
  10875. A number of fixes to support non-latin1 decoding
  10876. and font measurement/drawing.
  10877. * src/kwq/KWQFontMetrics.mm: (_rectForString):
  10878. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::slotData):
  10879. * src/kwq/KWQMetrics.h:
  10880. 2002-03-24 Richard Williamson <rjw@apple.com>
  10881. Cached available families from NSFontManager.
  10882. http://www.gamespy.com/gdc2002/okamoto went from 4.8 seconds
  10883. to 0.7 seconds. [Do we need to worry about updating the cache if
  10884. the available fonts change?]
  10885. * src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::availableFamilies):
  10886. 2002-03-24 Richard Williamson <rjw@apple.com>
  10887. Fixed big leak in QString assignment operator.
  10888. Updated comments. Removed old fprintfs.
  10889. Added some frame debugging logs.
  10890. * src/kwq/KWQFontMetrics.mm: (_rectForString):
  10891. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::openURL), (KHTMLPart::requestFrame):
  10892. * src/kwq/KWQScrollView.mm: (QScrollView::addChild),
  10893. (QScrollView::resizeContents), (QScrollView::updateContents),
  10894. (QScrollView::repaintContents):
  10895. * src/kwq/KWQString.mm: (QString::operator=):
  10896. * src/kwq/kwqdebug.h:
  10897. 2002-03-23 Darin Adler <darin@apple.com>
  10898. Fixed problem with extra empty items in menus.
  10899. * src/kwq/KWQComboBox.mm: (QComboBox::insertItem): Add back logic that puts
  10900. an item in a certain position. Even though this is called insertItem, the
  10901. behavior is to replace an item at a certain position.
  10902. * src/kwq/KWQKComboBox.mm: (KComboBox::setSize): No need to fill the
  10903. array with empty strings; just a waste of time based on how we do things.
  10904. 2002-03-22 Darin Adler <darin@apple.com>
  10905. * src/kdelibs/khtml/java/Makefile.am:
  10906. * src/kdelibs/khtml/java/tests/.cvsignore:
  10907. * src/kdelibs/khtml/java/tests/Makefile.am:
  10908. Remove empty test subdirectory.
  10909. * src/kdelibs/kjs/.cvsignore: Ignore kjs-test output.
  10910. 2002-03-22 Maciej Stachowiak <mjs@apple.com>
  10911. Fix some things that were making automake complain.
  10912. * src/kdelibs/kjs/Makefile.am:
  10913. * src/kwq/Makefile.am:
  10914. 2002-03-22 Darin Adler <darin@apple.com>
  10915. * src/kdelibs/khtml/css/cssstyleselector.cpp: (khtml::applyRule):
  10916. Fix boolean logic mistake from the original KDE sources.
  10917. 2002-03-22 Darin Adler <darin@apple.com>
  10918. Finally giving up on the complete QString rewrite after doing it 3 times,
  10919. Darin checks in some improvements for the old QString. This makes a QString
  10920. be 8 bytes instead of 12, and improves a few other details. No dramatic
  10921. speedups, but no slowdown either.
  10922. * src/kwq/qt/qstring.h:
  10923. * src/kwq/KWQString.mm:
  10924. (QString::QString), (QString::~QString), (QString::operator=),
  10925. (QString::unicode), (QString::latin1): Store the cache type inside the cache.
  10926. (QString::copy): No need to deep copy here.
  10927. (QString::simplifyWhiteSpace): Use CFStringInlineBuffer.
  10928. (QString::insert): Fix single-character insertions so they don't create and
  10929. destroy a mutable CFStringRef every time.
  10930. (QString::operator+=): Call the appropriate insert function.
  10931. (QString::flushCache): Store cache type inside cache.
  10932. (QString::compareToLatin1): Use CFStringInlineBuffer.
  10933. (operator==): Use CFStringInlineBuffer.
  10934. (QConstString::QConstString): Store the cache type inside the cache.
  10935. 2002-03-22 John Sullivan <sullivan@apple.com>
  10936. Made changing font sizes work immediately (other than an
  10937. unrelated crash).
  10938. * src/kwq/KWQKHTMLSettings.mm:
  10939. (KHTMLSettings::KHTMLSettings),
  10940. (KHTMLSettings::fontSizes): Moved defaults-fetching code from
  10941. constructor to accessor, so it doesn't get out of synch with
  10942. preference changes.
  10943. * src/kwq/khtml/khtml_settings.h: Added "mutable" keyword
  10944. to declaration of m_fontSizes, so the other change would compile.
  10945. 2002-03-22 Kenneth Kocienda <kocienda@apple.com>
  10946. Moved KWQKloader to the new thread-safe API for accessing handle attributes.
  10947. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandleResourceDidBeginLoading:]),
  10948. (-[URLLoadClient IFURLHandleResourceDidCancelLoading:]), (-[URLLoadClient
  10949. IFURLHandleResourceDidFinishLoading:data:]), (-[URLLoadClient
  10950. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[URLLoadClient
  10951. IFURLHandle:resourceDidFailLoadingWithResult:]):
  10952. 2002-03-22 Richard Williamson <rjw@apple.com>
  10953. Fixed subtle measurement problems. These were most evident of pages
  10954. that had lots of rounding deviation. My assumptions about being able to
  10955. round glyph advances was incorrect. We must pay the expense of a float addition,
  10956. instead of integer addition. This slows down our inner loop. Oh well,
  10957. we're still very fast.
  10958. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutInfo
  10959. drawString:atPoint:withFont:color:]), (-[KWQLayoutInfo
  10960. drawUnderlineForString:atPoint:withFont:color:]), (-[KWQLayoutInfo
  10961. _initializeCaches]), (_rectForString), (QFontMetrics::width),
  10962. (QFontMetrics::size):
  10963. * src/kwq/KWQMetrics.h:
  10964. 2002-03-22 Maciej Stachowiak <mjs@apple.com>
  10965. Fixed the following post-merge crashers:
  10966. 2885602 - Alexander crashes when clicking on a particular link in Google groups
  10967. 2885564 - Alexander crashes on load failures
  10968. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::~KHTMLView): Fix
  10969. Radar 2885602 by detaching the document from the view when the
  10970. view is destroyed. This was making the document reference a
  10971. destroyed view later.
  10972. * src/kwq/KWQKHTMLPart.mm:
  10973. (KHTMLPart::~KHTMLPart): Fix Radar 2885564 by checking if m_doc is
  10974. NULL, since it's now inititally set to NULL.
  10975. (KHTMLPart::KHTMLPart, KHTMLPart::init): Formatting tweaks.
  10976. 2002-03-20 Maciej Stachowiak <mjs@apple.com>
  10977. Merged the following changes from LABYRINTH_KDE_3_MERGE branch:
  10978. 2002-03-20 Maciej Stachowiak <mjs@apple.com>
  10979. * src/kdelibs/khtml/rendering/render_applet.cpp:
  10980. (RenderApplet::RenderApplet): Handle Java parameters properly,
  10981. with Chris's assistance.
  10982. 2002-03-20 Maciej Stachowiak <mjs@apple.com>
  10983. Merged accumlated changes from HEAD, up to
  10984. MERGED_TO_KDE_3_MERGE_BRANCH tag.
  10985. 2002-03-19 Maciej Stachowiak <mjs@apple.com>
  10986. Fixed two more crashers. Tree now looks pretty stable.
  10987. * src/kdelibs/khtml/html/html_objectimpl.cpp:
  10988. (HTMLObjectElementImpl::detach): Don't send an unload event, that
  10989. needs the view to be a live, which it won't be when the DOM is
  10990. being destroyed.
  10991. * src/kwq/KWQListImpl.mm: (KWQListImpl::getFirst): Return
  10992. d->head->data, not d->head. Whoops!
  10993. 2002-03-19 Maciej Stachowiak <mjs@apple.com>
  10994. Fixed two crashers:
  10995. * src/kdelibs/khtml/rendering/render_object.h: Don't attempt to
  10996. schedule a relayout ever. We control layout timing. This was
  10997. resulting in calls on destroyed/trashed objects before.
  10998. * src/kdelibs/khtml/xml/dom_nodeimpl.cpp:
  10999. (NodeImpl::dispatchEvent): Check if view()->part() is NULL (looks
  11000. like a bug in the KDE code that this wasn't checked).
  11001. 2002-03-19 Maciej Stachowiak <mjs@apple.com>
  11002. Changes needed to get WebCore to link: implement all the missing functions.
  11003. * src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::end):
  11004. * src/kdelibs/khtml/xml/xml_tokenizer.cpp: (XMLTokenizer::end):
  11005. * src/kdelibs/khtml/xml/xml_tokenizer.h:
  11006. * src/kwq/KWQApplication.mm: (QApplication::_initialize),
  11007. (QApplication::focusWidget):
  11008. * src/kwq/KWQColorGroup.mm: (QColorGroup::operator==):
  11009. * src/kwq/KWQComboBox.mm: (QComboBox::currentItem):
  11010. * src/kwq/KWQCursor.mm: (QCursor::operator=), (QCursor::handle):
  11011. * src/kwq/KWQEvent.mm: (QMouseEvent::QMouseEvent), (QKeyEvent::isAutoRepeat),
  11012. (QKeyEvent::text), (QKeyEvent::ascii), (QKeyEvent::count),
  11013. (QKeyEvent::isAccepted), (QCustomEvent::QCustomEvent),
  11014. (QContextMenuEvent::QContextMenuEvent), (QContextMenuEvent::globalPos),
  11015. (QContextMenuEvent::reason), (QContextMenuEvent::state), (QContextMenuEvent::x),
  11016. (QContextMenuEvent::y):
  11017. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::boundingRect):
  11018. * src/kwq/KWQKCursor.mm: (KCursor::whatsThisCursor):
  11019. * src/kwq/KWQKDebug.mm: (kdBacktrace):
  11020. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::metaRefreshEnabled),
  11021. (KHTMLPart::executeScript), (KHTMLPart::requestObject),
  11022. (KHTMLPart::setJSDefaultStatusBarText), (KHTMLPart::referrer),
  11023. (KHTMLPart::lastModified):
  11024. * src/kwq/KWQKMimeType.mm: (KMimeType::comment), (KMimeType::mimeType),
  11025. (KMimeType::defaultMimeType):
  11026. * src/kwq/KWQKPrinter.mm: (KPrinter::KPrinter):
  11027. * src/kwq/KWQKProtocolManager.mm: (KProtocolManager::proxyFor):
  11028. * src/kwq/KWQKstddirs.mm: (KStandardDirs::saveLocation):
  11029. * src/kwq/KWQLineEdit.mm: (QLineEdit::edited), (QLineEdit::setEdited):
  11030. * src/kwq/KWQListImpl.h:
  11031. * src/kwq/KWQListImpl.mm: (KWQListImpl::getFirst), (KWQListImpl::take):
  11032. * src/kwq/KWQMapImpl.h:
  11033. * src/kwq/KWQMapImpl.mm: (KWQMapImpl::removeEqualInternal):
  11034. * src/kwq/KWQNSTextField.h:
  11035. * src/kwq/KWQNSTextField.mm: (-[KWQNSTextField edited]), (-[KWQNSTextField
  11036. setEdited:]), (-[KWQNSTextField textDidChange:]):
  11037. * src/kwq/KWQObject.mm: (QObject::eventFilter):
  11038. * src/kwq/KWQPainter.mm: (QPainter::drawConvexPolygon), (QPainter::drawText):
  11039. * src/kwq/KWQPalette.mm: (QPalette::operator==):
  11040. * src/kwq/KWQRadioButton.mm: (QRadioButton::isChecked):
  11041. * src/kwq/KWQRect.mm: (QRect::isEmpty), (QRect::intersect), (QRect::unite):
  11042. * src/kwq/KWQRegion.mm: (QRegion::translate), (QRegion::boundingRect):
  11043. * src/kwq/KWQScrollView.mm: (QScrollView::updateContents):
  11044. * src/kwq/KWQString.mm: (QString::endsWith):
  11045. * src/kwq/KWQStyle.h:
  11046. * src/kwq/KWQTextArea.h:
  11047. * src/kwq/KWQTextArea.mm: (-[KWQTextArea paragraphs]), (RangeOfParagraph),
  11048. (-[KWQTextArea paragraphLength:]), (-[KWQTextArea textForParagraph:]),
  11049. (-[KWQTextArea lineOfCharAtIndex:inParagraph:]), (-[KWQTextArea
  11050. getCursorPositionAsIndex:inParagraph:]), (-[KWQTextArea
  11051. setCursorPositionToIndex:inParagraph:]):
  11052. * src/kwq/KWQTextEdit.mm: (QMultiLineEdit::QMultiLineEdit), (KEdit::KEdit),
  11053. (KEdit::~KEdit), (QTextEdit::QTextEdit), (QTextEdit::setText), (QTextEdit::text),
  11054. (QTextEdit::paragraphs), (QTextEdit::paragraphLength), (QTextEdit::lineOfChar),
  11055. (QTextEdit::getCursorPosition), (QTextEdit::setCursorPosition),
  11056. (QTextEdit::wordWrap), (QTextEdit::setWordWrap), (QTextEdit::setTextFormat),
  11057. (QTextEdit::isReadOnly), (QTextEdit::setReadOnly), (QTextEdit::selectAll):
  11058. * src/kwq/KWQVectorImpl.mm: (KWQVectorImpl::at), (KWQVectorImpl::data):
  11059. * src/kwq/KWQWidget.mm: (QWidget::frameGeometry), (QWidget::cursor),
  11060. (QWidget::unsetCursor):
  11061. * src/kwq/KWQbrowserextension.mm:
  11062. * src/kwq/KWQtextstream.mm: (QTextStream::QTextStream),
  11063. (QTextStream::operator<<), (endl):
  11064. * src/kwq/KWQxml.mm: (QXmlAttributes::uri), (QXmlParseException::lineNumber):
  11065. * src/kwq/Makefile.am:
  11066. * src/kwq/kdecore/kstandarddirs.h:
  11067. * src/kwq/kdecore/kstaticdeleter.h:
  11068. * src/kwq/kdeui/keditcl.h:
  11069. * src/kwq/kio/kmimetype.h:
  11070. * src/kwq/qt/qarray.h:
  11071. * src/kwq/qt/qevent.h:
  11072. * src/kwq/qt/qlist.h:
  11073. * src/kwq/qt/qmap.h:
  11074. * src/kwq/qt/qpalette.h:
  11075. * src/kwq/qt/qptrqueue.h:
  11076. * src/kwq/qt/qscrollview.h:
  11077. * src/kwq/qt/qstring.h:
  11078. * src/kwq/qt/qtextedit.h:
  11079. 2002-03-18 Maciej Stachowiak <mjs@apple.com>
  11080. Changes needed to get kwq compiling (doesn't link yet, though).
  11081. * src/kdelibs/khtml/misc/loader.h:
  11082. * src/kdelibs/khtml/xml/dom_elementimpl.h:
  11083. * src/kwq/KWQCollection.mm: (QPtrCollection::QPtrCollection),
  11084. (QPtrCollection::operator=), (QPtrCollection::~QPtrCollection),
  11085. (QPtrCollection::autoDelete), (QPtrCollection::setAutoDelete):
  11086. * src/kwq/KWQEvent.mm: (QKeyEvent::QKeyEvent):
  11087. * src/kwq/KWQIcon.h:
  11088. * src/kwq/KWQKHTMLFactory.mm:
  11089. * src/kwq/KWQKHTMLPart.h:
  11090. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::KHTMLPart), (KHTMLPart::slotData),
  11091. (KHTMLPart::begin), (KHTMLPart::write), (KHTMLPart::checkCompleted),
  11092. (KHTMLPart::settings), (KHTMLPart::completeURL), (KHTMLPart::encoding),
  11093. (KHTMLPart::overURL), (KHTMLPart::urlSelected), (KHTMLPart::requestObject),
  11094. (KHTMLPart::frames), (KHTMLPart::event):
  11095. * src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::KHTMLSettings),
  11096. (KHTMLSettings::availableFamilies):
  11097. * src/kwq/KWQKProcess.mm: (KProcess::args):
  11098. * src/kwq/KWQKloader.mm: (CachedImage::CachedImage), (CachedImage::movieStatus),
  11099. (DocLoader::DocLoader), (Loader::load), (Loader::servePendingRequests),
  11100. (Loader::slotFinished), (Cache::requestScript):
  11101. * src/kwq/KWQPainter.mm: (QPainter::save):
  11102. * src/kwq/KWQPointArray.mm: (QPointArray::setPoint):
  11103. * src/kwq/KWQValueListImpl.mm: (KWQValueListImpl::removeEqualNodes),
  11104. (KWQValueListImpl::containsEqualNodes):
  11105. * src/kwq/KWQView.mm: (-[KWQHTMLView layout]):
  11106. * src/kwq/KWQsignals.mm: (khtml::Loader::requestDone),
  11107. (khtml::Loader::requestFailed):
  11108. * src/kwq/kdecore/kiconloader.h:
  11109. * src/kwq/kparts/browserextension.h:
  11110. * src/kwq/qt/qmovie.h:
  11111. 2002-03-16 Maciej Stachowiak <mjs@apple.com>
  11112. Updated to get khtml to compile. Changes included updating our
  11113. headers for new classes, new methods, header name changes, etc, as
  11114. well as occasionally commenting out or replacing portions of the
  11115. khtml code with #if APPLE_CHANGES, and adding new files from the
  11116. kde3 sources when appropriate. Also commit some kjs files that I
  11117. forgot to cvs add before.
  11118. * src/kdelibs/khtml/css/css_valueimpl.cpp:
  11119. (CSSStyleDeclarationImpl::getPropertyCSSValue):
  11120. * src/kdelibs/khtml/css/cssparser.cpp: (StyleBaseImpl::parseContent):
  11121. * src/kdelibs/khtml/css/cssstyleselector.cpp:
  11122. (CSSStyleSelector::CSSStyleSelector), (khtml::applyRule):
  11123. * src/kdelibs/khtml/ecma/.cvsignore:
  11124. * src/kdelibs/khtml/ecma/Makefile.am:
  11125. * src/kdelibs/khtml/ecma/kjs_debugwin.h:
  11126. * src/kdelibs/khtml/ecma/kjs_dom.cpp: (DOMNode::toString):
  11127. * src/kdelibs/khtml/ecma/kjs_dom.h:
  11128. * src/kdelibs/khtml/ecma/kjs_window.cpp:
  11129. * src/kdelibs/khtml/html/html_documentimpl.cpp: (HTMLDocumentImpl::cookie),
  11130. (HTMLDocumentImpl::setCookie):
  11131. * src/kdelibs/khtml/html/html_formimpl.cpp:
  11132. (HTMLKeygenElementImpl::HTMLKeygenElementImpl),
  11133. (HTMLKeygenElementImpl::encoding):
  11134. * src/kdelibs/khtml/java/kjavaprocess.cpp: (KJavaProcess::invokeJVM):
  11135. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::contentsContextMenuEvent):
  11136. * src/kdelibs/khtml/misc/loader.h:
  11137. * src/kdelibs/khtml/rendering/render_box.cpp: (RenderBox::calcReplacedWidth):
  11138. * src/kdelibs/khtml/rendering/render_form.cpp: (RenderTextArea::calcMinMaxWidth):
  11139. * src/kdelibs/khtml/rendering/render_image.cpp: (RenderImage::printObject):
  11140. * src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::nodeAtPoint):
  11141. * src/kdelibs/khtml/xml/dom_docimpl.cpp: (DocumentImpl::close):
  11142. * src/kdelibs/khtml/xml/dom_elementimpl.cpp:
  11143. (ElementImpl::dispatchAttrRemovalEvent),
  11144. (ElementImpl::dispatchAttrAdditionEvent):
  11145. * src/kdelibs/kjs/interpreter.cpp: (Context::Context), (Context::operator=),
  11146. (Context::~Context), (Context::isNull), (Context::imp), (Context::scopeChain),
  11147. (Context::variableObject), (Context::thisValue), (Context::callingContext),
  11148. (Interpreter::Interpreter), (Interpreter::~Interpreter),
  11149. (Interpreter::globalObject), (Interpreter::globalExec),
  11150. (Interpreter::checkSyntax), (Interpreter::evaluate), (Interpreter::imp),
  11151. (Interpreter::builtinObject), (Interpreter::builtinFunction),
  11152. (Interpreter::builtinArray), (Interpreter::builtinBoolean),
  11153. (Interpreter::builtinString), (Interpreter::builtinNumber),
  11154. (Interpreter::builtinDate), (Interpreter::builtinRegExp),
  11155. (Interpreter::builtinError), (Interpreter::builtinObjectPrototype),
  11156. (Interpreter::builtinFunctionPrototype), (Interpreter::builtinArrayPrototype),
  11157. (Interpreter::builtinBooleanPrototype), (Interpreter::builtinStringPrototype),
  11158. (Interpreter::builtinNumberPrototype), (Interpreter::builtinDatePrototype),
  11159. (Interpreter::builtinRegExpPrototype), (Interpreter::builtinErrorPrototype),
  11160. (Interpreter::builtinEvalError), (Interpreter::builtinRangeError),
  11161. (Interpreter::builtinReferenceError), (Interpreter::builtinSyntaxError),
  11162. (Interpreter::builtinTypeError), (Interpreter::builtinURIError),
  11163. (Interpreter::builtinEvalErrorPrototype),
  11164. (Interpreter::builtinRangeErrorPrototype),
  11165. (Interpreter::builtinReferenceErrorPrototype),
  11166. (Interpreter::builtinSyntaxErrorPrototype),
  11167. (Interpreter::builtinTypeErrorPrototype),
  11168. (Interpreter::builtinURIErrorPrototype), (Interpreter::setCompatMode),
  11169. (Interpreter::compatMode), (Interpreter::finalCheck), (ExecState::~ExecState),
  11170. (ExecState::interpreter), (ExecState::context), (ExecState::setException),
  11171. (ExecState::clearException), (ExecState::exception), (ExecState::hadException),
  11172. (ExecState::ExecState):
  11173. * src/kdelibs/kjs/property_map.cpp: (PropertyMapNode::setLeft),
  11174. (PropertyMapNode::setRight), (PropertyMapNode::setParent),
  11175. (PropertyMapNode::findMax), (PropertyMapNode::findMin), (PropertyMapNode::next),
  11176. (KJS::uscompare), (PropertyMap::PropertyMap), (PropertyMap::~PropertyMap),
  11177. (PropertyMap::put), (PropertyMap::remove), (PropertyMap::get),
  11178. (PropertyMap::clear), (PropertyMap::dump), (PropertyMap::checkTree),
  11179. (PropertyMap::getNode), (PropertyMap::first), (PropertyMap::balance),
  11180. (PropertyMap::updateHeight), (PropertyMap::rotateRR), (PropertyMap::rotateLL),
  11181. (PropertyMap::rotateRL), (PropertyMap::rotateLR):
  11182. * src/kdelibs/kjs/property_map.h:
  11183. * src/kdelibs/kjs/value.cpp: (ValueImp::ValueImp), (ValueImp::~ValueImp),
  11184. (ValueImp::mark), (ValueImp::marked), (ValueImp::setGcAllowed),
  11185. (ValueImp::operator new), (ValueImp::operator delete), (ValueImp::toInteger),
  11186. (ValueImp::toInt32), (ValueImp::toUInt32), (ValueImp::toUInt16),
  11187. (ValueImp::getBase), (ValueImp::getPropertyName), (ValueImp::getValue),
  11188. (ValueImp::putValue), (KJS::operator==), (KJS::operator!=), (Value::Value),
  11189. (Value::~Value), (Value::operator=), (Value::isNull), (Value::imp),
  11190. (Value::type), (Value::isA), (Value::toPrimitive), (Value::toBoolean),
  11191. (Value::toNumber), (Value::toInteger), (Value::toInt32), (Value::toUInt32),
  11192. (Value::toUInt16), (Value::toString), (Value::toObject), (Value::getBase),
  11193. (Value::getPropertyName), (Value::getValue), (Value::putValue),
  11194. (Undefined::Undefined), (Undefined::~Undefined), (Undefined::operator=),
  11195. (Undefined::dynamicCast), (Null::Null), (Null::~Null), (Null::operator=),
  11196. (Null::dynamicCast), (Boolean::Boolean), (Boolean::~Boolean),
  11197. (Boolean::operator=), (Boolean::value), (Boolean::dynamicCast), (String::String),
  11198. (String::~String), (String::operator=), (String::value), (String::dynamicCast),
  11199. (Number::Number), (Number::~Number), (Number::operator=), (Number::dynamicCast),
  11200. (Number::value), (Number::intValue), (Number::isNaN), (Number::isInf):
  11201. * src/kwq/KWQDef.h:
  11202. * src/kwq/KWQInputDialog.mm: (QInputDialog::getText):
  11203. * src/kwq/KWQKConfigBase.mm: (KConfig::KConfig):
  11204. * src/kwq/KWQKHTMLPart.h:
  11205. * src/kwq/KWQListImpl.h:
  11206. * src/kwq/KWQMapImpl.h:
  11207. * src/kwq/KWQMapImpl.mm: (KWQMapImpl::removeEqualInternal):
  11208. * src/kwq/KWQStrList.h:
  11209. * src/kwq/KWQStyle.h:
  11210. * src/kwq/KWQValueListImpl.h:
  11211. * src/kwq/KWQVectorImpl.h:
  11212. * src/kwq/kdecore/kapplication.h:
  11213. * src/kwq/kdecore/kconfig.h:
  11214. * src/kwq/kdecore/kdebug.h:
  11215. * src/kwq/kdecore/kprocess.h:
  11216. * src/kwq/kdecore/kstandarddirs.h:
  11217. * src/kwq/kdecore/kstaticdeleter.h:
  11218. * src/kwq/kdeui/kaction.h:
  11219. * src/kwq/kdeui/kcursor.h:
  11220. * src/kwq/khtml/khtml_factory.h:
  11221. * src/kwq/khtml/khtml_settings.h:
  11222. * src/kwq/kio/global.h:
  11223. * src/kwq/kio/kmimetype.h:
  11224. * src/kwq/kio/kprinter.h:
  11225. * src/kwq/kio/kprotocolmanager.h:
  11226. * src/kwq/kparts/browserextension.h:
  11227. * src/kwq/qt/qapplication.h:
  11228. * src/kwq/qt/qarray.h:
  11229. * src/kwq/qt/qcollection.h:
  11230. * src/kwq/qt/qcombobox.h:
  11231. * src/kwq/qt/qcstring.h:
  11232. * src/kwq/qt/qcursor.h:
  11233. * src/kwq/qt/qdict.h:
  11234. * src/kwq/qt/qevent.h:
  11235. * src/kwq/qt/qfontmetrics.h:
  11236. * src/kwq/qt/qinputdialog.h:
  11237. * src/kwq/qt/qlineedit.h:
  11238. * src/kwq/qt/qlist.h:
  11239. * src/kwq/qt/qmap.h:
  11240. * src/kwq/qt/qmemarray.h:
  11241. * src/kwq/qt/qnamespace.h:
  11242. * src/kwq/qt/qobject.h:
  11243. * src/kwq/qt/qpainter.h:
  11244. * src/kwq/qt/qpalette.h:
  11245. * src/kwq/qt/qpoint.h:
  11246. * src/kwq/qt/qpointarray.h:
  11247. * src/kwq/qt/qprinter.h:
  11248. * src/kwq/qt/qptrdict.h:
  11249. * src/kwq/qt/qptrlist.h:
  11250. * src/kwq/qt/qptrqueue.h:
  11251. * src/kwq/qt/qptrstack.h:
  11252. * src/kwq/qt/qptrvector.h:
  11253. * src/kwq/qt/qradiobutton.h:
  11254. * src/kwq/qt/qrect.h:
  11255. * src/kwq/qt/qregion.h:
  11256. * src/kwq/qt/qscrollview.h:
  11257. * src/kwq/qt/qsortedlist.h:
  11258. * src/kwq/qt/qstack.h:
  11259. * src/kwq/qt/qstring.h:
  11260. * src/kwq/qt/qstylesheet.h:
  11261. * src/kwq/qt/qtextedit.h:
  11262. * src/kwq/qt/qtextstream.h:
  11263. * src/kwq/qt/qvaluelist.h:
  11264. * src/kwq/qt/qvector.h:
  11265. * src/kwq/qt/qwidget.h:
  11266. * src/kwq/qt/qxml.h:
  11267. 2002-03-14 Maciej Stachowiak <mjs@apple.com>
  11268. Get kjs to compile and link by adding mssing files, setting up
  11269. autogenerated files to autogenerate, and making a handful of minor
  11270. tweaks. The test program passes. Yay!
  11271. * src/kdelibs/kjs/Makefile.am:
  11272. * src/kdelibs/kjs/create_hash_table:
  11273. * src/kdelibs/kjs/global_object.cpp:
  11274. * src/kdelibs/kjs/grammar.y:
  11275. * src/kdelibs/kjs/interpreter.h:
  11276. * src/kdelibs/kjs/keywords.table:
  11277. * src/kdelibs/kjs/kjs.cpp:
  11278. * src/kdelibs/kjs/kjs.h:
  11279. * src/kdelibs/kjs/lexer.lut.h:
  11280. * src/kdelibs/kjs/math_object.lut.h:
  11281. * src/kdelibs/kjs/ustring.h:
  11282. * src/kdelibs/kjs/value.h:
  11283. * src/kdelibs/kjs/.cvsignore:
  11284. 2002-03-14 Maciej Stachowiak <mjs@apple.com>
  11285. Hand-merge KDE3 beta 2 changes into this frankenstein file.
  11286. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient setDataSource:]),
  11287. (WCSetIFWebDataSourceMakeFunc), (WCSetIFErrorMakeFunc), (recursive),
  11288. (encodingFromContentType), (splitUrlTarget), (KHTMLPart::KHTMLPart),
  11289. (KHTMLPart::init), (KHTMLPart::~KHTMLPart), (KHTMLPart::browserExtension),
  11290. (KHTMLPart::view), (KHTMLPart::setMetaRefreshEnabled), (KHTMLPart::jScript),
  11291. (KHTMLPart::executeScript), (KHTMLPart::executeScheduledScript),
  11292. (KHTMLPart::docImpl), (KHTMLPart::xmlDocImpl), (KHTMLPart::slotData),
  11293. (KHTMLPart::begin), (KHTMLPart::write), (KHTMLPart::end),
  11294. (KHTMLPart::checkCompleted), (KHTMLPart::settings), (KHTMLPart::completeURL),
  11295. (KHTMLPart::scheduleRedirection), (KHTMLPart::setEncoding),
  11296. (KHTMLPart::encoding), (KHTMLPart::gotoAnchor), (KHTMLPart::setFontSizes),
  11297. (KHTMLPart::fontSizes), (KHTMLPart::onlyLocalReferences),
  11298. (KHTMLPart::setOnlyLocalReferences), (KHTMLPart::findTextBegin),
  11299. (KHTMLPart::findTextNext), (KHTMLPart::selectedText), (KHTMLPart::hasSelection),
  11300. (KHTMLPart::selection), (KHTMLPart::setSelection), (KHTMLPart::overURL),
  11301. (KHTMLPart::urlSelected), (KHTMLPart::requestFrame),
  11302. (KHTMLPart::requestFrameName), (KHTMLPart::requestObject),
  11303. (KHTMLPart::submitForm), (KHTMLPart::findFrame), (KHTMLPart::frameExists),
  11304. (KHTMLPart::parentPart), (KHTMLPart::setJSStatusBarText),
  11305. (KHTMLPart::setJSDefaultStatusBarText), (KHTMLPart::jsStatusBarText),
  11306. (KHTMLPart::jsDefaultStatusBarText), (KHTMLPart::frames),
  11307. (KHTMLPart::customEvent), (KHTMLPart::khtmlMousePressEvent):
  11308. 2002-03-13 Maciej Stachowiak <mjs@apple.com>
  11309. Merge KDE3 beta 2 changes into this frankenstein file.
  11310. * src/kwq/KWQKloader.mm: (CachedCSSStyleSheet::CachedCSSStyleSheet),
  11311. (CachedCSSStyleSheet::ref), (CachedCSSStyleSheet::data),
  11312. (CachedCSSStyleSheet::checkNotify), (CachedCSSStyleSheet::error),
  11313. (CachedScript::CachedScript), (CachedScript::ref), (CachedScript::data),
  11314. (CachedScript::checkNotify), (CachedScript::error), (CachedImage::CachedImage),
  11315. (CachedImage::ref), (CachedImage::tiled_pixmap), (CachedImage::pixmap_size),
  11316. (CachedImage::do_notify), (CachedImage::movieStatus), (CachedImage::movieResize),
  11317. (CachedImage::setShowAnimations), (CachedImage::deleteMovie),
  11318. (CachedImage::data), (Request::Request), (DocLoader::DocLoader),
  11319. (DocLoader::requestImage), (DocLoader::requestStyleSheet),
  11320. (DocLoader::requestScript), (DocLoader::setAutoloadImages),
  11321. (DocLoader::setShowAnimations), (Loader::Loader), (Loader::~Loader),
  11322. (Loader::load), (Loader::servePendingRequests), (Loader::slotFinished),
  11323. (Loader::slotData), (Loader::numRequests), (Loader::cancelRequests),
  11324. (Cache::init), (Cache::requestImage), (Cache::requestStyleSheet),
  11325. (Cache::preloadStyleSheet), (Cache::requestScript), (Cache::preloadScript),
  11326. (Cache::flush):
  11327. 2002-03-13 Maciej Stachowiak <mjs@apple.com>
  11328. Clean up this frankenstein file in preparation for merging KDE
  11329. beta 2 changes.
  11330. * src/kwq/KWQKloader.mm: (CachedCSSStyleSheet::CachedCSSStyleSheet),
  11331. (CachedScript::CachedScript), (CachedImage::CachedImage),
  11332. (CachedImage::pixmap_size), (CachedImage::movieResize), (CachedImage::data),
  11333. (DocLoader::DocLoader), (Loader::Loader), (Loader::~Loader), (Loader::load),
  11334. (Loader::servePendingRequests), (Loader::slotFinished), (Loader::slotData),
  11335. (Loader::numRequests), (Loader::cancelRequests), (Cache::requestImage),
  11336. (Cache::requestStyleSheet), (Cache::requestScript), (Cache::flush):
  11337. 2002-03-13 Maciej Stachowiak <mjs@apple.com>
  11338. Remove files from build that are no longer in KDE 3 beta 2:
  11339. * src/kdelibs/khtml/ecma/Makefile.am:
  11340. * src/kdelibs/khtml/ecma/kjs_text.cpp:
  11341. * src/kdelibs/khtml/ecma/kjs_text.h:
  11342. * src/kdelibs/khtml/misc/Makefile.am:
  11343. * src/kdelibs/khtml/misc/font.cpp:
  11344. * src/kdelibs/khtml/misc/font.h:
  11345. * src/kdelibs/khtml/rendering/Makefile.am:
  11346. * src/kdelibs/khtml/rendering/render_hr.cpp:
  11347. * src/kdelibs/khtml/rendering/render_hr.h:
  11348. 2002-03-08 Don Melton <gramps@apple.com>
  11349. Merged kdelibs from KDE 3 beta 2 into our 2.2.1-based sources.
  11350. * src/kdelibs/kdecore/kentities.gperf:
  11351. * src/kdelibs/khtml/css/css_ruleimpl.cpp: (CSSRuleImpl::CSSRuleImpl),
  11352. (CSSRuleImpl::cssText), (CSSCharsetRuleImpl::CSSCharsetRuleImpl),
  11353. (CSSImportRuleImpl::CSSImportRuleImpl), (CSSImportRuleImpl::~CSSImportRuleImpl),
  11354. (CSSImportRuleImpl::setStyleSheet), (CSSImportRuleImpl::init),
  11355. (CSSMediaRuleImpl::CSSMediaRuleImpl), (CSSMediaRuleImpl::~CSSMediaRuleImpl),
  11356. (CSSMediaRuleImpl::cssRules), (CSSMediaRuleImpl::appendRule),
  11357. (CSSMediaRuleImpl::insertRule), (CSSMediaRuleImpl::deleteRule),
  11358. (CSSRuleListImpl::~CSSRuleListImpl), (CSSPageRuleImpl::selectorText),
  11359. (CSSStyleRuleImpl::selectorText), (CSSStyleRuleImpl::setSelector),
  11360. (CSSUnknownRuleImpl::~CSSUnknownRuleImpl), (CSSRuleListImpl::CSSRuleListImpl),
  11361. (CSSRuleListImpl::length), (CSSRuleListImpl::item),
  11362. (CSSRuleListImpl::deleteRule), (CSSRuleListImpl::insertRule):
  11363. * src/kdelibs/khtml/css/css_ruleimpl.h:
  11364. * src/kdelibs/khtml/css/css_stylesheetimpl.cpp: (StyleSheetImpl::setMedia),
  11365. (CSSStyleSheetImpl::CSSStyleSheetImpl), (CSSStyleSheetImpl::parseString),
  11366. (StyleSheetListImpl::~StyleSheetListImpl), (StyleSheetListImpl::length),
  11367. (StyleSheetListImpl::item), (MediaListImpl::MediaListImpl),
  11368. (MediaListImpl::contains), (MediaListImpl::item), (MediaListImpl::deleteMedium),
  11369. (MediaListImpl::appendMedium), (MediaListImpl::setMediaText):
  11370. * src/kdelibs/khtml/css/css_stylesheetimpl.h:
  11371. * src/kdelibs/khtml/css/css_valueimpl.cpp:
  11372. (CSSStyleDeclarationImpl::CSSStyleDeclarationImpl),
  11373. (CSSStyleDeclarationImpl::getPropertyCSSValue),
  11374. (CSSStyleDeclarationImpl::removeProperty),
  11375. (CSSStyleDeclarationImpl::setProperty),
  11376. (CSSStyleDeclarationImpl::setLengthProperty), (CSSStyleDeclarationImpl::item),
  11377. (CSSValueListImpl::cssValueType), (CSSPrimitiveValueImpl::cssValueType),
  11378. (CSSImageValueImpl::CSSImageValueImpl),
  11379. (FontFamilyValueImpl::FontFamilyValueImpl):
  11380. * src/kdelibs/khtml/css/css_valueimpl.h:
  11381. * src/kdelibs/khtml/css/csshelper.cpp: (khtml::computeLengthFloat),
  11382. (khtml::setFontSize):
  11383. * src/kdelibs/khtml/css/csshelper.h:
  11384. * src/kdelibs/khtml/css/cssparser.cpp: (StyleBaseImpl::baseURL),
  11385. (StyleBaseImpl::parseAtRule), (StyleBaseImpl::parseSelector2),
  11386. (StyleBaseImpl::parseSelector), (StyleBaseImpl::parseProperty),
  11387. (StyleBaseImpl::parseProperties), (StyleBaseImpl::parseFont),
  11388. (StyleBaseImpl::parseValue), (StyleBaseImpl::setParsedValue),
  11389. (StyleBaseImpl::parseShortHand), (StyleBaseImpl::parseBackgroundPosition),
  11390. (StyleBaseImpl::parseContent), (StyleBaseImpl::splitContent),
  11391. (StyleBaseImpl::splitShorthandProperties), (StyleBaseImpl::parse2Values),
  11392. (StyleBaseImpl::parse4Values), (StyleBaseImpl::parseUnit),
  11393. (StyleBaseImpl::parseStyleRule), (StyleBaseImpl::preprocess),
  11394. (CSSSelector::specificity):
  11395. * src/kdelibs/khtml/css/cssparser.h:
  11396. * src/kdelibs/khtml/css/cssproperties.in:
  11397. * src/kdelibs/khtml/css/cssstyleselector.cpp:
  11398. (CSSStyleSelector::CSSStyleSelector), (CSSStyleSelector::addSheet),
  11399. (CSSStyleSelector::loadDefaultStyle), (CSSStyleSelector::clear),
  11400. (CSSStyleSelector::styleForElement), (CSSStyleSelector::addInlineDeclarations),
  11401. (CSSStyleSelector::checkSelector), (CSSStyleSelector::checkOneSelector),
  11402. (CSSStyleSelector::buildLists), (CSSStyleSelectorList::CSSStyleSelectorList),
  11403. (CSSStyleSelectorList::append), (CSSStyleSelectorList::collect),
  11404. (CSSOrderedPropertyList::compareItems), (CSSOrderedPropertyList::append),
  11405. (convertToLength), (khtml::applyRule):
  11406. * src/kdelibs/khtml/css/cssstyleselector.h:
  11407. * src/kdelibs/khtml/css/cssvalues.in:
  11408. * src/kdelibs/khtml/css/html4.css:
  11409. * src/kdelibs/khtml/css/makeprop:
  11410. * src/kdelibs/khtml/css/makevalues:
  11411. * src/kdelibs/khtml/dom/css_rule.cpp: (CSSRuleList::CSSRuleList):
  11412. * src/kdelibs/khtml/dom/css_rule.h:
  11413. * src/kdelibs/khtml/dom/css_stylesheet.cpp: (MediaList::length),
  11414. (MediaList::item), (MediaList::deleteMedium), (MediaList::appendMedium):
  11415. * src/kdelibs/khtml/dom/css_stylesheet.h:
  11416. * src/kdelibs/khtml/dom/css_value.cpp: (CSSStyleDeclaration::getPropertyValue),
  11417. (CSSStyleDeclaration::getPropertyCSSValue),
  11418. (CSSStyleDeclaration::removeProperty),
  11419. (CSSStyleDeclaration::getPropertyPriority), (CSSStyleDeclaration::setProperty),
  11420. (CSSPrimitiveValue::setFloatValue):
  11421. * src/kdelibs/khtml/dom/css_value.h:
  11422. * src/kdelibs/khtml/dom/dom2_events.cpp: (Event::type), (Event::eventModuleName):
  11423. * src/kdelibs/khtml/dom/dom2_events.h:
  11424. * src/kdelibs/khtml/dom/dom2_range.cpp:
  11425. * src/kdelibs/khtml/dom/dom2_range.h:
  11426. * src/kdelibs/khtml/dom/dom2_traversal.cpp:
  11427. * src/kdelibs/khtml/dom/dom2_traversal.h:
  11428. * src/kdelibs/khtml/dom/dom2_views.cpp: (AbstractView::document),
  11429. (AbstractView::getComputedStyle):
  11430. * src/kdelibs/khtml/dom/dom2_views.h:
  11431. * src/kdelibs/khtml/dom/dom_core.h:
  11432. * src/kdelibs/khtml/dom/dom_doc.cpp: (DOMImplementation::hasFeature),
  11433. (DOMImplementation::createDocumentType), (DOMImplementation::createDocument),
  11434. (DOMImplementation::createHTMLDocument), (DOMImplementation::getInterface),
  11435. (DOMImplementation::createCSSStyleSheet), (Document::Document),
  11436. (Document::operator = ), (Document::createAttribute),
  11437. (Document::createAttributeNS), (Document::getElementById),
  11438. (Document::getElementsByTagName), (Document::getElementsByTagNameNS),
  11439. (Document::importNode), (Document::isHTMLDocument), (Document::createRange),
  11440. (Document::completeURL), (DocumentFragment::operator = ),
  11441. (DocumentType::DocumentType), (DocumentType::operator = ), (DocumentType::name),
  11442. (DocumentType::entities), (DocumentType::notations), (DocumentType::publicId),
  11443. (DocumentType::systemId), (DocumentType::internalSubset):
  11444. * src/kdelibs/khtml/dom/dom_doc.h:
  11445. * src/kdelibs/khtml/dom/dom_element.cpp: (Attr::operator = ), (Attr::name),
  11446. (Attr::ownerElement), (Attr::value), (Attr::setValue), (Element::operator = ),
  11447. (Element::tagName), (Element::getAttribute), (Element::setAttribute),
  11448. (Element::removeAttribute), (Element::getAttributeNode),
  11449. (Element::setAttributeNode), (Element::removeAttributeNode),
  11450. (Element::getElementsByTagName), (Element::getElementsByTagNameNS),
  11451. (Element::getAttributeNS), (Element::setAttributeNS),
  11452. (Element::removeAttributeNS), (Element::getAttributeNodeNS),
  11453. (Element::setAttributeNodeNS), (Element::hasAttribute),
  11454. (Element::hasAttributeNS), (Element::khtmlValidAttrName),
  11455. (Element::khtmlValidPrefix), (Element::khtmlValidQualifiedName),
  11456. (Element::khtmlMalformedQualifiedName), (Element::khtmlMalformedPrefix):
  11457. * src/kdelibs/khtml/dom/dom_element.h:
  11458. * src/kdelibs/khtml/dom/dom_exception.h:
  11459. * src/kdelibs/khtml/dom/dom_html.h:
  11460. * src/kdelibs/khtml/dom/dom_misc.cpp: (DomShared::deleteMe):
  11461. * src/kdelibs/khtml/dom/dom_misc.h:
  11462. * src/kdelibs/khtml/dom/dom_node.cpp: (NamedNodeMap::getNamedItem),
  11463. (NamedNodeMap::setNamedItem), (NamedNodeMap::removeNamedItem),
  11464. (NamedNodeMap::item), (NamedNodeMap::getNamedItemNS),
  11465. (NamedNodeMap::setNamedItemNS), (NamedNodeMap::removeNamedItemNS),
  11466. (NamedNodeMap::length), (throw), (Node::operator == ), (Node::operator != ),
  11467. (Node::nodeValue), (Node::setNodeValue), (Node::nodeType), (Node::parentNode),
  11468. (Node::childNodes), (Node::firstChild), (Node::lastChild),
  11469. (Node::previousSibling), (Node::nextSibling), (Node::attributes),
  11470. (Node::ownerDocument), (Node::insertBefore), (Node::replaceChild),
  11471. (Node::removeChild), (Node::appendChild), (Node::hasAttributes),
  11472. (Node::hasChildNodes), (Node::cloneNode), (Node::normalize), (Node::isSupported),
  11473. (Node::namespaceURI), (Node::prefix), (Node::setPrefix), (Node::localName),
  11474. (Node::addEventListener), (Node::removeEventListener), (Node::elementId),
  11475. (Node::index), (Node::toHTML), (Node::applyChanges), (Node::getCursor),
  11476. (Node::getRect), (NodeList::item), (NodeList::length):
  11477. * src/kdelibs/khtml/dom/dom_node.h:
  11478. * src/kdelibs/khtml/dom/dom_string.cpp: (DOMString::lower), (DOMString::upper),
  11479. (DOM::operator==):
  11480. * src/kdelibs/khtml/dom/dom_string.h:
  11481. * src/kdelibs/khtml/dom/dom_text.cpp: (CharacterData::operator = ),
  11482. (CharacterData::setData), (CharacterData::substringData),
  11483. (CharacterData::appendData), (CharacterData::insertData),
  11484. (CharacterData::deleteData), (CharacterData::replaceData), (Comment::operator =
  11485. ), (Text::operator = ), (Text::splitText):
  11486. * src/kdelibs/khtml/dom/dom_text.h:
  11487. * src/kdelibs/khtml/dom/dom_xml.cpp: (CDATASection::operator = ),
  11488. (Entity::operator = ), (Entity::publicId), (Entity::systemId),
  11489. (Entity::notationName), (EntityReference::operator = ), (Notation::operator = ),
  11490. (Notation::publicId), (Notation::systemId), (ProcessingInstruction::operator = ),
  11491. (ProcessingInstruction::target), (ProcessingInstruction::data),
  11492. (ProcessingInstruction::setData):
  11493. * src/kdelibs/khtml/dom/dom_xml.h:
  11494. * src/kdelibs/khtml/dom/html_base.cpp: (HTMLFrameElement::setSrc),
  11495. (HTMLFrameElement::contentDocument):
  11496. * src/kdelibs/khtml/dom/html_base.h:
  11497. * src/kdelibs/khtml/dom/html_block.cpp:
  11498. * src/kdelibs/khtml/dom/html_block.h:
  11499. * src/kdelibs/khtml/dom/html_document.cpp: (HTMLDocument::HTMLDocument),
  11500. (HTMLDocument::operator = ), (HTMLDocument::title), (HTMLDocument::completeURL),
  11501. (HTMLDocument::lastModified), (HTMLDocument::cookie), (HTMLDocument::setCookie),
  11502. (HTMLDocument::getElementsByName):
  11503. * src/kdelibs/khtml/dom/html_document.h:
  11504. * src/kdelibs/khtml/dom/html_element.cpp: (HTMLElement::operator = ),
  11505. (HTMLElement::removeCSSProperty), (HTMLElement::addCSSProperty),
  11506. (HTMLElement::setInnerText), (HTMLElement::children):
  11507. * src/kdelibs/khtml/dom/html_element.h:
  11508. * src/kdelibs/khtml/dom/html_form.cpp: (HTMLInputElement::setDefaultChecked),
  11509. (HTMLInputElement::name), (HTMLInputElement::setName), (HTMLInputElement::src),
  11510. (HTMLInputElement::setType), (HTMLInputElement::blur), (HTMLInputElement::focus),
  11511. (HTMLInputElement::select), (HTMLInputElement::click), (HTMLSelectElement::name),
  11512. (HTMLSelectElement::setName), (HTMLSelectElement::blur),
  11513. (HTMLSelectElement::focus), (HTMLTextAreaElement::name),
  11514. (HTMLTextAreaElement::setName), (HTMLTextAreaElement::blur),
  11515. (HTMLTextAreaElement::focus), (HTMLTextAreaElement::select),
  11516. (HTMLOptionElement::value), (HTMLOptionElement::setValue):
  11517. * src/kdelibs/khtml/dom/html_form.h:
  11518. * src/kdelibs/khtml/dom/html_head.cpp:
  11519. * src/kdelibs/khtml/dom/html_head.h:
  11520. * src/kdelibs/khtml/dom/html_image.cpp: (HTMLImageElement::border),
  11521. (HTMLImageElement::setBorder), (HTMLImageElement::height),
  11522. (HTMLImageElement::setHeight), (HTMLImageElement::hspace),
  11523. (HTMLImageElement::setHspace), (HTMLImageElement::src),
  11524. (HTMLImageElement::vspace), (HTMLImageElement::setVspace),
  11525. (HTMLImageElement::width), (HTMLImageElement::setWidth):
  11526. * src/kdelibs/khtml/dom/html_image.h:
  11527. * src/kdelibs/khtml/dom/html_inline.cpp: (HTMLAnchorElement::blur),
  11528. (HTMLAnchorElement::focus), (HTMLIFrameElement::contentDocument),
  11529. (HTMLModElement::HTMLModElement), (HTMLQuoteElement::HTMLQuoteElement):
  11530. * src/kdelibs/khtml/dom/html_inline.h:
  11531. * src/kdelibs/khtml/dom/html_list.cpp:
  11532. * src/kdelibs/khtml/dom/html_list.h:
  11533. * src/kdelibs/khtml/dom/html_misc.cpp: (HTMLCollection::base),
  11534. (HTMLCollection::firstItem), (HTMLCollection::nextItem),
  11535. (HTMLCollection::nextNamedItem):
  11536. * src/kdelibs/khtml/dom/html_misc.h:
  11537. * src/kdelibs/khtml/dom/html_object.cpp: (HTMLObjectElement::setWidth),
  11538. (HTMLObjectElement::contentDocument):
  11539. * src/kdelibs/khtml/dom/html_object.h:
  11540. * src/kdelibs/khtml/dom/html_table.cpp:
  11541. * src/kdelibs/khtml/dom/html_table.h:
  11542. * src/kdelibs/khtml/ecma/kjs_binding.cpp: (DOMObject::get), (DOMObject::put),
  11543. (DOMObject::toString), (DOMFunction::get), (DOMFunction::call),
  11544. (ScriptInterpreter::~ScriptInterpreter), (ScriptInterpreter::forgetDOMObject),
  11545. (ScriptInterpreter::mark), (ScriptInterpreter::isWindowOpenAllowed),
  11546. (KJS::toNode), (KJS::getString), (KJS::ValueToVariant):
  11547. * src/kdelibs/khtml/ecma/kjs_binding.h:
  11548. * src/kdelibs/khtml/ecma/kjs_css.cpp:
  11549. (DOMCSSStyleDeclaration::DOMCSSStyleDeclaration),
  11550. (DOMCSSStyleDeclaration::~DOMCSSStyleDeclaration),
  11551. (DOMCSSStyleDeclaration::hasProperty), (DOMCSSStyleDeclaration::tryGet),
  11552. (DOMCSSStyleDeclaration::tryPut), (DOMCSSStyleDeclarationProtoFunc::tryCall),
  11553. (KJS::getDOMCSSStyleDeclaration), (DOMStyleSheet::~DOMStyleSheet),
  11554. (DOMStyleSheet::tryGet), (DOMStyleSheet::getValueProperty),
  11555. (DOMStyleSheet::tryPut), (KJS::getDOMStyleSheet),
  11556. (DOMStyleSheetList::~DOMStyleSheetList), (DOMStyleSheetList::tryGet),
  11557. (KJS::getDOMStyleSheetList), (DOMStyleSheetListFunc::tryCall),
  11558. (DOMMediaList::DOMMediaList), (DOMMediaList::~DOMMediaList),
  11559. (DOMMediaList::tryGet), (DOMMediaList::tryPut), (KJS::getDOMMediaList),
  11560. (KJS::DOMMediaListProtoFunc::tryCall), (DOMCSSStyleSheet::DOMCSSStyleSheet),
  11561. (DOMCSSStyleSheet::tryGet), (DOMCSSStyleSheetProtoFunc::tryCall),
  11562. (DOMCSSRuleList::~DOMCSSRuleList), (DOMCSSRuleList::tryGet),
  11563. (DOMCSSRuleListFunc::tryCall), (KJS::getDOMCSSRuleList),
  11564. (DOMCSSRule::~DOMCSSRule), (DOMCSSRule::classInfo), (DOMCSSRule::tryGet),
  11565. (DOMCSSRule::getValueProperty), (DOMCSSRule::tryPut), (DOMCSSRule::putValue),
  11566. (DOMCSSRuleFunc::tryCall), (KJS::getDOMCSSRule), (KJS::toCSSRule),
  11567. (CSSRuleConstructor::tryGet), (CSSRuleConstructor::getValueProperty),
  11568. (KJS::getCSSRuleConstructor), (DOMCSSValue::~DOMCSSValue), (DOMCSSValue::tryGet),
  11569. (DOMCSSValue::tryPut), (KJS::getDOMCSSValue), (CSSValueConstructor::tryGet),
  11570. (CSSValueConstructor::getValueProperty), (KJS::getCSSValueConstructor),
  11571. (DOMCSSPrimitiveValue::DOMCSSPrimitiveValue), (DOMCSSPrimitiveValue::tryGet),
  11572. (DOMCSSPrimitiveValueProtoFunc::tryCall), (CSSPrimitiveValueConstructor::tryGet),
  11573. (CSSPrimitiveValueConstructor::getValueProperty),
  11574. (KJS::getCSSPrimitiveValueConstructor), (DOMCSSValueList::DOMCSSValueList),
  11575. (DOMCSSValueList::tryGet), (DOMCSSValueListFunc::tryCall), (DOMRGBColor::tryGet),
  11576. (KJS::getDOMRGBColor), (DOMRect::~DOMRect), (DOMRect::tryGet), (KJS::getDOMRect),
  11577. (DOMCounter::~DOMCounter), (DOMCounter::tryGet), (KJS::getDOMCounter):
  11578. * src/kdelibs/khtml/ecma/kjs_css.h:
  11579. * src/kdelibs/khtml/ecma/kjs_debugwin.cpp: (FakeModal::eventFilter),
  11580. (FakeModal::enable), (FakeModal::disable), (StackFrame::toString),
  11581. (SourceFragment::SourceFragment), (SourceFragment::~SourceFragment),
  11582. (KJSDebugWin::KJSDebugWin), (KJSDebugWin::~KJSDebugWin),
  11583. (KJSDebugWin::createInstance), (KJSDebugWin::destroyInstance),
  11584. (KJSDebugWin::instance), (KJSDebugWin::next), (KJSDebugWin::step),
  11585. (KJSDebugWin::cont), (KJSDebugWin::stop), (KJSDebugWin::showFrame),
  11586. (KJSDebugWin::sourceSelected), (KJSDebugWin::eval), (KJSDebugWin::closeEvent),
  11587. (KJSDebugWin::sourceParsed), (KJSDebugWin::sourceUnused), (KJSDebugWin::error),
  11588. (KJSDebugWin::atLine), (KJSDebugWin::callEvent), (KJSDebugWin::returnEvent),
  11589. (KJSDebugWin::setCode), (KJSDebugWin::highLight),
  11590. (KJSDebugWin::setNextSourceInfo), (KJSDebugWin::setSourceFile),
  11591. (KJSDebugWin::appendSourceFile), (KJSDebugWin::enterSession),
  11592. (KJSDebugWin::leaveSession), (KJSDebugWin::updateFrameList),
  11593. (KJSDebugWin::setBreakpoint), (KJSDebugWin::deleteBreakpoint),
  11594. (KJSDebugWin::clearAllBreakpoints), (KJSDebugWin::breakpointLine),
  11595. (KJSDebugWin::haveBreakpoint):
  11596. * src/kdelibs/khtml/ecma/kjs_debugwin.h:
  11597. * src/kdelibs/khtml/ecma/kjs_dom.cpp: (DOMNode::DOMNode), (DOMNode::~DOMNode),
  11598. (DOMNode::toBoolean), (DOMNode::tryGet), (DOMNode::getValueProperty),
  11599. (DOMNode::tryPut), (DOMNode::putValue), (DOMNode::toPrimitive),
  11600. (DOMNode::toString), (DOMNode::setListener), (DOMNode::getListener),
  11601. (DOMNode::eventHandlerScope), (DOMNodeProtoFunc::tryCall),
  11602. (DOMNodeList::~DOMNodeList), (DOMNodeList::hasProperty), (DOMNodeList::tryGet),
  11603. (DOMNodeList::call), (DOMNodeList::tryCall), (DOMNodeListFunc::DOMNodeListFunc),
  11604. (DOMNodeListFunc::tryCall), (DOMAttr::tryGet), (DOMAttr::getValueProperty),
  11605. (DOMAttr::tryPut), (DOMAttr::putValue), (DOMDocument::DOMDocument),
  11606. (DOMDocument::tryGet), (DOMDocument::getValueProperty),
  11607. (DOMDocumentProtoFunc::tryCall), (DOMElement::DOMElement), (DOMElement::tryGet),
  11608. (DOMElementProtoFunc::tryCall), (DOMDOMImplementation::DOMDOMImplementation),
  11609. (DOMDOMImplementation::~DOMDOMImplementation),
  11610. (DOMDOMImplementationProtoFunc::tryCall), (DOMDocumentType::DOMDocumentType),
  11611. (DOMDocumentType::tryGet), (DOMDocumentType::getValueProperty),
  11612. (DOMNamedNodeMap::DOMNamedNodeMap), (DOMNamedNodeMap::~DOMNamedNodeMap),
  11613. (DOMNamedNodeMap::hasProperty), (DOMNamedNodeMap::tryGet),
  11614. (DOMNamedNodeMapProtoFunc::tryCall), (DOMProcessingInstruction::tryGet),
  11615. (DOMProcessingInstruction::getValueProperty), (DOMProcessingInstruction::tryPut),
  11616. (DOMNotation::tryGet), (DOMNotation::getValueProperty), (DOMEntity::tryGet),
  11617. (DOMEntity::getValueProperty), (KJS::getDOMNode), (KJS::getDOMNamedNodeMap),
  11618. (KJS::getDOMNodeList), (KJS::getDOMDOMImplementation), (NodeConstructor::tryGet),
  11619. (NodeConstructor::getValueProperty), (KJS::getNodeConstructor),
  11620. (DOMExceptionConstructor::tryGet), (DOMExceptionConstructor::getValueProperty),
  11621. (KJS::getDOMExceptionConstructor),
  11622. (DOMNamedNodesCollection::DOMNamedNodesCollection),
  11623. (DOMNamedNodesCollection::tryGet), (DOMCharacterData::DOMCharacterData),
  11624. (DOMCharacterData::tryGet), (DOMCharacterData::getValueProperty),
  11625. (DOMCharacterData::tryPut), (DOMCharacterDataProtoFunc::tryCall),
  11626. (DOMText::DOMText), (DOMText::tryGet), (DOMTextProtoFunc::tryCall):
  11627. * src/kdelibs/khtml/ecma/kjs_dom.h:
  11628. * src/kdelibs/khtml/ecma/kjs_events.cpp: (JSEventListener::JSEventListener),
  11629. (JSEventListener::~JSEventListener), (JSEventListener::handleEvent),
  11630. (KJS::getNodeEventListener), (EventConstructor::tryGet),
  11631. (EventConstructor::getValueProperty), (KJS::getEventConstructor),
  11632. (DOMEvent::DOMEvent), (DOMEvent::~DOMEvent), (DOMEvent::tryGet),
  11633. (DOMEvent::getValueProperty), (DOMEventProtoFunc::tryCall), (KJS::getDOMEvent),
  11634. (KJS::toEvent), (EventExceptionConstructor::tryGet),
  11635. (EventExceptionConstructor::getValueProperty),
  11636. (KJS::getEventExceptionConstructor), (DOMUIEvent::tryGet),
  11637. (DOMUIEvent::getValueProperty), (DOMUIEventProtoFunc::tryCall),
  11638. (DOMMouseEvent::tryGet), (DOMMouseEvent::getValueProperty),
  11639. (DOMMouseEventProtoFunc::tryCall), (MutationEventConstructor::tryGet),
  11640. (MutationEventConstructor::getValueProperty), (KJS::getMutationEventConstructor),
  11641. (DOMMutationEvent::tryGet), (DOMMutationEvent::getValueProperty),
  11642. (DOMMutationEventProtoFunc::tryCall):
  11643. * src/kdelibs/khtml/ecma/kjs_events.h:
  11644. * src/kdelibs/khtml/ecma/kjs_html.cpp: (KJS::HTMLDocFunction::tryCall),
  11645. (KJS::HTMLDocument::hasProperty), (KJS::HTMLDocument::tryGet),
  11646. (KJS::HTMLDocument::tryPut), (KJS::HTMLDocument::putValue),
  11647. (KJS::HTMLElement::classInfo), (KJS::HTMLElement::tryGet),
  11648. (KJS::HTMLElement::getValueProperty), (KJS::HTMLElement::hasProperty),
  11649. (KJS::HTMLElement::toString), (KJS::HTMLElement::eventHandlerScope),
  11650. (HTMLElementFunction::HTMLElementFunction), (KJS::HTMLElementFunction::tryCall),
  11651. (KJS::HTMLElement::tryPut), (KJS::HTMLElement::putValue),
  11652. (HTMLCollection::HTMLCollection), (HTMLCollection::~HTMLCollection),
  11653. (KJS::HTMLCollection::hasProperty), (KJS::HTMLCollection::tryGet),
  11654. (KJS::HTMLCollection::call), (KJS::HTMLCollection::tryCall),
  11655. (KJS::HTMLCollection::getNamedItems), (KJS::HTMLCollectionProtoFunc::tryCall),
  11656. (KJS::HTMLSelectCollection::tryGet), (KJS::HTMLSelectCollection::tryPut),
  11657. (OptionConstructorImp::OptionConstructorImp),
  11658. (OptionConstructorImp::implementsConstruct), (OptionConstructorImp::construct),
  11659. (ImageConstructorImp::ImageConstructorImp),
  11660. (ImageConstructorImp::implementsConstruct), (ImageConstructorImp::construct),
  11661. (Image::tryGet), (Image::getValueProperty), (Image::tryPut),
  11662. (KJS::getHTMLCollection), (KJS::getSelectHTMLCollection):
  11663. * src/kdelibs/khtml/ecma/kjs_html.h:
  11664. * src/kdelibs/khtml/ecma/kjs_navigator.cpp: (Navigator::Navigator),
  11665. (Navigator::get), (Navigator::getValueProperty), (PluginBase::PluginBase),
  11666. (Plugins::get), (MimeTypes::get), (Plugin::get), (MimeType::get),
  11667. (PluginsFunc::tryCall), (NavigatorFunc::tryCall):
  11668. * src/kdelibs/khtml/ecma/kjs_navigator.h:
  11669. * src/kdelibs/khtml/ecma/kjs_proxy.cpp: (KJSProxyImpl::KJSProxyImpl),
  11670. (KJSProxyImpl::~KJSProxyImpl), (KJSProxyImpl::evaluate), (KJSProxyImpl::clear),
  11671. (KJSProxyImpl::createHTMLEventHandler), (KJSProxyImpl::finishedWithEvent),
  11672. (KJSProxyImpl::interpreter), (KJSProxyImpl::setDebugEnabled),
  11673. (KJSProxyImpl::paused), (KJSProxyImpl::setSourceFile),
  11674. (KJSProxyImpl::appendSourceFile), (TestFunctionImp::call),
  11675. (KJSProxyImpl::initScript), (KJSProxy::proxy), (kjs_html_init):
  11676. * src/kdelibs/khtml/ecma/kjs_proxy.h:
  11677. * src/kdelibs/khtml/ecma/kjs_range.cpp: (DOMRange::DOMRange),
  11678. (DOMRange::~DOMRange), (DOMRange::tryGet), (DOMRange::getValueProperty),
  11679. (DOMRangeProtoFunc::tryCall), (KJS::getDOMRange), (RangeConstructor::tryGet),
  11680. (RangeConstructor::getValueProperty), (KJS::getRangeConstructor), (KJS::toRange):
  11681. * src/kdelibs/khtml/ecma/kjs_range.h:
  11682. * src/kdelibs/khtml/ecma/kjs_traversal.cpp: (DOMNodeIterator::DOMNodeIterator),
  11683. (DOMNodeIterator::~DOMNodeIterator), (DOMNodeIterator::tryGet),
  11684. (DOMNodeIterator::getValueProperty), (DOMNodeIteratorProtoFunc::tryCall),
  11685. (KJS::getDOMNodeIterator), (NodeFilterConstructor::tryGet),
  11686. (NodeFilterConstructor::getValueProperty), (KJS::getNodeFilterConstructor),
  11687. (DOMNodeFilter::DOMNodeFilter), (DOMNodeFilter::~DOMNodeFilter),
  11688. (DOMNodeFilterProtoFunc::tryCall), (KJS::getDOMNodeFilter),
  11689. (DOMTreeWalker::DOMTreeWalker), (DOMTreeWalker::~DOMTreeWalker),
  11690. (DOMTreeWalker::tryGet), (DOMTreeWalker::getValueProperty),
  11691. (DOMTreeWalker::tryPut), (DOMTreeWalkerProtoFunc::tryCall),
  11692. (KJS::getDOMTreeWalker), (KJS::toNodeFilter), (JSNodeFilter::JSNodeFilter),
  11693. (JSNodeFilter::acceptNode):
  11694. * src/kdelibs/khtml/ecma/kjs_traversal.h:
  11695. * src/kdelibs/khtml/ecma/kjs_views.cpp: (DOMAbstractView::~DOMAbstractView),
  11696. (DOMAbstractView::tryGet), (DOMAbstractViewFunc::tryCall),
  11697. (KJS::getDOMAbstractView), (KJS::toAbstractView):
  11698. * src/kdelibs/khtml/ecma/kjs_views.h:
  11699. * src/kdelibs/khtml/ecma/kjs_window.cpp: (Screen::Screen), (Screen::get),
  11700. (Screen::getValueProperty), (Window::Window), (Window::retrieveWindow),
  11701. (Window::retrieveActive), (Window::retrieve), (Window::mark),
  11702. (Window::hasProperty), (Window::toString), (Window::get), (Window::put),
  11703. (Window::toBoolean), (Window::scheduleClose), (Window::isSafeScript),
  11704. (Window::setListener), (Window::getListener), (Window::getJSEventListener),
  11705. (Window::clear), (Window::setCurrentEvent), (WindowFunc::tryCall),
  11706. (ScheduledAction::ScheduledAction), (ScheduledAction::execute),
  11707. (ScheduledAction::~ScheduledAction), (WindowQObject::WindowQObject),
  11708. (WindowQObject::~WindowQObject), (WindowQObject::parentDestroyed),
  11709. (WindowQObject::installTimeout), (WindowQObject::clearTimeout),
  11710. (WindowQObject::timerEvent), (WindowQObject::timeoutClose), (FrameArray::get),
  11711. (Location::Location), (Location::~Location), (Location::get), (Location::put),
  11712. (Location::toPrimitive), (Location::toString), (LocationFunc::tryCall),
  11713. (History::get), (History::getValueProperty), (HistoryFunc::tryCall),
  11714. (Konqueror::hasProperty), (Konqueror::get), (KonquerorFunc::tryCall),
  11715. (Konqueror::toString):
  11716. * src/kdelibs/khtml/ecma/kjs_window.h:
  11717. * src/kdelibs/khtml/html/dtd.cpp: (DOM::checkChild), (DOM::addForbidden),
  11718. (DOM::removeForbidden):
  11719. * src/kdelibs/khtml/html/dtd.h:
  11720. * src/kdelibs/khtml/html/html_baseimpl.cpp:
  11721. (HTMLBodyElementImpl::HTMLBodyElementImpl), (HTMLBodyElementImpl::id),
  11722. (HTMLBodyElementImpl::parseAttribute), (HTMLBodyElementImpl::init),
  11723. (HTMLBodyElementImpl::attach), (HTMLFrameElementImpl::HTMLFrameElementImpl),
  11724. (HTMLFrameElementImpl::id), (HTMLFrameElementImpl::parseAttribute),
  11725. (HTMLFrameElementImpl::init), (HTMLFrameElementImpl::attach),
  11726. (HTMLFrameElementImpl::detach), (HTMLFrameElementImpl::setLocation),
  11727. (HTMLFrameElementImpl::setFocus), (HTMLFrameElementImpl::contentDocument),
  11728. (HTMLFrameSetElementImpl::HTMLFrameSetElementImpl),
  11729. (HTMLFrameSetElementImpl::~HTMLFrameSetElementImpl),
  11730. (HTMLFrameSetElementImpl::id), (HTMLFrameSetElementImpl::parseAttribute),
  11731. (HTMLFrameSetElementImpl::init), (HTMLFrameSetElementImpl::attach),
  11732. (HTMLFrameSetElementImpl::defaultEventHandler),
  11733. (HTMLFrameSetElementImpl::detach), (HTMLFrameSetElementImpl::recalcStyle),
  11734. (HTMLHeadElementImpl::id), (HTMLHtmlElementImpl::attach),
  11735. (HTMLHtmlElementImpl::id), (HTMLIFrameElementImpl::id),
  11736. (HTMLIFrameElementImpl::parseAttribute), (HTMLIFrameElementImpl::attach),
  11737. (HTMLIFrameElementImpl::recalcStyle):
  11738. * src/kdelibs/khtml/html/html_baseimpl.h:
  11739. * src/kdelibs/khtml/html/html_blockimpl.cpp: (HTMLBlockquoteElementImpl::id),
  11740. (HTMLDivElementImpl::id), (HTMLDivElementImpl::parseAttribute),
  11741. (HTMLHRElementImpl::id), (HTMLHRElementImpl::parseAttribute),
  11742. (HTMLHRElementImpl::attach), (HTMLHeadingElementImpl::HTMLHeadingElementImpl),
  11743. (HTMLParagraphElementImpl::id), (HTMLPreElementImpl::HTMLPreElementImpl),
  11744. (HTMLLayerElementImpl::id), (HTMLLayerElementImpl::parseAttribute):
  11745. * src/kdelibs/khtml/html/html_blockimpl.h:
  11746. * src/kdelibs/khtml/html/html_documentimpl.cpp:
  11747. (HTMLDocumentImpl::HTMLDocumentImpl), (HTMLDocumentImpl::~HTMLDocumentImpl),
  11748. (HTMLDocumentImpl::referrer), (HTMLDocumentImpl::domain),
  11749. (HTMLDocumentImpl::setDomain), (HTMLDocumentImpl::lastModified),
  11750. (HTMLDocumentImpl::cookie), (HTMLDocumentImpl::setCookie),
  11751. (HTMLDocumentImpl::setBody), (HTMLDocumentImpl::slotHistoryChanged),
  11752. (isTransitional), (HTMLDocumentImpl::close),
  11753. (HTMLDocumentImpl::determineParseMode):
  11754. * src/kdelibs/khtml/html/html_documentimpl.h:
  11755. * src/kdelibs/khtml/html/html_elementimpl.cpp:
  11756. (HTMLElementImpl::HTMLElementImpl), (HTMLElementImpl::parseAttribute),
  11757. (HTMLElementImpl::addCSSProperty), (HTMLElementImpl::addCSSLength),
  11758. (HTMLElementImpl::removeCSSProperty), (HTMLElementImpl::innerText),
  11759. (HTMLElementImpl::setInnerHTML), (HTMLElementImpl::namespaceURI):
  11760. * src/kdelibs/khtml/html/html_elementimpl.h:
  11761. * src/kdelibs/khtml/html/html_formimpl.cpp:
  11762. (HTMLFormElementImpl::~HTMLFormElementImpl), (HTMLFormElementImpl::id),
  11763. (HTMLFormElementImpl::length), (HTMLFormElementImpl::i18nData),
  11764. (HTMLFormElementImpl::formData), (HTMLFormElementImpl::prepareSubmit),
  11765. (HTMLFormElementImpl::submit), (HTMLFormElementImpl::reset),
  11766. (HTMLFormElementImpl::parseAttribute), (HTMLFormElementImpl::radioClicked),
  11767. (HTMLGenericFormElementImpl::HTMLGenericFormElementImpl),
  11768. (HTMLGenericFormElementImpl::parseAttribute),
  11769. (HTMLGenericFormElementImpl::attach), (HTMLGenericFormElementImpl::name),
  11770. (HTMLGenericFormElementImpl::setName), (HTMLGenericFormElementImpl::onSelect),
  11771. (HTMLGenericFormElementImpl::onChange),
  11772. (HTMLGenericFormElementImpl::setDisabled),
  11773. (HTMLGenericFormElementImpl::setParent),
  11774. (HTMLGenericFormElementImpl::recalcStyle),
  11775. (HTMLGenericFormElementImpl::isSelectable),
  11776. (HTMLGenericFormElementImpl::defaultEventHandler),
  11777. (HTMLGenericFormElementImpl::isEditable), (HTMLButtonElementImpl::id),
  11778. (HTMLButtonElementImpl::parseAttribute), (HTMLButtonElementImpl::attach),
  11779. (HTMLButtonElementImpl::defaultEventHandler), (HTMLButtonElementImpl::encoding),
  11780. (HTMLFieldSetElementImpl::id), (HTMLInputElementImpl::HTMLInputElementImpl),
  11781. (HTMLInputElementImpl::~HTMLInputElementImpl), (HTMLInputElementImpl::id),
  11782. (HTMLInputElementImpl::setType), (HTMLInputElementImpl::state),
  11783. (HTMLInputElementImpl::restoreState), (HTMLInputElementImpl::parseAttribute),
  11784. (HTMLInputElementImpl::init), (HTMLInputElementImpl::attach),
  11785. (HTMLInputElementImpl::altText), (HTMLInputElementImpl::encoding),
  11786. (HTMLInputElementImpl::reset), (HTMLInputElementImpl::setChecked),
  11787. (HTMLInputElementImpl::value), (HTMLInputElementImpl::setValue),
  11788. (HTMLInputElementImpl::blur), (HTMLInputElementImpl::focus),
  11789. (HTMLInputElementImpl::defaultEventHandler), (HTMLInputElementImpl::isEditable),
  11790. (HTMLLabelElementImpl::id), (HTMLLabelElementImpl::parseAttribute),
  11791. (HTMLLabelElementImpl::formElement), (HTMLLegendElementImpl::id),
  11792. (HTMLSelectElementImpl::HTMLSelectElementImpl), (HTMLSelectElementImpl::id),
  11793. (HTMLSelectElementImpl::add), (HTMLSelectElementImpl::blur),
  11794. (HTMLSelectElementImpl::focus), (HTMLSelectElementImpl::value),
  11795. (HTMLSelectElementImpl::setValue), (HTMLSelectElementImpl::state),
  11796. (HTMLSelectElementImpl::restoreState), (HTMLSelectElementImpl::parseAttribute),
  11797. (HTMLSelectElementImpl::init), (HTMLSelectElementImpl::attach),
  11798. (HTMLSelectElementImpl::encoding), (HTMLSelectElementImpl::reset),
  11799. (HTMLSelectElementImpl::notifyOptionSelected),
  11800. (HTMLKeygenElementImpl::HTMLKeygenElementImpl), (HTMLKeygenElementImpl::id),
  11801. (HTMLKeygenElementImpl::parseAttribute), (HTMLKeygenElementImpl::encoding),
  11802. (HTMLOptGroupElementImpl::HTMLOptGroupElementImpl),
  11803. (HTMLOptGroupElementImpl::id), (HTMLOptGroupElementImpl::parseAttribute),
  11804. (HTMLOptionElementImpl::id), (HTMLOptionElementImpl::text),
  11805. (HTMLOptionElementImpl::index), (HTMLOptionElementImpl::setIndex),
  11806. (HTMLOptionElementImpl::parseAttribute), (HTMLOptionElementImpl::value),
  11807. (HTMLOptionElementImpl::setValue), (HTMLOptionElementImpl::getSelect),
  11808. (HTMLTextAreaElementImpl::HTMLTextAreaElementImpl),
  11809. (HTMLTextAreaElementImpl::id), (HTMLTextAreaElementImpl::parseAttribute),
  11810. (HTMLTextAreaElementImpl::init), (HTMLTextAreaElementImpl::attach),
  11811. (HTMLTextAreaElementImpl::encoding), (HTMLTextAreaElementImpl::setDefaultValue),
  11812. (HTMLTextAreaElementImpl::blur), (HTMLTextAreaElementImpl::focus),
  11813. (HTMLTextAreaElementImpl::isEditable),
  11814. (HTMLIsIndexElementImpl::HTMLIsIndexElementImpl), (HTMLIsIndexElementImpl::id),
  11815. (HTMLIsIndexElementImpl::parseAttribute):
  11816. * src/kdelibs/khtml/html/html_formimpl.h:
  11817. * src/kdelibs/khtml/html/html_headimpl.cpp: (HTMLBaseElementImpl::id),
  11818. (HTMLBaseElementImpl::parseAttribute),
  11819. (HTMLBaseElementImpl::insertedIntoDocument),
  11820. (HTMLBaseElementImpl::removedFromDocument), (HTMLBaseElementImpl::process),
  11821. (HTMLLinkElementImpl::HTMLLinkElementImpl), (HTMLLinkElementImpl::id),
  11822. (HTMLLinkElementImpl::parseAttribute), (HTMLLinkElementImpl::process),
  11823. (HTMLLinkElementImpl::insertedIntoDocument),
  11824. (HTMLLinkElementImpl::removedFromDocument), (HTMLLinkElementImpl::setStyleSheet),
  11825. (HTMLLinkElementImpl::sheetLoaded), (HTMLMetaElementImpl::id),
  11826. (HTMLMetaElementImpl::parseAttribute),
  11827. (HTMLMetaElementImpl::insertedIntoDocument), (HTMLMetaElementImpl::process),
  11828. (HTMLScriptElementImpl::id), (HTMLStyleElementImpl::id),
  11829. (HTMLStyleElementImpl::parseAttribute),
  11830. (HTMLStyleElementImpl::insertedIntoDocument),
  11831. (HTMLStyleElementImpl::removedFromDocument),
  11832. (HTMLStyleElementImpl::childrenChanged), (HTMLStyleElementImpl::isLoading),
  11833. (HTMLStyleElementImpl::sheetLoaded), (HTMLTitleElementImpl::id),
  11834. (HTMLTitleElementImpl::insertedIntoDocument),
  11835. (HTMLTitleElementImpl::removedFromDocument),
  11836. (HTMLTitleElementImpl::childrenChanged):
  11837. * src/kdelibs/khtml/html/html_headimpl.h:
  11838. * src/kdelibs/khtml/html/html_imageimpl.cpp: (HTMLImageElementImpl::id),
  11839. (HTMLImageElementImpl::parseAttribute), (HTMLImageElementImpl::altText),
  11840. (HTMLImageElementImpl::attach), (HTMLMapElementImpl::~HTMLMapElementImpl),
  11841. (HTMLMapElementImpl::id), (HTMLMapElementImpl::mapMouseEvent),
  11842. (HTMLMapElementImpl::parseAttribute), (HTMLAreaElementImpl::HTMLAreaElementImpl),
  11843. (HTMLAreaElementImpl::~HTMLAreaElementImpl), (HTMLAreaElementImpl::id),
  11844. (HTMLAreaElementImpl::parseAttribute), (HTMLAreaElementImpl::mapMouseEvent),
  11845. (HTMLAreaElementImpl::getRect), (HTMLAreaElementImpl::getRegion):
  11846. * src/kdelibs/khtml/html/html_imageimpl.h:
  11847. * src/kdelibs/khtml/html/html_inlineimpl.cpp:
  11848. (HTMLAnchorElementImpl::HTMLAnchorElementImpl),
  11849. (HTMLAnchorElementImpl::~HTMLAnchorElementImpl), (HTMLAnchorElementImpl::id),
  11850. (HTMLAnchorElementImpl::defaultEventHandler),
  11851. (HTMLAnchorElementImpl::parseAttribute), (HTMLBRElementImpl::id),
  11852. (HTMLBRElementImpl::parseAttribute), (HTMLBRElementImpl::attach),
  11853. (HTMLFontElementImpl::id), (HTMLFontElementImpl::parseAttribute):
  11854. * src/kdelibs/khtml/html/html_inlineimpl.h:
  11855. * src/kdelibs/khtml/html/html_listimpl.cpp: (HTMLUListElementImpl::id),
  11856. (HTMLUListElementImpl::parseAttribute), (HTMLDirectoryElementImpl::id),
  11857. (HTMLMenuElementImpl::id), (HTMLOListElementImpl::id),
  11858. (HTMLOListElementImpl::parseAttribute), (HTMLLIElementImpl::id),
  11859. (HTMLLIElementImpl::parseAttribute), (HTMLLIElementImpl::attach),
  11860. (HTMLDListElementImpl::id):
  11861. * src/kdelibs/khtml/html/html_listimpl.h:
  11862. * src/kdelibs/khtml/html/html_miscimpl.cpp:
  11863. (HTMLBaseFontElementImpl::HTMLBaseFontElementImpl),
  11864. (HTMLBaseFontElementImpl::id), (HTMLCollectionImpl::HTMLCollectionImpl),
  11865. (HTMLCollectionImpl::calcLength), (HTMLCollectionImpl::getItem),
  11866. (HTMLCollectionImpl::firstItem), (HTMLCollectionImpl::nextItem),
  11867. (HTMLCollectionImpl::getNamedItem), (HTMLCollectionImpl::namedItem),
  11868. (HTMLCollectionImpl::nextNamedItem), (HTMLCollectionImpl::nextNamedItemInternal),
  11869. (HTMLFormCollectionImpl::calcLength), (HTMLFormCollectionImpl::getItem),
  11870. (HTMLFormCollectionImpl::getNamedItem),
  11871. (HTMLFormCollectionImpl::getNamedFormItem),
  11872. (HTMLFormCollectionImpl::getNamedImgItem), (HTMLFormCollectionImpl::firstItem),
  11873. (HTMLFormCollectionImpl::nextItem),
  11874. (HTMLFormCollectionImpl::nextNamedItemInternal):
  11875. * src/kdelibs/khtml/html/html_miscimpl.h:
  11876. * src/kdelibs/khtml/html/html_objectimpl.cpp:
  11877. (HTMLAppletElementImpl::HTMLAppletElementImpl),
  11878. (HTMLAppletElementImpl::~HTMLAppletElementImpl), (HTMLAppletElementImpl::id),
  11879. (HTMLAppletElementImpl::parseAttribute), (HTMLAppletElementImpl::attach),
  11880. (HTMLEmbedElementImpl::id), (HTMLEmbedElementImpl::parseAttribute),
  11881. (HTMLEmbedElementImpl::attach), (HTMLObjectElementImpl::id),
  11882. (HTMLObjectElementImpl::parseAttribute),
  11883. (HTMLObjectElementImpl::contentDocument), (HTMLObjectElementImpl::attach),
  11884. (HTMLObjectElementImpl::detach), (HTMLObjectElementImpl::recalcStyle),
  11885. (HTMLParamElementImpl::id), (HTMLParamElementImpl::parseAttribute):
  11886. * src/kdelibs/khtml/html/html_objectimpl.h:
  11887. * src/kdelibs/khtml/html/html_tableimpl.cpp:
  11888. (HTMLTableElementImpl::HTMLTableElementImpl), (HTMLTableElementImpl::id),
  11889. (HTMLTableElementImpl::setCaption), (HTMLTableElementImpl::setTHead),
  11890. (HTMLTableElementImpl::setTFoot), (HTMLTableElementImpl::setTBody),
  11891. (HTMLTableElementImpl::createTHead), (HTMLTableElementImpl::deleteTHead),
  11892. (HTMLTableElementImpl::createTFoot), (HTMLTableElementImpl::deleteTFoot),
  11893. (HTMLTableElementImpl::createCaption), (HTMLTableElementImpl::deleteCaption),
  11894. (HTMLTableElementImpl::insertRow), (HTMLTableElementImpl::deleteRow),
  11895. (HTMLTableElementImpl::addChild), (HTMLTableElementImpl::parseAttribute),
  11896. (HTMLTableElementImpl::init), (HTMLTablePartElementImpl::parseAttribute),
  11897. (HTMLTableSectionElementImpl::id), (HTMLTableSectionElementImpl::insertRow),
  11898. (HTMLTableSectionElementImpl::deleteRow), (HTMLTableRowElementImpl::id),
  11899. (HTMLTableRowElementImpl::insertCell), (HTMLTableRowElementImpl::deleteCell),
  11900. (HTMLTableCellElementImpl::HTMLTableCellElementImpl),
  11901. (HTMLTableCellElementImpl::parseAttribute), (HTMLTableCellElementImpl::init),
  11902. (HTMLTableColElementImpl::HTMLTableColElementImpl),
  11903. (HTMLTableColElementImpl::id), (HTMLTableColElementImpl::parseAttribute),
  11904. (HTMLTableCaptionElementImpl::id), (HTMLTableCaptionElementImpl::parseAttribute):
  11905. * src/kdelibs/khtml/html/html_tableimpl.h:
  11906. * src/kdelibs/khtml/html/htmlparser.cpp: (KHTMLParser::parseToken),
  11907. (KHTMLParser::insertNode), (KHTMLParser::getElement),
  11908. (KHTMLParser::processCloseTag), (KHTMLParser::popOneBlock),
  11909. (KHTMLParser::handleIsindex):
  11910. * src/kdelibs/khtml/html/htmlparser.h:
  11911. * src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::HTMLTokenizer),
  11912. (HTMLTokenizer::reset), (HTMLTokenizer::begin), (HTMLTokenizer::processListing),
  11913. (HTMLTokenizer::parseSpecial), (HTMLTokenizer::scriptHandler),
  11914. (HTMLTokenizer::scriptExecution), (HTMLTokenizer::parseComment),
  11915. (HTMLTokenizer::parseServer), (HTMLTokenizer::parseTag), (HTMLTokenizer::write),
  11916. (HTMLTokenizer::finish), (HTMLTokenizer::processToken),
  11917. (HTMLTokenizer::notifyFinished), (HTMLTokenizer::addPendingSource),
  11918. (HTMLTokenizer::setSrc):
  11919. * src/kdelibs/khtml/html/htmltokenizer.h:
  11920. * src/kdelibs/khtml/java/javaembed.h:
  11921. * src/kdelibs/khtml/java/kjavaapplet.h:
  11922. * src/kdelibs/khtml/java/kjavaappletcontext.cpp:
  11923. * src/kdelibs/khtml/java/kjavaappletcontext.h:
  11924. * src/kdelibs/khtml/java/kjavaappletserver.cpp: (KJavaAppletServer::setupJava):
  11925. * src/kdelibs/khtml/java/kjavaappletserver.h:
  11926. * src/kdelibs/khtml/java/kjavaappletwidget.h:
  11927. * src/kdelibs/khtml/java/kjavaprocess.cpp: (KJavaProcess::invokeJVM):
  11928. * src/kdelibs/khtml/khtml_events.cpp: (khtml::MouseEvent::MouseEvent),
  11929. (khtml::MouseEvent::offset):
  11930. * src/kdelibs/khtml/khtml_events.h:
  11931. * src/kdelibs/khtml/khtml_ext.h:
  11932. * src/kdelibs/khtml/khtml_factory.h:
  11933. * src/kdelibs/khtml/khtml_part.h:
  11934. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::KHTMLView),
  11935. (KHTMLView::~KHTMLView), (KHTMLView::init), (KHTMLView::clear),
  11936. (KHTMLView::resizeEvent), (KHTMLView::drawContents), (KHTMLView::setMarginWidth),
  11937. (KHTMLView::setMarginHeight), (KHTMLView::layout),
  11938. (KHTMLView::viewportMousePressEvent), (KHTMLView::viewportMouseDoubleClickEvent),
  11939. (KHTMLView::viewportMouseMoveEvent), (KHTMLView::resetCursor),
  11940. (KHTMLView::viewportMouseReleaseEvent), (KHTMLView::keyPressEvent),
  11941. (KHTMLView::keyReleaseEvent), (KHTMLView::contentsContextMenuEvent),
  11942. (KHTMLView::focusNextPrevChild), (KHTMLView::scrollTo),
  11943. (KHTMLView::focusNextPrevNode), (KHTMLView::setMediaType),
  11944. (KHTMLView::mediaType), (KHTMLView::print), (KHTMLView::slotPaletteChanged),
  11945. (KHTMLView::restoreScrollBar), (KHTMLView::addFormCompletionItem),
  11946. (KHTMLView::dispatchMouseEvent), (KHTMLView::setIgnoreEvents),
  11947. (KHTMLView::ignoreEvents), (KHTMLView::setIgnoreWheelEvents),
  11948. (KHTMLView::viewportWheelEvent), (KHTMLView::slotScrollBarMoved),
  11949. (KHTMLView::timerEvent), (KHTMLView::scheduleRelayout),
  11950. (KHTMLView::scheduleRepaint), (KHTMLView::complete):
  11951. * src/kdelibs/khtml/khtmlview.h:
  11952. * src/kdelibs/khtml/misc/decoder.cpp:
  11953. * src/kdelibs/khtml/misc/decoder.h:
  11954. * src/kdelibs/khtml/misc/helper.cpp: (khtml::setNamedColor),
  11955. (khtml::setPrintPainter):
  11956. * src/kdelibs/khtml/misc/helper.h:
  11957. * src/kdelibs/khtml/misc/htmlattrs.in:
  11958. * src/kdelibs/khtml/misc/htmltags.in:
  11959. * src/kdelibs/khtml/misc/khtmllayout.h:
  11960. * src/kdelibs/khtml/misc/loader.h:
  11961. * src/kdelibs/khtml/misc/loader_client.h:
  11962. * src/kdelibs/khtml/misc/makeattrs:
  11963. * src/kdelibs/khtml/misc/maketags:
  11964. * src/kdelibs/khtml/misc/stringit.h:
  11965. * src/kdelibs/khtml/rendering/bidi.cpp: (Bidinext), (first),
  11966. (BidiIterator::BidiIterator), (BidiIterator::operator ++ ),
  11967. (BidiIterator::atEnd), (BidiIterator::current), (BidiIterator::direction),
  11968. (appendRun), (embed), (RenderFlow::bidiReorderLine),
  11969. (RenderFlow::layoutInlineChildren):
  11970. * src/kdelibs/khtml/rendering/bidi.h:
  11971. * src/kdelibs/khtml/rendering/break_lines.cpp:
  11972. * src/kdelibs/khtml/rendering/render_applet.cpp: (RenderApplet::RenderApplet),
  11973. (RenderApplet::intrinsicWidth), (RenderApplet::intrinsicHeight),
  11974. (RenderApplet::layout), (RenderEmptyApplet::RenderEmptyApplet),
  11975. (RenderEmptyApplet::layout):
  11976. * src/kdelibs/khtml/rendering/render_applet.h:
  11977. * src/kdelibs/khtml/rendering/render_body.cpp: (RenderBody::RenderBody),
  11978. (RenderBody::setStyle):
  11979. * src/kdelibs/khtml/rendering/render_body.h:
  11980. * src/kdelibs/khtml/rendering/render_box.cpp: (RenderBox::RenderBox),
  11981. (RenderBox::setPos), (RenderBox::setPixmap), (RenderBox::printBackground),
  11982. (RenderBox::calcClip), (RenderBox::close), (RenderBox::repaintRectangle),
  11983. (RenderBox::calcWidth), (RenderBox::calcHorizontalMargins),
  11984. (RenderBox::calcHeight), (RenderBox::calcReplacedWidth),
  11985. (RenderBox::calcReplacedHeight), (RenderBox::calcVerticalMargins):
  11986. * src/kdelibs/khtml/rendering/render_box.h:
  11987. * src/kdelibs/khtml/rendering/render_br.cpp: (RenderBR::RenderBR):
  11988. * src/kdelibs/khtml/rendering/render_br.h:
  11989. * src/kdelibs/khtml/rendering/render_container.cpp:
  11990. (RenderContainer::RenderContainer), (RenderContainer::addChild),
  11991. (RenderContainer::removeChildNode), (RenderContainer::removeChild),
  11992. (RenderContainer::insertPseudoChild), (RenderContainer::appendChildNode),
  11993. (RenderContainer::insertChildNode), (RenderContainer::layout):
  11994. * src/kdelibs/khtml/rendering/render_container.h:
  11995. * src/kdelibs/khtml/rendering/render_flow.cpp: (RenderFlow::RenderFlow),
  11996. (RenderFlow::setStyle), (RenderFlow::print), (RenderFlow::printObject),
  11997. (RenderFlow::printSpecialObjects), (RenderFlow::layout),
  11998. (RenderFlow::layoutSpecialObjects), (RenderFlow::layoutBlockChildren),
  11999. (RenderFlow::insertSpecialObject), (RenderFlow::removeSpecialObject),
  12000. (RenderFlow::positionNewFloats), (RenderFlow::leftOffset),
  12001. (RenderFlow::leftRelOffset), (RenderFlow::rightOffset),
  12002. (RenderFlow::rightRelOffset), (RenderFlow::lineWidth), (RenderFlow::floatBottom),
  12003. (RenderFlow::lowestPosition), (RenderFlow::rightmostPosition),
  12004. (RenderFlow::leftBottom), (RenderFlow::rightBottom), (RenderFlow::clearFloats),
  12005. (RenderFlow::addOverHangingFloats), (next), (RenderFlow::calcMinMaxWidth),
  12006. (RenderFlow::close), (RenderFlow::addChild), (RenderFlow::makeChildrenNonInline),
  12007. (RenderFlow::nodeAtPoint), (RenderFlow::printTree), (RenderFlow::dump):
  12008. * src/kdelibs/khtml/rendering/render_flow.h:
  12009. * src/kdelibs/khtml/rendering/render_form.cpp:
  12010. (RenderFormElement::RenderFormElement), (RenderFormElement::updateFromElement),
  12011. (RenderFormElement::layout), (RenderFormElement::slotClicked),
  12012. (RenderButton::RenderButton), (RenderCheckBox::RenderCheckBox),
  12013. (RenderCheckBox::calcMinMaxWidth), (RenderCheckBox::updateFromElement),
  12014. (RenderCheckBox::slotStateChanged), (RenderRadioButton::RenderRadioButton),
  12015. (RenderRadioButton::updateFromElement), (RenderRadioButton::slotClicked),
  12016. (RenderRadioButton::calcMinMaxWidth), (RenderSubmitButton::RenderSubmitButton),
  12017. (RenderSubmitButton::calcMinMaxWidth), (RenderImageButton::RenderImageButton),
  12018. (RenderResetButton::RenderResetButton), (RenderPushButton::RenderPushButton),
  12019. (RenderLineEdit::RenderLineEdit), (RenderLineEdit::slotReturnPressed),
  12020. (RenderLineEdit::handleFocusOut), (RenderLineEdit::calcMinMaxWidth),
  12021. (RenderLineEdit::updateFromElement), (RenderLineEdit::slotTextChanged),
  12022. (RenderFieldset::RenderFieldset), (RenderFileButton::RenderFileButton),
  12023. (RenderFileButton::calcMinMaxWidth), (RenderFileButton::handleFocusOut),
  12024. (RenderFileButton::slotClicked), (RenderFileButton::updateFromElement),
  12025. (RenderFileButton::slotReturnPressed), (RenderFileButton::slotTextChanged),
  12026. (RenderLabel::RenderLabel), (RenderLegend::RenderLegend),
  12027. (RenderSelect::RenderSelect), (RenderSelect::updateFromElement),
  12028. (RenderSelect::calcMinMaxWidth), (RenderSelect::layout), (RenderSelect::close),
  12029. (RenderSelect::slotSelected), (RenderSelect::slotSelectionChanged),
  12030. (RenderSelect::createListBox), (RenderSelect::createComboBox),
  12031. (RenderSelect::updateSelection), (TextAreaWidget::TextAreaWidget),
  12032. (TextAreaWidget::event), (RenderTextArea::RenderTextArea),
  12033. (RenderTextArea::~RenderTextArea), (RenderTextArea::handleFocusOut),
  12034. (RenderTextArea::calcMinMaxWidth), (RenderTextArea::updateFromElement),
  12035. (RenderTextArea::close), (RenderTextArea::text),
  12036. (RenderTextArea::slotTextChanged):
  12037. * src/kdelibs/khtml/rendering/render_form.h:
  12038. * src/kdelibs/khtml/rendering/render_frames.cpp:
  12039. (RenderFrameSet::RenderFrameSet), (RenderFrameSet::~RenderFrameSet),
  12040. (RenderFrameSet::nodeAtPoint), (RenderFrameSet::layout),
  12041. (RenderFrameSet::positionFrames), (RenderFrameSet::userResize),
  12042. (RenderFrameSet::setResizing), (RenderFrameSet::canResize),
  12043. (RenderFrameSet::dump), (RenderPart::RenderPart), (RenderPart::setWidget),
  12044. (RenderPart::partLoadingErrorNotify), (RenderFrame::RenderFrame),
  12045. (RenderFrame::slotViewCleared), (RenderPartObject::RenderPartObject),
  12046. (RenderPartObject::updateWidget), (RenderPartObject::close),
  12047. (RenderPartObject::partLoadingErrorNotify),
  12048. (RenderPartObject::slotPartLoadingErrorNotify),
  12049. (RenderPartObject::calcReplacedWidth), (RenderPartObject::calcReplacedHeight),
  12050. (RenderPartObject::layout), (RenderPartObject::slotViewCleared):
  12051. * src/kdelibs/khtml/rendering/render_frames.h:
  12052. * src/kdelibs/khtml/rendering/render_html.cpp: (RenderHtml::RenderHtml),
  12053. (RenderHtml::printBoxDecorations):
  12054. * src/kdelibs/khtml/rendering/render_html.h:
  12055. * src/kdelibs/khtml/rendering/render_image.cpp: (RenderImage::RenderImage),
  12056. (RenderImage::setStyle), (RenderImage::setPixmap), (RenderImage::printObject),
  12057. (RenderImage::layout), (RenderImage::notifyFinished), (RenderImage::nodeAtPoint),
  12058. (RenderImage::updateFromElement):
  12059. * src/kdelibs/khtml/rendering/render_image.h:
  12060. * src/kdelibs/khtml/rendering/render_list.cpp: (toLetter), (toHebrew),
  12061. (RenderListItem::RenderListItem), (RenderListItem::setStyle),
  12062. (RenderListItem::calcListValue), (RenderListItem::layout),
  12063. (RenderListMarker::RenderListMarker), (RenderListMarker::~RenderListMarker),
  12064. (RenderListMarker::setStyle), (RenderListMarker::printObject),
  12065. (RenderListMarker::layout), (RenderListMarker::setPixmap),
  12066. (RenderListMarker::calcMinMaxWidth):
  12067. * src/kdelibs/khtml/rendering/render_list.h:
  12068. * src/kdelibs/khtml/rendering/render_object.cpp: (RenderObject::createObject),
  12069. (RenderObject::RenderObject), (RenderObject::~RenderObject),
  12070. (RenderObject::addChild), (RenderObject::removeChildNode),
  12071. (RenderObject::removeChild), (RenderObject::appendChildNode),
  12072. (RenderObject::insertChildNode), (RenderObject::containingBlock),
  12073. (RenderObject::drawBorder), (RenderObject::printBorder),
  12074. (RenderObject::printOutline), (RenderObject::information),
  12075. (RenderObject::printTree), (RenderObject::dump),
  12076. (RenderObject::selectionStartEnd), (RenderObject::setStyle),
  12077. (RenderObject::setOverhangingContents), (RenderObject::root),
  12078. (RenderObject::invalidateLayout), (RenderObject::checkSelectionPoint),
  12079. (RenderObject::nodeAtPoint), (RenderObject::getVerticalPosition),
  12080. (RenderObject::lineHeight), (RenderObject::baselinePosition),
  12081. (RenderObject::recalcMinMaxWidths), (RenderObject::scheduleRelayout):
  12082. * src/kdelibs/khtml/rendering/render_object.h:
  12083. * src/kdelibs/khtml/rendering/render_replaced.cpp:
  12084. (RenderReplaced::RenderReplaced), (RenderReplaced::print),
  12085. (RenderReplaced::calcMinMaxWidth), (RenderReplaced::lineHeight),
  12086. (RenderWidget::RenderWidget), (RenderWidget::detach),
  12087. (RenderWidget::~RenderWidget), (RenderWidget::setQWidget),
  12088. (RenderWidget::layout), (RenderWidget::setStyle), (RenderWidget::printObject),
  12089. (RenderWidget::eventFilter), (RenderWidget::handleDOMEvent),
  12090. (RenderWidget::sendWidgetEvent):
  12091. * src/kdelibs/khtml/rendering/render_replaced.h:
  12092. * src/kdelibs/khtml/rendering/render_root.cpp: (RenderRoot::RenderRoot),
  12093. (RenderRoot::calcMinMaxWidth), (RenderRoot::layout), (RenderRoot::printObject),
  12094. (RenderRoot::repaintRectangle), (RenderRoot::repaint), (RenderRoot::close),
  12095. (RenderRoot::setSelection), (RenderRoot::clearSelection),
  12096. (RenderRoot::selectionStartEnd), (RenderRoot::docWidth):
  12097. * src/kdelibs/khtml/rendering/render_root.h:
  12098. * src/kdelibs/khtml/rendering/render_style.cpp: (RenderStyle::setBitDefaults),
  12099. (RenderStyle::RenderStyle), (RenderStyle::inheritFrom),
  12100. (RenderStyle::~RenderStyle), (RenderStyle::operator==),
  12101. (RenderStyle::getPseudoStyle), (RenderStyle::addPseudoStyle),
  12102. (RenderStyle::removePseudoStyle), (RenderStyle::inheritedNotEqual),
  12103. (RenderStyle::diff), (RenderStyle::cleanup),
  12104. (RenderPseudoElementStyle::RenderPseudoElementStyle),
  12105. (RenderPseudoElementStyle::~RenderPseudoElementStyle),
  12106. (RenderPseudoElementStyle::setContent), (RenderPseudoElementStyle::contentText),
  12107. (RenderPseudoElementStyle::contentObject),
  12108. (RenderPseudoElementStyle::clearContent):
  12109. * src/kdelibs/khtml/rendering/render_style.h:
  12110. * src/kdelibs/khtml/rendering/render_table.cpp: (RenderTable::RenderTable),
  12111. (RenderTable::setStyle), (RenderTable::addChild), (RenderTable::addCell),
  12112. (RenderTable::setCells), (RenderTable::recalcColInfo), (RenderTable::addColInfo),
  12113. (RenderTable::calcSingleColMinMax), (RenderTable::calcFinalColMax),
  12114. (RenderTable::calcColMinMax), (RenderTable::calcWidth),
  12115. (RenderTable::calcColWidth), (RenderTable::distributeRest),
  12116. (RenderTable::layout), (RenderTable::layoutRows), (RenderTable::setCellWidths),
  12117. (RenderTable::print), (RenderTable::calcMinMaxWidth), (RenderTable::close),
  12118. (RenderTable::recalcCells), (RenderTable::dump),
  12119. (RenderTableSection::RenderTableSection),
  12120. (RenderTableSection::~RenderTableSection), (RenderTableSection::addChild),
  12121. (RenderTableSection::dump), (RenderTableRow::RenderTableRow),
  12122. (RenderTableRow::addChild), (RenderTableRow::dump), (RenderTableRow::layout),
  12123. (RenderTableCell::RenderTableCell), (RenderTableCell::updateFromElement),
  12124. (RenderTableCell::calcMinMaxWidth), (RenderTableCell::setWidth),
  12125. (RenderTableCell::close), (RenderTableCell::print),
  12126. (RenderTableCell::printBoxDecorations), (RenderTableCell::dump),
  12127. (RenderTableCol::RenderTableCol), (RenderTableCol::updateFromElement),
  12128. (RenderTableCol::dump), (RenderTableCaption::RenderTableCaption):
  12129. * src/kdelibs/khtml/rendering/render_table.h:
  12130. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::~TextSlave),
  12131. (TextSlave::print), (TextSlave::printSelection), (TextSlave::printDecoration),
  12132. (TextSlave::printBoxDecorations), (TextSlave::checkSelectionPoint),
  12133. (TextSlaveArray::compareItems), (RenderText::RenderText), (RenderText::setStyle),
  12134. (RenderText::~RenderText), (RenderText::deleteSlaves), (RenderText::nodeAtPoint),
  12135. (RenderText::checkSelectionPoint), (RenderText::cursorPos),
  12136. (RenderText::absolutePosition), (RenderText::rightmostPosition),
  12137. (RenderText::printObject), (RenderText::print), (RenderText::calcMinMaxWidth),
  12138. (RenderText::font), (RenderText::setText), (RenderText::height),
  12139. (RenderText::lineHeight), (RenderText::baselinePosition), (RenderText::position),
  12140. (RenderText::width), (RenderText::metrics), (RenderText::printTextOutline):
  12141. * src/kdelibs/khtml/rendering/render_text.h:
  12142. * src/kdelibs/khtml/xml/dom2_eventsimpl.cpp: (EventImpl::~EventImpl),
  12143. (EventImpl::setTarget), (EventImpl::initEvent), (EventImpl::idToType),
  12144. (UIEventImpl::UIEventImpl), (UIEventImpl::~UIEventImpl),
  12145. (KeyEventImpl::KeyEventImpl), (KeyEventImpl::~KeyEventImpl),
  12146. (KeyEventImpl::checkModifier), (KeyEventImpl::initKeyEvent),
  12147. (KeyEventImpl::initModifier), (KeyEventImpl::inputGenerated),
  12148. (KeyEventImpl::keyVal), (KeyEventImpl::numPad), (KeyEventImpl::outputString),
  12149. (KeyEventImpl::virtKeyVal), (RegisteredEventListener::operator==):
  12150. * src/kdelibs/khtml/xml/dom2_eventsimpl.h:
  12151. * src/kdelibs/khtml/xml/dom2_rangeimpl.cpp: (RangeImpl::~RangeImpl),
  12152. (RangeImpl::compareBoundaryPoints), (RangeImpl::processContents):
  12153. * src/kdelibs/khtml/xml/dom2_rangeimpl.h:
  12154. * src/kdelibs/khtml/xml/dom2_traversalimpl.cpp:
  12155. (NodeIteratorImpl::NodeIteratorImpl), (TreeWalkerImpl::TreeWalkerImpl),
  12156. (TreeWalkerImpl::operator = ), (TreeWalkerImpl::~TreeWalkerImpl),
  12157. (TreeWalkerImpl::getCurrentNode), (TreeWalkerImpl::setWhatToShow),
  12158. (TreeWalkerImpl::setFilter), (TreeWalkerImpl::setExpandEntityReferences),
  12159. (TreeWalkerImpl::setCurrentNode), (TreeWalkerImpl::parentNode),
  12160. (TreeWalkerImpl::firstChild), (TreeWalkerImpl::lastChild),
  12161. (TreeWalkerImpl::previousSibling), (TreeWalkerImpl::nextSibling),
  12162. (TreeWalkerImpl::previousNode), (TreeWalkerImpl::nextNode),
  12163. (TreeWalkerImpl::isAccepted), (TreeWalkerImpl::getParentNode),
  12164. (TreeWalkerImpl::getPreviousSibling), (TreeWalkerImpl::getNextSibling):
  12165. * src/kdelibs/khtml/xml/dom2_traversalimpl.h:
  12166. * src/kdelibs/khtml/xml/dom2_viewsimpl.cpp:
  12167. * src/kdelibs/khtml/xml/dom2_viewsimpl.h:
  12168. * src/kdelibs/khtml/xml/dom_docimpl.cpp: (DOMImplementationImpl::hasFeature),
  12169. (DOMImplementationImpl::createDocumentType),
  12170. (DOMImplementationImpl::getInterface), (DOMImplementationImpl::createDocument),
  12171. (DOMImplementationImpl::createCSSStyleSheet),
  12172. (DOMImplementationImpl::createHTMLDocument), (DOMImplementationImpl::instance),
  12173. (DocumentImpl::DocumentImpl), (DocumentImpl::~DocumentImpl),
  12174. (DocumentImpl::doctype), (DocumentImpl::implementation),
  12175. (DocumentImpl::createDocumentFragment), (DocumentImpl::createTextNode),
  12176. (DocumentImpl::createComment), (DocumentImpl::createCDATASection),
  12177. (DocumentImpl::createProcessingInstruction), (DocumentImpl::createAttribute),
  12178. (DocumentImpl::createEntityReference), (DocumentImpl::importNode),
  12179. (DocumentImpl::createElementNS), (DocumentImpl::getElementById),
  12180. (DocumentImpl::setTitle), (DocumentImpl::nodeName), (DocumentImpl::nodeType),
  12181. (DocumentImpl::createHTMLElement), (DocumentImpl::nextState),
  12182. (DocumentImpl::docState), (DocumentImpl::createNodeIterator),
  12183. (DocumentImpl::createTreeWalker), (DocumentImpl::setDocumentChanged),
  12184. (DocumentImpl::recalcStyle), (DocumentImpl::updateRendering),
  12185. (DocumentImpl::updateDocumentsRendering), (DocumentImpl::attach),
  12186. (DocumentImpl::detach), (DocumentImpl::setVisuallyOrdered), (DocumentImpl::open),
  12187. (DocumentImpl::close), (DocumentImpl::write), (DocumentImpl::setStyleSheet),
  12188. (DocumentImpl::setUserStyleSheet), (DocumentImpl::elementSheet),
  12189. (DocumentImpl::determineParseMode), (DocumentImpl::findElement),
  12190. (DocumentImpl::nextFocusNode), (DocumentImpl::previousFocusNode),
  12191. (DocumentImpl::nodeAbsIndex), (DocumentImpl::nodeWithAbsIndex),
  12192. (DocumentImpl::processHttpEquiv), (DocumentImpl::prepareMouseEvent),
  12193. (DocumentImpl::childAllowed), (DocumentImpl::cloneNode), (DocumentImpl::attrId),
  12194. (DocumentImpl::attrName), (DocumentImpl::tagId), (DocumentImpl::tagName),
  12195. (DocumentImpl::namespaceURI), (DocumentImpl::updateStyleSelector),
  12196. (DocumentImpl::recalcStyleSelector), (DocumentImpl::setFocusNode),
  12197. (DocumentImpl::notifyBeforeNodeRemoval), (DocumentImpl::defaultEventHandler),
  12198. (DocumentImpl::setWindowEventListener), (DocumentImpl::getWindowEventListener),
  12199. (DocumentImpl::removeWindowEventListener), (DocumentFragmentImpl::nodeName),
  12200. (DocumentFragmentImpl::cloneNode), (DocumentTypeImpl::DocumentTypeImpl),
  12201. (DocumentTypeImpl::~DocumentTypeImpl), (DocumentTypeImpl::copyFrom),
  12202. (DocumentTypeImpl::nodeName), (DocumentTypeImpl::cloneNode):
  12203. * src/kdelibs/khtml/xml/dom_docimpl.h:
  12204. * src/kdelibs/khtml/xml/dom_elementimpl.cpp: (AttributeImpl::allocateImpl),
  12205. (AttrImpl::AttrImpl), (AttrImpl::~AttrImpl), (AttrImpl::nodeName),
  12206. (AttrImpl::prefix), (AttrImpl::setPrefix), (AttrImpl::nodeValue),
  12207. (AttrImpl::setValue), (AttrImpl::setNodeValue), (AttrImpl::cloneNode),
  12208. (ElementImpl::ElementImpl), (ElementImpl::~ElementImpl),
  12209. (ElementImpl::removeAttribute), (ElementImpl::setAttribute),
  12210. (ElementImpl::nodeType), (ElementImpl::getAttribute),
  12211. (ElementImpl::setAttributeMap), (ElementImpl::cloneNode),
  12212. (ElementImpl::nodeName), (ElementImpl::tagName), (ElementImpl::setPrefix),
  12213. (ElementImpl::createAttributeMap), (ElementImpl::attach),
  12214. (ElementImpl::recalcStyle), (ElementImpl::childAllowed),
  12215. (ElementImpl::createDecl), (ElementImpl::dispatchAttrRemovalEvent),
  12216. (ElementImpl::dispatchAttrAdditionEvent), (ElementImpl::dump),
  12217. (XMLElementImpl::XMLElementImpl), (XMLElementImpl::~XMLElementImpl),
  12218. (XMLElementImpl::localName), (XMLElementImpl::cloneNode),
  12219. (NamedAttrMapImpl::NamedAttrMapImpl), (NamedAttrMapImpl::~NamedAttrMapImpl),
  12220. (NamedAttrMapImpl::getNamedItem), (NamedAttrMapImpl::setNamedItem),
  12221. (NamedAttrMapImpl::removeNamedItem), (NamedAttrMapImpl::item),
  12222. (NamedAttrMapImpl::length), (NamedAttrMapImpl::getAttributeItem),
  12223. (NamedAttrMapImpl::mapId), (NamedAttrMapImpl::clearAttributes),
  12224. (NamedAttrMapImpl::detachFromElement), (NamedAttrMapImpl::operator=),
  12225. (NamedAttrMapImpl::addAttribute), (NamedAttrMapImpl::removeAttribute):
  12226. * src/kdelibs/khtml/xml/dom_elementimpl.h:
  12227. * src/kdelibs/khtml/xml/dom_nodeimpl.cpp: (NodeImpl::NodeImpl),
  12228. (NodeImpl::~NodeImpl), (NodeImpl::setNodeValue), (NodeImpl::nodeName),
  12229. (NodeImpl::normalize), (NodeImpl::prefix), (NodeImpl::setPrefix),
  12230. (NodeImpl::localName), (escapeHTML), (NodeImpl::recursive_toHTML),
  12231. (NodeImpl::getRect), (NodeImpl::setChanged), (NodeImpl::isInline),
  12232. (NodeImpl::nodeIndex), (NodeImpl::addEventListener),
  12233. (NodeImpl::removeEventListener), (NodeImpl::removeHTMLEventListener),
  12234. (NodeImpl::setHTMLEventListener), (NodeImpl::getHTMLEventListener),
  12235. (NodeImpl::dispatchEvent), (NodeImpl::dispatchGenericEvent),
  12236. (NodeImpl::dispatchHTMLEvent), (NodeImpl::dispatchWindowEvent),
  12237. (NodeImpl::dispatchMouseEvent), (NodeImpl::dispatchUIEvent),
  12238. (NodeImpl::dispatchSubtreeModifiedEvent), (NodeImpl::dispatchKeyEvent),
  12239. (NodeImpl::handleLocalEvents), (NodeImpl::defaultEventHandler),
  12240. (NodeImpl::traverseNextNode), (NodeImpl::traversePreviousNode),
  12241. (NodeImpl::checkSetPrefix), (NodeImpl::checkAddChild), (NodeImpl::isAncestor),
  12242. (NodeImpl::childAllowed), (NodeImpl::diff), (NodeImpl::dump),
  12243. (NodeImpl::deleteMe), (NodeImpl::init), (NodeImpl::attach), (NodeImpl::detach),
  12244. (NodeImpl::maintainsState), (NodeImpl::state), (NodeImpl::restoreState),
  12245. (NodeImpl::insertedIntoDocument), (NodeImpl::removedFromDocument),
  12246. (NodeImpl::childrenChanged), (NodeImpl::isReadOnly), (NodeImpl::nextRenderer),
  12247. (NodeBaseImpl::NodeBaseImpl), (NodeBaseImpl::~NodeBaseImpl),
  12248. (NodeBaseImpl::insertBefore), (NodeBaseImpl::replaceChild),
  12249. (NodeBaseImpl::removeChild), (NodeBaseImpl::removeChildren),
  12250. (NodeBaseImpl::appendChild), (NodeBaseImpl::checkSameDocument),
  12251. (NodeBaseImpl::checkNoOwner), (NodeBaseImpl::addChild), (NodeBaseImpl::attach),
  12252. (NodeBaseImpl::detach), (NodeBaseImpl::cloneChildNodes),
  12253. (NodeBaseImpl::getElementsByTagNameNS), (NodeBaseImpl::getUpperLeftCorner),
  12254. (NodeBaseImpl::getLowerRightCorner), (NodeBaseImpl::getRect),
  12255. (NodeBaseImpl::setFocus), (NodeBaseImpl::setActive),
  12256. (NodeBaseImpl::dispatchChildInsertedEvents),
  12257. (NodeBaseImpl::dispatchChildRemovalEvents), (ChildNodeListImpl::nodeMatches),
  12258. (TagNodeListImpl::TagNodeListImpl), (TagNodeListImpl::nodeMatches),
  12259. (GenericRONamedNodeMapImpl::GenericRONamedNodeMapImpl),
  12260. (GenericRONamedNodeMapImpl::getNamedItem),
  12261. (GenericRONamedNodeMapImpl::setNamedItem),
  12262. (GenericRONamedNodeMapImpl::removeNamedItem), (GenericRONamedNodeMapImpl::item),
  12263. (GenericRONamedNodeMapImpl::length), (GenericRONamedNodeMapImpl::getNamedItemNS),
  12264. (GenericRONamedNodeMapImpl::setNamedItemNS),
  12265. (GenericRONamedNodeMapImpl::removeNamedItemNS),
  12266. (GenericRONamedNodeMapImpl::addNode):
  12267. * src/kdelibs/khtml/xml/dom_nodeimpl.h:
  12268. * src/kdelibs/khtml/xml/dom_stringimpl.cpp: (DOMStringImpl::toLengthArray),
  12269. (DOMStringImpl::lower), (DOMStringImpl::upper):
  12270. * src/kdelibs/khtml/xml/dom_stringimpl.h:
  12271. * src/kdelibs/khtml/xml/dom_textimpl.cpp: (CharacterDataImpl::CharacterDataImpl),
  12272. (CharacterDataImpl::setData), (CharacterDataImpl::substringData),
  12273. (CharacterDataImpl::appendData), (CharacterDataImpl::insertData),
  12274. (CharacterDataImpl::deleteData), (CharacterDataImpl::replaceData),
  12275. (CharacterDataImpl::nodeValue), (CharacterDataImpl::setNodeValue),
  12276. (CharacterDataImpl::dispatchModifiedEvent),
  12277. (CharacterDataImpl::checkCharDataOperation), (CharacterDataImpl::dump),
  12278. (CommentImpl::nodeName), (CommentImpl::cloneNode), (CommentImpl::id),
  12279. (TextImpl::splitText), (TextImpl::nodeName), (TextImpl::cloneNode),
  12280. (TextImpl::attach), (TextImpl::id), (TextImpl::recalcStyle),
  12281. (CDATASectionImpl::nodeName), (CDATASectionImpl::cloneNode):
  12282. * src/kdelibs/khtml/xml/dom_textimpl.h:
  12283. * src/kdelibs/khtml/xml/dom_xmlimpl.cpp: (EntityImpl::nodeName),
  12284. (EntityImpl::nodeType), (EntityImpl::cloneNode), (EntityReferenceImpl::nodeName),
  12285. (EntityReferenceImpl::cloneNode), (NotationImpl::publicId),
  12286. (NotationImpl::systemId), (NotationImpl::nodeName), (NotationImpl::nodeType),
  12287. (NotationImpl::cloneNode), (NotationImpl::childTypeAllowed),
  12288. (ProcessingInstructionImpl::ProcessingInstructionImpl),
  12289. (ProcessingInstructionImpl::target), (ProcessingInstructionImpl::data),
  12290. (ProcessingInstructionImpl::setData), (ProcessingInstructionImpl::nodeName),
  12291. (ProcessingInstructionImpl::setNodeValue),
  12292. (ProcessingInstructionImpl::cloneNode), (ProcessingInstructionImpl::localHref),
  12293. (ProcessingInstructionImpl::checkStyleSheet),
  12294. (ProcessingInstructionImpl::setStyleSheet):
  12295. * src/kdelibs/khtml/xml/dom_xmlimpl.h:
  12296. * src/kdelibs/khtml/xml/xml_tokenizer.cpp: (XMLHandler::startDocument),
  12297. (XMLHandler::startElement), (XMLHandler::endElement), (XMLHandler::startCDATA),
  12298. (XMLHandler::characters), (XMLHandler::errorString), (XMLHandler::fatalError),
  12299. (XMLHandler::enterText), (XMLHandler::exitText),
  12300. (XMLHandler::internalEntityDecl), (XMLHandler::notationDecl),
  12301. (XMLTokenizer::finish), (XMLTokenizer::addScripts),
  12302. (XMLTokenizer::executeScripts), (XMLTokenizer::notifyFinished):
  12303. * src/kdelibs/khtml/xml/xml_tokenizer.h:
  12304. * src/kdelibs/kjs/array_object.cpp: (ArrayInstanceImp::ArrayInstanceImp),
  12305. (ArrayInstanceImp::put), (ArrayInstanceImp::putDirect),
  12306. (ArrayPrototypeImp::ArrayPrototypeImp), (ArrayPrototypeImp::get),
  12307. (ArrayProtoFuncImp::ArrayProtoFuncImp), (ArrayProtoFuncImp::implementsCall),
  12308. (ArrayProtoFuncImp::call), (ArrayObjectImp::ArrayObjectImp),
  12309. (ArrayObjectImp::implementsConstruct), (ArrayObjectImp::construct),
  12310. (ArrayObjectImp::implementsCall), (ArrayObjectImp::call):
  12311. * src/kdelibs/kjs/array_object.h:
  12312. * src/kdelibs/kjs/bool_object.cpp: (BooleanInstanceImp::BooleanInstanceImp),
  12313. (BooleanPrototypeImp::BooleanPrototypeImp),
  12314. (BooleanProtoFuncImp::BooleanProtoFuncImp),
  12315. (BooleanProtoFuncImp::implementsCall), (BooleanProtoFuncImp::call),
  12316. (BooleanObjectImp::BooleanObjectImp), (BooleanObjectImp::implementsConstruct),
  12317. (BooleanObjectImp::construct), (BooleanObjectImp::implementsCall),
  12318. (BooleanObjectImp::call):
  12319. * src/kdelibs/kjs/bool_object.h:
  12320. * src/kdelibs/kjs/collector.cpp: (Collector::allocate), (Collector::collect),
  12321. (Collector::finalCheck):
  12322. * src/kdelibs/kjs/collector.h:
  12323. * src/kdelibs/kjs/date_object.cpp: (DateInstanceImp::DateInstanceImp),
  12324. (DatePrototypeImp::DatePrototypeImp), (DatePrototypeImp::get),
  12325. (DateProtoFuncImp::DateProtoFuncImp), (DateProtoFuncImp::implementsCall),
  12326. (DateProtoFuncImp::call), (DateObjectImp::DateObjectImp),
  12327. (DateObjectImp::implementsConstruct), (DateObjectImp::construct),
  12328. (DateObjectImp::implementsCall), (DateObjectImp::call),
  12329. (DateObjectFuncImp::DateObjectFuncImp), (DateObjectFuncImp::implementsCall),
  12330. (DateObjectFuncImp::call), (KJS::parseDate), (ymdhms_to_seconds),
  12331. (KJS::KRFCDate_parseDate), (KJS::timeClip):
  12332. * src/kdelibs/kjs/date_object.h:
  12333. * src/kdelibs/kjs/debugger.cpp: (Debugger::Debugger), (Debugger::~Debugger),
  12334. (Debugger::attach), (Debugger::detach), (Debugger::sourceParsed),
  12335. (Debugger::sourceUnused), (Debugger::exception), (Debugger::atStatement),
  12336. (Debugger::callEvent), (Debugger::returnEvent):
  12337. * src/kdelibs/kjs/debugger.h:
  12338. * src/kdelibs/kjs/error_object.cpp: (ErrorPrototypeImp::ErrorPrototypeImp),
  12339. (ErrorProtoFuncImp::ErrorProtoFuncImp), (ErrorProtoFuncImp::implementsCall),
  12340. (ErrorProtoFuncImp::call), (ErrorObjectImp::ErrorObjectImp),
  12341. (ErrorObjectImp::implementsConstruct), (ErrorObjectImp::construct),
  12342. (ErrorObjectImp::implementsCall), (ErrorObjectImp::call),
  12343. (NativeErrorPrototypeImp::NativeErrorPrototypeImp),
  12344. (NativeErrorImp::NativeErrorImp), (NativeErrorImp::implementsConstruct),
  12345. (NativeErrorImp::construct), (NativeErrorImp::implementsCall),
  12346. (NativeErrorImp::call), (NativeErrorImp::mark):
  12347. * src/kdelibs/kjs/error_object.h:
  12348. * src/kdelibs/kjs/function.cpp: (FunctionImp::FunctionImp),
  12349. (FunctionImp::~FunctionImp), (FunctionImp::mark), (FunctionImp::implementsCall),
  12350. (FunctionImp::call), (FunctionImp::processParameters),
  12351. (FunctionImp::processVarDecls), (FunctionImp::pushArgs), (FunctionImp::popArgs),
  12352. (DeclaredFunctionImp::DeclaredFunctionImp),
  12353. (DeclaredFunctionImp::~DeclaredFunctionImp),
  12354. (DeclaredFunctionImp::implementsConstruct), (DeclaredFunctionImp::construct),
  12355. (DeclaredFunctionImp::execute), (DeclaredFunctionImp::processVarDecls),
  12356. (ArgumentsImp::ArgumentsImp), (ActivationImp::ActivationImp),
  12357. (ActivationImp::~ActivationImp), (GlobalFuncImp::GlobalFuncImp),
  12358. (GlobalFuncImp::codeType), (GlobalFuncImp::implementsCall),
  12359. (GlobalFuncImp::call):
  12360. * src/kdelibs/kjs/function.h:
  12361. * src/kdelibs/kjs/function_object.cpp:
  12362. (FunctionPrototypeImp::FunctionPrototypeImp),
  12363. (FunctionPrototypeImp::~FunctionPrototypeImp),
  12364. (FunctionPrototypeImp::implementsCall), (FunctionPrototypeImp::call),
  12365. (FunctionProtoFuncImp::FunctionProtoFuncImp),
  12366. (FunctionProtoFuncImp::implementsCall), (FunctionProtoFuncImp::call),
  12367. (FunctionObjectImp::FunctionObjectImp), (FunctionObjectImp::~FunctionObjectImp),
  12368. (FunctionObjectImp::implementsConstruct), (FunctionObjectImp::construct),
  12369. (FunctionObjectImp::implementsCall), (FunctionObjectImp::call):
  12370. * src/kdelibs/kjs/function_object.h:
  12371. * src/kdelibs/kjs/grammar.y:
  12372. * src/kdelibs/kjs/internal.cpp: (UndefinedImp::toPrimitive),
  12373. (UndefinedImp::toBoolean), (UndefinedImp::toNumber), (UndefinedImp::toString),
  12374. (UndefinedImp::toObject), (NullImp::toPrimitive), (NullImp::toBoolean),
  12375. (NullImp::toNumber), (NullImp::toString), (NullImp::toObject),
  12376. (BooleanImp::toPrimitive), (BooleanImp::toBoolean), (BooleanImp::toNumber),
  12377. (BooleanImp::toString), (BooleanImp::toObject), (StringImp::StringImp),
  12378. (StringImp::toPrimitive), (StringImp::toBoolean), (StringImp::toNumber),
  12379. (StringImp::toString), (StringImp::toObject), (NumberImp::NumberImp),
  12380. (NumberImp::toPrimitive), (NumberImp::toBoolean), (NumberImp::toNumber),
  12381. (NumberImp::toString), (NumberImp::toObject), (ReferenceImp::ReferenceImp),
  12382. (ReferenceImp::mark), (ReferenceImp::toPrimitive), (ReferenceImp::toBoolean),
  12383. (ReferenceImp::toNumber), (ReferenceImp::toString), (ReferenceImp::toObject),
  12384. (LabelStack::LabelStack), (LabelStack::operator=), (LabelStack::push),
  12385. (LabelStack::contains), (LabelStack::pop), (LabelStack::~LabelStack),
  12386. (LabelStack::clear), (CompletionImp::CompletionImp),
  12387. (CompletionImp::~CompletionImp), (CompletionImp::mark),
  12388. (CompletionImp::toPrimitive), (CompletionImp::toBoolean),
  12389. (CompletionImp::toNumber), (CompletionImp::toString), (CompletionImp::toObject),
  12390. (ListImp::toPrimitive), (ListImp::toBoolean), (ListImp::toNumber),
  12391. (ListImp::toString), (ListImp::toObject), (ListImp::ListImp),
  12392. (ListImp::~ListImp), (ListImp::mark), (ListImp::append), (ListImp::prepend),
  12393. (ListImp::appendList), (ListImp::prependList), (ListImp::removeFirst),
  12394. (ListImp::removeLast), (ListImp::remove), (ListImp::clear), (ListImp::copy),
  12395. (ListImp::erase), (ListImp::isEmpty), (ListImp::size), (ListImp::at),
  12396. (ListImp::empty), (ContextImp::ContextImp), (ContextImp::~ContextImp),
  12397. (ContextImp::pushScope), (ContextImp::popScope), (Parser::parse),
  12398. (InterpreterImp::globalInit), (InterpreterImp::globalClear),
  12399. (InterpreterImp::InterpreterImp), (InterpreterImp::~InterpreterImp),
  12400. (InterpreterImp::clear), (InterpreterImp::mark), (InterpreterImp::checkSyntax),
  12401. (InterpreterImp::evaluate), (InterpreterImp::setDebugger),
  12402. (InternalFunctionImp::InternalFunctionImp),
  12403. (InternalFunctionImp::implementsHasInstance), (InternalFunctionImp::hasInstance),
  12404. (KJS::roundValue), (KJS::printInfo):
  12405. * src/kdelibs/kjs/internal.h:
  12406. * src/kdelibs/kjs/lexer.cpp: (Lexer::Lexer), (Lexer::curr), (Lexer::setCode),
  12407. (Lexer::lex), (Lexer::isLineTerminator), (Lexer::matchPunctuator),
  12408. (Lexer::scanRegExp):
  12409. * src/kdelibs/kjs/lexer.h:
  12410. * src/kdelibs/kjs/lexer.lut.h:
  12411. * src/kdelibs/kjs/lookup.cpp: (Lookup::findEntry), (Lookup::find):
  12412. * src/kdelibs/kjs/lookup.h:
  12413. * src/kdelibs/kjs/math_object.cpp: (MathObjectImp::MathObjectImp),
  12414. (MathObjectImp::get), (MathObjectImp::getValueProperty),
  12415. (MathFuncImp::MathFuncImp), (MathFuncImp::implementsCall), (MathFuncImp::call):
  12416. * src/kdelibs/kjs/math_object.h:
  12417. * src/kdelibs/kjs/math_object.lut.h:
  12418. * src/kdelibs/kjs/nodes.cpp: (Node::Node), (Node::~Node), (Node::finalCheck),
  12419. (Node::throwError), (StatementNode::StatementNode),
  12420. (StatementNode::~StatementNode), (StatementNode::setLoc),
  12421. (StatementNode::hitStatement), (StatementNode::abortStatement),
  12422. (NullNode::evaluate), (BooleanNode::evaluate), (NumberNode::evaluate),
  12423. (StringNode::evaluate), (RegExpNode::evaluate), (ThisNode::evaluate),
  12424. (ResolveNode::evaluate), (GroupNode::~GroupNode), (GroupNode::ref),
  12425. (GroupNode::deref), (GroupNode::evaluate), (ElisionNode::~ElisionNode),
  12426. (ElisionNode::ref), (ElisionNode::deref), (ElisionNode::evaluate),
  12427. (ElementNode::~ElementNode), (ElementNode::ref), (ElementNode::deref),
  12428. (ElementNode::evaluate), (ArrayNode::~ArrayNode), (ArrayNode::ref),
  12429. (ArrayNode::deref), (ArrayNode::evaluate),
  12430. (ObjectLiteralNode::~ObjectLiteralNode), (ObjectLiteralNode::ref),
  12431. (ObjectLiteralNode::deref), (ObjectLiteralNode::evaluate),
  12432. (PropertyValueNode::~PropertyValueNode), (PropertyValueNode::ref),
  12433. (PropertyValueNode::deref), (PropertyValueNode::evaluate),
  12434. (PropertyNode::evaluate), (AccessorNode1::~AccessorNode1), (AccessorNode1::ref),
  12435. (AccessorNode1::deref), (AccessorNode1::evaluate),
  12436. (AccessorNode2::~AccessorNode2), (AccessorNode2::ref), (AccessorNode2::deref),
  12437. (AccessorNode2::evaluate), (ArgumentListNode::ArgumentListNode),
  12438. (ArgumentListNode::~ArgumentListNode), (ArgumentListNode::ref),
  12439. (ArgumentListNode::deref), (ArgumentListNode::evaluate),
  12440. (ArgumentListNode::evaluateList), (ArgumentsNode::ArgumentsNode),
  12441. (ArgumentsNode::~ArgumentsNode), (ArgumentsNode::ref), (ArgumentsNode::deref),
  12442. (ArgumentsNode::evaluate), (ArgumentsNode::evaluateList),
  12443. (NewExprNode::~NewExprNode), (NewExprNode::ref), (NewExprNode::deref),
  12444. (NewExprNode::evaluate), (FunctionCallNode::~FunctionCallNode),
  12445. (FunctionCallNode::ref), (FunctionCallNode::deref), (FunctionCallNode::evaluate),
  12446. (PostfixNode::~PostfixNode), (PostfixNode::ref), (PostfixNode::deref),
  12447. (PostfixNode::evaluate), (DeleteNode::~DeleteNode), (DeleteNode::ref),
  12448. (DeleteNode::deref), (DeleteNode::evaluate), (VoidNode::~VoidNode),
  12449. (VoidNode::ref), (VoidNode::deref), (VoidNode::evaluate),
  12450. (TypeOfNode::~TypeOfNode), (TypeOfNode::ref), (TypeOfNode::deref),
  12451. (TypeOfNode::evaluate), (PrefixNode::~PrefixNode), (PrefixNode::ref),
  12452. (PrefixNode::deref), (PrefixNode::evaluate), (UnaryPlusNode::~UnaryPlusNode),
  12453. (UnaryPlusNode::ref), (UnaryPlusNode::deref), (UnaryPlusNode::evaluate),
  12454. (NegateNode::~NegateNode), (NegateNode::ref), (NegateNode::deref),
  12455. (NegateNode::evaluate), (BitwiseNotNode::~BitwiseNotNode), (BitwiseNotNode::ref),
  12456. (BitwiseNotNode::deref), (BitwiseNotNode::evaluate),
  12457. (LogicalNotNode::~LogicalNotNode), (LogicalNotNode::ref),
  12458. (LogicalNotNode::deref), (LogicalNotNode::evaluate), (MultNode::~MultNode),
  12459. (MultNode::ref), (MultNode::deref), (MultNode::evaluate), (AddNode::~AddNode),
  12460. (AddNode::ref), (AddNode::deref), (AddNode::evaluate), (ShiftNode::~ShiftNode),
  12461. (ShiftNode::ref), (ShiftNode::deref), (ShiftNode::evaluate),
  12462. (RelationalNode::~RelationalNode), (RelationalNode::ref),
  12463. (RelationalNode::deref), (RelationalNode::evaluate), (EqualNode::~EqualNode),
  12464. (EqualNode::ref), (EqualNode::deref), (EqualNode::evaluate),
  12465. (BitOperNode::~BitOperNode), (BitOperNode::ref), (BitOperNode::deref),
  12466. (BitOperNode::evaluate), (BinaryLogicalNode::~BinaryLogicalNode),
  12467. (BinaryLogicalNode::ref), (BinaryLogicalNode::deref),
  12468. (BinaryLogicalNode::evaluate), (ConditionalNode::~ConditionalNode),
  12469. (ConditionalNode::ref), (ConditionalNode::deref), (ConditionalNode::evaluate),
  12470. (AssignNode::~AssignNode), (AssignNode::ref), (AssignNode::deref),
  12471. (AssignNode::evaluate), (CommaNode::~CommaNode), (CommaNode::ref),
  12472. (CommaNode::deref), (CommaNode::evaluate), (StatListNode::~StatListNode),
  12473. (StatListNode::ref), (StatListNode::deref), (StatListNode::execute),
  12474. (StatListNode::processVarDecls), (AssignExprNode::~AssignExprNode),
  12475. (AssignExprNode::ref), (AssignExprNode::deref), (AssignExprNode::evaluate),
  12476. (VarDeclNode::VarDeclNode), (VarDeclNode::~VarDeclNode), (VarDeclNode::ref),
  12477. (VarDeclNode::deref), (VarDeclNode::evaluate), (VarDeclNode::processVarDecls),
  12478. (VarDeclListNode::~VarDeclListNode), (VarDeclListNode::ref),
  12479. (VarDeclListNode::deref), (VarDeclListNode::evaluate),
  12480. (VarDeclListNode::processVarDecls), (VarStatementNode::~VarStatementNode),
  12481. (VarStatementNode::ref), (VarStatementNode::deref), (VarStatementNode::execute),
  12482. (VarStatementNode::processVarDecls), (BlockNode::~BlockNode), (BlockNode::ref),
  12483. (BlockNode::deref), (BlockNode::execute), (BlockNode::processVarDecls),
  12484. (EmptyStatementNode::execute), (ExprStatementNode::~ExprStatementNode),
  12485. (ExprStatementNode::ref), (ExprStatementNode::deref),
  12486. (ExprStatementNode::execute), (IfNode::~IfNode), (IfNode::ref), (IfNode::deref),
  12487. (IfNode::execute), (IfNode::processVarDecls), (DoWhileNode::~DoWhileNode),
  12488. (DoWhileNode::ref), (DoWhileNode::deref), (DoWhileNode::execute),
  12489. (DoWhileNode::processVarDecls), (WhileNode::~WhileNode), (WhileNode::ref),
  12490. (WhileNode::deref), (WhileNode::execute), (WhileNode::processVarDecls),
  12491. (ForNode::~ForNode), (ForNode::ref), (ForNode::deref), (ForNode::execute),
  12492. (ForNode::processVarDecls), (ForInNode::ForInNode), (ForInNode::~ForInNode),
  12493. (ForInNode::ref), (ForInNode::deref), (ForInNode::execute),
  12494. (ForInNode::processVarDecls), (ContinueNode::execute), (BreakNode::execute),
  12495. (ReturnNode::~ReturnNode), (ReturnNode::ref), (ReturnNode::deref),
  12496. (ReturnNode::execute), (WithNode::~WithNode), (WithNode::ref), (WithNode::deref),
  12497. (WithNode::execute), (WithNode::processVarDecls),
  12498. (CaseClauseNode::~CaseClauseNode), (CaseClauseNode::ref),
  12499. (CaseClauseNode::deref), (CaseClauseNode::evaluate),
  12500. (CaseClauseNode::evalStatements), (CaseClauseNode::processVarDecls),
  12501. (ClauseListNode::~ClauseListNode), (ClauseListNode::ref),
  12502. (ClauseListNode::deref), (ClauseListNode::evaluate),
  12503. (ClauseListNode::processVarDecls), (CaseBlockNode::~CaseBlockNode),
  12504. (CaseBlockNode::ref), (CaseBlockNode::deref), (CaseBlockNode::evaluate),
  12505. (CaseBlockNode::evalBlock), (CaseBlockNode::processVarDecls),
  12506. (SwitchNode::~SwitchNode), (SwitchNode::ref), (SwitchNode::deref),
  12507. (SwitchNode::execute), (SwitchNode::processVarDecls), (LabelNode::~LabelNode),
  12508. (LabelNode::ref), (LabelNode::deref), (LabelNode::execute),
  12509. (LabelNode::processVarDecls), (ThrowNode::~ThrowNode), (ThrowNode::ref),
  12510. (ThrowNode::deref), (ThrowNode::execute), (CatchNode::~CatchNode),
  12511. (CatchNode::ref), (CatchNode::deref), (CatchNode::execute),
  12512. (CatchNode::processVarDecls), (FinallyNode::~FinallyNode), (FinallyNode::ref),
  12513. (FinallyNode::deref), (FinallyNode::execute), (FinallyNode::processVarDecls),
  12514. (TryNode::~TryNode), (TryNode::ref), (TryNode::deref), (TryNode::execute),
  12515. (TryNode::processVarDecls), (ParameterNode::~ParameterNode),
  12516. (ParameterNode::ref), (ParameterNode::deref), (ParameterNode::append),
  12517. (ParameterNode::evaluate), (FunctionBodyNode::FunctionBodyNode),
  12518. (FunctionBodyNode::~FunctionBodyNode), (FunctionBodyNode::ref),
  12519. (FunctionBodyNode::deref), (FunctionBodyNode::execute),
  12520. (FunctionBodyNode::processFuncDecl), (FunctionBodyNode::processVarDecls),
  12521. (FuncDeclNode::~FuncDeclNode), (FuncDeclNode::ref), (FuncDeclNode::deref),
  12522. (FuncDeclNode::processFuncDecl), (FuncExprNode::~FuncExprNode),
  12523. (FuncExprNode::ref), (FuncExprNode::deref), (FuncExprNode::evaluate),
  12524. (SourceElementNode::~SourceElementNode), (SourceElementNode::ref),
  12525. (SourceElementNode::deref), (SourceElementNode::execute),
  12526. (SourceElementNode::processFuncDecl), (SourceElementNode::processVarDecls),
  12527. (SourceElementsNode::~SourceElementsNode), (SourceElementsNode::ref),
  12528. (SourceElementsNode::deref), (SourceElementsNode::execute),
  12529. (SourceElementsNode::processFuncDecl), (SourceElementsNode::processVarDecls),
  12530. (ProgramNode::ProgramNode), (ProgramNode::~ProgramNode):
  12531. * src/kdelibs/kjs/nodes.h:
  12532. * src/kdelibs/kjs/number_object.cpp: (NumberInstanceImp::NumberInstanceImp),
  12533. (NumberPrototypeImp::NumberPrototypeImp),
  12534. (NumberProtoFuncImp::NumberProtoFuncImp), (NumberProtoFuncImp::implementsCall),
  12535. (NumberProtoFuncImp::call), (NumberObjectImp::NumberObjectImp),
  12536. (NumberObjectImp::get), (NumberObjectImp::getValueProperty),
  12537. (NumberObjectImp::implementsConstruct), (NumberObjectImp::construct),
  12538. (NumberObjectImp::implementsCall), (NumberObjectImp::call):
  12539. * src/kdelibs/kjs/number_object.h:
  12540. * src/kdelibs/kjs/object.cpp: (Object::Object), (Object::~Object),
  12541. (Object::operator=), (Object::classInfo), (Object::inherits),
  12542. (Object::dynamicCast), (Object::prototype), (Object::className), (Object::get),
  12543. (Object::put), (Object::canPut), (Object::hasProperty), (Object::deleteProperty),
  12544. (Object::defaultValue), (Object::implementsConstruct), (Object::construct),
  12545. (Object::implementsCall), (Object::call), (Object::implementsHasInstance),
  12546. (Object::hasInstance), (Object::scope), (Object::setScope), (Object::propList),
  12547. (Object::internalValue), (Object::setInternalValue), (ObjectImp::ObjectImp),
  12548. (ObjectImp::~ObjectImp), (ObjectImp::mark), (ObjectImp::classInfo),
  12549. (ObjectImp::inherits), (ObjectImp::type), (ObjectImp::prototype),
  12550. (ObjectImp::setPrototype), (ObjectImp::className), (ObjectImp::get),
  12551. (ObjectImp::getDirect), (ObjectImp::put), (ObjectImp::canPut),
  12552. (ObjectImp::hasProperty), (ObjectImp::deleteProperty),
  12553. (ObjectImp::deleteAllProperties), (ObjectImp::defaultValue),
  12554. (ObjectImp::findPropertyHashEntry), (ObjectImp::implementsConstruct),
  12555. (ObjectImp::construct), (ObjectImp::implementsCall), (ObjectImp::call),
  12556. (ObjectImp::implementsHasInstance), (ObjectImp::hasInstance), (ObjectImp::scope),
  12557. (ObjectImp::setScope), (ObjectImp::propList), (ObjectImp::internalValue),
  12558. (ObjectImp::setInternalValue), (ObjectImp::toPrimitive), (ObjectImp::toBoolean),
  12559. (ObjectImp::toNumber), (ObjectImp::toInteger), (ObjectImp::toInt32),
  12560. (ObjectImp::toUInt32), (ObjectImp::toUInt16), (ObjectImp::toString),
  12561. (ObjectImp::toObject), (Error::create):
  12562. * src/kdelibs/kjs/object.h:
  12563. * src/kdelibs/kjs/object_object.cpp: (ObjectPrototypeImp::ObjectPrototypeImp),
  12564. (ObjectProtoFuncImp::ObjectProtoFuncImp), (ObjectProtoFuncImp::implementsCall),
  12565. (ObjectProtoFuncImp::call), (ObjectObjectImp::ObjectObjectImp),
  12566. (ObjectObjectImp::implementsConstruct), (ObjectObjectImp::construct),
  12567. (ObjectObjectImp::implementsCall), (ObjectObjectImp::call):
  12568. * src/kdelibs/kjs/object_object.h:
  12569. * src/kdelibs/kjs/operations.cpp: (KJS::isPosInf), (KJS::isNegInf), (KJS::equal),
  12570. (KJS::strictEqual), (KJS::relation), (KJS::maxInt), (KJS::minInt), (KJS::add),
  12571. (KJS::mult):
  12572. * src/kdelibs/kjs/operations.h:
  12573. * src/kdelibs/kjs/regexp.cpp: (RegExp::RegExp), (RegExp::~RegExp),
  12574. (RegExp::match), (RegExp::test):
  12575. * src/kdelibs/kjs/regexp.h:
  12576. * src/kdelibs/kjs/regexp_object.cpp: (RegExpPrototypeImp::RegExpPrototypeImp),
  12577. (RegExpProtoFuncImp::RegExpProtoFuncImp), (RegExpProtoFuncImp::implementsCall),
  12578. (RegExpProtoFuncImp::call), (RegExpImp::RegExpImp), (RegExpImp::~RegExpImp),
  12579. (RegExpObjectImp::RegExpObjectImp), (RegExpObjectImp::~RegExpObjectImp),
  12580. (RegExpObjectImp::registerRegexp), (RegExpObjectImp::arrayOfMatches),
  12581. (RegExpObjectImp::get), (RegExpObjectImp::implementsConstruct),
  12582. (RegExpObjectImp::construct), (RegExpObjectImp::implementsCall),
  12583. (RegExpObjectImp::call):
  12584. * src/kdelibs/kjs/regexp_object.h:
  12585. * src/kdelibs/kjs/string_object.cpp: (StringInstanceImp::StringInstanceImp),
  12586. (StringPrototypeImp::StringPrototypeImp), (StringPrototypeImp::get),
  12587. (StringProtoFuncImp::StringProtoFuncImp), (StringProtoFuncImp::implementsCall),
  12588. (StringProtoFuncImp::call), (StringObjectImp::StringObjectImp),
  12589. (StringObjectImp::implementsConstruct), (StringObjectImp::construct),
  12590. (StringObjectImp::implementsCall), (StringObjectImp::call),
  12591. (StringObjectFuncImp::StringObjectFuncImp),
  12592. (StringObjectFuncImp::implementsCall), (StringObjectFuncImp::call):
  12593. * src/kdelibs/kjs/string_object.h:
  12594. * src/kdelibs/kjs/testkjs.cpp: (TestFunctionImp::call), (main):
  12595. * src/kdelibs/kjs/types.cpp: (Reference::Reference), (Reference::~Reference),
  12596. (Reference::operator=), (Reference::dynamicCast), (ListIterator::ListIterator),
  12597. (ListIterator::operator=), (ListIterator::~ListIterator),
  12598. (ListIterator::operator->), (ListIterator::operator*),
  12599. (ListIterator::operator++), (ListIterator::operator--),
  12600. (ListIterator::operator==), (ListIterator::operator!=), (List::List),
  12601. (List::~List), (List::operator=), (List::dynamicCast), (List::append),
  12602. (List::prepend), (List::appendList), (List::prependList), (List::removeFirst),
  12603. (List::removeLast), (List::remove), (List::clear), (List::copy), (List::begin),
  12604. (List::end), (List::isEmpty), (List::size), (List::at), (List::operator[]),
  12605. (List::empty), (Completion::Completion), (Completion::~Completion),
  12606. (Completion::operator=), (Completion::dynamicCast), (Completion::complType),
  12607. (Completion::value), (Completion::target), (Completion::isValueCompletion):
  12608. * src/kdelibs/kjs/types.h:
  12609. * src/kdelibs/kjs/ustring.cpp: (UChar::UChar), (UChar::toLower),
  12610. (UChar::toUpper), (UString::from), (UString::ascii), (UString::operator=),
  12611. (UString::is8Bit), (UString::toDouble), (KJS::operator==):
  12612. * src/kdelibs/kjs/ustring.h:
  12613. 2002-03-19 Richard Williamson <rjw@apple.com>
  12614. Fixed NSPopupButton performance bottleneck.
  12615. * src/kdelibs/khtml/rendering/render_form.cpp: (RenderSelect::layout):
  12616. * src/kwq/KWQComboBox.mm: (QComboBox::insertItem):
  12617. * src/kwq/KWQKComboBox.mm: (KComboBox::~KComboBox), (KComboBox::doneLoading),
  12618. (KComboBox::setSize):
  12619. * src/kwq/kdeui/kcombobox.h:
  12620. * src/kwq/qt/qcombobox.h:
  12621. 2002-03-19 Richard Williamson <rjw@apple.com>
  12622. Changed float width cache to use shorts.
  12623. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutInfo _initializeCaches]),
  12624. (_rectForString):
  12625. * src/kwq/KWQMetrics.h:
  12626. 2002-03-19 Richard Williamson <rjw@apple.com>
  12627. Improved cache-miss case for non-latin1 characters.
  12628. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutInfo initWithFont:]), (-[KWQLayoutInfo
  12629. layoutManager]), (-[KWQLayoutInfo textStorage]), (-[KWQLayoutInfo
  12630. _initializeCaches]), (_rectForString), (-[KWQLayoutInfo setColor:]),
  12631. (-[KWQLayoutInfo attributes]), (-[KWQLayoutInfo dealloc]):
  12632. * src/kwq/KWQMetrics.h:
  12633. * src/kwq/kwqdebug.h:
  12634. 2002-03-18 Darin Adler <darin@apple.com>
  12635. * src/kwq/KWQListImpl.mm: (KWQListImpl::sort): Use insertion sort for
  12636. small lists. Also special case for lists of size 2 and under.
  12637. 2002-03-18 Richard Williamson <rjw@apple.com>
  12638. Added comments about new layout scheme. Cleaned up code.
  12639. Improved core measurement routine.
  12640. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::boundingRect):
  12641. * src/kwq/kwqdebug.h:
  12642. 2002-03-18 Darin Adler <darin@apple.com>
  12643. * src/kwq/KWQString.mm: (QString::latin1): Handle null case properly.
  12644. We must return "", not 0.
  12645. 2002-03-18 Darin Adler <darin@apple.com>
  12646. Redo inlining of QChar and QString and some other small speed improvements.
  12647. Sadly, this doesn't seem to make things measurably faster, but I decided to
  12648. commit my work rather than discarding it; it doesn't make things slower.
  12649. * src/kwq/qt/qstring.h:
  12650. * src/kwq/KWQChar.mm:
  12651. * src/kwq/KWQString.mm:
  12652. Do a lot more inlining. Also, the CFStringRef inside a QString is now never
  12653. nil, so we can get rid of many checks for nil.
  12654. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::width): Use _rectForString() a
  12655. couple more places.
  12656. 2002-03-18 Richard Williamson <rjw@apple.com>
  12657. Changed to use non direct _rectForString() function. Avoids
  12658. unnecessary NSString allocation.
  12659. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::boundingRect):
  12660. 2002-03-18 Darin Adler <darin@apple.com>
  12661. * src/kwq/KWQFontMetrics.mm: (QFontMetricsPrivate::getInfo),
  12662. (QFontMetrics::width), (QFontMetrics::_width), (QFontMetrics::boundingRect),
  12663. (QFontMetrics::size): Don't make the info object right away, in case the
  12664. metrics object is only used to compute ascent and descent.
  12665. 2002-03-17 Richard Williamson <rjw@apple.com>
  12666. Implementation of replacement code for NSLayoutManager. Huge
  12667. performance gains.
  12668. * src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::calcMinMaxWidth),
  12669. (RenderText::width):
  12670. * src/kwq/KWQFontMetrics.mm: (ROUND_TO_INT), (__IFInitATSGlyphVector),
  12671. (__IFResetATSGlyphVector), (__IFFillStyleWithAttributes), (-[KWQLayoutInfo
  12672. drawString:atPoint:withFont:color:]), (+[KWQLayoutInfo
  12673. drawString:atPoint:withFont:color:]), (-[KWQLayoutInfo
  12674. drawUnderlineForString:atPoint:withFont:color:]), (+[KWQLayoutInfo
  12675. drawUnderlineForString:atPoint:withFont:color:]), (-[KWQLayoutInfo
  12676. initWithFont:]), (-[KWQLayoutInfo _initializeCaches]), (_rectForString),
  12677. (-[KWQLayoutInfo rectForString:]), (-[KWQLayoutInfo attributes]),
  12678. (-[KWQLayoutInfo lineHeight]), (-[KWQLayoutInfo font]), (-[KWQLayoutInfo
  12679. dealloc]), (QFontMetrics::_width):
  12680. * src/kwq/KWQMetrics.h:
  12681. * src/kwq/Makefile.am:
  12682. * src/kwq/qt/qfontmetrics.h:
  12683. 2002-03-16 Richard Williamson <rjw@apple.com>
  12684. Fixed error handling. Removed ObjC code for url handle client from KHTMLPart.
  12685. Need to sanitize KHTMLPart further.
  12686. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::openURL), (KHTMLPart::closeURL),
  12687. (KHTMLPart::requestFrameName), (KHTMLPart::requestFrame), (KHTMLPart::overURL):
  12688. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandleResourceDidCancelLoading:]),
  12689. (-[URLLoadClient IFURLHandleResourceDidFinishLoading:data:]), (-[URLLoadClient
  12690. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[URLLoadClient
  12691. IFURLHandle:resourceDidFailLoadingWithResult:]):
  12692. * src/kwq/external.h:
  12693. 2002-03-15 Richard Williamson <rjw@apple.com>
  12694. Fixed crasher initializing items in popup button.
  12695. Increased fragment cache initial size.
  12696. * src/kwq/KWQComboBox.mm: (QComboBox::init), (QComboBox::~QComboBox),
  12697. (QComboBox::insertItem):
  12698. * src/kwq/KWQTextStorage.mm: (-[KWQTextStorage _buildFragmentForString:]):
  12699. * src/kwq/qt/qcombobox.h:
  12700. 2002-03-15 Richard Williamson <rjw@apple.com>
  12701. More string usage optimizations. Got another 10% or so.
  12702. * src/kdelibs/khtml/css/cssstyleselector.cpp: (checkPseudoState),
  12703. (khtml::applyRule):
  12704. * src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::calcMinMaxWidth),
  12705. (RenderText::width):
  12706. 2002-03-15 Darin Adler <darin@apple.com>
  12707. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::descent): Oops, removed a - sign
  12708. that I should have left in there.
  12709. 2002-03-15 Darin Adler <darin@apple.com>
  12710. Some more optimizations. Carves another 6% or so off of NSView.html.
  12711. * src/kwq/KWQChar.mm: (QChar::QChar): Handle characters > 0x7F correctly.
  12712. (QChar::cell): Remove unnecessary & operation.
  12713. (QChar::row): Remove unnecessary & operation.
  12714. (QChar::latin1): Do a simpler check rather than calling row().
  12715. (QChar::operator char): Do the same work as latin1 inline.
  12716. (operator==) (operator!=), (operator>=), (operator>), (operator<=), (operator<):
  12717. Handle characters > 0x7F correctly.
  12718. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::ascent), (QFontMetrics::descent):
  12719. Cache the ascent and descent rather than computing it each time we are called.
  12720. 2002-03-15 Darin Adler <darin@apple.com>
  12721. Optimizations for creating empty QFont objects, measuring certain single
  12722. characters, and copying QFontMetrics objects. Makes loading NSView.html about
  12723. 18% faster.
  12724. * src/kwq/qt/qfontmetrics.h: Use a ref-counted pointer so QFontMetrics objects
  12725. for the same QFont can share data.
  12726. * src/kwq/KWQFont.mm: (loadDefaultFont): New, used to load the default
  12727. font used for default-initialized QFont objects.
  12728. (QFont::_initializeWithFont): Don't recompute the family name, point size, or
  12729. traits.
  12730. (QFont::setFamily), (QFont::setPixelSizeFloat), (QFont::setWeight),
  12731. (QFont::setItalic): autorelease the font, as we do in the destructor, since
  12732. someone could still be using the result of getFont.
  12733. (QFont::operator==): Add a comment about a problem with this function.
  12734. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::QFontMetrics): Add a refCount, and
  12735. a cached width for space and lower-case "x", the two single characters that
  12736. are often measured.
  12737. (QFontMetrics::~QFontMetrics): Simplify.
  12738. (QFontMetrics::operator=): Just copy the underlying data pointer rather than
  12739. making our own KWQLayoutInfo object.
  12740. (QFontMetrics::baselineOffset): Make const.
  12741. (QFontMetrics::width): Add the caching for space and "x".
  12742. 2002-03-15 Richard Williamson <rjw@apple.com>
  12743. Optimizations that remove unnecessary cfstring allocations of local scope
  12744. strings. QString::gstring_toQString and QString::gstring_toCFString were
  12745. added to simplify the reuse of a static CFString as the backing store for
  12746. local QStrings. Hit the top two problem areas. Many more gains to be had
  12747. by using this technique.
  12748. * src/kdelibs/khtml/css/cssstyleselector.cpp:
  12749. (CSSStyleSelector::checkOneSelector):
  12750. * src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::calcMinMaxWidth):
  12751. * src/kwq/KWQString.mm: (QString::gstring_toQString),
  12752. (QString::gstring_toCFString):
  12753. * src/kwq/qt/qstring.h:
  12754. 2002-03-14 Richard Williamson <rjw@apple.com>
  12755. Fixed another problem in QString::find().
  12756. Added dangerous but fast string allocation optimization to render_text.cpp.
  12757. * src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::calcMinMaxWidth):
  12758. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::_width):
  12759. * src/kwq/KWQString.mm: (QString::find):
  12760. * src/kwq/KWQTextStorage.mm: (-[KWQTextStorage _buildFragmentForString:]),
  12761. (-[KWQTextStorage setString:]):
  12762. * src/kwq/qt/qfontmetrics.h:
  12763. 2002-03-14 Richard Williamson <rjw@apple.com>
  12764. Fixed optimized find() implementation. I had the sense of caseSensitive inverted.
  12765. * src/kwq/KWQString.mm: (QString::find):
  12766. 2002-03-14 Richard Williamson <rjw@apple.com>
  12767. Attempted implementation of space optimizations. Disabled for now.
  12768. * src/kwq/KWQFontMetrics.mm: (+[KWQLayoutInfo _dumpLayoutCache:]),
  12769. (-[KWQLayoutInfo rectForString:]):
  12770. * src/kwq/KWQMetrics.h:
  12771. * src/kwq/KWQTextStorage.h:
  12772. * src/kwq/KWQTextStorage.mm: (-[KWQTextStorage _buildFragmentForString:]),
  12773. (-[KWQTextStorage getFragmentForString:]), (-[KWQTextStorage
  12774. initWithFontAttribute:]), (-[KWQTextStorage addLayoutManager:]):
  12775. 2002-03-14 Richard Williamson <rjw@apple.com>
  12776. Implemented a progressively cache fragment.
  12777. * src/kwq/KWQFontMetrics.mm: (-[KWQSmallLayoutFragment setGlyphRange:]),
  12778. (-[KWQSmallLayoutFragment setBoundingRect:]), (-[KWQSmallLayoutFragment
  12779. boundingRect]), (-[KWQLargeLayoutFragment glyphRange]), (-[KWQLargeLayoutFragment
  12780. setGlyphRange:]), (-[KWQLargeLayoutFragment setBoundingRect:]),
  12781. (-[KWQLargeLayoutFragment boundingRect]), (-[KWQLargeLayoutFragment compare:]),
  12782. (+[KWQLayoutInfo drawString:atPoint:withFont:color:]), (+[KWQLayoutInfo
  12783. drawUnderlineForString:atPoint:withFont:color:]), (+[KWQLayoutInfo
  12784. _dumpLayoutCache:]), (-[KWQLayoutInfo rectForString:]):
  12785. * src/kwq/KWQMetrics.h:
  12786. * src/kwq/KWQTextStorage.h:
  12787. * src/kwq/KWQTextStorage.mm: (-[KWQTextStorage getFragmentForString:]),
  12788. (-[KWQTextStorage addFragmentForString:]):
  12789. 2002-03-13 Richard Williamson <rjw@apple.com>
  12790. Added font cache. Attempted to reduce size of fragment cache, but
  12791. malloc forces a minimum of 30 bytes for our 14 byte objects.
  12792. * src/kwq/KWQFont.mm: (-[IFFontCacheKey dealloc]), (-[IFFontCacheKey
  12793. copyWithZone:]), (-[IFFontCacheKey hash]), (-[IFFontCacheKey string]),
  12794. (-[IFFontCacheKey isEqual:]), (QFont::getFont):
  12795. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutFragment setGlyphRangeLength:]):
  12796. * src/kwq/KWQMetrics.h:
  12797. * src/kwq/KWQTextStorage.mm: (-[KWQTextStorage addFragmentForString:]):
  12798. 2002-03-13 Richard Williamson <rjw@apple.com>
  12799. Re-worked fragment cache to minimize memory usage.
  12800. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutFragment glyphRange]),
  12801. (-[KWQLayoutFragment setGlyphRangeLength:]), (-[KWQLayoutFragment
  12802. setBoundingRectSize:]), (-[KWQLayoutFragment boundingRect]), (+[KWQLayoutInfo
  12803. drawString:atPoint:withFont:color:]), (+[KWQLayoutInfo
  12804. drawUnderlineForString:atPoint:withFont:color:]), (-[KWQLayoutInfo
  12805. initWithFont:]), (-[KWQLayoutInfo layoutManager]), (-[KWQLayoutInfo
  12806. textStorage]), (-[KWQLayoutInfo rectForString:]):
  12807. * src/kwq/KWQMetrics.h:
  12808. * src/kwq/KWQTextStorage.h:
  12809. * src/kwq/KWQTextStorage.mm: (-[KWQTextStorage getFragmentForString:]),
  12810. (-[KWQTextStorage addFragmentForString:]), (-[KWQTextStorage
  12811. initWithFontAttribute:]), (-[KWQTextStorage dealloc]), (-[KWQTextStorage
  12812. length]), (-[KWQTextStorage setAttributes:]), (-[KWQTextStorage setString:]),
  12813. (-[KWQTextStorage string]):
  12814. 2002-03-13 Kenneth Kocienda <kocienda@apple.com>
  12815. Updated for new didRedirectToURL callback. This is a partial fix for this bug:
  12816. Radar 2879234 (Redirected URLs not used for subsequent GETs)
  12817. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  12818. IFURLHandle:didRedirectToURL:]):
  12819. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandle:didRedirectToURL:]):
  12820. 2002-03-12 Richard Williamson <rjw@apple.com>
  12821. * src/kwq/KWQString.mm: (QString::find), (QString::contains),
  12822. (QString::compareToLatin1):
  12823. 2002-03-11 Richard Williamson <rjw@apple.com>
  12824. Re-implemented QPainter::drawTiledPixmap to use core graphics patterns. Currently this depends
  12825. on SPI. The performance boost is huge osx.macnn.com draws 40x faster now.
  12826. * src/kwq/KWQPainter.mm: (QPainter::drawTiledPixmap):
  12827. 2002-03-08 Richard Williamson <rjw@apple.com>
  12828. Re-implemented KWQFont to lazily request font from NSFontManager instead of
  12829. user converFont:. I did this after sampling loads of http://www.apple.com/retail/theater
  12830. and found that converting fonts was very expensive.
  12831. * src/kwq/KWQFont.mm: (QFont::defaultNSFont), (QFont::_initializeWithFont),
  12832. (QFont::QFont), (QFont::_free), (QFont::getFont), (QFont::pixelSize),
  12833. (QFont::family), (QFont::setFamily), (QFont::setPixelSizeFloat),
  12834. (QFont::setWeight), (QFont::weight), (QFont::setItalic), (QFont::italic),
  12835. (QFont::bold), (QFont::operator!=):
  12836. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::QFontMetrics):
  12837. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::requestFrame):
  12838. * src/kwq/KWQPainter.mm: (QPainter::drawText), (QPainter::drawUnderlineForText):
  12839. * src/kwq/qt/qfont.h:
  12840. 2002-03-08 Richard Williamson <rjw@apple.com>
  12841. Instrumentation of the text fragment metrics cache.
  12842. Added _FAST_QSTRING_TO_NSSTRING.
  12843. * src/kwq/KWQFontMetrics.mm: (-[KWQLayoutFragment initWithString:attributes:]),
  12844. (-[KWQLayoutFragment boundingRect]), (-[KWQLayoutFragment compare:]),
  12845. (+[KWQLayoutInfo _dumpLayoutCache:]), (+[KWQLayoutInfo _dumpAllLayoutCaches]),
  12846. (-[KWQLayoutInfo rectForString:]), (QFontMetrics::width),
  12847. (QFontMetrics::boundingRect), (QFontMetrics::size):
  12848. * src/kwq/KWQMetrics.h:
  12849. * src/kwq/qt/qstring.h:
  12850. 2002-03-08 John Sullivan <sullivan@apple.com>
  12851. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::openURL), (KHTMLPart::end):
  12852. Changed openURL() and end() messages to use debug levels. You
  12853. can see these by setting your WebKitLogLevel mask to include
  12854. 0x00000008
  12855. 2002-03-07 John Sullivan <sullivan@apple.com>
  12856. * src/kwq/kwqdebug.h: New debug level constants, kept in
  12857. synch with WebKitDebug.h
  12858. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  12859. IFURLHandleResourceDidBeginLoading:]), (-[KHTMLPartLoadClient
  12860. IFURLHandleResourceDidCancelLoading:]), (-[KHTMLPartLoadClient
  12861. IFURLHandleResourceDidFinishLoading:data:]), (-[KHTMLPartLoadClient
  12862. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[KHTMLPartLoadClient
  12863. IFURLHandle:resourceDidFailLoadingWithResult:]):
  12864. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandleResourceDidBeginLoading:]),
  12865. (-[URLLoadClient IFURLHandleResourceDidCancelLoading:]), (-[URLLoadClient
  12866. IFURLHandleResourceDidFinishLoading:data:]), (-[URLLoadClient
  12867. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[URLLoadClient
  12868. IFURLHandle:resourceDidFailLoadingWithResult:]), (Loader::load),
  12869. (Loader::servePendingRequests):
  12870. * src/kwq/KWQView.mm: (-[KWQHTMLView layout]), (-[KWQHTMLView drawRect:]):
  12871. Changed numeric debug levels to symbolic ones.
  12872. 2002-03-07 Don Melton <gramps@apple.com>
  12873. Removed unused file in kdelibs that I missed in previous commit.
  12874. * src/kdelibs/khtml/test/layout.html:
  12875. 2002-03-06 Don Melton <gramps@apple.com>
  12876. Removed unused files in kdelibs.
  12877. * src/kdelibs/AUTHORS:
  12878. * src/kdelibs/README:
  12879. * src/kdelibs/khtml/CHANGES:
  12880. * src/kdelibs/khtml/DESIGN.html:
  12881. * src/kdelibs/khtml/README.HTMLWidget:
  12882. * src/kdelibs/khtml/README.tags:
  12883. * src/kdelibs/khtml/SECURITY:
  12884. * src/kdelibs/khtml/TODO:
  12885. * src/kdelibs/khtml/design.h:
  12886. * src/kdelibs/khtml/domtreeview.cpp:
  12887. * src/kdelibs/khtml/domtreeview.h:
  12888. * src/kdelibs/khtml/ecma/AUTHORS:
  12889. * src/kdelibs/khtml/ecma/README:
  12890. * src/kdelibs/khtml/ecma/THANKS:
  12891. * src/kdelibs/khtml/ecma/TODO:
  12892. * src/kdelibs/khtml/ecma/jsk.html:
  12893. * src/kdelibs/khtml/ecma/testecma.cpp:
  12894. * src/kdelibs/khtml/html/dtd.dtd:
  12895. * src/kdelibs/khtml/java/KJAS_GRAMMAR.txt:
  12896. * src/kdelibs/khtml/java/README:
  12897. * src/kdelibs/khtml/java/TODO:
  12898. * src/kdelibs/khtml/java/build.xml:
  12899. * src/kdelibs/khtml/java/javaembed.cpp:
  12900. * src/kdelibs/khtml/java/kjava.jar:
  12901. * src/kdelibs/khtml/java/kjava.policy.in:
  12902. * src/kdelibs/khtml/java/org/kde/kjas/server/KJASAppletClassLoader.java:
  12903. * src/kdelibs/khtml/java/org/kde/kjas/server/KJASAppletContext.java:
  12904. * src/kdelibs/khtml/java/org/kde/kjas/server/KJASAppletStub.java:
  12905. * src/kdelibs/khtml/java/org/kde/kjas/server/KJASConsole.java:
  12906. * src/kdelibs/khtml/java/org/kde/kjas/server/KJASProtocolHandler.java:
  12907. * src/kdelibs/khtml/java/org/kde/kjas/server/KJASSecurityManager.java:
  12908. * src/kdelibs/khtml/java/org/kde/kjas/server/KJASSoundPlayer.java:
  12909. * src/kdelibs/khtml/java/org/kde/kjas/server/Main.java:
  12910. * src/kdelibs/khtml/java/tests/badapplets/BadApplet.jar:
  12911. * src/kdelibs/khtml/java/tests/badapplets/BadApplet.java:
  12912. * src/kdelibs/khtml/java/tests/badapplets/applet.html:
  12913. * src/kdelibs/khtml/java/tests/good_sites:
  12914. * src/kdelibs/khtml/java/tests/testkjavaappletserver.cpp:
  12915. * src/kdelibs/khtml/khtml.desktop:
  12916. * src/kdelibs/khtml/khtml.rc:
  12917. * src/kdelibs/khtml/khtml_browser.rc:
  12918. * src/kdelibs/khtml/khtml_ext.cpp:
  12919. * src/kdelibs/khtml/khtml_factory.cpp:
  12920. * src/kdelibs/khtml/khtml_find.cpp:
  12921. * src/kdelibs/khtml/khtml_find.h:
  12922. * src/kdelibs/khtml/khtml_pagecache.cpp:
  12923. * src/kdelibs/khtml/khtml_pagecache.h:
  12924. * src/kdelibs/khtml/khtml_part.cpp:
  12925. * src/kdelibs/khtml/khtml_popupmenu.rc:
  12926. * src/kdelibs/khtml/khtml_run.cpp:
  12927. * src/kdelibs/khtml/khtml_run.h:
  12928. * src/kdelibs/khtml/khtmldefaults.h:
  12929. * src/kdelibs/khtml/khtmlimage.cpp:
  12930. * src/kdelibs/khtml/khtmlimage.desktop:
  12931. * src/kdelibs/khtml/khtmlimage.h:
  12932. * src/kdelibs/khtml/pics/hi16-action-images_display.png:
  12933. * src/kdelibs/khtml/pics/hi22-action-images_display.png:
  12934. * src/kdelibs/khtml/pics/hi32-action-images_display.png:
  12935. * src/kdelibs/khtml/test/README:
  12936. * src/kdelibs/khtml/test/URL1.html:
  12937. * src/kdelibs/khtml/test/URL2.html:
  12938. * src/kdelibs/khtml/test/align.html:
  12939. * src/kdelibs/khtml/test/align1.html:
  12940. * src/kdelibs/khtml/test/align2.html:
  12941. * src/kdelibs/khtml/test/anchor1.html:
  12942. * src/kdelibs/khtml/test/anchor2.html:
  12943. * src/kdelibs/khtml/test/badpages.html:
  12944. * src/kdelibs/khtml/test/buggy.html:
  12945. * src/kdelibs/khtml/test/button.html:
  12946. * src/kdelibs/khtml/test/color.html:
  12947. * src/kdelibs/khtml/test/fixed-background.html:
  12948. * src/kdelibs/khtml/test/image.gif:
  12949. * src/kdelibs/khtml/test/image_map.html:
  12950. * src/kdelibs/khtml/test/index.html:
  12951. * src/kdelibs/khtml/test/java.html:
  12952. * src/kdelibs/khtml/test/javascript.html:
  12953. * src/kdelibs/khtml/test/jsplugins.html:
  12954. * src/kdelibs/khtml/test/konqi.gif:
  12955. * src/kdelibs/khtml/test/lake.class:
  12956. * src/kdelibs/khtml/test/listing.html:
  12957. * src/kdelibs/khtml/test/lists.html:
  12958. * src/kdelibs/khtml/test/nav_bar.gif:
  12959. * src/kdelibs/khtml/test/nbsp.html:
  12960. * src/kdelibs/khtml/test/notitle.html:
  12961. * src/kdelibs/khtml/test/object.html:
  12962. * src/kdelibs/khtml/test/pseudo.html:
  12963. * src/kdelibs/khtml/test/renders.html:
  12964. * src/kdelibs/khtml/test/supsub.html:
  12965. * src/kdelibs/khtml/test/testpages.html:
  12966. * src/kdelibs/khtml/test/textarea.html:
  12967. * src/kdelibs/khtml/test/title.html:
  12968. * src/kdelibs/khtml/testcss.cpp:
  12969. * src/kdelibs/khtml/testkhtml.cpp:
  12970. * src/kdelibs/khtml/testkhtml.h:
  12971. * src/kdelibs/khtml/testrender.cpp:
  12972. * src/kdelibs/khtml/testrender.h:
  12973. * src/kdelibs/kjs/README:
  12974. * src/kdelibs/kjs/THANKS:
  12975. * src/kdelibs/kjs/create_hash_table:
  12976. * src/kdelibs/kjs/keywords.table:
  12977. 2002-03-06 Don Melton <gramps@apple.com>
  12978. Cleaned up all our changes to kdelibs, removed bitrot, and replaced use
  12979. of _KWQ_ with new APPLE_CHANGES define.
  12980. * src/kdelibs/khtml/css/csshelper.cpp: (khtml::computeLengthFloat),
  12981. (khtml::setFontSize):
  12982. * src/kdelibs/khtml/css/cssstyleselector.cpp:
  12983. (CSSStyleSelector::CSSStyleSelector), (khtml::applyRule):
  12984. * src/kdelibs/khtml/dom/dom_misc.cpp:
  12985. * src/kdelibs/khtml/dom/dom_misc.h:
  12986. * src/kdelibs/khtml/dom/html_document.cpp: (HTMLDocument::cookie),
  12987. (HTMLDocument::setCookie):
  12988. * src/kdelibs/khtml/dom/html_element.cpp:
  12989. * src/kdelibs/khtml/ecma/kjs_binding.h:
  12990. * src/kdelibs/khtml/ecma/kjs_css.cpp: (DOMCSSStyleDeclarationFunc::tryExecute),
  12991. (DOMStyleSheetListFunc::tryExecute), (DOMMediaListFunc::tryExecute),
  12992. (DOMCSSStyleSheetFunc::tryExecute), (DOMCSSRuleListFunc::tryExecute),
  12993. (DOMCSSRuleFunc::tryExecute), (DOMCSSPrimitiveValueFunc::tryExecute),
  12994. (DOMCSSValueListFunc::tryExecute):
  12995. * src/kdelibs/khtml/ecma/kjs_css.h:
  12996. * src/kdelibs/khtml/ecma/kjs_dom.cpp: (DOMNodeFunc::tryExecute),
  12997. (DOMNodeListFunc::tryExecute), (DOMDocFunction::DOMDocFunction),
  12998. (DOMDocFunction::tryExecute), (DOMElementFunction::DOMElementFunction),
  12999. (DOMElementFunction::tryExecute),
  13000. (DOMDOMImplementationFunction::DOMDOMImplementationFunction),
  13001. (DOMDOMImplementationFunction::tryExecute),
  13002. (DOMNamedNodeMapFunction::DOMNamedNodeMapFunction),
  13003. (DOMNamedNodeMapFunction::tryExecute):
  13004. * src/kdelibs/khtml/ecma/kjs_dom.h:
  13005. * src/kdelibs/khtml/ecma/kjs_window.cpp: (Window::isSafeScript):
  13006. * src/kdelibs/khtml/html/html_formimpl.cpp: (HTMLFormElementImpl::formData),
  13007. (HTMLSelectElementImpl::state), (HTMLSelectElementImpl::restoreState):
  13008. * src/kdelibs/khtml/html/html_headimpl.cpp: (HTMLLinkElementImpl::detach),
  13009. (HTMLStyleElementImpl::detach), (HTMLTitleElementImpl::setTitle):
  13010. * src/kdelibs/khtml/html/html_objectimpl.cpp:
  13011. (HTMLEmbedElementImpl::parseAttribute):
  13012. * src/kdelibs/khtml/html/html_tableimpl.cpp:
  13013. (HTMLTableElementImpl::parseAttribute),
  13014. (HTMLTablePartElementImpl::parseAttribute):
  13015. * src/kdelibs/khtml/html/htmlparser.cpp: (KHTMLParser::parseToken),
  13016. (KHTMLParser::insertNode), (KHTMLParser::getElement),
  13017. (KHTMLParser::processCloseTag), (KHTMLParser::popBlock),
  13018. (KHTMLParser::popOneBlock):
  13019. * src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::parseSpecial),
  13020. (HTMLTokenizer::scriptHandler), (HTMLTokenizer::parseComment),
  13021. (HTMLTokenizer::parseTag), (HTMLTokenizer::processToken):
  13022. * src/kdelibs/khtml/html/htmltokenizer.h:
  13023. * src/kdelibs/khtml/java/kjavaprocess.h:
  13024. * src/kdelibs/khtml/khtml_part.h:
  13025. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::~KHTMLView), (KHTMLView::init),
  13026. (printRenderTree), (KHTMLView::drawContents), (KHTMLView::layout),
  13027. (KHTMLView::viewportMousePressEvent), (KHTMLView::viewportMouseDoubleClickEvent),
  13028. (KHTMLView::viewportMouseMoveEvent), (KHTMLView::viewportMouseReleaseEvent),
  13029. (KHTMLView::addFormCompletionItem):
  13030. * src/kdelibs/khtml/khtmlview.h:
  13031. * src/kdelibs/khtml/misc/decoder.cpp: (Decoder::setEncoding), (Decoder::decode):
  13032. * src/kdelibs/khtml/misc/helper.cpp: (khtml::setNamedColor):
  13033. * src/kdelibs/khtml/misc/loader.h:
  13034. * src/kdelibs/khtml/rendering/bidi.cpp: (RenderFlow::layoutInlineChildren):
  13035. * src/kdelibs/khtml/rendering/render_applet.cpp: (RenderApplet::RenderApplet):
  13036. * src/kdelibs/khtml/rendering/render_body.cpp: (RenderBody::layout):
  13037. * src/kdelibs/khtml/rendering/render_box.cpp: (RenderBox::printBackground):
  13038. * src/kdelibs/khtml/rendering/render_flow.cpp: (RenderFlow::print):
  13039. * src/kdelibs/khtml/rendering/render_form.cpp:
  13040. (RenderFormElement::baselinePosition), (RenderFormElement::slotClicked),
  13041. (RenderCheckBox::RenderCheckBox), (RenderCheckBox::performAction),
  13042. (RenderRadioButton::RenderRadioButton), (RenderRadioButton::slotClicked),
  13043. (RenderSubmitButton::RenderSubmitButton), (RenderSubmitButton::baselinePosition),
  13044. (RenderLineEdit::RenderLineEdit), (RenderLineEdit::calcMinMaxWidth),
  13045. (RenderLineEdit::performAction), (RenderFileButton::RenderFileButton),
  13046. (RenderSelect::RenderSelect), (RenderSelect::layout),
  13047. (RenderSelect::createListBox), (RenderSelect::createComboBox),
  13048. (RenderTextArea::RenderTextArea), (RenderTextArea::calcMinMaxWidth),
  13049. (RenderTextArea::layout):
  13050. * src/kdelibs/khtml/rendering/render_form.h:
  13051. * src/kdelibs/khtml/rendering/render_frames.cpp:
  13052. (RenderPartObject::updateWidget):
  13053. * src/kdelibs/khtml/rendering/render_hr.cpp: (RenderHR::print):
  13054. * src/kdelibs/khtml/rendering/render_image.cpp: (RenderImage::printObject):
  13055. * src/kdelibs/khtml/rendering/render_list.cpp: (RenderListMarker::printObject):
  13056. * src/kdelibs/khtml/rendering/render_style.h:
  13057. * src/kdelibs/khtml/rendering/render_table.cpp: (RenderTable::calcFinalColMax),
  13058. (RenderTable::layoutRows):
  13059. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration),
  13060. (TextSlaveArray::findFirstMatching), (RenderText::print):
  13061. * src/kdelibs/khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyle):
  13062. * src/kdelibs/khtml/xml/dom_nodeimpl.cpp: (NodeImpl::renderer):
  13063. * src/kdelibs/khtml/xml/dom_nodeimpl.h:
  13064. * src/kdelibs/khtml/xml/dom_stringimpl.cpp: (DOMStringImpl::toLengthList):
  13065. 2002-03-06 Maciej Stachowiak <mjs@apple.com>
  13066. * src/kwq/KWQKURL.mm: (KURL::KURL): If resolving a relative URL
  13067. fails, assume it's absolute and possibly malformed, rather than
  13068. appending it to the path of the previous URL. This fixes a
  13069. CPU-spinning hang that John and Richard found.
  13070. 2002-03-05 Richard Williamson <rjw@apple.com>
  13071. Pass errors correctly to browser.
  13072. Removed old notification code.
  13073. Added support for IFError.
  13074. Lots of little cleanups.
  13075. * src/kwq/KWQComboBox.mm: (QComboBox::setCurrentItem):
  13076. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  13077. IFURLHandleResourceDidBeginLoading:]), (-[KHTMLPartLoadClient
  13078. IFURLHandleResourceDidCancelLoading:]), (-[KHTMLPartLoadClient
  13079. IFURLHandleResourceDidFinishLoading:data:]), (-[KHTMLPartLoadClient
  13080. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[KHTMLPartLoadClient
  13081. IFURLHandle:resourceDidFailLoadingWithResult:]), (KHTMLPart::openURL),
  13082. (KHTMLPart::closeURL):
  13083. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  13084. IFURLHandle:resourceDidFailLoadingWithResult:]):
  13085. * src/kwq/WCError.h:
  13086. * src/kwq/WCWebDataSource.h:
  13087. * src/kwq/external.h:
  13088. 2002-03-05 Richard Williamson <rjw@apple.com>
  13089. With fonts now being correctly specified we're exercising some new code paths. This introduced a new
  13090. class of weird string bugs. Turns out that CFString is doing some mojo that I suspect is a performance
  13091. optimization. Constants strings appears to be uniqued and hard-wired to have a -1 retain count. It
  13092. looks like strings created by preferences are uniqued in this manner. This plays havoc with our
  13093. copy-on-write QString implementation. The following GDB exercise illustrates the problem:
  13094. (gdb) po (id)[(id)[NSUserDefaults standardUserDefaults] objectForKey:(id)[NSString stringWithCString: "WebKitFixedFont"]]
  13095. Andale Mono
  13096. (gdb) p (int)[(id)[(id)[NSUserDefaults standardUserDefaults] objectForKey:(id)[NSString stringWithCString: "WebKitFixedFont"]] retainCount]
  13097. $28 = -1
  13098. (gdb) p (id)[(id)[NSUserDefaults standardUserDefaults] objectForKey:(id)[NSString stringWithCString: "WebKitFixedFont"]]
  13099. $27 = (objc_object *) 0x40172a4
  13100. (gdb) p (void)[$27 retain]
  13101. $29 = void
  13102. (gdb) p (int)[$27 retainCount]
  13103. $30 = -1
  13104. (gdb) p (void)[$27 release]
  13105. $33 = void
  13106. (gdb) p (int)[$27 retainCount]
  13107. $32 = -1
  13108. So, it appears that these strings are permanently allocated. It'd be interesting to find out what is in the uniqued string cache, and how big it is.
  13109. I've fixed the problem by special casing our copy-on-write trigger to also check for -1.
  13110. * src/kwq/KWQString.mm: (QString::_copyIfNeededInternalString):
  13111. 2002-03-04 Richard Williamson <rjw@apple.com>
  13112. Changes to support 'provisional' data sources.
  13113. API changes to IFBaseWebController, removed redundant methods.
  13114. * src/kwq/KWQKHTMLPart.mm: (WCSetIFWebDataSourceMakeFunc), (-[KHTMLPartLoadClient
  13115. IFURLHandleResourceDidBeginLoading:]), (-[KHTMLPartLoadClient
  13116. IFURLHandleResourceDidCancelLoading:]), (-[KHTMLPartLoadClient
  13117. IFURLHandleResourceDidFinishLoading:data:]), (-[KHTMLPartLoadClient
  13118. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[KHTMLPartLoadClient
  13119. IFURLHandle:resourceDidFailLoadingWithResult:]),
  13120. (KHTMLPart::khtmlMouseReleaseEvent), (KHTMLPart::submitForm),
  13121. (KHTMLPart::requestFrame):
  13122. * src/kwq/external.h:
  13123. 2002-02-28 Richard Williamson <rjw@apple.com>
  13124. Finished up progress notification for main document.
  13125. Made the IFLoadProgress allocator accessible to KHTMLPart.mm.
  13126. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  13127. IFURLHandleResourceDidFinishLoading:data:]), (-[KHTMLPartLoadClient
  13128. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[KHTMLPartLoadClient
  13129. setDataSource:]), (KHTMLPart::openURL):
  13130. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  13131. IFURLHandleResourceDidFinishLoading:data:]), (-[URLLoadClient
  13132. IFURLHandle:resourceDataDidBecomeAvailable:]):
  13133. * src/kwq/WCLoadProgress.h:
  13134. 2002-02-27 Kenneth Kocienda <kocienda@apple.com>
  13135. I have changed the way that WebCore is glued to WebFoundation and WebKit.
  13136. If you used or relied upon any code in the following files, you should
  13137. now use the IF* equivalents straight up.
  13138. - Labyrinth/WebCore/include/WCBackForwardList.h
  13139. - Labyrinth/WebCore/include/WCURICache.h
  13140. - Labyrinth/WebCore/include/WCURICacheData.h
  13141. - Labyrinth/WebCore/include/WCURIEntry.h
  13142. - Labyrinth/WebCore/include/WCURIEntry.h
  13143. All changes in this commit are related to making dependant code work with the new convention.
  13144. * include/WCBackForwardList.h:
  13145. * include/WCURICache.h:
  13146. * include/WCURICacheData.h:
  13147. * include/WCURIEntry.h:
  13148. * include/WCURLHandle.h:
  13149. * src/kwq/KWQKHTMLPart.h:
  13150. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  13151. IFURLHandleResourceDidBeginLoading:]), (-[KHTMLPartLoadClient
  13152. IFURLHandleResourceDidCancelLoading:]), (-[KHTMLPartLoadClient
  13153. IFURLHandleResourceDidFinishLoading:data:]), (-[KHTMLPartLoadClient
  13154. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[KHTMLPartLoadClient
  13155. IFURLHandle:resourceDidFailLoadingWithResult:]), (KHTMLPart::slotData),
  13156. (KHTMLPart::openURL):
  13157. * src/kwq/KWQKjobclasses.mm:
  13158. * src/kwq/KWQKloader.mm: (-[URLLoadClient IFURLHandleResourceDidBeginLoading:]),
  13159. (-[URLLoadClient IFURLHandleResourceDidCancelLoading:]), (-[URLLoadClient
  13160. IFURLHandleResourceDidFinishLoading:data:]), (-[URLLoadClient
  13161. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[URLLoadClient
  13162. IFURLHandle:resourceDidFailLoadingWithResult:]):
  13163. * src/kwq/Makefile.am:
  13164. * src/kwq/kio/jobclasses.h:
  13165. 2002-02-27 Maciej Stachowiak <mjs@apple.com>
  13166. Replace QDir and QFile with clean-room implementations. Add glob
  13167. support ot QRegExp reimplementation.
  13168. * src/kwq/KWQDir.mm: (QDir::KWQDirPrivate::KWQDirPrivate),
  13169. (QDir::KWQDirPrivate::~KWQDirPrivate), (QDir::QDir), (QDir::~QDir),
  13170. (QDir::absPath), (QDir::absFilePath), (QDir::cdUp), (QDir::exists),
  13171. (QDir::entryList), (QDir::operator=), (QDir::swap):
  13172. * src/kwq/KWQFile.mm: (QFile::KWQFilePrivate::KWQFilePrivate),
  13173. (QFile::KWQFilePrivate::~KWQFilePrivate), (QFile::QFile), (QFile::~QFile),
  13174. (QFile::exists), (QFile::open), (QFile::close), (QFile::readBlock),
  13175. (QFile::size):
  13176. * src/kwq/KWQRegExp.mm: (QRegExp::KWQRegExpPrivate::KWQRegExpPrivate),
  13177. (RegExpFromGlob), (QRegExp::KWQRegExpPrivate::compile), (QRegExp::QRegExp):
  13178. * src/kwq/KWQStrList.h:
  13179. * src/kwq/Makefile.am:
  13180. * src/kwq/qt/_qdir.h:
  13181. * src/kwq/qt/_qfile.h:
  13182. * src/kwq/qt/_qfileinfo.h:
  13183. * src/kwq/qt/qdir.h:
  13184. * src/kwq/qt/qfile.h:
  13185. * src/kwq/qt/qiodevice.h:
  13186. * src/kwq/qt/qregexp.h:
  13187. 2002-02-25 Maciej Stachowiak <mjs@apple.com>
  13188. Fix two significant memory leaks in QList found by our automated
  13189. leak-checking code.
  13190. * src/kwq/KWQListImpl.mm: (KWQListNode::~KWQListNode),
  13191. (KWQListImpl::KWQListPrivate::copyList),
  13192. (KWQListImpl::KWQListPrivate::~KWQListPrivate), (KWQListImpl::sort):
  13193. Fix a tiny bug tweaked by the new regexp code - we need to flush
  13194. the cache after calling out to QRegExp::match because it might
  13195. make calls on the string which create a cache. Caught by the
  13196. regression tests.
  13197. * src/kwq/KWQString.mm: (QString::replace):
  13198. 2002-02-24 Maciej Stachowiak <mjs@apple.com>
  13199. Reimplemented QRegExp in terms of POSIX regexp facilities. This
  13200. will only support Latin1, however, it won't support all languages.
  13201. * src/kwq/qt/qregexp.h:
  13202. * src/kwq/KWQRegExp.mm: (QRegExp::KWQRegExpPrivate::KWQRegExpPrivate),
  13203. (QRegExp::KWQRegExpPrivate::compile),
  13204. (QRegExp::KWQRegExpPrivate::~KWQRegExpPrivate), (QRegExp::QRegExp),
  13205. (QRegExp::~QRegExp), (QRegExp::operator=), (QRegExp::pattern), (QRegExp::match):
  13206. Reimplement QValueList as a doubly-linked list, using a generic
  13207. implementation class and a templatized facade.
  13208. * src/kwq/qt/qvaluelist.h:
  13209. * src/kwq/KWQValueListImpl.h:
  13210. * src/kwq/KWQValueListImpl.mm: (KWQValueListNodeImpl::KWQValueListNodeImpl),
  13211. (KWQValueListNodeImpl::~KWQValueListNodeImpl),
  13212. (KWQValueListIteratorImpl::KWQValueListIteratorImpl),
  13213. (KWQValueListIteratorImpl::~KWQValueListIteratorImpl),
  13214. (KWQValueListIteratorImpl::operator=), (KWQValueListIteratorImpl::operator==),
  13215. (KWQValueListIteratorImpl::operator!=), (KWQValueListIteratorImpl::node),
  13216. (KWQValueListIteratorImpl::operator++), (KWQValueListIteratorImpl::operator--),
  13217. (KWQValueListImpl::KWQValueListPrivate::KWQValueListPrivate),
  13218. (KWQValueListImpl::KWQValueListPrivate::~KWQValueListPrivate),
  13219. (KWQValueListImpl::KWQValueListPrivate::copyList),
  13220. (KWQValueListImpl::KWQValueListPrivate::deleteList),
  13221. (KWQValueListImpl::KWQValueListImpl), (KWQValueListImpl::~KWQValueListImpl),
  13222. (KWQValueListImpl::clear), (KWQValueListImpl::count),
  13223. (KWQValueListImpl::isEmpty), (KWQValueListImpl::appendNode),
  13224. (KWQValueListImpl::prependNode), (KWQValueListImpl::removeEqualNodes),
  13225. (KWQValueListImpl::containsEqualNodes), (KWQValueListImpl::removeIterator),
  13226. (KWQValueListImpl::fromLast), (KWQValueListImpl::firstNode),
  13227. (KWQValueListImpl::lastNode), (KWQValueListImpl::begin), (KWQValueListImpl::end),
  13228. (KWQValueListImpl::nodeAt), (KWQValueListImpl::operator=),
  13229. (KWQValueListImpl::copyOnWrite):
  13230. * src/kwq/Makefile.am:
  13231. * src/kwq/kio/netaccess.h: Don't declare private copy constructor
  13232. - this class needs to be copyable to be stored in a QValueList!
  13233. Hack these scripts a bit so the large tables they generate are
  13234. constant data.
  13235. * src/kwq/make-charset-table.pl:
  13236. * src/kdelibs/khtml/css/makeprop:
  13237. * src/kdelibs/khtml/css/makevalues:
  13238. * src/kdelibs/khtml/misc/makeattrs:
  13239. * src/kdelibs/khtml/misc/maketags:
  13240. 2002-02-23 Maciej Stachowiak <mjs@apple.com>
  13241. * src/kwq/WCLoadProgress.h: Add the forgotten WCLoadProgress.h.
  13242. 2002-02-22 Maciej Stachowiak <mjs@apple.com>
  13243. Fix prebinding:
  13244. * src/Makefile.am: Enable prebinding, set first segment address to
  13245. 0x2200000 to avoid colliding with apps or our other
  13246. frameworks. Change other link flags to support prebinding.
  13247. Set up some hacks to avoid link-time dependency on
  13248. WebKit. Prebinding is incompatible with - undefined suppress, so
  13249. we can't have WebCore depend on symbols provided by WebKit any
  13250. more:
  13251. * src/kwq/KWQKHTMLPart.h:
  13252. * src/kwq/KWQKloader.mm: (WCSetIFLoadProgressMakeFunc), (-[URLLoadClient
  13253. WCURLHandleResourceDidFinishLoading:data:userData:]), (-[URLLoadClient
  13254. WCURLHandle:resourceDataDidBecomeAvailable:userData:]):
  13255. * src/kwq/WCPluginWidget.h:
  13256. * src/kwq/WCPluginWidget.mm: (WCSetIFPluginMakeFunc),
  13257. (WCPluginWidget::WCPluginWidget):
  13258. 2002-02-22 Richard Williamson <rjw@apple.com>
  13259. Added data: to IFURLHandleResourceDidFinishLoading:
  13260. * include/WCURLHandle.h:
  13261. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  13262. WCURLHandleResourceDidFinishLoading:data:userData:]):
  13263. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  13264. WCURLHandleResourceDidFinishLoading:data:userData:]):
  13265. 2002-02-22 Kenneth Kocienda <kocienda@apple.com>
  13266. Sent handle an autorelease message.
  13267. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  13268. WCURLHandleResourceDidCancelLoading:userData:]), (-[KHTMLPartLoadClient
  13269. WCURLHandleResourceDidFinishLoading:userData:]), (-[KHTMLPartLoadClient
  13270. WCURLHandle:resourceDidFailLoadingWithResult:userData:]):
  13271. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  13272. WCURLHandleResourceDidCancelLoading:userData:]), (-[URLLoadClient
  13273. WCURLHandleResourceDidFinishLoading:userData:]), (-[URLLoadClient
  13274. WCURLHandle:resourceDidFailLoadingWithResult:userData:]):
  13275. 2002-02-21 Maciej Stachowiak <mjs@apple.com>
  13276. * src/kwq/KWQString.mm: (QString::fill): Fix a bug that was
  13277. triggering assertion failures in CF.
  13278. * src/kdelibs/kjs/kjs-test: Turn off some environment variables to
  13279. make the tests pass.
  13280. 2002-02-21 Richard Williamson <rjw@apple.com>
  13281. Stop mostly working.
  13282. * src/kwq/KWQKjobclasses.mm:
  13283. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  13284. WCURLHandleResourceDidCancelLoading:userData:]), (-[URLLoadClient
  13285. WCURLHandleResourceDidFinishLoading:userData:]), (-[URLLoadClient
  13286. WCURLHandle:resourceDidFailLoadingWithResult:userData:]),
  13287. (Loader::servePendingRequests):
  13288. * src/kwq/kio/jobclasses.h:
  13289. 2002-02-21 Maciej Stachowiak <mjs@apple.com>
  13290. * src/kwq/KWQString.mm: (QString::fromCFString): Don't pass a
  13291. length to CFStringCreateMutableCopy, since that makes the string
  13292. fixed-length, which makes assertions fail when in debugging mode.
  13293. 2002-02-20 Richard Williamson <rjw@apple.com>
  13294. Some groundwork to bring WebFoundation callbacks up to
  13295. WebKit.
  13296. * src/kdelibs/khtml/misc/loader.h:
  13297. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  13298. WCURLHandleResourceDidBeginLoading:userData:]), (-[KHTMLPartLoadClient
  13299. WCURLHandleResourceDidCancelLoading:userData:]), (-[KHTMLPartLoadClient
  13300. WCURLHandleResourceDidFinishLoading:userData:]), (-[KHTMLPartLoadClient
  13301. WCURLHandle:resourceDataDidBecomeAvailable:userData:]), (-[KHTMLPartLoadClient
  13302. WCURLHandle:resourceDidFailLoadingWithResult:userData:]), (KHTMLPart::openURL),
  13303. (KHTMLPart::closeURL), (KHTMLPart::write), (KHTMLPart::checkCompleted):
  13304. * src/kwq/KWQKloader.mm: (CachedCSSStyleSheet::CachedCSSStyleSheet),
  13305. (CachedScript::CachedScript), (CachedImage::CachedImage), (-[URLLoadClient
  13306. initWithLoader:dataSource:]), (-[URLLoadClient
  13307. WCURLHandleResourceDidBeginLoading:userData:]), (-[URLLoadClient
  13308. WCURLHandleResourceDidCancelLoading:userData:]), (-[URLLoadClient
  13309. WCURLHandleResourceDidFinishLoading:userData:]), (-[URLLoadClient
  13310. WCURLHandle:resourceDataDidBecomeAvailable:userData:]), (-[URLLoadClient
  13311. WCURLHandle:resourceDidFailLoadingWithResult:userData:]), (Loader::load),
  13312. (Loader::servePendingRequests), (Cache::requestImage),
  13313. (Cache::requestStyleSheet), (Cache::requestScript):
  13314. * src/kwq/kio/jobclasses.h:
  13315. 2002-02-20 Maciej Stachowiak <mjs@apple.com>
  13316. * src/kdelibs/kjs/kjs-test:
  13317. * src/kwq/KWQKURL.mm: (KURL::setQuery):
  13318. 2002-02-18 Kenneth Kocienda <kocienda@apple.com>
  13319. * src/Makefile.am:
  13320. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::khtmlMouseMoveEvent):
  13321. * src/kwq/KWQView.mm: (-[KWQHTMLView mouseUp:]), (-[KWQHTMLView mouseDown:]):
  13322. * src/kwq/kde/_kurl.cpp: (KURL::htmlRef):
  13323. 2002-02-18 Richard Williamson <rjw@apple.com>
  13324. Fixed the prefences won't stay in front problem after John found
  13325. and correctly diagnosed the problem.
  13326. * src/kwq/KWQWidget.mm: (QWidget::show), (QWidget::hide):
  13327. 2002-02-18 Richard Williamson <rjw@apple.com>
  13328. Performance measurement.
  13329. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::begin), (KHTMLPart::write):
  13330. 2002-02-16 Maciej Stachowiak <mjs@apple.com>
  13331. Reimplement KURL in terms of CFURL (many workarounds needed to
  13332. account for differing semantics).
  13333. * src/kwq/kdecore/kurl.h:
  13334. * src/kwq/KWQKURL.mm: (KURL::KWQKURLPrivate::KWQKURLPrivate),
  13335. (KURL::KWQKURLPrivate::~KWQKURLPrivate), (KURL::KWQKURLPrivate::init),
  13336. (KURL::KWQKURLPrivate::makeRef), (CFStringToQString), (escapeQString),
  13337. (pathEndsWithSlash), (KWQCFURLCopyEscapedPath),
  13338. (KURL::KWQKURLPrivate::decompose), (KURL::KWQKURLPrivate::compose), (KURL::KURL),
  13339. (KURL::~KURL), (KURL::isEmpty), (KURL::isMalformed), (KURL::hasPath),
  13340. (KURL::url), (KURL::protocol), (KURL::host), (KURL::port), (KURL::pass),
  13341. (KURL::user), (KURL::ref), (KURL::query), (KURL::path), (KURL::setProtocol),
  13342. (KURL::setHost), (KURL::setPort), (KURL::setRef), (KURL::setQuery),
  13343. (KURL::setPath), (KURL::prettyURL), (KURL::operator=), (KURL::decode_string),
  13344. (KURL::copyOnWrite):
  13345. * src/kwq/Makefile.am: Add new file to build.
  13346. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::begin,
  13347. KHTMLPart::submitForm): Don't
  13348. Minor tweaks to make it all build:
  13349. * src/kwq/kde/_kurl.cpp:
  13350. * src/kwq/qt/_qurl.cpp:
  13351. * src/kwq/qt/_qurl.h:
  13352. 2002-02-16 Richard Williamson <rjw@apple.com>
  13353. Fixed problem with default text not showing up in text area.
  13354. Fixed problem with scroll widgets not showing up in select list.
  13355. * src/kdelibs/khtml/rendering/render_form.cpp: (RenderSelect::layout):
  13356. * src/kwq/KWQListBox.mm: (QListBox::QListBox):
  13357. * src/kwq/KWQTextArea.mm: (-[KWQTextArea _createTextView]), (-[KWQTextArea
  13358. initWithFrame:widget:]), (-[KWQTextArea setFrame:]):
  13359. 2002-02-15 Richard Williamson <rjw@apple.com>
  13360. Lots of changes to support forms.
  13361. * src/kdelibs/khtml/rendering/render_form.cpp: (RenderFormElement::slotClicked),
  13362. (RenderCheckBox::performAction), (RenderRadioButton::slotClicked),
  13363. (RenderSelect::RenderSelect), (RenderSelect::layout),
  13364. (RenderSelect::performAction), (RenderTextArea::layout), (RenderTextArea::text),
  13365. (RenderTextArea::performAction):
  13366. * src/kdelibs/khtml/rendering/render_form.h:
  13367. * src/kwq/KWQCheckBox.mm: (QCheckBox::QCheckBox), (QCheckBox::isChecked):
  13368. * src/kwq/KWQComboBox.mm: (QComboBox::indexOfCurrentItem):
  13369. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::requestFrame):
  13370. * src/kwq/KWQListBox.h:
  13371. * src/kwq/KWQListBox.mm: (-[KWQBrowserDelegate initWithListBox:]),
  13372. (-[KWQBrowserDelegate browser:numberOfRowsInColumn:]), (-[KWQBrowserDelegate
  13373. browser:willDisplayCell:atRow:column:]), (-[KWQBrowserDelegate
  13374. browserSingleClick:]), (-[KWQBrowserDelegate browserDoubleClick:]),
  13375. (QListBox::QListBox), (QListBox::~QListBox), (QListBox::count),
  13376. (QListBox::scrollBarWidth), (QListBox::clear), (QListBox::setSelectionMode),
  13377. (QListBox::currentItem), (QListBox::insertItem), (QListBox::setSelected),
  13378. (QListBox::isSelected), (QListBoxItem::QListBoxItem),
  13379. (QListBoxItem::~QListBoxItem), (QListBoxItem::setSelectable),
  13380. (QListBoxItem::width), (QListBoxItem::height):
  13381. * src/kwq/KWQNSTextField.mm: (-[KWQNSTextField action:]), (-[KWQNSTextField
  13382. controlTextDidEndEditing:]):
  13383. * src/kwq/KWQScrollView.mm: (QScrollView::addChild):
  13384. * src/kwq/KWQTextArea.mm: (-[KWQTextArea initWithFrame:]), (-[KWQTextArea
  13385. _createTextView]), (-[KWQTextArea initWithFrame:widget:]), (-[KWQTextArea
  13386. textDidEndEditing:]), (-[KWQTextArea setFrame:]):
  13387. * src/kwq/KWQTextEdit.mm: (QMultiLineEdit::setCursorPosition),
  13388. (QMultiLineEdit::getCursorPosition):
  13389. * src/kwq/KWQView.mm: (-[KWQNSButton stateChanged:]), (-[KWQNSComboBox
  13390. initWithFrame:widget:]), (-[KWQNSComboBox action:]):
  13391. * src/kwq/KWQWidget.mm: (QWidget::endEditing):
  13392. * src/kwq/qt/qcheckbox.h:
  13393. * src/kwq/qt/qcombobox.h:
  13394. * src/kwq/qt/qobject.h:
  13395. 2002-02-13 Richard Williamson <rjw@apple.com>
  13396. Use NSSwitchButtons for check boxes.
  13397. * src/kwq/KWQCheckBox.mm: (QCheckBox::QCheckBox):
  13398. 2002-02-13 Richard Williamson <rjw@apple.com>
  13399. Removed dead code from setView.
  13400. * src/kwq/KWQWidget.mm: (QWidget::setView):
  13401. 2002-02-12 Richard Williamson <rjw@apple.com>
  13402. Made basic forms work.
  13403. * src/kdelibs/khtml/rendering/render_form.cpp:
  13404. (RenderFormElement::performAction), (RenderLineEdit::RenderLineEdit),
  13405. (RenderLineEdit::performAction):
  13406. * src/kdelibs/khtml/rendering/render_form.h:
  13407. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::khtmlMouseReleaseEvent),
  13408. (KHTMLPart::submitForm):
  13409. * src/kwq/KWQLineEdit.mm: (QLineEdit::text):
  13410. * src/kwq/KWQNSTextField.mm: (-[KWQNSTextField initWithFrame:widget:]),
  13411. (-[KWQNSTextField action:]), (-[KWQNSTextField controlTextDidEndEditing:]),
  13412. (-[KWQNSTextField setMaximumLength:]), (-[KWQNSTextField maximumLength]):
  13413. * src/kwq/KWQObject.mm: (QObject::emitAction), (QObject::performAction):
  13414. * src/kwq/KWQWidget.mm: (QWidget::setView), (QWidget::endEditing):
  13415. * src/kwq/kwqdebug.mm: (KWQGetLogLevel):
  13416. * src/kwq/qt/qlineedit.h:
  13417. * src/kwq/qt/qobject.h:
  13418. * src/kwq/qt/qwidget.h:
  13419. 2002-02-12 Maciej Stachowiak <mjs@apple.com>
  13420. Make some tweaks to glue together KDE's and CF's concepts of URLs
  13421. a bit better. In particular, CF thinks "file:/some/path" is an
  13422. invalid URL, while KDE thinks this is the canonical form for a
  13423. file URL.
  13424. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::openURL), (KHTMLPart::closeURL),
  13425. (KHTMLPart::checkCompleted):
  13426. * src/kwq/KWQKjobclasses.mm:
  13427. 2002-02-12 Maciej Stachowiak <mjs@apple.com>
  13428. Reimplemented QList, QVector and QCollection from
  13429. scratch. Implemented copy-on-write optimization for QMap.
  13430. Minimally reimplement QCollection.
  13431. * src/kwq/qt/qcollection.h:
  13432. * src/kwq/KWQCollection.mm: (QCollection::QCollection), (QCollection::operator=),
  13433. (QCollection::~QCollection), (QCollection::autoDelete),
  13434. (QCollection::setAutoDelete):
  13435. * src/kwq/qt/qdict.h, src/kwq/qt/qptrdict.h: Include
  13436. qcollection.h, not _qcollection.h
  13437. Reimplement QList as a doubly-linked list.
  13438. * src/kwq/qt/qlist.h:
  13439. * src/kwq/KWQListImpl.h:
  13440. * src/kwq/KWQListImpl.mm: (KWQListImpl::KWQListPrivate::copyList),
  13441. (KWQListImpl::KWQListPrivate::KWQListPrivate),
  13442. (KWQListImpl::KWQListPrivate::~KWQListPrivate),
  13443. (KWQListIteratorImpl::KWQListIteratorPrivate::KWQListIteratorPrivate),
  13444. (KWQListImpl::KWQListImpl), (KWQListImpl::~KWQListImpl), (KWQListImpl::isEmpty),
  13445. (KWQListImpl::count), (KWQListImpl::clear), (KWQListImpl::sort),
  13446. (KWQListImpl::at), (KWQListImpl::insert), (KWQListImpl::remove),
  13447. (KWQListImpl::removeFirst), (KWQListImpl::removeLast), (KWQListImpl::removeRef),
  13448. (KWQListImpl::getLast), (KWQListImpl::current), (KWQListImpl::first),
  13449. (KWQListImpl::last), (KWQListImpl::next), (KWQListImpl::prev),
  13450. (KWQListImpl::take), (KWQListImpl::append), (KWQListImpl::prepend),
  13451. (KWQListImpl::containsRef), (KWQListImpl::assign), (KWQListImpl::addIterator),
  13452. (KWQListImpl::removeIterator), (KWQListIteratorImpl::KWQListIteratorImpl),
  13453. (KWQListIteratorImpl::~KWQListIteratorImpl), (KWQListIteratorImpl::count),
  13454. (KWQListIteratorImpl::toFirst), (KWQListIteratorImpl::toLast),
  13455. (KWQListIteratorImpl::current), (KWQListIteratorImpl::operator--),
  13456. (KWQListIteratorImpl::operator++), (KWQListIteratorImpl::operator=):
  13457. Reimplement QVector in terms of CFArray.
  13458. * src/kwq/qt/qvector.h:
  13459. * src/kwq/KWQVectorImpl.h:
  13460. * src/kwq/KWQVectorImpl.mm: (KWQVectorImpl::KWQVectorPrivate::KWQVectorPrivate),
  13461. (KWQVectorImpl::KWQVectorPrivate::~KWQVectorPrivate),
  13462. (KWQVectorImpl::KWQVectorImpl), (KWQVectorImpl::~KWQVectorImpl),
  13463. (KWQVectorImpl::clear), (KWQVectorImpl::isEmpty), (KWQVectorImpl::count),
  13464. (KWQVectorImpl::size), (KWQVectorImpl::remove), (KWQVectorImpl::resize),
  13465. (KWQVectorImpl::insert), (KWQVectorImpl::at), (KWQVectorImpl::assign),
  13466. (KWQVectorImpl::KWQVectorImpl::swap):
  13467. Implemented copy-on-write optimization for QMap. This had the
  13468. pleasant side effect of improving the separation between pointer
  13469. manipulation and key/value manipulation.
  13470. * src/kwq/qt/qmap.h:
  13471. * src/kwq/KWQMapImpl.h:
  13472. * src/kwq/KWQMapImpl.mm: (KWQMapImpl::KWQMapPrivate::KWQMapPrivate),
  13473. (KWQMapImpl::KWQMapPrivate::~KWQMapPrivate), (KWQMapImpl::KWQMapImpl),
  13474. (KWQMapImpl::~KWQMapImpl), (KWQMapImpl::copyOnWrite), (KWQMapImpl::copyTree),
  13475. (KWQMapImpl::rebalanceAfterInsert), (KWQMapImpl::rebalanceAfterRemove),
  13476. (KWQMapImpl::findInternal), (KWQMapImpl::insertInternal),
  13477. (KWQMapImpl::removeInternal), (KWQMapImpl::swap), (KWQMapImpl::countInternal),
  13478. (KWQMapImpl::clearInternal), (KWQMapImpl::beginInternal),
  13479. (KWQMapImpl::endInternal):
  13480. * src/kwq/Makefile.am: Add new files to build.
  13481. * src/kdelibs/khtml/rendering/render_text.cpp
  13482. (TextSlaveArray::findFirstMatching): Fix two places where the KDE
  13483. code was depending on implementation details of QVector.
  13484. 2002-02-07 Richard Williamson <rjw@apple.com>
  13485. More changes to IFLocationChangeHandler API.
  13486. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::khtmlMouseReleaseEvent):
  13487. 2002-02-07 Richard Williamson <rjw@apple.com>
  13488. Factored URL loading code out and moved to IFBaseWebController.
  13489. * ChangeLog:
  13490. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::khtmlMouseReleaseEvent),
  13491. (KHTMLPart::requestFrame):
  13492. 2002-02-06 Richard Williamson <rjw@apple.com>
  13493. Fixed allocation problems.
  13494. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::khtmlMouseReleaseEvent),
  13495. (KHTMLPart::requestFrame):
  13496. 2002-02-05 Richard Williamson <rjw@apple.com>
  13497. Updated part to use 'official' controller APIs.
  13498. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::~KHTMLPart),
  13499. (KHTMLPart::khtmlMouseReleaseEvent), (KHTMLPart::requestFrame),
  13500. (KHTMLPart::checkCompleted):
  13501. 2002-02-05 Richard Williamson <rjw@apple.com>
  13502. Changes to support dynamic scroll bars in frames/iframes.
  13503. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::khtmlMouseReleaseEvent):
  13504. * src/kwq/KWQScrollView.mm: (QScrollView::addChild),
  13505. (QScrollView::resizeContents), (QScrollView::updateContents),
  13506. (QScrollView::repaintContents):
  13507. * src/kwq/KWQWidget.mm: (QWidget::resize), (QWidget::move),
  13508. (QWidget::internalSetGeometry):
  13509. 2002-02-05 Kenneth Kocienda <kocienda@apple.com>
  13510. Changes to move these last bits of code to the new cache API.
  13511. * src/kwq/KWQKjobclasses.mm:
  13512. * src/kwq/WKPluginView.h:
  13513. * src/kwq/WKPluginView.mm: (-[WKPluginView drawRect:]), (-[WKPluginView
  13514. WCURLHandleResourceDidBeginLoading:userData:]), (-[WKPluginView
  13515. WCURLHandleResourceDidCancelLoading:userData:]), (-[WKPluginView
  13516. WCURLHandleResourceDidFinishLoading:userData:]), (-[WKPluginView
  13517. WCURLHandle:resourceDataDidBecomeAvailable:userData:]), (-[WKPluginView
  13518. WCURLHandle:resourceDidFailLoadingWithResult:userData:]):
  13519. 2002-02-04 Maciej Stachowiak <mjs@apple.com>
  13520. Fix everything for WK --> IF rename.
  13521. * src/kwq/KWQKHTMLPart.h:
  13522. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::khtmlMouseReleaseEvent),
  13523. (KHTMLPart::requestFrame), (KHTMLPart::checkCompleted):
  13524. 2002-02-01 Kenneth Kocienda <kocienda@apple.com>
  13525. More cleanups to the no-copy NSData API.
  13526. This time the callback from the cache/loader has been
  13527. simplified from:
  13528. - (void)WKURLHandle:(WKURLHandle *)sender resourceDataDidBecomeAvailable:(UInt8 *)bytes offset:(unsigned)offset length:(unsigned)length;
  13529. to:
  13530. - (void)WKURLHandle:(WKURLHandle *)sender resourceDataDidBecomeAvailable:(NSData *)data;
  13531. This was made possible by some rearrangement in the private API.
  13532. * include/WCURLHandle.h:
  13533. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  13534. WCURLHandle:resourceDataDidBecomeAvailable:userData:]):
  13535. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  13536. WCURLHandle:resourceDataDidBecomeAvailable:userData:]):
  13537. 2002-02-01 Richard Williamson <rjw@apple.com>
  13538. Added support for dynamic scrolling frames. Also added first callback for
  13539. WKLocationChangeHandler.
  13540. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::end), (KHTMLPart::khtmlMouseReleaseEvent),
  13541. (KHTMLPart::checkCompleted):
  13542. 2002-02-01 Kenneth Kocienda <kocienda@apple.com>
  13543. Made some cleanups to the no-copy NSData API, and those changes
  13544. make the use of the no-copy functionality in this client code
  13545. much cleaner.
  13546. * include/WCURLHandle.h:
  13547. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  13548. WCURLHandle:resourceDataDidBecomeAvailable:offset:length:userData:]):
  13549. 2002-01-31 Richard Williamson <rjw@apple.com>
  13550. Added QString constructor, fixed javascript at head of document bug.
  13551. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::openURL), (KHTMLPart::closeURL),
  13552. (KHTMLPart::write):
  13553. * src/kwq/KWQString.mm: (QString::QString):
  13554. * src/kwq/qt/qstring.h:
  13555. 2002-01-31 Richard Williamson <rjw@apple.com>
  13556. * src/kdelibs/khtml/html/html_headimpl.cpp: (HTMLStyleElementImpl::detach):
  13557. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::write):
  13558. 2002-01-31 Kenneth Kocienda <kocienda@apple.com>
  13559. Changes to incorporate use of the no-copy NSData object.
  13560. * include/WCURLHandle.h:
  13561. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient
  13562. WCURLHandle:resourceDataDidBecomeAvailable:offset:length:userData:]):
  13563. * src/kwq/KWQKloader.mm: (-[URLLoadClient
  13564. WCURLHandle:resourceDataDidBecomeAvailable:offset:length:userData:]):
  13565. 2002-01-30 Richard Williamson <rjw@apple.com>
  13566. Cleaned up frame code a bit. Fixed duplicate content problem.
  13567. * src/kdelibs/khtml/html/html_headimpl.cpp: (HTMLLinkElementImpl::detach):
  13568. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::layout):
  13569. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::~KHTMLPart), (KHTMLPart::openURL),
  13570. (KHTMLPart::requestFrame):
  13571. 2002-01-30 Kenneth Kocienda <kocienda@apple.com>
  13572. Added *.lo, *.la, and .libs to .cvsignore files
  13573. * .cvsignore:
  13574. * src/.cvsignore:
  13575. * src/kdelibs/khtml/css/.cvsignore:
  13576. * src/kdelibs/khtml/misc/.cvsignore:
  13577. * src/kdelibs/kjs/.cvsignore:
  13578. 2002-01-29 Richard Williamson <rjw@apple.com>
  13579. Fixed QConstString to make a copy on initial chars.
  13580. * ChangeLog:
  13581. * src/kwq/KWQString.mm: (QString::_copyIfNeededInternalString),
  13582. (QString::insert), (QString::remove), (QString::replace), (QString::truncate),
  13583. (QConstString::QConstString):
  13584. * src/kwq/qt/qstring.h:
  13585. 2002-01-29 Richard Williamson <rjw@apple.com>
  13586. * src/kwq/KWQString.mm: (QString::_copyIfNeededInternalString),
  13587. (QString::insert), (QString::remove), (QString::replace), (QString::truncate),
  13588. (QConstString::QConstString):
  13589. * src/kwq/qt/qstring.h:
  13590. 2002-01-29 Kenneth Kocienda <kocienda@apple.com>
  13591. - Added in a dummy protocol to clean up a warning that results
  13592. from calling a method on an id.
  13593. - Cleaned up handle variable in KWQKHTMLPart. This can now be freed
  13594. once we get a proper notification that a load is done.
  13595. - Support for reading text encoding from HTTP headers added back in.
  13596. * include/WCURLHandle.h:
  13597. * src/kwq/KWQKHTMLPart.mm: (encodingFromContentType), (KHTMLPart::slotData),
  13598. (KHTMLPart::openURL), (KHTMLPart::closeURL):
  13599. 2002-01-29 Richard Williamson <rjw@apple.com>
  13600. First pass as frame code. Still needs cleanup.
  13601. * src/kdelibs/khtml/dom/dom_misc.cpp: (DomShared::ref), (DomShared::deref):
  13602. * src/kdelibs/khtml/dom/dom_misc.h:
  13603. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::~KHTMLView):
  13604. * src/kwq/KWQComboBox.mm: (QComboBox::setCurrentItem):
  13605. * src/kwq/KWQKHTMLPart.h:
  13606. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::~KHTMLPart), (KHTMLPart::begin),
  13607. (KHTMLPart::end), (KHTMLPart::xmlDocImpl), (KHTMLPart::khtmlMouseReleaseEvent),
  13608. (KHTMLPart::requestFrameName), (KHTMLPart::requestFrame),
  13609. (KHTMLPart::requestObject), (KHTMLPart::checkCompleted):
  13610. 2002-01-29 Kenneth Kocienda <kocienda@apple.com>
  13611. Checked in the missing file
  13612. * include/WCURLHandle.h:
  13613. 2002-01-29 Kenneth Kocienda <kocienda@apple.com>
  13614. Changed over to the new cache loader in WebFoundation
  13615. * src/kwq/KWQKHTMLPart.h:
  13616. * src/kwq/KWQKHTMLPart.mm: (-[KHTMLPartLoadClient init]), (-[KHTMLPartLoadClient
  13617. WCURLHandleResourceDidBeginLoading:userData:]), (-[KHTMLPartLoadClient
  13618. WCURLHandleResourceDidCancelLoading:userData:]), (-[KHTMLPartLoadClient
  13619. WCURLHandleResourceDidFinishLoading:userData:]), (-[KHTMLPartLoadClient
  13620. WCURLHandle:resourceDataDidBecomeAvailable:offset:length:userData:]),
  13621. (-[KHTMLPartLoadClient WCURLHandle:resourceDidFailLoadingWithResult:userData:]),
  13622. (-[KHTMLPartLoadClient dealloc]), (KHTMLPart::slotData), (KHTMLPart::openURL):
  13623. * src/kwq/KWQKjobclasses.mm:
  13624. * src/kwq/KWQKloader.mm: (-[URLLoadClient initWithLoader:]), (-[URLLoadClient
  13625. WCURLHandleResourceDidBeginLoading:userData:]), (-[URLLoadClient
  13626. WCURLHandleResourceDidCancelLoading:userData:]), (-[URLLoadClient
  13627. WCURLHandleResourceDidFinishLoading:userData:]), (-[URLLoadClient
  13628. WCURLHandle:resourceDataDidBecomeAvailable:offset:length:userData:]),
  13629. (-[URLLoadClient WCURLHandle:resourceDidFailLoadingWithResult:userData:]),
  13630. (-[URLLoadClient dealloc]):
  13631. * src/kwq/kio/jobclasses.h:
  13632. 2002-01-29 Maciej Stachowiak <mjs@apple.com>
  13633. Reimplement QDict, QMap, QPtrDict and QSortedList.
  13634. Reimplement QDict in terms of CFDictionary:
  13635. * src/kwq/qt/qdict.h:
  13636. * src/kwq/KWQDictImpl.h:
  13637. * src/kwq/KWQDictImpl.mm: (KWQDictImpl::KWQDictImpl), (KWQDictImpl::insert),
  13638. (KWQDictImpl::remove), (KWQDictImpl::find),
  13639. (KWQDictIteratorImpl::KWQDictIteratorImpl),
  13640. (KWQDictIteratorImpl::currentStringKey):
  13641. Reimplement QMap as a right-threaded red-black tree, splitting
  13642. the work between template classes that manipulate keys and values
  13643. and non-template base classes that handle all the pointer
  13644. manipulation:
  13645. * src/kwq/qt/qmap.h:
  13646. * src/kwq/KWQMapImpl.h:
  13647. * src/kwq/KWQMapImpl.mm: (KWQMapNodeImpl::KWQMapNodeImpl),
  13648. (KWQMapNodeImpl::left), (KWQMapNodeImpl::right), (KWQMapNodeImpl::predecessor),
  13649. (KWQMapNodeImpl::successor), (KWQMapIteratorImpl::KWQMapIteratorImpl),
  13650. (KWQMapIteratorImpl::incrementInternal), (KWQMapImpl::KWQMapImpl),
  13651. (KWQMapImpl::rotateRight), (KWQMapImpl::rotateLeft),
  13652. (KWQMapImpl::rebalanceAfterInsert), (KWQMapImpl::rebalanceAfterRemove),
  13653. (KWQMapImpl::findInternal), (KWQMapImpl::insertInternal),
  13654. (KWQMapImpl::removeInternal), (KWQMapImpl::swap), (KWQMapImpl::countInternal),
  13655. (KWQMapImpl::clearInternal), (KWQMapImpl::beginInternal),
  13656. (KWQMapImpl::endInternal):
  13657. Reimplement QPtrDict in terms of CFDictionary:
  13658. * src/kwq/qt/qptrdict.h:
  13659. * src/kwq/KWQPtrDictImpl.h:
  13660. * src/kwq/KWQPtrDictImpl.mm:
  13661. (KWQPtrDictImpl::KWQPtrDictPrivate::KWQPtrDictPrivate),
  13662. (KWQPtrDictImpl::KWQPtrDictPrivate::~KWQPtrDictPrivate),
  13663. (KWQPtrDictImpl::KWQPtrDictImpl), (KWQPtrDictImpl::~KWQPtrDictImpl),
  13664. (invokeDeleteFuncOnValue), (KWQPtrDictImpl::clear), (KWQPtrDictImpl::count),
  13665. (KWQPtrDictImpl::insert), (KWQPtrDictImpl::remove), (KWQPtrDictImpl::find),
  13666. (KWQPtrDictImpl::swap), (KWQPtrDictImpl::assign), (KWQPtrDictImpl::take),
  13667. (KWQPtrDictIteratorImpl::KWQPtrDictIteratorPrivate::KWQPtrDictIteratorPrivate),
  13668. (KWQPtrDictIteratorImpl::KWQPtrDictIteratorPrivate::~KWQPtrDictIteratorPrivate),
  13669. (KWQPtrDictIteratorImpl::KWQPtrDictIteratorImpl),
  13670. (KWQPtrDictIteratorImpl::~KWQPtrDictIteratorImpl),
  13671. (KWQPtrDictIteratorImpl::count), (KWQPtrDictIteratorImpl::current),
  13672. (KWQPtrDictIteratorImpl::currentKey), (KWQPtrDictIteratorImpl::toFirst),
  13673. (KWQPtrDictIteratorImpl::operator++):
  13674. Reimplement QSortedList:
  13675. * src/kwq/qt/qsortedlist.h:
  13676. * src/kwq/KWQArrayImpl.mm: Remove stray include.
  13677. * src/kwq/Makefile.am: Add new files to build.
  13678. * src/kwq/qt/_qdict.h, src/kwq/qt/_qgdict.h,
  13679. src/kwq/qt/_qptrdict.h: Avoid causing problems when the relevant
  13680. defines are not defined.
  13681. 2002-01-22 Richard Williamson <rjw@apple.com>
  13682. Implemented KWQDesktopWidget to represent main screen. Used by javascript.
  13683. * src/kwq/KWQApplication.mm: (KWQDesktopWidget::width),
  13684. (KWQDesktopWidget::height), (QApplication::desktop):
  13685. 2002-01-21 Maciej Stachowiak <mjs@apple.com>
  13686. Reimplemented QArray, QBuffer, QStack and QStringList; also fixed
  13687. some files for borrowed switchability, and fixed some bugs found
  13688. by my new test cases.
  13689. # Reimplement QArray:
  13690. * src/kwq/qt/qarray.h:
  13691. * src/kwq/KWQArrayImpl.h:
  13692. * src/kwq/KWQArrayImpl.mm: (KWQArrayImpl::KWQArrayPrivate::KWQArrayPrivate),
  13693. (KWQArrayImpl::KWQArrayPrivate::~KWQArrayPrivate), (KWQArrayImpl::KWQArrayImpl),
  13694. (KWQArrayImpl::~KWQArrayImpl), (KWQArrayImpl::operator=), (KWQArrayImpl::at),
  13695. (KWQArrayImpl::data), (KWQArrayImpl::size), (KWQArrayImpl::resize),
  13696. (KWQArrayImpl::duplicate), (KWQArrayImpl::fill), (KWQArrayImpl::operator==):
  13697. # Reimplement QBuffer:
  13698. * src/kwq/qt/qbuffer.h:
  13699. * src/kwq/KWQBuffer.mm: (QBuffer::QBuffer), (QBuffer::~QBuffer),
  13700. (QBuffer::buffer), (QBuffer::size), (QBuffer::isOpen), (QBuffer::open),
  13701. (QBuffer::close), (QBuffer::writeBlock):
  13702. * src/kwq/qt/qiodevice.h:
  13703. # Reimplement QStringList:
  13704. * src/kwq/KWQStringList.mm: (QStringToCFString), (QStringList::split),
  13705. (QStringList::QStringList), (QStringList::~QStringList), (QStringList::join),
  13706. (QStringList::operator=):
  13707. # Reimplement QStack:
  13708. * src/kwq/qt/qstack.h:
  13709. * src/kwq/Makefile.am: Add new files to build.
  13710. * src/kwq/KWQString.mm: (QString::find): Fix bug which returned
  13711. the very first occurence in the string even when the optional
  13712. starting point was passed in. Some of my new regression tests
  13713. picked this up.
  13714. # Temporarily work around uses of non-kwq APIs:
  13715. * src/kwq/WKPluginWidget.h:
  13716. * src/kwq/qt/_qfile.cpp
  13717. * src/kwq/qt/_qbuffer.cpp
  13718. # Guard contents of all these with the appropriate USING ifdef:
  13719. * src/kwq/KWQStrList.h:
  13720. * src/kwq/qt/_qarray.h:
  13721. * src/kwq/qt/_qgarray.h:
  13722. * src/kwq/qt/_qstrlist.h:
  13723. 2002-01-19 Maciej Stachowiak <mjs@apple.com>
  13724. * src/kdelibs/kjs/Makefile.am: Fix testkjs build.
  13725. Fix a couple more static initialization problems:
  13726. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::urlCursor):
  13727. * src/kwq/KWQRegion.mm: (QRegion::QRegion), (QRegion::operator=):
  13728. * src/.cvsignore, src/kdelibs/.cvsignore,
  13729. src/kdelibs/khtml/css/.cvsignore,
  13730. src/kdelibs/khtml/misc/.cvsignore, src/kdelibs/kjs/.cvsignore:
  13731. Ignore stamp files.
  13732. 2002-01-18 Richard Williamson <rjw@apple.com>
  13733. First pass at new view/datasource/controller API.
  13734. * src/kwq/KWQApplication.mm: (QApplication::QApplication),
  13735. (QApplication::setMainWidget), (QApplication::exec):
  13736. * src/kwq/KWQRegion.mm: (QRegion::QRegion), (QRegion::~QRegion),
  13737. (QRegion::contains), (QRegion::isNull):
  13738. * src/kwq/Makefile.am:
  13739. * src/kwq/_KWQOwner.h:
  13740. * src/kwq/_KWQOwner.m:
  13741. * src/kwq/qt/qnamespace.h:
  13742. 2002-01-18 Maciej Stachowiak <mjs@apple.com>
  13743. Avoid static initialization of objects as much as possible. Order
  13744. of static initializers is unpredictable and we had some
  13745. cross-dependencies, so avoid this practice as much as possible to
  13746. fix various startup crashes.
  13747. * src/kwq/KWQApplication.mm: (QApplication::palette),
  13748. (QApplication::globalStrut):
  13749. * src/kwq/KWQChar.mm:
  13750. * src/kwq/KWQColor.mm:
  13751. * src/kwq/KWQCursor.mm: (QCursor::QCursor), (QCursor::~QCursor):
  13752. * src/kwq/KWQEvent.mm:
  13753. * src/kwq/KWQKConfigBase.mm: (KConfigBase::readEntry),
  13754. (KConfigBase::readColorEntry), (KConfigBase::readListEntry):
  13755. * src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::encoding):
  13756. * src/kwq/KWQKJavaEmbed.mm: (KJavaEmbed::sizeHint),
  13757. (KJavaEmbed::minimumSizeHint):
  13758. * src/kwq/KWQKLocale.mm: (KLocale::language):
  13759. * src/kwq/KWQKMimeType.mm: (KMimeType::findByURL), (KMimeType::name):
  13760. * src/kwq/KWQKPrinter.mm: (KPrinter::margins):
  13761. * src/kwq/KWQKProtocolManager.mm: (KProtocolManager::httpProxy):
  13762. * src/kwq/KWQKWinModule.mm: (KWinModule::workArea):
  13763. * src/kwq/KWQKjobclasses.mm:
  13764. * src/kwq/KWQKnetaccess.mm:
  13765. * src/kwq/KWQPart.mm: (KParts::Part::widget), (KParts::ReadOnlyPart::url):
  13766. * src/kwq/KWQPixmap.mm: (QPixmap::mask):
  13767. * src/kwq/KWQToolTip.mm: (QToolTip::palette):
  13768. * src/kwq/kde/_kurl.cpp:
  13769. * src/kwq/kdecore/kurl.h:
  13770. 2002-01-17 Maciej Stachowiak <mjs@apple.com>
  13771. Fix a couple of problems that kept `make -j3' from working from a
  13772. clean start (use stamp files to serialize build a bit more where
  13773. needed)
  13774. * src/Makefile.am:
  13775. * src/kdelibs/khtml/css/Makefile.am:
  13776. * src/kdelibs/khtml/misc/Makefile.am:
  13777. * src/kdelibs/kjs/Makefile.am:
  13778. 2002-01-17 Maciej Stachowiak <mjs@apple.com>
  13779. * src/kwq/Makefile.am: Fix another bonehead mistake.
  13780. 2002-01-17 Maciej Stachowiak <mjs@apple.com>
  13781. Fix bonehead mistakes in last checkin which were killing Jersey.
  13782. * src/kdelibs/khtml/ecma/Makefile.am:
  13783. * src/kdelibs/khtml/html/Makefile.am:
  13784. * src/kdelibs/khtml/rendering/Makefile.am:
  13785. * src/kwq/kde/Makefile.am:
  13786. 2002-01-17 Maciej Stachowiak <mjs@apple.com>
  13787. More build system speedups; instead of building static libraries
  13788. in each directory, build relocatble object files, using the magic
  13789. of incremental linking.
  13790. * src/Makefile.am:
  13791. * src/kdelibs/khtml/Makefile.am:
  13792. * src/kdelibs/khtml/css/Makefile.am:
  13793. * src/kdelibs/khtml/dom/Makefile.am:
  13794. * src/kdelibs/khtml/ecma/Makefile.am:
  13795. * src/kdelibs/khtml/html/Makefile.am:
  13796. * src/kdelibs/khtml/java/Makefile.am:
  13797. * src/kdelibs/khtml/misc/Makefile.am:
  13798. * src/kdelibs/khtml/rendering/Makefile.am:
  13799. * src/kdelibs/khtml/xml/Makefile.am:
  13800. * src/kdelibs/kjs/Makefile.am:
  13801. * src/kwq/Makefile.am:
  13802. * src/kwq/kde/Makefile.am:
  13803. * src/kwq/qt/Makefile.am:
  13804. 2002-01-17 Maciej Stachowiak <mjs@apple.com>
  13805. Build speedups: Don't use libtool, and don't link static libraries
  13806. into each other.
  13807. * src/Makefile.am
  13808. * src/kdelibs/khtml/Makefile.am:
  13809. * src/kdelibs/khtml/css/Makefile.am:
  13810. * src/kdelibs/khtml/dom/Makefile.am:
  13811. * src/kdelibs/khtml/ecma/Makefile.am:
  13812. * src/kdelibs/khtml/html/Makefile.am:
  13813. * src/kdelibs/khtml/java/Makefile.am:
  13814. * src/kdelibs/khtml/misc/Makefile.am:
  13815. * src/kdelibs/khtml/rendering/Makefile.am:
  13816. * src/kdelibs/khtml/xml/Makefile.am:
  13817. * src/kdelibs/kjs/Makefile.am:
  13818. * src/kwq/Makefile.am:
  13819. * src/kwq/kde/Makefile.am:
  13820. * src/kwq/qt/Makefile.am:
  13821. 2002-01-16 Maciej Stachowiak <mjs@apple.com>
  13822. * src/kwq/qt/_qpoint.h, src/kwq/qt/_qrect.h, src/kwq/qt/_qsize.h,
  13823. src/kwq/qt/qpoint.h, src/kwq/qt/qrect.h, src/kwq/qt/qsize.h: Make
  13824. QPoint, QRect and QSize easily turn-off-able again.
  13825. 2002-01-15 Maciej Stachowiak <mjs@apple.com>
  13826. * src/kdelibs/kjs/Makefile.am: Add missing files to BUILT_SOURCES
  13827. and build rules to fix `make -j3'
  13828. 2002-01-14 Maciej Stachowiak <mjs@apple.com>
  13829. * .cvsignore:
  13830. * Makefile.am:
  13831. * Makefile.in:
  13832. * include/.cvsignore:
  13833. * include/Makefile.am:
  13834. * include/private/.cvsignore:
  13835. * include/private/Makefile.am:
  13836. * lib/.cvsignore:
  13837. * lib/Makefile.in:
  13838. * src/.cvsignore:
  13839. * src/Makefile.am:
  13840. * src/kdelibs/.cvsignore:
  13841. * src/kdelibs/Makefile.am:
  13842. * src/kdelibs/kdecore/.cvsignore:
  13843. * src/kdelibs/kdecore/Makefile.am:
  13844. * src/kdelibs/kdecore/Makefile.in:
  13845. * src/kdelibs/khtml/.cvsignore:
  13846. * src/kdelibs/khtml/Makefile.am:
  13847. * src/kdelibs/khtml/Makefile.in:
  13848. * src/kdelibs/khtml/css/.cvsignore:
  13849. * src/kdelibs/khtml/css/Makefile.am:
  13850. * src/kdelibs/khtml/css/Makefile.in:
  13851. * src/kdelibs/khtml/dom/.cvsignore:
  13852. * src/kdelibs/khtml/dom/Makefile.am:
  13853. * src/kdelibs/khtml/dom/Makefile.in:
  13854. * src/kdelibs/khtml/ecma/.cvsignore:
  13855. * src/kdelibs/khtml/ecma/Makefile.am:
  13856. * src/kdelibs/khtml/ecma/Makefile.in:
  13857. * src/kdelibs/khtml/html/.cvsignore:
  13858. * src/kdelibs/khtml/html/Makefile.am:
  13859. * src/kdelibs/khtml/html/Makefile.in:
  13860. * src/kdelibs/khtml/java/.cvsignore:
  13861. * src/kdelibs/khtml/java/ChangeLog:
  13862. * src/kdelibs/khtml/java/Makefile.am:
  13863. * src/kdelibs/khtml/java/Makefile.in:
  13864. * src/kdelibs/khtml/java/tests/Makefile.am:
  13865. * src/kdelibs/khtml/misc/.cvsignore:
  13866. * src/kdelibs/khtml/misc/Makefile.am:
  13867. * src/kdelibs/khtml/misc/Makefile.in:
  13868. * src/kdelibs/khtml/pics/Makefile.am:
  13869. * src/kdelibs/khtml/rendering/.cvsignore:
  13870. * src/kdelibs/khtml/rendering/Makefile.am:
  13871. * src/kdelibs/khtml/rendering/Makefile.in:
  13872. * src/kdelibs/khtml/xml/.cvsignore:
  13873. * src/kdelibs/khtml/xml/Makefile.am:
  13874. * src/kdelibs/khtml/xml/Makefile.in:
  13875. * src/kdelibs/kjs/.cvsignore:
  13876. * src/kdelibs/kjs/ChangeLog:
  13877. * src/kdelibs/kjs/Makefile.am:
  13878. * src/kdelibs/kjs/Makefile.in:
  13879. * src/kdelibs/kjs/kjs-test:
  13880. * src/kdelibs/kjs/kjs-test.chk:
  13881. * src/kwq/.cvsignore:
  13882. * src/kwq/Makefile.am:
  13883. * src/kwq/Makefile.in:
  13884. * src/kwq/_KWQOwner.m: (-[_KWQOwner backForwardUriDone:]):
  13885. * src/kwq/kde/.cvsignore:
  13886. * src/kwq/kde/Makefile.am:
  13887. * src/kwq/kde/Makefile.in:
  13888. * src/kwq/kdecore/.cvsignore:
  13889. * src/kwq/kdecore/Makefile.in:
  13890. * src/kwq/khtml/khtml_factory.h:
  13891. * src/kwq/qt/.cvsignore:
  13892. * src/kwq/qt/Makefile.am:
  13893. * src/kwq/qt/Makefile.in:
  13894. 2002-01-09 Richard Williamson <rjw@apple.com>
  13895. Re-implemented underlining. Now it REALLY works, honest.
  13896. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
  13897. * src/kwq/KWQFontMetrics.mm: (+[KWQLayoutInfo
  13898. drawUnderlineForString:atPoint:withFont:color:]):
  13899. * src/kwq/KWQMetrics.h:
  13900. * src/kwq/KWQPainter.mm: (QPainter::drawUnderlineForText):
  13901. * src/kwq/qt/qpainter.h:
  13902. 2001-12-20 Richard Williamson <rjw@apple.com>
  13903. More tweaks to text layout and underlining.
  13904. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
  13905. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::baselineOffset),
  13906. (QFontMetrics::ascent), (QFontMetrics::descent), (QFontMetrics::height),
  13907. (QFontMetrics::width):
  13908. * src/kwq/KWQPainter.mm: (QPainter::drawText):
  13909. * src/kwq/qt/qfontmetrics.h:
  13910. 2001-12-18 Maciej Stachowiak <mjs@apple.com>
  13911. * src/kwq/KWQCString.mm: (QCString::QCString),
  13912. (QCString::isEmpty), (QCString::isNull), (QCString::length): Fix
  13913. some bugs found by the test suite in the emptiness/null semantics.
  13914. Reimplement QPoint, QSize and QRect:
  13915. * src/kwq/qt/qpoint.h, src/kwq/qt/qrect.h, src/kwq/qt/qsize.h:
  13916. Update.
  13917. * src/kwq/KWQPoint.mm: (QPoint::QPoint), (QPoint::x), (QPoint::y),
  13918. (QPoint::manhattanLength), (operator+), (operator-), (operator<<):
  13919. Fresh implementations.
  13920. * src/kwq/KWQRect.mm: (QRect::QRect), (QRect::isNull), (QRect::isValid),
  13921. (QRect::x), (QRect::y), (QRect::left), (QRect::top), (QRect::right),
  13922. (QRect::bottom), (QRect::width), (QRect::height), (QRect::topLeft),
  13923. (QRect::size), (QRect::setWidth), (QRect::setHeight), (QRect::intersect),
  13924. (QRect::intersects), (QRect::operator&), (operator==), (operator!=),
  13925. (operator<<): Likewise.
  13926. * src/kwq/KWQSize.mm: (QSize::QSize), (QSize::isValid), (QSize::width),
  13927. (QSize::height), (QSize::setWidth), (QSize::setHeight), (QSize::expandedTo),
  13928. (operator+), (operator==), (operator!=), (operator<<): Likewise.
  13929. * src/kwq/qt/_qpoint.cpp, src/kwq/qt/_qrect.cpp,
  13930. src/kwq/qt/_qsize.cpp: Disable the whole file contents when
  13931. building.
  13932. * src/kwq/Makefile.in: Add new files to build.
  13933. Start moving away from QShared so we can remove it:
  13934. * src/kwq/qt/qbrush.h, src/kwq/KWQBrush.mm: (QBrush::QBrush),
  13935. (QBrush::color),
  13936. (QBrush::setColor), (QBrush::style), (QBrush::setStyle),
  13937. (QBrush::operator==), (QBrush::operator!=): Don't use shared data
  13938. for this simple value object, the optimization value is
  13939. quastionable anyway.
  13940. * src/kwq/qt/qpen.h, src/kwq/KWQPen.mm: (QPen::QPen),
  13941. (QPen::color), (QPen::width), (QPen::style),
  13942. (QPen::setColor), (QPen::setWidth), (QPen::setStyle),
  13943. (QPen::operator==): Likewise.
  13944. * src/kwq/KWQPainter.mm: (QPainter::setPen), (QPainter::setBrush):
  13945. Update for changes to pen.
  13946. * src/kwq/KWQRefPtr.h: New reference-counted pointer template.
  13947. * src/kwq/qt/qguardedptr.h, src/kwq/KWQGuardedPtr.mm:
  13948. (QGuardedPtrPrivate::QGuardedPtrPrivate): Use KWQRefPtr instead of
  13949. QShared.
  13950. * src/kwq/qt/qvariant.h, src/kwq/KWQVariant.mm:
  13951. (QVariant::QVariant), (QVariant::~QVariant),
  13952. (QVariant::operator=): Use KWQRefPtr instead of
  13953. QShared.
  13954. * src/kwq/qt/qnamespace.h: Remove private constructor and
  13955. destructor since people want to subclass this.
  13956. * src/kwq/_KWQOwner.h: Add include guards and standard license.
  13957. * src/kdelibs/khtml/ecma/kjs_binding.h: Add include of qvariant.h,
  13958. how could stuff ever compile without this?
  13959. 2001-12-18 Richard Williamson <rjw@apple.com>
  13960. Finally fixed underlining.
  13961. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
  13962. * src/kwq/KWQFontMetrics.mm:
  13963. 2001-12-18 Maciej Stachowiak <mjs@apple.com>
  13964. * src/kwq/Makefile.in: Re-apply my changes, which accidentally got
  13965. clobbered.
  13966. 2001-12-13 Maciej Stachowiak <mjs@apple.com>
  13967. Changes for international character set support. Still needs work,
  13968. but no worse than before. amazon.co.jp renders almost correctly.
  13969. * src/kwq/KWQCharsets.h, src/kwq/KWQCharsets.mm:
  13970. (KWQCFStringEncodingFromIANACharsetName,
  13971. KWQCFStringEncodingFromMIB, KWQCFStringEncodingToIANACharsetName,
  13972. KWQCFStringEncodingToMIB): New functions that translate between
  13973. the Qt concept of charaxcter sets and the
  13974. (buildDictionaries): static helper function for the above.
  13975. * src/kwq/KWQtextcodec.mm: (codecForCFStringEncoding,
  13976. QTextCodec::codecForMib), QTextCodec::codecForName,
  13977. QTextCodec::codecForLocale, QTextCodec::name,QTextCodec::mibEnum):
  13978. Implement for real.
  13979. * src/kwq/KWQKCharsets.mm: (KCharsets::codecForName,
  13980. KCharsets::charsetForEncoding, KCharsets::charsetForEncoding):
  13981. Implement for real.
  13982. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::slotData): Get encoding
  13983. from headers if present.
  13984. (encodingFromContentType): Helper function for the above.
  13985. (KHTMLPart::begin): Reinitialize decoder for every page.
  13986. (KHTMLPart::write): Minor bug fix.
  13987. (KHTMLPart::setEncoding): Implement.
  13988. (KHTMLPart::khtmlMouseMoveEvent,
  13989. KHTMLPart::khtmlMouseReleaseEvent, KHTMLPart::checkCompleted):
  13990. Simplify ifdefs to make prepare-ChangeLog happy.
  13991. * src/kwq/qt/qstring.h, src/kwq/KWQString.mm:
  13992. (QString::fromCFString): New convenience method to create a
  13993. QString from an immutable CFString by copying,
  13994. * src/kwq/character-sets.txt: IANA document describing character
  13995. sets.
  13996. * src/kwq/make-charset-table.pl, src/kwq/make-mac-encodings.c:
  13997. Helper programs to construct charset tables from IANA document.
  13998. * src/kwq/Makefile.in: Update to handle the autogenerated code.
  13999. * src/kwq/.cvsignore: Ignore new autogenerated files.
  14000. * src/kdelibs/khtml/misc/decoder.cpp: (Decoder::decode): Fix
  14001. decoding when the encoding is specified in the http headers (which
  14002. seems like it could never have worked in KDE).
  14003. * include/WCBackForwardList.h, include/WCURICache.h,
  14004. include/WCURICacheData.h, include/WCURIEntry.h: Fix prototypes of
  14005. C functions with no arguments to use (void), not (), to avoid
  14006. warnings in WebKit.
  14007. 2001-12-11 Chris Blumenberg <cblu@apple.com>
  14008. * ChangeLog:
  14009. * src/kwq/KWQKHTMLPart.mm:
  14010. 2001-12-11 Chris Blumenberg <cblu@apple.com>
  14011. * src/kwq/KWQKHTMLPart.mm:
  14012. 2001-12-10 Kenneth Kocienda <kocienda@apple.com>
  14013. Went back and did a better job of cleaning up the warnings
  14014. that resulted from comparing signed and unsigned numbers.
  14015. * src/kwq/KWQString.mm: (QString::insert), (QString::remove),
  14016. (QString::truncate):
  14017. 2001-12-07 Richard Williamson <richwill@richwill.com>
  14018. Fixed bug that was highlighted when we turned on warnings.
  14019. * src/kwq/KWQFontMetrics.mm:
  14020. * src/kwq/KWQMetrics.h:
  14021. 2001-12-07 Kenneth Kocienda <kocienda@apple.com>
  14022. Fixed small bug in a comparison that was making -Wall complain
  14023. * src/kwq/KWQString.mm: